From 0770bb146e657f5685d7a8a77f5d9b97bbe8dad3 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:55:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E4=BA=86=E4=B8=AA=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/2024,9,10/set_alpha.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/2024,9,10/set_alpha.py b/test/2024,9,10/set_alpha.py index 1169f12..31f73c0 100644 --- a/test/2024,9,10/set_alpha.py +++ b/test/2024,9,10/set_alpha.py @@ -2,7 +2,7 @@ import cv2 as cv # read image img=cv.imread("opencv_logo.png",cv.IMREAD_UNCHANGED) -# concert to rgba +# convert to rgba img_rgba=cv.cvtColor(img,cv.COLOR_BGR2BGRA) # split alpha channel blue,green,red,alpha = cv.split(img_rgba)