Sometimes you can use the following approach to detect the sharpness.

https://www.spiedigitallibrary.org/conference-proceedings-of-spie/7820/1/Print-image-sharpness-analysis-based-on-gray-level-co-occurrence/10.1117/12.866719.short?SSO=1
The texture parameters can be calculated by the pgmtexture prog of the netpbm tools.

best greetings

Nicolaas

On 13.07.21 10:39, Marcus Meissner wrote:
Hi,

On Mon, Jul 05, 2021 at 10:37:24AM +0000, C V Horie wrote:
I am using Python/Arduino to control a carriage from which I am taking a mosaic 
of photos, using Olympus E-M5 ii.
The shutter is controlled by hacking the USB cable.

I should like to control the manual focus at a constant distance/magnification 
by moving the camera up and down automatically - like the lens AF system.

Has anyone tackled this problem?
I think I have not heard of such an approach yet, sorry.

Ciao, Marcus


_______________________________________________
Gphoto-devel mailing list
Gphoto-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gphoto-devel

--
# Dr. N. Busscher, University of Kassel
# D-37213 Witzenhausen, Nordbahnhofstrasse 1a
# tel 0049 (0) 5542 98 1712/1632, Fax: 0049 (0) 5542 98 1713
# web: http://www.uni-kassel.de/go/lebensmittel



_______________________________________________
Gphoto-devel mailing list
Gphoto-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gphoto-devel

Reply via email to