Get the visualized clips if any.
(self)
| 258 | self.model.put(task) |
| 259 | |
| 260 | def get(self): |
| 261 | """ |
| 262 | Get the visualized clips if any. |
| 263 | """ |
| 264 | try: |
| 265 | task = self.async_vis.get() |
| 266 | except (queue.Empty, IndexError): |
| 267 | raise IndexError("Results are not available yet.") |
| 268 | |
| 269 | return task |
| 270 | |
| 271 | |
| 272 | def draw_predictions(task, video_vis): |