fix flipped rotation

This commit is contained in:
Ruben van de Ven 2020-09-25 19:08:54 +02:00
parent baf1e0bc03
commit 3c1760c3f6

View file

@ -360,8 +360,8 @@ function parseCoordinate(position) {
function transformDetection(original) { function transformDetection(original) {
let a = original.points[36]; // outer point on left eye let b = original.points[36]; // outer point on left eye
let b = original.points[45]; // outer point on right eye let a = original.points[45]; // outer point on right eye
let cx =a.x/2 + b.x/2 let cx =a.x/2 + b.x/2
let cy = a.y/2 + b.y/2 let cy = a.y/2 + b.y/2