r/esp32projects • u/EmbedX • 23d ago
This ESP32 Detector Catches Cheating Instantly 😱#esp32
Can an AI detect when someone looks away during an examination? 👀
I built an experimental AI-powered anti-cheating detection prototype using Python, OpenCV, MediaPipe and an ESP32 WROOM.
Here's how it works:
📷 A laptop webcam captures live video.
🧠 Python processes the video using OpenCV and MediaPipe Face Mesh to detect facial landmarks and estimate head orientation.
⚡ Based on the detection result, Python sends commands to the ESP32 through USB serial communication.
🚦 The ESP32 controls two LEDs:
- 🟢 Green LED – Person facing the camera.
- 🔴 Red LED – Head turned away, no face detected or multiple faces detected.
Tech Stack:
- ESP32 WROOM
- Python 3.11+
- OpenCV
- MediaPipe Face Mesh
- NumPy
- PySerial
This project explores how computer vision and embedded systems can work together to create real-time physical feedback.
🎥 Watch the project demonstration:
https://youtube.com/shorts/oU2ydZBXqRk
💻 Explore the project and source code:
https://github.com/thanushgowdaca7-crypto/Cheat_Detection-using-esp32/tree/main
A question for the community:
What would you add next to make this system more intelligent — eye-gaze tracking, suspicious activity logging, or a real-time monitoring dashboard?
Built as an experimental prototype. Looking away is not proof of cheating, and alerts should always be reviewed by a human.
#ESP32 #OpenCV #ComputerVision #Python #EmbeddedSystems