LJMUAstroecology / flirpy

Python library to interact with FLIR camera cores
Other
184 stars 54 forks source link

Flirpy Lepton3.5 breakoutboard RPI4 #14

Open basavarajamogi opened 3 years ago

basavarajamogi commented 3 years ago

I am using RPI4 with breakoutboard and trying to grab images using Lepton 3.5 using flirpy. I am getting following error when I am trying to run example program capture_lepton.py Please let me know the solutions? error:

Traceback (most recent call last): File "/home/pi/flirpy/examples/capture_lepton.py", line 4, in image = cam.grab() File "/home/pi/.local/lib/python3.7/site-packages/flirpy/camera/lepton.py", line 156, in grab self.setup_video(device_id) File "/home/pi/.local/lib/python3.7/site-packages/flirpy/camera/lepton.py", line 97, in setup_video raise ValueError("Lepton not connected.") ValueError: Lepton not connected.

jveitchmichaelis commented 3 years ago

The SPI breakout board is currently unsupported, sorry. Or are you using the PureThermal?

basavarajamogi commented 3 years ago

The SPI breakout board is currently unsupported, sorry. Or are you using the PureThermal?

No, I am not using Pure thermal. I am using breakout board v 2.0. Is there any way out ?

jveitchmichaelis commented 3 years ago

You'll have to use another library in the meantime. The place you bought the board from should be able to point in the right direction. Flir have some official documentation here:

https://lepton.flir.com/getting-started/raspberry-pi-lepton/

basavarajamogi commented 3 years ago

You'll have to use another library in the meantime. The place you bought the board from should be able to point in the right direction. Flir have some official documentation here:

https://lepton.flir.com/getting-started/raspberry-pi-lepton/

Yes, I tried them all but those are all c libraries. I am not anyway good in c, so just finding something in Python. On tithun I found Python codes for image capture but I was looking for something simple as flirpy. You have made flirpy for almost everything. I think only breakout board is left out.

jveitchmichaelis commented 3 years ago

Have you tried the GroupGets library? https://github.com/groupgets/pylepton

I should be able to add support for SPI in flirpy soon, but I don't use Leptons too often so it's not been a priority unfortunately (I'm also a bit limited in what cameras I can get my hands on, but I think I've got a breakout board somewhere).

Thanks for trying flirpy anyway, hopefully you'll be able to use it for your lepton soon :)

basavarajamogi commented 3 years ago

Have you tried the GroupGets library? https://github.com/groupgets/pylepton

I should be able to add support for SPI in flirpy soon, but I don't use Leptons too often so it's not been a priority unfortunately.

Yes, I tried that one... It works well....I am able to capture images but no temperature values, metadata for temperature

jveitchmichaelis commented 3 years ago

Hmm OK, I'll see what I can do - I may have some time this weekend!

basavarajamogi commented 3 years ago

Hmm OK, I'll see what I can do - I may have some time this weekend!

Yes, That will be great for me sir... Thanks

jveitchmichaelis commented 3 years ago

The GroupGets library should return radiometric values though, it says the images should be 12 bit - is that not what you get?

basavarajamogi commented 3 years ago

I am just getting images...But not sure of it's 12 bit... flirpy looks very good for me...A single library that can be utilized directly in my Python codes for image processing. I checked the pixel values, all are between 0 to 255.

On Sat, 11 Jul 2020, 00:11 Josh Veitch-Michaelis, notifications@github.com wrote:

The GroupGets library should return radiometric values though, it says the images should be 12 bit - is that not what you get?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/LJMUAstroecology/flirpy/issues/14#issuecomment-657006028, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIO2GTUZLBAXR57HNM3X22LR3AGDNANCNFSM4OW6CB7Q .

yasin-aydn commented 3 months ago

The SPI breakout board is currently unsupported

Hello,

Is breakout board still unsupported?