1 | initial version |
"can you tell me which of that are deprecated??" - ALL of them..
it's probably a good idea, to take a look at the tutorials , and use code like below to access the webcam:
#include "opencv2/opencv.hpp"
using namespace cv;
int main()
{
VideoCapture cap(0); // get 1st cam
while( cap.isOpened() )
{
Mat frame;
if ( ! cap.read(frame) )
break;
imshow("lalala",frame);
int k = waitKey(10);
if ( k==27 )
break;
}
return 0;
}
2 | No.2 Revision |
"can you tell me which of that are deprecated??" - ALL of them..
it's probably a good idea, to take a look at the tutorials , and use code like below to access the webcam:
#include "opencv2/opencv.hpp"
using namespace cv;
int main()
{
VideoCapture cap(0); // get 1st cam
while( cap.isOpened() )
{
Mat frame;
if ( ! cap.read(frame) )
break;
imshow("lalala",frame);
int k = waitKey(10);
if ( k==27 )
break;
}
return 0;
}
and link it like:
g++ my.cpp -lopencv_core -lopencv_highgui -lopencv_videoio -o myfirstwebcam
3 | No.3 Revision |
"can you tell me which of that are deprecated??" - ALL of them..
it's probably a good idea, to take a look at the tutorials , and use code like below to access the webcam:
#include "opencv2/opencv.hpp"
using namespace cv;
int main()
{
VideoCapture cap(0); // get 1st cam
while( cap.isOpened() )
{
Mat frame;
if ( ! cap.read(frame) )
break;
// process your frame here..
imshow("lalala",frame);
int k = waitKey(10);
if ( k==27 )
break;
}
return 0;
}
and link it like:
g++ my.cpp -lopencv_core -lopencv_highgui -lopencv_videoio -o myfirstwebcam