Commit e2430e4a authored by Jerome Flesch's avatar Jerome Flesch

README: Clarify slightly the API usage regarding languages

Signed-off-by: Jerome Flesch's avatarJerome Flesch <jflesch@gmail.com>
parent 19f2963c
......@@ -50,11 +50,11 @@ txt = tool.image_to_string(
)
word_boxes = tool.image_to_string(
Image.open('test.png'),
lang=lang,
lang="eng"
builder=pyocr.builders.WordBoxBuilder()
)
line_and_word_boxes = tool.image_to_string(
Image.open('test.png'), lang=lang,
Image.open('test.png'), lang="fra",
builder=pyocr.builders.LineBoxBuilder()
)
......
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