auduno / headtrackr

Javascript library for headtracking via webcam and WebRTC/getUserMedia
3.69k stars 504 forks source link

facetrackingEvent not updating event.angle #42

Closed ikbensiep closed 8 years ago

ikbensiep commented 8 years ago

From the docs/reference it seems as angle should update when rotating my head, just as the x and y values do when I move. But no matter how I move, the angle is always at the same value:

image

My code looks like this:

document.addEventListener('facetrackingEvent', 
    function (event) {
        console.info(event.angle);
    } 
);

Can anybody tell me wether this is correct behavior (and I'm misunderstanding something) or if this is a bug?

Thanks!

auduno commented 8 years ago

Hi, you might have to enable calculation of angles via the initialization parameter calcAngles, see the reference: http://auduno.github.io/headtrackr/documentation/reference.html

On 20. aug. 2015, at 08.50, Sibrand Hoekstra notifications@github.com wrote:

From the docs/reference it seems as angle should update when rotating my head, just as the x and y values do when I move. But no matter how I move, the angle is always at the same value:

My code looks like this:

document.addEventListener('facetrackingEvent', function (event) { console.info(event.angle); } ); Can anybody tell me wether this is correct behavior (and I'm misunderstanding something) or if this is a bug?

Thanks!

— Reply to this email directly or view it on GitHub.