Giter Club home page Giter Club logo

tesseract-android-tools's People

Contributors

alanv 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tesseract-android-tools's Issues

I didn´t get sucess on running test projet

What steps will reproduce the problem?
1. Follow Readme
2. Compile all libs with success for arm and armv7
3. run the test app

What is the expected output? What do you see instead?

There are 14 testcases,I pass for testcases 1-11 without problem, so I think my 
libs are ok, I didn´t get any UnsatisfiedLinkError.

When I execute 12º testcase testGetUTF8Text method I get an error fro Junit:

Test failed to run to completion. Reason: 'Instrumentation run failed due to 
'Process crashed.''. Check device logcat for details

I pass for test path for eng.traineddata, so I think there is a internal 
problem iwth this lib.


What version of the product are you using? On what operating system?
Tesseract 3.00
Leptonica 1.66
Ubuntu 11.04
tesseract-android-tools last revision(6)

Please provide any additional information below.


My LogCat is:

INFO/TestRunner(11391): started: 
testGetUTF8Text(com.googlecode.tesseract.android.test.TessBaseAPITest)
DEBUG/dalvikvm(11391): Trying to load lib 
/data/data/com.googlecode.tesseract.android.test/lib/liblept.so 0x457ccae0
DEBUG/dalvikvm(11391): Shared lib 
'/data/data/com.googlecode.tesseract.android.test/lib/liblept.so' already 
loaded in same CL 0x457ccae0
DEBUG/dalvikvm(11391): Trying to load lib 
/data/data/com.googlecode.tesseract.android.test/lib/libtess.so 0x457ccae0
DEBUG/dalvikvm(11391): Added shared lib 
/data/data/com.googlecode.tesseract.android.test/lib/libtess.so 0x457ccae0
VERBOSE/Tesseract(native)(11391): 
Java_com_googlecode_tesseract_android_TessBaseAPI_nativeClassInit
VERBOSE/Tesseract(native)(11391): 
Java_com_googlecode_tesseract_android_TessBaseAPI_nativeConstruct
DEBUG/dalvikvm(6413): GC_EXPLICIT freed 107 objects / 5560 bytes in 73ms
DEBUG/SntpClient(1299): request time failed: java.net.SocketTimeoutException: 
Connection timed out
VERBOSE/DeviceStorageMonitorService(1299): mTotalMemory = 2067005
VERBOSE/Tesseract(native)(11391): 
Java_com_googlecode_tesseract_android_TessBaseAPI_nativeInit
INFO/Tesseract(native)(11391): Attempting Init() with 
dir=/mnt/sdcard/tesseract/, lang=eng
INFO/DEBUG(10840): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 
***
INFO/DEBUG(10840): Build fingerprint: 
'MOTO_RETBR/RETBR/umts_sholes/sholes:2.2.1/SHLA_U2_05.14.0/1298643066:user/relea
se-keys'
INFO/DEBUG(10840): pid: 11391, tid: 11398  >>> 
com.googlecode.tesseract.android.test <<<
INFO/DEBUG(10840): signal 11 (SIGSEGV), fault addr 00000000
INFO/DEBUG(10840):  r0 000000c7  r1 00000048  r2 afd4254c  r3 00000000
INFO/DEBUG(10840):  r4 80d85bb4  r5 000004e0  r6 43980214  r7 4398025d
INFO/DEBUG(10840):  r8 80d52760  r9 80d8dbd0  10 00000003  fp 00000016
INFO/DEBUG(10840):  ip 8d2c3641  sp 43980210  lr 80c65029  pc 80c65038  cpsr 
68000030
INFO/DEBUG(10840):  d0  643a64696f72646e  d1  6472656767756265
INFO/DEBUG(10840):  d2  7365742f64696f72  d3  632f746361726573
INFO/DEBUG(10840):  d4  65742f6c69747563  d5  616d617461647373
INFO/DEBUG(10840):  d6  70632e726567616e  d7  20656e696c202c70
INFO/DEBUG(10840):  d8  0000000000000000  d9  43e0000000000000
INFO/DEBUG(10840):  d10 41dfffffffc00000  d11 c3e0000000000000
INFO/DEBUG(10840):  d12 0000000000000000  d13 0000000000000000
INFO/DEBUG(10840):  d14 0000000000000000  d15 0000000000000000
INFO/DEBUG(10840):  d16 000000c2457f2170  d17 0000800000008000
INFO/DEBUG(10840):  d18 ffd4cb1affd52334  d19 ffa54dd2ffa604a4
INFO/DEBUG(10840):  d20 ffffa7e6ffffa7e6  d21 ffff492effff492e
INFO/DEBUG(10840):  d22 0001c5a20001c5a2  d23 000166e9000166e9
INFO/DEBUG(10840):  d24 0000000200000002  d25 00b28d9700b126ae
INFO/DEBUG(10840):  d26 ffd78beaffd7e404  d27 ffd83c1effd89438
INFO/DEBUG(10840):  d28 00e18b5e00dfc5bc  d29 00e10b5e00df45bc
INFO/DEBUG(10840):  d30 00cc47c600ca8224  d31 00a1baab00a053c2
INFO/DEBUG(10840):  scr 60000012
INFO/DEBUG(10840):          #00  pc 00065038  
/data/data/com.googlecode.tesseract.android.test/lib/libtess.so
INFO/DEBUG(10840):          #01  pc 00068980  
/data/data/com.googlecode.tesseract.android.test/lib/libtess.so
INFO/DEBUG(10840): code around pc:
INFO/DEBUG(10840): 80c65018 46314821 0a01f10a 30a85820 eceef7f9 
INFO/DEBUG(10840): 80c65028 0f03f1ba e8dfd806 0e0ef00a 23000202 
INFO/DEBUG(10840): 80c65038 b303681b 22024819 23004919 30304478 
INFO/DEBUG(10840): 80c65048 f7ff4479 5963ffa9 2404f8dd 429a681b 
INFO/DEBUG(10840): 80c65058 b003d113 6d80f50d 47f0e8bd 4770b001 
INFO/DEBUG(10840): code around lr:
INFO/DEBUG(10840): 80c65008 ec06f7f9 22024923 18384479 ea5cf7f9 
INFO/DEBUG(10840): 80c65018 46314821 0a01f10a 30a85820 eceef7f9 
INFO/DEBUG(10840): 80c65028 0f03f1ba e8dfd806 0e0ef00a 23000202 
INFO/DEBUG(10840): 80c65038 b303681b 22024819 23004919 30304478 
INFO/DEBUG(10840): 80c65048 f7ff4479 5963ffa9 2404f8dd 429a681b 
INFO/DEBUG(10840): stack:
INFO/DEBUG(10840):     439801d0  80d6d3e1  
/data/data/com.googlecode.tesseract.android.test/lib/libtess.so
INFO/DEBUG(10840):     439801d4  8d2c3641  
INFO/DEBUG(10840):     439801d8  439801fc  
INFO/DEBUG(10840):     439801dc  00000000  
INFO/DEBUG(10840):     439801e0  00000000  
INFO/DEBUG(10840):     439801e4  80d85bb4  
/data/data/com.googlecode.tesseract.android.test/lib/libtess.so
INFO/DEBUG(10840):     439801e8  000004e0  
INFO/DEBUG(10840):     439801ec  43980214  
INFO/DEBUG(10840):     439801f0  4398025d  
INFO/DEBUG(10840):     439801f4  afd14c51  /system/lib/libc.so
INFO/DEBUG(10840):     439801f8  afd4254c  /system/lib/libc.so
INFO/DEBUG(10840):     439801fc  43980208  
INFO/DEBUG(10840):     43980200  80c65029  
/data/data/com.googlecode.tesseract.android.test/lib/libtess.so

Original issue reported on code.google.com by [email protected] on 6 Oct 2011 at 8:42

  • Merged into: #3

testGetUTF8Text failed, AssertionFailedError: "he\\o" != "hello"

What steps will reproduce the problem?
1. Run TessBaseAPITest on a real device.

What is the expected output? What do you see instead?
The test is expected to be OK, with a right recognition of "hello".

What version of the product are you using? On what operating system?
The latest version of the project tesseract-android-tools from 
http://code.google.com/p/tesseract-android-tools. android-ndk-r8, target 
Android 2.3.3, a device at Android 2.3.5.

Please provide any additional information below.

testGetUTF8Text failed, the stack trace:

junit.framework.AssertionFailedError: "he\\o" != "hello"
at 
com.googlecode.tesseract.android.test.TessBaseAPITest.testGetUTF8Text(TessBaseAP
ITest.java:120)
at java.lang.reflect.Method.invokeNative(Native Method)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
at 
android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:52
9)
at 
android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1448)


Original issue reported on code.google.com by [email protected] on 12 May 2012 at 11:41

can't build tesseract-android-tools sample

What steps will reproduce the problem?
1. I'am trying to run the sample tesseract-android-tools-1.00, I installed 
leptonica-1.68,tesseract-3.01 and jpeg-8c and android-ndk-r7, all these steps 
gone without problems.
2. I defind the right paths for TESSERACT_PATH, LIBJPEG_PATH, LEPTONICA_PATH in 
jni/Android.mk.
3. when I tried to build the sample tesseract-android-tools-1.00 using 
./ndk-build in ndk root I got the provided error.

What is the expected output? What do you see instead?
I run ./ndk-build in android-ndk-r7 folder but I get this result:

