pycvcam.OrthographicExtrinsic.from_frame#

classmethod OrthographicExtrinsic.from_frame(frame)[source]#

Class method to create a OrthographicExtrinsic object from a 3D frame.

Parameters:

frame (Frame) – The 3D frame of the camera in the world coordinate system. It should be a py3dframe.Frame object.

Returns:

A new instance of the OrthographicExtrinsic class with the specified 3D frame.

Return type:

OrthographicExtrinsic

Examples

Create an extrinsic object with a 3D frame:

from py3dframe import Frame
from pycvcam import OrthographicExtrinsic

frame = Frame(translation=[0.5, 0.5, 0.5], rotation_vector=[0.1, 0.2, 0.3], convention=4)
extrinsic = OrthographicExtrinsic.from_frame(frame)