Tastenkunst / brfv4_javascript_examples

BRFv4 - HTML5/Javascript - examples project. Reference implementation for all other platform example packages.
463 stars 148 forks source link

Draw the whole head #66

Open ghun131 opened 5 years ago

ghun131 commented 5 years ago

Hi, Thank you for such an awesome library! I wonder if it is possible to draw the entire head triangles. According to your docs, there are additional 6 more points to get the forehead with the face and I also found it in this example but I'm not sure it's the limit of the library.

https://github.com/Tastenkunst/brfv4_javascript_examples/blob/master/js/examples/face_tracking/candide_overlay.js

As I played with the above example, it seems there are more points around the jawline but I couldn't find any method to connect them. Do you have any suggestions? Really appreciate it

Best regards, Hung

MarcelKlammer commented 5 years ago

Please consider using BRFv5 instead of BRFv4. We won't support BRFv4 from 2020 on.

https://github.com/Tastenkunst/brfv5-browser

Here is the extended face shape example for BRFv5:

https://tastenkunst.github.io/brfv5-browser/ (Please Choose Extended Face Shape (1 face))

And here the code: https://github.com/Tastenkunst/brfv5-browser/blob/master/js/examples/face_tracking__face_extended.js

Hope that helps.

Cheers.

ghun131 commented 5 years ago

Thank you for your suggestion!

It's seem that BRFv5 is more interesting than BRFv4. But the Extended Face Shape is not quite like what I imagine. After digging around, I found something really cool in your docs

https://artov5.com/tpptv5/

It makes me wonder whether it is possible to fit the detected face into this structure and turn the entire head into its triangular skeleton like in your example?