./ndk-build
: command not found.
Gdbserver      : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver
Gdbsetup       : libs/armeabi/gdb.setup
Gdbserver      : [arm-linux-androideabi-4.4.3] libs/armeabi-v7a/gdbserver
Gdbsetup       : libs/armeabi-v7a/gdb.setup
Install        : libjpeg.so => libs/armeabi/libjpeg.so
SharedLibrary  : liblept.so
workspace/android-ndk-r7/samples/tesseract-android-tools-1.00/obj/local/armeabi/
objs/lept/leptonica-1.68/src/jpegio.o: In function `pixWriteStreamJpeg':
/leptonica-1.68/src/jpegio.c:677: undefined reference to `jpeg_std_error'
/leptonica-1.68/src/jpegio.c:680: undefined reference to `jpeg_CreateCompress'
/leptonica-1.68/src/jpegio.c:681: undefined reference to `jpeg_stdio_dest'
/leptonica-1.68/src/jpegio.c:695: undefined reference to `jpeg_set_defaults'
/leptonica-1.68/src/jpegio.c:710: undefined reference to `jpeg_set_quality'
/leptonica-1.68/src/jpegio.c:732: undefined reference to `jpeg_start_compress'
/leptonica-1.68/src/jpegio.c:735: undefined reference to `jpeg_write_marker'
/leptonica-1.68/src/jpegio.c:775: undefined reference to `jpeg_write_scanlines'
/leptonica-1.68/src/jpegio.c:778: undefined reference to `jpeg_finish_compress'
/leptonica-1.68/src/jpegio.c:787: undefined reference to `jpeg_destroy_compress'
/leptonica-1.68/src/jpegio.c:762: undefined reference to `jpeg_write_scanlines'
/leptonica-1.68/src/jpegio.c:712: undefined reference to 
`jpeg_simple_progression'
/leptonica-1.68/src/jpegio.c:677: undefined reference to `jpeg_std_error'
/leptonica-1.68/src/jpegio.c:680: undefined reference to `jpeg_CreateCompress'
/leptonica-1.68/src/jpegio.c:681: undefined reference to `jpeg_stdio_dest'
workspace/android-ndk-r7/samples/tesseract-android-tools-1.00/obj/local/armeabi/
objs/lept/leptonica-1.68/src/jpegio.o: In function `jpeg_error_do_not_exit':
/leptonica-1.68/src/jpegio.c:1091: undefined reference to `jpeg_destroy'
workspace/android-ndk-r7/samples/tesseract-android-tools-1.00/obj/local/armeabi/
objs/lept/leptonica-1.68/src/jpegio.o: In function `fgetJpegResolution':
/leptonica-1.68/src/jpegio.c:523: undefined reference to `jpeg_std_error'
/leptonica-1.68/src/jpegio.c:525: undefined reference to `jpeg_CreateDecompress'
/leptonica-1.68/src/jpegio.c:526: undefined reference to `jpeg_stdio_src'
/leptonica-1.68/src/jpegio.c:527: undefined reference to `jpeg_read_header'
/leptonica-1.68/src/jpegio.c:540: undefined reference to 
`jpeg_destroy_decompress'
workspace/android-ndk-r7/samples/tesseract-android-tools-1.00/obj/local/armeabi/
objs/lept/leptonica-1.68/src/jpegio.o: In function `freadHeaderJpeg':
/leptonica-1.68/src/jpegio.c:469: undefined reference to `jpeg_std_error'
/leptonica-1.68/src/jpegio.c:471: undefined reference to `jpeg_CreateDecompress'
/leptonica-1.68/src/jpegio.c:472: undefined reference to `jpeg_stdio_src'
/leptonica-1.68/src/jpegio.c:473: undefined reference to `jpeg_read_header'
/leptonica-1.68/src/jpegio.c:474: undefined reference to 
`jpeg_calc_output_dimensions'
/leptonica-1.68/src/jpegio.c:485: undefined reference to 
`jpeg_destroy_decompress'
workspace/android-ndk-r7/samples/tesseract-android-tools-1.00/obj/local/armeabi/
objs/lept/leptonica-1.68/src/jpegio.o: In function `pixReadStreamJpeg':
/leptonica-1.68/src/jpegio.c:248: undefined reference to `jpeg_std_error'
/leptonica-1.68/src/jpegio.c:251: undefined reference to `jpeg_CreateDecompress'
/leptonica-1.68/src/jpegio.c:254: undefined reference to 
`jpeg_set_marker_processor'
/leptonica-1.68/src/jpegio.c:255: undefined reference to `jpeg_stdio_src'
/leptonica-1.68/src/jpegio.c:256: undefined reference to `jpeg_read_header'
/leptonica-1.68/src/jpegio.c:261: undefined reference to 
`jpeg_calc_output_dimensions'
/leptonica-1.68/src/jpegio.c:299: undefined reference to `jpeg_start_decompress'
/leptonica-1.68/src/jpegio.c:325: undefined reference to `jpeg_read_scanlines'
/leptonica-1.68/src/jpegio.c:388: undefined reference to 
`jpeg_finish_decompress'
/leptonica-1.68/src/jpegio.c:389: undefined reference to 
`jpeg_destroy_decompress'
/leptonica-1.68/src/jpegio.c:363: undefined reference to `jpeg_read_scanlines'
/leptonica-1.68/src/jpegio.c:304: undefined reference to `jpeg_start_decompress'
/leptonica-1.68/src/jpegio.c:295: undefined reference to `jpeg_start_decompress'
workspace/android-ndk-r7/samples/tesseract-android-tools-1.00/obj/local/armeabi/
objs/lept/leptonica-1.68/src/libversions.o: In function `getImagelibVersions':
/leptonica-1.68/src/libversions.c:94: undefined reference to `jpeg_std_error'
collect2: ld returned 1 exit status
make: *** 
[workspace/android-ndk-r7/samples/tesseract-android-tools-1.00/obj/local/armeabi
/liblept.so] Error 1

What version of the product are you using? On what operating system?
Ubuntu 10.4 amd64, leptonica-1.68, tesseract-3.01,android-ndk-r7

can anyone help please?

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 7 Dec 2011 at 10:35

Unable to run the tests successfully

What steps will reproduce the problem?
1. Follow the README file for installtion. 
2. Follow the modifications in this site: 
http://rmtheis.wordpress.com/2011/08/06/using-tesseract-tools-for-android-to-cre
ate-a-basic-ocr-app/
3. Try to run the test app

What is the expected output? What do you see instead?
Expected: the test runs are successful. 
What I see: I see all(3) tests failing and the following message :

junit.framework.AssertionFailedError: Make sure that you've copied 
eng.traineddata to /mnt/sdcard/tesseract/tessdata/eng.traineddata

What version of the product are you using? On what operating system?
Tesseract 3.00
Leptonica 1.66
Ubuntu 11.04

Please provide any additional information below.

I look up the /mnt/sdcard/ and I dont see any tesseract folder. 
I created one myself. i.e. /mnt/sdcard/tesseract/tessdata/eng.trainddata
but it still doesnt work. 

Btw, this might be important: When I mount the sdcard, I dont get any 
/mnt/sdcard filestructure. Instead I get 7.9 GB 3664-3434/Filesystem/ which I 
guess is supposed to be /mnt/sdcard. 

What the reason it is named differently? Should I rename them to mnt and sdcard?



Original issue reported on code.google.com by [email protected] on 5 Oct 2011 at 7:45

Please add this script to test dir

What steps will reproduce the problem?
1. On many device simulators, the install fails due to insufficient space when 
trying to run tesseract-android-tools-test.apk from eclipse.

What is the expected output? What do you see instead?
Test apk installed on device simulator, and run from eclipse.

What version of the product are you using? On what operating system?
Latest tesseract android tools based on tesseract 3.0.1/leptonica 1.68, Device 
simulator on MacOS, running tests on eclipse.

Please provide any additional information below.
I have prepared a script based on adb which pushes correct version of 
eng.traineddata and apk files to /mnt/sdcard on which more space can be 
allocated.

Please see attached files.

Original issue reported on code.google.com by [email protected] on 11 Mar 2012 at 4:31

Attachments:

Unable to build

What steps will reproduce the problem?
1. Windows 7: follow readme instructions to build

What is the expected output? What do you see instead?
I've followed the readme at http://code.google.com/p/tesseract-android-tools 
the best I can, and I've gotten a good start, as libjpeg is compiling. After 
that, it fails.

I get:
=============================
make: *** No rule to make target `//cygdrive/c/android-ndk/tesseract-android-too
ls-1.00/jni/com_googlecode_leptonica_android/stdio/open_memstream.c', needed by
`/cygdrive/c/android-ndk/tesseract-android-tools-1.00/obj/local/armeabi/objs/lep
t//cygdrive/c/android-ndk/tesseract-android-tools-1.00/jni/com_googlecode_lepton
ica_android/stdio/open_memstream.o'.  Stop.
=============================

What version of the product are you using? On what operating system?
I'm using the latest (1.00) on Windows 7

Please provide any additional information below.
I'm not experienced with makefiles and it's been a long time since I've used 
UNIX tools, so any help is greatly appreciated.

Original issue reported on code.google.com by [email protected] on 30 Mar 2011 at 2:20

tesseract 3.01 in android

Tesseract 3.00 and leptonic 1.66 works well, but I have a
error in compiling the libraries leptonic 1.68 and tesseract 3.01. 
how can i get the new files android.mk for compile?
please help me

Original issue reported on code.google.com by [email protected] on 9 Nov 2011 at 10:53

git pathspec error

What steps will reproduce the problem?
1. git clone git://android.git.kernel.org/platform/external/jpeg.git libjpeg
2. git checkout e0eadaa39b72e33f032220246c771d7302ebeaf8

What is the expected output? What do you see instead?
error: pathspec 'e0eadaa39b72e33f032220246c771d7302ebeaf8' did not match any 
file(s) known to git.

What version of the product are you using? On what operating system?
1.00 on Windows 7

git show-ref | grep e0eadaa39b72e33f032220246c771d7302ebeaf8 produces nothing 
and I know I followed the readme correctly so I'm stumped.


Original issue reported on code.google.com by [email protected] on 5 Aug 2011 at 12:27

ndk-build fail allheaders.h missing

What steps will reproduce the problem?

1. clone the project:  git clone 
https://code.google.com/p/tesseract-android-tools/ 
2. cd tesseract-android-tools/tesseract-android-tools
3. ndk-build

What is the expected output? What do you see instead?

Output:

Compile thumb  : lept <= open_memstream.c
Compile thumb  : lept <= fopencookie.c
Compile thumb  : lept <= fmemopen.c
Compile++ thumb  : lept <= box.cpp
In file included from jni/com_googlecode_leptonica_android/box.cpp:17:0:
jni/com_googlecode_leptonica_android/common.h:22:24: fatal error: allheaders.h: 
No such file or directory
compilation terminated.
make: *** [obj/local/armeabi/objs/lept/box.o] Error 1

What version of the product are you using? On what operating system?

Using latest source as of 20 June 2013. My operating system is Slackware 14.0
Hardware info: x86_64 Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz GenuineIntel


Original issue reported on code.google.com by [email protected] on 20 Jun 2013 at 2:07

Error While Building Tesseract Android Tools

What steps will reproduce the problem?
1. Build Tesseract Android tools by following theses link:
http://rmtheis.wordpress.com/2011/08/06/using-tesseract-tools-for-android-to-cre
ate-a-basic-ocr-app/

and

http://code.google.com/p/tesseract-android-tools/source/browse/trunk/tesseract-a
ndroid-tools/README

2. when executing NDK-build, errors occurred
3.

What is the expected output? What do you see instead?
In file included from 
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:17:
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/co
mmon.h:22:24: error: allheaders.h: No such file or directory
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp: In function 'jint 
Java_com_googlecode_leptonica_android_Box_nativeCreate(JNIEnv*, _jclass*, jint, 
jint, jint, jint)':
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:27: error: 'BOX' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:27: error: 'box' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:27: error: 'l_int32' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:27: error: expected ')' before 'y'
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:27: error: expected ')' before 'w'
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:27: error: expected ')' before 'h'
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:27: error: 'boxCreate' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp: In function 'void 
Java_com_googlecode_leptonica_android_Box_nativeDestroy(JNIEnv*, _jclass*, 
jint)':
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:35: error: 'BOX' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:35: error: 'box' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:35: error: expected primary-expression before ')' token
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:35: error: expected ';' before 'nativeBox'
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:37: error: 'boxDestroy' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp: In function 'jint 
Java_com_googlecode_leptonica_android_Box_nativeGetX(JNIEnv*, _jclass*, jint)':
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:43: error: 'BOX' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:43: error: 'box' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:43: error: expected primary-expression before ')' token
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:43: error: expected ';' before 'nativeBox'
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp: In function 'jint 
Java_com_googlecode_leptonica_android_Box_nativeGetY(JNIEnv*, _jclass*, jint)':
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:51: error: 'BOX' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:51: error: 'box' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:51: error: expected primary-expression before ')' token
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:51: error: expected ';' before 'nativeBox'
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp: In function 'jint 
Java_com_googlecode_leptonica_android_Box_nativeGetWidth(JNIEnv*, _jclass*, 
jint)':
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:59: error: 'BOX' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:59: error: 'box' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:59: error: expected primary-expression before ')' token
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:59: error: expected ';' before 'nativeBox'
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp: In function 'jint 
Java_com_googlecode_leptonica_android_Box_nativeGetHeight(JNIEnv*, _jclass*, 
jint)':
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:67: error: 'BOX' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:67: error: 'box' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:67: error: expected primary-expression before ')' token
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:67: error: expected ';' before 'nativeBox'
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp: In function 'jboolean 
Java_com_googlecode_leptonica_android_Box_nativeGetGeometry(JNIEnv*, _jclass*, 
jint, _jintArray*)':
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:76: error: 'BOX' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:76: error: 'box' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:76: error: expected primary-expression before ')' token
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:76: error: expected ';' before 'nativeBox'
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:78: error: 'l_int32' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:78: error: expected ';' before 'x'
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:80: error: 'x' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:80: error: 'y' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:80: error: 'w' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:80: error: 'h' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:80: error: 'boxGetGeometry' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:84: error: 'x' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:85: error: 'y' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:86: error: 'w' was not declared in this scope
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/bo
x.cpp:87: error: 'h' was not declared in this scope
make: *** 
[/media/00B42E57B42E5008/android-ndk-r6b/obj/local/armeabi/objs/lept//media/00B4
2E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/box.o] Error 1


What version of the product are you using? On what operating system?
I use Ubuntu 11.10 for building my windows 7 shared directory (use Ubuntuk 
Android-ndk to build tesseract on windows 7 folder)


Please provide any additional information below.

I think something wrong with the file box.cpp

Please help me out from those errors.

Any help will be appreciated. Thank you


Original issue reported on code.google.com by [email protected] on 6 Nov 2011 at 6:29

Can't read file to pix

What steps will reproduce the problem?
1. See code below 

What version of the product are you using? On what operating system?

1.00. ndk-build on debian squeeze. Eclipse helios on Windows 7, Android SDK 3.0 
API 11.


Please provide any additional information below.

Thanks for the installation instructions, everything built without any 
problems. However, when I try to read a file (I am trying ReadFile directly 
since setImage falls over at the same place) I get:

03-30 14:31:49.913: ERROR/AndroidRuntime(598): Caused by: 
java.lang.RuntimeException: Failed to read pix from file


So this is my code:

TessBaseAPI api = new TessBaseAPI();
boolean ok = api.init(dir, "eng");
String testImg = getFilesDir().toString() + "/digits.jpg";
File f = new File(testImg);
ImageView im = (ImageView) findViewById(R.id.image);
Bitmap bm = BitmapFactory.decodeFile(testImg);
im.setImageBitmap(bm);
if (f == null || !f.canRead() || f.length()<1 ) {
  Log.e("ocr", testImg+ " is not readable");
} else {
  Log.i("ocr", "Trying to read file");
  Pix px = ReadFile.readFile(f);

}       }

The jpeg file is ok, since it displays in the ImageView, and contains digits 
0-9 (attached). I have also tried using ReadFile.readBitmap, but then I get 

03-30 12:07:56.143: ERROR/Leptonica(native)(507): Bitmap format is not supported


Any help would be appreciated.

Thanks
Ian

Original issue reported on code.google.com by [email protected] on 30 Mar 2011 at 3:00

Attachments:

Cannot clone git://android.git.kernel.org/platform/external/jpeg.git libjpeg

What steps will reproduce the problem?
1. git clone git://android.git.kernel.org/platform/external/jpeg.git libjpeg

What is the expected output? What do you see instead?
Per the README - GIT clone of the Android JPEG libraries.  

cd <project-directory>
mkdir external; cd external
wget http://tesseract-ocr.googlecode.com/files/tesseract-3.00.tar.gz
tar -zxvf tesseract-3.00.tar.gz
rm -f tesseract-3.00.tar.gz
wget http://leptonica.googlecode.com/files/leptonlib-1.66.tar.gz
tar -zxvf leptonlib-1.66.tar.gz
rm -f leptonlib-1.66.tar.gz
git clone git://android.git.kernel.org/platform/external/jpeg.git libjpeg
-------------------------------------------------------

git clone git://android.git.kernel.org/platform/external/jpeg.git libjpeg
Initialized empty Git repository in <path/to/tessandroid>/external/libjpeg/.git/
android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)

What version of the product are you using? On what operating system?
tesseract-android-tools-1.00.tar.gz on Ubuntu 10.10
Linux version 2.6.35-32-generic (buildd@vernadsky) (gcc version 4.4.5 
(Ubuntu/Linaro 4.4.4-14ubuntu5) ) #67-Ubuntu SMP Mon Mar 5 19:35:26 UTC 2012

Please provide any additional information below.
android.git.kernel.org is reachable:
ping 149.20.4.77
PING 149.20.4.77 (149.20.4.77) 56(84) bytes of data.
64 bytes from 149.20.4.77: icmp_req=1 ttl=54 time=94.5 ms
64 bytes from 149.20.4.77: icmp_req=2 ttl=54 time=93.7 ms

Original issue reported on code.google.com by [email protected] on 31 Mar 2012 at 2:17

Application crashes on api.init(datapath, lang)

What steps will reproduce the problem?
1. Successful build of library ( followed the readme ) and the so files 
generated
2. copy tessdata folder that contains languages to /mnt/sdcrad/ on my galaxy s
3. call theses functions 
TessBaseAPI api = new TessBaseAPI();
api.init("/mnt/sdcard/tessdata", "eng");

What is the expected output? What do you see instead?
I expected the program to continue execting.
I get these messages in ddms : 
06-07 01:19:25.335: INFO/Tesseract(native)(32592): Attempting Init() with 
dir=/mnt/sdcard/tessdata, lang=eng
06-07 01:19:25.358: INFO/DEBUG(31742): tid 32591 does not exist in pid 32584. 
ignoring debug request
06-07 01:19:25.370: INFO/ActivityManager(311): Process yostane.android.ocr (pid 
32592) has died.

and the application is killed.

What version of the product are you using? On what operating system?
tessreact-for-andriod-1.00
used ubuntu64 11.04 to build so files
source versions as in readme file
java application compiled using eclipse on vista 64

Please provide any additional information below.
I didn't specify any permission for the application

Original issue reported on code.google.com by [email protected] on 6 Jun 2011 at 11:28

  • Merged into: #3

Memory leak in JNI code + fix

I think I found a memory leak in the JNI code.

In function Java_com_googlecode_tesseract_android_TessBaseAPI_nativeInit(...) :


  env->ReleaseStringUTFChars(lang, c_dir);


should probably be


  env->ReleaseStringUTFChars(dir, c_dir);

Original issue reported on code.google.com by [email protected] on 2 Dec 2011 at 7:15

could not initialize Tesseract API with language=eng!

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.

code:
private static final String TESSBASE_PATH = "/mnt/sdcard/tesseract/";
    private static final String DEFAULT_LANGUAGE = "eng";
    private static final String IMAGE_PATH = "/mnt/sdcard/test.jpg";
    private static final String EXPECTED_FILE = TESSBASE_PATH + "tessdata/" + DEFAULT_LANGUAGE

final TessBaseAPI baseApi = new TessBaseAPI();
        baseApi.init(TESSBASE_PATH, DEFAULT_LANGUAGE);
        final Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.test);
        //digits is a .jpg image I found in one of the issues here.
        ImageView img = (ImageView) findViewById(R.id.image);
        img.setImageBitmap(bmp);//I can see the ImageView. So we know that it should work if I sent it to the setImage()
        baseApi.setImage(bmp);
        Log.v("Kishore","Kishore:Working");//This statement is never reached. Futhermore, on putting some more Log.v commands in the setImage function, I found out that the native function nativeSetImagePix is never accessed. I have attached the Logcat output below to show that it is not accessed.

        String outputText = baseApi.getUTF8Text();
        Log.v("Kishore","Kishore:"+outputText);
        baseApi.end();
        bmp.recycle();
error:
could not initialize Tesseract API with language=eng!

thanks advances!!!!

Original issue reported on code.google.com by [email protected] on 21 Mar 2012 at 3:03

Force closed when running app use tesseract-android-tools

What steps will reproduce the problem?
1. Build library successfully
2. Use TessBaseAPI in my app
3. Here is the code:

                TessBaseAPI baseApi = new TessBaseAPI();
                File file = new File(link.getText().toString());
                baseApi.init("/mnt/sdcard/", "eng"); // myDir + "/tessdata/eng.traineddata" must be present
                baseApi.setImage(file);
                String recognizedText = baseApi.getUTF8Text(); // Log or otherwise display this string...
                baseApi.end();               
                content.setText(recognizedText);

What is the expected output? What do you see instead?
The content of image file must display in the EditText view, but the app was 
force closed.
And I don't know how to find out the error.

What version of the product are you using? On what operating system?
I use eclipse Eclipse IDE for Java Developers, tesseract android tools 1.00, 
API 8 android 2.2.

Please provide any additional information below.
I don't have file buld.xml in my tesseract-android-tools-1.00,

Original issue reported on code.google.com by [email protected] on 22 Aug 2011 at 3:36

  • Merged into: #3

Application crashes on pre 2.2 devices

What steps will reproduce the problem?
1. download and compile according to README
2. create project with target platform < 2.2
3. run & experience crash when loading libraries

What is the expected output? What do you see instead?
When setting the target plattform to 2.2 the app will load the tesseract libs 
and execute just fine. when deploying on pre 2.2 device app will crash. 

What version of the product are you using? On what operating system?
i am using an up-to-date version from git. I am compiling on mac os x 10.6.7.


Please provide any additional information below.
The libs compile fine and work under adroid 2.2+ as expected. when deploying on 
an pre 2.2 device the app crashes when trying to load the libs. 

D/dalvikvm(  234): No JNI_OnLoad found in 
/data/data/de.paluno.scanandpay/lib/libjpeg.so 0x43c3b8a0
D/dalvikvm(  234): Trying to load lib 
/data/data/de.paluno.scanandpay/lib/liblept.so 0x43c3b8a0
D/dalvikvm(  234): Added shared lib 
/data/data/de.paluno.scanandpay/lib/liblept.so 0x43c3b8a0
D/dalvikvm(  234): Trying to load lib 
/data/data/de.paluno.scanandpay/lib/libtess.so 0x43c3b8a0
I/DEBUG   (   27): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 
***
I/DEBUG   (   27): Build fingerprint: 
'generic/sdk/generic/:2.0/ECLAIR/17704:eng/test-keys'
I/DEBUG   (   27): pid: 234, tid: 234  >>> de.paluno.scanandpay <<<
I/DEBUG   (   27): signal 4 (SIGILL), fault addr 80c00000
I/DEBUG   (   27):  r0 80e2c6b8  r1 80d46cc9  r2 afe0f9f8  r3 afe0f9f8
I/DEBUG   (   27):  r4 80d83dc4  r5 be9bb754  r6 00000000  r7 00000001
I/DEBUG   (   27):  r8 ad00f380  r9 0000bd00  10 4104bc24  fp 00000000
I/DEBUG   (   27):  ip 80d83ee4  sp be9bb738  lr 80d46d49  pc 80c00000  cpsr 
a0000010
I/DEBUG   (   27):          #00  pc 00000000  
/data/data/de.paluno.scanandpay/lib/libtess.so
I/DEBUG   (   27):          #01  pc 00146d46  
/data/data/de.paluno.scanandpay/lib/libtess.so



Original issue reported on code.google.com by [email protected] on 16 May 2011 at 3:20

Build Instructions for Mac os

Hi,  can any help me out with some step by step build instructions for the Mac 
OS envrioment, or even a link to a pre compiled lib for tesseract-android-tools 
?

The initial build / set up phase is all ways the very trick, and any help would 
be great

thanks,

Original issue reported on code.google.com by [email protected] on 18 Jun 2012 at 10:43

Binarize Image in tesseract

I want to know if the Binarize.java in the tessrac-androidd-tools is working, 
and if so how to use it to binarize image befor OCR it ??
thank you

Original issue reported on code.google.com by [email protected] on 5 May 2013 at 10:31

Getting Fatal signal 11 error while capture line of numbers

What steps will reproduce the problem?
1. capture a pic with about 16 number no characters between them.
2. image size x = 500 , y = 100
3. decoded to bitmap with options.inSampleSize = 2;

What is the expected output? What do you see instead?
I want to get the line of numbers correctly, I'm getting instead fatal signal 11

What version of the product are you using? On what operating system?
win 8 , tesseract 3.2

Please provide any additional information below.
capturing an image with line of same number of characters works without errors

Original issue reported on code.google.com by [email protected] on 9 Jan 2013 at 5:03

Error in loading eng.traineddata (3.01) using com.android.content.res.AssetManager()

What steps will reproduce the problem?
1. I put the latest eng.traineddata file in the android "asset" folder
2. This is the code for copying the traineddata file from the "asset" folder to 
the sd-card.

        File tessdata=new File(DEFAULT_DATA_PATH+"tessdata/"+DEFAULT_LANG+".traineddata");
        if(!tessdata.exists()){
            try {
                tessdata.createNewFile();
                InputStream in=packageResource.getAssets().open(DEFAULT_LANG+".traineddata");

                OutputStream out=new FileOutputStream(tessdata);
                byte[] buffer = new byte[1024];
                int read;
                while((read = in.read(buffer)) != -1){
                  out.write(buffer, 0, read);
                }

                in.close();
                in = null;
                out.flush();
                out.close();
                out = null;
            } catch (Exception e) {
                e.printStackTrace();
                Log.e("tag", e.getMessage());
            }

        }
3.

What is the expected output? What do you see instead?
   I expect to copy bytes from the eng.traineddata file using inputstream.read(byte[]) but an IOException come out from the native level.I tried to do the same thing copying bytes from the file using java.io.FileInputStream() and everything is OK.I think the error concerns with Android.

What version of the product are you using? On what operating system?
  tesseract-android-tools....1.0
  tesseract..................3.01
  leptonica-.................1.69

    Windows 7 32 bits

Please provide any additional information below.
     The following are the Log-cat output on the IOException:
(My project package name is"com.balancecharger")

10-24 12:18:27.108: W/System.err(8898): java.io.IOException
10-24 12:18:27.118: W/System.err(8898):     at 
android.content.res.AssetManager.readAsset(Native Method)
10-24 12:18:27.118: W/System.err(8898):     at 
android.content.res.AssetManager.access$700(AssetManager.java:36)
10-24 12:18:27.118: W/System.err(8898):     at 
android.content.res.AssetManager$AssetInputStream.read(AssetManager.java:571)
10-24 12:18:27.148: W/System.err(8898):     at 
com.balancecharger.Converter.convertBitmapToString(Converter.java:41)
10-24 12:18:27.179: W/System.err(8898):     at 
com.balancecharger.MainActivity$2.onClick(MainActivity.java:144)
10-24 12:18:27.188: W/System.err(8898):     at 
android.view.View.performClick(View.java:2408)
10-24 12:18:27.188: W/System.err(8898):     at 
android.view.View$PerformClick.run(View.java:8816)
10-24 12:18:27.208: W/System.err(8898):     at 
android.os.Handler.handleCallback(Handler.java:587)
10-24 12:18:27.208: W/System.err(8898):     at 
android.os.Handler.dispatchMessage(Handler.java:92)
10-24 12:18:27.228: W/System.err(8898):     at 
android.os.Looper.loop(Looper.java:123)
10-24 12:18:27.248: W/System.err(8898):     at 
android.app.ActivityThread.main(ActivityThread.java:4627)
10-24 12:18:27.268: W/System.err(8898):     at 
java.lang.reflect.Method.invokeNative(Native Method)
10-24 12:18:27.268: W/System.err(8898):     at 
java.lang.reflect.Method.invoke(Method.java:521)
10-24 12:18:27.278: W/System.err(8898):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
10-24 12:18:27.298: W/System.err(8898):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
10-24 12:18:27.308: W/System.err(8898):     at 
dalvik.system.NativeStart.main(Native Method)


Original issue reported on code.google.com by [email protected] on 24 Oct 2012 at 8:04

Could not initialize Tesseract API with language=eng!

What steps will reproduce the problem?
1. Compile the library project
2. Copy language file eng.traineddata to expected location
3. Run the test project

What is the expected output? What do you see instead?
All unit tests should pass

What version of the product are you using? On what operating system?
Latest SVN of tesseract-android-tools with recommended library versions on 
Android 2.3.3

Please provide any additional information below.
In logact I can see the message "Could not initialize Tesseract API with 
language=eng". And the tests testInit and testGetUTF8Text fail.

Building went fine on Ubuntu 10.04 with Jenkins, then I copied the files to a 
Win 7 Machine and I run the test from here.

Original issue reported on code.google.com by [email protected] on 8 Sep 2011 at 10:59

Getting Error : Could not find tesseract-android-tools.apk

What steps will reproduce the problem?

Iam using Eclipse for developing android app.

while testing tesseract API I got this error: " tesseract-android-tools] Could 
not find tesseract-android-tools.apk! " what does it mean and what should i do 
please help!

below is the code Iam using and there is no error in this code :

package ocr.text.phase1;

import java.io.File;

import com.googlecode.leptonica.android.Pix;
import com.googlecode.leptonica.android.ReadFile;
import com.googlecode.tesseract.android.TessBaseAPI;

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.util.Log;
import android.widget.ImageView;

public class OcrtextActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

 TessBaseAPI api = new TessBaseAPI();
        boolean ok = api.init("D:/android/workspace/tesseract-android-tools/tessdata/", "eng");
        String testImg = getFilesDir().toString() + "/javac.jpg";
        File f = new File(testImg);

        ImageView im = new ImageView(null);
        Bitmap bm = BitmapFactory.decodeFile(testImg);
        im.setImageBitmap(bm);
        if (f == null || !f.canRead() || f.length()<1 ) {
          Log.e("ocr", testImg+ " is not readable");
        } else {
          Log.i("ocr", "Trying to read file");
          Pix px = ReadFile.readFile(f);

        }
    }
    }



What version of the product are you using? On what operating system?

My Eclipse version is : Helios Service Release 2

Operating System is : Windows XP

Please Reply as soon as possible Iam waiting! thanks!


Original issue reported on code.google.com by [email protected] on 11 Dec 2011 at 7:41

Improvement Suggestion

First of all, by following the instructions in README it compiled out of the 
box. Thank you very much for bringing easy way to compile tesseract on android!

Just a couple of suggestions:

1) On OSX, wget is not installed by default. curl is installed instead. So I 
suggest adding the followings to README:

...
wget http://tesseract-ocr.googlecode.com/files/tesseract-3.00.tar.gz (on OSX: 
curl -O http://tesseract-ocr.googlecode.com/files/tesseract-3.00.tar.gz)
...
...
wget http://leptonica.googlecode.com/files/leptonlib-1.66.tar.gz (on OSX: curl 
-O wget http://leptonica.googlecode.com/files/leptonlib-1.66.tar.gz)
...

2) It looks like the following three instructions from README are not actually 
needed as correct paths are already in Android.mk file:

export TESSERACT_PATH=${PWD}/tesseract-3.00
export LEPTONICA_PATH=${PWD}/leptonlib-1.66
export LIBJPEG_PATH=${PWD}/libjpeg

I didn't execute them and it compiled without problems. Perhaps you may want to 
remove them in order to avoid confusion.


Original issue reported on code.google.com by [email protected] on 14 Mar 2011 at 8:19

"ant release" fails

Running "ant release" (as stated in README) fails:

$ ant release
Buildfile: /Users/lviggiani/Documents/eclipse/tesseract-android/build.xml
    [setup] Android SDK Tools Revision 10
    [setup] Project Target: Android 2.2
    [setup] API level: 8
    [setup] Project Type: Android Library
    [setup] 
    [setup] ------------------
    [setup] Resolving library dependencies:
    [setup] No library dependencies.
    [setup] 
    [setup] ------------------
    [setup] 
    [setup] 
    [setup] Importing rules file: tools/ant/lib_rules.xml

BUILD FAILED
Target "release" does not exist in the project "ocrservice". 

Total time: 0 seconds


Is that actually needed?


Original issue reported on code.google.com by [email protected] on 14 Mar 2011 at 8:45

Throw exception for unsupported Bitmap types

What steps will reproduce the problem?
1. Try to make an application that uses tesseract-android-tools as a library. 
2. In the main application, attach the code that I have written below. In the 
res/drawable-hdpi include a file that you want to test
3.

What is the expected output? What do you see instead?
I expect the letters of the image that I am trying to test. Instead I never get 
any output. I know that the nativeSetImagePix function is not called upon. 
Thats all I can understand.

However, please note that the tests for tesseract given in 
tesseract-android-tools-tests ran successfully. The problem here is sending 
Bitmaps to decode for text.

What version of the product are you using? On what operating system?
tesseract-3.00
Android 2.2
Ubuntu 11.04


Please provide any additional information below.

package iitgn.ocr;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.util.Log;
import android.widget.ImageView;
import com.googlecode.tesseract.android.TessBaseAPI;

public class Trial1Activity extends Activity {

    private static final String TESSBASE_PATH = "/mnt/sdcard/tesseract/";
    private static final String DEFAULT_LANGUAGE = "eng";
    private static final String EXPECTED_FILE = TESSBASE_PATH + "tessdata/" + DEFAULT_LANGUAGE
            + ".traineddata";

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        final TessBaseAPI baseApi = new TessBaseAPI();
        baseApi.init(TESSBASE_PATH, DEFAULT_LANGUAGE);
        final Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.digits);
//digits is a .jpg image I found in one of the issues here.
        ImageView img = (ImageView) findViewById(R.id.imageView1);
        img.setImageBitmap(bmp);//I can see the ImageView. So we know that it should work if I sent it to the setImage()
        baseApi.setImage(bmp);
        Log.v("Kishore","Kishore:Working");//This statement is never reached. Futhermore, on putting some more Log.v commands in the setImage function, I found out that the native function nativeSetImagePix is never accessed. I have attached the Logcat output below to show that it is not accessed.

        String outputText = baseApi.getUTF8Text();
        Log.v("Kishore","Kishore:"+outputText);
        baseApi.end();
        bmp.recycle();
    }
}

Original issue reported on code.google.com by [email protected] on 6 Oct 2011 at 11:03

Addition of Tesseract GetRegions/GetWords to API

An improvement request--

Would like to have methods for returning Tesseract Region/Word bounding boxes 
added to the Android API. The following functions in Tesseract's baseapi.cpp 
would do it, I think, with a result returned as ArrayList<Rect> or Pixa:

TessBaseAPI::GetRegions
TessBaseAPI::GetWords

Having these bounding boxes available would be helpful for assessing the 
coverage and quality of the results returned from the OCR engine beyond what's 
already available using meanConfidence() and wordConfidences().

Original issue reported on code.google.com by [email protected] on 18 Jul 2011 at 4:46

Add expansion flag to Rotate.rotate()

What steps will reproduce the problem?
1. Convert Bitmap in to Pix Object
2. Rotate pix with Leptonica using this function from api : 
Rotate.rotate(Pix pixs, float degrees, boolean quality)
I am calling it this way : 
Pix temp = Rotate.rotate(pix, 90f, true);


What is the expected output? What do you see instead?
I am expecting rotated Image , but just a content of the Image is rotated.The 
Image self has old Dimension (I add images, you can see it)
Do I am using wrong this function or this is api issue?
Any help is very welcome.
What version of the product are you using? On what operating system?
tess-two on ubuntu 10.04

Please provide any additional information below.
I am writing with same Problem here : 
http://stackoverflow.com/questions/9376490/rotate-laptonica-pix

Original issue reported on code.google.com by [email protected] on 22 Feb 2012 at 1:55

Attachments:

I am trying to use tesseract ocr in android.

What steps will reproduce the problem?
1. I created path for tesseract, leptonica and jpeglib library package

2. I got an error with no such file(.mk)file for jpeglib


What is the expected output? What do you see instead?
Expected output is creation of .so file so that i can run the project in 
android.But i got no .mk file in jpeglib package 


What version of the product are you using? On what operating system?

Using cygwin and windows 7
Please provide any additional information below.
Please help me how to use create .mk file for jpeglib package and how to use 
tesseract code.

Original issue reported on code.google.com by [email protected] on 28 Feb 2012 at 5:39

Binarize.otsuAdaptiveThreshold gives bad results

Here is my code sample. If I remove the Binarize operation, it works well, 
shows a grayscale image with black text and a lighter background that looks 
sharp and in focus. b is an ARGB_8888 bitmap taken from the camera in my tests 
(with inSampleSize of 2 to fit in Memory).

Pix pix = ReadFile.readBitmap(b);
pix = Convert.convertTo8(pix);
pix = Binarize.otsuAdaptiveThreshold(pix);
Bitmap bmp = WriteFile.writeBitmap(pix);
ImageView imageView = (ImageView)findViewById(R.id.image);
imageView.setImageBitmap(bmp);

When I run it, i get an output in B&W like expected, but all the characters of 
the text that was in the photo are converted to a white blocky form with a 
black background that looks like a really badly scaled low-resolution copy of 
the image. I tried to change the parameters (Global, small tiles, big tiles, no 
fraction etc...) but no luck (gets better and worse results depending on the 
parameters, but nothing close to an acceptable result). Tried to use the 
Sauvola Method after adding it in the JNI, same result. I tried to UnsharpMask 
and NormBackground before trying the binarization, do not help that much either.

Original issue reported on code.google.com by [email protected] on 15 Jun 2011 at 12:46

Can't checkout libjpeg: unknown host error message

What steps will reproduce the problem?
1. Use git repository explorer in eclipse
2. clone libjpeg using git://android.git.kernel.org/platform/external/jpeg.git
3. Error message: unknown host.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
latest, I am using windows xp.

Please provide any additional information below.
android 2.2 sdk version, and latest android ndk

Original issue reported on code.google.com by [email protected] on 8 Sep 2011 at 5:39

Problem : Using Hindi Traindata for Tesseract OCR 3.00

I am using tesseract 3.00  .I was able to use it correctly with english 
langauge traindata but not with any indian local langauges such as hindi and 
tamil etc. 
I was getting the error at

actual_tessdata_num_entries_ <= TESSDATA_NUM_ENTRIES:Error:Assert failed in 
file tessdatamanager.cpp line 55  (Segmentation Fault).

This error generally happens when the traindata is of different version that 
tessearct but i am using same version 3.00 hindi traindata with tesseract 3.00 
and still getting this error.


Exact problem  shwon in my logcat is 


09-13 06:10:50.447: INFO/DEBUG(31): *** *** *** *** *** *** *** *** *** *** *** 
*** *** *** *** ***
09-13 06:10:50.447: INFO/DEBUG(31): Build fingerprint: 
'generic/sdk/generic/:2.2/FRF91/43546:eng/test-keys'
09-13 06:10:50.447: INFO/DEBUG(31): pid: 278, tid: 278  >>> com.artoo.ocr.test 
<<<
09-13 06:10:50.454: INFO/DEBUG(31): signal 11 (SIGSEGV), fault addr 00000000
09-13 06:10:50.454: INFO/DEBUG(31):  r0 000000c4  r1 afd40328  r2 00000003  r3 
00000000
09-13 06:10:50.454: INFO/DEBUG(31):  r4 80d870ec  r5 bec5a374  r6 00000002  r7 
bec5a437
09-13 06:10:50.454: INFO/DEBUG(31):  r8 bec5a3a9  r9 80d5149c  10 0000048c  fp 
00000000
09-13 06:10:50.454: INFO/DEBUG(31):  ip 00000000  sp bec5a370  lr afd16a35  pc 
80c65f64  cpsr 60000030
09-13 06:10:50.544: INFO/DEBUG(31):          #00  pc 00065f64  
/data/data/com.artoo.ocr.test/lib/libtess.so
09-13 06:10:50.544: INFO/DEBUG(31):          #01  pc 0006989a  
/data/data/com.artoo.ocr.test/lib/libtess.so



I am using ubuntu as OS.

Looking forward to hear back from anyone.

Regards,
Ashish sharma

Original issue reported on code.google.com by [email protected] on 19 Sep 2011 at 5:43

WriteFile don't work as expected

What steps will reproduce the problem?
1. Take a picture using device camera
2. Move the picture to Environment.getExternalStorageDirectory()
3. Rename it to image.jpg
4. Run the JUnit test case

What is the expected output? What do you see instead?

. WriteFile.writeBytes8:
     I expected as output a 8bpp image as output
     I see instead a invalid file format with 4.9Mb. I tried to open the file using Gimp 2.6 (attached image) but received a error dialog;

. WriteFile.writeMem:
     I expected as output a array of bytes filled with the specified format
     I see instead a null value

. WriteFile.writeImpliedFormat 
     I expected as output a file saved with the format compatible with the extesion
     I see instead that the file don't exist anywhere

What version of the product are you using? On what operating system?

Mac OS X Lion - Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; 
root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
Eclipse Android Developer Tools: Build: v21.1.0-569685
Android Debug Bridge version 1.0.31
ndk-build version: GNU Make 3.81 (This program built for 
i386-apple-darwin10.8.0)
The Device is the Galaxy Note II GT-N7100 with Android 4.1.2 and LG Optimus L7 
(p700) with CyanogenMod (http://get.cm/get/7De)

Please provide any additional information below.

Please, see the JUnit test case attached


Original issue reported on code.google.com by [email protected] on 22 May 2013 at 8:16

Attachments:

PSM constants are incorrect

PSM constants as defined in the ccstruct/publictypes.h are as below:

enum PageSegMode {
  PSM_OSD_ONLY,       ///< Orientation and script detection only.
  PSM_AUTO_OSD,       ///< Automatic page segmentation with orientation and
                      ///< script detection. (OSD)
  PSM_AUTO_ONLY,      ///< Automatic page segmentation, but no OSD, or OCR.
  PSM_AUTO,           ///< Fully automatic page segmentation, but no OSD.
  PSM_SINGLE_COLUMN,  ///< Assume a single column of text of variable sizes.
  PSM_SINGLE_BLOCK_VERT_TEXT,  ///< Assume a single uniform block of vertically
                               ///< aligned text.
  PSM_SINGLE_BLOCK,   ///< Assume a single uniform block of text. (Default.)
  PSM_SINGLE_LINE,    ///< Treat the image as a single text line.
  PSM_SINGLE_WORD,    ///< Treat the image as a single word.
  PSM_CIRCLE_WORD,    ///< Treat the image as a single word in a circle.
  PSM_SINGLE_CHAR,    ///< Treat the image as a single character.

  PSM_COUNT           ///< Number of enum entries.
};

The ones in the TessBaseAPI.java are as below:

    /** Fully automatic page segmentation. */
    public static final int PSM_AUTO = 0;

    /** Assume a single column of text of variable sizes. */
    public static final int PSM_SINGLE_COLUMN = 1;

    /** Assume a single uniform block of text. (Default) */
    public static final int PSM_SINGLE_BLOCK = 2;

    /** Treat the image as a single text line. */
    public static final int PSM_SINGLE_LINE = 3;

    /** Treat the image as a single word. */
    public static final int PSM_SINGLE_WORD = 4;

    /** Treat the image as a single character. */
    public static final int PSM_SINGLE_CHAR = 5;

Thus, the constant PSM_AUTO in java corresponds to PSM_OSD_ONLY in tesseract 
C++ API, and to get the effect of AUTO, you either need to use 
PSM_SINGLE_COLUMN or PSM_SINGLE_LINE from java code. This needs to be fixed.

Original issue reported on code.google.com by [email protected] on 1 Jul 2012 at 7:30

Assert failed when using tesseract with PSM_OSD_ONLY flag

What steps will reproduce the problem?
1. Build tesseract-android-tools
2. Bitmap is located under location specified in "_path" (.JPG file)
3. Code:
// prepare bitmap
BitmapFactory.Options options = new BitmapFactory.Options();
options.inSampleSize = 4;
Bitmap bitmap = BitmapFactory.decodeFile(_path, options);

// Convert to ARGB_8888, required by tess
bitmap = bitmap.copy(Bitmap.Config.ARGB_8888, true);

// do OCR
TessBaseAPI baseApi = new TessBaseAPI();
baseApi.setDebug(true);
baseApi.init(DATA_PATH, lang);
baseApi.setVariable(TessBaseAPI.VAR_CHAR_WHITELIST, "0123456789:");
baseApi.setPageSegMode(TessBaseAPI.PageSegMode.PSM_OSD_ONLY);
baseApi.setImage(bitmap);

// show recognized numbers
String recognizedText = baseApi.getUTF8Text();
baseApi.end();

4. run code on device

What is the expected output? What do you see instead?
expected output:
>> correctly recognized numbers with autorotation

what do I see instead (in my debug view):
13:39:01.485: ASSERT/libc(20219): Fatal signal 11 (SIGSEGV) at 0x00000000 
(code=1), thread 20219 (ski.myreader)
11-02 
11-02 13:39:01.370: INFO/Tesseract(native)(20219): Initialized Tesseract API 
with language=eng
11-02 13:39:02.045: INFO/DEBUG(1910): #00  pc 000bafba  
/data/data/pl.maciejdobrowolski.myreader/lib/libtess.so (ERRCODE::error(char 
const*, TessErrorLogCode, char const*, ...) const+145)
11-02 13:39:02.045: INFO/DEBUG(1910): backtrace:
11-02 13:39:02.045: INFO/DEBUG(1910): #00  pc 000bafba  
/data/data/pl.maciejdobrowolski.myreader/lib/libtess.so (ERRCODE::error(char 
const*, TessErrorLogCode, char const*, ...) const+145)
11-02 13:39:02.045: INFO/DEBUG(1910): #01  pc 000fddeb  
/data/data/pl.maciejdobrowolski.myreader/lib/libtess.so 
(tesseract::ColumnFinder::AssignColumns(GenericVector<tesseract::ColPartitionSet
*> const&)+46)
11-02 13:39:02.045: INFO/DEBUG(1910): #02  pc 000ff475  
/data/data/pl.maciejdobrowolski.myreader/lib/libtess.so 
(tesseract::ColumnFinder::MakeColumns(bool)+284)
11-02 13:39:02.045: INFO/DEBUG(1910): stack:
11-02 13:39:02.045: INFO/DEBUG(1910): bebb66a0  00000003
11-02 13:39:02.045: INFO/DEBUG(1910): bebb66a4  5e381528
11-02 13:39:02.045: INFO/DEBUG(1910): bebb66a8  00000000
11-02 13:39:02.045: INFO/DEBUG(1910): bebb66ac  5e6de660
11-02 13:39:02.045: INFO/DEBUG(1910): bebb66b0  40076718  /system/lib/libc.so
11-02 13:39:02.045: INFO/DEBUG(1910): bebb66b4  4004d2bd  /system/lib/libc.so 
(fputs+60)
11-02 13:39:02.045: INFO/DEBUG(1910): bebb66b8  5e2bbd19  
/data/data/pl.maciejdobrowolski.myreader/lib/libtess.so
11-02 13:39:02.045: INFO/DEBUG(1910): bebb66bc  bebb66e4  [stack]
11-02 13:39:02.045: INFO/DEBUG(1910): bebb66c0  0000007d
11-02 13:39:02.045: INFO/DEBUG(1910): bebb66c4  bebb66bc  [stack]
11-02 13:39:02.045: INFO/DEBUG(1910): bebb66c8  00000001
11-02 13:39:02.045: INFO/DEBUG(1910): bebb66cc  00000000
11-02 13:39:02.045: INFO/DEBUG(1910): bebb66d0  40082a6c
11-02 13:39:02.045: INFO/DEBUG(1910): bebb66d4  bebb6712  [stack]
11-02 13:39:02.045: INFO/DEBUG(1910): bebb66d8  df0027ad
11-02 13:39:02.045: INFO/DEBUG(1910): bebb66dc  00000000
11-02 13:39:02.045: INFO/DEBUG(1910): #00  bebb66e0  bebb6b08  [stack]
11-02 13:39:02.045: INFO/DEBUG(1910): bebb66e4  5f746573
11-02 13:39:02.045: INFO/DEBUG(1910): bebb66e8  6e756f63
11-02 13:39:02.045: INFO/DEBUG(1910): bebb66ec  3d3d2074
11-02 13:39:02.045: INFO/DEBUG(1910): bebb66f0  69726720
11-02 13:39:02.045: INFO/DEBUG(1910): bebb66f4  69656864
11-02 13:39:02.045: INFO/DEBUG(1910): bebb66f8  28746867
11-02 13:39:02.045: INFO/DEBUG(1910): bebb66fc  72453a29
11-02 13:39:02.045: INFO/DEBUG(1910): bebb6700  3a726f72
11-02 13:39:02.045: INFO/DEBUG(1910): bebb6704  65737341
11-02 13:39:02.045: INFO/DEBUG(1910): bebb6708  66207472
11-02 13:39:02.045: INFO/DEBUG(1910): bebb670c  656c6961
11-02 13:39:02.045: INFO/DEBUG(1910): bebb6710  6e693a64
11-02 13:39:02.045: INFO/DEBUG(1910): bebb6714  6c696620
11-02 13:39:02.045: INFO/DEBUG(1910): bebb6718  6e6a2065
11-02 13:39:02.045: INFO/DEBUG(1910): bebb671c  6f632f69
11-02 13:39:02.045: INFO/DEBUG(1910): ........  ........
11-02 13:39:02.045: INFO/DEBUG(1910): #01  bebb6b08  5e2ccff6  
/data/data/pl.maciejdobrowolski.myreader/lib/libtess.so
11-02 13:39:02.045: INFO/DEBUG(1910): bebb6b0c  00000288
11-02 13:39:02.045: INFO/DEBUG(1910): bebb6b10  5e6da8b8
11-02 13:39:02.045: INFO/DEBUG(1910): bebb6b14  00000000
11-02 13:39:02.045: INFO/DEBUG(1910): bebb6b18  5e6da8b8
11-02 13:39:02.045: INFO/DEBUG(1910): bebb6b1c  00000000
11-02 13:39:02.045: INFO/DEBUG(1910): bebb6b20  00000001
11-02 13:39:02.045: INFO/DEBUG(1910): bebb6b24  5e211013  
/data/data/pl.maciejdobrowolski.myreader/lib/libtess.so 
(tesseract::ColPartitionSet::LegalColumnCandidate()+44)
11-02 13:39:02.045: INFO/DEBUG(1910): bebb6b28  ffffffff
11-02 13:39:02.045: INFO/DEBUG(1910): bebb6b2c  5e6da984
11-02 13:39:02.045: INFO/DEBUG(1910): bebb6b30  bebb6b80  [stack]
11-02 13:39:02.045: INFO/DEBUG(1910): bebb6b34  5e6da8b8
11-02 13:39:02.045: INFO/DEBUG(1910): bebb6b38  5e6da8b8
11-02 13:39:02.045: INFO/DEBUG(1910): bebb6b3c  00000000
11-02 13:39:02.045: INFO/DEBUG(1910): bebb6b40  5e6da8b8
11-02 13:39:02.045: INFO/DEBUG(1910): bebb6b44  00000001
11-02 13:39:02.045: INFO/DEBUG(1910): ........  ........
11-02 13:39:02.045: INFO/DEBUG(1910): #02  bebb6b70  80018001
11-02 13:39:02.045: INFO/DEBUG(1910): bebb6b74  0000000c
11-02 13:39:02.045: INFO/DEBUG(1910): bebb6b78  ffffffff
11-02 13:39:02.050: INFO/DEBUG(1910): bebb6b7c  5e6beb00
11-02 13:39:02.050: INFO/DEBUG(1910): bebb6b80  5e2e6b70  
/data/data/pl.maciejdobrowolski.myreader/lib/libtess.so
11-02 13:39:02.050: INFO/DEBUG(1910): bebb6b84  00000000
11-02 13:39:02.050: INFO/DEBUG(1910): bebb6b88  00000004
11-02 13:39:02.050: INFO/DEBUG(1910): bebb6b8c  5e6da8a0
11-02 13:39:02.050: INFO/DEBUG(1910): bebb6b90  00000000
11-02 13:39:02.050: INFO/DEBUG(1910): bebb6b94  00000000
11-02 13:39:02.050: INFO/DEBUG(1910): bebb6b98  5e6de5d0
11-02 13:39:02.050: INFO/DEBUG(1910): bebb6b9c  5e6bebc8
11-02 13:39:02.050: INFO/DEBUG(1910): bebb6ba0  5e6de6a8
11-02 13:39:02.050: INFO/DEBUG(1910): bebb6ba4  5e6de6d4
11-02 13:39:02.050: INFO/DEBUG(1910): bebb6ba8  5e2e9c0c  
/data/data/pl.maciejdobrowolski.myreader/lib/libtess.so
11-02 13:39:02.050: INFO/DEBUG(1910): bebb6bac  5e6de6cc
11-02 13:39:02.050: INFO/DEBUG(1910): memory near r4:
11-02 13:39:02.050: INFO/DEBUG(1910): 40082a4c 00000000 00000000 00000000 
00000000  ................
11-02 13:39:02.050: INFO/DEBUG(1910): 40082a5c 00000000 00000000 00000000 
00000000  ................
11-02 13:39:02.050: INFO/DEBUG(1910): 40082a6c 8fe63ce3 00000000 00000000 
00000000  .<..............
11-02 13:39:02.050: INFO/DEBUG(1910): 40082a7c 00000000 00000000 00000000 
00000000  ................
11-02 13:39:02.050: INFO/DEBUG(1910): 40082a8c 00000000 00000000 00000000 
00000000  ................
11-02 13:39:02.050: INFO/DEBUG(1910): memory near r5:
11-02 13:39:02.050: INFO/DEBUG(1910): bebb66f0 69726720 69656864 28746867 
72453a29   gridheight():Er
11-02 13:39:02.050: INFO/DEBUG(1910): bebb6700 3a726f72 65737341 66207472 
656c6961  ror:Assert faile
11-02 13:39:02.050: INFO/DEBUG(1910): bebb6710 6e693a64 6c696620 6e6a2065 
6f632f69  d:in file jni/co
11-02 13:39:02.050: INFO/DEBUG(1910): bebb6720 6f675f6d 656c676f 65646f63 
7365745f  m_googlecode_tes
11-02 13:39:02.050: INFO/DEBUG(1910): bebb6730 61726573 615f7463 6f72646e 
732f6469  seract_android/s
11-02 13:39:02.050: INFO/DEBUG(1910): memory near r6:
11-02 13:39:02.050: INFO/DEBUG(1910): 5e2bba7c 65646e69 3d3e2078 26203020 
6e692026  index >= 0 && in
11-02 13:39:02.050: INFO/DEBUG(1910): 5e2bba8c 20786564 6973203c 755f657a 
5f646573  dex < size_used_
11-02 13:39:02.050: INFO/DEBUG(1910): 5e2bba9c 206e6900 656c6966 2c732520 
6e696c20  .in file %s, lin
11-02 13:39:02.050: INFO/DEBUG(1910): 5e2bbaac 64252065 696e6a00 6d6f632f 
6f6f675f  e %d.jni/com_goo
11-02 13:39:02.050: INFO/DEBUG(1910): 5e2bbabc 63656c67 5f65646f 73736574 
63617265  glecode_tesserac
11-02 13:39:02.050: INFO/DEBUG(1910): memory near r8:
11-02 13:39:02.050: INFO/DEBUG(1910): 5e381508 5e2bc387 5e2bc3ab 5e2bc3c9 
5e2bc3eb  ..+^..+^..+^..+^
11-02 13:39:02.050: INFO/DEBUG(1910): 5e381518 5e2ccf4e 5e2ccf6d 00000000 
5d181e78  N.,^m.,^....x..]
11-02 13:39:02.050: INFO/DEBUG(1910): 5e381528 5e2bc26b 5e2bc279 5e2bc289 
5e2bc29b  k.+^y.+^..+^..+^
11-02 13:39:02.050: INFO/DEBUG(1910): 5e381538 5e2bc2ad 5e2bc2d3 5e2bc2e7 
5e2bc2fc  ..+^..+^..+^..+^
11-02 13:39:02.050: INFO/DEBUG(1910): 5e381548 5e2bc30a 5e2bc325 5e2bc347 
5e2bc35d  ..+^%.+^G.+^].+^
11-02 13:39:02.050: INFO/DEBUG(1910): memory near sl:
11-02 13:39:02.050: INFO/DEBUG(1910): 5e6de640 5e2e6d28 0000000d 00000010 
5e6bef98  (m.^..........k^
11-02 13:39:02.050: INFO/DEBUG(1910): 5e6de650 00000000 00000000 00000015 
000001e9  ................
11-02 13:39:02.050: INFO/DEBUG(1910): 5e6de660 3f800000 00000000 3f800000 
00000000  ...?.......?....
11-02 13:39:02.050: INFO/DEBUG(1910): 5e6de670 3f800000 00000000 3f800000 
80000000  ...?.......?....
11-02 13:39:02.050: INFO/DEBUG(1910): 5e6de680 3f800000 00000000 5e2e6b70 
00000001  ...?....pk.^....
11-02 13:39:02.055: INFO/DEBUG(1910): memory near ip:
11-02 13:39:02.055: INFO/DEBUG(1910): 00003fe0 ffffffff ffffffff ffffffff 
ffffffff  ................
11-02 13:39:02.055: INFO/DEBUG(1910): 00003ff0 ffffffff ffffffff ffffffff 
ffffffff  ................
11-02 13:39:02.055: INFO/DEBUG(1910): 00004000 ffffffff ffffffff ffffffff 
ffffffff  ................
11-02 13:39:02.055: INFO/DEBUG(1910): 00004010 ffffffff ffffffff ffffffff 
ffffffff  ................
11-02 13:39:02.055: INFO/DEBUG(1910): 00004020 ffffffff ffffffff ffffffff 
ffffffff  ................
11-02 13:39:02.055: INFO/DEBUG(1910): memory near sp:
11-02 13:39:02.055: INFO/DEBUG(1910): bebb66c0 0000007d bebb66bc 00000001 
00000000  }....f..........
11-02 13:39:02.055: INFO/DEBUG(1910): bebb66d0 40082a6c bebb6712 df0027ad 
00000000  l*[email protected]...'......
11-02 13:39:02.055: INFO/DEBUG(1910): bebb66e0 bebb6b08 5f746573 6e756f63 
3d3d2074  .k..set_count ==
11-02 13:39:02.055: INFO/DEBUG(1910): bebb66f0 69726720 69656864 28746867 
72453a29   gridheight():Er
11-02 13:39:02.055: INFO/DEBUG(1910): bebb6700 3a726f72 65737341 66207472 
656c6961  ror:Assert faile
11-02 13:39:02.055: INFO/DEBUG(1910): code around pc:
11-02 13:39:02.055: INFO/DEBUG(1910): 5e1c4f98 ec64f7bd a801491a 44793701 
31a86809  ..d..I...7yD.h.1
11-02 13:39:02.055: INFO/DEBUG(1910): 5e1c4fa8 ecc2f7bd d8082f03 f007e8df 
02020f0f  ...../..........
11-02 13:39:02.055: INFO/DEBUG(1910): 5e1c4fb8 681b2300 f7bdb90b 4812ee62 
49122202  .#.h....b..H.".I
11-02 13:39:02.055: INFO/DEBUG(1910): 5e1c4fc8 44782300 f7ff4479 f8ddffab 
68232404  .#xDyD.......$#h
11-02 13:39:02.055: INFO/DEBUG(1910): 5e1c4fd8 d001429a ec1ef7bd f50db003 
e8bd6d80  .B...........m..
11-02 13:39:02.055: INFO/DEBUG(1910): code around lr:
11-02 13:39:02.055: INFO/DEBUG(1910): 4004d29c 90042001 4620b113 ff39f7ff 
a9034620  . .... F..9. F..
11-02 13:39:02.055: INFO/DEBUG(1910): 4004d2ac fb9ff000 4606682a 4620b112 
ff3cf7ff  ....*h.F.. F..<.
11-02 13:39:02.055: INFO/DEBUG(1910): 4004d2bc b0064630 bf00bd70 00029216 
f0018981  0F..p...........
11-02 13:39:02.055: INFO/DEBUG(1910): 4004d2cc 2b090309 f7ffd101 2000bccd 
00004770  ...+....... pG..
11-02 13:39:02.055: INFO/DEBUG(1910): 4004d2dc 4ff8e92d 461d4614 460b4682 
4353468b  -..O.F.F.F.F.FSC

What version of the product are you using? On what operating system?
latest tesseract-android-tools
tesseract-ocr-3.02
tesseract-ocr-3.02.eng.tar.gz
leptonica-1.69.tar.gz


Original issue reported on code.google.com by [email protected] on 2 Nov 2013 at 12:51

Missing files for native build

What steps will reproduce the problem?
1. run "ndk-build" in the main project directory after checking out the project 

What is the expected output? What do you see instead?
Expected successful ndk built, instead - missing files and references are 
returned. Example:
In file included from jni/com_googlecode_leptonica_android/box.cpp:17:0:
jni/com_googlecode_leptonica_android/common.h:22:24: fatal error: allheaders.h: 
No such file or directory
C:/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../
lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: 
./obj/local/armeabi/objs/lept/
writefile.o: in function 
Java_com_googlecode_leptonica_android_WriteFile_nativeWriteBitmap:jni/com_google
code_leptonica_android/writefile.cpp:162: error: undefined reference to 
'pixGetData'
collect2: ld returned 1 exit status
make: *** [obj/local/armeabi/liblept.so] Error 1

What version of the product are you using? On what operating system?
ndk r8d, tesseract 3.02.02, Windows 7

Please provide any additional information below.
It seems there are missing source files. Some of these are included in other 
releases under the jni/com_googlecode_leptonica_android/src 

Original issue reported on code.google.com by [email protected] on 30 Jan 2013 at 4:14

Can not figure out which word corresponds to which confidence value. Hope the output api is as rich as in tesseract C++ API.

What steps will reproduce the problem?
1. String recognizedText = baseApi.getUTF8Text();
   int[] wordConfidences = baseApi.wordConfidences();
   List<Rect> rect_lines = baseApi.getTextlines().getBoxRects();
2.
3.

What is the expected output? What do you see instead?

The number counted from recognizedText should be the same as the number in 
wordConfidences.
But they are different.
So I do not know how to match each word with each confidence.

What version of the product are you using? On what operating system?
tessearct-android-tools (Its document says it is built on tesseract 3.02)
Ubuntu

Please provide any additional information below.
First, great thanks for this useful tool.
I want to examine in the recognized text, each line, each word and its 
confidence value.

For example, I am trying to recognize digits with the special font.
The recognized text is:
///////////////////////////////
\n 0 0 - - -\n
\n
 -0630000470 898005714972- -\n
\n
    - -    -       - - 5 -
/////////////////////////
And BTW, why are there "-" outputs? I only train 0123456789, the ten digits.

I suppose the space separate words. However, in this way, the count is 
different from baseApi.wordConfidences().

I have a look at hOCR.html, which has a clear vision of each line, each word in 
each line and its confidence value, boxing borders.

Is it possible to output a similar format, for example, in array, or ArrayList?

Thanks a lot.
Best


Original issue reported on code.google.com by [email protected] on 16 Nov 2012 at 2:39

Retrieve recognition results as an array of words

GetUTF8Text() return a String.
wordConfidences() return a int[].

In order to make sense of the wordConfidences() function, one has to parse the 
text returned by the GetUTF8Text() function into words.

However, I could not get the parsing done correctly. When I try to separate 
words based on spaces or '\n' I get an inconsistent number of words from the 2 
functions.

Help ~~~~~ 0_0

Original issue reported on code.google.com by [email protected] on 20 Feb 2012 at 9:57

activity finish automatically.

hello,

i i have task to capture test from image so that i decide  to  use tesseract 
lib,

i have successfully build the library project. and create on another android 
project name demoOcr in that i add library project as 
tesseract-android-tools-1.00.

following is my activity class.

<code>
public class OcrDemoActivity extends Activity {

    private TextView txtData = null;

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        txtData = (TextView)findViewById(R.id.txtdata);

        File sdcard = Environment.getExternalStorageDirectory();
        File from = new File(sdcard, "Pic.jpg");
        TessBaseAPI api = new TessBaseAPI();
        api.init("/mnt/sdcard/tessdata/", "eng");
        api.setImage(from);
        txtData.setText(api.getUTF8Text());

    }

</code>

i have add tessdata in my sdcard as well as Pic.jpg

but the now probleme is when i run this project in my samsung galaxy tab hust 
activity load and finish automatically.


i have seen that on logcat that given error that request time failed: 
Java.Net.socketExcepton : Address family not suport by Protocol.

Please Help me out.

What is missing?

Regards.
Milind Kanani

Original issue reported on code.google.com by [email protected] on 9 Sep 2011 at 6:19

Error: Bitmap functions not available; library must be compiled under android-8 NDK

What steps will reproduce the problem?
1. Follow the steps exactly as mentioned in the readme of 
tesseract-android-tools
2. Call baseAPI.init() with the correct datapath, language
3. Call baseAPI.setImage(bitmap)
4. Call baseAPI.getUTF8Text()

What is the expected output? What do you see instead?
Expected to see no error
Instead see the error: "Bitmap functions not available; library must be 
compiled under android-8 NDK" on step 3 and a NPE on step 4 (which is due to 
the error on step 3)

What version of the product are you using? On what operating system?
tesseract-android-tools-1.00
tesseract 3.00
Compiled on Mac OS X for Android 2.2

Please provide any additional information below.
Looks like ndk-build doesn't compile the jni source against the libjnigraphics. 
Hence, libtess doesn't seem to have native bitmap support. I'd very much like 
to know the right steps to build the libs so that this issue can be mitigated.

Original issue reported on code.google.com by [email protected] on 21 Sep 2011 at 7:02

how to build this project

What steps will reproduce the problem?
1. I dont know how to build the three libraries t this project 
2.
3.

Original issue reported on code.google.com by [email protected] on 5 Aug 2011 at 3:20

Error trying to build tesseract-android-tools sample

What steps will reproduce the problem?
1.I compiled tesseract-3.01
2.I compiled leptonica-1.68 and libjpeg
3.Add the right 3 paths in Android.mk of the sample 
tesseract-android-tools-1.00.

What is the expected output? What do you see instead?
I run ./ndk-build in android-ndk-r7 folder but I get this result:

./ndk-build
: command not found.
Gdbserver      : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver
Gdbsetup       : libs/armeabi/gdb.setup
Gdbserver      : [arm-linux-androideabi-4.4.3] libs/armeabi-v7a/gdbserver
Gdbsetup       : libs/armeabi-v7a/gdb.setup
Install        : libjpeg.so => libs/armeabi/libjpeg.so
SharedLibrary  : liblept.so
workspace/android-ndk-r7/samples/tesseract-android-tools-1.00/obj/local/armeabi/
objs/lept/leptonica-1.68/src/jpegio.o: In function `pixWriteStreamJpeg':
/leptonica-1.68/src/jpegio.c:677: undefined reference to `jpeg_std_error'
/leptonica-1.68/src/jpegio.c:680: undefined reference to `jpeg_CreateCompress'
/leptonica-1.68/src/jpegio.c:681: undefined reference to `jpeg_stdio_dest'
/leptonica-1.68/src/jpegio.c:695: undefined reference to `jpeg_set_defaults'
/leptonica-1.68/src/jpegio.c:710: undefined reference to `jpeg_set_quality'
/leptonica-1.68/src/jpegio.c:732: undefined reference to `jpeg_start_compress'
/leptonica-1.68/src/jpegio.c:735: undefined reference to `jpeg_write_marker'
/leptonica-1.68/src/jpegio.c:775: undefined reference to `jpeg_write_scanlines'
/leptonica-1.68/src/jpegio.c:778: undefined reference to `jpeg_finish_compress'
/leptonica-1.68/src/jpegio.c:787: undefined reference to `jpeg_destroy_compress'
/leptonica-1.68/src/jpegio.c:762: undefined reference to `jpeg_write_scanlines'
/leptonica-1.68/src/jpegio.c:712: undefined reference to 
`jpeg_simple_progression'
/leptonica-1.68/src/jpegio.c:677: undefined reference to `jpeg_std_error'
/leptonica-1.68/src/jpegio.c:680: undefined reference to `jpeg_CreateCompress'
/leptonica-1.68/src/jpegio.c:681: undefined reference to `jpeg_stdio_dest'
workspace/android-ndk-r7/samples/tesseract-android-tools-1.00/obj/local/armeabi/
objs/lept/leptonica-1.68/src/jpegio.o: In function `jpeg_error_do_not_exit':
/leptonica-1.68/src/jpegio.c:1091: undefined reference to `jpeg_destroy'
workspace/android-ndk-r7/samples/tesseract-android-tools-1.00/obj/local/armeabi/
objs/lept/leptonica-1.68/src/jpegio.o: In function `fgetJpegResolution':
/leptonica-1.68/src/jpegio.c:523: undefined reference to `jpeg_std_error'
/leptonica-1.68/src/jpegio.c:525: undefined reference to `jpeg_CreateDecompress'
/leptonica-1.68/src/jpegio.c:526: undefined reference to `jpeg_stdio_src'
/leptonica-1.68/src/jpegio.c:527: undefined reference to `jpeg_read_header'
/leptonica-1.68/src/jpegio.c:540: undefined reference to 
`jpeg_destroy_decompress'
workspace/android-ndk-r7/samples/tesseract-android-tools-1.00/obj/local/armeabi/
objs/lept/leptonica-1.68/src/jpegio.o: In function `freadHeaderJpeg':
/leptonica-1.68/src/jpegio.c:469: undefined reference to `jpeg_std_error'
/leptonica-1.68/src/jpegio.c:471: undefined reference to `jpeg_CreateDecompress'
/leptonica-1.68/src/jpegio.c:472: undefined reference to `jpeg_stdio_src'
/leptonica-1.68/src/jpegio.c:473: undefined reference to `jpeg_read_header'
/leptonica-1.68/src/jpegio.c:474: undefined reference to 
`jpeg_calc_output_dimensions'
/leptonica-1.68/src/jpegio.c:485: undefined reference to 
`jpeg_destroy_decompress'
workspace/android-ndk-r7/samples/tesseract-android-tools-1.00/obj/local/armeabi/
objs/lept/leptonica-1.68/src/jpegio.o: In function `pixReadStreamJpeg':
/leptonica-1.68/src/jpegio.c:248: undefined reference to `jpeg_std_error'
/leptonica-1.68/src/jpegio.c:251: undefined reference to `jpeg_CreateDecompress'
/leptonica-1.68/src/jpegio.c:254: undefined reference to 
`jpeg_set_marker_processor'
/leptonica-1.68/src/jpegio.c:255: undefined reference to `jpeg_stdio_src'
/leptonica-1.68/src/jpegio.c:256: undefined reference to `jpeg_read_header'
/leptonica-1.68/src/jpegio.c:261: undefined reference to 
`jpeg_calc_output_dimensions'
/leptonica-1.68/src/jpegio.c:299: undefined reference to `jpeg_start_decompress'
/leptonica-1.68/src/jpegio.c:325: undefined reference to `jpeg_read_scanlines'
/leptonica-1.68/src/jpegio.c:388: undefined reference to 
`jpeg_finish_decompress'
/leptonica-1.68/src/jpegio.c:389: undefined reference to 
`jpeg_destroy_decompress'
/leptonica-1.68/src/jpegio.c:363: undefined reference to `jpeg_read_scanlines'
/leptonica-1.68/src/jpegio.c:304: undefined reference to `jpeg_start_decompress'
/leptonica-1.68/src/jpegio.c:295: undefined reference to `jpeg_start_decompress'
workspace/android-ndk-r7/samples/tesseract-android-tools-1.00/obj/local/armeabi/
objs/lept/leptonica-1.68/src/libversions.o: In function `getImagelibVersions':
/leptonica-1.68/src/libversions.c:94: undefined reference to `jpeg_std_error'
collect2: ld returned 1 exit status
make: *** 
[workspace/android-ndk-r7/samples/tesseract-android-tools-1.00/obj/local/armeabi
/liblept.so] Error 1


