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