example-object-tracker icon indicating copy to clipboard operation
example-object-tracker copied to clipboard

Video is different shades of red

Open myronschram opened this issue 3 years ago • 3 comments

Description

The video is streaming only using shades of red. How do I correct this? In my other apps is streams in full color. I am using a Raspberry PI 4

Click to expand!

Issue Type

Bug

Operating System

Linux

Coral Device

USB Accelerator

Other Devices

No response

Programming Language

Python 3.9

Relevant Log Output

No response

myronschram avatar Apr 26 '22 18:04 myronschram

I just tried another camera and it was red also

myronschram avatar Apr 26 '22 21:04 myronschram

Same problem here @hjonnala

titocapovilla avatar Apr 21 '23 18:04 titocapovilla

In the gstreamer.py script change line 252 from:

scale_caps = 'video/x-raw,width={width},height={height}'.format(width=scale[0], height=scale[1]) to: scale_caps = 'video/x-raw, format=RGB, width={width},height={height}'.format(width=scale[0], height=scale[1])

This solves the reddish colour issue.

Mompel226 avatar Jun 01 '23 02:06 Mompel226