What version of the product are you using? On what operating system? Ubuntu 
10.4 64 bit, leptonica-1.68, tesseract-3.01,android-ndk-r7

can someone help me please to found out the reason of these errors?

Original issue reported on code.google.com by [email protected] on 5 Dec 2011 at 5:42

Check Tesseract data files for version compatibility

What steps will reproduce the problem?

I have compiled libtess liblept and libjpeg exactly as said in the README file.

I have compiled the java file in the src directory and created a jar.

My libs directory is as follow:
libs/tesseract-lib.jar
libs/armeabi:
libjpeg.so  liblept.so  libtess.so
libs/armeabi-v7a:
libjpeg.so  liblept.so  libtess.so

I created a small application just like 
tesseract-android-tools-test/src/com/googlecode/tesseract/android/test/TessBaseA
PITest.java It creates a bitmap with a text and it pass it through to 
TessBaseAPI object.

What is the expected output? What do you see instead?

I was expecting to see hello. Instead I get a sigsev

D/dalvikvm( 8467): Trying to load lib 
/data/data/com.google.textscanner/lib/liblept.so 0x405a9d38
D/dalvikvm( 8467): Added shared lib 
/data/data/com.google.textscanner/lib/liblept.so 0x405a9d38
D/dalvikvm( 8467): Trying to load lib 
/data/data/com.google.textscanner/lib/libtess.so 0x405a9d38
D/dalvikvm( 8467): Added shared lib 
/data/data/com.google.textscanner/lib/libtess.so 0x405a9d38
V/Tesseract(native)( 8467): 
Java_com_googlecode_tesseract_android_TessBaseAPI_nativeClassInit
V/Tesseract(native)( 8467): 
Java_com_googlecode_tesseract_android_TessBaseAPI_nativeConstruct
V/Tesseract(native)( 8467): 
Java_com_googlecode_tesseract_android_TessBaseAPI_nativeInit
I/Tesseract(native)( 8467): Attempting Init() with dir=/mnt/sdcard/tesseract/, 
lang=eng
I/DEBUG   ( 5631): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 
***
I/DEBUG   ( 5631): Build fingerprint: 
'google/passion/passion/mahimahi:2.2.1/FRG83D/75603:user/release-keys'
I/DEBUG   ( 5631): pid: 8467, tid: 8467  >>> com.google.textscanner <<<
I/DEBUG   ( 5631): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 
00000000
I/DEBUG   ( 5631):  r0 000000e2  r1 afd41504  r2 00000003  r3 00000000
I/DEBUG   ( 5631):  r4 80d80ae4  r5 be82af14  r6 00000002  r7 be82aff5
I/DEBUG   ( 5631):  r8 be82af49  r9 80d4b3f8  10 00000540  fp 00000000
I/DEBUG   ( 5631):  ip ffffff1c  sp be82af10  lr 80c66271  pc 80c662b8  cpsr 
60000030
I/DEBUG   ( 5631):  d0  726567616e616d6e  d1  696c202c70706365
I/DEBUG   ( 5631):  d2  2e2f696e6a2f7320  d3  6e72657478652f35
I/DEBUG   ( 5631):  d4  65737365742f6c61  d5  302e332d74636172
I/DEBUG   ( 5631):  d6  6c69747563632f30  d7  746164737365742f
I/DEBUG   ( 5631):  d8  0000000000000000  d9  0000000000000000
I/DEBUG   ( 5631):  d10 00ff00ff00ff00ff  d11 00ff00ff00ff00ff
I/DEBUG   ( 5631):  d12 0058005c00610068  d13 0056005900530048
I/DEBUG   ( 5631):  d14 00006de800006fad  d15 00006b4000006891
I/DEBUG   ( 5631):  d16 0000000700000000  d17 0000000000000000
I/DEBUG   ( 5631):  d18 0000000000000000  d19 0000000000000000
I/DEBUG   ( 5631):  d20 3ff0000000000000  d21 8000000000000000
I/DEBUG   ( 5631):  d22 0000000000000000  d23 535b534b5b5b636b
I/DEBUG   ( 5631):  d24 006a006100680069  d25 0064005d0067006c
I/DEBUG   ( 5631):  d26 0077005d00660069  d27 0061006800630065
I/DEBUG   ( 5631):  d28 007f007d007b0079  d29 3ff0000000000000
I/DEBUG   ( 5631):  d30 0000000000000000  d31 3ff0000000000000
I/DEBUG   ( 5631):  scr 60000010
I/DEBUG   ( 5631): 
I/DEBUG   ( 5631):          #00  pc 000662b8  
/data/data/com.google.textscanner/lib/libtess.so (_ZNK7ERRCODE5errorEPKcaS1_z)
I/DEBUG   ( 5631):          #01  pc 00069e28  
/data/data/com.google.textscanner/lib/libtess.so 
(_ZN9tesseract15TessdataManager4InitEPKc)
I/DEBUG   ( 5631): 
I/DEBUG   ( 5631): code around pc:
I/DEBUG   ( 5631): 80c66298 429a681b 2381d119 449d00db 4690bc3c 
I/DEBUG   ( 5631): 80c662a8 46a24699 bcf046ab b001bc08 23004718 
I/DEBUG   ( 5631): 80c662b8 2b00681b f7f9d1de ad01ec42 e7af46a8 
I/DEBUG   ( 5631): 80c662c8 4649230a 7079703b f7f9e7c8 46c0eb00 
I/DEBUG   ( 5631): 80c662d8 fffffbf8 0000042c 0011a8e2 00000540 
I/DEBUG   ( 5631): 
I/DEBUG   ( 5631): code around lr:
I/DEBUG   ( 5631): 80c66250 46491c38 f7f99200 230aeb38 703b183f 
I/DEBUG   ( 5631): 80c66260 707b465b 1c294823 30a85820 ec40f7f9 
I/DEBUG   ( 5631): 80c66270 db031c72 dd0a2e00 dd1c2e02 491f481e 
I/DEBUG   ( 5631): 80c66280 44782202 44793030 f7ff2300 4651ffa9 
I/DEBUG   ( 5631): 80c66290 49155863 680a4469 429a681b 2381d119 
I/DEBUG   ( 5631): 
I/DEBUG   ( 5631): stack:
I/DEBUG   ( 5631):     be82aed0  00000000  
I/DEBUG   ( 5631):     be82aed4  80d80ae4  
I/DEBUG   ( 5631):     be82aed8  be82af14  
I/DEBUG   ( 5631):     be82aedc  00000002  
I/DEBUG   ( 5631):     be82aee0  be82aff5  
I/DEBUG   ( 5631):     be82aee4  be82af49  
I/DEBUG   ( 5631):     be82aee8  80d4b3f8  
/data/data/com.google.textscanner/lib/libtess.so
I/DEBUG   ( 5631):     be82aeec  00000540  
I/DEBUG   ( 5631):     be82aef0  00000000  
I/DEBUG   ( 5631):     be82aef4  afd189d1  /system/lib/libc.so
I/DEBUG   ( 5631):     be82aef8  afd426b8  
I/DEBUG   ( 5631):     be82aefc  be82af08  
I/DEBUG   ( 5631):     be82af00  80c66271  
/data/data/com.google.textscanner/lib/libtess.so
I/DEBUG   ( 5631):     be82af04  be82af14  
I/DEBUG   ( 5631):     be82af08  df002777  
I/DEBUG   ( 5631):     be82af0c  e3a070ad  
I/DEBUG   ( 5631): #00 be82af10  be82b340  
I/DEBUG   ( 5631):     be82af14  75746361  
I/DEBUG   ( 5631):     be82af18  745f6c61  
I/DEBUG   ( 5631):     be82af1c  64737365  
I/DEBUG   ( 5631):     be82af20  5f617461  
I/DEBUG   ( 5631):     be82af24  5f6d756e  
I/DEBUG   ( 5631):     be82af28  72746e65  
I/DEBUG   ( 5631):     be82af2c  5f736569  
I/DEBUG   ( 5631):     be82af30  203d3c20  
I/DEBUG   ( 5631):     be82af34  53534554  
I/DEBUG   ( 5631):     be82af38  41544144  
I/DEBUG   ( 5631):     be82af3c  4d554e5f  
I/DEBUG   ( 5631):     be82af40  544e455f  
I/DEBUG   ( 5631):     be82af44  53454952  
I/DEBUG   ( 5631):     be82af48  7272453a  
I/DEBUG   ( 5631):     be82af4c  413a726f  
I/DEBUG   ( 5631):     be82af50  72657373  
I/DEBUG   ( 5631):     be82af54  61662074  
I/DEBUG   ( 5631):     be82af58  64656c69  
I/DEBUG   ( 5631):     be82af5c  206e693a  
I/DEBUG   ( 5631):     be82af60  656c6966  
I/DEBUG   ( 5631):     be82af64  682f2f20  
I/DEBUG   ( 5631):     be82af68  2f656d6f  
I/DEBUG   ( 5631):     be82af6c  73626166  
I/DEBUG   ( 5631):     be82af70  646e612f  
I/DEBUG   ( 5631):     be82af74  64696f72  
I/DEBUG   ( 5631):     be82af78  7365742f  
I/DEBUG   ( 5631):     be82af7c  61726573  
I/DEBUG   ( 5631):     be82af80  612d7463  
I/DEBUG   ( 5631):     be82af84  6f72646e  
I/DEBUG   ( 5631):     be82af88  742d6469  
I/DEBUG   ( 5631):     be82af8c  736c6f6f  
I/DEBUG   ( 5631):     be82af90  6165722d  
I/DEBUG   ( 5631):     be82af94  6e6f2d64  
I/DEBUG   ( 5631):     be82af98  742f796c  
I/DEBUG   ( 5631):     be82af9c  65737365  
I/DEBUG   ( 5631):     be82afa0  74636172  
I/DEBUG   ( 5631):     be82afa4  646e612d  
I/DEBUG   ( 5631):     be82afa8  64696f72  
I/DEBUG   ( 5631):     be82afac  6f6f742d  
I/DEBUG   ( 5631):     be82afb0  6a2f736c  
I/DEBUG   ( 5631):     be82afb4  2e2f696e  
I/DEBUG   ( 5631):     be82afb8  78652f2e  
I/DEBUG   ( 5631):     be82afbc  6e726574  
I/DEBUG   ( 5631):     be82afc0  742f6c61  
I/DEBUG   ( 5631):     be82afc4  65737365  
I/DEBUG   ( 5631):     be82afc8  74636172  
I/DEBUG   ( 5631):     be82afcc  302e332d  
I/DEBUG   ( 5631):     be82afd0  63632f30  
I/DEBUG   ( 5631):     be82afd4  6c697475  
I/DEBUG   ( 5631):     be82afd8  7365742f  
I/DEBUG   ( 5631):     be82afdc  74616473  
I/DEBUG   ( 5631):     be82afe0  6e616d61  
I/DEBUG   ( 5631):     be82afe4  72656761  
I/DEBUG   ( 5631):     be82afe8  7070632e  
I/DEBUG   ( 5631):     be82afec  696c202c  
I/DEBUG   ( 5631):     be82aff0  3520656e  
I/DEBUG   ( 5631):     be82aff4  65000a35  
I/DEBUG   ( 5631):     be82aff8  74636172  
I/DEBUG   ( 5631):     be82affc  6c202c2f  
I/DEBUG   ( 5631):     be82b000  3d676e61  
I/DEBUG   ( 5631):     be82b004  00676e65  
I/DEBUG   ( 5631):     be82b008  65545f00  
I/DEBUG   ( 5631):     be82b00c  61427373  
I/DEBUG   ( 5631):     be82b010  50416573  
I/DEBUG   ( 5631):     be82b014  616e5f49  
I/DEBUG   ( 5631):     be82b018  65766974  
I/DEBUG   ( 5631):     be82b01c  736e6f43  
I/DEBUG   ( 5631):     be82b020  63757274  
I/DEBUG   ( 5631):     be82b024  afd10074  /system/lib/libc.so
I/DEBUG   ( 5631):     be82b028  80e293a8  
I/DEBUG   ( 5631):     be82b02c  405bfcb8  
I/DEBUG   ( 5631):     be82b030  00011d80  
I/DEBUG   ( 5631):     be82b034  405bfcb8  
I/DEBUG   ( 5631):     be82b038  405bfcb8  
I/DEBUG   ( 5631):     be82b03c  0000ce60  
I/DEBUG   ( 5631):     be82b040  aca9f608  
I/DEBUG   ( 5631):     be82b044  0000ce60  
I/DEBUG   ( 5631):     be82b048  405bfcb8  
I/DEBUG   ( 5631):     be82b04c  0000ce60  
I/DEBUG   ( 5631):     be82b050  aca9f608  
I/DEBUG   ( 5631):     be82b054  aca653e1  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b058  00201270  
I/DEBUG   ( 5631):     be82b05c  0000a000  
I/DEBUG   ( 5631):     be82b060  405bfcb8  
I/DEBUG   ( 5631):     be82b064  aca6615d  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b068  405bfcb8  
I/DEBUG   ( 5631):     be82b06c  80d4e3f0  
/data/data/com.google.textscanner/lib/libtess.so
I/DEBUG   ( 5631):     be82b070  80d65fcc  
/data/data/com.google.textscanner/lib/libtess.so
I/DEBUG   ( 5631):     be82b074  0000ce60  
I/DEBUG   ( 5631):     be82b078  80d4e3f0  
/data/data/com.google.textscanner/lib/libtess.so
I/DEBUG   ( 5631):     be82b07c  aca661e3  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b080  4266c850  
I/DEBUG   ( 5631):     be82b084  405bfcb8  
I/DEBUG   ( 5631):     be82b088  80d65fcc  
/data/data/com.google.textscanner/lib/libtess.so
I/DEBUG   ( 5631):     be82b08c  aca47449  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b090  0000abe0  
I/DEBUG   ( 5631):     be82b094  405bfcb8  
I/DEBUG   ( 5631):     be82b098  0000abe0  
I/DEBUG   ( 5631):     be82b09c  405bfcb8  
I/DEBUG   ( 5631):     be82b0a0  aca473ed  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b0a4  423f5c90  
I/DEBUG   ( 5631):     be82b0a8  be82b0c0  
I/DEBUG   ( 5631):     be82b0ac  80d31a23  
/data/data/com.google.textscanner/lib/libtess.so
I/DEBUG   ( 5631):     be82b0b0  be82b0e0  
I/DEBUG   ( 5631):     be82b0b4  00000000  
I/DEBUG   ( 5631):     be82b0b8  002012aa  
I/DEBUG   ( 5631):     be82b0bc  afd191ff  /system/lib/libc.so
I/DEBUG   ( 5631):     be82b0c0  be82b384  
I/DEBUG   ( 5631):     be82b0c4  be82b1b4  
I/DEBUG   ( 5631):     be82b0c8  0000003c  
I/DEBUG   ( 5631):     be82b0cc  be82b1b4  
I/DEBUG   ( 5631):     be82b0d0  00000003  
I/DEBUG   ( 5631):     be82b0d4  00000000  
I/DEBUG   ( 5631):     be82b0d8  be82b154  
I/DEBUG   ( 5631):     be82b0dc  be82b384  
I/DEBUG   ( 5631):     be82b0e0  423c29d3  
I/DEBUG   ( 5631):     be82b0e4  0000000a  
I/DEBUG   ( 5631):     be82b0e8  00000000  
I/DEBUG   ( 5631):     be82b0ec  afd1aa1b  /system/lib/libc.so
I/DEBUG   ( 5631):     be82b0f0  be82b400  
I/DEBUG   ( 5631):     be82b0f4  afd1bd1d  /system/lib/libc.so
I/DEBUG   ( 5631):     be82b0f8  aca435c5  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b0fc  be82b190  
I/DEBUG   ( 5631):     be82b100  423f5c88  
I/DEBUG   ( 5631):     be82b104  405bfcb8  
I/DEBUG   ( 5631):     be82b108  0000ce60  
I/DEBUG   ( 5631):     be82b10c  00000073  
I/DEBUG   ( 5631):     be82b110  00000000  
I/DEBUG   ( 5631):     be82b114  0000000a  
I/DEBUG   ( 5631):     be82b118  fffffff6  
I/DEBUG   ( 5631):     be82b11c  aca87aa6  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b120  00000000  
I/DEBUG   ( 5631):     be82b124  00000000  
I/DEBUG   ( 5631):     be82b128  0000003c  
I/DEBUG   ( 5631):     be82b12c  be82b1ef  
I/DEBUG   ( 5631):     be82b130  aca87a9d  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b134  afd41504  
I/DEBUG   ( 5631):     be82b138  00000000  
I/DEBUG   ( 5631):     be82b13c  00000000  
I/DEBUG   ( 5631):     be82b140  00000001  
I/DEBUG   ( 5631):     be82b144  000201ae  
I/DEBUG   ( 5631):     be82b148  afd41588  
I/DEBUG   ( 5631):     be82b14c  afd41588  
I/DEBUG   ( 5631):     be82b150  acaa4d38  
I/DEBUG   ( 5631):     be82b154  423c29d3  
I/DEBUG   ( 5631):     be82b158  0000000a  
I/DEBUG   ( 5631):     be82b15c  423c138d  
I/DEBUG   ( 5631):     be82b160  0000002d  
I/DEBUG   ( 5631):     be82b164  0000ce60  
I/DEBUG   ( 5631):     be82b168  aca1c018  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b16c  4266c868  
I/DEBUG   ( 5631):     be82b170  00000000  
I/DEBUG   ( 5631):     be82b174  aca1afa0  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b178  41afbc70  
I/DEBUG   ( 5631):     be82b17c  acaa5066  
I/DEBUG   ( 5631):     be82b180  acaa50a8  
I/DEBUG   ( 5631):     be82b184  be82b460  
I/DEBUG   ( 5631):     be82b188  423bf49a  
I/DEBUG   ( 5631):     be82b18c  423f5cb4  
I/DEBUG   ( 5631):     be82b190  00000000  
I/DEBUG   ( 5631):     be82b194  00000007  
I/DEBUG   ( 5631):     be82b198  4266c868  
I/DEBUG   ( 5631):     be82b19c  000938c0  
I/DEBUG   ( 5631):     be82b1a0  0000ce60  
I/DEBUG   ( 5631):     be82b1a4  be82b138  
I/DEBUG   ( 5631):     be82b1a8  423f3300  
I/DEBUG   ( 5631):     be82b1ac  0000ce68  
I/DEBUG   ( 5631):     be82b1b0  41afbc70  
I/DEBUG   ( 5631):     be82b1b4  be82b154  
I/DEBUG   ( 5631):     be82b1b8  00000000  
I/DEBUG   ( 5631):     be82b1bc  00000000  
I/DEBUG   ( 5631):     be82b1c0  00000000  
I/DEBUG   ( 5631):     be82b1c4  0017b020  
I/DEBUG   ( 5631):     be82b1c8  00000008  
I/DEBUG   ( 5631):     be82b1cc  00000000  
I/DEBUG   ( 5631):     be82b1d0  00000000  
I/DEBUG   ( 5631):     be82b1d4  00000028  
I/DEBUG   ( 5631):     be82b1d8  be82b3f8  
I/DEBUG   ( 5631):     be82b1dc  00002000  
I/DEBUG   ( 5631):     be82b1e0  00000000  
I/DEBUG   ( 5631):     be82b1e4  aca16cd8  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b1e8  aca16d50  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b1ec  00a16bf8  
I/DEBUG   ( 5631):     be82b1f0  aca16c20  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b1f4  aca16c50  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b1f8  aca16c74  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b1fc  aca79539  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b200  00000000  
I/DEBUG   ( 5631):     be82b204  be82b208  
I/DEBUG   ( 5631):     be82b208  ab20f038  
I/DEBUG   ( 5631):     be82b20c  00160248  
I/DEBUG   ( 5631):     be82b210  ffffffff  
I/DEBUG   ( 5631):     be82b214  00000000  
I/DEBUG   ( 5631):     be82b218  092f64a4  
I/DEBUG   ( 5631):     be82b21c  000000ff  
I/DEBUG   ( 5631):     be82b220  000000ff  
I/DEBUG   ( 5631):     be82b224  00000000  
I/DEBUG   ( 5631):     be82b228  00000000  
I/DEBUG   ( 5631):     be82b22c  00000000  
I/DEBUG   ( 5631):     be82b230  00000000  
I/DEBUG   ( 5631):     be82b234  00000000  
I/DEBUG   ( 5631):     be82b238  00000000  
I/DEBUG   ( 5631):     be82b23c  00000000  
I/DEBUG   ( 5631):     be82b240  00000000  
I/DEBUG   ( 5631):     be82b244  092e6ac6  
I/DEBUG   ( 5631):     be82b248  00000000  
I/DEBUG   ( 5631):     be82b24c  00000000  
I/DEBUG   ( 5631):     be82b250  00000000  
I/DEBUG   ( 5631):     be82b254  20000010  
I/DEBUG   ( 5631):     be82b258  092dde5a  
I/DEBUG   ( 5631):     be82b25c  afd4d5c8  
I/DEBUG   ( 5631):     be82b260  405a7b58  
I/DEBUG   ( 5631):     be82b264  405a7b58  
I/DEBUG   ( 5631):     be82b268  405a1018  
I/DEBUG   ( 5631):     be82b26c  092de376  
I/DEBUG   ( 5631):     be82b270  afd41504  
I/DEBUG   ( 5631):     be82b274  be82b2f8  
I/DEBUG   ( 5631):     be82b278  0000b301  
I/DEBUG   ( 5631):     be82b27c  00000000  
I/DEBUG   ( 5631):     be82b280  00000000  
I/DEBUG   ( 5631):     be82b284  00009f5d  
I/DEBUG   ( 5631):     be82b288  0000803d  /system/bin/app_process
I/DEBUG   ( 5631):     be82b28c  00000001  
I/DEBUG   ( 5631):     be82b290  000003e8  
I/DEBUG   ( 5631):     be82b294  000003f7  
I/DEBUG   ( 5631):     be82b298  00008000  /system/bin/app_process
I/DEBUG   ( 5631):     be82b29c  00008008  /system/bin/app_process
I/DEBUG   ( 5631):     be82b2a0  00202000  
I/DEBUG   ( 5631):     be82b2a4  afd4660c  
I/DEBUG   ( 5631):     be82b2a8  afd41504  
I/DEBUG   ( 5631):     be82b2ac  00001000  
I/DEBUG   ( 5631):     be82b2b0  00201af0  
I/DEBUG   ( 5631):     be82b2b4  afd46300  
I/DEBUG   ( 5631):     be82b2b8  afd1869d  /system/lib/libc.so
I/DEBUG   ( 5631):     be82b2bc  4005b000  
I/DEBUG   ( 5631):     be82b2c0  00000004  
I/DEBUG   ( 5631):     be82b2c4  afd29d9b  /system/lib/libc.so
I/DEBUG   ( 5631):     be82b2c8  afd41504  
I/DEBUG   ( 5631):     be82b2cc  afd1cbc7  /system/lib/libc.so
I/DEBUG   ( 5631):     be82b2d0  afd1869d  /system/lib/libc.so
I/DEBUG   ( 5631):     be82b2d4  afd46608  
I/DEBUG   ( 5631):     be82b2d8  00000000  
I/DEBUG   ( 5631):     be82b2dc  afd46784  
I/DEBUG   ( 5631):     be82b2e0  00000480  
I/DEBUG   ( 5631):     be82b2e4  00201af0  
I/DEBUG   ( 5631):     be82b2e8  00000400  
I/DEBUG   ( 5631):     be82b2ec  00000004  
I/DEBUG   ( 5631):     be82b2f0  00000000  
I/DEBUG   ( 5631):     be82b2f4  afd195a9  /system/lib/libc.so
I/DEBUG   ( 5631):     be82b2f8  00000000  
I/DEBUG   ( 5631):     be82b2fc  00008000  /system/bin/app_process
I/DEBUG   ( 5631):     be82b300  10000000  
I/DEBUG   ( 5631):     be82b304  afd46784  
I/DEBUG   ( 5631):     be82b308  afd46784  
I/DEBUG   ( 5631):     be82b30c  002012f0  
I/DEBUG   ( 5631):     be82b310  afd46784  
I/DEBUG   ( 5631):     be82b314  71160065  
I/DEBUG   ( 5631):     be82b318  be82b374  
I/DEBUG   ( 5631):     be82b31c  80d80ae4  
I/DEBUG   ( 5631):     be82b320  0020129c  
I/DEBUG   ( 5631):     be82b324  0000001f  
I/DEBUG   ( 5631):     be82b328  002012a0  
I/DEBUG   ( 5631):     be82b32c  00000000  
I/DEBUG   ( 5631):     be82b330  002012a0  
I/DEBUG   ( 5631):     be82b334  80d80ae4  
I/DEBUG   ( 5631):     be82b338  80c69e2d  
/data/data/com.google.textscanner/lib/libtess.so
I/DEBUG   ( 5631):     be82b33c  80d4b3f8  
/data/data/com.google.textscanner/lib/libtess.so
I/DEBUG   ( 5631): #01 be82b340  80d4c67c  
/data/data/com.google.textscanner/lib/libtess.so
I/DEBUG   ( 5631):     be82b344  00000037  
I/DEBUG   ( 5631):     be82b348  be82b370  
I/DEBUG   ( 5631):     be82b34c  be82b370  
I/DEBUG   ( 5631):     be82b350  00201278  
I/DEBUG   ( 5631):     be82b354  002012a0  
I/DEBUG   ( 5631):     be82b358  00000000  
I/DEBUG   ( 5631):     be82b35c  80d00eeb  
/data/data/com.google.textscanner/lib/libtess.so
I/DEBUG   ( 5631):     be82b360  00201968  
I/DEBUG   ( 5631):     be82b364  80d8918c  
I/DEBUG   ( 5631):     be82b368  00201978  
I/DEBUG   ( 5631):     be82b36c  00201928  
I/DEBUG   ( 5631):     be82b370  00201998  
I/DEBUG   ( 5631):     be82b374  00201a98  
I/DEBUG   ( 5631):     be82b378  00000000  
I/DEBUG   ( 5631):     be82b37c  00000000  
I/DEBUG   ( 5631):     be82b380  00000000  
I/DEBUG   ( 5631):     be82b384  0000abe0  
I/BootReceiver( 1174): Copying /data/tombstones/tombstone_09 to DropBox 
(SYSTEM_TOMBSTONE)
E/InputDispatcher( 1174): channel '40950378 
com.google.textscanner/com.google.textscanner.ScannerActivity (server)' ~ 
Consumer closed input channel or an error occurred.  events=0x8
E/InputDispatcher( 1174): channel '40950378 
com.google.textscanner/com.google.textscanner.ScannerActivity (server)' ~ 
Channel is unrecoverably broken and will be disposed!
D/Zygote  ( 1171): Process 8467 terminated by signal (11)
I/ActivityManager( 1174): Process com.google.textscanner (pid 8467) has died.


