[onboard] camera Opencv

It seems that tx2 has opencv 2.4.13 onboard by default.

Have anyone tried to get the devboard camera functioning with opencv at tx2?
It seems that somehow a line should be used like that

cv::VideoCapture cap("nvcamerasrc ! 'video/x-raw(memory:NVMM), width=640, height=480, framerate=30/1, format=NV12' ! nvvidconv flip-method=2 ! nvegltransform ! nveglglessink -e");

There were found corresponding threads:
https://devtalk.nvidia.com/default/topic/907780/jetson-tx1/-python-how-to-use-tx1-camera-with-opencv/2
https://devtalk.nvidia.com/default/topic/987537/jetson-tx1/videocapture-fails-to-open-onboard-camera-l4t-24-2-1-opencv-3-1/1
https://devtalk.nvidia.com/default/topic/991337/how-to-capture-tx1-camera-with-opencv-/
https://devtalk.nvidia.com/default/topic/904949/jetson-tx1/how-to-get-tx1-camera-in-opencv/post/4787122/#4787122

Hi Andrey,

I got the TX2 and onboard camera working with opencv-3.2.0 (or 3.1.0) by building my own opencv library enabling gstreamer-1.0 support.
AFAIK, opencv4tegra doesn’t provides gstreamer-1.0 support.
You may check this topic [url]https://devtalk.nvidia.com/default/topic/1001696/jetson-tx1/failed-to-open-tx1-on-board-camera/post/5117834/#5117834[/url].