justadudewhohacks / face-api.js

JavaScript API for face detection and face recognition in the browser and nodejs with tensorflow.js
MIT License
16.53k stars 3.69k forks source link

faceLandmarks.getPositions is not a function #112

Closed veetechh closed 5 years ago

veetechh commented 5 years ago

I called this function in webcamFaceTracking, drawing.js file.

justadudewhohacks commented 5 years ago

Please use the updated examples I released with v0.15. All calls to faceLandmarks.getPositions have been removed.

veetechh commented 5 years ago

Then how can we get the positions?

justadudewhohacks commented 5 years ago

Simply use the property instead of the old getter: faceLandmarks.positions

veetechh commented 5 years ago

Added console.log("faceLandmarks positions: "+faceLandmarks.positions); in drawLandmarks function.

It is saying "faceLandmarks positions: undefined"

justadudewhohacks commented 5 years ago

Then "faceLandmarks" is not an instance of faceapi.FaceLandmarks.