Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shutter control #42

Open
radek9292 opened this issue May 23, 2023 · 5 comments
Open

shutter control #42

radek9292 opened this issue May 23, 2023 · 5 comments

Comments

@radek9292
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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

@danjulio
Copy link
Owner

Ok if I close this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants