adrianiainlam / facial-landmarks-for-cubism

Extracts facial landmarks from webcam (provided by OpenSeeFace) and converts to Live2D Cubism SDK parameters
MIT License
63 stars 10 forks source link

[SUGGESTION] Adding support for OpenSeeFace facial tracking #3

Closed ItsRogueRen closed 3 years ago

ItsRogueRen commented 3 years ago

Since the facial landmark dlib provided does not allow commercial use, would it be possible to use OpenSeeFace for the tracking instead? OpenSeeFace is an open source python based face tracker used in programs like VSeeFace (used for 3D VRM models, made by the same developer as OpenSeeFace) and VTube Studio (for Live2D models).

https://github.com/emilianavt/OpenSeeFace

adrianiainlam commented 3 years ago

Thanks for your suggestion. Will look into it either this coming weekend or the next.

adrianiainlam commented 3 years ago

I cloned OpenSeeFace and played around with it a bit. Tracking looks a lot better compared to dlib, and without the license restriction, I am quite keen on switching over. Though, in a sense, I basically have to rewrite everything from scratch. Optimistic ETA end of May, pessimistic end of June.

Notes to myself:

adrianiainlam commented 3 years ago

Turns out OSF has both the 2D and 3D coordinates available. I just used the 2D ones with my existing code, and it works really well without significant changes.

I have now committed my changes. I'll leave this issue open for a few weeks for any potential feedback.