Perhaps something like the following may work (entirely untested):
clocks_found will be a list of clock objects found in the detections list.
Code:
# Extract detections from the inference resultsdetections = extract_detections(results[0], video_w, video_h, class_names, args.score_thresh)clocks_found = [c for c in detections if c[0] == 'clock']
Statistics: Posted by naushir — Mon Sep 09, 2024 7:42 am