add detector processes

This commit is contained in:
Blake Blackshear
2020-11-01 09:56:33 -06:00
parent 36fbedab20
commit 514036f9d1
2 changed files with 37 additions and 9 deletions

View File

@@ -99,7 +99,7 @@ class LocalObjectDetector(ObjectDetector):
return detections
def run_detector(detection_queue, out_events: Dict[str, mp.Event], avg_speed, start, tf_device):
def run_detector(detection_queue: mp.Queue, out_events: Dict[str, mp.Event], avg_speed, start, tf_device):
print(f"Starting detection process: {os.getpid()}")
listen()
frame_manager = SharedMemoryFrameManager()