font = cv2.FONT_HERSHEY_SIMPLEX # 使用默认字体 cv2.rectangle(im, (10, 10), (110, 110), (0, 0, 255), thickness=2) # cv2.floodFill() cv2.rectangle(im, (113), int(110)), (int(300), int(135), (255, 0, 0), thickness=-1) cv2.putText(im, class_name + ' ' + str(sc