What version of the product are you using? On what operating system?

I am using the last svn version of the project.

My phone is a Nexus one.

I am using android version 2.3.2 from cyanogenmod.

Please provide any additional information below.

How can I investigate more the problem? There is no debug information...

Thanks

Original issue reported on code.google.com by [email protected] on 22 Mar 2011 at 7:38

Add tests for Bitmap <=> Pix conversion

It looks like conversion from Pic to Bitmap (or vice versa) is not working 
correctly. This should be tested in ReadFileTest or WriteFileTest with a Bitmap 
=> Pic => Bitmap conversion.

Original issue reported on code.google.com by [email protected] on 11 Sep 2012 at 8:53

supporting Tesseract OCR 3.01

Tesseract OCR is now at 3.01.  This tool still only supports 3.00.

The attached patch allows building with Tesseracr OCR 3.01 stable.

Original issue reported on code.google.com by [email protected] on 11 Dec 2011 at 9:57

Attachments:

Could not find tess-two.apk!

What steps will reproduce the problem?
1.I complie in cygwin tess-two from https://github.com/rmtheis/tess-two
2. and import in my project as library project.
3. now when i try to run the program my application myocr.apk goes in android 
emulator and install but when the tes-two project library tess-two turns come 
it display the error
Could not find tess-two.apk!

:(Please Help 




Original issue reported on code.google.com by [email protected] on 11 Feb 2012 at 6:19

ndk-build failure due to unsafe fprintf usage in tesseract source.

What steps will reproduce the problem?
1. Using android-ndk-r9 and the tesseract source code v3.02
2. ndk-build.cmd -j8
3.

What is the expected output? What do you see instead?

Expected successful build.  Build fails, error:

jni/com_googlecode_tesseract_android/src/dict/permdawg.cpp:208:62:      error: 
format not a string literal and no format arguments [-Werror=format-security]
cc1plus.exe: some warnings being treated as errors

Please provide any additional information below.

I fixed this by changing the line mentioned above:

jni/com_googlecode_tesseract_android/src/dict/permdawg.cpp:208:62

from:

    fprintf(output_ambig_words_file_, word_str.string());

to:

    fprintf(output_ambig_words_file_, "%s", word_str.string());

Simple enough.


Original issue reported on code.google.com by [email protected] on 4 Sep 2013 at 6:06

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.