有没有办法检测视频中的面部特征?
我试图找出是否有任何库或框架可以帮助在视频录制时检测面部特征,即眼睛。
我尝试在 IOS 上使用face.com api 和 CIDetector,但它们只适用于图像而不是视频。
PS我正在为iphone开发!
I'm trying to find out if there are any libraries or frameworks that will help with detecting facial features i.e. the eyes while video recording.
I tried using face.com api and THE CIDetector on IOS, but they only work on Images not video.
P.S. I'm developing for the iphone!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
为什么不简单地从正在播放的视频中提取帧并在
CIFaceDetector
中使用这些帧?该网站提供了一些有关如何在 iOS 上从视频文件获取帧的好信息:http://www.7twenty7.com/blog/2010/11/video-processing-with-av-foundation
Why not simply extract frames from the video as it is playing and use those in the
CIFaceDetector
? This site has some good info on how to get frames from video files on iOS:http://www.7twenty7.com/blog/2010/11/video-processing-with-av-foundation
我从未在 iOS/Mac OSX 上使用过这个,但你应该检查 OpenCV 库。
检查此问题以获取 iOS 支持: iPhone 和 OpenCV
该库具有检测人脸的内置函数,但是我不知道它们是否可以在 iOS 端口上使用。
I've never used this on iOS/Mac OSX, but you should check the OpenCV library.
Check this question for iOS support: iPhone and OpenCV
The library has built-in functions to detect faces, but I don't know if they are available on the iOS port.
您正在寻找对象检测,我会推荐OpenCV。
如果您想要一个开箱即用的示例,请查看此链接 :) 本教程附带了功能齐全的示例代码。除了面部跟踪之外,您还可以使用 OpenCV 做更多事情 - 只需深入研究文档和一些教程。
您可以在此处找到用于部分人脸检测的多个级联分类器。
You're looking for Object detection and I would recommend OpenCV.
If you want an out-of-the-box example just check out this link :) There is fully functional sample code attached to the tutorial. You can use OpenCV for a lot more stuff than just face tracking – just dig into the documentation and some tutorials.
You can finde several cascade classifier here for partial face detection.