Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

Commit

Permalink
Merge pull request #870 from jcesarmobile/master
Browse files Browse the repository at this point in the history
Moved ORCPlugin to my own repository
  • Loading branch information
devgeeks committed Nov 11, 2012
2 parents 303f4d2 + 2ff0fa9 commit 534fa35
Show file tree
Hide file tree
Showing 52 changed files with 2 additions and 14,331 deletions.
17 changes: 0 additions & 17 deletions iOS/OCRPlugin/OCRPlugin.h

This file was deleted.

82 changes: 0 additions & 82 deletions iOS/OCRPlugin/OCRPlugin.m

This file was deleted.

56 changes: 2 additions & 54 deletions iOS/OCRPlugin/README.md
@@ -1,57 +1,5 @@
PhonegapOCRPlugin
=================
This plugin has been moved to:

ocr plugin for phonegap using tesseract

drag the tessdata folder to your phonegap project
mark the checkbox "copy items into destination group"
Choose the radio-button "Create folder references for any added folders"

drag the dependencies folder to your phonegap project
mark the checkbox "copy items into destination group"
Choose the radio-button "Created groups for any added folders"

drag OCRPlugin.h, OCRPlugin.m, claseAuxiliar.h and claseAuxiliar.mm

drag OCRPlugin.js to your www folder

Add the plugin to cordova.xml

com.jcesarmobile.OCRPlugin OCRPlugin


Thanks to suzuki for compiling tesseract in this post
http://tinsuke.wordpress.com/2011/11/01/how-to-compile-and-use-tesseract-3-01-on-ios-sdk-5

I have included an index.html with an example.

It uses the camera function with destinationType.FILE_URI (IMPORTANT!!!)


// A button will call this function
//
function capturePhoto() {
// Take picture using device camera and retrieve image as base64-encoded string
navigator.camera.getPicture(onPhotoURISuccess, onFail, { quality: 100,
destinationType: destinationType.FILE_URI });
}
// Call the plugin when a photo is successfully retrieved
//
function onPhotoURISuccess(imageURI) {
callNativePlugin({url_imagen: imageURI});
}

function callNativePlugin( returnSuccess ) {
OCRPlugin.callNativeFunction( nativePluginResultHandler, nativePluginErrorHandler, returnSuccess );
}
function nativePluginResultHandler (result) {
alert("ok: "+result);
}
function nativePluginErrorHandler (error) {
alert("error: "+error);
}

https://github.com/jcesarmobile/PhonegapOCRPlugin
42 changes: 0 additions & 42 deletions iOS/OCRPlugin/claseAuxiliar.h

This file was deleted.

131 changes: 0 additions & 131 deletions iOS/OCRPlugin/claseAuxiliar.mm

This file was deleted.

32 changes: 0 additions & 32 deletions iOS/OCRPlugin/dependencies/include/leptonica/allheaders.h

This file was deleted.

0 comments on commit 534fa35

Please sign in to comment.