Yes. I will test it tonight. Thank you for all the help.
I just tried the code you posted and it did not work. This was the error I got.
Code:
VIDIOC_REQBUFS: Cannot allocate memory
VIDIOC_QBUF: Bad file descriptor
No frame
OpenCV Error: Assertion failed (size.width>0 && size.height>0) in imshow, file /home/OpenCVArm/opencv-2.4.10/modules/highgui/src/window.cpp, line 261
Unable to stop the stream.: Inappropriate ioctl for device
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
terminate called after throwing an instance of 'cv::Exception'
what(): /home/OpenCVArm/opencv-2.4.10/modules/highgui/src/window.cpp:261: error: (-215) size.width>0 && size.height>0 in function imshow
I cant run the command you gave me because it cant find the command sudo. I used 2168's opencv library's. I'm not sure if that makes a difference. I moved the videoCapture = cv::VideoCapture(); and .open(0) outside the loop and it makes no difference.
I'm pretty sure it connects to the camera find but it grabs an empty frame for some reason.
Thanks.