diff options
Diffstat (limited to 'megapixels/app/settings')
| -rw-r--r-- | megapixels/app/settings/app_cfg.py | 13 | ||||
| -rw-r--r-- | megapixels/app/settings/types.py | 4 |
2 files changed, 14 insertions, 3 deletions
diff --git a/megapixels/app/settings/app_cfg.py b/megapixels/app/settings/app_cfg.py index 739ddce2..3e60a9b4 100644 --- a/megapixels/app/settings/app_cfg.py +++ b/megapixels/app/settings/app_cfg.py @@ -14,11 +14,14 @@ from app.utils import click_utils # ----------------------------------------------------------------------------- FaceDetectNetVar = click_utils.ParamVar(types.FaceDetectNet) - +HaarCascadeVar = click_utils.ParamVar(types.HaarCascade) LogLevelVar = click_utils.ParamVar(types.LogLevel) # # data_store DATA_STORE = '/data_store_hdd/' +DATA_STORE_NAS = '/data_store_nas/' +DATA_STORE_HDD = '/data_store_hdd/' +DATA_STORE_SSD = '/data_store_ssd/' DIR_DATASETS = join(DATA_STORE,'datasets') DIR_APPS = join(DATA_STORE,'apps') DIR_APP = join(DIR_APPS,'megapixels') @@ -38,6 +41,8 @@ DIR_MODELS_DLIB_5PT = join(DIR_MODELS_DLIB, 'shape_predictor_5_face_landmarks.da DIR_MODELS_DLIB_68PT = join(DIR_MODELS_DLIB, 'shape_predictor_68_face_landmarks.dat') +types.HaarCascade.FRONTAL + # Test images DIR_TEST_IMAGES = join(DIR_APP, 'test', 'images') @@ -51,8 +56,10 @@ FP_FONT = join(DIR_ASSETS, 'font') # ----------------------------------------------------------------------------- # click chair settings # ----------------------------------------------------------------------------- -DIR_COMMANDS_PROCESSOR_ADMIN = 'admin/commands' -DIR_COMMANDS_PROCESSOR_DATASETS = 'datasets/commands' +DIR_COMMANDS_CV = 'commands/cv' +DIR_COMMANDS_ADMIN = 'commands/admin' +DIR_COMMANDS_DATASETS = 'commands/datasets' +DIR_COMMANDS_MISC = 'commands/misc' # ----------------------------------------------------------------------------- # Filesystem settings diff --git a/megapixels/app/settings/types.py b/megapixels/app/settings/types.py index 0c3d7942..52470034 100644 --- a/megapixels/app/settings/types.py +++ b/megapixels/app/settings/types.py @@ -20,6 +20,10 @@ class CVTarget(Enum): """OpenCV 3.4.2+ DNN backend processor type""" CPU, OPENCL, OPENCL_FP16, MYRIAD = range(4) +class HaarCascade(Enum): + FRONTAL, ALT, ALT2, PROFILE = range(4) + + # --------------------------------------------------------------------- # Logger, monitoring # -------------------------------------------------------------------- |
