rcarlsen / pocket-ocr Goto Github PK
View Code? Open in Web Editor NEWDemonstration of Tesseract OCR on the iPhone. Video: http://www.youtube.com/v/MICew5-nZp4?hl=en_US&fs=1
Home Page: http://robertcarlsen.net/dev/pocket-ocr
Demonstration of Tesseract OCR on the iPhone. Video: http://www.youtube.com/v/MICew5-nZp4?hl=en_US&fs=1
Home Page: http://robertcarlsen.net/dev/pocket-ocr
Pocket OCR Tesseract OCR for iPhone Robert Carlsen | robertcarlsen.net This project is a demonstration of implementing the Tesseract OCR engine on the iPhone platform. It works best with the iPhone 3GS and it's autofocus lens. External lenses for older iPhones may be necessary for optimal image capture. To build the tesseract library, download the source code and compile apropriately for the iPhone (arm processor). Add the library to the XCode project and build. The Tesseract source code is available at: http://code.google.com/p/tesseract-ocr/ A build script and instructions are available at: http://robertcarlsen.net/2009/07/15/cross-compiling-for-iphone-dev-884 File issues on github: https://github.com/rcarlsen/Pocket-OCR/issues Enjoy! -Robert --- Released 11.1.2010
Thank U for wonderful OCR sample!!
But, I found memory leak,,,
readAndProcessImage: and threadedReadAndProcessImage: method of OCRDisplayViewController.mm File have to CFRelease as below..
CFDataRef data = CGDataProviderCopyData(CGImageGetDataProvider([uiImage CGImage]));
const UInt8 imageData = CFDataGetBytePtr(data);
char text = tess->TesseractRect(imageData,
bytes_per_pixel,
bytes_per_line,
0, 0,
imageSize.width, imageSize.height);
CFRelease(data); // Add this line!!!
Fremeworks are also not found. Beseapi.h file not found.
Screenshot: http://cl.ly/2d1x1a1K0u3d2M3l2y1G
Any idea how to remove space in the outputview?
Thanks a lot.
Hi,
As I mentioned on the title, the project cannot get complied in my environment, It says that cannot find the file baseapi.h, if i copy the baseapi.h from the project named OCRTest(http://robertcarlsen.net/2009/12/06/ocr-on-iphone-demo-1043) , it errors that there are some problem about using namespace tesseract(expect namespace name) and too few argument on the function tess->Init([dataPath cStringUsingEncoding:NSUTF8StringEncoding], "eng");
So, do you know what might be the problem here? Do I need to make all the source myself?
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.