Giter VIP home page Giter VIP logo

android-ocr's People

Contributors

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

android-ocr's Issues

Build Issue

Using build target 4.4.2 API 19 and having the following issues....any hints?

Description Resource Path Location Type
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 228 Java Problem
R cannot be resolved to a variable OcrRecognizeAsyncTask.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 118 Java Problem
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 227 Java Problem
R cannot be resolved to a variable OcrRecognizeAsyncTask.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 121 Java Problem
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 226 Java Problem
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 243 Java Problem
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 233 Java Problem
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 231 Java Problem
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 229 Java Problem
R cannot be resolved to a variable ViewfinderView.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 94 Java Problem
R cannot be resolved to a variable PreferencesActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 196 Java Problem
R cannot be resolved to a variable ViewfinderView.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 93 Java Problem
R cannot be resolved to a variable PreferencesActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 189 Java Problem
R cannot be resolved to a variable BeepManager.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 90 Java Problem
R cannot be resolved to a variable PreferencesActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 195 Java Problem
R cannot be resolved to a variable ViewfinderView.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 92 Java Problem
The import edu.sfsu.cs.orange.ocr.R cannot be resolved ViewfinderView.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 21 Java Problem
R cannot be resolved to a variable DecodeHandler.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 132 Java Problem
R cannot be resolved to a variable DecodeHandler.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 198 Java Problem
R cannot be resolved to a variable DecodeHandler.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 69 Java Problem
R cannot be resolved to a variable DecodeHandler.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 72 Java Problem
The import edu.sfsu.cs.orange.ocr.R cannot be resolved DecodeHandler.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 26 Java Problem
R cannot be resolved to a variable PreferencesActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 183 Java Problem
R cannot be resolved to a variable PreferencesActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 188 Java Problem
R cannot be resolved to a variable DecodeHandler.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 62 Java Problem
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 1070 Java Problem
R cannot be resolved to a variable PreferencesActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 85 Java Problem
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 939 Java Problem
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 1101 Java Problem
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 1088 Java Problem
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 1124 Java Problem
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 247 Java Problem
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 249 Java Problem
R cannot be resolved to a variable HelpActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 66 Java Problem
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 252 Java Problem
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 352 Java Problem
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 483 Java Problem
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 524 Java Problem
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 741 Java Problem
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 745 Java Problem
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 751 Java Problem
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 753 Java Problem
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 759 Java Problem
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 760 Java Problem
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 761 Java Problem
R cannot be resolved to a variable HelpActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 68 Java Problem
R cannot be resolved to a variable CaptureActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 815 Java Problem
R cannot be resolved to a variable HelpActivity.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 75 Java Problem
R cannot be resolved to a variable CaptureActivityHandler.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 201 Java Problem
R cannot be resolved to a variable CaptureActivityHandler.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 210 Java Problem
R cannot be resolved to a variable CaptureActivityHandler.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 135 Java Problem
R cannot be resolved to a variable CaptureActivityHandler.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 136 Java Problem
R cannot be resolved to a variable CaptureActivityHandler.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 173 Java Problem
R cannot be resolved to a variable CaptureActivityHandler.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 174 Java Problem
R cannot be resolved to a variable CaptureActivityHandler.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 117 Java Problem
R cannot be resolved to a variable CaptureActivityHandler.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 112 Java Problem
R cannot be resolved to a variable CaptureActivityHandler.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 134 Java Problem
R cannot be resolved to a variable CaptureActivityHandler.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 133 Java Problem
R cannot be resolved to a variable CaptureActivityHandler.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 87 Java Problem
The import edu.sfsu.cs.orange.ocr.R cannot be resolved CaptureActivityHandler.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 20 Java Problem
R cannot be resolved to a variable CaptureActivityHandler.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 101 Java Problem
R cannot be resolved to a variable CaptureActivityHandler.java /OCRTest/src/edu/sfsu/cs/orange/ocr line 90 Java Problem
R cannot be resolved to a variable TranslateAsyncTask.java /OCRTest/src/edu/sfsu/cs/orange/ocr/language line 52 Java Problem
R cannot be resolved to a variable TranslateAsyncTask.java /OCRTest/src/edu/sfsu/cs/orange/ocr/language line 78 Java Problem
R cannot be resolved to a variable TranslateAsyncTask.java /OCRTest/src/edu/sfsu/cs/orange/ocr/language line 50 Java Problem
R cannot be resolved to a variable TranslateAsyncTask.java /OCRTest/src/edu/sfsu/cs/orange/ocr/language line 51 Java Problem
The import edu.sfsu.cs.orange.ocr.R cannot be resolved TranslateAsyncTask.java /OCRTest/src/edu/sfsu/cs/orange/ocr/language line 19 Java Problem
R cannot be resolved to a variable LanguageCodeHelper.java /OCRTest/src/edu/sfsu/cs/orange/ocr/language line 221 Java Problem
R cannot be resolved to a variable LanguageCodeHelper.java /OCRTest/src/edu/sfsu/cs/orange/ocr/language line 220 Java Problem
R cannot be resolved to a variable LanguageCodeHelper.java /OCRTest/src/edu/sfsu/cs/orange/ocr/language line 206 Java Problem
R cannot be resolved to a variable LanguageCodeHelper.java /OCRTest/src/edu/sfsu/cs/orange/ocr/language line 205 Java Problem
R cannot be resolved to a variable LanguageCodeHelper.java /OCRTest/src/edu/sfsu/cs/orange/ocr/language line 177 Java Problem
The import edu.sfsu.cs.orange.ocr.R cannot be resolved LanguageCodeHelper.java /OCRTest/src/edu/sfsu/cs/orange/ocr/language line 22 Java Problem
R cannot be resolved to a variable LanguageCodeHelper.java /OCRTest/src/edu/sfsu/cs/orange/ocr/language line 176 Java Problem

