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.
gesture_rec/config.py

47 lines
1.6 KiB
Python

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

class Config:
# ===== Камера =====
CAMERA_ID = 0
MIRROR_CAMERA = True
# ===== Управление руками (скорости) =====
ARM_CONTROL = {
'linear_arm': 'right',
'angular_arm': 'left',
'max_speed_linear': 1.0,
'max_speed_angular': 1.0,
'dead_zone': 0.2,
'debug': False
# минимальное относительное смещение для отклика
}
# ===== Специальные жесты =====
SPECIAL_GESTURE_MODE = 'ml' #ml #geometric
ML_GESTURE_MODEL = '/home/ubuntu/sirius/models/rf/special_model.pkl'
ML_GESTURE_CLASSES = ['dome', 'cross', 'none']
DYNAMIC_GESTURE = {
'enabled': True, # включить/выключить
'model_path': 'dynamic_model.h5',
'classes_path': 'dynamic_model_classes.pkl',
'window_size': 14, # длина буфера
'threshold': 0.7, # порог уверенности
'actions': {
'wave_left': 'reset', # при жесте wave_left перезапуск симулятора
'wave_right': 'restart', # при wave_right рестарт
}
# ===== Робот =====
ROBOT_MODE = 'simulator'
ROBOT_IMAGE_PATH = 'robot.png' # или None
# ===== Симулятор карты =====
MAP_WIDTH = 800
MAP_HEIGHT = 600
MAP_OBSTACLES = [
(200, 150, 100, 200),
(500, 300, 150, 50),
]
START_POS = (100, 100)
FINISH_POS = (700, 500)
ROBOT_RADIUS = 20