obi19999/smart-video-reframe
๐ฅ Auto-reframe videos for mobile using AI to track faces and analyze scenes, ensuring optimal framing for platforms like TikTok and Reels.
What's novel
๐ฅ Auto-reframe videos for mobile using AI to track faces and analyze scenes, ensuring optimal framing for platforms like TikTok and Reels.
Code Analysis
9 files read ยท 4 roundsA CLI tool that uses YOLO face detection to crop landscape videos into vertical 9:16 format by centering detected faces, with temporal smoothing of bounding boxes and scene-aware segmentation.
Strengths
The temporal smoothing pipeline (EMA + face count homogenization + group size stabilization) shows genuine thought about making face tracking stable across frames. The two-mode design (AI crop vs blur-fit) provides a reasonable fallback for videos without detectable faces.
Weaknesses
The README describes a GUI desktop application with installers that doesn't exist in the code โ it's purely a CLI tool. Critical bugs include loading all frames into RAM (OOM on any real video), an undefined variable crash path in the output loop, and zero tests. Debug prints are left in production code and the YOLO model file is missing from the repo.
Score Breakdown
Signal breakdown
Innovation
Craft
Traction
Scope
Evidence
Commits
7
Contributors
2
Files
18
Active weeks
2
Repository
Language
Python
Stars
2
Forks
0
License
MIT