From baf1e0bc030fea5bc755bd450795f4f5a08dccc8 Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Fri, 25 Sep 2020 18:58:23 +0200 Subject: [PATCH] fix error with transformDetection() call --- dist/static/assets/webcam.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/static/assets/webcam.js b/dist/static/assets/webcam.js index 35bf5a2c..1f180156 100644 --- a/dist/static/assets/webcam.js +++ b/dist/static/assets/webcam.js @@ -375,7 +375,7 @@ function transformDetection(original) { original: original } - let bbox = getBoundingBox(points); + let bbox = getBoundingBox(detection.points); padding_x = bbox.width * .1; padding_y = bbox.height * .1;