visual studio 2012 - Error In OpenCv -


i installed opencv , configure tutorials, when trying code implementing it, related opencv shown error shown in figure. can please me? need enter image description here

#include "stdafx.h" #include <opencv2/highgui/highgui.hpp> #include <iostream>  using namespace std;     using namespace cv;  int main( void) {     cvcapture* capture = 0;      // start capture webcam     capture = cvcapturefromcam( cv_cap_any );     if( !capture )     {         cout << "no camera detected" << endl;     }     // create new window     cvnamedwindow( "my opencv webcam", cv_window_autosize );      if( capture )     {         cout << "webcam in capture" << endl;         for(;;)         {             // captured image , show in new window              // can save or filter             iplimage* iplimg = cvqueryframe( capture );              // use filter image             //cvnot(iplimg, iplimg);              cvshowimage( "my opencv webcam", iplimg );              if( waitkey( 10 ) >= 0 )                 break;         }      }        cvreleasecapture( &capture );     cvdestroywindow( "my opencv webcam" );      return 0;  } 

enter image description here

from comments question turned out op linking opencv 2.4.8, instead of opencv 3.0.0.

correcting linked libraries name, library path, solved issue.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

android - Go back to previous fragment -