mirror of
https://github.com/283375/arcaea-offline-ocr.git
synced 2025-07-01 20:36:27 +00:00
fix: DeviceV2AutoRois
should always crop black edges
This commit is contained in:
@ -274,7 +274,8 @@ class DeviceV2AutoRois(DeviceV2Rois):
|
|||||||
def __init__(self, img: Mat):
|
def __init__(self, img: Mat):
|
||||||
factor = self.get_factor(img.shape[1], img.shape[0])
|
factor = self.get_factor(img.shape[1], img.shape[0])
|
||||||
self.sizes = Sizes(factor)
|
self.sizes = Sizes(factor)
|
||||||
self.__img = img
|
self.__img = None
|
||||||
|
self.img = img
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def img(self):
|
def img(self):
|
||||||
|
Reference in New Issue
Block a user