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

Colour-space displaying incorrectly

Open timayy opened this issue 4 years ago • 2 comments

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?

timayy avatar May 24 '21 02:05 timayy

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

manoj7410 avatar Jun 07 '21 05:06 manoj7410

@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.

timayy avatar Jun 08 '21 04:06 timayy