Tesseract command does not work if the image path contains space in it

168 views
Skip to first unread message

Kapil Naker

unread,
Jan 14, 2014, 2:20:49 AM1/14/14
to tesser...@googlegroups.com
Hi,

I have observed that, when Image path contains space , tesseract command does not recognize it.

For example below command throws error can not open file c:\test

tesseract
c:\test image.tif outputbase -l eng -psm 6 hocr

And similarly if space appears anywhere in put file path , it throws the similar error.

tesseract c:\folder test \test.tif outputbase -l eng -psm 6 hocr
error : can not open c:\folder

So my question is , is there any way to have tesseract support space or its compulsory not to use space in the input image file path.

Thanks,
Kapil

zdenko podobny

unread,
Jan 14, 2014, 2:28:07 AM1/14/14
to tesser...@googlegroups.com
try to google "windows path with spaces cmd"

Zdenko


--
--
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to tesser...@googlegroups.com
To unsubscribe from this group, send email to
tesseract-oc...@googlegroups.com
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 tesseract-oc...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Quan Nguyen

unread,
Jan 14, 2014, 9:29:01 PM1/14/14
to tesser...@googlegroups.com
In such cases, enclose them in quotes, e.g., "c:\test image.tif", "c:\folder test \test.tif", etc.

Kapil Naker

unread,
Jan 14, 2014, 11:40:11 PM1/14/14
to tesser...@googlegroups.com
Thanks Zdenko and Quan,

It worked perfectly fine.
Reply all
Reply to author
Forward
0 new messages