motion-ocr icon indicating copy to clipboard operation
motion-ocr copied to clipboard

Can't get it to work with RubyMotion 1.33 and ruby 1.9.2

Open eltoob opened this issue 12 years ago • 4 comments

very simple project with only in the app delegate

ocr = MotionOCR.new

image_with_text = UIImage.imageNamed('ocr-test.png').CGImage puts ocr.scan(image_with_text)

But the application fails with the following error

Error opening data file /Users/Elie/Library/Application Support/iPhone Simulator/6.1/Applications/A5938C0C-ED55-476C-A8C2-B7C0ECC59688/Documents/tessdata/eng.traineddata

Do I need to install something else to get it to work?

eltoob avatar Mar 01 '13 13:03 eltoob

Any chance you got this working? I'm having a similar problem.

TheOddLinguist avatar May 24 '13 05:05 TheOddLinguist

Just an update, I've since copied the contents of the Resources directory to my project, and I'm past this error. Hopefully, that's of help to someone. hehe

TheOddLinguist avatar May 24 '13 19:05 TheOddLinguist

Same problem for me! TheOddLinguist, not sure what you mean by copied the content of the resource directory to your project. Please explain a bit further :)

dkrusenstrahle avatar Jan 21 '14 09:01 dkrusenstrahle

It's been quite a while, but I believe I just copied the tessdata directory that's part of this repo's resources directory into the resources directory of my project. But that project is long gone, so I can't confirm that's what I meant.

TheOddLinguist avatar Jan 21 '14 17:01 TheOddLinguist