Hi,
I followed this guide to setup my iMX6D with opencv 3.1 with a linux 2.7 image.
I’m trying to read the video stream from the CSI camera module using opencv for an image processing application. I can capture the stream successfully using:
imxv4l2videosrc device=/dev/video1 ! videoconvert ! video/x-raw, format=BGR ! appsink
But the effective FPS is only 12 at 680x480, which is too low for my application.
I noticed that the imx has a hardware accelerated gstreamer element (imxipuvideotransform). When I switched over to this element:
imxv4l2videosrc device=/dev/video1 ! imxipuvideotransform ! video/x-raw, format=BGR ! appsink
The resulting video was black. The pipeline outputs empty frames
I performed some tests using gst-launcher-1.0 with the following results:
gst-launcher-1.0 imxv4l2videosrc device=/dev/video1 ! imxipuvideotransform ! video/x-raw, format=BGR ! imxipuvideosink
The resulting display is half brown as can be seen attached [upload|hvL4/NiQ4RHgTxZWPVZIU25xdF8=]
gst-launcher-1.0 imxv4l2videosrc device=/dev/video1 ! imxipuvideotransform ! video/x-raw, format=BGRA ! imxipuvideosink
The resulting display looks normal as can be seen attached [upload|N8tbFMPfyKYEAPuOQRvgd0TX2AA=]
gst-launcher-1.0 imxv4l2videosrc device=/dev/video1 ! imxipuvideotransform ! video/x-raw, format=BGR ! imxeglvivsink
The resulting display is black as can be seen attached [upload|dKfs1Bp4RO7DkS+QFPXu2g8LM3Y=]
gst-launcher-1.0 imxv4l2videosrc device=/dev/video1 ! imxipuvideotransform ! video/x-raw, format=BGRA ! imxeglvivsink
The resulting display looks normal as can be seen attached [upload|ot2gRU375SHBkHhBRSd7mcm+Ko8=]