python+opencv
记录一下,这个问题困扰了我好几天
1. cv2.imread一张图像,然后
img = cv2.circle(img,(10,10),4,(0,0,255),-1)
cv2.imwrite('/home/user/imga.jpg',img)
有imga.jpg,但就是打不开,打开是不支持此格式,无图像!!!!
解决:
呵呵了我就
cv2.circle(img,(10,10),4,(0,0,255),-1) cv2.imwrite('/home/user/imga.jpg',img)