This project was done in the Machine Learning Internship conducted by Indian Institute of Technology Bhubaneswar.
- Real-time face detection using haarcascade
- 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
- Python 3.x
- Virtualenv (optional, but recommended)
- 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
Execute the following command the run the app: python app.py
Visit http://localhost:5000
in your web browser to access the application.
- 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!
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.
This project is licensed under the MIT License.