I have a linea camera, model# LA_HM_16K07A_00_R, with a frame grabber card Xtium-CLHS PX8 board, model number OR-Y8S0-XPX70. Using sapera CamExpert version 8.73.00.2253.
I can acquire an image from cam expert so I know the hardware is working.
However I want to programmatically trigger acquisition using a python script and CVBpy. I installed cvb 14 but can’t figure out how to use the camera with the cvb driver. I tried opening cvb viewer and trying to load the driver .vin file but it fails to load. see image. I think this is a similar issue causing my python script to fail to acquire an image.
Script here:
import os
import cvb
import datetime
def main(filename):
with cvb.DeviceFactory.open(
os.path.join(cvb.install_path(), “drivers”, “CVXtiumCLHSPX8.vin”),
cvb.AcquisitionStack.Vin) as device:
stream = device.stream()
stream.start()
image, status = stream.wait()
if status == cvb.WaitStatus.Ok:
image.save(filename)
stream.abort()
main(‘image.jpg’)
Error message:
Traceback (most recent call last):
File “…\streaming_simple.py”, line 26, in
main(‘image.jpg’)
File “…\streaming_simple.py”, line 13, in main
with cvb.DeviceFactory.open(
RuntimeError: no specific message
From cvb viewer: