MCPcopy Create free account
hub / github.com/KlingAIResearch/GameFactory / extract_data_from_json

Function extract_data_from_json

detection.py:25–29  ·  view source on GitHub ↗

Extract action data from JSON for visualizing keys.

(json_path)

Source from the content-addressed store, hash-verified

23 print(f"Failed to delete {file_path}. Reason: {e}")
24
25def extract_data_from_json(json_path):
26 """Extract action data from JSON for visualizing keys."""
27 with open(json_path, 'r') as f:
28 data = json.load(f)
29 return data["actions"]
30
31def process_videos_and_metadata(video_dir, metadata_dir, output_metadata_dir, threshold=0.1, height_threshold=0.1):
32 # Clear output directories at the start

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected