Include a python script for EasyOCR

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2, Sig, Sigo 2 years ago
parent 7283e58873
commit 0fe143df7f
  1. 13
      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 <ja|en>")
Loading…
Cancel
Save