How to control absolute focus?
tankienleong opened this issue · 1 comments
tankienleong commented
I manage to run the relative focus and continuous focus but not absolute focus. There is no error but the camera focus is not move to the desired focus. I'm using DAHUA IPC-HFW2231T-ZAS-S2.
self.focus_request.Focus = {"Absolute":{"Position":selection}} # camera response wrong
self.focus_request.Focus = {"Relative":{"Distance":selection}} # ok
self.focus_request.Focus = {"Continuous":{"Speed":selection}} # ok
self.imaging.Move(self.focus_request)
Besides that the GetStatus always return focus position is 0.5 even I already adjust the camera focus through the web UI.
MaarufB commented
Hi bro could you tell me how did you manage to run continuous focus? I was able to create script for ContinuousMove but seems the Onvif camera doesn't zoom itself. Thanks in advance!