def get_detections(self, frames):
    'Returns all detections on frames'
    assert (len(frames) <= self.max_num_frames)
    all_detections = []
    for i in range(len(frames)):
        self.net.forward_async(frames[i])
    outputs = self.net.grab_all_async()
    for (i, out) in enumerate(outputs):
        detections = self.__decode_detections(out, frames[i].shape)
        all_detections.append(detections)
    return all_detections
Returns all detections on frames
def get_detections(self, frames):
    
    assert (len(frames) <= self.max_num_frames)
    all_detections = []
    for i in range(len(frames)):
        self.net.forward_async(frames[i])
    outputs = self.net.grab_all_async()
    for (i, out) in enumerate(outputs):
        detections = self.__decode_detections(out, frames[i].shape)
        all_detections.append(detections)
    return all_detections