Coder Social home page Coder Social logo

rcarlsen / pocket-ocr Goto Github PK

View Code? Open in Web Editor NEW
518.0 27.0 111.0 1.98 MB

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

Objective-C 66.57% Objective-C++ 33.09% Shell 0.34%

pocket-ocr's Introduction

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

pocket-ocr's People

Contributors

rcarlsen avatar sapzildj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pocket-ocr's Issues

library not found for -ltesseract_api

I got an error: library not found for -ltesseract_api

image

I think maybe the name is wrong, after checking where ltesseract is used and I've already changed ltesseract to libtesseract, but doesn't work, how to fix this problem? Thanks a lot !

image

Cannot be compile for iOS SDK 5.1 Xcode 4.3.2

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?

OCRDisplayViewController.mm readAndProcessImage: and threadedReadAndProcessImage: have to CFRelease

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!!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.