I trained a custom YOLOv7 model to detect a few bird species and now I want to process thousands of images to detect the species, but for my output I need to have the timestamp (so date and time) for every image in which my model recognizes a species. It would be ideal if I could add a few lines in the detect.py script to get it automatically saved in the text files created. Does anyone know if this is possible, and if yes, where and how to include this?
I found there are multiple ways to get the metadata (that includes time and date) from images in python, but I don't know how to possibly add this in the detect.py file.