Opencv cant access camera connected through video capture device
I have a analog camera connected to EasyCap video capture device. When I run a basic code which opens webcam video using OPENCV, I can access my in-built webcam but not the other analog camera.
How would you connect any other camera (FPV, IR, etc) to the PC such that OPENCV can access it.
Thanks.
Can you post your code please?
I am having the same issue seeing as the guy who posted for help never replied, I will post my code:
include <opencv\cv.h>
include <opencv\highgui.h>
using namespace cv;
int main(){ Mat img; cvCaptureFromCAM(1);
while (true) { cam >> img; Mat edges; cvtColor(img, edges, CV_BGR2GRAY);
} return 0; }
So that works with my webcam, and when I plug in the EasyCap it no longer works. Thanks for your help.
I have the same issue issue. Any joy on this?
@Andries it might be that OpenCV is not compatible, you might want to ping the contributors, ask on the irc channel and visit the mailing list. Tell me if it helps.