I added the following code, which has improved the results. I thought that
adding 'alto' would create an xml file with formatting information, but it
didn't work. Is there another way to retain formatting information in
Tesseract?
config = ("-l fra --oem 1 --psm 1 alto")text =
pytesseract.image_to_string(Image.open('readonly/greyscale_noise.jpg'),config=
config)
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tesseract-ocr/f2b7bbf7-6f43-4598-8e24-7afac9e1fc38%40googlegroups.com.