From 8643747599ec78f41aceba071d058a89bbba5177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=A1=E5=9D=82=E6=98=B4?= Date: Sat, 14 Sep 2024 21:50:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B4=A7=E6=80=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/2024,9,10/.idea/2024,9,10.iml | 2 +- test/2024,9,10/.idea/misc.xml | 2 +- test/2024,9,10/set_alpha.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/2024,9,10/.idea/2024,9,10.iml b/test/2024,9,10/.idea/2024,9,10.iml index b69ee03..24f7b7d 100644 --- a/test/2024,9,10/.idea/2024,9,10.iml +++ b/test/2024,9,10/.idea/2024,9,10.iml @@ -2,7 +2,7 @@ - + \ No newline at end of file diff --git a/test/2024,9,10/.idea/misc.xml b/test/2024,9,10/.idea/misc.xml index 98eaa58..12e1d9d 100644 --- a/test/2024,9,10/.idea/misc.xml +++ b/test/2024,9,10/.idea/misc.xml @@ -3,5 +3,5 @@ - + \ No newline at end of file diff --git a/test/2024,9,10/set_alpha.py b/test/2024,9,10/set_alpha.py index 02b62b0..1169f12 100644 --- a/test/2024,9,10/set_alpha.py +++ b/test/2024,9,10/set_alpha.py @@ -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) \ No newline at end of file +# compress and save +cv.imwrite("img.png",img_rgba,[cv.IMWRITE_PNG_COMPRESSION,9]) \ No newline at end of file