GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - zhybs/WYIDCardOCR: 完整的身份证正反面,银行卡光学识别读取返回图片和卡上的信息

BranchesTags
Open more actions menu

Latest commit

 

History

19 Commits
19 Commits

Folders and files

NameName
Last commit message
Last commit date
Image
Image
 
 
WYIDCardOCR
WYIDCardOCR
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 

Repository files navigation

介绍

一份完整的身份证正反面、银行卡光学识别代码

可自动快速读出身份证上的信息

身份证:(姓名、性别、民族、住址、身份证号码)并截取到身份证正反面图像

银行卡:(卡号,银行名称)并截取到银行卡图像

WYIDCardOCR-拍照正面 WYIDCardOCR-拍照反面 WYIDCardOCR-读取正面 WYIDCardOCR-读取反面 WYIDCardOCR-卡凹槽正面 WYIDCardOCR-卡平滑正面 WYIDCardOCR-卡读取

使用

1、在你的项目的Info.plist文件中,添加权限描述(Key   Value)

Privacy - Camera Usage Description 是否允许访问相机

Privacy - Photo Library Usage Description 是否允许访问相册

2、运行程序,可能会报 ENABLE_BITCODE 错误:

WYIDCardOCR-ERROR

解决方法:

在TARGETS 中的 Buid Setting 下找到 Enable Bitcode 将其设置为NO。

3、在你的项目中的相应处倒入头文件:

#import "WYIDScanViewController.h"

在使用该功能的地方:

WYIDScanViewController *VC = [[WYIDScanViewController alloc] initWithCarInfo: 扫描的类型 ];

[self.navigationController VC animated:YES];

扫描成功回调:

[VC scanDidFinishCarInfo:^(CardType status, WYScanResultModel *scanModel) {

}];

4、使用真机,大功告成!

特别感谢

本代码参考自mxl123/IDAndBankCard,非常感谢mxl123大神的开源!

About

完整的身份证正反面,银行卡光学识别读取返回图片和卡上的信息

Resources

Readme
Activity

Stars

10 stars

Watchers

1 watching

Forks

29 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.