groupgets / pylepton

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

pylepton_overlay -a 155 error #38

Open basit434 opened 4 years ago

basit434 commented 4 years ago

When i run "pylepton_overlay -a 155" command i get the following error. However both my cameras (pi camera and flir lepton are working fine if i run them individually) When i run "pylepton_capture output.png" this command it also works fine and captures a picture.

i am only facing the issue while running "pylepton_overlay -a 155"

Traceback (most recent call last): File "_ctypes/callbacks.c", line 315, in 'calling callback function' File "/home/pi/.local/lib/python2.7/site-packages/picamera/mmalobj.py", line 1227, in wrapper self._pool.send_buffer(block=False) File "/home/pi/.local/lib/python2.7/site-packages/picamera/mmalobj.py", line 1931, in send_buffer super(MMALPortPool, self).send_buffer(port, block, timeout) File "/home/pi/.local/lib/python2.7/site-packages/picamera/mmalobj.py", line 1881, in send_buffer raise PiCameraMMALError(mmal.MMAL_EAGAIN, 'no buffers available') picamera.exc.PiCameraMMALError: no buffers available: Resource temporarily unavailable; try again later

kekiefer commented 4 years ago

Your traceback is in the picamera library, not this one. Can you confirm if picamera is working on it's own? https://picamera.readthedocs.io/en/release-1.13/recipes1.html

basit434 commented 4 years ago

yeah the pi camera is working on its own

infact both my cameras are working individually at same time the lepton camera is working through lepton module master

On Thu, Dec 26, 2019, 9:13 PM Kurt Kiefer notifications@github.com wrote:

Your traceback is in the picamera library, not this one. Can you confirm if picamera is working on it's own? https://picamera.readthedocs.io/en/release-1.13/recipes1.html

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/groupgets/pylepton/issues/38?email_source=notifications&email_token=AOD3FKE5YXDVWZVFWEXZJ53Q2TJ23A5CNFSM4J7EOEW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHVYH3Q#issuecomment-569082862, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOD3FKGN7A32RYN2PWCCV7LQ2TJ23ANCNFSM4J7EOEWQ .

kekiefer commented 4 years ago

I'm not asking if the camera is working, you already said that it does. I'm asking specifically if the picamera library is working, that this project relies on. I've shared a link to examples for this library.

basit434 commented 4 years ago

yeah its working

On Thu, Dec 26, 2019, 9:23 PM Kurt Kiefer notifications@github.com wrote:

I'm not asking if the camera is working, you already said that it does. I'm asking specifically if the picamera library is working, that this project relies on. I've shared a link to examples for this library.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/groupgets/pylepton/issues/38?email_source=notifications&email_token=AOD3FKDDZMDJOUF4E3ZJX4TQ2TK6ZA5CNFSM4J7EOEW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHVYUCI#issuecomment-569084425, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOD3FKHK37QHPT2H4G36YDTQ2TK6ZANCNFSM4J7EOEWQ .

basit434 commented 4 years ago

???

kekiefer commented 4 years ago

OK, given that I've pointed you to the fact that this is a problem the picamera library, did you try searching for related issues there?

https://github.com/waveform80/picamera/issues?utf8=✓&q=is%3Aissue+is%3Aopen+no+buffers+

There are a number of threads with the same error. This one suggests an alternative to using the camera overlay function:

https://github.com/waveform80/picamera/issues/448

Given your time crunch, you should also be looking at other ways you can combine the picamera image and the lepton image. The example given here is just that, an example, and not the only way to get the job done.

basit434 commented 4 years ago

all the examples on https://picamera.readthedocs.io/en/release-1.13/recipes1.html are working fine

On Thu, Dec 26, 2019, 9:52 PM Kurt Kiefer notifications@github.com wrote:

OK, given that I've pointed you to the fact that this is a problem the picamera library, did you try searching for related issues there?

https://github.com/waveform80/picamera/issues?utf8=✓&q=is%3Aissue+is%3Aopen+no+buffers+ https://github.com/waveform80/picamera/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+no+buffers+

There are a number of threads with the same error. This one suggests an alternative to using the camera overlay function:

waveform80/picamera#448 https://github.com/waveform80/picamera/issues/448

Given your time crunch, you should also be looking at other ways you can combine the picamera image and the lepton image. The example given here is just that, an example, and not the only way to get the job done.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/groupgets/pylepton/issues/38?email_source=notifications&email_token=AOD3FKHFVLXVZEUPOEWEEV3Q2TOMJA5CNFSM4J7EOEW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHVZ7IY#issuecomment-569089955, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOD3FKHGT7MK25BYCRFYJRLQ2TOMJANCNFSM4J7EOEWQ .

hrdunn commented 4 years ago

@basit434 did this ever get resolved? I am running into the same issue, the picamera lib works fine on its own.

basit434 commented 4 years ago

yeah

On Tue, May 12, 2020, 3:35 AM Reed Dunn notifications@github.com wrote:

@basit434 https://github.com/basit434 did this ever get resolved? I am running into the same issue, the picamera lib works fine on its own.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/groupgets/pylepton/issues/38#issuecomment-627001817, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOD3FKHYOJDJXJ63RZRW4S3RRB4SBANCNFSM4J7EOEWQ .

hrdunn commented 4 years ago

@basit434 what was the solution?

basit434 commented 4 years ago

using the alpha transparency it worked i was able to merge both the videos

On Fri, May 15, 2020, 3:18 AM Reed Dunn notifications@github.com wrote:

@basit434 https://github.com/basit434 what was the solution?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/groupgets/pylepton/issues/38#issuecomment-628915265, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOD3FKBTKZNNZG2ZQQQ5WJTRRRU2ZANCNFSM4J7EOEWQ .

Ailsamly commented 3 years ago

hi, I have the same problem, how did you solve it? @basit434 @hrdunn

hrdunn commented 3 years ago

@Ailsamly yes I used a different library, this lib is garbage, out of date, and borderline deprecated, I managed to get it to work with a lepton 3.5 using the lepton3-dev branch. I made a few mods and I think I commented out the overlay. If you have a breakout board take a look at Lepton Module a C lib, but don't let that scare you, I never wrote C before and got it working or if you have a purethermal board (so much easier to work with) take a look at purethermal1-uvc-capture a python library that you can extend

Ailsamly commented 3 years ago

@Ailsamly yes I used a different library, this lib is garbage, out of date, and borderline deprecated, I managed to get it to work with a lepton 3.5 using the lepton3-dev branch. I made a few mods and I think I commented out the overlay. If you have a breakout board take a look at Lepton Module a C lib, but don't let that scare you, I never wrote C before and got it working or if you have a purethermal board (so much easier to work with) take a look at purethermal1-uvc-capture a python library that you can extend

@hrdunn Thanks very much for your quick and kind reply! But I am really new to this as well as programming.. could you please specify more about your steps? I am also using a lepton 3.5 with the latest breakout board. Thank you!!!

hrdunn commented 3 years ago

@Ailsamly sorry dude I wish I could, I deleted the modified library and ditched the breakout board back shortly after getting it to work in May so I don't have my steps that got it to work.

basit434 commented 3 years ago

its ok

On Fri, Oct 16, 2020, 9:46 PM Reed Dunn notifications@github.com wrote:

@Ailsamly https://github.com/Ailsamly sorry dude I wish I could, I deleted the modified library and ditched the breakout board back shortly after getting it to work in May so I don't have my steps that got it to work.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/groupgets/pylepton/issues/38#issuecomment-710205866, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOD3FKA27JZEK5GI3TIQ5YLSLB2GBANCNFSM4J7EOEWQ .

Ailsamly commented 3 years ago

its ok On Fri, Oct 16, 2020, 9:46 PM Reed Dunn @.***> wrote: @Ailsamly https://github.com/Ailsamly sorry dude I wish I could, I deleted the modified library and ditched the breakout board back shortly after getting it to work in May so I don't have my steps that got it to work. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#38 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOD3FKA27JZEK5GI3TIQ5YLSLB2GBANCNFSM4J7EOEWQ .

@basit434 how did you solve this?