Build question

I am trying to build this for F-droid.org. I built it normally before then when I tried to build it with F-droid (an ant frontend) there were no libsos in the result. So I tried again by copying the library repo into the main repo as follows:

Build Version:0.5.12,31,5ca566,subdir=android,srclibs=TessTwo@cbfa61eff0,prebuild=\ sed -i 's@\(android.library.reference.1=\).*@\1tess-two@' project.properties && \ cp -r $$TessTwo$$ . && $$NDK$$/ndk-build -C tess-two

(the copy command translates to cp -r TessTwo/tess-two .

The error is this which is strange as I can't find any obj/

jni/com_googlecode_tesseract_android/src/textord/tabfind.cpp:1456:1: fatal error: opening dependency file ./obj/local/armeabi-v7a/objs/tess/src/textord/tabfind.o.d: No such file or directory compilation terminated. make: *** [obj/local/armeabi-v7a/objs/tess/src/textord/tabfind.o] Error 1

I'm only chancing my arm and using a netbook at that, so I can't be trying everything. Any help would be appreciated.

how to train the OCR ?

Hi

i'm trying to create an app that read the water meter number like the photo shown below
gsd8_foto1

my big problem is how to train OCR ?
and how to use it with tess-two ?
could you help me please?

Where to write the code for opening new activity when we get result after ocr

Hi rmtheis,
I have successfully used OCR demo in my app and in this demo , the result is displayed on camera screen itself. My motive is i need to show the result ocr text on another activity.
So where in CaptureActivity.java (or any other class) i should write the code of intent fire since i tried to use two lines of code to open activity many places in the demo but crashed.
Kindly help

Conversion of screenshot to text is not proper

Trying to convert android screenshot to text by using this library. But conversion is not proper. getting some text as a w , / E " . Can we convert screenshot to text by using this library or it's only applicable to scanned images , documents. Please clarify. Or am i doing any mistake.

fails to run

fails to run/launch on a OnePlus One with CM12.1.

error layout

i got an error for each element in the layout capture.xml

capture.xml: java.lang.NullPointerException

java.lang.NullPointerException
at edu.sfsu.cs.orange.ocr.ViewfinderView.onDraw(ViewfinderView.java:108)
at android.view.View.draw(View.java:6880)
at android.view.ViewGroup.drawChild(ViewGroup.java:1646)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
at android.view.View.draw(View.java:6883)
at android.view.ViewGroup.drawChild(ViewGroup.java:1646)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
at android.view.View.draw(View.java:6883)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.render(RenderSessionImpl.java:466)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:320)
at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:325)
at com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderService.createRenderSession(RenderService.java:372)
at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.renderWithBridge(GraphicalEditorPart.java:1638)
at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.recomputeLayout(GraphicalEditorPart.java:1389)
at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.activated(GraphicalEditorPart.java:1163)
at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate.delegatePageChange(LayoutEditorDelegate.java:674)
at com.android.ide.eclipse.adt.internal.editors.common.CommonXmlEditor.pageChange(CommonXmlEditor.java:360)
at org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:1067)
at org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:607)
at com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor.selectDefaultPage(AndroidXmlEditor.java:413)
at com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor.addPages(AndroidXmlEditor.java:303)
at com.android.ide.eclipse.adt.internal.editors.common.CommonXmlEditor.addPages(CommonXmlEditor.java:285)
at org.eclipse.ui.forms.editor.FormEditor.createPages(FormEditor.java:138)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:348)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
at org.eclipse.ui.internal.EditorManager.findEditor(EditorManager.java:424)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2887)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2764)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:355)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:164)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Cannot download

I download the source and import to my project ,run,it show me a download dialog and didn't run the
progress ..Did I need to do some other configuration ??

tess-two Not Found

hi,

I am JAVA / Android Software Engineer in Cygnet Infotech Pvt. Ltd., Ahmedabad, Gujarat, India.
I need to integrate OCR in my Android App as client required.

I am using Android, Eclipse IDE on windows xp.
recently, i found your article its awesome with steps.

but i can't find tess-two library project for running Android OCR application (for Intermediate+) Project.
so can you please provide me the successfully compiled tess-two library project with some simple steps on my email id: [email protected]

and My question is Simple Android OCR Android Project runs in all android Device or some specific device with minimum API Level?
please let me know your feedback on above question.

if you provide me the library and answer of my above query as soon as possible, it will be a great help for me.

Looking for your cooperation......

Thanks & Regards,
Durgesh Patel
JAVA / ANDROID Software Engineer
Cygnet Infotech Pvt. Ltd.
Ahmedabad, Gujarat, India

Portrait mode

The app works good in landscape mode, but I need portrait mode. It was easy to implement portrait mode for non continuous mode, rotating data in the onPreviewFrame method, but it doesn't work real time in the continuous mode, are there any solutions for that?

Android New Camera2 API

Your sample worked great for me but does it possible implements android.hardware.camera2 instead of using deprecated old camera api ? If so, how do i start from ? Thank You

BUILD ERROR

I was trying to build the OCRTEST but the error has appear ..
builderror

Integration with other apps

Hi,
This is a great piece of work, congrats!

I'm trying to integrate OCR into my own app, does the OCR test app offer any Intents that can be used to push results to other activities?

Lots of thanks,
MO.

Downloading data for orientation and script detection taking time.

