Summary
从图片生成白板手绘动画视频。将任意彩色图片转换为包含线稿绘制和上色两个阶段的动画,带手部覆盖效果,输出 H.264 MP4 视频。支持单张和批量两种模式。当用户说"把图片做成白板动画"、"白板动画"、"批量白板动画"时触发。
yangagent/whiteboard-animation-skill
从图片生成白板手绘动画视频。将任意彩色图片转换为?
npx skills add yangagent/whiteboard-animation-skill --skill whiteboard-animation
从图片生成白板手绘动画视频。将任意彩色图片转换为包含线稿绘制和上色两个阶段的动画,带手部覆盖效果,输出 H.264 MP4 视频。支持单张和批量两种模式。当用户说"把图片做成白板动画"、"白板动画"、"批量白板动画"时触发。
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Helps users discover and install agent skills when they ask questions like "how do I do X", "fi…
3.3M installsBrowser automation CLI for AI agents. Use when the user needs to interact with websites, includ…
810.4K installsReview UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "chec…
617.3K installsBuild, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and …
576.5K installsPrepare azd-based Azure projects for deployment: generates azure.yaml, infrastructure (Bicep/Te…
568.3K installsOther skills from yangagent/whiteboard-animation-skill.
npx skills add yangagent/whiteboard-animation-skill
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
main
Files included with this skill beyond the listing page.
SKILL.md
4,332 B
SUMMARY.md
4,261 B
从输入图片生成白板手绘动画视频,动画分为两个阶段:
支持两种模式:单张模式和批量模式。
先用 --check 检测环境是否就绪:
python <skill目录>/scripts/setup_env.py --check
PYTHON_PATH=<路径>,捕获该路径用于后续步骤,直接跳到第二步python <skill目录>/scripts/setup_env.py
安装脚本会自动创建 .venv 虚拟环境并安装缺失依赖(opencv-python、numpy、av),最后一行同样输出 PYTHON_PATH=<路径>。
从用户请求中获取图片路径,确认文件存在。支持格式:PNG、JPG、JPEG、BMP、TIFF。
白色或浅色背景的图片效果最佳。
收集可选参数,所有参数都有合理的默认值:
| 参数 | 标志 | 默认值 | 说明 |
|---|---|---|---|
| 图片路径 | 位置参数(必填) | -- | 输入的彩色图片路径 |
| 输出目录 | --output-dir |
./output |
视频输出目录 |
| 时长 | --duration |
10000 |
视频总时长(毫秒) |
| 无手部 | --no-hand |
默认显示手 | 禁用手部覆盖效果 |
使用第一步获取的 PYTHON_PATH 运行生成脚本:
<PYTHON_PATH> <skill目录>/scripts/generate_whiteboard.py <图片路径> [--output-dir <目录>] [--duration <毫秒>] [--no-hand]
示例:
<PYTHON_PATH> <skill目录>/scripts/generate_whiteboard.py /path/to/photo.png --output-dir ./output --duration 20000
脚本会将最终视频路径打印到 stdout,将该路径告知用户。输出文件命名格式:vidYYYYMMDDHHMMSS_h264.mp4。
当用户提供多张图片(图片路径数组)和对应的时长数组时,使用批量模式。
与单张模式相同。先运行 setupenv.py 获取 PYTHONPATH。
从用户请求中获取:
必须满足:
使用 PYTHON_PATH 运行批量脚本,通过 --images 和 --durations 传入一一对应的图片路径和时长:
<PYTHON_PATH> <skill目录>/scripts/batch_generate.py \
--images /path/to/img1.png /path/to/img2.png /path/to/img3.png \
--durations 10000 15000 8000 \
[--output-dir ./output] [--no-hand]
脚本内部会自动校验:
--images 和 --durations 数量必须一致校验通过后串行逐个调用单张生成脚本,每完成一个打印进度。
脚本输出所有任务的汇总信息(成功/失败数量)。告知用户:
ModuleNotFoundError:重新运行 setup_env.py 确保依赖完整安装。python3 命令可用。