Opencv简单实现改编图片中指点颜色
作者:互联网
import cv2
img=cv2.imread("shape.jpg")
h,w,c=img.shape
for i in range(h):
for j in range(w):
for k in range(0,3):
if 110
img.itemset((i,j,0),0)
img.itemset((i,j,1),0)
img.itemset((i,j,2),0)
cv2.imshow("xxw",img)
cv2.waitKey()
cv2.destroyAllWindows()
标签:xxw,img,cv2,shape,指点,itemset,Opencv,range,改编 来源: https://blog.csdn.net/gaisidefeimei/article/details/118215128