头像背景改为黑色
Some checks failed
ci/woodpecker/push/check_format Pipeline failed

This commit is contained in:
zhbaor 2024-10-06 18:57:27 +08:00
parent b68ada9252
commit f19f3cd563
2 changed files with 5 additions and 4 deletions

View file

@ -493,7 +493,8 @@ class Arknights数据处理器:
# k: Lancet-2
if i.startswith(j):
img = loadimg(os.path.join(data_path, i), True, bg)
img = cropimg(img, crop)
if crop is not None:
img = cropimg(img, crop)
kp, des = ORB.detectAndCompute(img, None)
if k not in data:
data[k] = []
@ -502,7 +503,7 @@ class Arknights数据处理器:
with lzma.open(f"./mower/models/{name}.pkl", "wb") as f:
pickle.dump(data, f)
extract("avatar", "WHITE", ((47, 46), (147, 146)))
extract("avatar", "BLACK", None)
extract("portrait", (140, 140, 140, 255), ((0, 85), (180, 195)))
def 获得干员基建描述(self):

BIN
mower/models/avatar.pkl (Stored with Git LFS)

Binary file not shown.