wenchaosong / ocr_identify Goto Github PK
View Code? Open in Web Editor NEW身份证自动识别,银行卡识别,驾驶证识别,行驶证识别,根据百度文字识别 api 封装,能快速识别身份证信息,银行卡信息,驾驶证信息,行驶证信息,使用非常方便
身份证自动识别,银行卡识别,驾驶证识别,行驶证识别,根据百度文字识别 api 封装,能快速识别身份证信息,银行卡信息,驾驶证信息,行驶证信息,使用非常方便
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=102, result=-1, data=Intent { (has extras) }} to activity {com.ocr/com.ocr.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.baidu.ocr.sdk.model.AccessToken.getAccessToken()' on a null object reference
java.lang.OutOfMemoryError: Failed to allocate a 24 byte allocation with 0 free bytes and 3GB until OOM
停留一分钟左右,内存回收不及时,导致超出最高内存,直接OOM。并不是回到界面没有release的原因。不知道是不是百度sdk太旧?
如题,核心功能基本上和百度的demo一样,请问做了哪些改进?封装了什么?
创建了应用替换了相关key还是提示初始化失败
当我反复进入和退出同一个OCR页面时会出现会出现OCR空对象的引用.
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.baidu.ocr.sdk.utils.CrashReporterHandler.release()' on a null object reference
at com.baidu.ocr.sdk.OCR.release(OCR.java:863)
这个是在OnDestroy界面时调用的.但是因为快速的进入和退出导致这个空指针.
请问有什么可以判断这个OCR对象不为空时再进行OCR.getInstance(this).release();的方法吗?
随时等待回复!
如题
如题!
在fileUtils里有个getSaveFile方法,是咱们传入的需要保存的文件路径,可是这个做的是个临时存储,会出现,当咱们2次同时调用拍照识别的时候,拿到的文件还是前一个(路径是一样的,但是ocr_ui里并不会覆盖原文件存储来替换前面那张),在不改OCR_UI里文件存储的情况下,有木有更好的办法
demo下载正常,导入项目打开相机黑屏?确认已有权限。官方和此库都已尝试,均如此
身份证背面识别不了
大佬,你这个身份证自动识别(不用点击拍照)是怎么实现的?我想把银行卡的实现了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.