12.14 azcv ocr

For printed text from which we want to perform optical character recognition (i.e., not for handwritten text which only supports English), we can assist the process by specifying the language. Whilst this is supported by the cloud service it is not yet available for the ocr command. Edit ~/.mlhub/azcv/ocr.py to change the line:

            rawHttpResponse = client.read_in_stream(fstream, raw=raw)

to the following, adding a language, such as Dutch (nl):

            rawHttpResponse = client.read_in_stream(fstream, language="nl", raw=raw)

Then run the ocr command again. Remember to change it back for general usage.

Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0