Skip to content
Snippets Groups Projects
Commit 9429783f authored by Saeed SARFJOO's avatar Saeed SARFJOO
Browse files

add dummy extractor

parent 4e32759e
No related branches found
No related tags found
1 merge request!19Add audio extractor
Pipeline #26713 failed
import numpy
from bob.bio.base.extractor import Extractor
class DummyExtractor(Extractor):
""" The Dummy class for passing the extracted embedding.
"""
def __init__(self):
""" Init function
"""
super(DummyExtractor, self).__init__()
def __call__(self, data):
"""__call__(data) -> feature
This function will actually perform the feature extraction.
It must be overwritten by derived classes.
It takes the (preprocessed) data and returns the features extracted from the data.
**Parameters**
data : object (usually :py:class:`numpy.ndarray`)
The *preprocessed* data from which features should be extracted.
**Returns:**
feature : object (usually :py:class:`numpy.ndarray`)
The extracted feature.
"""
return data
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment