feat: DeviceV2 ocr API

This commit is contained in:
2023-08-13 18:39:01 +08:00
parent 7d885cfe46
commit 42979c67cb
3 changed files with 80 additions and 54 deletions

View File

@ -98,10 +98,10 @@ class Sizes:
class DeviceV2Rois:
def __init__(self, device: DeviceV2):
def __init__(self, device: DeviceV2, img: Mat):
self.device = device
self.sizes = Sizes(self.device.factor)
self.__img = None
self.__img = img
@staticmethod
def construct_int_xywh_rect(x, y, w, h) -> XYWHRect: