Skip to content

reduards/Azure-ODM-Automation-Deployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages