A simple custom image annotator tool built with Python using the Tkinter and PIL libraries. This tool allows users to annotate images by providing input values, which are saved to a CSV file.
- Load and display images from a specified directory.
- Annotate images by entering custom values.
- Save the annotations to a CSV file.
- Skip images without providing annotations.
- Python 3.x
- Tkinter
- Pillow (PIL)
-
Clone the repository:
git clone https://github.com/your-username/custom-image-annotator.git
-
Navigate to the project directory:
cd custom-image-annotator
-
Install the required dependencies:
pip install Pillow
-
Update the file paths in the script as needed:
FILE_PATH
: Path to the CSV file where annotations will be saved.IMAGE_PATH
: Path to the directory containing the images to be annotated.
-
Run the script:
python annotator.py
-
Use the GUI to annotate images:
- The image will be displayed in the main window.
- Enter the annotation value in the provided entry field.
- Click "Save" to save the annotation and move to the next image.
- Click "Skip" to move to the next image without saving an annotation.
Here's a simple example of how to set up the file paths and run the annotator:
FILE_PATH = "../ImageFiles/num_lanes_test.csv"
IMAGE_PATH = "../ImageFiles/direct_site_images"
Then run the Python script
Contributions are welcome! Please feel free to submit a pull request or open an issue.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.