Incorrect Colors with Dalsa Genie nano C4900

I have been trying to get images from the Genie nano C4900 using python with cvb, but they show up with muted colors when compared to the capture taken from Sapera own viewer:

At first i thought it was a situation of changing R and B channels but it does not seem like it, as the blue from the corner of the painting is right on. Still, the issue seems to be specifically on the red channel, as the chair should be red.
I did try to configure the node maps to have the same exposure, balance ratio and image format to no improvement from that of the Sapera configuration. The same problem happens with the cvb viewer program.

EDIT: Forgot to include the code sample used for image aquisition with cvb:

    import cvb
    if __name__ == "__main__":
        path = cvb.install_path() + "/Drivers/"
        with as device:
              stream =
              image, status = stream.wait_for(1000)
              if status != cvb.WaitStatus.Ok:
                    raise RuntimeError("timeout during wait" 
                    if status == cvb.WaitStatus.Timeout else 
                    "acquisition aborted")

Python environment is with Anaconda on Windows


Would you please let us know the color format that you choose in CVB and Sapera? To get the setting in CVB, you can simply send us the driver Configuration file “GeniCam.ini” which can be found under “%cvbdata%Drivers”.With Sapera viewer, du you mean the CamExpert? there you can save the camera setting which is shown in screenshot. Please send us both files from CVB and Sapera.

Are both images saved in bmp format?
Furthermore, Do you use the preprocessing in Camexper?

1 Like


Both images were saved in bmp, i just had to convert externally to jpeg so i could upload it here. Images were obtained in 8 bit RGB format.

I do not use any of those, and they are all greyed out to me:

The cfg from cvb and camera settings from sapera are in the zip file (2.5 KB)

Thanks for the files even though we need one more information!
Please open the “Common Vision Blox Viewer” which is already installed by CVB installation and load the “” file via file>open. Then open the device Nodemap demonstrated in the attached screenshot and send us the pixelformat mentioned there.

We will try to reproduce the problem on our side, as soon as we have the information!

The viewer says it cannot load the vin file even with admin rights:

If it helps i’m sending my “” (1.7 MB)

Please be sure that the “” file is not used in another Application simultaneously. When you can load this file in your application there should be no problem to load it in the CVBViewer.

This file does not help, it does not contain the nodemap.

I apologize, i noticed i forgot to save the configured device into it.
The Image Format is as follows:

Thanks for the information. I ask our software development team whether this color format is correctly supported or not. We do not have the same camera in our warehause but I search for another Geni Nano with the same color format and try to reproduce the behavior.

Meanwhile you can change color format in CVB to BayerGB8 or BayerBG8, that would probably solve the Problem.

1 Like

Thank you! Switching the pixel format to RAW ended up fixing it. Apparently this specific camera is able to output RGB or Bayer from its datasheet. I changed it in the .ini files to 0 for this.
Is there a proper way to do this from the python library?

1 Like

That is nice to hear that it works now as it is expected. Yes, there is a way to set the pixel format in the code but then you cannot use the driver and you should discover the connected camera in the code as well (discover_from_()) : Cvbpy: DeviceFactory Class Reference (

and use the function " set_parameter()" to set the pixel format in CVB Gen TL : Cvbpy: DiscoveryInformation Class Reference (

1 Like

Okay, thank you! I marked your previous reply as answer if someone ends up with the same situation as mine.