Improving AR Camera focus
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.
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
Hi. Thanks for the suggestion!
S.