diff --git a/test/2024,9,10/img.png b/test/2024,9,10/img.png index 0b766ad..3d9b7f4 100644 Binary files a/test/2024,9,10/img.png and b/test/2024,9,10/img.png differ diff --git a/test/2024,9,10/set_alpha.py b/test/2024,9,10/set_alpha.py index e27a7ba..02b62b0 100644 --- a/test/2024,9,10/set_alpha.py +++ b/test/2024,9,10/set_alpha.py @@ -7,7 +7,7 @@ img_rgba=cv.cvtColor(img,cv.COLOR_BGR2BGRA) # split alpha channel blue,green,red,alpha = cv.split(img_rgba) #set alpha channel -alpha[int(alpha.shape[0]/2):alpha.shape[0],int(alpha.shape[1]/2):alpha.shape[1]]=0 +alpha[int(alpha.shape[0]/2):alpha.shape[0],int(alpha.shape[1]/2):alpha.shape[1]]=128 # remix alpha to img_rgba img_rgba=cv.merge((blue,green,red,alpha)) # show