MASUDA Yuta > Cv > Cv

Download:
Cv-0.29.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  6
Open  0
View/Report Bugs
Module Version: 0.29   Source  

NAME ^

Cv - helps you to make something around computer vision.

SYNOPSIS ^

 use Cv;
 
 my $image = Cv->LoadImage("/path/to/image", CV_LOAD_IMAGE_COLOR);
 $image->ShowImage("image");
 Cv->WaitKey;
 
 my $capture = Cv->CaptureFromCAM(0);
 while (my $frame = $capture->QueryFrame) {
   $frame->Flip(\0, 1)->ShowImage;
   my $c = Cv->WaitKey(100);
   last if $c >= 0;
 }

DESCRIPTION ^

Cv is the Perl interface to the OpenCV computer vision library that originally developed by Intel. I'm making this module to use the computer vision more easily like a slogan of perl "Easy things should be easy, hard things should be possible."

The features are as follows.

Error Handling

Cv is now possible to detect errors that occur in the block protected as eval { ... }. (Cv-0.13)

 my $img = eval { Cv->createImage([-1, -1], 8, 3) };
 if ($@) {
    print STDERR "*** got error ***";
 }

EXPORT

You put names after use Cv, constants, functions ... to be imported. (Cv-0.14)

TIPS

We'll show you the tips about using Cv that we studied from users.

SAMPLES ^

We rewrote some OpenCV samples in Cv, and put them in sample/.

 bgfg_codebook.pl calibration.pl camshiftdemo.pl capture.pl
 contours.pl convexhull.pl delaunay.pl demhist.pl dft.pl distrans.pl
 drawing.pl edge.pl facedetect.pl fback_c.pl ffilldemo.pl find_obj.pl
 fitellipse.pl houghlines.pl image.pl inpaint.pl kalman.pl kmeans.pl
 laplace.pl lkdemo.pl minarea.pl morphology.pl motempl.pl
 mser_sample.pl polar_transforms.pl pyramid_segmentation.pl squares.pl
 stereo_calib.pl stereo_match.pl tiehash.pl video.pl watershed.pl

BUGS ^

SEE ALSO ^

http://github.com/obuk/Cv-Olive

AUTHOR ^

MASUDA Yuta <yuta.cpan@gmail.com>

LICENCE ^

Copyright (c) 2010, 2011, 2012, 2013 by MASUDA Yuta.

All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: