Image Optimizer
UIC DPW 24S Group 11 course project
Set Up
- Install packages using requirements.txt:
pip install -r requirements.txt. - Ensure
.\iconfolder is correctly placed in the same directory with the python files. - The prepared JSON filter datasets are placed in
.\datasetfolder. Although the program can run without these dataset files, you may not be able to observe the dataset and do image auto optimization as it requires dataset for analysis and training. - Run
main.py.
Usage: Image Optimization
- Adjust Atomic Parameter of an Image: Click in and change the value in a text box located at the left-bottom of
Mainframe. Then click out of the canvas or simply click the Image histogram on the top to modify the image & refresh the window. - Auto Optimization: Choose a filter in the combo box located at the right-bottom of the
Mainframe, and clickAuto Optimizzationbutton. - Export Image: Simple click
Exportbutton, then a new window will appear. You may crop, compress, and choose clarity of the output image. - Revert Image: We offer
Revert To Originalbutton to restart the editing process.
Usage: Dataset Management
- New Dataset Creation: Simply Create a new folder in
.\datasetand push theUpdate Datasetbutton on theDataset Manamgementframe. - Dataset Update: Add new images into the corresponding filter folder in
.\datasetand push theUpdate Datasetbutton on theDataset Manamgementframe. - Update Dataset By Unsplash Crawler:
Open the
Dataset Managementframe, clickGet More Images from Unsplash. Specify which filter datasets you want to update, each inner API can only crawl 500 images/hour. After crawling, clickDataset Updatebutton.
Languages
Python
100%