This project is a Python application that uses a webcam to guide a user through a series of head pose tasks (look up, down, left, right), verifies completion using face mesh detection, and saves a snapshot to a local SQLite database along with user information.
- Guides user through sequential head pose tasks.
- Uses
cvzone
andopencv-python
for real-time face mesh detection. - Stores user ID, name, and captured image (as base64) in a local SQLite database.
- Simple calibration for neutral head pose.
- Visual feedback and error handling in the UI.
- Python 3.7+
- Webcam
Install dependencies using:
pip install -r requirements.txt
Contents of requirements.txt
:
opencv-python
numpy
cvzone
-
Clone the repository and navigate to the project directory.
-
Ensure your webcam is connected.
-
Run the script:
python corrected_face_new.py
-
Enter your ID and Name when prompted.
-
Press
c
to calibrate your neutral head pose. -
Follow the on-screen instructions to complete each head pose task.
-
The application will save your information and a snapshot to
headpose_results.db
upon completion.
- A SQLite database file
headpose_results.db
will be created in the project directory, containing user info and the captured image.
- The script will create the database if it does not exist.
- Press
q
to quit at any time. - Make sure your environment has access to a webcam.