ensure track cpu use gray image
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user