'Wrong Gain Factors on UEye camera + PyUEye

I'm trying a bunch of IDS Ueye cameras and I happen to have a problem with the default values. When I launch ueyedemo on my Ubuntu 18.04, I get images like this:

Image as I see it

But when I use the application's File -> Save Image I get an image like this:

Image as the software sees it

Anyway, I can correct the result to real life colors by going to uEye -> Properties -> Image where I change these gain values:

Gain values as they come

To these:

New gain values

And get an image like this:

Image with real colors

A colleague of mine has tried the camera on Windows 10 and this does not happen. I'd either like to know how to solve this via UEye configuration or via PyUEye, because there seems to be no documentation of the library available online.

For the moment, I'm using the standard example code that IDS provides, found here: Link

I've found nothing after a while searching. Is there any documentation? Is this a known issue?

Thanks! Any help is appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source