Community
cancel
Showing results for 
Search instead for 
Did you mean: 
idata
Community Manager
1,749 Views

Reading video/images from the down facing camera in the Aero in Ubuntu

Hi,

I would like to read video/images from the down facing camera in the Aero, while using Ubuntu.

Can this be done with Opencv or Mavros?

If not,what are the alternatives?

Thanks, Yoni.

0 Kudos
10 Replies
idata
Community Manager
79 Views

Hello Yoni,

 

 

Thank you for your interest in our Intel products.

 

If you are connected to Intel Aero graphically, with a HDMI cable, you can run a graphical tool. The simplest tool is gstreamer:

sudo gst-launch-1.0 v4l2src device=/dev/video13 ! xvimagesink

You can play around with the settings, like changing to VGA, 30fps:

sudo gst-launch-1.0 v4l2src device=/dev/video13 ! video/x-raw,width=640,height=480,framerate=30/1 ! xvimagesink

For a more user friendly tool, install guvcview with sudo apt install guvcview on Ubuntu. Remember, there's 3 feeds for the R200 Camera. Select the third one for the color output.

 

 

You can find more information here: https://github.com/intel-aero/meta-intel-aero/wiki/06-Cameras-and-Video

 

 

Hope this helps.

 

 

Regards,

 

Octavian
idata
Community Manager
79 Views

Dear Octavian,

I'm sorry but you haven't answered my question.

I would like to read video/images from the down facing camera in the Aero, while using Ubuntu.

Can this be done with Opencv or Mavros?

If not,what are the alternatives?

Thanks, Yoni.

idata
Community Manager
79 Views

Hello Yoni,

 

Maybe this can help you. https://github.com/intel-aero/sample-apps/pull/1 Optical Flow (OpenCV) using downward facing VGA camera via V4L2 by broody · Pull Request # 1 · intel-aero/sample-apps · G…

It grabs raw frames from the downward facing VGA camera via V4L2 and then feeds it to OpenCV to do optical flow.

 

 

I don't think you can use Mavros to help you with reading video/images from the camera.

 

 

Regards,

 

Octavian

 

 

 

idata
Community Manager
79 Views

Hello Yoni,

 

 

Has your issue been resolved?

 

 

Regards,

 

Octavian
idata
Community Manager
79 Views

Hi Octavian,

Not really.

Is there a way to read the down facing camera with Opencv, while using Ubuntu?

Thanks, Yoni.

idata
Community Manager
79 Views

Hello Yoni,

 

 

Please take a look at the sample code below:

 

https://github.com/intel-aero/aero-optical-flow/tree/master/src https://github.com/intel-aero/aero-optical-flow/tree/master/src

 

This example code is using Yocto, at this time the down facing camera does not function properly in Ubuntu. An alternative would be to use the RealSense camera as described in this guide: http://www.instructables.com/id/Intel-Aero-Drone-Downward-Facing-RealSense-Camera http://www.instructables.com/id/Intel-Aero-Drone-Downward-Facing-RealSense-Camera

 

 

Hope this helps.

 

 

Regards,

 

Octavian
idata
Community Manager
79 Views

It does.

Thank you.

SArgy
Beginner
79 Views

I also need to have access to the raw images from the down facing camera using Ubuntu and OpenCV.

Please update this topic when there is support for Ubuntu.

idata
Community Manager
79 Views

See here

https://github.com/intel-aero/sample-apps/pull/1 Optical Flow (OpenCV) using downward facing VGA camera via V4L2 by broody · Pull Request # 1 · intel-aero/sample-apps · G…

Though the video is not so good

SArgy
Beginner
79 Views

@Yoni,

Did this code actually work for you? Because I still get a totally grey picture ...

Reply