A streamlined Python script for batch identification of plants from images using the PlantNet API. It processes multiple image formats and efficiently saves the identification results along with confidence scores and common names into a CSV file.
- Batch Processing: Handles multiple images in a directory.
- Multiple Image Formats: Supports
.jpeg
,.jpg
,.png
, and.bmp
. - Detailed Output: Results include species name, score, and common names.
- Clone or download this repository to your local machine.
- Install required Python packages:
pip install os csv requests time
. - Set your API key, folder path, and CSV file name in the script.
- Run the script to process the images and save the results in CSV format.
- Python 3.10
- os, csv, requests, time
pip install os csv requests time
- Kutools for Excel: Useful for inserting images into Excel.
- QGIS Import Photos Plugin: For importing locational information from images.
- ExifTool: For additional camera data and locational information.
- Filtering Tips: Use a confidence interval of >0.1 to eliminate most incorrect matches.
Feel free to fork this repository and contribute by submitting a pull request.
This project is licensed under the MIT License.
- Script is based on an example from PlantNet's GitHub: https://github.com/plantnet
- PlantNet API: https://plantnet.org/