Thanks for reporting this issue. Auto-focus should be supported for this Arducam module, but it's possible the sensor is misdetected as IMX378 instead of IMX477. Streaming would still work, but that a wrong auto-focus driver to be selected in firmware. A possible workaround is to delay a bit the I2C enumeration of the sensor. Could you try with the latest release 22.214.171.124 this patched firmware:
(internal note: same as https://artifacts.luxonis.com/artifactory/luxonis-myriad-snapshot-local/depthai-device-side/cf7c7f7bcf2bdd754d334be0b401a14f7e566ad1/)
Set the path to it as an environment variable:
How to set the env var depends on the terminal used. Can also be done by adding at the very beginning of
os.environ['DEPTHAI_DEVICE_BINARY'] = '/home/user/Downloads/fw-fix-imx477-detect.mvcmd'
The script should print a warning:
[2022-01...] [warning] Overriding firmware: /home/user/Downloads/fw-fix-imx477-detect.mvcmd
Let us know if this helps. If it doesn't, I'll try to prepare a different workaround.