fixed some errors, dynamic fine
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user