-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I cannot use the getCurrentPositions() #31
Comments
Hi, you've used the wrong name of the function. The corrected line should be: var positions = ctrack.getCurrentPosition(); |
The reference.html is wrong. |
I need to click the button which called the function twice, then I get the right return. |
Yep, you're right, the reference was wrong. Fixed it now, sorry for that. The reason why you have to click the button twice to get positions is probably because you start the detection/tracking on the first line of the function. It usually takes some time (a second or two) for the model to fit correctly on the face, so you have to wait a bit longer to get the positions. You can check the fit of the model by using getConvergence() for instance. |
The third line returns "Uncaught TypeError: undefined is not a function"
The text was updated successfully, but these errors were encountered: