This Python script performs data augmentation on images in a specified input directory and saves the augmented images to a specified output directory. The following types of data augmentation are performed on each image:
- Random rotations
- Random crops
- Random brightness adjustments
- Random contrast adjustments
This script requires the following Python packages to be installed:
- OpenCV (cv2)
- NumPy
- Tkinter (included with Python)
- Run the script in a Python environment that has the required dependencies installed.
- Select the input directory containing the images to be augmented.
- Select the output directory where the augmented images will be saved.
- Enter the number of rotations, random crops, brightness adjustments, and contrast adjustments to be performed on each image.
- Wait for the script to complete.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.