Closed AlejandroDiazD closed 2 weeks ago
Update: I almost solved the issue (@Corallo ).
The problem was related to the image rotation of the camera. To solve it I changed the rotation from the web interface in /video/installation.
Now the only problem is the color representation, we can see how the blue parts of the image are seen as brown.
The original image:
The obtained image:
Do you know how can I solve it?
Thanks!
Hi @AlejandroDiazD
Good that you solved the issue by yourself, I guess if you want to keep the image flipped, you can try to flip also the resolution (960x1280). I am keeping this issue open until we document this behavior.
Regarding the color problem, I think it is just that cv2 expects the color format in bgr when you save the image, while your frame is in rgb.
try
bgr_img = cv2.cvtColor(frame, cv2.COLOR_RGB2BGR)
It worked! :)
Thank you @Corallo, feel free to mark the issue as solved when you consider.
We keep in contact.
Hello,
I'm trying to, using a python script, read an image from video streaming and later write it on my axis camera device. The objective is to process that image using a dnn similarly to the object-detector-python example, but my current issue is just about reading the image from video streaming.
I have followed the steps described in object-detector-python example, but for the following image (screenshot from the web interface of the camera):
I'm getting the following image:
Next, I provide my specific case characteristics:
I also provide some reproducible code:
I'm running that code inside a docker container based on a docker image built using the Dockerfile provided in the object-detector-python example.
Thank you for your time.