Autofocus does not seem to work reliably

Hi all,

My OV5640 autofocuses sometimes but other times is remains blurry.
Is there any way to trigger the autofocus of the module in python?
I have tried…

sensor.IOCTL_TRIGGER_AUTO_FOCUS, True

… but it seems to have no effect.

Any hints appreciated.
Thanks
Andy

sensor.ioctl(sensor.IOCTL_TRIGGER_AUTO_FOCUS, True)

Fixed it.

2 Likes