[tesseract-ocr] Re: java.lang.UnsatisfiedLinkError in tess4j

2019-08-13 Thread Quan Nguyen
https://github.com/nguyenq/tess4j/issues/159

On Thursday, August 8, 2019 at 12:58:10 AM UTC-5, Srikanth wrote:
>
> Hi,
>
> I am getting error on windows server 2016, 64bit. I have VC++ 2017 
> redistributable installed in my VM. My tessesract code is developed in 
> spring boot app which works correctly in my PC. I copied the same project 
> and tried to run on windows server 2016 virtual machine. I am getting below 
> error. Please help me
>
> java.lang.UnsatisfiedLinkError: The specified module could not be found.
>
> at com.sun.jna.Native.open(Native Method) ~[jna-4.5.2.jar:4.5.2 (b0)]
> at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:288) 
> ~[jna-4.5.2.jar:4.5.2 (b0)]
> at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:427) 
> ~[jna-4.5.2.jar:4.5.2 (b0)]
> at com.sun.jna.Library$Handler.(Library.java:179) 
> ~[jna-4.5.2.jar:4.5.2 (b0)]
> at com.sun.jna.Native.loadLibrary(Native.java:569) ~[jna-4.5.2.jar:4.5.2 
> (b0)]
> at com.sun.jna.Native.loadLibrary(Native.java:544) ~[jna-4.5.2.jar:4.5.2 
> (b0)]
> at 
> net.sourceforge.tess4j.util.LoadLibs.getTessAPIInstance(LoadLibs.java:81) 
> ~[tess4j-4.0.0.jar:4.0.0]
> at net.sourceforge.tess4j.TessAPI.(TessAPI.java:42) 
> ~[tess4j-4.0.0.jar:4.0.0]
> at net.sourceforge.tess4j.Tesseract.init(Tesseract.java:364) 
> ~[tess4j-4.0.0.jar:4.0.0]
> at net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:277) 
> ~[tess4j-4.0.0.jar:4.0.0]
> at net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:209) 
> ~[tess4j-4.0.0.jar:4.0.0]
> at net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:193) 
> ~[tess4j-4.0.0.jar:4.0.0]
> at com.test.job.MyQuartzJob.execute(MyQuartzJob.java:79) ~[classes/:na]
> at org.quartz.core.JobRunShell.run(JobRunShell.java:202) 
> ~[quartz-2.2.1.jar:na]
> at 
> org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) 
> [quartz-2.2.1.jar:na]
>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/2534dec3-7b8e-4f3c-bd12-09969773ed5a%40googlegroups.com.


[tesseract-ocr] Re: Language file for MICR font

2019-08-13 Thread Jyotirmay
Hello Juned,

I read the conversation above and implemented in my android application 
using Kotlin.
It is working. But it is returning some junk value instead of proper MICR 
number.

val baseApi = TessBaseAPI()
baseApi.setDebug(true)
baseApi.init(datapath, "mcr")
baseApi.setImage(bitmap)

val recognizedText:String = baseApi.utF8Text
Print.d("MICR: $recognizedText")


Can you tell me if I am missing something?

Thanks,
Jyotirmay

On Thursday, 21 August 2014 18:26:07 UTC+5:30, Juned Khan wrote:
>
> Hi Santhos
>
> Here is the updated code for intialization
>
> 
> TessBaseAPI baseApi = new TessBaseAPI();
> baseApi.setDebug(true);
> baseApi.init(DATA_PATH, "mcr");
> baseApi.setImage(bitmap);
>
> String recognizedText = baseApi.getUTF8Text();
>
> baseApi.end();
>
> Thanks
> Juned Khan
>
> On Wednesday, August 20, 2014 7:31:53 PM UTC+5:30, Santhosh Kumar wrote:
>>
>> Hi Juned,
>>  
>> Could please post code snippet for MICR recognize in Android.
>>  
>> I have downloaded 'mcr.traineddata' and saved it in assests. 
>>  
>> At runtime I have copied file into sdcard (OCR_DATA_PATH) and initialised 
>> Tessaract OCR engine with 
>>
>> baseApi.init(OCR_DATA_PATH, 'mcr', TessBaseAPI.OEM_TESSARACT_ONLY);
>>
>> But I am getting Fatal signal 11 error.
>>
>> Please help me on this.
>>
>> Thanks
>>
>> Santhosh Kumar.K
>>
>> On Wednesday, August 20, 2014 7:00:26 PM UTC+5:30, Juned Khan wrote:
>>
>>> Thank you guys, I got this working for Android too. 
>>>
>>> On Thursday, May 26, 2011 12:34:21 PM UTC+5:30, Hunter wrote:

 Does anyone have a MICR language file they are willing to share? 

 I need to use Tesseract 2 (via TessNet2) to read cheque details. 
 Tesseract has a lot of difficultly reading the MICR font on the bottom 
 of the cheque so it will need to be trained. Rather than wasting a day 
 attempting to do this, it would be very cool if someone has this 
 already done. Even the box file would be a huge help. 

 Thankyou in advance!
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/4a13218b-d07d-40fa-b758-3e8c1f87b708%40googlegroups.com.


Re: [tesseract-ocr] Re: Tesseract 4.1.0 released

2019-08-13 Thread Alex Cohn
Oh, I now understand the problem. You need  git clone --recurse-submodules. 
To add the missing submodules after *clone*,

git submodule init 
git submodule update


BR,
Alex

