From d163e2a83ae715ba4def2e5bfe7366ea5ec92797 Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Fri, 25 Sep 2020 18:57:37 +0200 Subject: [PATCH] fix error with transformDetection() call --- dist/static/assets/webcam.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/static/assets/webcam.js b/dist/static/assets/webcam.js index af46a672..35bf5a2c 100644 --- a/dist/static/assets/webcam.js +++ b/dist/static/assets/webcam.js @@ -360,8 +360,8 @@ function parseCoordinate(position) { function transformDetection(original) { - let a = detection.points[36]; // outer point on left eye - let b = detection.points[45]; // outer point on right eye + let a = original.points[36]; // outer point on left eye + let b = original.points[45]; // outer point on right eye let cx =a.x/2 + b.x/2 let cy = a.y/2 + b.y/2