manish-9245/Facial-Emotion-Recognition-using-OpenCV-and-Deepface — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a simple Python webcam app that recognizes facial emotions in real time. When I run it, it should open my webcam, find any faces on screen, draw a box around each face, and show the predicted emotion label on the video feed as it updates live.

Use OpenCV for the webcam and face detection, and DeepFace for the emotion prediction. Keep it beginner friendly and easy to run from the command line. Include a requirements file, make sure the Haar cascade face detector is included or downloaded automatically, and add clear instructions for installing everything and starting the app.

It should quit cleanly when I press q, release the webcam, and close the video window. Please keep the code short and readable, with simple comments so I can understand what’s happening.

Want more depth? Deep Reverse