实际上,当传递硬件触发器并访问图像以进行进一步处理时,我想从 basler 相机拍摄图像。如何在 pylon 中使用 python 配置硬件触发器?
You need to specify the trigger source and set it on.
from pypylon import pylon
camera = pylon.InstantCamera(pylon.TlFactory.GetInstance().CreateFirstDevice())
camera.Open()
camera.TriggerSource.SetValue("Line1")
camera.TriggerMode.SetValue("On")
camera.StartGrabbing(pylon.GrabStrategy_LatestImageOnly)
grabResult = camera.RetrieveResult(5000, pylon.TimeoutHandling_ThrowException)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.