From b0f04daa7859fda4bdf28854ff4f6f3a882a5c38 Mon Sep 17 00:00:00 2001 From: moscovskayaliza Date: Thu, 25 Jun 2026 18:16:58 +0300 Subject: [PATCH] hotfix to make it works with ros --- gesture_control/special_gestures.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gesture_control/special_gestures.py b/gesture_control/special_gestures.py index a0acafb..847d18a 100644 --- a/gesture_control/special_gestures.py +++ b/gesture_control/special_gestures.py @@ -1,10 +1,11 @@ import numpy as np -from ml_gestures.predict import MLGesturePredictor + class SpecialGestureDetector: def __init__(self, mode='geometric', model_path=None, class_names=None): self.mode = mode if mode == 'ml': + from ml_gestures.predict import MLGesturePredictor if model_path is None or class_names is None: raise ValueError("Для ML нужны model_path и class_names") self.ml_predictor = MLGesturePredictor(model_path, class_names)