CameraGroupο
- class lightning_pose.data.cameras.CameraGroup[source]ο
Bases:
CameraGroupInherit 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
CameraGroupinstance 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
CameraGroupinstance 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
- __new__(**kwargs)ο