I used your demo in my app for ocr. Whenever it runs first time, it downloads some stuff from internet. Can we hardcode it in our app? and if not it is taking time in orientation and script detection. My phone hangs there and i need to run the app again saying "Network issues". But if network issues are there why it is not haulting when ocr downloads english langauge.

Please help me with this issue.

Show result text in vertical

screenshot_2014-11-14-15-47-36

I'm successfully running ocr app to portrait mode and want to change the view of "ocr result text" (on the right side of the picture "mol! ... bla2") in VERTICAL. So, it will appear in the bottom of translation label.

But, after i change the "Linear Layout" number 2 "orientation" on capture.xml which is the setting of "result text" layout (see picture). The result text does not appear.

capture issue

The result i want: (view from top to bottom):

 Image 

translation label
ocr result text
ocr result text translation

How do i solve this?

portrait issue

the app does not work on portrait mode , the camera is keep rotating

Installation error: INSTALL_FAILED_UID_CHANGED

I got this problem when trying to run it on my device.

Automatic Target Mode: using device 'HT1BGVZ05406'
[2014-09-09 18:12:12 - OCRTest] Uploading OCRTest.apk onto device 'HT1BGVZ05406'
[2014-09-09 18:12:15 - OCRTest] Installing OCRTest.apk...
[2014-09-09 18:12:21 - OCRTest] Installation error: INSTALL_FAILED_UID_CHANGED
[2014-09-09 18:12:21 - OCRTest] Please check logcat output for more details.
[2014-09-09 18:12:21 - OCRTest] Launch canceled!

this is my logcat.
logcat

Can you help me to solve this problem? is this because error opening trace file?

Problem debugging on 4.4.2 devices

One thing that I noticed that this app is not working on devices with Kitkat OS like (4.4.2)
Got this error:

11-12 12:41:48.601 5702-5702/com.example.fpaul.imacon_ocr W/ContextImpl: Failed to ensure directory: /storage/extSdCard/Android/data/com.example.fpaul.imacon_ocr/files/mounted
11-12 12:41:48.766 5702-5702/com.example.fpaul.imacon_ocr D/dalvikvm: Trying to load lib /data/app-lib/com.example.fpaul.imacon_ocr-2/libpng.so 0x425286e0
11-12 12:41:48.766 5702-5702/com.example.fpaul.imacon_ocr D/dalvikvm: Added shared lib /data/app-lib/com.example.fpaul.imacon_ocr-2/libpng.so 0x425286e0
11-12 12:41:48.766 5702-5702/com.example.fpaul.imacon_ocr D/dalvikvm: No JNI_OnLoad found in /data/app-lib/com.example.fpaul.imacon_ocr-2/libpng.so 0x425286e0, skipping init
11-12 12:41:48.766 5702-5702/com.example.fpaul.imacon_ocr D/dalvikvm: Trying to load lib /data/app-lib/com.example.fpaul.imacon_ocr-2/liblept.so 0x425286e0
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr E/dalvikvm: dlopen("/data/app-lib/com.example.fpaul.imacon_ocr-2/liblept.so") failed: dlopen failed: cannot locate symbol "png_set_longjmp_fn" referenced by "liblept.so"...
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr W/dalvikvm: Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/googlecode/tesseract/android/TessBaseAPI;
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr D/AndroidRuntime: Shutting down VM
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41c97c08)
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr E/AndroidRuntime: FATAL EXCEPTION: main
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr E/AndroidRuntime: Process: com.example.fpaul.imacon_ocr, PID: 5702
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr E/AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "png_set_longjmp_fn" referenced by "liblept.so"...
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr E/AndroidRuntime: at java.lang.Runtime.loadLibrary(Runtime.java:365)
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr E/AndroidRuntime: at java.lang.System.loadLibrary(System.java:526)
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr E/AndroidRuntime: at com.googlecode.tesseract.android.TessBaseAPI.(TessBaseAPI.java:44)
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr E/AndroidRuntime: at com.example.fpaul.imacon_ocr.CaptureActivity.initOcrEngine(CaptureActivity.java:844)
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr E/AndroidRuntime: at com.example.fpaul.imacon_ocr.CaptureActivity.onResume(CaptureActivity.java:490)
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr E/AndroidRuntime: at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1198)
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr E/AndroidRuntime: at android.app.Activity.performResume(Activity.java:5532)
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr E/AndroidRuntime: at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3066)
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr E/AndroidRuntime: at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3105)
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr E/AndroidRuntime: at android.app.ActivityThread.access$900(ActivityThread.java:175)
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1308)
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr E/AndroidRuntime: at android.os.Looper.loop(Looper.java:146)
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5602)
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr E/AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method)
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:515)
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
11-12 12:41:48.771 5702-5702/com.example.fpaul.imacon_ocr E/AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)

Debugging on different devices is fine like on 4.0,4.1,4.2,4.3,5.0,5.1 but on 4.4.x it force closes
DO i need to update my library or there is a serious problem ....

F-droid release crashes immediately

When I try to start the app, it just shows a dialog "Unfortunately, OCR Test has stopped." Logcat is empty.

This only happens with the version from F-droid.
If I install it from Google Play Store or compile it myself, it works fine.

My system is Android 4.4.2, API 19

Error Exceuting in android studio libpngt.so problem

When I am trying to execute the code in android studio to an external device i always get a error on liblept.so

LOGCAT:

