Skip to content

vaish59/capture-smiling-face

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Capture Smiling Face😊

Overview

This project is a real-time face detection application that captures and saves an image when a smiling face is detected. The system utilizes OpenCV and MediaPipe for facial recognition and TensorFlow Lite for optimized inference.

Features

  • Detects faces in real-time using OpenCV and MediaPipe
  • Identifies when a person is smiling
  • Automatically captures and saves the image upon detecting a smile
  • Saves captured images in a designated folder

Requirements

Ensure you have the following dependencies installed:

pip install -r requirements.txt

Dependencies:

  • OpenCV (cv2)
  • MediaPipe
  • NumPy
  • TensorFlow Lite

Installation

  1. Clone this repository:
    git clone https://github.com/your-username/capture-smiling-face.git
  2. Navigate to the project directory:
    cd capture-smiling-face
  3. Install dependencies:
    pip install -r requirements.txt
  4. Run the script:
    python capture_smiling_face.py

How It Works

  1. The camera opens and detects a face in real-time.
  2. The system analyzes facial landmarks to check for a smile.
  3. Once a smile is detected, it captures and saves the image automatically.
  4. The captured image is stored in the project folder (Capture Smiling Face).

Saving Location

Captured images are saved in:

C:\Users\Vaishnavi\Desktop\Capture Smiling Face

To change this location, modify the save path in capture_smiling_face.py.

Contributing

If you would like to contribute:

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature-branch.
  3. Commit your changes: git commit -m 'Add new feature'.
  4. Push to the branch: git push origin feature-branch.
  5. Open a Pull Request.

License

This project is open-source and available under the MIT License.


Author: Vaishnavi Jevale


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages