裁切图像

In [2]:

from matplotlib import pyplot as plt
from arknights_mower.utils.image import cropimg, loadimg

In [3]:

sc = loadimg("/home/zhao/Documents/mower-profile/screenshot/201/20240709094558.png")
plt.imshow(sc)
plt.show()
2024-07-09 15:29:53,129 - DEBUG - /home/zhao/Documents/arknights-mower/arknights_mower/utils/image.py:44 - loadimg - /home/zhao/Documents/mower-profile/screenshot/201/20240709094558.png

No description has been provided for this image

In [4]:

img = cropimg(sc, ((40, 60), (300, 200)))
plt.imshow(img)
plt.show()

No description has been provided for this image