简体   繁体   English

信用卡/借记卡中的数字细分

[英]Digit Segmentation in credit/debit card

I'm doing a project for which i need to segment credit card numbers from a credit card image. 我正在做一个项目,我需要从信用卡图像中分割信用卡号。

I have gone through these post 我已经看过这些帖子

http://rnd.azoft.com/optical-recognition-ios-application/ http://rnd.azoft.com/optical-recognition-ios-application/

How to split credit card number digits into separate blocks for further recognition? 如何将信用卡号位数分成多个块以进一步识别?

I do not want to use tesseract for bounding box or digit segmentation. 我不想将tesseract用于边界框或数字分割。 Any method using opencv or any other image processing library is welcome. 欢迎使用opencv或任何其他图像处理库的任何方法。

Some of the input images are 一些输入图像是

在此处输入图片说明在此处输入图片说明在此处输入图片说明

If you refuse to use Tesseract, OpenCV do have some methods to perform digit segmentation. 如果您拒绝使用Tesseract,OpenCV确实有一些方法可以执行数字分割。 But the implementation is somehow a little bit more difficult than using Tesseract. 但是,实现起来比使用Tesseract有点困难。

Basically, credit card digit extraction share the same process with license plate number extraction, and maybe the later one is more complex. 基本上,信用卡数字的提取与车牌号的提取具有相同的过程,也许后面的过程更复杂。 So here are some tutorials you might need. 因此,这里是您可能需要的一些教程。

Number plate recognition code - Github 车牌识别码-Github

Licence plate detection with different backgrounds 不同背景的车牌检测

Some method you might need: 您可能需要一些方法:

Sobel filtering 索贝尔过滤

Binarize using threshold function 使用阈值函数进行二值化

Blob detection 斑点检测

Masking 掩蔽

SVM classifing SVM分类

The characters are in printed form and are properly separated with space, hence you can easily tackle this problem using OpenCV 字符采用印刷形式,并用空格适当分隔,因此您可以使用OpenCV轻松解决此问题

Follow below steps 遵循以下步骤

  1. Resize and grayscale the image 调整图像大小和灰度
  2. Apply morphological operation (to highlight light regions against a dark background) 应用形态学运算(在深色背景上突出显示亮区)
  3. Apply binarization and Otsu thresholding 应用二值化和Otsu阈值化
  4. Extract Contours (each Contour will correspond to a digit) 提取轮廓(每个轮廓将对应一个数字)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用信用卡和借记卡进行贝宝付款 - Paypal payment with credit card and debit card Android在数据库中保存借记卡/信用卡详细信息 - Android Saving debit/credit card details in database 以编程方式将借记卡或信用卡添加到Google电子钱包中 - Adding debit or credit card programmatically into Google Wallet Android-Regex过滤信用卡/借记卡交易 - Android - Regex to filter credit/debit card transactions 如何检查卡是信用卡还是借记卡 - How to check whether a card is a credit card or debit card 如何从借记卡/信用卡中获取卡号和有效期? - How to get card number and expiration date from debit/credit card? 我已经用Io.card sdk完成了信用卡的扫描,但是找不到扫描借记卡的解决方案 - I have done scanning of credit card with Io.card sdk but I am unable to find solution for scanning Debit card 如何在没有真实信用卡或借记卡的情况下在android中测试应用内购买? - How to test in-app purchase in android without real credit or debit card? 有没有办法存储信用卡/借记卡详细信息以备将来使用使用Braintree Android SDK - Is there any way to store credit/debit card detail for future use Using Braintree Android SDK 使用信用卡/借记卡付款时,贝宝的沙盒帐户显示错误 - Sandbox account for paypal when paid using credit/debit card shows error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM