Extract action data from JSON for visualizing keys.
(json_path)
| 23 | print(f"Failed to delete {file_path}. Reason: {e}") |
| 24 | |
| 25 | def 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 | |
| 31 | def 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 |
nothing calls this directly
no outgoing calls
no test coverage detected