Comments (7)
目前在图片已经提取出来的情况下,主要用opencv处理的。二值化,腐蚀,膨胀,轮廓检测。http://www.jianshu.com/p/ac4c4536ca3e
如果要从背景里面提取图片,比如手持的身份证,那么可以用深度学习的目标检测的一些方法RCNN->SPP->Fast RCNN->Faster RCNN->YOLO->SSD->YOLO2->Mask RCNN。之前看美团用的简化版的Faster RCNN。但我对RCNN还看不明白,也缺少训练样本。
from card-ocr.
如果身份证整体比较暗,直接二值化很难把身份证的底纹去掉,会大大影响识别率。
from card-ocr.
当需要适应不同亮度的时候,二值化的阈值可以动态算。比如opencv里面有THRESH_OTSU。
同时opencv里面有些降噪的方法比如fastNlMeansDenoisingColored也能把底纹过滤一些。
from card-ocr.
openCV的体积有点感人~
from card-ocr.
自己实现对应的算法也行,ostu算法大概100行
from card-ocr.
不知道图片摆正如何实现?
我之前尝试用opencv 寻找直线 + 透视变换,想把一个斜着拍的卡片摆正,不过效果很差.
楼主有什么好办法吗?
from card-ocr.
我用苹果提供的api 直接进行一次 透视矫正效果就蛮好了。你阔以试试看
from card-ocr.
Related Issues (5)
- 问一下,这个怎么使用,有例子吗 HOT 1
- will we have username ocr? HOT 2
- 关于您windows编译环境配置 HOT 4
- 请教一下如果身份证的地址有多行, 分成了几段识别如何拼凑回去 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from card-ocr.