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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tesseract-ocr/4a13218b-d07d-40fa-b758-3e8c1f87b708%40googlegroups.com.