Opencv-python快速修改指定二值图像素
cv2.imwrite(“imageBlack.png”, merged) #原始二值图merged,通过imwrite保存三通道
imageBlack = cv2.imread(“imageBlack.png”)
B, R, G = cv2.split(imageBlack)
height, width, channels = imageBlack.shape
##numpy->list
imageRed_list = imageBlack.tolist()
for i in range(heigh
原创
2021-04-12 11:03:56 ·
213 阅读 ·
0 评论