-
Notifications
You must be signed in to change notification settings - Fork 53
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
ValueError: Lepton not connected. #75
Comments
Hiya can you post the output of
Just to check the device is actually seen by Linux first. |
Hello, the device is seen by Linux. The Lepton works when I reboot the OS, but after some time it throws the error above. |
Mistankenlly closed the issue. |
Hi Eduardo. This is quite difficult to debug without access to the hardware, but we can try. If you look at the code for flirpy, all we're doing is opening the camera with OpenCV. Next time the camera crashes, can you try to load it separately before you reboot? Eg using the VideoCapture module in opencv. Similarly you could try a very simple loop where you read from the camera repeatedly until it crashes. This would hopefully isolate the bug to opencv or flirpy. Is the device seen by Linux after the crash? It's possible that somehow flirpy is reading a value that's putting the camera into a weird state, but we don't send any commands to the Lepton - we just request video. So I think that's unlikely as it's not the same as a Boson where you can set/change the camera config. Best |
Hello, When the error occur I get the following warning: Then I tried to get the images from the camera using OpenCV with
But I got the sabe warning as above. The camera is "attatched" to usb, issueing the command v4l2-ctl --list-devices i get the following: At /dev/video0 I have the CSI-camera from raspberry py and at /dev/video1 and 2 I have the purethremal camera. I am afraid the problem is not in flirpy library, but you have any idea to solve this? Best regards, |
I'd suggest raising an issue with Pure Thermal or OpenCV - and also try it out on a different platform like a laptop to see if it's just an issue on the Pi |
Hello. I am using a PT Mini + Lepton 3.5 with a Raspberry Pi 4b and I am constantly getting the following error:
File "/usr/local/lib/python3.9/dist-packages/flirpy/camera/lepton.py", line 156, in grab self.setup_video(device_id) File "/usr/local/lib/python3.9/dist-packages/flirpy/camera/lepton.py", line 97, in setup_video raise ValueError("Lepton not connected.") ValueError: Lepton not connected.
I don't believe it is a misconnection since I have 2 setups with the same error.
What may I do?
Thanks in advance,
Eduardo.
The text was updated successfully, but these errors were encountered: