Spaces:
Runtime error
Runtime error
Update services/video_service.py
Browse files20 unmodified lines212223242526272829303132333435363720 unmodified linesreturn Image.fromarray(frame_rgb)def draw_detections(self, frame, detections):frame_copy = frame.copy()timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")cv2.putText(frame_copy,timestamp,(10, 30),cv2.FONT_HERSHEY_SIMPLEX,0.7,(255, 255, 255),2)for detection in detections:score = detection["score"]label = detection["label"]20 unmodified lines212223242526272829303132333435363720 unmodified linesreturn Image.fromarray(frame_rgb)def draw_detections(self, frame, detections):frame_copy = frame.copy()timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")cv2.putText(frame_copy,timestamp,(10, 30),cv2.FONT_HERSHEY_SIMPLEX,0.7,(255, 255, 255),2)for detection in detections:score = detection["score"]label = detection["label"]
services/video_service.py+11-11