xcode 人脸识别iOS

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/38053313/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 08:58:28  来源:igfitidea点击:

Facial recognition iOS

iosxcodeface-recognition

提问by Bartosz B?a?ewicz

I have to build an app to recognize person on photo and find if this person is stored in phone book. I made face detection, I know how to take photos from people stored in phone book but I stuck on recognizing if the person is the same..

我必须构建一个应用程序来识别照片上的人并查找此人是否存储在电话簿中。我进行了人脸检测,我知道如何从电话簿中存储的人那里拍照,但我坚持识别这个人是否是同一个人。

I want to ask what would be the easiest way to do it - i saw that iOS 10 comes with facial recognition in Photos app - is there any API to use facial recognition in iOS 10?

我想问一下最简单的方法是什么 - 我看到 iOS 10 在照片应用程序中带有面部识别功能 - 是否有任何 API 可以在 iOS 10 中使用面部识别?

or should I use Open CV?

还是应该使用 Open CV?

采纳答案by tagyro

I built something similar some years ago. I would suggest you look into perceptual hashingas it's an easy and inexpensive way of matching images.

几年前我建造了类似的东西。我建议您研究感知散列,因为它是一种简单且廉价的匹配图像的方法。

回答by Greg

Face detection can be performed natively, as you've already found out, but to identify the faces you'll have to use something like OpenCVas there's no API available to do this presently

正如您已经发现的那样,人脸检测可以在本地执行,但是要识别人脸,您必须使用OpenCV 之类的东西,因为目前没有可用的 API 来执行此操作

There's some information about how OpenCV can be used to recognise faces here.

这里有一些关于如何使用 OpenCV 识别人脸的信息。

Information about how to use it with Xcode here.

有关如何在此处与 Xcode 一起使用它的信息

回答by Napolux

You can have a look at the documentation, but this way your app will work only on iOS 10 and future versions.

您可以查看文档,但这样您的应用程序只能在 iOS 10 和未来版本上运行。

If you plan to support older iOS versions or make also an Android app go for OpenCV

如果您打算支持较旧的 iOS 版本或也为 OpenCV 制作一个 Android 应用程序