Hi,
I’m developing a C++ software (Raspian bulleye) with 64mp camera.
How can my program get / set focus distance using libcamera ?
request->metadata() don’t give this value … even before/during/after AF :
*** Before AF ***
ExposureTime = 19955 AnalogueGain = 6.000000 ColourCorrectionMatrix = [ 1.596178, -0.384719, -0.211457, -0.367937, 1.535122, -0.167189, -0.156247, -0.385099, 1.541346 ] FrameDuration = 370366 Lux = 298.862823 AeLocked = false ColourGains = [ 1.900310, 1.715962 ] DigitalGain = 1.002245 ColourTemperature = 5603 SensorBlackLevels = [ 4096, 4096, 4096, 4096 ] ScalerCrop = (0, 0)/9152x6944 SensorTimestamp = 313983954000
*** 1st frame during AF ***
ExposureTime = 19955 FocusFoM = 96174 SensorTimestamp = 314724656000 ScalerCrop = (0, 0)/9152x6944 Brightness = 0.500000 SensorBlackLevels = [ 4096, 4096, 4096, 4096 ] ColourTemperature = 5604 ColourGains = [ 1.900414, 1.715730 ] AeLocked = true Lux = 298.440308 FrameDuration = 370366 ColourCorrectionMatrix = [ 1.596107, -0.384578, -0.211526, -0.367889, 1.535166, -0.167281, -0.156264, -0.385012, 1.541276 ] AnalogueGain = 6.000000 DigitalGain = 1.002245 Contrast = 1.500000
*** During AF ***
ExposureTime = 19955 FocusFoM = 21802 AnalogueGain = 6.000000 ColourCorrectionMatrix = [ 1.596039, -0.384445, -0.211592, -0.367844, 1.535208, -0.167368, -0.156280, -0.384929, 1.541209 ] FrameDuration = 370366 Lux = 314.976654 AeLocked = true ColourGains = [ 1.900514, 1.715509 ] DigitalGain = 1.002245 ColourTemperature = 5605 SensorBlackLevels = [ 4096, 4096, 4096, 4096 ] ScalerCrop = (0, 0)/9152x6944 SensorTimestamp = 315465358000
*** After AF ***
ExposureTime = 19955 AnalogueGain = 5.990000 ColourCorrectionMatrix = [ 1.595387, -0.383163, -0.212222, -0.367413, 1.535610, -0.168201, -0.156435, -0.384135, 1.540570 ] FrameDuration = 370366 Lux = 293.685303 AeLocked = true ColourGains = [ 1.901968, 1.713780 ] DigitalGain = 1.003918 ColourTemperature = 5614 SensorBlackLevels = [ 4096, 4096, 4096, 4096 ] ScalerCrop = (0, 0)/9152x6944 SensorTimestamp = 337686474000
==> How to get focus distance value after AF ?
==> How to arbitrary set focus distance ?
Thanks for your help.