On Tuesday, August 13, 2019 at 1:31:20 PM UTC+3, JB Data31 wrote:
>
> *$ git clone -b "4.1" --single-branch 
> https://github.com/alexcohn/tess-two.git 
>  tess-two-git-2*
> Cloning into 'tess-two-git-2'...
> remote: Enumerating objects: 34, done.
> remote: Counting objects: 100% (34/34), done.
> remote: Compressing objects: 100% (34/34), done.
> remote: Total 11423 (delta 1), reused 27 (delta 0), pack-reused 11389
> Receiving objects: 100% (11423/11423), 157.20 MiB | 1.20 MiB/s, done.
> Resolving deltas: 100% (6708/6708), done.
>
> *$ ndk-build -C tess-two-git-2/tess-two tesseract APP_ABI=arm64-v8a 
> APP_PLATFORM=android-24*
> Android NDK: WARNING: APP_PLATFORM android-24 is higher than 
> android:minSdkVersion 1 in ./AndroidManifest.xml. NDK binaries will *not* 
> be compatible with devices older than android-24. See 
> https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md
>  
> for more information.
> make: Entering directory `.../tess-two-git-2/tess-two'
> make: *** No rule to make target 
> `jni/../../tesseract/src/api/tesseractmain.cpp', needed by 
> `obj/local/arm64-v8a/objs/tesseract/api/tesseractmain.o'.  Stop.
> make: Leaving directory `.../tess-two-git-2/tess-two'
>
> *$ ll tess-two-git-2/tess-two/obj*
> ls: cannot access 'tess-two-git-2/tess-two/obj': No such file or directory
>
> Branch : 4.1, no *tess-two/ob*j dir, created no changes.
>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/5c95d674-d7d9-42b3-b677-d04b7032bf83%40googlegroups.com.


Re: [tesseract-ocr] Re: Tesseract 4.1.0 released

2019-08-13 Thread JB Data31
*$ git clone -b "4.1" --single-branch 
https://github.com/alexcohn/tess-two.git tess-two-git-2*
Cloning into 'tess-two-git-2'...
remote: Enumerating objects: 34, done.
remote: Counting objects: 100% (34/34), done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 11423 (delta 1), reused 27 (delta 0), pack-reused 11389
Receiving objects: 100% (11423/11423), 157.20 MiB | 1.20 MiB/s, done.
Resolving deltas: 100% (6708/6708), done.

*$ ndk-build -C tess-two-git-2/tess-two tesseract APP_ABI=arm64-v8a 
APP_PLATFORM=android-24*
Android NDK: WARNING: APP_PLATFORM android-24 is higher than 
android:minSdkVersion 1 in ./AndroidManifest.xml. NDK binaries will *not* 
be compatible with devices older than android-24. See 
https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md
 
for more information.
make: Entering directory `.../tess-two-git-2/tess-two'
make: *** No rule to make target 
`jni/../../tesseract/src/api/tesseractmain.cpp', needed by 
`obj/local/arm64-v8a/objs/tesseract/api/tesseractmain.o'.  Stop.
make: Leaving directory `.../tess-two-git-2/tess-two'

*$ ll tess-two-git-2/tess-two/obj*
ls: cannot access 'tess-two-git-2/tess-two/obj': No such file or directory

Branch : 4.1, no *tess-two/ob*j dir, created no changes.

Le lundi 5 août 2019 07:00:22 UTC, Alex Cohn a écrit :
>
> On Monday, August 5, 2019 at 8:21:32 AM UTC+3, JB Data31 wrote:
>>
>> https://github.com/tesseract-ocr/tesseract/wiki/Compiling#android 
>>
>> *$ date*
>>> Mon Aug  5 04:58:08 UTC 2019
>>> *$ git clone https://github.com/alexcohn/tess-two.git 
>>>  tess-two-git* 
>>> Cloning into 'tess-two-git'...
>>>
>> ...
>>> Resolving deltas: 100% (7359/7359), done.
>>>
>>
> Which branch did you check in this time? 
>  
>
>>
>>> *$ ndk-build -C tess-two-git/tess-two tesseract APP_ABI=arm64-v8a 
>>> APP_PLATFORM=android-24*Android NDK: WARNING: APP_PLATFORM android-24 
>>> is higher than android:minSdkVersion 1 in ./AndroidManifest.xml. NDK 
>>> binaries will *not* be compatible with devices older than android-24. See 
>>> https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md
>>>  
>>> for more information.
>>> make: Entering directory `.../tess-two-git/tess-two'
>>> *make: *** No rule to make target 
>>> `jni/../../tesseract/src/api/tesseractmain.cpp', needed by 
>>> `obj/local/arm64-v8a/objs/tesseract/api/tesseractmain.o'.  Stop.*
>>> make: Leaving directory `.../tess-two-git/tess-two'
>>
>>
> Also, there may be old *.o.d* files under *tess-two-git/tess-two/obj*, it 
> sometimes helps to delete them.
>
> BR, 
> Alex 
>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/5b00fa61-61ce-478f-b09a-042497ae1903%40googlegroups.com.


[tesseract-ocr] OCR on multiple image files

2019-08-13 Thread irtmem intellect

Hi
I want to OCR multiple image files using tesseract.

I an making a text file with all the file names (savedlist.txt), and then 
tesseract savedlist.txt output.txt .
In case if one of the files is having multiple pages, then only first page 
is OCRed. Is there any option to set? . I have tried with 
*tessedit_page_number*=-1 also. but no effect.

Also if I require separate output files for each input image file , is 
there any option?
Please suggest.

Regards,


-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/9f1c0dce-0505-4a78-9be8-5213b56d1cf5%40googlegroups.com.