SwiftOCR icon indicating copy to clipboard operation
SwiftOCR copied to clipboard

Is it possible to recognise cyrillic letters?

Open aperechnev opened this issue 6 years ago • 1 comments

Hello, I'd like to ask if it is possible to recognise cyrillic letters, like "А123УХ?. There is one letter that I need to recognise – "У" in slavic alphabet, which is similar to latin, but with small difference: У-Y.

aperechnev avatar Nov 24 '17 11:11 aperechnev

Hi,

I use SwiftORC for chinese characters recognition and it works well. I think it won't be problem to use it for slavic characters recognition. Just follow the steps below.

  1. Train neural network for your characters as described and use font which supports slavic alphabet. (Note: Images you will want to recognise characters from should use the same font or at least similar)
  2. Replace the OCR-Network file in pods in your project with OCR-Network file you've just created.
  3. Open your project in Xcode and to create SwiftOCR instance use this code: let swiftOCRInstance = SwiftOCR(recognizableCharacters: "Put your characters here", network: FFNN.fromFile(Bundle(for: SwiftOCR.self).url(forResource: "OCR-Network", withExtension: nil)!)!) . It's really important to write the characters in the same order as you wrote them into the training app.

Hope it helps Andrew

MrdotSpock avatar Nov 29 '17 16:11 MrdotSpock