sir i using leapjs 0.6.4 version of leapjs and trying to track the fingers with frame.pointables.length .
code is here.
var leap=required('leapjs');
leap.loop(function(obj)
{ console.log(obj.pointables.length);
});
the output is 0 and 5 . is hand is over the leapmotioncontroller its giving the 5 when i m showing 2 or 3 finger over the leapmotion its also giving the result 5 continues but when hand is removed over the leapmoition its giving output 0.
i am trying to get the output 1 when 1 finger is over lmc and 2 when 2 fingers over lmc and so on. but not getting. please give me the hint or code so i track the fingers. becaues i'll controll the robotic car and robotic arm with leapmotion when 5 fingers are detect by leapmotion the car will move and when 2 fingers are detect by lmc then robotic arm will work.