pmkhanh7890's picture
1st push
6610027
raw
history blame contribute delete
664 Bytes
#from streamlit_webrtc import RTCConfiguration
from collections import namedtuple
# MODELS
MODEL_DIR = "models/handwritten-japanese-recognition-0001.xml"
#MODEL_NAME = "handwritten-japanese-recognition-0001"
DATA_DIR = "data"
DICT_DIR = "dict/japanese_charlist.txt"
DEVICE = "CPU"
# Precision used by the model.
precision = "FP16"
# Config server for webcam
#RTC_CONFIGURATION = RTCConfiguration(
# {"iceServers": [{"urls": ["stun:stun4.l.google.com:19302"]}]},
#)
# IMAGE
IMAGE_EXAMPLE = "data/in_1.png"
IMAGE_TYPES = ['jpg','png','jpeg','JPG']
Language = namedtuple(
typename="Language", field_names=["model_name", "dict_name", "demo_image_name"]
)