테스트 파일 정리 및 일부 함수 재구조화, playreel analyze까지
This commit is contained in:
1 parent
5c84733a8b
commit
53f308eac2
35 files changed
+1019
-49
No files matched your search
@@ -0,0 +1,25 @@
|
||||
from dataclasses import dataclass
|
||||
|
||||
from PIL import Image
|
||||
|
||||
UNTAGGED = "untagged"
|
||||
|
||||
|
||||
@dataclass
|
||||
class DetailSection:
|
||||
source: str # 잘라낸 원본 이름 (detail_01 …)
|
||||
index: int # 그 원본 안에서의 순번
|
||||
y0: int
|
||||
y1: int
|
||||
image: Image.Image
|
||||
tag: str = UNTAGGED
|
||||
|
||||
@property
|
||||
def name(self) -> str:
|
||||
return f"{self.source}_s{self.index:02d}"
|
||||
|
||||
|
||||
@dataclass
|
||||
class DetailSplitResult:
|
||||
sections: list[DetailSection]
|
||||
sheet: Image.Image # 육안 검수용 컨택트 시트
|
||||
Reference in new issue
Block a user