I presume you didn't read the link Zdenko sent you. Using / in the 
path, from file I/O functions like Tesseract uses, is fine, and 
leads Windows to find the correct file. There is nothing to fix.

On Tue, Mar 25, 2014 at 11:06:54PM -0700, temp name wrote:
> I want to update the thread.
> Tesseract is using \ instead of /. The path is C:\Program Files (x86)\
> Tesseract-OCR\tessdata/eng.user-words which is incorrect
> Do anyone know how to fix this ?
> 
> 
> On Tuesday, March 25, 2014 9:25:33 PM UTC+5:30, zdenop wrote:
> 
> 
>     On Tue, Mar 25, 2014 at 3:54 PM, temp name <[email protected]> wrote:
> 
>         Hello,
> 
>         I created a user-word file according to specification given on 
> https://
>         code.google.com/p/tesseract-ocr/wiki/TrainingTesseract3.
>         I created config file as 
>         load_system_dawg     F
>         user_words_suffix    user-words
> 
>         When I run tesseract command on windows 7 :-  " tesseract inpname
>         outputname -l eng configname " , I got following error
> 
>         Could not open file, C:\Program Files (x86)\Tesseract-OCR\tessdata/
>         eng.user-words.
> 
>         In the error I noticed that path of user-words file is not correct.
>         Tesseract added C:\Program Files (x86)\Tesseract-OCR\tessdata/ before
>         the file name but adding  \ before the user-words file name is not
>         correct since it is a windows machine.
> 
> 
>     "/" in path is correct on Windows. See the documentation[1] or do the test
>     (e.g. dir "C:/Program Files (x86)\Tesseract-OCR/tessdata/"
>     or
>      tesseract inpname outputname -l abrakadabra
>     and then:
>      tesseract inpname outputname -l eng
>     )
> 
>     [1] http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=
>     vs.85).aspx
> 
>     --
>     Zdenko
> 
> --
> --
> 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
> 
> ---
> 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].
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
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

--- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to