MCPcopy
hub / github.com/zju3dv/4K4D / export_keyframes

Method export_keyframes

easyvolcap/utils/viewer_utils.py:278–282  ·  view source on GitHub ↗
(self, path: str)

Source from the content-addressed store, hash-verified

276 return H, W, K, R, T, n, f, t, v, bounds
277
278 def export_keyframes(self, path: str):
279 # Store keyframes to path
280 cameras = {f'{i:06d}': k.to_easymocap() for i, k in enumerate(self.keyframes)}
281 write_camera(cameras, path) # without extri.yml, only dirname
282 log(yellow(f'Keyframes saved to: {blue(path)}'))
283
284 def load_keyframes(self, path: str):
285 # Store keyframes to path

Callers 1

draw_keyframes_guiMethod · 0.80

Calls 5

write_cameraFunction · 0.90
yellowFunction · 0.85
blueFunction · 0.85
to_easymocapMethod · 0.80
logFunction · 0.70

Tested by

no test coverage detected