refactor: basic structure

This commit is contained in:
283375 2023-09-29 02:26:17 +08:00
parent 07df8e3b56
commit 151b1fd6d8
Signed by: 283375
SSH Key Fingerprint: SHA256:UcX0qg6ZOSDOeieKPGokA5h7soykG61nz2uxuQgVLSk
6 changed files with 75 additions and 0 deletions

View File

@ -0,0 +1,5 @@
from .sizes.common import Sizes
class Extractor:
sizes: Sizes

View File

@ -0,0 +1,15 @@
from typing import Tuple
Rect = Tuple[int, int, int, int]
class Sizes:
pure: Rect
far: Rect
lost: Rect
score: Rect
rating_class: Rect
max_recall: Rect
jacket: Rect
clear_status: Rect
partner_icon: Rect

View File

@ -0,0 +1,55 @@
import cv2
class Masker:
@staticmethod
def pure(roi_bgr: cv2.Mat) -> cv2.Mat:
raise NotImplementedError()
@staticmethod
def far(roi_bgr: cv2.Mat) -> cv2.Mat:
raise NotImplementedError()
@staticmethod
def lost(roi_bgr: cv2.Mat) -> cv2.Mat:
raise NotImplementedError()
@staticmethod
def score(roi_bgr: cv2.Mat) -> cv2.Mat:
raise NotImplementedError()
@staticmethod
def rating_class_pst(roi_bgr: cv2.Mat) -> cv2.Mat:
raise NotImplementedError()
@staticmethod
def rating_class_prs(roi_bgr: cv2.Mat) -> cv2.Mat:
raise NotImplementedError()
@staticmethod
def rating_class_ftr(roi_bgr: cv2.Mat) -> cv2.Mat:
raise NotImplementedError()
@staticmethod
def rating_class_byd(roi_bgr: cv2.Mat) -> cv2.Mat:
raise NotImplementedError()
@staticmethod
def max_recall(roi_bgr: cv2.Mat) -> cv2.Mat:
raise NotImplementedError()
@staticmethod
def clear_status_track_lost(roi_bgr: cv2.Mat) -> cv2.Mat:
raise NotImplementedError()
@staticmethod
def clear_status_track_complete(roi_bgr: cv2.Mat) -> cv2.Mat:
raise NotImplementedError()
@staticmethod
def clear_status_full_recall(roi_bgr: cv2.Mat) -> cv2.Mat:
raise NotImplementedError()
@staticmethod
def clear_status_pure_memory(roi_bgr: cv2.Mat) -> cv2.Mat:
raise NotImplementedError()