NMAC427 / SwiftOCR

Fast and simple OCR library written in Swift
Apache License 2.0
4.61k stars 481 forks source link

How to improve the recognition rate #125

Open lu469814 opened 6 years ago

lu469814 commented 6 years ago

How to improve the recognition rate

I have some captcha images here

captcha

I try to use SwiftOCR to identify these codes

This is the result of identification

result

Here is a demo program OCR.zip

How should I improve the recognition rate? Or how should I remove these Unrelated lines

NMAC427 commented 6 years ago

Improving accuracy for recognizing captchas won't be possible. SwiftOCR probably work properly with distorted text. What you can do is you can remove the unrelated lines and train SwiftOCR to also recognize lowercase character. If that doesn't help, you should search for another solution.

lu469814 commented 6 years ago

I have tried recognize lowercase character It does not help For removing unrelated lines Do you have the relevant processing experience to share?

NMAC427 commented 6 years ago

You can try to apply an morphological closing filter to remove the lines but keep the characters.