使用CoreImage进行人脸识别
来源:互联网 发布:淘宝搜索热词排行榜 编辑:程序博客网 时间:2024/06/05 04:50
- - (BOOL)checkImageHasFace
- {
- BOOL hasFace = NO;
- CIImage *begingImage = [[CIImage alloc] initWithImage:_postImage];
- //创建CIDetector对象,options使用NSDictionary设置采用高品质还是低品质,这里使用低品质。
- CIDetector *detector = [CIDetector detectorOfType:CIDetectorTypeFace context:nil options:[NSDictionary dictionaryWithObject:CIDetectorAccuracyLow forKey:CIDetectorAccuracy]];
- //返回数组中包含图片脸部特征信息
- NSArray *faceFeatures = [detector featuresInImage:begingImage];
- for (CIFaceFeature *faceFeature in faceFeatures) {
- //左眼位置、右眼位置和嘴的位置
- if (faceFeature.hasLeftEyePosition&&faceFeature.hasRightEyePosition&&faceFeature.hasMouthPosition) {
- hasFace = YES;
- }
- }
- return hasFace;
- }
0 0
- 使用CoreImage进行人脸识别
- 使用CoreImage进行人脸识别
- iOS之使用CoreImage进行人脸识别
- IOS_使用coreImage实现图片中的人脸识别
- iOS5.1CoreImage 人脸识别 Demo
- iOS 原生CoreImage人脸识别
- 用CoreImage实现人脸识别_iOS
- IOS CoreImage实现人脸识别
- iOS CoreImage进行人脸检测
- iOS黑科技之(CoreImage)静态人脸识别(一)
- CoreImage 使用
- 关于CoreImage人脸检测
- 使用opencv进行人脸识别
- 使用Haar特征进行人脸识别
- 使用opencv进行人脸识别
- Java使用OpenCV进行人脸识别
- 怎样使用OpenCV进行人脸识别
- 怎样使用OpenCV进行人脸识别
- Hibernate常用主键generator策略选择及配置
- AngleGradientView
- 2015年5月16日11:39:25
- html css学习笔记-过渡,动画
- Bundle的理解
- 使用CoreImage进行人脸识别
- 第九周项目三分数类
- 如何从文本文件读取数据到二维数组,如何在函数处理后返回二维数组的示例
- C++命名空间
- 盒子模型css
- 系统交换note
- 习题3-16
- Android--Eclipse常用快捷键
- Matlab 关于plot设置