Where people come together to learn, code, and play. Custom-built HTTP server, site generator, and website from scratch using no external libraries. Goal is to be as minimalistic and fun as possible.
http://projectdivar.com
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
288 B
14 lines
288 B
3 years ago
|
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>")
|
||
|
|