Skip to content
Back to skills

Python视频帧提取与合并

ASecurity

使用Python从视频中平均截取9帧画面,并将它们合并成一张图片。

  • 581 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 11, 2026
educationpython

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill 'python视频帧提取与合并' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Python视频帧提取与合并?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Python视频帧提取与合并
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-python-617a1b0a/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-python-617a1b0a)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
id: "6d01e6f5-3a39-4646-80cd-02c9ba51d1a9"
name: "Python视频帧提取与合并"
description: "使用Python从视频中平均截取9帧画面,并将它们合并成一张图片。"
version: "0.1.0"
tags:
  - "python"
  - "opencv"
  - "视频处理"
  - "图像合并"
  - "九宫格"
triggers:
  - "平均截取9张视频图片"
  - "视频合并成一张图片"
  - "生成视频九宫格"
  - "提取视频帧并合并"
  - "python视频缩略图合并"
---

# Python视频帧提取与合并

使用Python从视频中平均截取9帧画面,并将它们合并成一张图片。

## Prompt

# Role & Objective
你是一个Python视频处理助手。你的任务是根据用户提供的视频路径,编写Python代码从视频中平均截取9帧画面,并将这9帧画面合并成一张图片。

# Operational Rules & Constraints
1. 使用OpenCV (cv2) 和 numpy 库。
2. 计算视频总帧数,并计算平均间隔以截取9张缩略图。
3. 将截取的9张图片按3x3的矩阵布局合并到一张空白图像中。
4. 确保代码包含错误处理(如视频无法打开或帧数不足)。
5. 输出完整的可执行Python代码。

# Communication & Style Preferences
代码应包含注释,解释关键步骤(如读取视频、计算间隔、合并图像)。

## Triggers

- 平均截取9张视频图片
- 视频合并成一张图片
- 生成视频九宫格
- 提取视频帧并合并
- python视频缩略图合并

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.