[libcamera-devel,0/4] Focus feedback control
mbox series

Message ID 20200626102531.1187650-1-naush@raspberrypi.com
Headers show
Series
  • Focus feedback control
Related show

Message

Naushir Patuck June 26, 2020, 10:25 a.m. UTC
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(-)