danjulio / lepton

Code and libraries to use a FLIR Lepton Thermal Imaging Camera Module
179 stars 37 forks source link

shutter control #42

Open radek9292 opened 1 year ago

radek9292 commented 1 year ago

hello, I'm using esp32 and I want to ask if it's possible to control the shutter through a python command. Or how it could be controlled otherwise through a command.

thanks. Radek

danjulio commented 1 year ago

Hello Radek,

I'm assuming you mean the tCam/tCam-Mini cameras. If so the answer is yes. There is a python driver that can open a socket connection to the camera and control it. You can get a single image at a time using the get_image routine or control streaming using the start_stream/stop_stream routines. I would also advise looking at the repo I dedicated to those cameras (I moved updates from this repo to that one because this repo was so large).

https://github.com/danjulio/tCam

Look in the python directory there.

If you are not referring to the tCam/tCam-Mini cameras then can you please elaborate a bit more about what you are after?

Regards, Dan

radek9292 commented 1 year ago

Thanks for the quick reaction.

My answer is yes. I'm talking about tcam, but I'm trying to use the mechanical aperture of the lens that lepton 3.5 has. Unfortunately, this cannot be controlled by commands to take a picture or video, so it only takes control of the recording rather than closing the lens.

danjulio commented 1 year ago

Oh! I see :-) The python driver has the run_ffc() command which should trigger the Lepton to perform a flat-field correction. As part of this it closes the shutter while it performs the FFC. Is this what you need? Otherwise I don't know have a way to just close the lens at any time (I'm not sure the Lepton even supports that).

radek9292 commented 1 year ago

Yes, that's exactly what I wanted. But I need only that command to close and open that lens.

danjulio commented 1 year ago

Ok if I close this?