From 2f233705d94a7047288265fab5f497b585b75dd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Sm=C3=B3=C5=82ka?= Date: Thu, 7 Nov 2024 23:45:49 +0100 Subject: [PATCH] Fixed eye coordinates calculation --- src/mini-face/local/gaze.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mini-face/local/gaze.cpp b/src/mini-face/local/gaze.cpp index 093f964..2ed5a33 100644 --- a/src/mini-face/local/gaze.cpp +++ b/src/mini-face/local/gaze.cpp @@ -79,7 +79,7 @@ std::optional GazeExtractor::detectGaze(const Frame& frame, double timesta cv::Point3f GazeExtractor::calculateEyeCenter(const std::vector eyeLandmarks, Eye eye) const { - constexpr int NO_LANDMARKS = 8; + constexpr int NO_LANDMARKS = 28; cv::Point3f middle(0, 0, 0); for (int i = 0; i < NO_LANDMARKS; i++)