I ran into this once where the application terminated in ocr.init...
I remember there was something about needing to have/copy the exe file
into the directory at the higher level.  Maybe it mattered whether it
was a Release build or Debug.  I have to keep this quick;  you can
look in my previous posts for more details.  Remi Thomas has also
posted some things to check for.

On Apr 8, 10:32 pm, Raj <[email protected]> wrote:
> HI Lother,
>
>     Thanks for the reply.
>
>  In the OCR applicaiton i have included Tessnet2 dll's reference.
>
> when i run the (in C#) application with tessdata for english language,
> the application is working perfectly and is producing output but with
> some ambiguity.
>
> To avoid that i created the 8 files of Tessdata and i confirmed that
> it is working fine(100% results)when  using the command
> "tesseract.exe input.tif output.txt -l sun" .
>
> So, i thought of replacing the tessdata for english from my OCR
> application with the tessdata what i have created.
>
> But the application is not producing any result and the application is
> terminating when executing this statement "ocr.init()".
>
> But when i change the tessdata with the tessdata of English language
> again it is producing result.
>
> I have no clue of this strange behaviour.
>
> and it seems no problem with the tessdata what i have created. b'coz
> it is producing results when excuting independent of the C#
> application.
>
> Pls,suggest me where i'm going wrong.
>
> Thanks in advance.
> Regards.
> Sunder Raj.M
>
> On Apr 8, 2:39 pm, Lothar <[email protected]> wrote:
>
>
>
> > Did you try to use tessnet2 instead of EmguCV?
>
> > You will find it here:http://www.pixel-technology.com/freeware/tessnet2/
>
> > Best regards,
> > Lothar
>
> > On 8 Apr., 09:32, Raj <[email protected]> wrote:
>
> > > Hi Friends,
>
> > >        I have generated the tessdata with the required 8 files to
> > > recognize 7-segment display.and
> > > when i use the command
>
> > >        "Tesseract.exe input.tif output.txt -l sun" where sun is the
> > > language name.
>
> > > the Tesseract OCR engine is Working perfectly and procuding 100%
> > > results as expected without any ambiguity.
>
> > > Now, I want to use this in C# Application.
>
> > > For this i'm using EmguCV 1.5.0.1 where there is an example in C#  for
> > > OCR.This example is given with tessdata for English Language.
>
> > > I replaced the all the 8 files in tessdata with the files what i have
> > > created.and when i executed the application it is not producing any
> > > result and running successfully without any errors.
>
> > >  Has anybody tel me why it is not giving results when i use it in the
> > > application and working perfectly when it is not run in the
> > > application.
>
> > > Please Help me in solving the problem.
>
> > > Thanks in advance.
>
> > > Regards,
> > > Sunder Raj .M- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tesseract-ocr?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to