luxonis / depthai-unity

DepthAI Unity Library, Unity projects and examples (OAK For Unity)
MIT License
200 stars 34 forks source link

Enable auto focus. #32

Closed Mr-ider closed 1 year ago

Mr-ider commented 1 year ago

How can I enable auto focus?My device is OAK-D-Lite,the device suport auto focus.

gespona commented 1 year ago

Hi @Mr-ider , sorry for my late response here.

https://docs.luxonis.com/projects/hardware/en/latest/pages/guides/af_ff.html?highlight=auto%20focus

To enable AF you just need to setup manualFocus to 0

config.manualFocus = 0; // 0: Autofocus

gespona commented 1 year ago

@Mr-ider could you confirm that worked for you?

Mr-ider commented 1 year ago

@gespona Sorry for just seeing your reply, this issue has been resolved. Thank you for your reply!