cv2.split(img_cv) # OpenCV 中图像显示是 BGR 模式,提取
img_matplot = cv2.merge([r, g, b])
plt.subplot(121)
plt.imshow...更多 FourCC 代码见 官网
cv2.flip(src, flipCode[, dst]) → dst: flipCode: 0表示绕 x 轴翻转,正值(例如,1)表示绕 y 轴翻转。...负值(例如 -1)表示在两个轴上翻转。...gt, rt = 255, 255, 255
def draw_circle(event, x, y, radius, b=255, g=255, r=255):
global radius_t...cv2.circle(img, (x, y), radius, (b, g, r), -1)
img = np.zeros((1366, 768, 3), np.uint8)
cv2