fix error with transformDetection() call

This commit is contained in:
Ruben van de Ven 2020-09-25 18:58:23 +02:00
parent d163e2a83a
commit baf1e0bc03

View file

@ -375,7 +375,7 @@ function transformDetection(original) {
original: original original: original
} }
let bbox = getBoundingBox(points); let bbox = getBoundingBox(detection.points);
padding_x = bbox.width * .1; padding_x = bbox.width * .1;
padding_y = bbox.height * .1; padding_y = bbox.height * .1;