python-onvif-zeep icon indicating copy to clipboard operation
python-onvif-zeep copied to clipboard

How to control absolute focus?

Open tankienleong opened this issue 4 years ago • 1 comments

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.

tankienleong avatar Aug 19 '21 03:08 tankienleong

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!

MaarufB avatar Dec 15 '21 03:12 MaarufB