google-coral / example-object-tracker

Apache License 2.0
105 stars 32 forks source link

Video is different shades of red #18

Open myronschram opened 2 years ago

myronschram commented 2 years ago

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 commented 2 years ago

I just tried another camera and it was red also

titocapovilla commented 1 year ago

Same problem here @hjonnala

Mompel226 commented 1 year ago

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.