Giter Club home page Giter Club logo

Comments (7)

kekiefer avatar kekiefer commented on July 18, 2024 1

pylepton is just for the breakout board. You should look at https://github.com/groupgets/purethermal1-uvc-capture

from pylepton.

junkert avatar junkert commented on July 18, 2024

Try something like this:

def capture(device="/dev/spidev0.1"):
    with Lepton(device) as l:
        return (data, _ = l.capture())

from pylepton.

kekiefer avatar kekiefer commented on July 18, 2024

What was the problem here? Can we close this issue?

from pylepton.

amosgolan1 avatar amosgolan1 commented on July 18, 2024

Hi, I'm getting a similar error and can't resolve by substituting the device to device="/dev/spidev0.1. was this ever resolved? I don't really understand what my error means as well...

I ran the example usage code (saved the file on my machine as "test_pylepton.py") and tried to run it using python3 and got this error:

Traceback (most recent call last):
File "test_pylepton.py", line 5, in
with Lepton() as l:
File "/Users/.../GetThermal/pylepton/pylepton/Lepton.py", line 82, in enter
self.__handle = open(self.__spi_dev, "wb+", buffering=0)
PermissionError: [Errno 1] Operation not permitted: '/dev/spidev0.0'

Could you please advise what I'm doing wrong here?
My camera and setup work fine with GetThermal or other apps.

Any help would be very much appreciated
Thanks!

from pylepton.

kekiefer avatar kekiefer commented on July 18, 2024

GetThermal? Do you have a breakout board or a PureThermal board?

from pylepton.

amosgolan1 avatar amosgolan1 commented on July 18, 2024

Thanks for your reply @kekiefer. I have a PureThermal Mini connected to my mac over USB.
https://store.groupgets.com/products/purethermal-mini-flir-lepton-smart-i-o-module

I meant that I was able to follow the installation of the GetThermal app:
https://github.com/groupgets/GetThermal

And it works well with my camera, as well as just using it as a "normal" webcam with OBS. I'm interested in using the PureThremal mini with OpenCV+python to do some analysis and get temperature readings for each pixel. I was hoping to use pylepton to do so.
Thank you for your help!

from pylepton.

al2k avatar al2k commented on July 18, 2024

Check your cable setup. An incorrect setup will throw this error when using pylepton 3.0.

This guide from FLIR shows the correct GPIO setup: https://lepton.flir.com/forums/topic/pylepton-overlay-guide-2-0-for-raspbian-pixel/

from pylepton.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.