10-04 11:44:43.749 1207-1207/com.spnv.newapp E/AndroidRuntime: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.spnv.newapp-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]] couldn't find "liblept.so"
10-04 11:44:43.749 1207-1207/com.spnv.newapp E/AndroidRuntime: at java.lang.Runtime.loadLibrary(Runtime.java:366)
10-04 11:44:43.749 1207-1207/com.spnv.newapp E/AndroidRuntime: at java.lang.System.loadLibrary(System.java:989)
10-04 11:44:43.749 1207-1207/com.spnv.newapp E/AndroidRuntime: at com.googlecode.tesseract.android.TessBaseAPI.(TessBaseAPI.java:44)
10-04 11:44:43.749 1207-1207/com.spnv.newapp E/AndroidRuntime: at com.spnv.newapp.CaptureActivity.initOcrEngine(CaptureActivity.java:710)
10-04 11:44:43.749 1207-1207/com.spnv.newapp E/AndroidRuntime: at com.spnv.newapp.CaptureActivity.onResume(CaptureActivity.java:367)
10-04 11:44:43.749 1207-1207/com.spnv.newapp E/AndroidRuntime: at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1241)
10-04 11:44:43.749 1207-1207/com.spnv.newapp E/AndroidRuntime: at android.app.Activity.performResume(Activity.java:6106)
10-04 11:44:43.749 1207-1207/com.spnv.newapp E/AndroidRuntime: at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3015)
10-04 11:44:43.749 1207-1207/com.spnv.newapp E/AndroidRuntime: at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3057)
10-04 11:44:43.749 1207-1207/com.spnv.newapp E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2396)
10-04 11:44:43.749 1207-1207/com.spnv.newapp E/AndroidRuntime: at android.app.ActivityThread.access$800(ActivityThread.java:151)
10-04 11:44:43.749 1207-1207/com.spnv.newapp E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1309)
10-04 11:44:43.749 1207-1207/com.spnv.newapp E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
10-04 11:44:43.749 1207-1207/com.spnv.newapp E/AndroidRuntime: at android.os.Looper.loop(Looper.java:135)
10-04 11:44:43.749 1207-1207/com.spnv.newapp E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5349)
10-04 11:44:43.749 1207-1207/com.spnv.newapp E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-04 11:44:43.749 1207-1207/com.spnv.newapp E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372)
10-04 11:44:43.749 1207-1207/com.spnv.newapp E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:908)
10-04 11:44:43.749 1207-1207/com.spnv.newapp E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:703)

Please Solve my Error

warning: edu.sfsu.cs.orange.ocr.language.TranslatorGoogle: can't find referenced class com.google.api.translate.Language
Warning: edu.sfsu.cs.orange.ocr.language.TranslatorGoogle: can't find referenced class com.google.api.translate.Translate
Warning: edu.sfsu.cs.orange.ocr.language.TranslatorGoogle: can't find referenced class com.google.api.translate.Language
Warning: edu.sfsu.cs.orange.ocr.language.TranslatorGoogle: can't find referenced class com.google.api.translate.Language
Warning: there were 33 unresolved references to classes or interfaces.
You may need to specify additional library jars (using '-libraryjars').
java.io.IOException: Please correct the above warnings first.
at proguard.Initializer.execute(Initializer.java:321)
at proguard.ProGuard.initialize(ProGuard.java:211)
at proguard.ProGuard.execute(ProGuard.java:86)
at proguard.ProGuard.main(ProGuard.java:492)

GOT ABOVE ERROR WHILE EXPORT PROJECT

Is possible if I use two traineddata

I created my own traineddata since i Can't combine it to the eng.traineddata. Is it possible for the app to use use two or more traineddata at the same time.

Question about the image taken

Hi,

I am using your project as base for mine, I was trying to access the color of pixels of the image taken but I realized that the image is black and white, and I didnt find exactly where I can change this option, I mean, intercept the process before the image is converted into black and white. I thought it was under PlanarYUVLuminanceSource.renderCroppedGreyscaleBitmap() but my attempt to change this part didnt work. Could you help me with this?

Thank you very much.

Share menu

Can you please add a share menu to this wonderful app. This would make your app a way more useful.

java.lang.RuntimeException: Unable to resume activity : CaptureActivity

@rmtheis I am facing this issue on running the app.

This is my directory structure. I am trying to run on android studio 2.0 windows 10 (64 bit) machine.
untitled

