Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

We actually have a feature in Pragli that sort of does this... https://pragli.com/blog/live-avatars-with-faceapi-js/


Yeah I saw that but it's not as fluid yet. I am thinking of 3d faces with realistic facial texture and expressions.

Btw, nice product!


Oh yeah that would be awesome... I definitely think that's the future


You note in the article that the detection occasionally causes some lag in your overall application. Have you looked into a background worker for the task?


We actually discovered that the CPU increase was not caused by the detection, but rather by the CSS animation of the SVG moving around.

It turns out that the detection itself is very fast and lightweight, so there was no need to optimize (background workers would've been a good idea though).

We somewhat optimized the CSS animation, but it's still not where we'd like to be... if anyone on here knows how to improve CSS animation performance beyond dropping frame rate / shortening the animation, I'd love to know. Tried some obvious things (z index, will-change).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: