My PTZ camera auto focus and adjust images on pan-tilt-zoom and on some object appear in camera. I want to disabled those features.
I'm using python-onvif-zeep library https://github.com/FalkTannhaeuser/python-onvif-zeep.git
The operation guide of onvif here https://www.onvif.org/onvif/ver20/util/operationIndex.html
The specific function I want to send request is SetImagingSettings https://www.onvif.org/onvif/ver20/imaging/wsdl/imaging.wsdl#op.SetImagingSettings
I've try to create the request as below
request = controller.imaging.create_type('SetImagingSettings')
video_sources = controller.media.GetVideoSources() # get video source to fetch token
request.VideoSourceToken = video_sources[0].token
request.ImagingSettings = {
'Brightness': 200,
'Focus': {
'AutoFocusMode': 'MANUAL'
}
}
controller.imaging.SetImagingSettings(request)
Without the 'Focus' part, the code work well that update the Brightness value.
My expectation: the imaging settings be update, that disabled auto focus.
But I get a general error said "zeep.exceptions.Fault: The requested settings are incorrect" Thanks everyone!