Here is stack trace
04-28 02:57:12.025 18385-18385/com.prashantskywalker.newvideoocr E/CaptureActivity: setdefaultpreferences run
04-28 02:57:17.199 18385-18393/com.prashantskywalker.newvideoocr W/art: Suspending all threads took: 8.531ms
04-28 02:57:17.223 18385-18385/com.prashantskywalker.newvideoocr W/art: Verification of java.lang.Object com.prashantskywalker.newvideoocr.ViewfinderView.access$super(com.prashantskywalker.newvideoocr.ViewfinderView, java.lang.String, java.lang.Object[]) took 502.418ms
04-28 02:57:17.310 18385-18385/com.prashantskywalker.newvideoocr W/ResourceType: Failure getting entry for 0x7f0d0003 (t=12 e=3) (error -75)
04-28 02:57:17.310 18385-18385/com.prashantskywalker.newvideoocr W/ResourceType: Failure getting entry for 0x7f0d0002 (t=12 e=2) (error -75)
04-28 02:57:17.311 18385-18385/com.prashantskywalker.newvideoocr D/AndroidRuntime: Shutting down VM
04-28 02:57:17.314 18385-18385/com.prashantskywalker.newvideoocr E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.prashantskywalker.newvideoocr, PID: 18385
java.lang.RuntimeException: Unable to resume activity {com.prashantskywalker.newvideoocr/com.prashantskywalker.newvideoocr.CaptureActivity}: android.view.InflateException: Binary XML file line #26: Error inflating class java.lang.reflect.Constructor
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3028)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3063)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2418)
at android.app.ActivityThread.access$800(ActivityThread.java:155)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5343)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
Caused by: android.view.InflateException: Binary XML file line #26: Error inflating class java.lang.reflect.Constructor
at android.preference.GenericInflater.createItem(GenericInflater.java:397)
at android.preference.GenericInflater.onCreateItem(GenericInflater.java:417)
at android.preference.GenericInflater.createItemFromTag(GenericInflater.java:428)
at android.preference.GenericInflater.rInflate(GenericInflater.java:481)
at android.preference.GenericInflater.rInflate(GenericInflater.java:493)
at android.preference.GenericInflater.inflate(GenericInflater.java:326)
at android.preference.GenericInflater.inflate(GenericInflater.java:263)
at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:272)
at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:485)
at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:444)
at com.prashantskywalker.newvideoocr.CaptureActivity.retrievePreferences(CaptureActivity.java:1146)
at com.prashantskywalker.newvideoocr.CaptureActivity.onResume(CaptureActivity.jav
a:392)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1280)
at android.app.Activity.performResume(Activity.java:6096)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3011)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3063) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2418) 
at android.app.ActivityThread.access$800(ActivityThread.java:155) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:135) 
at android.app.ActivityThread.main(ActivityThread.java:5343) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) 
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
at android.preference.GenericInflater.createItem(GenericInflater.java:383)
at android.preference.GenericInflater.onCreateItem(GenericInflater.java:417) 
at android.preference.GenericInflater.createItemFromTag(GenericInflater.java:428) 
at android.preference.GenericInflater.rInflate(GenericInflater.java:481) 
at android.preference.GenericInflater.rInflate(GenericInflater.java:493) 
at android.preference.GenericInflater.inflate(GenericInflater.java:326) 
at android.preference.GenericInflater.inflate(GenericInflater.java:263) 
at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:272) 
at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:485) 
at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:444) 
at com.prashantskywalker.newvideoocr.CaptureActivity.retrievePreferences(CaptureActivity.java:1146) 
at com.prashantskywalker.newvideoocr.CaptureActivity.onResume(CaptureActivity.java:392) 
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1280) 
at android.app.Activity.performResume(Activity.java:6096) 
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3011) 
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3063) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2418) 
at android.app.ActivityThread.access$800(ActivityThread.java:155) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:135) 
at android.app.ActivityThread.main(ActivityThread.java:5343) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) 
Caused by: java.lang.NullPointerException: Attempt to get length of null array
at android.content.res.AssetManager.getResourceTextArray(AssetManager.java:214)
at android.content.res.Resources.getTextArray(Resources.java:503)
at android.content.res.TypedArray.getTextArray(TypedArray.java:771)
at android.preference.ListPreference.(ListPreference.java:51)
at android.preference.ListPreference.(ListPreference.java:65)
at android.preference.ListPreference.(ListPreference.java:69)
at java.lang.reflect.Constructor.newInstance(Native Method) 
at java.lang.reflect.Constructor.newInstance(Constructor.java:288) 
at android.preference.GenericInflater.createItem(GenericInflater.java:383) 
at android.preference.GenericInflater.onCreateItem(GenericInflater.java:417) 
at android.preference.GenericInflater.createItemFromTag(GenericInflater.java:428) 
at android.preference.GenericInflater.rInflate(GenericInflater.java:481) 
at android.preference.GenericInflater.rInflate(GenericInflater.java:493) 
at android.preference.GenericInflater.inflate(GenericInflater.java:326) 
at android.preference.GenericInflater.inflate(GenericInflater.java:263) 
at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:272) 
at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:485) 
at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:444) 
at **com.prashantskywalker.newvideoocr.CaptureActivity.retrievePreferences(CaptureActivity.java:1146) 
at com.prashantskywalker.newvideoocr.CaptureActivity.onResume(CaptureActivity.java:392) **
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1280) 
at android.app.Activity.performResume(Activity.java:6096) 
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3011) 
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3063) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2418) 
at android.app.ActivityThread.access$800(ActivityThread.java:155) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:135) 
at android.app.ActivityThread.main(ActivityThread.java:5343) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) 
04-28 02:57:18.354 18385-18385/com.prashantskywalker.newvideoocr I/Process: Sending signal. PID: 18385 SIG: 9
04-28 03:24:12.214 20903-20903/com.prashantskywalker.newvideoocr W/art: Failed to find OatDexFile for DexFile /data/data/com.prashantskywalker.newvideoocr/files/instant-run/dex/slice-slice_4-classes.dex ( canonical path /data/data/com.prashantskywalker.newvideoocr/files/instant-run/dex/slice-slice_4-classes.dex) with checksum 0x932b9786 in OatFile /data/data/com.prashantskywalker.newvideoocr/cache/slice-slice_4-classes.dex
04-28 03:24:14.219 20903-20903/com.prashantskywalker.newvideoocr W/ResourceType: Failure getting entry for 0x7f0d0003 (t=12 e=3) (error -75)
04-28 03:24:14.219 20903-20903/com.prashantskywalker.newvideoocr W/ResourceType: Failure getting entry for 0x7f0d0002 (t=12 e=2) (error -75)
04-28 03:24:14.220 20903-20903/com.prashantskywalker.newvideoocr D/AndroidRuntime: Shutting down VM
04-28 03:24:14.223 20903-20903/com.prashantskywalker.newvideoocr E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.prashantskywalker.newvideoocr, PID: 20903
java.lang.RuntimeException: Unable to resume activity {com.prashantskywalker.newvideoocr/com.prashantskywalker.newvideoocr.CaptureActivity}: android.view.InflateException: Binary XML file line #26: Error inflating class java.lang.reflect.Constructor
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3028)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3063)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2418)
at android.app.ActivityThread.access$800(ActivityThread.java:155)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5343)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
Caused by: android.view.InflateException: Binary XML file line #26: Error inflating class java.lang.reflect.Constructor
at android.preference.GenericInflater.createItem(GenericInflater.java:397)
at android.preference.GenericInflater.onCreateItem(GenericInflater.java:417)
at android.preference.GenericInflater.createItemFromTag(GenericInflater.java:428)
at android.preference.GenericInflater.rInflate(GenericInflater.java:481)
at android.preference.GenericInflater.rInflate(GenericInflater.java:493)
at android.preference.GenericInflater.inflate(GenericInflater.java:326)
at android.preference.GenericInflater.inflate(GenericInflater.java:263)
at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:272)
at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:485)
at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:444)
at com.prashantskywalker.newvideoocr.CaptureActivity.retrievePreferences(CaptureActivity.java:1146)
at com.prashantskywalker.newvideoocr.CaptureActivity.onResume(CaptureActivity.java:392)

