- 무빙 포스터(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
32 lines
713 B
Python
32 lines
713 B
Python
from dataclasses import dataclass
|
|
|
|
from PIL import Image
|
|
from pydantic import BaseModel
|
|
|
|
from app.p2v.schemas.motion import MotionPlan
|
|
|
|
|
|
class MotionChoice(BaseModel):
|
|
"""검수 화면의 토글 하나. on이 꺼진 것은 VLM이 확신하지 못해 탈락시킨 요소다."""
|
|
key: str
|
|
label: str
|
|
what: str
|
|
on: bool
|
|
|
|
|
|
class FixedLayer(BaseModel):
|
|
key: str
|
|
label: str
|
|
on: bool = True
|
|
|
|
|
|
@dataclass
|
|
class PosterAnalysis:
|
|
grid: Image.Image # 사람이 요소를 지목하는 격자
|
|
movable: list[MotionChoice]
|
|
fixed: list[FixedLayer]
|
|
model: str
|
|
ip_risk: bool
|
|
has_qr: bool
|
|
plan: MotionPlan # 사람이 고르기 전의 VLM 제안 원본
|