I’m using a DALSA Liena 4K.
I’m using CVB version 14.01.002, with Python 3.11.
I’m trying to stream the camera but I can’t get the images. When I use the GenICam.vin driver I get the following error “ValueError: no converter available”. I tested it with CVMock.vin and got results, but since CVMock is just for testing I know that my problem is with the driver I’m using. However, I downloaded the Dalsa drivers and noticed that there is no specific one for this camera. Is there any way to use python with this model of camera?
I’ll leave the code below:
import cvb
install_path = cvb.install_path()
vin_device: cvb.Device = cvb.DeviceFactory.open(f"{install_path}\\drivers\\GenICam.vin")
#vin_device: cvb.Device = cvb.DeviceFactory.open(f {install_path}\\drivers\\CVMock.vin")
stream = vin_device.stream()
stream.start()
try:
for i in range(0 ,10):
image, status = stream.wait_for(1000)
if status == cvb.WaitStatus.Ok:
print("Acquired image " + str(i) + " into buffer " + str(image.buffer_index) + ".")
else:
raise RuntimeError("timeout during wait" if status == cvb.WaitStatus.Timeout else "acquisition aborted")
finally:
stream.try_abort()