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. https://github.com/intel-aero/meta-intel-aero/wiki/06-Computer-Vision-3D-AI 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:
Second, using this code : https://github.com/intel-aero/sample-apps 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 http://rawpixels.net/ RAW Pixels
Image look several line.
How do I get VGA camera image?
Thank you for your interest in the Intel® Aero Ready to Fly Drone.
I got VGA preview using the command presented in https://github.com/intel-aero/meta-intel-aero/wiki/06-Computer-Vision-3D-AI:
gst-launch-1.0 v4l2src device=/dev/video13 ! video/x-raw,width=640,height=480,framerate=30/1 ! xvimagesink
Changing "video13" for "video0" produces an expected error message since it is not associated with any capturing device. Could you please further explain why you make this modification?
I'll be waiting for your response.
Have a nice day.
Thank you for further explaining your inquiry. I'll suggest you to check this couple of threads:
How to use 8 MP RGB & VGA Camera
https://communities.intel.com/message/459500# 459500 https://communities.intel.com/message/459500# 459500
when using ov8858 ov7251 cameras
https://communities.intel.com/message/483906# 483906 https://communities.intel.com/message/483906
There you will find information that may help you accomplish what you are trying to do.
If you have any update or question, don't hesitate to contact us.
Have a nice day.
Have you known how to use optical-flow in Aero RTF? In fact, I can not get VGA camera image using way 1.
Would you mind sharing your experience about what should I do to enjoy optical flow? I try to test referring this link:https://github.com/intel-aero/aero-optical-flow GitHub - intel-aero/aero-optical-flow ,but failed all the time.
In the latest release, we have the bottom facing camera stream on by default. You can open the RTSP streams as shown in this guide: https://github.com/intel-aero/meta-intel-aero/wiki/06-Cameras-and-Video
Regarding the optical flow github you linked, what error messages are you getting? Did you try to build from source or running from v1.6.0? Do you also have the lidar installed?