3 个版本 (破坏性)
0.3.0 | 2024 年 4 月 6 日 |
---|---|
0.2.0 | 2023 年 9 月 26 日 |
0.1.0 | 2023 年 9 月 21 日 |
#700 in 编码
每月下载量 114 次
用于 kitti-dataset-nalgebra
380KB
2K SLoC
Rust 编写的 KITTI 数据集序列化和反序列化
此项目提供必要的数据类型及其序列化和反序列化实现。
数据集 API
数据集加载器允许您遍历各种数据样本。目前,支持 ObjectDataset
和 TrackingDataset
。
以下以 Object Detection Evaluation 2012 数据集为例展示数据集布局。您可以从 官方网站 下载相应的 zip 文件并将它们一起提取以获取布局。
object/training
├── calib
├── image_2
├── image_3
├── label_2
└── velodyne
代码示例展示了数据集 API 的使用。
use kitti_dataset::dataset::{object::SampleData, ObjectDataset};
let dataset = ObjectDataset::open("/path/to/kitti_dir/object/training")?;
// To get a specific frame
let frame = dataset.frame(0).unwrap();
// Iterate through all frames
for frame in dataset.frame_iter() {
// Obtain a specific sample
let sample = frame.key("image_2").unwrap();
let SampleData::Image(image) = sample.data()? else {
unreachable!();
};
// Iterate through all samples
for sample in frame.sample_iter() {
let data = sample.data()?;
}
}
支持类型
-
Annotation
- 2017 年 3D 对象检测评估标签car 0.00 0 -1.58 587.01 173.33 614.12 200.12 1.65 1.67 3.64 -0.65 1.71 46.70 -1.59 cyclist 0.00 0 -2.46 665.45 160.00 717.93 217.99 1.72 0.47 1.65 2.45 1.35 22.10 -2.35 pedestrian 0.00 2 0.21 423.17 173.67 433.17 224.03 1.60 0.38 0.30 -5.87 1.63 23.11 -0.03
-
CameraCalibration
- 2017 年 3D 对象检测评估相机校准矩阵P0: 7.070493000000e+02 0.000000000000e+00 6.040814000000e+02 0.000000000000e+00 0.000000000000e+00 7.070493000000e+02 1.805066000000e+02 0.000000000000e+00 0.000000000000e+00 0.000000000000e+00 1.000000000000e+00 0.000000000000e+00 P1: 7.070493000000e+02 0.000000000000e+00 6.040814000000e+02 -3.797842000000e+02 0.000000000000e+00 7.070493000000e+02 1.805066000000e+02 0.000000000000e+00 0.000000000000e+00 0.000000000000e+00 1.000000000000e+00 0.000000000000e+00 P2: 7.070493000000e+02 0.000000000000e+00 6.040814000000e+02 4.575831000000e+01 0.000000000000e+00 7.070493000000e+02 1.805066000000e+02 -3.454157000000e-01 0.000000000000e+00 0.000000000000e+00 1.000000000000e+00 4.981016000000e-03 P3: 7.070493000000e+02 0.000000000000e+00 6.040814000000e+02 -3.341081000000e+02 0.000000000000e+00 7.070493000000e+02 1.805066000000e+02 2.330660000000e+00 0.000000000000e+00 0.000000000000e+00 1.000000000000e+00 3.201153000000e-03 R0_rect: 9.999128000000e-01 1.009263000000e-02 -8.511932000000e-03 -1.012729000000e-02 9.999406000000e-01 -4.037671000000e-03 8.470675000000e-03 4.123522000000e-03 9.999556000000e-01 Tr_velo_to_cam: 6.927964000000e-03 -9.999722000000e-01 -2.757829000000e-03 -2.457729000000e-02 -1.162982000000e-03 2.749836000000e-03 -9.999955000000e-01 -6.127237000000e-02 9.999753000000e-01 6.931141000000e-03 -1.143899000000e-03 -3.321029000000e-01 Tr_imu_to_velo: 9.999976000000e-01 7.553071000000e-04 -2.035826000000e-03 -8.086759000000e-01 -7.854027000000e-04 9.998898000000e-01 -1.482298000000e-02 3.195559000000e-01 2.024406000000e-03 1.482454000000e-02 9.998881000000e-01 -7.997231000000e-01
-
OdometryCalibration
- 2012 年视觉里程计/SLAM 评估校准文件P0: 7.188560000000e+02 0.000000000000e+00 6.071928000000e+02 0.000000000000e+00 0.000000000000e+00 7.188560000000e+02 1.852157000000e+02 0.000000000000e+00 0.000000000000e+00 0.000000000000e+00 1.000000000000e+00 0.000000000000e+00 P1: 7.188560000000e+02 0.000000000000e+00 6.071928000000e+02 -3.861448000000e+02 0.000000000000e+00 7.188560000000e+02 1.852157000000e+02 0.000000000000e+00 0.000000000000e+00 0.000000000000e+00 1.000000000000e+00 0.000000000000e+00 P2: 7.188560000000e+02 0.000000000000e+00 6.071928000000e+02 4.538225000000e+01 0.000000000000e+00 7.188560000000e+02 1.852157000000e+02 -1.130887000000e-01 0.000000000000e+00 0.000000000000e+00 1.000000000000e+00 3.779761000000e-03 P3: 7.188560000000e+02 0.000000000000e+00 6.071928000000e+02 -3.372877000000e+02 0.000000000000e+00 7.188560000000e+02 1.852157000000e+02 2.369057000000e+00 0.000000000000e+00 0.000000000000e+00 1.000000000000e+00 4.915215000000e-03 Tr: 4.276802385584e-04 -9.999672484946e-01 -8.084491683471e-03 -1.198459927713e-02 -7.210626507497e-03 8.081198471645e-03 -9.999413164504e-01 -5.403984729748e-02 9.999738645903e-01 4.859485810390e-04 -7.206933692422e-03 -2.921968648686e-01
-
Point
- 2017 年 3D 对象检测评估 Velodyne 点云
许可证
此软件根据 MIT 许可证分发。阅读 LICENSE.txt 文件以查看完整的许可证。
依赖项
~6MB
~110K SLoC