ipa: rpi: Add "focus" algorithm

Adds FocusStatus to the image metadata, containing contrast measurements
across the image. Optionally also prints a contrast measure to the
console, to aid in manual adjustment of the lens. Note that it is not an
actual auto-focus algorithm that can drive a lens!

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
David Plowman
2020-06-25 17:47:51 +03:00
committed by Laurent Pinchart
parent 0952f2014d
commit 23e15e72f9
5 changed files with 113 additions and 0 deletions
+4
View File
@@ -412,5 +412,9 @@
"rpi.sharpen":
{
},
"rpi.focus":
{
"print": 1
}
}