at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1280)
at android.app.Activity.performResume(Activity.java:6096)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3011)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3063) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2418) 
at android.app.ActivityThread.access$800(ActivityThread.java:155) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:135) 
at android.app.ActivityThread.main(ActivityThread.java:5343) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) 
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
at android.preference.GenericInflater.createItem(GenericInflater.java:383)
at android.preference.GenericInflater.onCreateItem(GenericInflater.java:417) 
at android.preference.GenericInflater.createItemFromTag(GenericInflater.java:428) 
at android.preference.GenericInflater.rInflate(GenericInflater.java:481) 
at android.preference.GenericInflater.rInflate(GenericInflater.java:493) 
at android.preference.GenericInflater.inflate(GenericInflater.java:326) 
at android.preference.GenericInflater.inflate(GenericInflater.java:263) 
at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:272) 
at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:485) 
at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:444) 
at com.prashantskywalker.newvideoocr.CaptureActivity.retrievePreferences(CaptureActivity.java:1146) 
at com.prashantskywalker.newvideoocr.CaptureActivity.onResume(CaptureActivity.java:392) 
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1280) 
at android.app.Activity.performResume(Activity.java:6096) 
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3011) 
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3063) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2418) 
at android.app.ActivityThread.access$800(ActivityThread.java:155) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:135) 
at android.app.ActivityThread.main(ActivityThread.java:5343) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) 
Caused by: java.lang.NullPointerException: Attempt to get length of null array
at android.content.res.AssetManager.getResourceTextArray(AssetManager.java:214)
at android.content.res.Resources.getTextArray(Resources.java:503)
at android.content.res.TypedArray.getTextArray(TypedArray.java:771)
at android.preference.ListPreference.(ListPreference.java:51)
at android.preference.ListPreference.(ListPreference.java:65)
at android.preference.ListPreference.(ListPreference.java:69)
at java.lang.reflect.Constructor.newInstance(Native Method) 
at java.lang.reflect.Constructor.newInstance(Constructor.java:288) 
at android.preference.GenericInflater.createItem(GenericInflater.java:383) 
at android.preference.GenericInflater.onCreateItem(GenericInflater.java:417) 
at android.preference.GenericInflater.createItemFromTag(GenericInflater.java:428) 
at android.preference.GenericInflater.rInflate(GenericInflater.java:481) 
at android.preference.GenericInflater.rInflate(GenericInflater.java:493) 
at android.preference.GenericInflater.inflate(GenericInflater.java:326) 
at android.preference.GenericInflater.inflate(GenericInflater.java:263) 
at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:272) 
at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:485) 
at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:444) 
at **com.prashantskywalker.newvideoocr.CaptureActivity.retrievePreferences(CaptureActivity.java:1146) 
at com.prashantskywalker.newvideoocr.CaptureActivity.onResume(CaptureActivity.java:392) **
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1280) 
at android.app.Activity.performResume(Activity.java:6096) 
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3011) 
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3063) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2418) 
at android.app.ActivityThread.access$800(ActivityThread.java:155) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:135) 
at android.app.ActivityThread.main(ActivityThread.java:5343) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) 
04-28 03:34:38.754 22151-22151/com.prashantskywalker.newvideoocr W/ResourceType: Failure getting entry for 0x7f0d0003 (t=12 e=3) (error -75)
04-28 03:34:38.754 22151-22151/com.prashantskywalker.newvideoocr W/ResourceType: Failure getting entry for 0x7f0d0002 (t=12 e=2) (error -75)
04-28 03:34:38.755 22151-22151/com.prashantskywalker.newvideoocr D/AndroidRuntime: Shutting down VM
04-28 03:34:38.759 22151-22151/com.prashantskywalker.newvideoocr E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.prashantskywalker.newvideoocr, PID: 22151
java.lang.RuntimeException: Unable to resume activity {com.prashantskywalker.newvideoocr/com.prashantskywalker.newvideoocr.CaptureActivity}: android.view.InflateException: Binary XML file line #26: Error inflating class java.lang.reflect.Constructor
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3028)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3063)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2418)
at android.app.ActivityThread.access$800(ActivityThread.java:155)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5343)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
Caused by: android.view.InflateException: Binary XML file line #26: Error inflating class java.lang.reflect.Constructor
at android.preference.GenericInflater.createItem(GenericInflater.java:397)
at android.preference.GenericInflater.onCreateItem(GenericInflater.java:417)
at android.preference.GenericInflater.createItemFromTag(GenericInflater.java:428)
at android.preference.GenericInflater.rInflate(GenericInflater.java:481)
at android.preference.GenericInflater.rInflate(GenericInflater.java:493)
at android.preference.GenericInflater.inflate(GenericInflater.java:326)
at android.preference.GenericInflater.inflate(GenericInflater.java:263)
at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:272)
at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:485)
at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:444)
at com.prashantskywalker.newvideoocr.CaptureActivity.retrievePreferences(CaptureActivity.java:1146)
at com.prashantskywalker.newvideoocr.CaptureActivity.onResume(CaptureActivity.java:392)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1280)
at android.app.Activity.performResume(Activity.java:6096)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3011)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3063) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2418) 
at android.app.ActivityThread.access$800(ActivityThread.java:155) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:135) 
at android.app.ActivityThread.main(ActivityThread.java:5343) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) 
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
at android.preference.GenericInflater.createItem(GenericInflater.java:383)
at android.preference.GenericInflater.onCreateItem(GenericInflater.java:417) 
at android.preference.GenericInflater.createItemFromTag(GenericInflater.java:428) 
at android.preference.GenericInflater.rInflate(GenericInflater.java:481) 
at android.preference.GenericInflater.rInflate(GenericInflater.java:493) 
at android.preference.GenericInflater.inflate(GenericInflater.java:326) 
at android.preference.GenericInflater.inflate(GenericInflater.java:263) 
at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:272) 
at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:485) 
at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:444) 
at **com.prashantskywalker.newvideoocr.CaptureActivity.retrievePreferences(CaptureActivity.java:1146) 
at com.prashantskywalker.newvideoocr.CaptureActivity.onResume(CaptureActivity.java:392) **
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1280) 
at android.app.Activity.performResume(Activity.java:6096) 
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3011) 
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3063) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2418) 
at android.app.ActivityThread.access$800(ActivityThread.java:155) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:135) 
at android.app.ActivityThread.main(ActivityThread.java:5343) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) 
Caused by: java.lang.NullPointerException: Attempt to get length of null array
at android.content.res.AssetManager.getResourceTextArray(AssetManager.java:214)
at android.content.res.Resources.getTextArray(Resources.java:503)
at android.content.res.TypedArray.getTextArray(TypedArray.java:771)
at android.preference.ListPreference.(ListPreference.java:51)
at android.preference.ListPreference.(ListPreference.java:65)
at android.preference.ListPreference.(ListPreference.java:69)
at java.lang.reflect.Constructor.newInstance(Native Method) 
at java.lang.reflect.Constructor.newInstance(Constructor.java:288) 
at android.preference.GenericInflater.createItem(GenericInflater.java:383) 
at android.preference.GenericInflater.onCreateItem(GenericInflater.java:417) 
at android.preference.GenericInflater.createItemFromTag(GenericInflater.java:428) 
at android.preference.GenericInflater.rInflate(GenericInflater.java:481) 
at android.preference.GenericInflater.rInflate(GenericInflater.java:493) 
at android.preference.GenericInflater.inflate(GenericInflater.java:326) 
at android.preference.GenericInflater.inflate(GenericInflater.java:263) 
at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:272) 
at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:485) 
at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:444) 
at **com.prashantskywalker.newvideoocr.CaptureActivity.retrievePreferences(CaptureActivity.java:1146) 
at com.prashantskywalker.newvideoocr.CaptureActivity.onResume(CaptureActivity.java:392) **
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1280) 
at android.app.Activity.performResume(Activity.java:6096) 
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3011) 
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3063) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2418) 
at android.app.ActivityThread.access$800(ActivityThread.java:155) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:135) 
at android.app.ActivityThread.main(ActivityThread.java:5343) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) 
04-28 03:34:40.587 22151-22151/com.prashantskywalker.newvideoocr I/Process: Sending signal. PID: 22151 SIG: 9

