Display video from a drone FPV camera

asked 2017-02-09 11:07:13 -0600

ivj94 gravatar image

Hi,
Firstly, I'm sorry but my English is not the best.
Shortly about my project: I've created a drone with an Arduino and an NRF24. I write a really simple program in Java. It sends control data to the drone via NRF24 from my laptop (I would like to create an Android app too). I would like to take an FPV camera for the drone and display its video in my program and later try to do some cool stuffs with OpenCV.
I founded a good tutorial to transmit and receive the video from FPV. However, the problem is, that I receive analog signal. My question is that if I buy an EasyCap (or something similar videodigitalizer) and connect it to my laptop can I display the video with OpenCV? If yes, how is that possible?

edit retag flag offensive close merge delete

Comments

2

OpenCV supports and autodetects all capture devices that are compatible with Video4Linux, DirectShow,VideoForWindows (and equivalent for Mac). EasyCap should be therefore you can easily grab from it with OpenCV. If a device don't has a driver for one of the mentioned video layer, it can be used in OpenCV but is required some additional code to wrap the native image into cv::Mat

pklab gravatar imagepklab ( 2017-02-09 11:28:02 -0600 )edit

Oh. So, if I plugged in to the USB the EasyCap, I can grab it only with this line of code: VideoCapture camera = new VideoCapture(0); ? And after that, I can use it?

ivj94 gravatar imageivj94 ( 2017-02-10 02:37:15 -0600 )edit

EasyCap should be compatible with DirectShow therefore you can use VideoCapture

pklab gravatar imagepklab ( 2017-02-11 12:43:08 -0600 )edit

how did you control the drone with nrf24 from computer?

abdelhalim gravatar imageabdelhalim ( 2019-04-09 17:12:43 -0600 )edit