Coder Social home page Coder Social logo

azure-odm-automation-deployment's Introduction

Azure-ODM-Automation-Deployment

This repo contains an az cli script to deploy all the infrastructure and neccasary components to automate the process of generating Orthophotos and 3d-modells from drone images using https://github.com/OpenDroneMap/ODM and Azure Compute. It will also populate the file storage with some test images found in this repo at /images. The function that orchestrate the actual processing job is allocated at: https://github.com/reduards/Azure-ODM-Automation-Function

How to get going:

  1. Fork or download the repo locally.

  2. Edit the variables in script.sh to with necassary value and to your liking (however notice that you will have to change the environment variables to match that in the serverless function later).

  3. Edit logicappcontent.json with your email address and an office365 connection.

  4. Run the script.sh, you will need to have az cli installed.

  5. Make sure everything have been deployed in your Azure environment.

  6. Fork function code repository:

https://github.com/reduards/Azure-ODM-Automation-Function

  1. Go to Azure --> Click on Function App just created --> Click on "Deployment Slot" --> Follow the steps and select the newly forked function repo from Github.

This will hook up your Azure Function App with functions from the repo and will make sure to it is synchronized whenever you make a change. Now you can make changes either via codespaces or by pulling the repo locally.

  1. Go ahead and edit the local.setting.json to match your newly deployed infrastructure if you changed any of the variables in the script.sh

  2. Finally add a secret to the Azure Key Vault called "function key" which you will find "Azure Function"-->"drone-httpstarter"-->"Function Key" or by running the az cli command:

az functionapp function keys list -g RESOURCEGROUPNAME -n AZUREFUNCTIONNAME --function-name drone-httpstarter --query 'default' -o tsv

You should now be able to call the function by usig the api:

https://AZUREFUNCTIONNAME.azurewebsites.net/api/orchestrators/drone-orchestrator-upload?code=FUNCTIONKEY==&vmSize=COMPUTEVM&projectName=PROJECTNAME&projectDate=PROJECTDATE

Example of Compute VM Standard_NC24s_v2

Make sure to structure the folder in following structure:

fileshare/projectname/projectname_projectdate


  • OpenDroneMap Mygla dataset *

Photos: Tomasz Nycz, on CC-BY license (http://creativecommons.org/licenses/by/3.0/deed.pl).

Dataset was created with DJI P3S on Tokarzonka site, 08.02.2012 http://www.openstreetmap.org/#map=18/49.59361/18.87319

azure-odm-automation-deployment's People

Contributors

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