Git Product home page Git Product logo

Comments (7)

tvoverbeek avatar tvoverbeek commented on June 16, 2024

I guess you are using the Arducam autofocus camera.
They have their own modified libcamera and my guess is that AfTrigger is not exposed in their their bindings.
Their libcamera version might also be out of step with the RPi version.
Anyway AfTrigger is not available in the RPi libcamera version (at least it was not a few weeks ago when I last checked)

from picamera2.

davidplowman avatar davidplowman commented on June 16, 2024

Sorry, I'm afraid that's correct, autofocus is not currently available in the Raspberry Pi versions of these libraries.

from picamera2.

ketai-dhr avatar ketai-dhr commented on June 16, 2024

@tvoverbeek
It is indeed an Arducam camera.

from picamera2.

ketai-dhr avatar ketai-dhr commented on June 16, 2024

@davidplowman
Well, thanks for your reply.

from picamera2.

surak avatar surak commented on June 16, 2024

When you have the libcamera from Arducam installed, this works in python:

picam2.set_controls({"AfTrigger": 0})

from picamera2.

millermuttu avatar millermuttu commented on June 16, 2024

When we trigger Aftirigger using the below code,

picam2.set_controls({"AfTrigger": 0})

How do you wait until the autofocus happens or know that image is focused?

from picamera2.

davidplowman avatar davidplowman commented on June 16, 2024

This answer is specific to Raspberry Pi camera modules that support autofocus (namely the Camera Module 3). I don't know if it works with Arducam modules or software; if it doesn't you would need to go to Arducam for support.

After triggering an autofocus cycle you need to watch the AfState metadata so discover when it's finished. This is actually all done for you if you call picam2.autofocus_cycle().

from picamera2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.