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

Patch applied to libcamera-apps #33

Open
galla15 opened this issue Nov 7, 2022 · 2 comments
Open

Patch applied to libcamera-apps #33

galla15 opened this issue Nov 7, 2022 · 2 comments

Comments

@galla15
Copy link

galla15 commented Nov 7, 2022

Hi,

I'm trying to implent a code that uses libcamera-apps librairies to control a Arducam 64MP. I can't get the autofocus to work like your libcamera-still does. I applied all the patches that I found in this repo (under realese). Could you please provide the source code of your libcamera-apps (installed through the script) or a patch to apply to the base raspberry/libcamera-apps.

Thanks

@ivolucas
Copy link

+1

@galla15
Copy link
Author

galla15 commented Nov 10, 2022

I've actually found the solution to my problem. I didn't set the auto focus mode to auto before sending an auto focus trigger. This can be achieved using the method SetControls() form libcamera-apps lib.

        libcamera::ControlList controls;
        controls.set(libcamera::controls::AfMode, libcamera::controls::AfModeAuto);
        SetControls(controls);

Then the auto focus can be triggered using the following:

        libcamera::ControlList controls;
        controls.set(libcamera::controls::AfTrigger, libcamera::controls::AfTriggerStart);
        SetControls(controls);

All the available controls can be found https://github.com/raspberrypi/libcamera/blob/main/src/libcamera/control_ids.yaml

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