This project provides an image quality comparison system with a frontend built using Streamlit. The system enables users to upload images, analyze their quality using a pre-trained CNN model (saved as model.keras), and recommend the best quality image.
Check out the video demonstration of the project: Watch Demo Video
- Upload multiple images through the web interface.
- Analyze the quality of uploaded images.
- Display metrics for quality assessment.
- Recommend the best quality image.
- Simple and intuitive UI using Streamlit.
- Clone the Repository
git clone [https://github.com/majorproject5360/image-quality-assessment.git](https://github.com/majorproject5360/image-quality-assessment.git)
cd major-project/streamlit-website/image-quality-assessment
ml_model.py file contains python code which needs to be converted to .keras format, it can be achieved by running below code mentioned at end of the file:
# Save the model in .keras format
model.save('/content/model.keras')
from google.colab import files
files.download('/content/model.keras')NOTE: Run
ml_model.pyfile in Google Colab and above mentioned snippet of code will save model asmodel.kerasand download it to your local system. Addmodel.kerasfile to the project directory.
- Install Dependencies Make sure Python 3.8+ is installed, then install the required packages:
pip install -r requirements.txt
- Run the Streamlit App
streamlit run app.py
This will start a local server. Visit http://localhost:8501 in your browser to access the web interface.
- Upload one or more images through the web interface.
- The app analyzes the images using the CNN model.
- Quality scores are displayed, and the system suggests the best image.
- Python: Core language
- TensorFlow: CNN model loading and predictions
- Streamlit: Frontend web interface
- Pillow: Image processing
- scikit-learn: ML utilities
- Support for more image quality metrics.
- Option to fine-tune the model using new datasets.
- Integration with AWS for model deployment.
Contributions are welcome! Feel free to open issues or submit pull requests.
- Special thanks to the Streamlit community for providing a simple yet powerful UI framework.
- CNN model architecture inspired by tutorials on image quality assessment.



