added new face image, and changed the script to use it
This commit is contained in:
parent
7852c08fbe
commit
81339b159f
2 changed files with 1 additions and 1 deletions
BIN
prootface.bmp
Normal file
BIN
prootface.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
|
@ -32,7 +32,7 @@ def pure_pil_alpha_to_color_v2(image, color=(0, 0, 0)):
|
|||
background.paste(image, mask=image.split()[3]) # 3 is the alpha channel
|
||||
return background
|
||||
|
||||
image = Image.open("../testImg.bmp")
|
||||
image = Image.open("../prootface.bmp")
|
||||
image.thumbnail((128,62), Image.ANTIALIAS)
|
||||
RGBImage = pure_pil_alpha_to_color_v2(image)
|
||||
|
||||
|
|
Loading…
Reference in a new issue