SensorCamera#
- class ansys.speos.core.sensor.SensorCamera(project, name, description='', metadata=None, sensor_instance=None, default_parameters=None)#
Bases:
BaseSensorSensor feature: Camera.
By default, regarding inherent characteristics, a camera with mode photometric is chosen. By default, regarding properties, an axis system is selected to position the sensor, and no layer separation is chosen.
- Parameters:
- project
ansys.speos.core.project.Project Project that will own the feature.
- name
str Name of the feature.
- description
str Description of the feature. By default,
"".- metadata
Optional[Mapping[str,str]] Metadata of the feature. By default,
{}.- sensor_instance
ansys.api.speos.scene.v2.scene_pb2.Scene.SensorInstance,optional Sensor instance to provide if the feature does not has to be created from scratch By default,
None, means that the feature is created from scratch by default.- default_parameters
ansys.speos.core.generic.parameters.CameraSensorParameters,optional If defined the values in the sensor instance will be overwritten by the values of the data class
- project
- Parameters:
project (SensorCamera.__init__.project)
name (str)
description (str)
sensor_instance (Optional[ansys.speos.core.kernel.scene.ProtoScene.SensorInstance])
default_parameters (Union[None, ansys.speos.core.generic.parameters.CameraSensorParameters])
Overview#
Set mode geometric for the camera sensor. |
|
Set mode photometric for the camera sensor. |
|
Save feature: send the local data to the speos server database. |
Property containing camera sensor visualization data. |
|
Property containing the instance of SensorCamera.Photometric used to build the sensor. |
|
Focal length of the optical system. |
|
Imager distance. |
|
F number of the optical system. |
|
Location of the distortion file. |
|
Horizontal pixels number corresponding to the camera resolution. |
|
Vertical pixels number corresponding to the camera resolution. |
|
Width of the imager. |
|
Height of the imager. |
|
The position of the sensor. |
Import detail#
from ansys.speos.core.sensor import SensorCamera
Property detail#
- property SensorCamera.visual_data: ansys.speos.core.generic.visualization_methods._VisualData#
Property containing camera sensor visualization data.
- Returns:
BaseSensor.VisualDataInstance of VisualData Class for pyvista.PolyData of feature faces, coordinate_systems.
- property SensorCamera.photometric: SensorCamera | None#
Property containing the instance of SensorCamera.Photometric used to build the sensor.
- Returns:
Union[ansys.speos.core.sensor.SensorCamera.Photometric,None]Photometric class instance if it exists
- property SensorCamera.imager_distance: SensorCamera#
Imager distance.
- property SensorCamera.horz_pixel: int#
Horizontal pixels number corresponding to the camera resolution.
- property SensorCamera.vert_pixel: int#
Vertical pixels number corresponding to the camera resolution.
Method detail#
- SensorCamera.set_mode_geometric()#
Set mode geometric for the camera sensor.
This is a simplified version of the Camera Sensor.
- Returns:
ansys.speos.core.sensor.SensorCameraGeometric Camera feature
- SensorCamera.set_mode_photometric()#
Set mode photometric for the camera sensor.
This allows setting every Camera Sensor parameter, including the photometric definition parameters.
- Returns:
ansys.speos.core.sensor.SensorCamera.PhotometricPhotometric Camera Sensor feature
- SensorCamera.commit()#
Save feature: send the local data to the speos server database.
- Returns:
ansys.speos.core.sensor.SensorCameraSensor feature.
Classes#
Mode of camera sensor : Photometric. |