Code Monkey home page Code Monkey logo

opencv-rc-airplane-realtime-tracker's Introduction

opencv-rc-airplane-realtime-tracker

Computer vision RC plane tracking

The following code was developed as an exercise with the objective of getting acquainted with the OpenCV Computer Vision Library in C++.

The generated app is able to track, in realtime, RC planes in a provided footage taken with a hand held camera. Unfortunately, due to copyright restrictions, the original footage cannot be shared.

Frame from the raw footage.

The app is able to detect as soon as an rc plane enters the frame, its flight direction and the exact moment it crosses a vertical pole.

The algorightm is essentially composed of 3 blocks:

  • Vertical pole detection;
  • RC plane detection;
  • Detection of the moment of crossing plane/pole.

The segmentation process is organized in multiple filtering steps with increasing computational costs, with each subsequent step applied to a smaller dataset which drastically improves the processing time.

The following images are taken from some of the steps required to successfully detect the RC plane.

Some of the steps taken to detect the object.

Raw footage showing a RC plane in frame (a), grayscale conversion (b), image binarization(c), contour detection(d), optical flow based feature detection(e), chromatic segmentation filtering(f,g) with its false color image (f) and generated result(g). Region of interest (ROI) for the detection of the vertical pole (h,i) and debug view after all the detection steps have taken place(j) where it is possible to see a RC plane and vertical pole with their respective boundaries highlighted.

Detection result with debug mode on

opencv-rc-airplane-realtime-tracker's People

Contributors

cassianorabelo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.