通过图片找人

发布于 2024-12-26 07:26:31 字数 108 浏览 2 评论 0原文

我需要实现输入有图片(jpeg)的算法并创建新的图片(如输出),但仅限于主体(背景被完全删除)。输入图片是度假时的人的照片,我需要识别人体并去除背景。有人可以建议我使用什么算法,买什么书来学习该算法吗?

I need to implement algorithm which for input has picture ( jpeg ) and create new picture like output, but only with bodies ( background is removed completely ). Input picture is picture with people from vacation and I need to recognize human bodies and remove background. Can someone suggest me what algorithm to use, what book to buy to learn that algorihms ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

疏忽 2025-01-02 07:26:31

检查此链接它将完美回答您删除背景并执行的问题进一步加工

Check this link it will perfectly answer your question of removing the background and performing further processing

温馨耳语 2025-01-02 07:26:31

神经网络对于此类任务特别有用,但理论是一个宇宙,如果你从头开始做......这需要大量工作

neural networks are particuarly useful for this kind of task, but the theory is a universe, if you're doing it from scratch ... that's a lot of work

浮光之海 2025-01-02 07:26:31

这是一个分割问题。在一般情况下,分割图像是一个困难的研究问题(例如,我刚刚花了五年时间攻读了分割灰度医学图像的博士学位),并且您的处理方式与您必须处理的图像类型密切相关。交易。我能给出的最好建议是去阅读有关分割彩色图像的适当文献(例如使用谷歌学术)。就书籍而言,这是一本很好的图像处理通用介绍:

http://www.amazon.co.uk/Digital-Image-Processing-Rafael-Gonzalez/dp/0130946508/ref=sr_1_7?ie=UTF8&qid=1326236038&sr=8-7< /a>

在 Google 上搜索“用彩色图像分割人物”似乎会发现一些不错的链接。

This is a segmentation problem. In the general case, segmenting images is a hard research problem (I just spent five years doing a doctorate on segmenting greyscale medical images, for example) and the way you go about it is strongly tied to the type of images with which you have to deal. The best advice I can give is to go and read the appropriate literature on segmenting colour images (e.g. use Google Scholar). In terms of books, this one's a good general-purpose introduction to image processing:

http://www.amazon.co.uk/Digital-Image-Processing-Rafael-Gonzalez/dp/0130946508/ref=sr_1_7?ie=UTF8&qid=1326236038&sr=8-7

Searching for "segmenting people in colour images" on Google seems to turn up some good links, incidentally.

小巷里的女流氓 2025-01-02 07:26:31

我有一个问题要问你:你想用算法来实现这个吗?如果是这样,那么可能需要做很多事情(假设您是图像处理领域的新手)。
否则,您可以尝试在 Adob​​e Photoshop 等图像编辑软件中使用遮罩技术(这几乎不需要 15 分钟,具体取决于您对它的了解程度)

一本关于图像处理技术的好书是:“数字图像处理”,作者:Gonzalez 和 Woods ;它从基础知识开始,并深入解释内容。

尽管如此,开发一种算法来完成这项工作可能仍然需要很多时间。我建议您使用一些库来实现同样的目的。 OpenCV(开源计算机视觉)是一个很好的选择。该库本身附带了演示,其中包括用于人脸检测等的程序。内置函数提供了各种功能(边缘检测/特征识别和提取,您可能需要使用它)这是链接
http://opencv.willowgarage.com/wiki/

该链接提供了大量参考资料,您可以参考可以利用! :)

I have a question for you: you want to implement this using an algorithm? If so, then it might require a lot of things to be done (provided you are new to the field of image processing).
Otherwise you may try using masking techniques in image editing software like Adobe Photoshop (that would hardly take 15 mins, depending upon how well you know it)

A good book to start with image processing techniques is: "Digital Image Processing" by Gonzalez and Woods; it starts from the basics, and explains stuff in depth.

