I am trying to get OpenCV to work with my PS3EYE. Processing's video library works fine so I guess if one works the other should too?
As a workaround I am using cl.eye library to get video frames then I copy them to OpenCV. While it works there are some problems. The captured frames are copied to the BUFFER instead of being sent to SOURCE, and the frame rate is low.
This is the code, can any improvements be made?
Code:myCameras.getCameraFrame(myImages.pixels, 0);
opencv.copy(myImages);
As a better fix I started looking inside OpenCV source code to implement cl.eye API directly in it's capture. At this point I am in way over my head since I have minimal programming experience, but I might be able to pull it off.
While I was looking at the source code I noticed in OpenCV.h:
Code:
#define CAPTURE 4
#define SOURCE hypermedia_video_OpenCV_SOURCE
#define BUFFER hypermedia_video_OpenCV_BUFFER
#define MEMORY hypermedia_video_OpenCV_MEMORY
#define ROI hypermedia_video_OpenCV_ROI
Is that "4" out of place or am I just clueless?