-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
✨NNew feature or requestNew feature or request
Description
New Feature Summary
mmif-python will provides SamplingMode enum and extract_frames_by_mode() in video_document_helper (mmif-python PR #373). This issue tracks the clams-python side integration.
Changes
- Import
SamplingMode,SAMPLING_MODE_DESCRIPTIONS,SAMPLING_MODE_DEFAULT, and_sampling_modefrom newmmif.utils.video_document_helper- Three modes:
representatives(default),single,all
- Three modes:
- Add
tfSamplingModetoClamsApp.universal_parameters, built from the imported enum values and descriptions - In
annotate(), poptfSamplingModefrom refined params and set the_sampling_modecontext variable before calling_annotate()- Uses
contextvarsfor thread-safe propagation — app developers don't need to handle sampling mode;
- Uses
- Bump mmif-python dependency to the version that includes the new API
extract_frames_by_mode()reads the mode automatically
Related
No response
Alternatives
No response
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
✨NNew feature or requestNew feature or request
Type
Projects
Status
Done