I am using this library for face detecting on a live feed from the users camera, what I am trying to accomplish is place an item overlay on the users head. The example the demo comes with is silly glasses that follows the users face. Instead of the face I would like to track the users head, I know its possible as Google does this on Google Hangout where you can place various items while video chatting. Are there any tutorials this and can I continue using CCV’s library and expand on it for this feature?
Share
Took me a bit to figure out but I figured out the problem.
In the script to calculate the position [Function “drawToCanvas”] I had to mess with the width and height calculations. My out put is as follows.
That is so it can place what ever image you are using on top of the users head.