iOS上图像的人脸二维失真?(类似于 Fat Booth 等) [英] 2D distortion of a face from an image on iOS? (similar to Fat Booth etc.)

查看:15
本文介绍了iOS上图像的人脸二维失真?(类似于 Fat Booth 等)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想知道是否有人知道一些关于如何实现从用户拍摄的图像中拍摄的人脸的 2D 失真的优秀库或教程.

I was just wondering if someone knows about some good library or tutorial on how to achieve a 2D distortion of a face taken from an image taken by the user.

我想实现与 Fatify、Oldify、所有那些 Fat Booths 等中的效果类似的效果,因为我正在创建一个应用程序,您可以在其中向脸部扔东西,我会让脸部摇晃和移动当物体碰到它时.

I would like to achieve a similar effect to the one in Fatify, Oldify, all those Fat Booths, etc., because I am creating an app where you will throw something at the face and I would the face to jiggle and move when the object hits it.

我应该怎么做?

推荐答案

我发现了一个几乎相同的问题 here 接受的答案.

I have found an almost identical question here with an accepted answer.

此外,谈到失真算法,GIMP 使用了一种称为液体重新缩放"的算法.您可以在 here 找到它,它是用 C/C++ 编写的,因此您可以将它集成到您​​的 iOS 应用程序中(许可证允许,我没有检查过).

Also, speaking about distorsion algorithms there is an algorithm used by GIMP called "liquid rescale". You can find it here and is written in C/C++ so you could integrate it in your iOS App (license permitting, I haven't checked that).

这里也是另一个类似的问题.

Here is another similar question as well.

希望这有助于您开始做这件事.

Hope that this helps to get you started on this.

一些示例(将很快发布一些代码)

Some examples (will post some code soon)

编辑 2:我在寻找一些代码,发现一些博客文章解释了用于实现液体重缩放算法的过滤算法.这并不容易,我认为在短时间内并且没有关于该主题的先验知识,我可以做的不仅仅是分享这个 链接.GIMP 实现的作者似乎被称为Shai Avidan"(请参阅​​此 post).我建议您可以尝试联系他或该领域的任何其他人(参见 主题).抱歉,如果我不能提供更多帮助.

EDIT 2: I was looking for some code and I found some blog posts that explain the filtering algorithms used to implement the liquid rescale algorithm. Is not easy and I don't think in short time and with no prior knowledge on the subject I could do more than sharing this link. The author of the GIMP implementation appears to be called "Shai Avidan" (see this post). I suggest you might try to contact him or anyone else in the field (see wikipedia references on the subject). Sorry if I can't help more.

编辑 3:我在Principles of数字图像处理:基本技术".

另外,this 是 Bernd 教授的数字图像处理课程的链接斯坦福大学的吉罗德.有幻灯片和教程.

Also, this is a link to a Digital Image Processing course by Prof. Bernd Girod at Standford University. There are slides and tutorials.

然后我通过谷歌搜索数字图像处理原理"一词发现了更多结果.

Then I found some more results by googling the term "Principles of Digital Image Processing spring".

无论如何..这只是为了在我之前考虑的答案中添加一些额外的内容.

Anyway.. this was just to add some extra to the answer as I was thinking about it before.

这篇关于iOS上图像的人脸二维失真?(类似于 Fat Booth 等)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