fix error with transformDetection() call
This commit is contained in:
parent
c1f22570e8
commit
d163e2a83a
1 changed files with 2 additions and 2 deletions
4
dist/static/assets/webcam.js
vendored
4
dist/static/assets/webcam.js
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue