How to use 'set' methods on Lepton 3.5 with purethermal mini

117 views
Skip to first unread message

Nadav Silverman

unread,
Jun 21, 2020, 1:49:45 AM6/21/20
to Flir Lepton
Hello everyone,

Apparently I don't understand the syntax of the SDK. I am coding in python and I can't seem to get some 'set' commands to work.
In the "Quick Start Guide: Getting Started Programing with the Python SDK" I saw the command "lep.vid.SetPcolorLut(0)". according to that template I tried changing the FFC mode to manual with lep.sys.SetFfcShutterModeObj(0) but I get the following error:

Traceback (most recent call last):
  File "cci_and_image.py", line 27, in <module>
    lep.sys.SetFfcShutterModeObj(0)
TypeError: No method matches given arguments for SetFfcShutterModeObj


I get the same error when trying other 'set' commands like SetFramesToAverage.
What is the correct syntax for those methods and what arguments do they receive? 
I saw that many people use HexaDecimal and using many arguments but I can't figure out from the documentation how to do it.


Thanks,
Nadav 

Benjamin Kolber

unread,
Aug 5, 2020, 12:03:06 AM8/5/20
to Flir Lepton
When you say 'set' are you trying to set the SDK or OpenCV videocapture? I believe the SDK is built atop OpenCV, in which case I would ask if you are taking still images or working with a live video stream. In either case, I would advice you capture images with opencv if you are already in Python and just ignore the SDK. Check out https://github.com/LJMUAstroecology/flirpy

Shavua Tov,
Ben
Reply all
Reply to author
Forward
0 new messages