tsdconseil / opencv-demonstrator

OpenCV demonstrator (GUI)
http://www.tsdconseil.fr/log/opencv/demo/index-en.html
GNU Lesser General Public License v3.0
141 stars 57 forks source link

USB camera not working after recent changes #43

Closed valera-rozuvan closed 8 years ago

valera-rozuvan commented 8 years ago

@juliena82 Can you please take a look at why the USB camera might have stopped working? I get the error message:

[/ocvdemo] Camera non détectée: reset sel = 0...

I am looking into this too.

applemuncy commented 8 years ago

Compiling the latest master, my webcam gets detected OK.

juliena82 commented 8 years ago

@valera-rozuvan Just before this log message, there should be another message, like "Ouverture camera usb #0...". Can you confirm that the camera index is #0? Otherwise it tries to open the second camera. Also you can check that your camera is compatible with opencv by running "./build/debug/test-webcam.exe".

valera-rozuvan commented 8 years ago

@juliena82 Yes, it does say:

[/ocvdemo] Ouverture camera usb #0...
valera-rozuvan commented 8 years ago

Hmm. Maybe something is wrong with my system. Let me check and get back to you... @juliena82

valera-rozuvan commented 8 years ago

@juliena82 OK. Now the test-webcam.exe works. Only problem: with the recent code - int the main program I can't switch to webcam. It always uses images! Any ideas?

juliena82 commented 8 years ago

@valera-rozuvan Indeed the webcam support is temporarilly not available, as I am currently working on integrating all input selection on the image selector window. Sorry for the problem, this is "work in progress"... I work on it, and keep you informed when it works again (it will not be the same user interface to select the webcam).

applemuncy commented 8 years ago

I think this could be closed