latinet:unicaes:opendronemap:installation
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
latinet:unicaes:opendronemap:installation [2023/08/25 21:48] – created jan.sonntag | latinet:unicaes:opendronemap:installation [2023/10/05 16:09] (current) – jan.sonntag | ||
---|---|---|---|
Line 22: | Line 22: | ||
</ | </ | ||
- | Then WebODM can be started with the following: | + | Then WebODM can be started |
< | < | ||
- | ./ | + | ./ |
</ | </ | ||
- | ===== Preparing Drone Images from DJI Mavic 3 Multispectral ===== | + | WebODM can be started on a public server |
- | + | ||
- | After taking the photos with the DJI M3M we need to do some postprocessing to be able to use them in ODM. Therefore it is necessary to split the multispectral from the plain RGB images. Also, the timestamps of the photos need to be matched just in case and the names need to be slightly modified as there were some hick ups in ODM from time to time. | + | |
- | We already prepared | + | |
- | <file sh correct_filenames.sh> | + | |
- | # | + | |
- | + | ||
- | # Process images in the specified directory | + | |
- | process_images() { | + | |
- | local target_dir=" | + | |
- | + | ||
- | mkdir " | + | |
- | mkdir " | + | |
- | + | ||
- | echo " | + | |
- | + | ||
- | for first_image in $(ls " | + | |
- | echo "Found first image: $first_image" | + | |
- | + | ||
- | timestamp=$(echo " | + | |
- | echo " | + | |
- | + | ||
- | # Extract the number (XXXX) from the first image filename | + | |
- | number=$(echo " | + | |
- | echo " | + | |
- | + | ||
- | mv " | + | |
- | + | ||
- | for ext in " | + | |
- | echo " | + | |
- | + | ||
- | image_to_rename=$(ls " | + | |
- | + | ||
- | if [ -n " | + | |
- | new_ext=$(echo " | + | |
- | new_name=" | + | |
- | echo " | + | |
- | mv " | + | |
- | else | + | |
- | echo "No matching ${ext}.TIF files found for number: $number" | + | |
- | fi | + | |
- | done | + | |
- | done | + | |
- | } | + | |
- | + | ||
- | # Check if an argument is provided | + | |
- | if [ $# -ne 1 ]; then | + | |
- | echo " | + | |
- | exit 1 | + | |
- | fi | + | |
- | + | ||
- | # Call the function to process images | + | |
- | process_images " | + | |
- | </ | + | |
- | + | ||
- | Just save this file somewhere you will be able to find it later as well. | + | |
- | + | ||
- | We are running this script on Ubuntu. Do make it executable Don´t forget to: | + | |
< | < | ||
- | sudo chmod +x ./correct_filenames.sh | + | ./webodm.sh start --ssl --hostname webodm.myorg.com |
</ | </ | ||
- | You can then execute the script by giving the folder with pictures inside as an argument. Example: | + | |
- | < | + | |
- | ./ | + | |
- | </ | + |
latinet/unicaes/opendronemap/installation.1692992889.txt.gz · Last modified: 2023/08/25 21:48 by jan.sonntag