You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def __enter__(self) -> "HikCamera":
"""
Camera initialization : open, setup, and start grabbing frames from the device.
"""
# Open the camera with MVS SDK with exclusive access
assert not self.MV_CC_OpenDevice(hik.MV_ACCESS_Exclusive, 0)
# Initialize the camera with a fixes set of settings
# TODO rember setting
self.setitem("TriggerMode", hik.MV_TRIGGER_MODE_ON)
self.setitem("TriggerSource", hik.MV_TRIGGER_SOURCE_SOFTWARE)#这里把hik.MV_TRIGGER_SOURCE_SOFTWAR设定为0无法生效。
self.setitem("AcquisitionFrameRateEnable", False)
self.setting()
# Set the camera settings to the user-defined settings
if self.setting_items is not None:
if isinstance(self.setting_items, dict):
self.setting_items = self.setting_items.values()
for key, value in self.setting_items:
self.setitem(key, value)
The text was updated successfully, but these errors were encountered:
您好,请问如何设定硬触发,设定无法生效,触发断言函数。有什么好的设定方法吗?
The text was updated successfully, but these errors were encountered: