要运行示例项目,请克隆仓库,并首先从 Example 目录运行 pod install
##使用方法
var iDentifyOCR =new TPExIdentityCardOCR();
iDentifyOCR.bFront = 'YES';
iDentifyOCR.success = function(date){ console.print(date); } iDentifyOCR.error = function(data){ console.print(date); } iDentifyOCR.start();
其中bFront代表识别正面还是背面,YES为正面,NO为背面
1.0.5
添加 faceImgBase64
1.0.6
添加 图片路径
1.0.7
抛出字段修改,和 Android 平台保持统一
TPExIdentityCardOCR 可通过 CocoaPods 获取。要安装它,只需将以下行添加到您的 Podfile 中
pod "TPExIdentityCardOCR"
kingdomrain, [email protected]
TPExIdentityCardOCR 可在 MIT 许可证下使用。有关更多信息,请参阅 LICENSE 文件。