List
Improving AR Camera focus
Posted Date: 2018-02-02 14:23     Edited Date: 2018-02-03 7:08     Writer: inactive

Hello again!

Sometimes I'm having some instability because of camera going out of focus and then focused again. When the camera is trying to auto focus it zooms in and out a little bit, so often it will cause the objects to "change size" while it's doing that. On some occasions, it will go very out of focus until it's focused again, which makes the tracking stop working for a second.

Is there a way to modify the focus mode to make it more stable? I have searched around in the files but I didn't find the place to change between modes. I had to set the focus mode to CONTINUOUSAUTO in another SDK but I couldn't find the place to do it with MAXST. Any suggestions?

Thank you for the very fast replies every time! :)

S.

Posted Date: 2018-02-03 3:39     Edited Date: 2018-02-03 3:39     Writer: inactive

You can use CameraDevice.GetInstance().SetFocusMode() function to change the focus mode.

Our sdk start camera with continuous auto mode automatically and the focus mode isn't changed if you don't change it.

If you don't want continuous focus mode please set it as auto mode.

Please refer code snippet below.

CamraDevice.GetInstance().SetFocusMode(FocusMode.FOCUS_MODE_CONTINUOUS_AUTO) // continuous mode 

CamraDevice.GetInstance().SetFocusMode(FocusMode.FOCUS_MODE_AUTO) // auto focus mode. focus only once

- Maxst support team

Posted Date: 2018-02-03 6:54     Edited Date: 2018-02-03 6:54     Writer: inactive

Hi. Thanks for the suggestion! 

S.