Error when streaming from camera

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()

Hi @Paulo,
It seems that you are using a PixelFormat in the camera which is not supported by the underlying converter of the GenICam.vin driver.

Which PixelFormat is selected in your camera, and can you use another one which works?

Hi @Sebastian , thanks for replying.
I’m using this pixel format BiColorRGB8

Hello @Sebastian .
I change to RGB8 and now i can access the buffer.

Hi @Paulo,
Then it is clear that we have a problem with the BiColorRGB8 PixelFormat which was also already confirmed by our development. We will work on fixing it. For now, you have to work with RGB8 and a reduced performance. I hope this is not a problem for you in the meantime.

I also checked that it works with the BGRa 8-Bit pixel format. I don’t think it’ll be a problem for now, what I’m going to try to do now is manipulate the images.