nolanbrown / tesseract-iphone-demo Goto Github PK
View Code? Open in Web Editor NEWDemo iPhone app utilizing the tesseract library for OCR
Demo iPhone app utilizing the tesseract library for OCR
Hi, I am experimenting a few things with the OCR demo application. It is crashing in "ocrimage" function on calling "tess->tesseractRect" after I select any image from image picker. This is happening every time. I am trying to debug the issue, but posting here also, just in case you have any idea about this. I am using iphone simulator 3.1, sdk and xcode version 3.1.4
Thanks,
Vikram
I'm trying to compile your demo using the oldest iOS sdk available nowadays which is 3.2
At runtime, after taking the photograph the program crashes with EXC_BAD_ACCESS during the following call:
char* text = tess->TesseractRect(imageData,(int)bytes_per_pixel,(int)bytes_per_line, 0, 0,(int) imageSize.height,(int) imageSize.width);
Other users are experiencing the same problem, there's a stackoverflow thread about it:
http://stackoverflow.com/questions/4560587/business-card-reader-or-ocr-library-for-iphone-sdk
Have you tried running your code with SDK 3.0 or greater?
Thanks for your precious work!
I cloned the source today and built the iphone OCR demo for 4.3
The application starts ok (Simulator), and on clicking the 'show image picker' button the UIImagePicker appears allowing me to select an image. Selecting the image shows a 'OCRDEMO - working' Alert for 1-2 seconds, then the app crashes with debugger output of this:
Detected an attempt to call a symbol in system libraries that is not present on the iPhone: clock$UNIX2003 called from function _Z17edges_and_textordPKcP10BLOCK_LIST in image OCRDemo. If you are encountering this problem running a simulator binary within gdb, make sure you 'set start-with-shell off' first.
It doesn't help that I don't exactly know how to 'set start-with-shell off'
My fear is that this is an issue caused by 4.3 since a search for the key components of the error come up short.
Getting the following error when trying to run on Simulator, runs fine of Device:
Detected an attempt to call a symbol in system libraries that is not present on the iPhone:
fputs$UNIX2003 called from function _Z7tprintfPKcz in image OCRDemo.
If you are encountering this problem running a simulator binary within gdb, make sure you 'set start-with-shell off' first.
Any ideas?
Thanks
Greg
I modified the code, compiled and run the code which does all the above fine, when but I try to archive it, Im getting an error
error: strip /Users/mac1/xfer/Ananth/Projects/OCRSample/Resources/nolanbrown-Tesseract-iPhone-Demo-6338e61/OCRDemo/Classes/tesseract-3.01/vs2008/lib/liblept.lib: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip received signal 11
I didn't ever faced this error before and so I surfed but didn't find any relative solutions to it. Im using xcode version 4.3.2 and Mac OS, version 10.7.4
NSInternalInconsistencyException', reason: 'Application windows are expected to have a root view controller at the end of application launch
i'm getting a error "clang: error: unknown argument: '-stdc++'" if tried to run in xcode6.1
Hello!
When I try to run my app on iPad, it crashes at launch.
This is the log:
Unable to load unicharset file /var/mobile/Applications/2BF9E121-322D-4A6A-9646-1905F49DBD44/Documents/tessdata/eng.unicharset
How can I resolve it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.