You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
499 B
Python

import os
cur_dir = os.getcwd().split('/')[-1]
WORK_DIR = 'colemano'
if cur_dir==WORK_DIR:
WORK_DIR='.'
elif (cur_dir=='demo_flask') | (cur_dir=='src'):
WORK_DIR='..'
elif cur_dir=='geografia':
WORK_DIR='colemano'
QUIT_BUTTON = 'q'
PHOTO_BUTTON = 'p'
MODEL_PATH = f'{WORK_DIR}/train/ASL/static/models/asl_static_D.h5'
GESTURES_PATH = f'{WORK_DIR}/src/ASL_gestures'
PREDICT_PATH = f'{WORK_DIR}/tmp_camera'
TARGET_SIZE=(200,200)
X_ORIGIN = 100
Y_ORIGIN = 100
WIDTH = 200
HEIGHT = 200