Code Monkey home page Code Monkey logo

dronedeploy's Introduction

dronedeploy

required libraries:

$ pip install geopy
$ brew install gdal
$ brew install opencv3
$ brew install scipy

running the script:

To run the script you must have installed the above libraries. This script has only been tested with python 2.7. The script will download the 'example' data. If there is no internet connection, you must put the 'example' directory at the same level as the 'mosaic.py' script.

$ python mosaic.py

Notes on yaw, pitch and roll

Drone coordinate system

Summary of coordinate system for drone position

  • yaw will be positive in the NE direction and negative in the NW direction
  • pitch will be positive in the upward direction
  • roll will be positive as the left wing lifts and right wing dips

Notes on image coordinate system in relation to yaw, pitch and roll

OpenCV image coordinate system

In the image, if the camera is oriented with the top of the photo in the direction of the flight path:

  • positive pitch means that the position of the drone will be lower in the image

    • this means a higher y pixel value for the drone's position relative to center of image
    • center_y = height / 2.0
    • shift_y = FOCAL_LENGTH_MM * math.tan(roll_radians) * (height / CCD_HEIGHT_MM)
    • drone_y = center_y + shift_y
  • negative pitch means that the position of the drone will be higher in the image

    • this means a lower y pixel value for the drone's position relative to center of image
  • positive roll means that the position of the drone will be to the right in the image

    • this means a higher x pixel value for the drone's position relative to center of image
    • center_x = width / 2.0
    • shift_x = FOCAL_LENGTH_MM * math.tan(roll_radians) * (width / CCD_WIDTH_MM)
    • center_x + shift_x
  • negative roll means that the position of the drone will be to the left in the image

    • this means a lower x pixel value for the drone's position relative to center of image

dronedeploy's People

Contributors

davidraleigh avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.