@사랑에빠진무도키즈
@사랑에빠진무도키즈
# 8-FRAME ANIMATION — GENERATION, EXTRACTION AND ERROR RECOVERY Generate exactly 8 continuous animation frames based on the uploaded character image. The character must make a soft, wistful expression and shed exactly one tear from one eye. PRIORITY ORDER: 1. All 8 animation slots must contain valid character content. 2. The character must remain visible and consistently aligned. 4. Chroma-key removal must preserve all character pixels. 5. Empty-slot errors must be diagnosed and corrected before export. ## 1. CHARACTER MOTION — EXACTLY 8 FRAMES Frame 1: The character faces the camera with a soft, wistful expression. Head and upper body remain clearly visible. Frame 2: The character maintains a gentle, longing gaze with subtle sadness in the eyes. Frame 3: The eyes become slightly watery while the character remains in the same position. Frame 4: A single small tear forms at the lower eyelid of one eye. Frame 5: The tear becomes clearly visible and begins rolling down one cheek. Frame 6: The same tear continues descending slowly while the character maintains the wistful expression. Frame 7: The tear moves farther down the cheek with minimal natural facial movement. Frame 8: The character holds the emotional gaze while the single tear remains visible on the lower cheek. MOTION RESTRICTIONS: - Exactly 8 distinct, sequential frames. - Every frame contains the character. - Maintain consistent framing, scale, identity, hairstyle, and clothing. - No disappearing, fading, teleporting, or excessive movement. - No additional tears. - No camera zoom, rotation, or cropping. - No unrelated body movements. ## 3. ZERO EMPTY FRAME GENERATION Generate a complete, populated animation strip containing exactly 8 character poses. - All 8 grid cells must contain visible character content. - No blank cells. - No background-only cells. - No transparent characters. - No partially missing characters. - No merged or overlapping grid cells. - No character content crossing cell boundaries. - Keep the character centered in each cell. - Maintain consistent subject scale. - Keep the face, head, and upper body clearly visible. - Use the exact sprite-grid layout expected by the extraction pipeline. Do not introduce extra text, logos, or decorative elements into the character frames. ## 4. CHROMA-KEY PROTECTION Use a solid chroma background compatible with the existing extraction pipeline. Before removing the chroma background: - Verify all 8 raw grid cells contain the expected character. - Verify the chroma color and threshold settings. - Compare character colors against the chroma background. - Detect potential overlap between the background color and character pixels. During removal: - Preserve hair, face, skin, clothing, hands, and all visible character details. - Do not erase character pixels due to overly aggressive color thresholds. - Preserve character contours and antialiased edges where appropriate. - Prevent accidental removal of character regions with colors similar to the background. - Apply subject-aware segmentation if chroma-key separation is unreliable. After removal: - Calculate foreground occupancy for every cell. - Detect each character's bounding box. - Verify that foreground content remains present. - Reject any cell that loses its character during processing. ## 5. STEP 4 EMPTY-SLOT ERROR DIAGNOSIS Known failure: Step 4: Empty Slot / Chroma Residue Validation idle: empty slots [0, 1, 3, 4, 6, 7] Investigate each failed slot independently. ### A. RAW IMAGE CHECK Inspect the corresponding cell in the raw sprite sheet. If character content is missing before chroma-key removal: ROOT CAUSE: GENERATION_EMPTY_SLOT ACTION: Regenerate the missing frame or the complete 8-frame sprite sheet. ### B. CHROMA-KEY CHECK Compare the raw character content with the post-chroma result. If the character is present before chroma removal but missing afterward: ROOT CAUSE: CHROMA_OVER_REMOVAL ACTION: Adjust the chroma-key tolerance, verify the background color, and reprocess the original raw frame. Use foreground segmentation when necessary. ### C. GRID SPLITTING CHECK Verify: - Sprite sheet width and height. - Expected row and column count. - Cell dimensions. - Grid padding and margins. - Frame ordering. - Cell extraction coordinates. If content exists in the raw strip but is missing from the extracted cell: ROOT CAUSE: GRID_SPLIT_ERROR ACTION: Correct the extraction coordinates and repeat grid splitting. ### D. ALIGNMENT CHECK Verify character coordinates before and after alignment. If the character disappears after scaling or positioning: ROOT CAUSE: ALIGNMENT_OUT_OF_BOUNDS ACTION: Recalculate the character bounding box and alignment transformation. ### E. VALIDATION CHECK If foreground content exists but the empty-slot detector still reports an empty frame: ROOT CAUSE: FALSE_EMPTY_DETECTION ACTION: Inspect the alpha mask, connected components, and foreground occupancy threshold. Correct the validation criteria only when image evidence confirms a false positive. ## 6. AUTOMATIC ERROR RECOVERY When any empty slot is detected: 1. Stop final export. 2. Identify all failed slot indices. 3. Inspect the raw sprite sheet. 4. Compare raw and chroma-processed frames. 5. Determine the earliest pipeline step where valid character content was lost. 6. Classify the root cause. 7. Apply the appropriate correction. 8. Reprocess or regenerate the affected frames. 9. Run Step 4 validation again. 10. Continue only when all 8 slots pass. Never fill missing slots with blank placeholders. Never hide an empty-slot error. Never mark an incomplete animation as successful. If the system cannot repair the failure, return diagnostic information identifying the failed slots, root cause, and attempted corrections. ## 7. DEBUG OUTPUT For every failed slot, record: - Slot index. - Raw cell image. - Post-chroma cell image. - Foreground pixel count. - Foreground occupancy ratio. - Character bounding box. - Alpha-mask statistics. - Chroma-key threshold. - Grid extraction coordinates. - Alignment transformation. - Error classification. - Recovery action. - Validation result. Save intermediate debug images so the failed extraction stage can be inspected. ## 8. FINAL VALIDATION Before finalizing frames/frames-manifest.json: - Exactly 8 frames exist. - All 8 frames contain visible character content. - Empty slot count = 0. - No characters disappear after chroma removal. - No incorrect grid cropping. - No character misalignment. - No unacceptable chroma residue. - All frames preserve the original character identity. - The single-tear motion is continuous. Export the completed animation only if every validation passes. If validation fails, return a structured error report instead of exporting an invalid animation. Keep the lower part of the frame clear and do not draw any text, letters, captions or speech bubbles.
204人がこのテンプレートを使いました