Portrait Orientation

Hey rmtheis,

Thanks for your awesome prototype ocr app! I've been using it to figure out how to get tesseract working on android. I have a ee signal processing background, and I'm kind of new to android.

What are the changes needed using your source to switch to portrait mode? I'm sure you have lots of your own stuff to deal with, but if you have a minute I'd appreciate the help! How is it that the camera preview appears orthogonal to reality?

Thanks
Arjun

java.lang.ExceptionInInitializerError

Hi,

I managed to get the lib files liblept.so and also libtess.so and put them in the folder armeabi-v7a, x86 and also armeabi alone, and i get the following exception:

09-18 14:20:10.579: E/AndroidRuntime(16612): java.lang.ExceptionInInitializerError
09-18 14:20:10.579: E/AndroidRuntime(16612): at edu.sfsu.cs.orange.ocr.CaptureActivity.initOcrEngine(CaptureActivity.java:711)
09-18 14:20:10.579: E/AndroidRuntime(16612): at edu.sfsu.cs.orange.ocr.CaptureActivity.onResume(CaptureActivity.java:368)
09-18 14:20:10.579: E/AndroidRuntime(16612): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1189)
09-18 14:20:10.579: E/AndroidRuntime(16612): at android.app.Activity.performResume(Activity.java:5094)
09-18 14:20:10.579: E/AndroidRuntime(16612): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2718)
09-18 14:20:10.579: E/AndroidRuntime(16612): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2760)
09-18 14:20:10.579: E/AndroidRuntime(16612): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2216)
09-18 14:20:10.579: E/AndroidRuntime(16612): at android.app.ActivityThread.access$600(ActivityThread.java:149)
09-18 14:20:10.579: E/AndroidRuntime(16612): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1300)
09-18 14:20:10.579: E/AndroidRuntime(16612): at android.os.Handler.dispatchMessage(Handler.java:99)
09-18 14:20:10.579: E/AndroidRuntime(16612): at android.os.Looper.loop(Looper.java:153)
09-18 14:20:10.579: E/AndroidRuntime(16612): at android.app.ActivityThread.main(ActivityThread.java:5086)
09-18 14:20:10.579: E/AndroidRuntime(16612): at java.lang.reflect.Method.invokeNative(Native Method)
09-18 14:20:10.579: E/AndroidRuntime(16612): at java.lang.reflect.Method.invoke(Method.java:511)
09-18 14:20:10.579: E/AndroidRuntime(16612): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:821)
09-18 14:20:10.579: E/AndroidRuntime(16612): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:584)
09-18 14:20:10.579: E/AndroidRuntime(16612): at dalvik.system.NativeStart.main(Native Method)
09-18 14:20:10.579: E/AndroidRuntime(16612): Caused by: java.lang.NoSuchFieldError: no field with name='mNativeData' signature='I' in class Lcom/googlecode/tesseract/android/TessBaseAPI;
09-18 14:20:10.579: E/AndroidRuntime(16612): at com.googlecode.tesseract.android.TessBaseAPI.nativeClassInit(Native Method)
09-18 14:20:10.579: E/AndroidRuntime(16612): at com.googlecode.tesseract.android.TessBaseAPI.(TessBaseAPI.java:47)
09-18 14:20:10.579: E/AndroidRuntime(16612): ... 17 more

