PDA

View Full Version : DFM 25GX236-ML Ethernet Camera Bayer Problem (wrong colors)



lmat86
August 20, 2015, 10:10:36
Hi

I have ethernet camera, model: DFM 25GX236-ML. I have compiled aravis with option --disable-gst-0.10-plugin (I want to use only gstreamer-1.0). I tray to use gstreamer to get color image.

My gstreamer pipline:
gst-launch-1.0 aravissrc camera-name="The Imaging Source Europe GmbH-33510663" offset-x=0 offset-y=0 ! 'video/x-bayer,width=640,height=480,format=gbrg' ! bayer2rgb ! ximagesink

I gets image with rong colors (all image is green -- 1793).
I was trying to use use differents formats for bayer (bggr, grbg, gbrg, rggb) but my pipline only working with gbrg (with different format I get error streaming task paused, reason not-negotiated (-4))
My gstreamer version is: 1.4.5-1.

Thanks in advance for Help

PS aravis viewer (arv-viewer) also show wrong colors.

Stefan Geissler
August 20, 2015, 12:21:54
Hello

you can use the "capssetter" plugin to change the bayer pattern:


gst-launch-1.0 aravissrc camera-name="The Imaging Source Europe GmbH-33510663" ! video/x-bayer ! capssetter join=false caps="video/x-bayer,format=rggb" ! bayer2rgb ! videoconvert ! ximagesink


This will give a correct bayer pattern, but your image will be very green. So you have to setup the green, red and blue values manually.

Currently we work on our plugins to make them GStreamer 1.0 compatible.

lmat86
August 20, 2015, 14:21:08
Thank you for help. What is source of this color problem (that i got good bayer pattern but in image is too many of green color)? Is bayer2rgb in gstreamer-1.0 broken or maybe aravis gives wrong data? I have noticed that for gstreamer-0.10 was plugin tiscolorize, is this plugin responsible for displays proper colors?

Stefan Geissler
August 20, 2015, 16:17:38
Hi

the reason is, that the camera does not do white balance on its own. It must be done in software. Therefore, we created the GStreamer 0.10 modules. You may look at https://github.com/TheImagingSource/tiscamera/wiki/Getting-Started-with-USB-2.0-cameras-on-a-Raspberry-PI-or-on-other-Linux-Systems . I made a manual, how to get and build them.

lmat86
August 24, 2015, 08:36:45
Using gstreamer 0.10 solve my problems, Thank you for help.