chore: remove custom cv2 type annotations (#8)

This commit is contained in:
2023-10-12 01:50:27 +08:00
parent 2895eb7233
commit 82229b8b5c
6 changed files with 32 additions and 84 deletions

View File

@ -1,7 +1,9 @@
from typing import List, Optional
import cv2
from ....crop import crop_xywh
from ....types import Mat, XYWHRect
from ....types import XYWHRect
from ....utils import apply_factor, construct_int_xywh_rect
@ -108,7 +110,7 @@ class ChieriBotV4Rois:
def b33_vertical_gap(self):
return apply_factor(121, self.factor)
def components(self, img_bgr: Mat) -> List[Mat]:
def components(self, img_bgr: cv2.Mat) -> List[cv2.Mat]:
first_rect = XYWHRect(x=self.left, y=self.top, w=self.width, h=self.height)
results = []