fixed some errors, dynamic fine

This commit is contained in:
moscovskayaliza
2026-04-02 17:09:14 +03:00
parent dcbb1b535b
commit b051f2a658
4 changed files with 30 additions and 15 deletions
+2
View File
@@ -14,6 +14,8 @@ class DynamicGesturePredictor:
self.threshold = threshold
def add_frame(self, landmarks):
if landmarks is None or np.isnan(landmarks).any():
landmarks = np.zeros(99)
self.buffer.append(landmarks)
def predict(self):