diff --git a/app.py b/app.py index 79add7a..8c7170b 100644 --- a/app.py +++ b/app.py @@ -91,8 +91,7 @@ def run_on_video(self, mmif: Mmif, videodocument: Document, new_view: View, **co + mmif, annotated with boundingboxes """ cap = vdh.capture(videodocument) - views_with_tframe = [v for v in mmif.get_views_for_document(videodocument.id) - if v.metadata.contains[AnnotationTypes.TimeFrame]] + views_with_tframe = mmif.get_views_contain(AnnotationTypes.TimeFrame) if views_with_tframe: frame_type = set(config["frameType"]) frame_type.discard("") # after this, if this set is empty, the next step will use "all" types diff --git a/metadata.py b/metadata.py index e9fd85a..601a90b 100644 --- a/metadata.py +++ b/metadata.py @@ -33,7 +33,6 @@ def appmetadata() -> AppMetadata: metadata.add_parameter( name="frameType", type="string", - choices=["", "slate", "chyron", "rolling-credit"], default="", multivalued=True, description="Segments of video to run on. Only works with VideoDocument input and TimeFrame input. Empty value means run on the every frame types.",