以下代码绘制一个白色矩形。但是,它不应该那样做。考虑到 opencv 使用 BGR 颜色空间,它应该看起来像这样http://www.colorpicker.com/?colorcode=9F635F
import cv2
import numpy as np
drawing = np.zeros([500, 500, 3])
cv2.rectangle(drawing, (0, 0), (250, 250), (95, 99, 159), -1)
cv2.imshow("drawing", drawing)
cv2.waitKey()