groupgets / purethermal1-uvc-capture

USB Video Class capture examples for PureThermal 1 / PureThermal 2 FLIR Lepton Dev Kit
124 stars 81 forks source link

Problem uvc-radiometry.py #5

Closed ignacio1988 closed 6 years ago

ignacio1988 commented 6 years ago

Hi, I receive the following error and I do not understand why it happens. I updated the firmware to 1.0.0 https://github.com/groupgets/purethermal1-firmware/releases/tag/1.0.0 and sometimes I can acquire images but I can not determine why. Any recommendation?

device opened! Version gpp: 0.0.0 dsp: 0.0.0 FLIR part #: FLIR serial #: '\x00\x00\x00\x00\x00\x00\x00\x00' format: YUY2 frame 640x480 @ 30fps frame 160x120 @ 30fps frame 176x144 @ 30fps frame 320x240 @ 30fps frame 352x288 @ 30fps device does not support Y16

kekiefer commented 6 years ago

The frame sizes don't match what the PT1 firmware would be reporting, and all the version information is bogus. I would guess that a different camera on the system is being opened, do you have more than one UVC device connected?

ignacio1988 commented 6 years ago

Hi, i connected a web camera with opencv at the same time wich purethermal for adquisition in parallel in the same code python.

kekiefer commented 6 years ago

OK... well have you pulled on that thread to determine if the simultaneous OpenCV is what is causing the conflicts?

ignacio1988 commented 6 years ago

Hi, I discovered my problem. UVC did not find the purethermal because the USB VID/PID is was not the right one, I replaced the following line of code res = libuvc.uvc_find_device(ctx, byref(dev), 0, 0, 0) for this res = libuvc.uvc_find_device(ctx, byref(dev), 0x1e4e, 0x0100, 0). Thanks very much. REF: https://groups.google.com/forum/#!topic/flir-lepton/OLyUetrvMow

kekiefer commented 6 years ago

Good call, I have updated the examples with the change.