feat: P2V 파이프라인 연동 및 좋아요·댓글·공유 지원
- 무빙 포스터(p2v_video)·롱컷(p2v_playreel) 파이프라인과 워커, 갤러리·내 콘텐츠 노출 - 좋아요·댓글: comment/video_reaction에 p2v_playreel_id 추가, 종류별 CHECK 확장 - P2V 소프트 삭제(is_deleted), queued/running 삭제 차단 - 공개 상세·공유 OG 페이지 추가 - 삭제된 부모 댓글이 목록에서 사라지던 has_live_reply 서브쿼리 버그 수정 - 마이그레이션: migration_2026-10-15_p2v_reactions.sql
This commit is contained in:
1 parent
bb1ea12958
commit
b16d4a8f1b
126 files changed
+6921
-62
No files matched your search
@@ -0,0 +1,38 @@
|
||||
from dataclasses import dataclass
|
||||
|
||||
from PIL import Image
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class Box(BaseModel):
|
||||
"""포스터 기준 정규화 박스(0~1)."""
|
||||
x0: float
|
||||
y0: float
|
||||
x1: float
|
||||
y1: float
|
||||
cx: float
|
||||
cy: float
|
||||
text: str | None = None
|
||||
|
||||
|
||||
class Focal(BaseModel):
|
||||
name: str
|
||||
cx: float
|
||||
cy: float
|
||||
|
||||
|
||||
class Regions(BaseModel):
|
||||
festival_name: str | None
|
||||
title_style: str | None
|
||||
recommended_mode: str
|
||||
poster_size: tuple[int, int]
|
||||
regions: dict[str, Box]
|
||||
focal_points: list[Focal]
|
||||
vlm_raw: dict
|
||||
|
||||
|
||||
@dataclass
|
||||
class DetectResult:
|
||||
data: Regions
|
||||
grid: Image.Image
|
||||
check: Image.Image
|
||||
Reference in new issue
Block a user