Skip to content

Here's a **mini description** perfect for the top of your GitHub README: --- **A computer vision + Arduino mini project that detects eye openness using MediaPipe Face Mesh and controls an LED accordingly. The system dynamically adjusts sensitivity based on face distance (10–60 cm) using an ultrasonic sensor.**

Notifications You must be signed in to change notification settings

rahul-dey-131/eye-controlled-LED

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

👁️ Eye-Controlled LED System using Computer Vision & Arduino This project combines MediaPipe Face Mesh with Arduino to create a real-time eye detection system that controls an LED. When your eyes are open, the LED turns on; when closed, it turns off — all hands-free.


🔍 How It Works

  • MediaPipe + OpenCV detects eye landmarks from webcam video.

  • Calculates the distance between upper and lower eyelids to determine if eyes are open or closed.

  • Uses an ultrasonic sensor (10–60 cm range) to adjust threshold dynamically based on the user's distance from the camera.

  • Sends 1 (eyes open) or 0 (eyes closed) via serial communication to Arduino.

  • Arduino receives the signal and controls an LED accordingly.


🛠️ Technologies Used

  • Python (MediaPipe, OpenCV, PySerial)

  • Arduino (Ultrasonic Sensor, LED, Breadboard, Jumpers, Webcam, Arduino Microcontroller)

  • Serial Communication


📦 Files

  • main.py: Python script for eye detection and serial communication.

  • sonarData.ino: Arduino code to receive data and control the LED.

About

Here's a **mini description** perfect for the top of your GitHub README: --- **A computer vision + Arduino mini project that detects eye openness using MediaPipe Face Mesh and controls an LED accordingly. The system dynamically adjusts sensitivity based on face distance (10–60 cm) using an ultrasonic sensor.**

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published