Resources

Reinput types.

class moveai_mocap.models.resources.enums.resource_type.ResourceType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Types of public output files.

actor_skeleton_output: str = 'actor_skeleton_output'

Used for actor skeleton run outputs, must be a .json file.

all_blend: str = 'all_blend'

ZIP file containing blend files, one per actor.

all_bvh: str = 'all_bvh'

ZIP file containing bvh files, one per actor.

all_c3d: str = 'all_c3d'

ZIP file containing c3d files, one per actor.

all_fbx: str = 'all_fbx'

ZIP file containing fbx files, one per actor.

all_glb: str = 'all_glb'

ZIP file containing glb files, one per actor.

all_usdc: str = 'all_usdc'

ZIP file containing usdc files, one per actor.

all_usdz: str = 'all_usdz'

ZIP file containing usdz files, one per actor.

capture_input: str = 'capture_input'

Capture input file, must be a .move file.

property extension: str

Return the file extension for the output type.

Used to enable building of internal files such as volume output files and actor skeleton files.

Returns:

The file extension for the output type.

logs: str = 'logs'

ZIP file containing the run log files

main_blend: str = 'main_blend'

Blend file with all the run actors.

main_bvh: str = 'main_bvh'

BVH file with all the run actors.

main_c3d: str = 'main_c3d'

C3D file with all the run actors.

main_fbx: str = 'main_fbx'

FBX file with all the run actors.

main_glb: str = 'main_glb'

GLB file with all the run actors.

main_usdc: str = 'main_usdc'

USDC file with all the run actors.

main_usdz: str = 'main_usdz'

USDZ file with all the run actors.

motion_data: str = 'motion_data'

Motion data ZIP file.

render_overlay_video: str = 'render_overlay_video'

Video render file of the mocap with the input video overlayed. This is only used for single camera captures.

render_video: str = 'render_video'

Video render file. An output of a mocap run.

rig: str = 'rig'

Rig input for a mocap run.

sync_data: str = 'sync_data'

.pkl file containing timing information about the video offsets

track_jersey_mapping: str = 'track_jersey_mapping'

.json file that contains correspondences from jersey numbers and teams to track IDs

property valid_extensions: list[str]

Return the valid extensions for the output type.

Returns:

The list of valid extensions for this output type.

video_capture_input: str = 'video_capture_input'

Video input file, can be any of .mp4, .mov, .avi, .mkv.

volume_definition: str = 'volume_definition'

Volume definition output json file.

volume_output: str = 'volume_output'

Used for volume run outputs, must be a .pkl file.

volume_report: str = 'volume_report'

Volume report as a PDF.

Model for Resource.

pydantic model moveai_mocap.models.resources.resource.Resource

A resource is a place where data can be stored and retrieved from.

Fields:
field resource_type: ResourceType [Required]

The type of resource (i.e. render_overlay, mp4 etc).

Validated by:
field service: Service [Required]

The resource service (i.e. S3, GCP etc).

Validated by:
field uri: str [Required]

The full URI of this resource.

Validated by:
validator validate_extension  »  all fields

Validate the extension matches on of the allowed extensions for the resource type.

Raises:

ValueError: The extension of the uri is not valid for the resource type

Returns:

The validate Resource object.