7 Replies Latest reply on Nov 13, 2017 5:21 PM by Intel Corporation

    How to get  VGA camera(optical flow)  Image?

    adazio

      I'm using intel aero RTF. Firmware is 1.4.0.

       

      I want to show VGA camera(optical flow) image.

       

      I find the 2way,

      First, aero wiki document. 06 Computer Vision 3D AI · intel-aero/meta-intel-aero Wiki · GitHub

       

      It show example code for record real sense camera. So I modify /dev/video13 -> /dev/video0

      gst-launch-1.0 v4l2src device=/dev/video13 do-timestamp=true ! video/x-raw, format=YUY2, width=640, height=480, framerate=30/1 ! autovideoconvert ! vaapih264enc ! rtph264pay ! filesink location=video13.mp4

      ->

      gst-launch-1.0 v4l2src device=/dev/video0 do-timestamp=true ! video/x-raw, format=YUY2, width=640, height=480, framerate=30/1 ! autovideoconvert ! vaapih264enc ! rtph264pay ! filesink location=video0.mp4

       

      It occur error show :

      ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device '/dev/video0' is not a capture device.

      Additional debug info:

      ../../../gst-plugins-good-1.10.4/sys/v4l2/v4l2_calls.c(633): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:

      Capabilities: 0x4200002

       

      Second, using this code : GitHub - intel-aero/sample-apps: This repository will contain source code for sample applications

       

      I run this command, C=20 INPUT=1  MODE=PREVIEW M_F=YUV420 /home/sample-apps/capturev4l2/capture_example --userp -d /dev/video0

      C=20 INPUT=1  MODE=PREVIEW M_F=RGB32 /home/sample-apps/capturev4l2/capture_example --userp -d /dev/video0

       

      It seems like work, But result is fail. (result attach file)

      I show this image using this homepage RAW Pixels

       

      Image look several line.

       

      How do I get VGA camera image?