Still it may take a lot of time to develop an algorithm to do this job. I recommend you use some library for the same. OpenCV(opensource computer vision) is an excellent choice. The library itself comes with demos which include programs for face detection etc. The inbuilt functions provide a variety of features (edge detection/Feature identification and extraction, you may have to use this) Here's the link
http://opencv.willowgarage.com/wiki/

The link provides a lot of reference material that you can make use of! :)

以为你会在 2025-01-02 07:26:31

从面部识别软件和算法入手;它们是多年来最精致的,只要你所有的身体都有头,你就可以使用 exif 数据来计算图像捕获方向(当然你不能完全依赖它),对面部皮肤进行采样以获得皮肤音调范围,并找到所附主体。任何不是头部和身体的东西都应该被删除。此过程假设一个人脸上的肤色与身体大致相同,并且相机闪光灯不会消除这种肤色。您可以从 exif 中获取闪光持续时间和其他一些属性,并相应地调整范围。

很多软件都可以识别脸部(例如 iPhoto),因此您必须使用脸部作为参考点以及肤色来找到您的身体边缘。你的结果不会是完美的,但只要你的方法是正确的,你最终会得到一些有用的东西。

完成后将您的软件作为开源发布,以便我可以使用它......:)

Start with facial recognition software and algorithms; they have been the most refined over the years and as long as all of your bodies have heads, you can use exif data to figure image capture orientation (of course you can't completely rely on that), sample the facial skin to get skin tone ranges, and find the attached body. Anything that is not head and body should be deleted. This process assumes that a person has roughly the same skin tone on their face as their body and the camera flash isn't washing this out. You could grab the flash duration and some other attributes from exif and adjust your ranges accordingly.

A lot of software out there can recognize faces (look at iPhoto for example), so you'll have to use the face as a reference point, along with skin tone, to find your body edges. You result isn't going to be perfect, but as long as your approach is sound, you'll end up with something useful.

And release your software as open source when you're done so I can use it... :)

千年*琉璃梦 2025-01-02 07:26:31

您可以从作者的网站下载 Richard Szeliski 所著的《计算机视觉》一书的免费 PDF 版本。您不仅有一本关于算法的免费书籍,而且是一本解决这个特定问题的书。

http://szeliski.org/Book/

您会在该页面的顶部看到此图片作者的网站。

图片来自 Szeliski book

如果您访问 addall.com,可以买到精装本的二手副本,价格约为 62 美元。如果您花了一些时间进行图像处理,您会很高兴拥有至少一本优秀的通用参考书的纸质副本。

You can download a free PDF of the book Computer Vision by Richard Szeliski from the author's website. Not only do you have a free book on algorithms, but it's a book that addresses this specific problem.

http://szeliski.org/Book/

You'll see this image at the top of that page of the author's website.

Image from Szeliski book

Used copies of the hardcover are available for about $62 if you check addall.com. If you spent some time doing image processing, you'll appreciate having a paper copy of at least one good general reference book.

寻梦旅人 2025-01-02 07:26:31

这很困难,但并非不可能。我无法给您任何代码,但 Peter Norvig 就数据的价值进行了精彩的演讲,在演讲中,他展示了如何拍摄湖泊照片并移除所有阻挡图像的房屋,并使湖泊扩大船等。

计算机基本上了解了湖泊的外观和船在湖上行驶的情况,然后移除了房屋并将其放置在那里。他解释了他的过程(但没有代码或任何东西)。

这里是:
Peter Norvig - 数据的不合理有效性
http://www.youtube.com/watch?v=yvDCzhbjYWs

Its tough but not impossible. I can't give you any code but Peter Norvig had a great talk on the value of data and in the talk he shows how he was able to take a picture of lake and remove all the houses blocking the image and have the lake expanded with boats,etc..

The computer basically learned how lakes look and boats go on lakes and then removed the houses and placed it there. He explains his process(but no code or anything).

Here it is:
Peter Norvig - The Unreasonable Effectiveness of Data
http://www.youtube.com/watch?v=yvDCzhbjYWs

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文