Guys could someone help me to make facetracking work?

i have everything working camera, opencv and servos, but im not beeing able to run a script to start it!! 

 

I have tried the gael script but keep asking for more arguments this is the code

###################
   i01.startEyesTracking(leftPort)
   i01.startHeadTracking(leftPort)
   ###to tweak the default PID values
   i01.eyesTracking.pid.setPID("eyeX",45.0,1.0,0.1)
   i01.eyesTracking.pid.setPID("eyeY",45.0,1.0,0.1)
   i01.headTracking.pid.setPID("rothead",15.0,1.0,0.2)
   i01.headTracking.pid.setPID("neck",35.0,1.0,0.2)
 
thanks

Hi Pedro

startEyesTracking uses 3 parameters:

port = the port for the head arduion

xPin = the pin for the servo for x eye movement ( sideways )

yPin = the pin for the servo for y eye movement ( up / down )

 

startHeadTracking use 1 parameter:

port = the port for the arduino

 

/Mats

 

pedro

8 years ago

So the 3 args wrok perfectly and everything is working,

now just have some issues.

1. Anyone know a command to atach eyes?

i01.head.eyex.attach() seems to dont work

2. the head is not very responsive! should i remove D or increase P? its my first time

3. Since head is slow to response the eyes are gooing first and he tracks more with the eyes then with the head, which seems a bit unnatural! maybe decrease P in eyes?

 

Thanks :)