ensure track cpu use gray image

This commit is contained in:
bluepulsar
2026-01-31 12:26:11 +08:00
parent e2100204aa
commit 2ebbe1a284
+2
View File
@@ -59,6 +59,8 @@ class Tracker:
if self.cuda:
return self.track_cuda(frame)
else:
if frame.ndim == 3:
frame = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
return self.track_cpu(frame)
def track_cuda(self, frame):