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

Colour-space displaying incorrectly #10

Open
timayy opened this issue May 24, 2021 · 2 comments
Open

Colour-space displaying incorrectly #10

timayy opened this issue May 24, 2021 · 2 comments
Assignees
Labels
type:support Support question or issue

Comments

@timayy
Copy link

timayy commented May 24, 2021

I seem to get inverted colours when using this with some cameras (i.e. classic purple skin look).

I've attempted adjusting the sink caps (BGR) in the GStreamer video convert and also tried adjusting the v412 driver's pixel format (v4l2-ctl -v pixelformat=UYVY or v4l2-ctl -v pixelformat=RGB3) - but no luck.

Opening a regular GStreamer sink displays correctly coloured video - i.e. gst-launch-1.0 v4l2src ! "video/x-raw,framerate=30/1,format=UYVY" ! v4l2h264enc extra-controls="controls,h264_profile=4,h264_level=10,video_bitrate=256000;" ! video/x-h264,profile=high ! h264parse ! queue ! matroskamux ! filesink location=foo.mkv

Anyone else had this issue?

@manoj7410
Copy link

@timayy On which platform are you seeing this issue ? Dev board or on some other machine ?

@timayy
Copy link
Author

timayy commented Jun 8, 2021

@manoj7410 I think this will happen regardless of platform. It depends on the format of the connected camera I believe. It can be fixed by specifying the incoming format in SRC_CAPS of the pipeline building function - i.e. '...format={gst_format_here}'.

I have another question too. Is it possible to run detect.py without a monitor connected, and without having to change ximagesink to fakesink? For example; if a monitor was connected while detect.py was already running, the screen would show the python GI GUI working as normal.

@hjonnala hjonnala added the type:support Support question or issue label Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:support Support question or issue
Projects
None yet
Development

No branches or pull requests

4 participants