Export MCAP camera frames to PNG with robot coordinate axis overlays
Project description
mcap2shadowimg
将 MCAP 文件中的相机视频帧导出为 PNG,并可在图像上叠加机器人坐标轴。
安装
pip install mcap2shadowimg
环境要求:Python 3.10 ~ 3.12,macOS / Linux / Windows。
快速开始
单个 MCAP 文件:
mcap2shadowimg --input /path/to/bag.mcap --output ./output
批量处理(目录下多个 .mcap):
mcap2shadowimg --input /path/to/mcap_dir --output ./output
每个 MCAP 会在输出目录下按文件名创建子目录,例如:
output/
my_bag/
camera2/
1778813410223851000.png
...
常用参数
| 参数 | 默认值 | 说明 |
|---|---|---|
--input |
必填 | .mcap 文件路径,或包含多个 .mcap 的目录 |
--output |
./output |
PNG 输出目录 |
-v, --verbose |
关闭 | 输出详细日志 |
开启详细日志
mcap2shadowimg --input bag.mcap --output ./output -v
输出说明
-
默认只导出 camera2
-
PNG 文件名为 MCAP 的
log_time(纳秒时间戳) -
若某帧缺少标定或机器人位姿,仍会保存原图,只是不绘制坐标轴
示例:
[output.zip]
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
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 mcap2shadowimg-0.2.1.tar.gz.
File metadata
- Download URL: mcap2shadowimg-0.2.1.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65f47967779172a1ccfcb1b8c8cde58235c02ba7006c482343fee26792245978
|
|
| MD5 |
71a8a1d45ff178a830a7191fe8a7a320
|
|
| BLAKE2b-256 |
b6e3f5ab573f2a5e275eb67e77c76c51c367796d85cd6e4786b66ad04041d729
|
File details
Details for the file mcap2shadowimg-0.2.1-py3-none-any.whl.
File metadata
- Download URL: mcap2shadowimg-0.2.1-py3-none-any.whl
- Upload date:
- Size: 19.8 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 |
34ace576b9355b9a6f1a7b6c71c7df7882e7b5c07d95e5bf2c2dc3ee6a799a3d
|
|
| MD5 |
ff9102db71c8d996ca8daffa66c38b9e
|
|
| BLAKE2b-256 |
7ef1ff112d06b0ec6295861fa01681872d9ca3bdd122c9f0d40a5e1269ebc41e
|