Skip to content
Snippets Groups Projects
Commit 4cbb194a authored by BIRK Renaud's avatar BIRK Renaud
Browse files

Typos

parent 55b05655
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ pip install "paddleocr>=2.0.1"
python test.py
```
Vous pouvez ajouter vos images de test dans le dossier `data/img/`.
Vous pouvez ajouter vos images de tests dans le dossier `data/img/`.
### Utilisation par le code
......
......@@ -32,7 +32,9 @@ def main():
ocr.save_ocr(device.useful_groups, TEST_IMAGES_DIR + "/biomet.jpg", OUTPUT_DIR + "/biomet_export_step2.jpg", FONT_DIR + "/" + FONT_FILENAME)
# 3. Interface graphique de tri
UI(device, OUTPUT_DIR + "/biomet_export_step3.txt").show()
ui = UI(device, OUTPUT_DIR + "/biomet_export_step3.txt")
ui.show()
print(ui.device)
# Autres exemples
......@@ -47,7 +49,9 @@ def main():
# output_file2.write(str(device2))
# output_file2.close()
# ocr.save_ocr(device2.useful_groups, TEST_IMAGES_DIR + "/passeo-18.jpg", OUTPUT_DIR + "/passeo-18_export_step2.jpg", FONT_DIR + "/" + FONT_FILENAME)
# UI(device2, OUTPUT_DIR + "/passeo-18_export_step3.txt").show()
# ui2 = UI(device2, OUTPUT_DIR + "/passeo-18_export_step3.txt").show()
# ui2.show()
# print(ui2.device)
# groups3 = ocr.recognize(TEST_IMAGES_DIR + "/stryker.jpg")
# ocr.save_ocr(groups3, TEST_IMAGES_DIR + "/stryker.jpg", OUTPUT_DIR + "/stryker_export_step1.jpg", FONT_DIR + "/" + FONT_FILENAME)
......@@ -60,7 +64,9 @@ def main():
# output_file3.write(str(device3))
# output_file3.close()
# ocr.save_ocr(device3.useful_groups, TEST_IMAGES_DIR + "/stryker.jpg", OUTPUT_DIR + "/stryker_export_step2.jpg", FONT_DIR + "/" + FONT_FILENAME)
# UI(device3, OUTPUT_DIR + "/stryker_export_step3.txt").show()
# ui3 = UI(device3, OUTPUT_DIR + "/stryker_export_step3.txt").show()
# ui3.show()
# print(ui3.device)
if __name__ == '__main__':
main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment