Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video is different shades of red #18

Open
myronschram opened this issue Apr 26, 2022 · 3 comments
Open

Video is different shades of red #18

myronschram opened this issue Apr 26, 2022 · 3 comments
Assignees
Labels
Hardware:USB Accelerator Coral USB Accelerator issues subtype:ubuntu/linux Ubuntu/Linux Build/installation issues type:bug Bug

Comments

@myronschram
Copy link

myronschram commented Apr 26, 2022

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

@google-coral-bot google-coral-bot bot added Hardware:USB Accelerator Coral USB Accelerator issues subtype:ubuntu/linux Ubuntu/Linux Build/installation issues type:bug Bug labels Apr 26, 2022
@myronschram
Copy link
Author

I just tried another camera and it was red also

@titocapovilla
Copy link

titocapovilla commented Apr 21, 2023

Same problem here @hjonnala

@Mompel226
Copy link

Mompel226 commented Jun 1, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hardware:USB Accelerator Coral USB Accelerator issues subtype:ubuntu/linux Ubuntu/Linux Build/installation issues type:bug Bug
Projects
None yet
Development

No branches or pull requests

4 participants