Skip to content

Routines for processing MMIF files to create visual indexes ("visaids") and other useful output.

License

Notifications You must be signed in to change notification settings

WGBH-MLA/visaid_builder

Repository files navigation

Visaid Builder

Routines for processing MMIF files to create visual indexes ("visaids") and other useful output.

These routines require existing MMIF files containing annotations of videos. MMIF files with relevant annotations can be created with the CLAMS scenes-with-text detection app.

Overview

The use_swt.py module is a stand-alone (not presupposing any particular workflow or media source) application for creating visaids from an existing MMIF file and the corresponding media file.

The process_swt.py module includes functions for processing MMIF produced by the CLAMS swt-detection app.

The post_proc_item module includes functions called by run_job.py from clams-kitchen calls functions in process_swt.py to perform postprocessing on MMIF produced by swt-detection.

Installation

Clone the repository. Change to the repository directory and do a pip install -r requirements.txt.

Usage

For basic usage guidance, run python use_swt.py -h.

To create a visaid using the sample MMIF file in this repository, download the corresponding media file to the sample_files directory. Then run

$ python use_swt.py -d -v sample_files/cpb-aacip-4071f72dd46_swt_v72.mmif sample_files/cpb-aacip-4071f72dd46.mp4

About

Routines for processing MMIF files to create visual indexes ("visaids") and other useful output.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published