groupgets / purethermal1-uvc-capture

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

PureThermal Smart I/O board with Lepton 3.5 radiometric on Raspberry 4 #17

Open okumurah1103 opened 4 years ago

okumurah1103 commented 4 years ago

We can use purethermal1-uvc-capture python scripts PureThermal Smart I/O board with Lepton 3.5 radiometric on Raspberry 3b normally. libusb = 1.0.22 on SourceForge libuvc = git clone https://github.com/groupgets/libuvc

But, using same way and libraries, when I try to use purethermal1-uvc-capture python scripts on Raspberry 4, the following run time error occurs. VS_COLORFORMAT cansupport, these errors can reduce I guess. Do you have any suggestion for me?

sudo python uvc-deviceinfo.py unsupported descriptor subtype VS_COLORFORMAT unsupported descriptor subtype VS_COLORFORMAT unsupported descriptor subtype VS_COLORFORMAT unsupported descriptor subtype VS_COLORFORMAT unsupported descriptor subtype VS_COLORFORMAT Version gpp: 3.3.26 dsp: 3.3.26 FLIR part #: 500-0771-01 FLIR serial #: '\xbe\xf3(\x00\x00\x00\x00\x00'

sudo python uvc-radiometry.py unsupported descriptor subtype VS_COLORFORMAT unsupported descriptor subtype VS_COLORFORMAT unsupported descriptor subtype VS_COLORFORMAT unsupported descriptor subtype VS_COLORFORMAT unsupported descriptor subtype VS_COLORFORMAT device opened! Version gpp: 3.3.26 dsp: 3.3.26 FLIR part #: 500-0771-01 FLIR serial #: '\xbe\xf3(\x00\x00\x00\x00\x00' format: UYVY frame 160x120 @ 9fps format: Y16 frame 160x120 @ 9fps frame 160x122 @ 9fps format: Y8
frame 160x120 @ 9fps format: RGBP frame 160x120 @ 9fps format: }�6� frame 160x120 @ 9fps uvc_start_streaming failed: -2

okumurah1103 commented 4 years ago

Once libusb and libuvc on Raspbian (installed via apt-get) are removed, and then libusb on SourceForge and libuvc on Github/groupgets/libuvc, unsupported descriptor subtype VS_COLORFORMAT is removed, and uvc-deviceinfo.py is normally worked. However, sudo python uvc-radiometry.py device opened! Version gpp: 3.3.26 dsp: 3.3.26 FLIR part #: 500-0771-01 FLIR serial #: '\xbe\xf3(\x00\x00\x00\x00\x00' format: UYVY frame 160x120 @ 9fps format: Y16 frame 160x120 @ 9fps frame 160x122 @ 9fps format: Y8
frame 160x120 @ 9fps format: RGBP frame 160x120 @ 9fps format: }�6� frame 160x120 @ 9fps Estimated / selected altsetting bandwith : 18 / 962. uvc_start_streaming failed: -99

okumurah1103 commented 4 years ago

I try to update libusb 1.22 to 1.23, however

uvc_start_streaming failed: -99

is still outputted. mmmm

martinpeniak commented 4 years ago

have you resolved this? I have the same issue

kekiefer commented 4 years ago

Raspberry Pi 4 needs at least version 1.3.0 of PureThermal board firmware, please try it out: https://github.com/groupgets/purethermal1-firmware/releases/tag/1.3.0

Also, if you are using the libuvc from raspbian, make sure to switch the the branch master+libuvc-upstream of this repository.

andro44 commented 4 years ago

I have the same setup as @okumurah1103; RaspPi4, Lepton 3.5 on a PT2 board. No matter what I try I keep getting errors.

When I plugin the board for the first time I get a ''Not enough space on device" error. I googled it and it's supposed to be a USB controller issue. I used

sudo rmmod uvcvideo
sudo modprobe uvcvideo quirks=128

and got past the error (don't fully understand what this script does to be honest). Now when I try to run the opencv-capture.py I get a

Testing for presense of camera #0...
Running, ESC or Ctrl-c to exit...
VIDIOC_STREAMON: Input/output error
Error reading image

The variable img returned from the read function is None. ret, img = self.cv2_cap.read()

I've updated the firmware to 1.3.0, I'm using the above mentioned branch, I have installed libuvc0 0.0.6-1 via apt-get install. My OS is Raspbian GNU/Linux 10 (buster) and kernel 4.19.75-v7l+.

What else should I try? I'm sure I should post additional logs, so could please someone tell me which ones and where to get them?

Regards, A