Commit c30c0c3e authored by Jerome Flesch's avatar Jerome Flesch

README: cosmetic: In read/write examples, defines 'tool'

Signed-off-by: Jerome Flesch's avatarJerome Flesch <jflesch@openpaper.work>
parent 931c2be4
......@@ -176,6 +176,7 @@ import codecs
import pyocr
import pyocr.builders
tool = pyocr.get_available_tools()[0]
builder = pyocr.builders.TextBuilder()
txt = tool.image_to_string(
......@@ -211,6 +212,7 @@ import codecs
import pyocr
import pyocr.builders
tool = pyocr.get_available_tools()[0]
builder = pyocr.builders.LineBoxBuilder()
line_boxes = tool.image_to_string(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment