I was referring this link: https://github.com/intel-aero/sample-apps GitHub - intel-aero/sample-apps: This repository will contain source code for sample applications to capture images from 8MP and VGA camera. But I was not able to capture images through these cameras. Instead the images captured were from RealSense camera. I have run dmesg | grep ov8858 and dmesg | grep ov7251 to ensure that both cameras are detected properly.
By running the program, I am able to get images captured like this:
root@intel-aero:~# C=10 INPUT=0 MODE=PREVIEW ./capture_examples --userp -d /dev/video2
Preview mode: 640x480, yuv420.
m_width 640, m_height 480, m_sizeimage 462848, m_padded_width:640, bytesperline 640
Saving file: Image-video2-640x480-0.yuyv
Saving file: Image-video2-640x480-1.yuyv
Saving file: Image-video2-640x480-2.yuyv
Saving file: Image-video2-640x480-3.yuyv
Saving file: Image-video2-640x480-4.yuyv
Saving file: Image-video2-640x480-5.yuyv
Saving file: Image-video2-640x480-6.yuyv
Saving file: Image-video2-640x480-7.yuyv
Saving file: Image-video2-640x480-8.yuyv
Saving file: Image-video2-640x480-9.yuyv
Preview: Time=337.922000ms FPS=29.592628
But these images are of 0 bytes size. That means the camera is not working. If I run the same program giving the port number of real sense camera, then it works fine and I am able to stream the video using gstreamer.
Please help how to use this ov7251 and ov8858 cameras properly.
Thanks & Regards,
Thank you for your interest in the Intel Aero Platform. There is a known issue with the 8MP and VGA cameras. We are currently looking into it and will provide an update as soon as possible. I apologize for any inconvenience this may cause.
I have succeeded in using V4L2 to read all three cameras but the exposure on the 8MP is very low and I cannot seem to get it to adjust the exposure. I have tried to use gstreamer to read the 8MP and VGA cameras, but to no avail. I have attached the source code. Extract the archive to your Intel Aero using "tar xaf capturev4l2.tar.bz2". Build the code with "make". Test it on the 8MP camera using "make input0" and on the VGA camera using "make input1". There are gstreamer tests too but they only work with the RealSense. I can't find the right options to make it work with the 8MP or VGA cameras. If you figure it out, please post.
There is also a example on using the VGA camera for optical flow here: https://github.com/intel-aero/aero-optical-flow https://github.com/intel-aero/aero-optical-flow. The guide explains how to set it up and run on the Aero RTF Drone. We have made some changes to enable streaming of the vga camera but was not ready for release v1.5.1, it should be available in the next release or you can build the image from source now. We are also working on improving the documentation.
Please take a look at the latest software release v1.6. This release includes a rtsp stream of the down facing camera. You can open the rtsp stream with rtsp://192.168.8.1:8554/bottom.
Additional information of the software release can be found here: