mirror of
https://github.com/283375/arcaea-offline-ocr.git
synced 2025-04-18 13:00:18 +00:00
refactor: basic structure
This commit is contained in:
parent
07df8e3b56
commit
151b1fd6d8
0
src/arcaea_offline_ocr/extractor/__init__.py
Normal file
0
src/arcaea_offline_ocr/extractor/__init__.py
Normal file
5
src/arcaea_offline_ocr/extractor/common.py
Normal file
5
src/arcaea_offline_ocr/extractor/common.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
from .sizes.common import Sizes
|
||||||
|
|
||||||
|
|
||||||
|
class Extractor:
|
||||||
|
sizes: Sizes
|
0
src/arcaea_offline_ocr/extractor/sizes/__init__.py
Normal file
0
src/arcaea_offline_ocr/extractor/sizes/__init__.py
Normal file
15
src/arcaea_offline_ocr/extractor/sizes/common.py
Normal file
15
src/arcaea_offline_ocr/extractor/sizes/common.py
Normal 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
|
0
src/arcaea_offline_ocr/masker/__init__.py
Normal file
0
src/arcaea_offline_ocr/masker/__init__.py
Normal file
55
src/arcaea_offline_ocr/masker/common.py
Normal file
55
src/arcaea_offline_ocr/masker/common.py
Normal 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()
|
Loading…
x
Reference in New Issue
Block a user