groupgets / pylepton

Quick and dirty pure python library for interfacing with FLIR lepton
MIT License
208 stars 94 forks source link

Program gets stuck on garbage frame detection. #5

Closed SalahAssana closed 5 years ago

SalahAssana commented 8 years ago

When I tried running the program it gets stuck on line 156 of Lepton.py and I'm not sure why. It was working a minute ago, but now it just keeps detecting all readings as garbage frames.

junkert commented 7 years ago

I have the same issue.

junkert commented 7 years ago

This happens when the SPI device is not responding. Maybe a better error message could be used here.

SalahAssana commented 7 years ago

There is no error message. The only way I even detected this was by putting a bunch of print statement in my code and finding where the code got stuck.

larryfkm commented 7 years ago

Is there any way to reset and recover from this situation instead of getting stuck forever here?

ghost commented 7 years ago

I have this issue also--any fix yet?

kekiefer commented 7 years ago

There was some advice on google groups on how to get LEP_RunOemReboot working through python (due to the lack of a python i2c/cci command processor in this project). https://groups.google.com/forum/#!msg/flir-lepton/aUU_F_iswlE/xSil-2XdBAAJ

It would be great to incorporate something like this into pylepton if it could be built easily.

phishstang65 commented 6 years ago

I am getting this same issue. Has anyone tried putting VIN on a Raspberry Pi 3.3V GPIO and toggled the GPIO to reset the Lepton when this condition occurs?

david-ra commented 6 years ago

The same issue Here. Im using RPI3 with pylepton v3. This is the output of the console:

$ pylepton_capture out.png Garbage frame number resetting... Garbage frame number resetting... Garbage frame number resetting... Garbage frame number resetting... Garbage frame number resetting...

I attach a image of the breackboard scorpio v7 ( without mosi pin, i dont know why ): 20180228_105759

david-ra commented 6 years ago

Problem solved. Just a cable problem in the GPIO :P

rmnd0 commented 5 years ago

Problem solved. Just a cable problem in the GPIO :P

To wich GPIO pin did you connect CS?

rmnd0 commented 5 years ago

Hardware:

Rpi zero w. FLIR Lepton breakout board. FLIR Radiometric Lepton 3.5.

Software:

Raspbian Stretch.

GPIO pinout: CS -> Pin 24, CE0 MOSI -> Pin 19, MOSI MISO -> Pin 21, MISO CLK -> Pin 23, CLK GND -> Pin 6, GND VIN -> Pin 1, 3V3 SDA -> Pin 3, SDA SCL -> Pin 5, SCL

It doesn't matter if using lepton3 or lepton3-dev, the output of pylepton_capture is always "Garbage frame number resetting...".

I'm running out of ideas before I declare the thermal core broken.

Any thoughts?

Thank you.

rmnd0 commented 5 years ago

I might try that, thanks ;)

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Sunday, March 10, 2019 2:56 AM, david-ra notifications@github.com wrote:

I strongly recommend to use the pure thermal 2 module :)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

TinManAkshay commented 3 years ago

Hi,

As i have seen people posting here about black images and garbage frame detection.

When i run pylepton_overlay -a 255 example, I get black images. I am using Lepton 3 and breakout out board v2. I have not found the cause of these black images. Any help would be highly appreciated if anyone has fixed the issue so far.

Thanks, Akshay

AF079 commented 1 year ago

Hi all, Any solutions for "Program gets stuck on garbage frame detection" and/or the camera just not sending frames after a certain amount of time?

Thanks