Hello,
I am in the process of figuring out how to make Tesseract more accurate, because I have some issues. In League of Legends' in-game chat the position is fixed, the text color will always be the same, but the background changes a lot.
So I read how to improve quality of the output :
https://tesseract-ocr.github.io/tessdoc/ImproveQuality.html#page-segmentation-method
It says to set tessedit_write_images to true so it will generate the image tesseract sees, so we can detect if it pre-processed it properly.
So I tried to enable it : text = pytesseract.image_to_string(image, config='--psm 6 tessedit_write_images=1 ')
But it doesn't do anything, I don't see the file being generated in my folder. I also tried :
text = pytesseract.image_to_string(image, config='--psm 6 tessedit_write_images=true ')
Still nothing, also tried :
text = pytesseract.image_to_string(image, config='--psm 6 --tessedit_write_images=1 ')
Here it outputs an error : pytesseract.pytesseract.TesseractError: (1, "Error, unknown command line argument '--tessedit_write_images=1'")
I have no idea what I'm doing wrong, if someone can help me.
Thank you