Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

yes, the assignment from IplImage* to cv::Mat was removed in 3.0. again, please try to avoid any code, that is using old c-api functionality .

in this case , it should be quite easy to fix, use VideoCapture instead of the outdated cvCaptureFromCAM

main.cpp ~58:

 // Read the video stream
VideoCapture capture( -1 ); // please delete the old  CvCapture* capture; in line 35 !
if( capture.isOpened() ) {
    while( capture.read( frame ) ) {
       ...

yes, the assignment from IplImage* to cv::Mat was removed in 3.0. again, please try to avoid any code, that is using old c-api functionality .

in this case , it should be quite easy to fix, use VideoCapture instead of the outdated cvCaptureFromCAM

main.cpp ~58:

 // Read the video stream
VideoCapture capture( -1 ); // please delete the old  CvCapture* capture; in line 35 !
if( capture.isOpened() ) {
    while( capture.read( frame ) ) {

(just saying, .. there should have been a cvReleaseCapture() at the end of main(), but there isn't. manual resource management is cumbersome, and bug-prone...) ... ...

yes, the assignment from IplImage* to cv::Mat was removed in 3.0. again, please try to avoid any code, that is using old c-api functionality .

in this case , it should be quite easy to fix, use VideoCapture instead of the outdated cvCaptureFromCAM

main.cpp ~58:

 // Read the video stream
VideoCapture cv::VideoCapture capture( -1 ); // please delete the old  CvCapture* capture; in line 35 !
if( capture.isOpened() ) {
    while( capture.read( frame ) ) {

(just saying, .. there should have been a cvReleaseCapture() at the end of main(), but there isn't. manual resource management is cumbersome, and bug-prone...) ...