fix: DeviceV2AutoRois should always crop black edges

This commit is contained in:
283375 2023-09-05 01:29:44 +08:00
parent 90d268d8a6
commit 15ead84772
Signed by: 283375
SSH Key Fingerprint: SHA256:UcX0qg6ZOSDOeieKPGokA5h7soykG61nz2uxuQgVLSk

View File

@ -274,7 +274,8 @@ class DeviceV2AutoRois(DeviceV2Rois):
def __init__(self, img: Mat):
factor = self.get_factor(img.shape[1], img.shape[0])
self.sizes = Sizes(factor)
self.__img = img
self.__img = None
self.img = img
@property
def img(self):