mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 10:58:21 +08:00
Refactor: Use numpy image cache instead of pillow image
This commit is contained in:
@@ -109,7 +109,7 @@ class Homography:
|
||||
perspective_.load(image)
|
||||
self.load_homography(perspective=perspective_)
|
||||
elif file is not None:
|
||||
image_ = np.array(Image.open(file).convert('RGB'))
|
||||
image_ = load_image(file)
|
||||
perspective_ = Perspective(self.config)
|
||||
perspective_.load(image_)
|
||||
self.load_homography(perspective=perspective_)
|
||||
|
||||
Reference in New Issue
Block a user