Rob Hallam
27175163fc
feat: add VideoActivityFeatureExtractor stub
TBC
3 kuukautta sitten
Rob Hallam
97ea344d8e
feat: add LoudAudioFeatureExtractor stub
TBC
3 kuukautta sitten
Rob Hallam
0c535e1c9d
feat: [OverlapConsolidator] add optional delta
This adds functionality that permits nearby Features to be considered
overlapping, in addition to Features which actual overlap
@see utils.py::Feature
3 kuukautta sitten
Rob Hallam
6c3ffd134e
refactor!: Feature instance variables (source)
BREAKING CHANGE: source now refers to a Source object, the FE that
created the Feature is now referred to by feature_extractor; path is
dropped
This should be more consistent, plus we needed a reference to the
original Source kept around anyway -- path worked but a Source object is
more consistent and explicit about intent
3 kuukautta sitten
Rob Hallam
6b83118b91
feat: add to_json() to Source, Interval & Feature
This lets us serialise properly
3 kuukautta sitten
Rob Hallam
67f181071f
feat: round duration by DEFAULT_PRECISION
associated TODO: make precision configurable
3 kuukautta sitten
Rob Hallam
246aefd34c
feat: add RandomFeatureExtractor
Simple feature extractor that picks random times, used to exercise other
parts of the pipeline
4 kuukautta sitten
Rob Hallam
f892d8da41
feat: add LaughterFeatureExtractor
This adds functionality for getting laughter by using jrgillick's
laughter detection library
NB python expects all of the feature extractor's dependencies to be
available; perhaps in future we can do something even fancier like
activating another python env
[retroactive commit]
4 kuukautta sitten
Rob Hallam
2f959c516a
feat: add Feature class for extracted AV features
This composes an Interval with some ancillary data:
- source (what feature extractor did we get this from)
- path (where is it now on the FS)
- score (for ranking)
TODO double check we aren't overloading the word 'source' to have two
meanings
4 kuukautta sitten
Rob Hallam
ebc288defe
doc: expand Source docstring
4 kuukautta sitten
Rob Hallam
98f980c7b5
feat: [Interval] add inst. & move time methods
These are useful for changing Intervals (eg consolitation)
4 kuukautta sitten
Rob Hallam
9b2ddce115
feat: add duration-related methods to SourceMedia
4 kuukautta sitten
Rob Hallam
fcfc1773bc
feat: add suite of tests for utils module
This covers:
- Source
- SourceMedia
- Interval
4 kuukautta sitten
Rob Hallam
558739a0cd
feat: add __init__, TestOverlapConsolidation suite
4 kuukautta sitten
Rob Hallam
05a67c6264
feat: add context to ease testing
4 kuukautta sitten
Rob Hallam
f4ae8b8916
feat: add Consolidator, OverlapConsolidator
Consolidator:
interface
OverlapConsolidator:
condenses features if their times overlap
4 kuukautta sitten
Rob Hallam
7cc69265f9
feat: add VideoProducer and FfmpegVideoProducer
Classes for actually making video files
- VideoProducer -- interface
- FfmpegVideoProducer -- make a temporary video using ffmpeg
4 kuukautta sitten
Rob Hallam
b71840743c
feat: + SourceMedia constructor, Source & Interval
4 kuukautta sitten
Rob Hallam
1123eed317
feat: add empty LaughterFeatureDetector
for jrgillick/laughter-detection to slot into
4 kuukautta sitten
Rob Hallam
dbd8ba6051
feat: add empty utils.SourceMedia
4 kuukautta sitten
Rob Hallam
5bcb115162
feat: add FeatureExtractor interface
or at least what passes for an interface in python
4 kuukautta sitten
Rob Hallam
c2fb85dfcd
initial commit -- add empty pipeline python package
4 kuukautta sitten