Repository navigation
The HeadTracker
Pre-releaseDescription
Head tracker via camera face tracking.
Built on top of Google's MediaPipe face_mesh (python release).
How to use:
-
Download and extract the files in
HeadTracker.rarand runHeadTracker.exelocated inside the folder.
Optionally you may download the .exe file directly, but be aware the starting time is slightly higher for this more compact version. -
Connect to any plataform that accepts UDP/IP connection using
IP:'127.0.0.1'andPORT:50050. -
The Auralization app below is already embedded with the head tracker application, not requiring any other files.
Interpreting received data:
The head tracker application currently sends to the server yaw, pitch, and roll information in degrees. The data are JSON encoded bytes (depending on the application it needs to be decoded).
Example: reading data in Matlab:
% Open the HeadTracker application
open('HeadTracker.exe')
% Connect to the local server
udpr = dsp.UDPReceiver('RemoteIPAddress', '127.0.0.1',...
'LocalIPPort',50050);
% Read data from the head tracker
while true
py_output = step(udpr);
if ~isempty(py_output)
data = str2double(split(convertCharsToStrings(char(py_output)), ','));
disp([' yaw:', num2str(data(1)),...
' pitch:', num2str(data(2)),...
' roll:', num2str(data(3))])
end
end
Another example of the head tracking connection to Matlab is posted here.