From 0fe143df7f35458701b847ed959d62ca59628613 Mon Sep 17 00:00:00 2001 From: "sigonasr2, Sig, Sigo" Date: Fri, 5 Aug 2022 18:04:30 +0000 Subject: [PATCH] Include a python script for EasyOCR Co-authored-by: sigonasr2 --- runocr.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 runocr.py diff --git a/runocr.py b/runocr.py new file mode 100644 index 0000000..0adb1b7 --- /dev/null +++ b/runocr.py @@ -0,0 +1,13 @@ +import easyocr +import sys +if len(sys.argv)==2: + if sys.argv[1]=="ja": + print("Loading JP data...") + reader = easyocr.Reader(['ja','en']) + else: + print("Loading EN data...") + reader2 = easyocr.Reader(['en']) +else: + print("Unspecified language. Format:") + print(" runocr.py ") +