(self)
| 244 | self.thread.start() |
| 245 | |
| 246 | def stop(self): |
| 247 | with self.condition: |
| 248 | self.condition.notify_all() # Unblock all threads |
| 249 | if self.thread: |
| 250 | self.thread.join() |
| 251 | |
| 252 | def _capture_frames(self): |
| 253 | cap = cv2.VideoCapture(self.video_path) |