Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting variable tessedit_write_images to true has no effect #160

Closed
Jonathan-JFR opened this issue Mar 25, 2015 · 5 comments
Closed

Setting variable tessedit_write_images to true has no effect #160

Jonathan-JFR opened this issue Mar 25, 2015 · 5 comments
Assignees
Labels

Comments

@Jonathan-JFR
Copy link

Hi!

I've a noob question. Hope someone can help me.

I've set the variable tessedit_write_images to true using the SetVariable Method.
After that I read this var using the method TryGetBoolVariable to ensure it was setted propertly.

Then I Processed an image and obtained the text, but I expected to find a tessinput.tif file in the same folder than my .exe and the image is not there.

Am I doing something wrong or this variable is not supported?

Thanks.

@charlesw
Copy link
Owner

I had a look at the Tesseract 3.02 source and it only checks the tessedit_write_images variable as part of the TessBaseAPI::ProcessPage method which is not exposed by this wrapper. So in short it's not possible to do this at this time.

I think the best solution here would be if I added this functionality directly to the wrapper (i.e. manually check the variable) is defined after the recognise phase is run and save the image then. Should be fairly straight forward and have the desired functionality\effect.

@charlesw charlesw added the bug label Mar 25, 2015
@charlesw charlesw self-assigned this Mar 25, 2015
@charlesw charlesw changed the title Setting variable tessedit_write_images to true. Setting variable tessedit_write_images to true has no effect Mar 25, 2015
@charlesw
Copy link
Owner

Fixed, you should see the expected behaviour in the next release.

@Jonathan-JFR
Copy link
Author

Thanks you very much.

@puneetsinha
Copy link

i have installed tesseract ocr in windows ... can you guys help me how to to fix tessedit_write_images to true from command line or in some config file

@khamyl
Copy link

khamyl commented Aug 15, 2017

tesseract test.jpg out tessconfig

where the tessconfig content is:

tessedit_write_images true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants