wysaid / android-gpuimage-plus

Android Image & Camera Filters Based on OpenGL.
MIT License
1.79k stars 473 forks source link

How to do face effects #522

Open tjasmin111 opened 10 months ago

tjasmin111 commented 10 months ago

Is it possible to use it to automatically do facial effects such as making nose smaller or eyes bigger (no mouse clicks)? How can we do that with good quality like filters we see on Instagram or Snapchat?

Any tips or samples would be appreciated.

wysaid commented 10 months ago

Sure, checkout the old branch here: https://github.com/wysaid/android-gpuimage-plus/tree/face_features

I did not previously find a suitable open-source library for face landmark recognition, and the functionality of the one I have chosen is not as accurate either.

wysaid commented 10 months ago

Sure, checkout the old branch here: https://github.com/wysaid/android-gpuimage-plus/tree/face_features

I did not previously find a suitable open-source library for face landmark recognition, and the functionality of the one I have chosen is not as accurate either.

So it's deprecated for now.

tjasmin111 commented 10 months ago

Why don't you update that Branch? I think an automatic filter would be more desirable than click based

wysaid commented 10 months ago

I didn't find a suitable open-source library for face landmark detection at that time. However, if you know any, could you please recommend a few to me?

tjasmin111 commented 10 months ago

Yes, google ML kit looks good. I played with it a bit. It has both face landmark detection and face mesh. I just don't know how to use them for facial effects and warping.

wysaid commented 10 months ago

Looks good, I'll give it a try, but it won't be so fast. You can also try providing a PR for this feature.

tjasmin111 commented 10 months ago

I don't have much to contribute but sure if I had anything. I'd rather stay tuned. This a lovely feature and we should do it!

WoYang commented 5 months ago

try MediaPie