[libcamera-devel] [PATCH 0/4] Focus feedback control

Naushir Patuck naush at raspberrypi.com
Fri Jun 26 12:25:27 CEST 2020


Hi all,

A number of our users use a focus metric for manually focussing the HQ camera
lenses.  This metric is derived from the ISP statistics block.

This set of changes adds a Figure of Merit (FoM) libcamera control that can be
used for such situations.  As a note, this is a singular value that
gives a numeric score for how in-focus an image is, not a means to run an AF
algorithm.  It is up to the IPA to calculate this score however it sees fit.
The Raspberry Pi averages the middle two regions in a 4x3 grid to start with.
We may change this later when we have adjustable regions.

As always, comments welcome.

Regards,
Naush


Naushir Patuck (4):
  libcamera: controls: Add focus Figure of Merit (FoM) control
  libcamera: ipa: raspberrypi: focus: Fix for uninitialised variable
  libcamera: ipa: raspberrypi: Populate libcamera metadata after
    controller process
  libcamera: ipa: raspberrypi: Populate focus FoM from the ISP
    statistics

 src/ipa/raspberrypi/controller/focus_status.h |  2 +-
 src/ipa/raspberrypi/controller/rpi/focus.cpp  |  2 +-
 src/ipa/raspberrypi/raspberrypi.cpp           | 15 ++++++++++++++-
 src/libcamera/control_ids.yaml                | 11 +++++++++++
 4 files changed, 27 insertions(+), 3 deletions(-)

-- 
2.25.1



More information about the libcamera-devel mailing list