SwiftOCR icon indicating copy to clipboard operation
SwiftOCR copied to clipboard

Empty String

Open burhanuddin353 opened this issue 7 years ago • 9 comments

I have successfully integrated the project by following this https://github.com/garnele007/SwiftOCR/issues/25

I tried this image test 2

But unfortunately getting an empty string. What could be the reason?

burhanuddin353 avatar Sep 07 '16 12:09 burhanuddin353

same here i had integrated project using above link, but when i am trying to use it on my iphone its returning empty string or improper output. Do i need to do anything else before running ?

JayGajjar avatar Sep 08 '16 07:09 JayGajjar

Hmmm...

Could you please check if the app crashes if you change line 16 in SwiftOCR.swift to internal var globalNetwork = FFNN.fromFile(NSBundle(forClass: SwiftOCR.self).URLForResource("OCR-Network", withExtension: nil)!)!.

ps. Does it work if you use the SwiftOCR Debug app?

NMAC427 avatar Sep 08 '16 13:09 NMAC427

Well this was not working when using with Xcode 8.0 and Swift 3.0.

When running on Xcode 7.3 with Swift 2.3, it works absolutely fine!

burhanuddin353 avatar Sep 14 '16 09:09 burhanuddin353

I've opened a PR that ports the project to Swift 3 and also fixes the problem with the empty strings.

terhechte avatar Oct 04 '16 13:10 terhechte

Still not working for swift 3.0. When you download the project from branch Swift3.0, it still needs to handle with some convertions to project work. However, after that still appears lot of deprecation warning and no good results with OCR.

marckaraujo avatar Oct 26 '16 21:10 marckaraujo

Not work for the majority of the tested images. Only once returned two letters that were not related to the text in the image. Application for Mac OS, XCode 8.1, Swift 3.

pichukov avatar Dec 03 '16 13:12 pichukov

Still empty string.... :((

Luccifer avatar Dec 29 '16 21:12 Luccifer

any update on this? or any other swift library?

NSCabezon avatar Jul 15 '17 22:07 NSCabezon

Still same problem tested on iPhone 7 and Xcode 10+ Swift 4.2

Coder-ACJHP avatar Jul 16 '19 07:07 Coder-ACJHP