def __init__(self, parent): self.ch_tracks = dict() self.parent = parent self.parsed = False self.listWidget = self.parent.GetTracksList() self.Visualizer = Visualizer.getInstance() self.last_id = -1e3 self.np_tracks = np.zeros(0) self.clothes = dict() self.tracks_path = "" self.clothes_path = ""
def __init__(self, path, queue_size=128): self.stream = cv2.VideoCapture(path) self.stopped = False self.queue_size = queue_size self.path = path self.Q = Queue(maxsize=queue_size) self.thread = threading.Thread(target=self.update, args=()) # self.thread.daemon = True self.allreaded = False self.pause_cond = threading.Condition(threading.Lock()) self.paused = False self.Visualizer = Visualizer.getInstance() self.Visualizer.setStream(self) self.frame_id = 0