Smile-CNN is a real-time face and smile detection project made using Flask, Tailwind CSS, OpenCV, AJAX and a trained CNN. It was done during the ML internship conducted by IIT Bhubaneswar.
Real-time smile detection using Convolution Neural Networks (CNN)
Built with Flask web framework and Tailwind CSS for styling
AJAX GET XMLHttpRequest for dynamic real-time updates
OpenCV for webcam access and image processing
Custom CNN model for smile predictions trained on a dataset
Getting Started
Prerequisites
Python 3.x
Virtualenv (optional, but recommended)
Installation
Clone the GitHub repository: git clone https://github.com/IshanMehta115/Smile-CNN.git
(Optional) Set up a virtual environment (recommended): virtualenv venv
Install the required dependencies: pip install -r requirements.txt
Running the Flask App
Execute the following command the run the app: python app.py
Visit http://localhost:5000 in your web browser to access the application.
Usage
Allow the application to access your webcam when prompted.
The application will detect your face and predict whether you are smiling or not in real-time.
Enjoy the interactive real-time smile detection experience!
Contributing
I welcome contributions from the open-source community! If you have any suggestions, improvements, or bug fixes, please feel free to create a pull request.