CameraGroup

class lightning_pose.data.cameras.CameraGroup[source]

Bases: CameraGroup

Inherit Anipose camera group and add new non-jitted triangulation method for dataloaders.

Methods Summary

copy()

Return a shallow copy of this CameraGroup with copied cameras and metadata.

copy_with_new_cameras(cameras)

Create a new CameraGroup with the same properties but different cameras.

load(path)

Load a CameraGroup from a file.

triangulate_fast(points[,Β undistort])

Given an CxNx2 array, this returns an Nx3 array of points, where N is the number of points and C is the number of cameras

Methods Documentation

copy() CameraGroup[source]

Return a shallow copy of this CameraGroup with copied cameras and metadata.

Returns:

A new CameraGroup instance with independent copies of all cameras and metadata.

copy_with_new_cameras(cameras: list) CameraGroup[source]

Create a new CameraGroup with the same properties but different cameras.

classmethod load(path: str | Path) CameraGroup[source]

Load a CameraGroup from a file.

Parameters:

path – path to the serialized camera group file.

Returns:

A CameraGroup instance with the loaded camera parameters.

triangulate_fast(points: ndarray, undistort: bool = True) ndarray[source]

Given an CxNx2 array, this returns an Nx3 array of points, where N is the number of points and C is the number of cameras

__init__(cameras, metadata={})[source]
__new__(**kwargs)