text stringclasses 4
values |
|---|
numpy>=1.20.0 |
pillow>=9.0.0 |
open3d>=0.16.0 |
Xtreme1 Point Cloud Dataset Processor
This repository contains a modular pipeline for processing raw point cloud datasets into xtreme1-ready format.
Overview
The pipeline transforms raw datasets containing RGB images, depth maps, and metadata into a structured format suitable for xtreme1 point cloud labeling tool.
π See QUICKSTART.md for step-by-step guide π See CLI_REFERENCE.md for complete command reference
Raw Dataset Structure
raw/<dataset_name>/
βββ depth_results/ # REQUIRED: Metadata JSON files with intrinsics and depth data
β βββ 000000000139_metadata.json
β βββ 000000000139_depth.npy
β βββ ...
βββ camera_image_0/ # REQUIRED: RGB camera images for coloring point clouds
β βββ 000000000139.jpg
β βββ ...
βββ lidar_point_cloud_0/ # OPTIONAL: Original point clouds (new ones generated if absent)
βββ 000000000139.pcd
βββ ...
Processed Dataset Structure
processed/<dataset_name>/
βββ camera_config/ # Camera configuration files for xtreme1
β βββ 000000000139.json
β βββ ...
βββ camera_image_0/ # RGB camera images (copied)
β βββ 000000000139.jpg
β βββ ...
βββ lidar_point_cloud_0/ # Processed and rotated colored point clouds
βββ 000000000139.pcd
βββ ...
Installation
1. Create Virtual Environment (Recommended)
cd /path/to/xtreme1-pointcloud-label-ready
# Create virtual environment
python3 -m venv venv
# Activate it (macOS/Linux)
source venv/bin/activate
# On Windows:
# venv\Scripts\activate
2. Install Dependencies
# Install from requirements.txt (recommended)
pip install -r requirements.txt
# Or install manually
pip install numpy pillow open3d
Required packages:
numpy- Numerical operationspillow- Image processingopen3d- Point cloud processing and visualization
3. Verify Installation
python -c "import open3d; import numpy; import PIL; print('β
All dependencies installed!')"
Usage
Basic Command
python scripts/process_dataset.py raw/your_dataset
The pipeline will:
- Generate colored point clouds from RGB and depth data
- Rotate point clouds to top-down view
- Create camera configuration files for xtreme1
- Copy camera images
- Create a zip archive
See QUICKSTART.md for detailed instructions and CLI_REFERENCE.md for all command options.
Modules
color_pcd.py
- Generates colored point clouds from RGB images and depth maps
- Can add RGB data to existing PCDs or create new ones from scratch
- Uses camera intrinsics from metadata JSON files
rotate_pcd.py
- Rotates point clouds by -90 degrees around the X-axis
- Converts upside-down point clouds to top-down view
- Essential for proper visualization in xtreme1
create_camera_config.py
- Generates xtreme1-compatible camera configuration files
- Extracts camera intrinsics and image dimensions from metadata
- Applies appropriate extrinsic transformations
process_dataset.py
- Main pipeline orchestrator
- Coordinates all processing steps
- Provides clean CLI interface with progress reporting
- Handles temporary files and cleanup
Dataset Naming Convention
When no custom name is provided, datasets are automatically named:
<raw_dataset_name>_processed_<timestamp>
Example: test_dataset_v0_processed_20251028_143022
Output Format
The processed dataset follows the xtreme1 expected structure and can be directly imported into the xtreme1 point cloud labeling tool as a zip file.
Additional Documentation
- QUICKSTART.md - Step-by-step usage guide with examples
- CLI_REFERENCE.md - Complete command-line reference
License
Apache 2.0
- Downloads last month
- 3