# EyeBlickCheck
人脸识别--活体检测--眨眼检测
# 使用方法
```
@property(nonatomic,strong)CaptureFaceService * captureFaceService;
- (CaptureFaceService *)captureFaceService{
if (!_captureFaceService) {
_captureFaceService = [CaptureFaceService new];
}
return _captureFaceService;
}
- (void)startCaptureFace{
__weak typeof(self)weakSelf = self;
[self.captureFaceService startAutoCaptureFaceWithPreView:self.vidioView andCaptureFaceProgressBlock:^(float faceProgress, float eyeProgress, captureFaceStatus captureFaceStatus) {
[weakSelf changeTipTextWithCaptureFaceStatus:captureFaceStatus];
} andCompleteBlock:^(UIImage *resultImage, NSError *error) {
if (error) {
UIAlertController * alertController = [UIAlertController alertControllerWithTitle:@"检测人脸失败,请重试" message: nil preferredStyle:UIAlertControllerStyleAlert];
[alertController addAction:[UIAlertAction actionWithTitle:@"重试" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
[weakSelf startCaptureFace];
}]];
[alertController addAction:[UIAlertAction actionWithTitle:@"取消" style:(UIAlertActionStyleCancel) handler:^(UIAlertAction * _Nonnull action) {
}]];
[weakSelf presentViewController:alertController animated:YES completion:nil];
return ;
}
//处理采集到的图片
[self handleResultImage:resultImage];
}];
}
```
# 注意:
1.去opencv 官网,下载iOS的SDK,我demo中用的是2.4版本
http://opencv.org/releases.html
2.去度娘 (haarcascade_frontalface_alt2.xml) (haarcascade_eye.xml)这两个级联分类器并下载导入到自己的项目中
没有合适的资源?快使用搜索试试~ 我知道了~
基于object-c实现人脸识别活体检测眨眼检测ios源码.zip
共30个文件
h:9个
m:8个
mm:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 183 浏览量
2024-05-15
07:23:54
上传
评论
收藏 83KB ZIP 举报
温馨提示
基于object-c实现人脸识别活体检测眨眼检测ios源码.zip基于object-c实现人脸识别活体检测眨眼检测ios源码.zip基于object-c实现人脸识别活体检测眨眼检测ios源码.zip基于object-c实现人脸识别活体检测眨眼检测ios源码.zip基于object-c实现人脸识别活体检测眨眼检测ios源码.zip基于object-c实现人脸识别活体检测眨眼检测ios源码.zip基于object-c实现人脸识别活体检测眨眼检测ios源码.zip基于object-c实现人脸识别活体检测眨眼检测ios源码.zip
资源推荐
资源详情
资源评论
收起资源包目录
基于object-c实现人脸识别活体检测眨眼检测ios源码.zip (30个子文件)
code
EyeBlickCheck
ViewController.h 228B
ShowResultViewController.m 929B
Base.lproj
Main.storyboard 7KB
LaunchScreen.storyboard 2KB
AppDelegate.h 292B
AppDelegate.m 2KB
main.m 348B
Category
UIImage+OpenCV.h 416B
UIImage+OpenCV.mm 4KB
Service
tools
Result
IFlyFaceResultKeys.m 2KB
IFlyFaceResultKeys.h 1KB
Permission
PermissionDetector.m 4KB
PermissionDetector.h 584B
Image
UIImage+Extensions.h 780B
UIImage+Extensions.m 13KB
FaceRecognitionService.h 833B
CaptureFaceService.h 1KB
FaceRecognitionService.m 10KB
CaptureFaceService.mm 9KB
ShowResultViewController.h 293B
ViewController.m 4KB
Info.plist 2KB
Assets.xcassets
AppIcon.appiconset
Contents.json 1KB
EyeBlickCheck.xcodeproj
project.pbxproj 25KB
xcuserdata
nile.xcuserdatad
xcdebugger
Breakpoints_v2.xcbkptlist 96B
xcschemes
xcschememanagement.plist 507B
EyeBlickCheck.xcscheme 4KB
project.xcworkspace
contents.xcworkspacedata 165B
xcuserdata
nile.xcuserdatad
UserInterfaceState.xcuserstate 140KB
README.md 2KB
共 30 条
- 1
资源评论
FL1768317420
- 粉丝: 4313
- 资源: 4730
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功