PDL-OpenCV

 view release on metacpan or  search on metacpan

GENERATED/PDL/OpenCV/Highgui.pm  view on Meta::CPAN

=item color

Color of the font in BGRA where A = 255 is fully transparent.

=item weight

Font weight. Available operation flags are : cv::QtFontWeights You can also specify a positive integer for better control.

=item style

Font style. Available operation flags are : cv::QtFontStyles

=item spacing

Spacing between characters. It can be negative or positive.

=back


=for bad

addText ignores the bad-value flag of the input ndarrays.
It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.


=cut
#line 1224 "Highgui.pm"



#line 959 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"

sub PDL::OpenCV::Highgui::addText {
  barf "Usage: PDL::OpenCV::Highgui::addText(\$img,\$text,\$org,\$nameFont,\$pointSize,\$color,\$weight,\$style,\$spacing)\n" if @_ < 4;
  my ($img,$text,$org,$nameFont,$pointSize,$color,$weight,$style,$spacing) = @_;
    $pointSize = -1 if !defined $pointSize;
  $color = [0,0,0,0] if !defined $color;
  $weight = QT_FONT_NORMAL() if !defined $weight;
  $style = QT_STYLE_NORMAL() if !defined $style;
  $spacing = 0 if !defined $spacing;
  PDL::OpenCV::Highgui::_addText_int($img,$org,$pointSize,$color,$weight,$style,$spacing,$text,$nameFont);
  
}
#line 1241 "Highgui.pm"



#line 960 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"

*addText = \&PDL::OpenCV::Highgui::addText;
#line 1248 "Highgui.pm"



#line 274 "../genpp.pl"

=head2 displayOverlay

=for ref

Displays a text on a window image as an overlay for a specified duration.

=for example

 displayOverlay($winname,$text); # with defaults
 displayOverlay($winname,$text,$delayms);

The function displayOverlay displays useful information/tips on top of the window for a certain
amount of time *delayms*. The function does not modify the image, displayed in the window, that is,
after the specified delay the original content of the window is restored.

Parameters:

=over

=item winname

Name of the window.

=item text

Overlay text to write on a window image.

=item delayms

The period (in milliseconds), during which the overlay text is displayed. If this
function is called before the previous overlay text timed out, the timer is restarted and the text
is updated. If this value is zero, the text never disappears.

=back


=cut
#line 1291 "Highgui.pm"



#line 275 "../genpp.pl"

*displayOverlay = \&PDL::OpenCV::Highgui::displayOverlay;
#line 1298 "Highgui.pm"



#line 274 "../genpp.pl"

=head2 displayStatusBar

=for ref

Displays a text on the window statusbar during the specified period of time.

=for example

 displayStatusBar($winname,$text); # with defaults
 displayStatusBar($winname,$text,$delayms);

The function displayStatusBar displays useful information/tips on top of the window for a certain
amount of time *delayms* . This information is displayed on the window statusbar (the window must be
created with the CV_GUI_EXPANDED flags).

Parameters:

=over

=item winname

Name of the window.

=item text

Text to write on the window statusbar.

=item delayms

Duration (in milliseconds) to display the text. If this function is called before
the previous text timed out, the timer is restarted and the text is updated. If this value is
zero, the text never disappears.

=back


=cut
#line 1341 "Highgui.pm"





( run in 1.421 second using v1.01-cache-2.11-cpan-39bf76dae61 )