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)