Thursday, 21 April 2016

Face-to-Servo value calculator -- JOE TUBBRITT

As the last sprint draws to a close, I wanted to post an update on my task for the sprint. I was designated the task of receiving values from the face tracking module, and converting these values to between 0 and 1 for the servo module. I am quite pleased to say that this was a success.

Myself and Phil collaborated to integrate both the face detect and the servo value calculator. Phil passes my code X,Y and Z co-ordinates via a tag from his thread. When a face is being tracked, the position of the face is given in X,Y and Z coordinates. These values are then separated into Pan (X), Tilt(Y) and Vertical(Z) position values. Simple normalisation calculations are then performed to convert face values into normalised values for servo hat. These values are outputted from my thread using "HeadPosition" tag and "LampPosition" tag.

As can be seen from the image above, the values that are sent to the servo's are as required! :-)


No comments:

Post a Comment