Hi Guys,
I’m using nvgstcapture / gstreamer to stream a camera feed from a MIPI CSI camera.
What is the best way of converting the color stream into monochrome?
Thanks
Lasse R.
Hi Guys,
I’m using nvgstcapture / gstreamer to stream a camera feed from a MIPI CSI camera.
What is the best way of converting the color stream into monochrome?
Thanks
Lasse R.
With gstreamer, you would convert into GRAY8 or GRAY16.
You may try these:
gst-launch-1.0 videotestsrc ! video/x-raw, format=BGR ! videoconvert ! video/x-raw, format=GRAY8 ! videoconvert ! xvimagesink
#or
gst-launch-1.0 videotestsrc ! video/x-raw, format=BGR ! videoconvert ! video/x-raw, format=GRAY16_LE ! videoconvert ! xvimagesink
Thanks !!
I will try this
Yours truly
Lasse
I tried it and it works however the performance is very sluggish (the camera is lagging) is there a way to do this in hardware somehow?
Thanks
Lasse
It may depend on your sensor and how you get frames.
I have checked that 1080p @30 fps works fine from nvarguscamerasrc on AGX Xavier with R32.4.2:
gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM),format=NV12, width=1920,height=1080,framerate=30/1' ! nvvidconv ! video/x-raw, format=GRAY8 ! videoconvert ! fpsdisplaysink video-sink=xvimagesink