Add the new task to task queue. Args: task (TaskInfo object): task object that contain the necessary information for action prediction. (e.g. frames, boxes, predictions)
(self, task)
| 181 | atexit.register(self.shutdown) |
| 182 | |
| 183 | def put(self, task): |
| 184 | """ |
| 185 | Add the new task to task queue. |
| 186 | Args: |
| 187 | task (TaskInfo object): task object that contain |
| 188 | the necessary information for action prediction. (e.g. frames, boxes, predictions) |
| 189 | """ |
| 190 | self.put_id += 1 |
| 191 | self.task_queue.put(task) |
| 192 | |
| 193 | def get(self): |
| 194 | """ |