整理时间:2017年05月02日12:59:43
1.IDCardRecognition介绍
一个近乎完整的可识别中国身份证信息的框架,可自动快速读出身份证上的信息(姓名、性别、民族、住址、身份证号码)并截取到身份证图像
2.IDCardRecognition源码地址
Github地址:
https://github.com/zhongfenglee/IDCardRecognition
3.安装教程
从github地址上下载完整的项目
1.将Category、Tool、libexidcard、Model、View、Controller这六个文件夹拖入到项目里;
2.将idcard_first.png、idcard_first_head.png、idcard_back.png、nav_back.png、nav_torch_on.png、nav_torch_off.png拖入到你的项目中,然后在相应代码处替换为项目中的素材;
3.在项目的Info.plist文件中,添加权限描述(Key Value)
Privacy - Camera Usage Description 是否允许访问相机
Privacy - Photo Library Usage Description 是否允许访问相册
4.SDK要求
该项目最低支持 Xcode 7.0
。
5.使用方法
1.在你的项目中的相应处,首先:
#import "IDAuthViewController.h"
然后在使用该功能的地方:
IDAuthViewController *IDAuthVC = [[IDAuthViewController alloc] init];
[self.navigationController pushViewController:IDAuthVC animated:YES];
6.注意事项
运行程序,如果报 ENABLE_BITCODE 错误,请关闭bitcode
网友评论