This commit is contained in:
2024-09-14 21:50:09 +08:00
parent 6e7c39ed51
commit 8643747599
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -14,5 +14,5 @@ img_rgba=cv.merge((blue,green,red,alpha))
cv.imshow("changed",img_rgba)
cv.waitKey(0)
cv.destroyAllWindows()
# save
cv.imwrite("img.png",img_rgba)
# compress and save
cv.imwrite("img.png",img_rgba,[cv.IMWRITE_PNG_COMPRESSION,9])