GithubHelp home page GithubHelp logo

umasscds / ds4cg2021-georeferencing Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 2.0 65.81 MB

Automatically identify exact latitude and longitude for locations in aerial images in order to compare images from difference sources and time periods. This tool can provide insight into how land and waterways change over time.

License: MIT License

Python 100.00%

ds4cg2021-georeferencing's Introduction

DS4CG-Automatic-Georeferencing

To get a better understanding of this project before using it, please watch this short video: http://ds.cs.umass.edu/ds4cg/2021-ds4cg-projects and/or read the short paper included in this repo. This project was created by Collin Giguere and Sowmya Vasuki Jallepalli for the Data Science for the Common Good program in Summer 2021 in partnership with UMass Libraries and Department of Environmental Conservation and advising from Pixel Forensics. To find out more about the program, see https://www.ds.cs.umass.edu/ds4cg.

Setup

Before using the application, you must set up the environment. First install python on your device by following the steps here: https://www.python.org/downloads/. Make sure you download and install Python 3.9. Then install GIT from here: https://git-scm.com/downloads. If you need a basic introduction on how to use the command prompt on Windows, start here: https://www.bleepingcomputer.com/tutorials/windows-command-prompt-introduction/. The bare minumum understanding to use this application is a basic understanding of what the command line is (basically a file explorer) and the commands, 'dir', and 'cd'. If you understand these, then you can move forward.

Next, open the Command Prompt, navigate to the directory you want the application in, and execute the following commands. You can copy and paste them one by one or all at once.

git clone https://github.com/cdgiguere/DS4CG-Automatic-Georeferencing.git

cd DS4CG-Automatic-Georeferencing\

py -m pip install --upgrade pip

py -m pip install --user virtualenv

py -m venv env

.\env\Scripts\activate

On 32-bit systems:

py -m pip install -r Setup\requirements_32.txt

On 64-bit systems:

py -m pip install -r Setup\requirements_64.txt

Config

Included with each of the two pipelines is a config yaml file. These are used to specify where files are located, where to place output files, and certain other parameters to use. Instructions on how to fill out these files are in the files themselves; simply open them with any text editor. They are unique for the two pipelines; one in the Propagation directory and one in the Satellite directory.

Use

This setup and congifuration only needs to be done one per device. All you need to do to run the application is make sure the environment is activated (it already will be if you just completed the setup, but you will need to activate it each new session) with the same command .\env\Scripts\activate, and then run these commands:

cd Propagation\

py Propagate.py cni3h80 cni3h81 cni3h82 ...

or

cd Satellite\

py Satellite.py cni3h79

In this examples cni3h80 is treated as the referenced file and cni3h81 and cni3h82 are treated as the unreferenced files.

Note

  1. If you are using this application for its orignial developed purpose: the MacConnell set; you can just use the image codes like above as long as the config file is defined correctly. If you are working on another dataset, first fill out the config accordingly and then you will specify the file paths such as:

py Propagate.py path\to\referenced_image path\to\unreferenced_image path\to\unreferenced_image ...

  1. The propagation pipeline will work for any two input images, but you must have the satellite/drone images ready at hand. The Satellite pipeline uses information known about specifically the MacConnell Collection to retrieve the satellite tiles needed on demand. The Satellite pipeline is not currently available for anything but the MacConnell Collection since more information is needed about the location and size of the unreferenced image. We still provide the code, however, for future research contributions.

ds4cg2021-georeferencing's People

Contributors

cdgiguere avatar mattratt avatar sowmyavasuki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ds4cg2021-georeferencing's Issues

Update directory name

When installing the software the first time, the directory installed via the git clone command is called "ds4cg2021-georeferencing." The instructions in the Setup > Windows section call the command cd DS4CG-Automatic-Georeferencing/ which returns an error "The system cannot find the path specified."

Recommended solution: change the command to cd ds4cg2021-georeferencing

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.