fiftyone.core.threed.camera¶
Camera definition for 3D visualization.
Classes:
|
Represents the configuration of a 3D perspective camera. |
-
class
fiftyone.core.threed.camera.
PerspectiveCamera
(position: Optional[fiftyone.core.threed.transformation.Vector3] = None, look_at: Optional[fiftyone.core.threed.transformation.Vector3] = None, up: Optional[Literal[X, Y, Z]] = None, aspect: Optional[float] = None, fov: float = 50.0, near: float = 0.1, far: float = 2000.0)¶ Bases:
fiftyone.core.threed.validators.BaseValidatedDataClass
Represents the configuration of a 3D perspective camera.
- Parameters
position (None) – the position of the camera. If
None
, the camera position is calculated based on the bounding box of the scenelook_at (None) – the point the camera is looking at. If
None
, the camera looks at the center of the sceneup (None) – the orthonormal axis that is considered up. Must be one of “X”, “Y”, or “Z”. If
None
, it will fallback to the globalup
as defined in 3D plugin settings. If that too is not defined, it will fallback to “Y”aspect (None) – the aspect ratio of the camera. If
None
, the aspect ratio is calculated based on the width and height of the canvasfov (50) – camera frustum vertical field of view in degrees. If
None
, the field of view is 50 degreesnear (0.1) – the near clipping plane of the camera
far (2000) – the far clipping plane of the camera
Attributes:
Methods:
as_dict
()-
property
position
¶
-
property
look_at
¶
-
property
up
¶
-
property
aspect
¶
-
property
fov
¶
-
property
near
¶
-
property
far
¶
-
as_dict
() → dict¶