tess-two

Tess-two OCR not working

谁说我不能喝 提交于 2019-12-02 03:39:37
im trying to get text from an image using tess-two on android. But its giving me a really bad result 01-16 12:00:25.339: I/Tesseract(native)(29038): Initialized Tesseract API with language=spa and like 30 seconds later it shows this as result string: {ga ., r¿ y“: A r M í :3 ' ‘Ev’.-:.. -: A 7 » w- ?" _ Á.» ¿"A ¿rw-V r mjÏfn 'n’n . Y ' "\'ZA".‘.¡ A‘ :‘ïvAv- « ‘ :"Éf‘Ï'" -Ï«l :‘,.v:...»- . ' RFI' .. ’ g)" 3;:- 1-;4', = * ¿,arifgggk mw; .1. , ' "53» "J 't‘ ‘ ¿Las ;.‘».L',-‘» ' ' 'N‘“ "“=: - '. V . ‘9! 5.? ' “F a .“ Y , <_ 7- . 7.-, . ;« z "1:;2wr . A - . ' -»‘ 5“: “4-”, ¿rn 73:33: w v'.‘ ¿a ‘ A

Progress/cancel callback in Tesseract using ETEXT_DESC

久未见 提交于 2019-12-02 03:22:47
问题 Is there a way to specify a progress and cancel callback in Tesseract? I'm using Tesseract in Android, using the tess-two project. There is already a previous question - Android Tesseract progress callback. However, the answers there imply that it's not possible. I have another crucial detail to add - I checked the source code and found a class called ETEXT_DESC , which looks like it can be used for just this purpose. My question is - can ETEXT_DESC be used for progress and cancel callbacks,

Progress/cancel callback in Tesseract using ETEXT_DESC

走远了吗. 提交于 2019-12-02 00:46:26
Is there a way to specify a progress and cancel callback in Tesseract? I'm using Tesseract in Android, using the tess-two project . There is already a previous question - Android Tesseract progress callback . However, the answers there imply that it's not possible. I have another crucial detail to add - I checked the source code and found a class called ETEXT_DESC , which looks like it can be used for just this purpose. My question is - can ETEXT_DESC be used for progress and cancel callbacks, and if it can, how do I use it? Yes, you can get progress callbacks by implementing the

Could not initialize Tesseract API with language=eng

让人想犯罪 __ 提交于 2019-12-01 04:16:02
I am working on an Android app that requires OCR. I have decided to use Tesseract as API but I keep on getting this error: E/Tesseract(native): Could not initialize Tesseract API with language=eng! I have already copied file "eng.traineddata" to the location. I am using Android Studio 2.1.2 (SDK 23) Testing on device with API 22 Android Lollipop 5.1.1 (Read about Permission issue on Marshmallow) Here is the code I am using: public void reads(View view) { TextView textView = (TextView) findViewById(R.id.textView); int rotation = 0; try { ExifInterface exifInterface = new ExifInterface

Could not initialize Tesseract API with language=eng

陌路散爱 提交于 2019-12-01 01:54:37
问题 I am working on an Android app that requires OCR. I have decided to use Tesseract as API but I keep on getting this error: E/Tesseract(native): Could not initialize Tesseract API with language=eng! I have already copied file "eng.traineddata" to the location. I am using Android Studio 2.1.2 (SDK 23) Testing on device with API 22 Android Lollipop 5.1.1 (Read about Permission issue on Marshmallow) Here is the code I am using: public void reads(View view) { TextView textView = (TextView)

Building tess-two into a project using Android Studio's gradle build

天大地大妈咪最大 提交于 2019-12-01 00:18:08
There are answers about getting the tess-two project integrated into an Android project within Android Studio , but many are out-dated and none used the current capabilities defined here: Using Android Studio 2.2 and higher, you can use the NDK to compile C and C++ code into a native library and package it into your APK using Gradle, the IDE's integrated build system. Your Java code can then call functions in your native library through the Java Native Interface (JNI) What specific steps would be required to make tess-two functionality a part of the resulting APK, using functionality within

Including *.so libraries Android Studio tess-two (tesseract)

一个人想着一个人 提交于 2019-11-30 10:23:49
I have been trying to include Tesseract libraries into my Android project today. From what I have found I did following: 1) Download tess-two from gooogle git, 2) build with NDK 3) put *.so files (armeabi/v7,x86,mips) into /app/main/jniLibs/, 4) pack *.so into .jar file, put archive into app/libs/ and wrote dependency {} to it in gradle.build file I'm using Android Studio and when I write TessBaseAPI and hit Alt+Enter -> "add dependency to tess-two module" it automaticaly write import row: import com.googlecode.tesseract.android.TessBaseAPI; But then when I try to build it I'm getting error:

Building tess-two into a project using Android Studio's gradle build

ε祈祈猫儿з 提交于 2019-11-29 22:35:42
问题 There are answers about getting the tess-two project integrated into an Android project within Android Studio , but many are out-dated and none used the current capabilities defined here: Using Android Studio 2.2 and higher, you can use the NDK to compile C and C++ code into a native library and package it into your APK using Gradle, the IDE's integrated build system. Your Java code can then call functions in your native library through the Java Native Interface (JNI) What specific steps

Including *.so libraries Android Studio tess-two (tesseract)

不问归期 提交于 2019-11-29 15:09:23
问题 I have been trying to include Tesseract libraries into my Android project today. From what I have found I did following: 1) Download tess-two from gooogle git, 2) build with NDK 3) put *.so files (armeabi/v7,x86,mips) into /app/main/jniLibs/, 4) pack *.so into .jar file, put archive into app/libs/ and wrote dependency {} to it in gradle.build file I'm using Android Studio and when I write TessBaseAPI and hit Alt+Enter -> "add dependency to tess-two module" it automaticaly write import row:

how to reduce android app size?

五迷三道 提交于 2019-11-29 11:42:17
First of all , I am using android studio for development of android app. I have build an android app for OCR using tesseract library. The app is currently working great and giving desire output but my problem is with its size. The size of the build app is 30 MB which is high compared to other OCR app available. I have tried "minifyenabled = true" but it reduce just 300 kb of size. So my question is how to reduce size of my app? You can use APK splits to build smaller versions of your app that target individual device architectures . For an example of this, see the San Angeles demo project .