cookbook/data_labeling/_14_video_extraction/README.md
Video → typed Pydantic object. Pull events, scene descriptions, or timestamped actions from a clip into a structured schema.
basic.py — clip-level summary plus a flat list of scenes.scene_descriptions.py — one structured description per detected scene.action_timestamps.py — actions or events with start/end times in
seconds.(video, structured_labels) training set.For a single clip-level label, use
_13_video_classification/.
python cookbook/data_labeling/_14_video_extraction/basic.py
python cookbook/data_labeling/_14_video_extraction/scene_descriptions.py
python cookbook/data_labeling/_14_video_extraction/action_timestamps.py
Requires GOOGLE_API_KEY.
Note on the sample asset: sample_seaview.mp4 is misnamed - the clip is
a short lab scene (a scientist examining a sample through a microscope),
not a sea view. The extracted events and scenes describe the lab scene.