how do i solve this? Please assist.

add another language for tesseract

Hi.
First I want to say a great thank to you because your project help alot for my work.
I followed your project to build my own ocr app. It work fine for English. But I'm a Vietnamese and I really want to make this app in Vietnamese. I found a package for Vietnamese language of tesseract but I have no idea how to use it. Can you give me a direction to do it?

OCR Realtime

I am using this android-ocr source code and i want to modify it to translate and show the meaning in realtime . Does anyone has any advice or an example doing this.

How to set up on Eclipse

I am not able to get the code running. I import it but it's all a mess since Gradle is used and I can't make it work even though I added the Gradle plugin.

Could you add an explanation on how propperly to add it to Eclipse ?
I am interested on the API to get the text from an image, so if you could tell me what part does that it would also solve my problem, as I want it for a Java project.

Thank you.

caught exception in translation request

caught exception in translation request

i have entered the client id and client secret in translator bing.java and trying to run the application. it throws the above error.

please help me to fix this.

Manipulate the Capture UI

Hello,

First thanks for the code.
I am trying to scan the number from document and i want to change the capture UI, but i am not able to view it in graphical layout and change it.
I am using eclipse.

Please help me.
Thanks in advance.

App does not start / launching fails

Hi, i've got Android OCR installed. When i try to start it nothing happen. Logcat shows this mesage:
10-04 22:24:46.786 8726-8726/? E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: edu.sfsu.cs.orange.ocr, PID: 8726
java.lang.NoSuchFieldError: no "J" field "mNativeData" in class "Lcom/googlecode/tesseract/android/TessBaseAPI;" or its superclasses
at com.googlecode.tesseract.android.TessBaseAPI.nativeClassInit(Native Method)
at com.googlecode.tesseract.android.TessBaseAPI.(Unknown Source)
at edu.sfsu.cs.orange.ocr.CaptureActivity.onResume(Unknown Source)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1257)
at android.app.Activity.performResume(Activity.java:6076)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3009)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3051)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2426)
at android.app.ActivityThread.access$900(ActivityThread.java:153)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1324)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5354)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:911)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

I've got a Sony Xperia SP with Cyanogenmod 12 (Android 5.1.1).

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader exception

Hi,
I am trying to run your OCR demo with following steps :

  1. Downloaded ndk 64 bit and saved it in a directory and gave the path in environment variables.
  2. Imported tess-two project in my workspace .
  3. Run ndk-build command which is giving some compiling messages probably compiling the ndk. 4. Now i imported OCRTest demo and used tess-two as library in that demo . When i run the code i got following exception. Log cat details are as follows :

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/edu.sfsu.cs.orange.ocr-1/base.apk"],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]]] couldn't find "liblept.so"
It is crashing on this line System.loadLibrary("lept");
I can find out that when i run ndk-build, a never ending compiling messages keep on coming and yes one more thing, this particular .so file is in tess-two/libs/armeabi folder. Now can you guide me further what is missing
In my eclipse project, in libs folder i have only three jar files google-api-translate-java-0.97.jar, jtar-2.1.jar and microsoft-translator-java-api-0.6-mod.jar.
These are few details how i worked so far on ocr, how to take it further from here? Please resolve the issue
Thanks,

Build Problems

03-19 16:12:46.973: ERROR/AndroidRuntime(21829): java.lang.UnsatisfiedLinkError: Couldn't load lept from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/mnt/asec/edu.sfsu.cs.orange.ocr-1/pkg.apk"],nativeLibraryDirectories=[/mnt/asec/edu.sfsu.cs.orange.ocr-1/lib, /vendor/lib, /system/lib]]]: findLibrary returned null

OCR Detection always in landscape

Good Evening , I really want to thank you for making this experimental app, the issue that I am facing this time is that I already made the app orientation and camera view to portrait but the problem is the detection box is always detecting texts by landscape orientation. any help?
12169453_1024796244217474_1455045895_o

Start CaptureActivity from external app

Can I start CaptureActivity from an external app?
Like zxing barcode:
Intent i = new Intent("com.google.zxing.client.android.SCAN");
startActivityForResult(i, REQ_CODE);

and get the result in data.getStringExtra("SCAN_RESULT")

Tess wrong extraction

While trying for words or sentence the text extraction works perfect but when trying same with a paragraph the extraction doesnt works. Why is it happening. All the parameter remain the same except no of words.

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.