Giter Site home page Giter Site logo

hanmakaidao / aerial-image-stitcher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from assadiandre/aerial-image-stitcher

0.0 1.0 0.0 118 KB

An algorithm built to stitch drone aerial imagery. The program runs locally on iOS and is built off of the OpenCV framework. It produces accurately geo-referenced maps.

Objective-C 1.45% Objective-C++ 62.35% Swift 36.20%

aerial-image-stitcher's Introduction

Aerial-Image-Stitcher

An algorithm built to stitch drone aerial imagery coined "QuickMap". The program runs locally on iOS (written in Swift, Objective C++). QuickMap is a feature I worked on in the summer of 2018 & 2019 at 3DR which is currently integrated into BETA SiteScan. The algorithm itself was built using OpenCV and C++. QuickMap uses the SIFT descriptor algorithm to localize keypoints and generate affine warp transformations that neatly align images. It uses GPS points to fill in missing images and uses multi-image referencing to reduce accumulated error. Once finished stitching, it blends the result and finds an appropriate geographical transformation to display it on a map.

Installation of Libraries

It's recommended to use the latest version of OpenCV (4.1.1) with the contribution modules. You can download it here. Alternatively, you can build it yourself, however the former is much easier. Once downloaded, add it to Aerial-Image-Stitcher/QuickMap/OpenCV

GPS Points are returned upon generation of the map. To display, I suggest using MapBox via Cocoapods a developer access key must be added to your info.plist configuration to work properly. You can then display the image as a raster overlay.

Downloading Data Sets

The stitcher accepts images at any resolution (it will automatically resize), however there must be GPS encoded in the exif data. It's highly recommended that images are shot 150ft above with minimal distortion and 30-80% overlap. Some good data sets to test:

Once downloaded, add the JPG image folder to Aerial-Image-Stitcher/Images. In StitcherViewController.swift specify the dataset path, then build.

Results:

Museo Ambar

Museo Ambar data set - 54 Images shot ~200ft altitude.

Sources:

The stitcher was heavily inspired by A Real-time Stitching Algorithm for UAV Aerial Images by Peng Xiong, Xianpeng Liu, Chao Gao, Zan Zhou, Chunxiao Gao, and Qiongxin Liu. Multiple image referencing or "predicted region matching" is a key technique integrated in the algorithm that increases geographical accuracy and reduces accumulated error.

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.