Python OpenCV 绘制矩形。填充只需要将线宽设置为 -1。
left_top = (120, 100)
right_bottom = (200, 150)
point_color = (255, 0, 0)
thickness = -1
line_type = 8
cv2.rectangle(img, left_top, right_bottom, point_color, thickness, line_type)
墨之科技,版权所有 © Copyright 2017-2027
湘ICP备14012786号 邮箱:ai@inksci.com