Export MCAP camera frames to MP4 with hand tracking skeleton overlays
Project description
mcap2handvideo
将 MCAP 文件中的相机视频帧导出为 MP4,并在图像上叠加 hand tracking 骨骼投影。
安装
pip install mcap2handvideo
环境要求:Python 3.10 ~ 3.12,macOS / Linux / Windows。
快速开始
单个 MCAP 文件:
mcap2handvideo --input /path/to/bag.mcap --output ./output
批量处理(目录下多个 .mcap):
mcap2handvideo --input /path/to/mcap_dir --output ./output
常用参数
| 参数 | 默认值 | 说明 |
|---|---|---|
--input |
必填 | .mcap 文件路径,或包含多个 .mcap 的目录 |
--output |
./output |
MP4 输出目录 |
--cameras |
2 |
相机编号,逗号分隔 |
--hand-topics |
/robot0/handtracking/left,/robot0/handtracking/right |
HandPointFrameInfo 叠加话题 |
--fps |
自动 | 输出视频帧率 |
-v, --verbose |
关闭 | 输出详细日志 |
输出说明
- 默认导出 camera2 的 MP4:
camera2_hand_overlay.mp4 - 批量模式下每个 MCAP 在输出目录下按文件名创建子目录
- 若缺少 camera 帧、标定、robot0 位姿或配置的 hand tracking 话题,程序会报错并立即停止
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mcap2handvideo-0.1.0.tar.gz
(26.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcap2handvideo-0.1.0.tar.gz.
File metadata
- Download URL: mcap2handvideo-0.1.0.tar.gz
- Upload date:
- Size: 26.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ffcb0cc8351873c384d4ed78c085ecacdded020bfdfb7e1e8f1aebdef6a55e5
|
|
| MD5 |
35011e4352472d4a037b192c9eafcc43
|
|
| BLAKE2b-256 |
c7b3f6ebfecd7c205ca3915d6b1f65d1552bc03b8920e020a331074eeaba1997
|
File details
Details for the file mcap2handvideo-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcap2handvideo-0.1.0-py3-none-any.whl
- Upload date:
- Size: 30.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b01e399e8a1d1f64fd81c50514f3586ea93f25f46db9b4d53ea94f5801d8d80
|
|
| MD5 |
f89231ab9a2ac094c2e727ba2d05e959
|
|
| BLAKE2b-256 |
42b93769453b525823c56243cbe767625ae726d27b4ba619574bc19043fe0265
|