Skip to content
puku0x edited this page Jan 23, 2016 · 30 revisions

Let's start hacking your drone with CV Drone !

For Windows (Visual Studio)

  1. Download CV Drone from "Code" page.

Download from github

  1. Extract the .zip file in any directory.

Extract CV Drone

  1. Open .\build\vs20xx\test.sln.

Extract CV Drone

  1. Press F7 to build. "Release" build is recommended.

Release build

  1. Connect your AR.Drone.

Wifi

  1. Press F5 to run the program.

You can see AR.Drone's camera image.

AR.Drone 2.0 camera image

For Macintosh (Homebrew)

  1. Download CV Drone from "Code" page.

  2. Extract the .zip file in any directory.

  3. Install FFmpeg and OpenCV by MacPorts.

`$ brew update

`$ brew install ffmpeg

$ brew tap homebrew /science

$ brew install opencv

NOTE: You may need to set PATHs to build.

$ export LIBRARY_PATH=/usr/local/lib:$LIBRARY_PATH

$ export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

$ export C_INCLUDE_PATH=/usr/local/include:$C_INCLUDE_PATH

$ export CPLUS_INCLUDE_PATH=/usr/local/include:$CPLUS_INCLUDE_PATH

  1. Go to linux directory and execute the makefile.

$ cd cvdrone-master/build/linux

$ make

  1. Connect your AR.Drone.

  2. Run the program.

$ ./test.a

AR.Drone 2.0 camera image

For Macintosh (MacPorts)

  1. Download CV Drone from "Code" page.

  2. Extract the .zip file in any directory.

  3. Install FFmpeg and OpenCV by MacPorts.

$ sudo port selfupdate

$ sudo port install opencv

$ sudo port install ffmpeg

NOTE: You may need to set PATHs to build.

$ export LIBRARY_PATH=/opt/local/lib:$LIBRARY_PATH

$ export LD_LIBRARY_PATH=/opt/local/lib:$LD_LIBRARY_PATH

$ export C_INCLUDE_PATH=/opt/local/include:$C_INCLUDE_PATH

$ export CPLUS_INCLUDE_PATH=/opt/local/include:$CPLUS_INCLUDE_PATH

  1. Go to linux directory and execute the makefile.

$ cd cvdrone-master/build/linux

$ make

  1. Connect your AR.Drone.

  2. Run the program.

$ ./test.a

AR.Drone 2.0 camera image

For Linux

  1. Download CV Drone from "Code" page.

  2. Extract the .zip file in any directory.

  3. Install FFmpeg and OpenCV by apt-get.

$ sudo apt-get install ffmpeg

$ sudo apt-get install libopencv-dev

NOTE: Do $ sudo apt-get install libav-tools if ffmpeg is not available. (true for recent ubuntu releases due to a rename of the packages)

NOTE: You may need $ sudo apt-get install build-essential for g++.

  1. Go to linux directory and execute the makefile.

$ cd cvdrone-master/build/linux

$ make

  1. Connect your AR.Drone.

  2. Run the program.

$ ./test.a

AR.Drone 2.0 camera image

For more details, please see API reference.

Clone this wiki locally