Add the clip and corresponding id. Args: idx (int): the current index of the clip. frames (list[ndarray]): list of images in "BGR" format.
(self, idx, frames)
| 353 | self.clip_vis_size = -1 |
| 354 | |
| 355 | def add_frames(self, idx, frames): |
| 356 | """ |
| 357 | Add the clip and corresponding id. |
| 358 | Args: |
| 359 | idx (int): the current index of the clip. |
| 360 | frames (list[ndarray]): list of images in "BGR" format. |
| 361 | """ |
| 362 | self.frames = frames |
| 363 | self.id = idx |
| 364 | |
| 365 | def add_bboxes(self, bboxes): |
| 366 | """ |