Observation API
Repository: https://github.com/OlafenwaMoses/vizion3D
vizion3d.observation
ScaleObservation task direct Python entry point.
ObjectScaleObservation
Bases: BaseModel
Normalised per-object evidence used by ScaleObservation.
Source code in vizion3d/observation/models.py
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | |
ScaleCandidate
Bases: BaseModel
Single object/dimension-derived scale candidate.
Source code in vizion3d/observation/models.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | |
ScaleObservation
Facade for the ScaleObservation task.
Source code in vizion3d/observation/__init__.py
19 20 21 22 23 24 25 26 27 | |
run(command)
Dispatch command through the CQRS bus to the registered handler.
Source code in vizion3d/observation/__init__.py
24 25 26 27 | |
ScaleObservationAdvancedConfig
Bases: BaseModel
Camera/image settings for ScaleObservation geometry outputs.
Source code in vizion3d/observation/models.py
32 33 34 35 36 37 38 39 40 | |
ScaleObservationCommand
dataclass
Bases: Command[ScaleObservationResult]
Command payload to estimate metric scale for a generated point cloud.
Attributes:
| Name | Type | Description |
|---|---|---|
point_cloud |
object
|
Open3D point cloud, PLY bytes, or a PLY file path. |
annotations |
list[MaskAnnotation3D] | list[dict[str, Any]] | None
|
Usually |
image_input |
str | bytes | None
|
Optional RGB image path or bytes. The current runtime only uses this for future extensibility; annotations are the scale evidence. |
return_scaled_point_cloud |
bool
|
Include a uniformly scaled Open3D point cloud. |
return_scaled_depth |
bool
|
Include a projected camera-space Z depth image when intrinsics and image dimensions are provided. |
config |
ScaleObservationConfig
|
ScaleObservation estimator configuration. Defaults to promoted V4.1. |
advanced_config |
ScaleObservationAdvancedConfig
|
Image size and camera intrinsics for bbox edge checks and optional scaled-depth reprojection. |
Source code in vizion3d/observation/commands.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | |
ScaleObservationConfig
Bases: BaseModel
Runtime configuration for the promoted ScaleObservation estimator.
Source code in vizion3d/observation/models.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | |
ScaleObservationResult
Bases: BaseModel
Result payload returned by ScaleObservation.
Source code in vizion3d/observation/models.py
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | |
ScaledDepthMetadata
Bases: BaseModel
Metadata for a scaled depth image reprojected from a scaled point cloud.
Source code in vizion3d/observation/models.py
100 101 102 103 104 105 106 107 | |