LJMUAstroecology / flirpy

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

Lepton 3.5, PurethermalMini,Capture issue #44

Closed basavarajamogi closed 1 year ago

basavarajamogi commented 3 years ago

I have following error in Python capture using Purethermal mini TypeError: Argument 'value' must be double, not bool

jveitchmichaelis commented 3 years ago

This should be fixed already https://github.com/LJMUAstroecology/flirpy/commit/a094fdeb09c6f775fd82e7f0287b461ab792382d

Did you try pulling from the repository directly? If not, please post the entire stack trace.

basavarajamogi commented 3 years ago

Thank you Josh. I directly pulled the repository but the Raspberry pi is showing 'skbuild': No module found error

On Mon, Feb 8, 2021 at 7:55 PM Josh Veitch-Michaelis < notifications@github.com> wrote:

This should be fixed already a094fde https://github.com/LJMUAstroecology/flirpy/commit/a094fdeb09c6f775fd82e7f0287b461ab792382d

Did you try pulling from the repository directly?

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

jveitchmichaelis commented 3 years ago

That's probably an issue trying to build opencv. If you can't install it as a dependency, try and install it separately. Have a look at:

https://stackoverflow.com/questions/63448467/installing-opencv-fails-because-it-cannot-find-skbuild

basavarajamogi commented 3 years ago

Thank you Josh. I solved that issue. But I am still not able to grab the picture. It gives the following error.

File "/usr/local/lib/python3.7/dist-packages/flirpy-0.2.3-py3.7.egg/flirpy/camera/lepton.py", line 156, in grab self.setup_video(device_id) File "/usr/local/lib/python3.7/dist-packages/flirpy-0.2.3-py3.7.egg/flirpy/camera/lepton.py", line 97, in setup_video raise ValueError("Lepton not connected.") ValueError: Lepton not connected.

When I check lsusb it gives in a list "Bus 001 Device 004: ID 1e4e:0100 Cubeternet Webcam".

On Tue, Feb 9, 2021 at 9:53 PM Josh Veitch-Michaelis < notifications@github.com> wrote:

That's probably an issue trying to build opencv. If you can't install it as a dependency, try and install it separately. Have a look at:

https://stackoverflow.com/questions/63448467/installing-opencv-fails-because-it-cannot-find-skbuild

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

  1. I tried to capture using cv2 from windows where it's giving 6380 image while it's lepton 3.5 which should give 160120 pixels.
basavarajamogi commented 3 years ago

Okay, Now everything is solved. The problem was with PT mini board. When I checked with another PT Mini board everything started working fine. Only last issue I have is following. I am getting raw image matrix but with following warning. [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video1): can't open camera by index

How to get over with this warning?

jveitchmichaelis commented 3 years ago

Check that the Lepton is fully seated on your first board - it's quite easy for the camera module to come loose.

This can happen sometimes with OpenCV. If you have no other cameras connected, you can try forcing the camera index to be -1.

Am I OK to close this issue? I'm glad you got it working!

basavarajamogi commented 3 years ago

I got everything working but sometimes I get following error. When I restart the raspberry pi after sometime, it starts working and after few hours or something throws the same error. Can you please suggest me something? [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (1004) tryIoctl VIDEOIO(V4L2:/dev/video1): select() timeout. [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video2): can't open camera by index

jveitchmichaelis commented 3 years ago

This should probably be a question for OpenCV as that's what's being used to open the camera.

basavarajamogi commented 3 years ago

Thank you I will check out there.

On Sat, 27 Mar 2021, 23:23 Josh Veitch-Michaelis, @.***> wrote:

This should probably be a question for OpenCV as that's what's being used to open the camera.

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

jveitchmichaelis commented 1 year ago

Closing as this seems to be a non-Flirpy issue - hope you got it fixed!