Skip to content
Snippets Groups Projects
Commit 7c7537e5 authored by Olegs NIKISINS's avatar Olegs NIKISINS
Browse files

Added entry points for VideoHistOfSparseCodes extractor

parent 1d8f2077
No related branches found
No related tags found
1 merge request!15Docs on Anomaly detection based PAD using Aggregated Db + Sparse coding stuff
#!/usr/bin/env python
from bob.pad.face.extractor import VideoHistOfSparseCodes
#=======================================================================================
# Define instances here:
METHOD = "mean"
extractor_mean = VideoHistOfSparseCodes(method = METHOD)
METHOD = "hist"
extractor_hist = VideoHistOfSparseCodes(method = METHOD)
......@@ -4,6 +4,7 @@ from .ImageQualityMeasure import ImageQualityMeasure
from .VideoDataLoader import VideoDataLoader
from .VideoQualityMeasure import VideoQualityMeasure
from .FrameDiffFeatures import FrameDiffFeatures
from .VideoHistOfSparseCodes import VideoHistOfSparseCodes
def __appropriate__(*args):
"""Says object was actually declared here, and not in the import module.
......@@ -30,5 +31,6 @@ __appropriate__(
VideoQualityMeasure,
VideoDataLoader,
FrameDiffFeatures,
VideoHistOfSparseCodes,
)
__all__ = [_ for _ in dir() if not _.startswith('_')]
......@@ -108,11 +108,15 @@ setup(
'sparse-coding-preprocessor = bob.pad.face.config.preprocessor.video_sparse_coding:preprocessor',
],
# registered preprocessors:
# registered extractors:
'bob.pad.extractor': [
'video-lbp-histogram-extractor-n8r1-uniform = bob.pad.face.config.extractor.video_lbp_histogram:video_lbp_histogram_extractor_n8r1_uniform',
'video-quality-measure-galbally-msu = bob.pad.face.config.extractor.video_quality_measure:video_quality_measure_galbally_msu',
'frame-diff-feat-extr-w20-over0 = bob.pad.face.config.extractor.frame_diff_features:frame_diff_feat_extr_w20_over0',
# extractors for sparse coding:
'hist-of-sparse-codes-mean = bob.pad.face.config.extractor.video_hist_of_sparse_codes:extractor_mean',
'hist-of-sparse-codes-hist = bob.pad.face.config.extractor.video_hist_of_sparse_codes:extractor_hist',
],
# registered algorithms:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment