facemesh.pytorch icon indicating copy to clipboard operation
facemesh.pytorch copied to clipboard

Use facemesh for filters?

Open tjasmin111 opened this issue 10 months ago • 54 comments

Interesting project. Is it possible to use facemesh to change face and make nose smaller? How can I do that?

tjasmin111 avatar Sep 25 '23 19:09 tjasmin111

describe more clearly

Lirui991225 avatar Dec 02 '23 02:12 Lirui991225

I mean, let's say I want to make some changes in the face landmarks like those beauty apps. For instance, to make nose smaller or lips bigger and such. How to achieve that?

tjasmin111 avatar Dec 02 '23 06:12 tjasmin111

Too easy!

Lirui991225 avatar Dec 05 '23 16:12 Lirui991225

Hmm can you please explain how? We can "get" the facemesh but how to use that to change the face landmarks?

tjasmin111 avatar Dec 05 '23 17:12 tjasmin111

My English is poor,do you know chinese?Can we communicate in Chinese?

Lirui991225 avatar Dec 07 '23 05:12 Lirui991225

or we can use the wchat

Lirui991225 avatar Dec 07 '23 05:12 Lirui991225

我不懂中文。 但你可以用中文解释,我可以使用谷歌翻译。 所以我的问题是,我们可以“获取”面部网格,但如何使用它来改变面部标志?

tjasmin111 avatar Dec 07 '23 05:12 tjasmin111

Perhaps you can perform some transformations on the pixels within a certain range around the landemarkes.

Lirui991225 avatar Dec 07 '23 05:12 Lirui991225

Why can you replay to me so quickly

Lirui991225 avatar Dec 07 '23 05:12 Lirui991225

Hehe because this is important to me. I need to know how to do it.

tjasmin111 avatar Dec 07 '23 05:12 tjasmin111

Are you working or studying

Lirui991225 avatar Dec 07 '23 05:12 Lirui991225

What kind of transformation? Can you write an example that gets facemesh and transforms nose?

tjasmin111 avatar Dec 07 '23 05:12 tjasmin111

I am an intern.

tjasmin111 avatar Dec 07 '23 05:12 tjasmin111

Oh, where are you from? Which school are you from

Lirui991225 avatar Dec 07 '23 05:12 Lirui991225

me,too

Lirui991225 avatar Dec 07 '23 05:12 Lirui991225

Ok! I'm in the US. California.

tjasmin111 avatar Dec 07 '23 05:12 tjasmin111

OK!What is your major,my main focus now is on computer vision and AI

Lirui991225 avatar Dec 07 '23 05:12 Lirui991225

What kind of transformation? Can you write an example that gets facemesh and transforms nose Can't your third stars solve your problem

Lirui991225 avatar Dec 07 '23 05:12 Lirui991225

Yes I'm a computer scientist focusing on computer vision. Do you think you can write a sample app to see how we can change landmark? What transformation should we use??

tjasmin111 avatar Dec 08 '23 02:12 tjasmin111

OK!I'll try to write it down.

Lirui991225 avatar Dec 08 '23 09:12 Lirui991225

Ok thanks. If we can do it for nose and make it smaller, then I can do it for all landmarks.

tjasmin111 avatar Dec 08 '23 10:12 tjasmin111

What time is it in your area

Lirui991225 avatar Dec 08 '23 10:12 Lirui991225

i think i can use the opencv todo it

Lirui991225 avatar Dec 08 '23 10:12 Lirui991225

It's 2:30am! And still awake, googling for this problem. I hope you can do it with opencv. So after knowing the mesh coordinates, you use opencv for transformation?

tjasmin111 avatar Dec 08 '23 10:12 tjasmin111

Some mesh deformation algorithms can be used, such as Laplacian deformation.

Lirui991225 avatar Dec 08 '23 11:12 Lirui991225

I need to know your specific task now.

Lirui991225 avatar Dec 08 '23 11:12 Lirui991225

Let's make nose smaller. That's the task.

tjasmin111 avatar Dec 08 '23 12:12 tjasmin111

How to use laplacian transformation? Should we pass the nose coordinates or the whole face mesh?

tjasmin111 avatar Dec 08 '23 12:12 tjasmin111

Let's make nose smaller. That's the task. The image or 3Dfile?

Lirui991225 avatar Dec 09 '23 02:12 Lirui991225

Prob image? Let's assume we stream from laptop camera.

tjasmin111 avatar Dec 09 '23 02:12 tjasmin111