Quantcast
Viewing all articles
Browse latest Browse all 4929

Check if camera is setup properly

@Gallo wrote:

hello,

i am looking for a way to check if a webcam is properly setup.

I am reading the result of the boolean returned by ofVideoGrabber.setup() or testing with ofVideoGrabber.isInitialized() but it always returns true no matter is the camera exists or not.

I am using a macbook pro with integrated camera on oF0.9.8. I have only one device (the integrated one).

testing is always returning true no matter which device i initialize. With :

cam.setDeviceID(0);

or

cam.setDeviceID(1);

using :

bool bValidDevice = cam.setup(camWidth, camHeight, true);

and

bool bInit = cam.isInitialized();

both always return true while device 0 is the integrated webcam and device 1 doesn't exist

Any idea ?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles