Once your data has been organized, we need to run a script to pair your metadata you collected in the field with the photos you collected.
Open the “Mothbot_GenMetadata.py” script in VS Code. Next you can click the “Play” button in the upper right corner.
This starts the script and you can see information about what the script is doing at the bottom of the screen in the part called the “Terminal.”
For this script, the first thing it will ask you about is to enter the path for the CSV file containing your Metadata about your collection. You will see default paths at the top of the script that you can change if you want, and then you can just press ENTER to use the default path.
or you can type in a new path here in the terminal to wherever your CSV file is.
The script should run pretty quickly, and then print a list of any deployments it found in your metadata CSV that it couldn’t find a folder match for.
This can be pretty common, as sometimes people mispell things in the metadata or folder. You can go tweak the names of the entries or folders and just run this script again to catch any missing folders.
Result
The result of this script is that it creates a little “metadata.json” file for each photo in your dataset.
This metadata file gets used by later scripts to pair your data with the identifcations and detections.