File size: 664 Bytes
6610027
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#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"]
)