diff --git a/.gitignore b/.gitignore index 35d1183..69baf5a 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ __pycache__/ .pytest_cache/ .venv/ .codex-test-venv/ +.test-venv/ venv/ env/ .idea/ diff --git a/models/face_landmarker.task b/models/face_landmarker.task new file mode 100644 index 0000000..c50c845 Binary files /dev/null and b/models/face_landmarker.task differ diff --git a/src/head_pose.py b/src/head_pose.py index e150cf7..3aeefc3 100644 --- a/src/head_pose.py +++ b/src/head_pose.py @@ -16,8 +16,8 @@ class HeadPoseEstimator: # match OpenCV image coordinates; using a Y-up model can make a frontal # face solve as an approximately 180-degree rotation. MODEL_POINTS = ( - (0.0, 0.0, 0.0), (0.0, 63.6, -12.5), (-43.3, -32.7, -26.0), - (43.3, -32.7, -26.0), (-28.9, 28.9, -24.1), (28.9, 28.9, -24.1), + (0.0, 0.0, 0.0), (0.0, 63.6, 12.5), (-43.3, -32.7, 26.0), + (43.3, -32.7, 26.0), (-28.9, 28.9, 24.1), (28.9, 28.9, 24.1), ) def __init__(self, config: HeadPoseSettings) -> None: