This commit is contained in:
parent
b68ada9252
commit
f19f3cd563
2 changed files with 5 additions and 4 deletions
|
@ -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)
BIN
mower/models/avatar.pkl
(Stored with Git LFS)
Binary file not shown.
Loading…
Reference in a new issue