Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IR emitter don't blink with cv2.VideoCapture #19

Closed
janecz-n opened this issue Apr 7, 2018 · 6 comments
Closed

IR emitter don't blink with cv2.VideoCapture #19

janecz-n opened this issue Apr 7, 2018 · 6 comments
Labels
camera issue Problems with the IR camera

Comments

@janecz-n
Copy link

janecz-n commented Apr 7, 2018

I juste receive my new computer with an IR Camera so I would like to try your software ! :)
So I have properly done the installation, selection the device with blinking IR emitter.
But when I sudo or use howdy test my emitter blink only once.

I have try to manually:

import cv2
vd = cv2.VideoCapture(int("0"))
vd.read()

And like in howdy test, emitters blink once and then stay in a 'low red state' and don't blink anymore even if I vd.read() again.

Any idea to where I should look ?

@boltgolt boltgolt added the camera issue Problems with the IR camera label Apr 7, 2018
@boltgolt
Copy link
Owner

boltgolt commented Apr 7, 2018

Ubuntu should come with a program called "Cheese Webcam Booth". Could you launch that and change the "Device" dropdown in the preferences to your IR camera and see if the emitters do light up?

@janecz-n
Copy link
Author

janecz-n commented Apr 7, 2018

The emitters light up at low intensity and don't blink.
For now the only command who make them blink is fswebcam -S 9999999999 -d /dev/video0
So basically, I can see my face on IR camera but only if I'm at 3 cm of it :p

@boltgolt
Copy link
Owner

boltgolt commented Apr 7, 2018

That sounds like a driver issue. Howdy depends on linux webcam drivers supporting the IR cameras and in a lot of cases the driver just doesn't work. It is weird though that fswebcam can make them blink while skipping frames, but i'm not sure how to bring that to howdy if cheese can't even do that.

@Teifun2
Copy link

Teifun2 commented Oct 3, 2018

I would like to mention that i have the same Problem with the Thinkpad T480.
What i find strange is that during the test in the installation (Ubuntu through apt) the IR Emitters work as they should. Flickering on high power. How can that be?

@boltgolt
Copy link
Owner

boltgolt commented Oct 4, 2018

Somehow the emitters seem to work correctly on certain frame sizes, see #51

@Teifun2
Copy link

Teifun2 commented Oct 4, 2018

Oh cool. Yes this worked for me as well with 320x320 (and other small resolutions). It seems tough as if the Frame Grabber and the IR Emitters are out of sync because it can happen (in the test) that sometimes there is no "scan frame" for more than one second. I assume this is a Problem with the driver. But it works thanks allot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
camera issue Problems with the IR camera
Projects
None yet
Development

No branches or pull requests

3 participants