|
1 | 1 | # vizion3D |
2 | | -3D Capability and Intelligence for the real world. |
| 2 | + |
| 3 | +**vizion3d** is an open-source Python library for 3D computer vision — a single unified interface for depth estimation, point cloud generation, 3D object annotation, and more. |
| 4 | + |
| 5 | +📖 **[Full documentation →](https://olafenwamoses.github.io/vizion3D/)** |
| 6 | + |
| 7 | +--- |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | +--- |
| 14 | + |
| 15 | +## Installation |
| 16 | + |
| 17 | +Requires **Python 3.12** (Open3D constraint). |
| 18 | + |
| 19 | +```bash |
| 20 | +pip install "vizion3d[cpu]" |
| 21 | +``` |
| 22 | + |
| 23 | +For NVIDIA CUDA, AMD ROCm, or Apple Silicon MPS, see the [Hardware Acceleration](https://olafenwamoses.github.io/vizion3D/hardware_acceleration/) page. |
| 24 | + |
| 25 | +--- |
| 26 | + |
| 27 | +## Quick start — depth estimation |
| 28 | + |
| 29 | +```python |
| 30 | +import open3d as o3d |
| 31 | +from vizion3d.lifting import DepthEstimation, DepthEstimationCommand |
| 32 | + |
| 33 | +result = DepthEstimation().run( |
| 34 | + DepthEstimationCommand( |
| 35 | + image_input="roomhd.jpg", |
| 36 | + return_depth_image=True, |
| 37 | + return_point_cloud=True, |
| 38 | + ) |
| 39 | +) |
| 40 | + |
| 41 | +print(f"Depth range : {result.min_depth:.4f} → {result.max_depth:.4f}") |
| 42 | +print(f"Points : {len(result.point_cloud.points)}") |
| 43 | +print(f"Scale : {result.point_cloud_scale} metre per unit") |
| 44 | + |
| 45 | +o3d.io.write_point_cloud("roomhd_result.ply", result.point_cloud) |
| 46 | +``` |
| 47 | + |
| 48 | +--- |
| 49 | + |
| 50 | +## Quick start — 3D object annotation |
| 51 | + |
| 52 | +```python |
| 53 | +import open3d as o3d |
| 54 | +from vizion3d.annotation import ObjectMaskAnnotation3D, ObjectMaskAnnotation3DCommand |
| 55 | + |
| 56 | +pcd = o3d.io.read_point_cloud("roomhd_result.ply") |
| 57 | + |
| 58 | +result = ObjectMaskAnnotation3D().run( |
| 59 | + ObjectMaskAnnotation3DCommand( |
| 60 | + point_cloud=pcd, |
| 61 | + image_input="roomhd.jpg", |
| 62 | + return_annotated_cloud=True, |
| 63 | + ) |
| 64 | +) |
| 65 | + |
| 66 | +for ann in result.annotations: |
| 67 | + print(f"{ann.label:20s} conf={ann.confidence:.2f} 3D points={len(ann.point_indices)}") |
| 68 | + |
| 69 | +o3d.io.write_point_cloud("annotated.ply", result.annotated_cloud) |
| 70 | +``` |
| 71 | + |
| 72 | +--- |
| 73 | + |
| 74 | +## Documentation |
| 75 | + |
| 76 | +Full reference, REST/gRPC guides, hardware setup, and task catalogue: |
| 77 | + |
| 78 | +**[https://olafenwamoses.github.io/vizion3D/](https://olafenwamoses.github.io/vizion3D/)** |
0 commit comments