hl2ss
hl2ss copied to clipboard
Disable Auto Focus
Hello,
Is there a way to disable the autofocus in the client_stream_pv.py demo? I am looking to calibrate the HL2 camera with an external camera. Therefore, I require constant intrinsic parameters.
Thank you!
Hello, After start_subsystem_pv, add
client_rc = hl2ss_lnm.ipc_rc(host, hl2ss.IPCPort.REMOTE_CONFIGURATION)
client_rc.open()
client_rc.wait_for_pv_subsystem(True)
client_rc.set_pv_focus(hl2ss.PV_FocusMode.Manual, hl2ss.PV_AutoFocusRange.Normal, hl2ss.PV_ManualFocusDistance.Infinity, focus_value, hl2ss.PV_DriverFallback.Disable)
client_rc.close()
focus_value must be in the range [170,10000], 2000 is usually good.
Awesome! Closing this thread now. Thanks. :)