This script tries to find any creatures in your photos. It takes two inputs:
- a folder pointing to the data you want to analyze
- a yolo11 AI model trained for detecting creatures.
You can set these inputs in the top couple lines of the code as defaults (arrows shown in red):
and when you run the program it will also prompt you if you want to enter different paths, or use these defaults.
Also if you look at the variable SKIP_PREVIOUS_GENERATED (underlined in green above), leaving this option as “True” means that if you already created detections for your images previously, it will skip them and finish quicker. If you want the script to redo any detections, just set this to false.
Note: the script is also set up to detect any HUMAN generated detections and not overwrite those ever.
Results
This process can take 5-20 minutes for a normal night’s dataset (depending on the number of creatures and the speed of your computer).
At the end it will produce little “detection” json files for each image in the folder(s) you gave it.
These currently store information about where insects likely are. You can visualize these detection if you wish by looking at them in the program X-anylabelling:
Note how there is no ID information yet. All detections are simply labelled as “creature”