I am currently trying to adjust my target range on the OpenMV PT with a lepton 3.5. When I was looking at the example given, I got the error: RunTimeError: Sensor Control Failed
Which occurs on line 37: sensor.ioctl(sensor.IOCTL_LEPTON_SET_MEASUREMENT_MODE, True)
There do seem to be previous posts about this topic with no response/solution. I was wondering if anyone found a solution, or the cause for the problem?
That command failing implies you don’t have a FLIR Lepton 3.5 that works and has radiometry support. Normally, this command would never throw an error. Did you buy the correct model of FLIR Lepton?
Sorry I didn’t see the response earlier. Yes it is a lepton 3.5 I double checked the receipt, and it successfully works with the fir package. I was away for the past week, but occasionally the fir model has an issue detecting the Lepton and I have to reseat it to be detected, so I will try to see if that may have been the issue and repost here if I am unable to get it working, but have the FIR package running.
Hi, you have to plug the device into the main camera sensor header via our lepton adapter bird for the snot module to work. FIR only works when it’s an external board.
To draw the array on an image. The default example shows that off.
…
Please ignore the FLIR lepton examples that use it as sensor. Those will not work on the pure thermal as the OV5640 is the main sensor. You just need to use it via the FIR module. The FIR module exposes all the features you need though. The sensor will be in measurement mode by default and provide a valid IR array of temperature readings.