This Python script, created by Vell Void, enhances image sharpness, contrast, and applies Gaussian blur using the OpenCV and PIL libraries. This can be used to preprocess images for machine learning models, for photo editing, or any other use where image quality needs to be enhanced programmatically.
This script came from the need to improve the quality of images in a simple and automated way, especially useful for those dealing with a large number of images. Whether it's for a machine learning model or for a personal project, this script can be your tool to enhance the quality of any image.
- Python 3.6+. You can download it here
- OpenCV 4.x
- PIL (Python Imaging Library) 7.x
- Numpy 1.19.x
- tqdm (latest)
Usage
Run the script:
bash
python image_enhancer.py
You can modify the script to process your own directory by changing the parameters in the process_directory() function.
π Modification Feel free to modify the script as per your requirement. You can change parameters like sharpness, contrast, and blur as per your need in the process_directory() function. Additionally, you can add more features and enhancements as per your requirements.
π€ Contributing Contributions are welcomed! For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the [GNU Affero General Public License v3.0 (AGPL-3.0)](https://www.gnu.org/licenses
And remember, a picture is worth a thousand words, but an enhanced picture...
- Download or clone this repository using:
git clone https://github.com/VellVoid/image-enhancement-script.git