View Single Post
  #8   Spotlight this post!  
Unread 11-02-2016, 13:18
KJaget's Avatar
KJaget KJaget is offline
Zebravision Labs
FRC #0900
Team Role: Mentor
 
Join Date: Dec 2014
Rookie Year: 2015
Location: Cary, NC
Posts: 37
KJaget has much to be proud ofKJaget has much to be proud ofKJaget has much to be proud ofKJaget has much to be proud ofKJaget has much to be proud ofKJaget has much to be proud ofKJaget has much to be proud ofKJaget has much to be proud of
Re: OpenCV C++ Bad file descriptor. USB Lifecam

How about just opening the camera using :

cv:VideoCapture videoCapture(0);

That should be enough to open the camera and use it. All of the other stuff is just extra steps that could go wrong.

There's a simple example at http://docs.opencv.org/2.4/modules/h...videocap ture which should just work if you want to rule out the rest of the code being the problem.