groupgets / purethermal1-uvc-capture

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

purethermal-2, radiometry.py, libuvc timeout on MacOS #62

Open carloscastellanos opened 2 years ago

carloscastellanos commented 2 years ago

I'm running a slightly modified version of radiometry.py and it mostly works fine but sometimes it gets stuck in the q.get(True, 500) function. It seems that the Queue never fills up (causing the script to quit after the timeout). It's totally random too. It can happen after a few minutes, a few hours or a few days. None of the change mades to the original radiometry.py have anything to do with acquiring a stream, callbacks or anything like that (mostly just creating a colormap and capturing images to disk).

MacOS 10.15.6 Python 3.7.11

I'm using the groupgets libuvc fork and libusb 1.0

kekiefer commented 2 years ago

I still haven't gotten around to cleaning this up, since there's a number of moving pieces in other projects and for various platforms, but try the branch master+libuvc-upstream in this project. With libuvc from https://github.com/libuvc/libuvc on master, this is working on MacOS 12.4, and I suspect that older versions will work as well.

carloscastellanos commented 2 years ago

Thanks. I guess I should uninstall the groupgets libuvc fork as well?

kekiefer commented 2 years ago

Yes

carloscastellanos commented 2 years ago

OK I tried this and it's actually worse now, lol. It times out every time now. I should say that this only happens when I save images to disk (both now and with the previous version). If I just stream video it seems to work fine.