You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importnumpyasnpimportcv2frompyleptonimportLeptonwithLepton() asl:
a,_=l.capture()
cv2.normalize(a, a, 0, 65535, cv2.NORM_MINMAX) # extend contrastnp.right_shift(a, 8, a) # fit data into 8 bitscv2.imwrite("output.jpg", np.uint8(a)) # write it!
Output:
cbusa@ubuntu:~/pylepton$ sudo python main.py
Traceback (most recent call last):
File "main.py", line 5, in<module>
with Lepton() as l:
File "/home/cbusa/pylepton/pylepton/Lepton.py", line 84, in __enter__
ioctl(self._handle, SPI_IOC_RD_MODE, struct.pack("=B", Lepton.MODE))
IOError: [Errno 25] Inappropriate ioctl for device
What I have already tried:
Change from Lepton() to Lepton("/dev/spidev-0.1")
Use different branches of the project
Tested with the pylepton_capture application
All of them produce the same error.
Interesting fact is: when I use the GetThermal-v0.1.4-x86_64-Linux.AppImage, I have no issues.
Do you have any idea how should I proceed with the analysis?
The text was updated successfully, but these errors were encountered:
I am experiencing the issue running the example code from the README.md with a Lepton3.5 on Ubuntu 18
$ uname --all Linux ubuntu 4.18.0-25-generic #26~18.04.1-Ubuntu SMP Thu Jun 27 07:28:31 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Code:
Output:
What I have already tried:
pylepton_capture
applicationAll of them produce the same error.
Interesting fact is: when I use the
GetThermal-v0.1.4-x86_64-Linux.AppImage
, I have no issues.Do you have any idea how should I proceed with the analysis?
The text was updated successfully, but these errors were encountered: