From 27175163fc4d021e2eddd822729bf4ab0b889ae0 Mon Sep 17 00:00:00 2001 From: Rob Hallam <0504004h@student.gla.ac.uk> Date: Sat, 3 Aug 2024 10:33:17 +0100 Subject: [PATCH] feat: add VideoActivityFeatureExtractor stub TBC --- pipeline/feature_extractors.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pipeline/feature_extractors.py b/pipeline/feature_extractors.py index 160aa81..3706223 100644 --- a/pipeline/feature_extractors.py +++ b/pipeline/feature_extractors.py @@ -175,6 +175,23 @@ class LoudAudioFeatureExtractor(FeatureExtractor): teardown() is used to clean up temporary files created during setup (if specified by config) """ +class VideoActivityFeatureExtractor(FeatureExtractor): + """Feature extractor for video activity detection. + + This class is responsible for extracting features corresponding to high activity in video files. + + Uses ffmpeg's scdet filter with threshold of zero. + + Here: + + setup() is used to validate input files & config + + run() is used to extract features from the video using OpenCV + + teardown() is used to clean up any temporary files created during setup according to the config + + #TODO: minimum duration -- consider whether to do here, or expand duration post-consolidation + """ def teardown(self): pass