Add 2D or 3D Face Filters like MSQRD/SnapChat Usin

2019-01-31 09:36发布

Here's some research I have done so far: - I have used Google Vision API to detect various face landmarks. Here's the reference: https://developers.google.com/vision/introduction

1) https://deepar.ai/contact/

2) https://www.luxand.com/

There is possibility might have some see this question as duplicate of this: Face filter implementation like MSQRD/SnapChat

But the thread is almost 1.6 years old with no right answers to it.

I have gone through this article: https://dzone.com/articles/mimic-snapchat-filters-programmatically-1

It describes all the essential steps to achieve the desired results. But they advice to use their own made SDK.

As per my research no good enough material is around which helps to full fill the desired results like MSQRD face filters.

One more Github repository around which has same implementation but it doesn't gives much information about same. https://github.com/rootkit/LiveFaceMask

Now my question is:

If we have the facial landmarks using Google Vision API (or even using DiLib), how I can add 2d or 3d models over it. In which format this needs to be done like this require some X,Y coordinates with vertices calculation.

NOTE: I have gone through the Googles "GooglyEyesDemo" which adds the preview layer over eyes. It basically adds a view over the face. So I dont want to add UIView one dimensional preview layers over it. Image attached for reference :

https://developers.google.com/vision/ios/face-tracker-tutorial

Creating Models: I also want to know how to create models for live filters like MSQRD. I welcome any software or format recommendations. Hope the research I have done will help others and someone else experience helps me to achieve the desired results. Let me know if any more details are required.**

Image attached for more reference: I want this result

Thanks Harry

1条回答
▲ chillily
2楼-- · 2019-01-31 09:58

You need to either predict x,y,z coordinates(check out this demo), either use x,y predictions but then find parameters of universal 3d-model & camera that will give the closest projection of current x,y.

查看更多
登录 后发表回答