diff --git a/MANIFEST.in b/MANIFEST.in index 9d10504bb6cff3f64bb98675fc9bac7b0cdd4035..ee00970910914bfc8313f22271ff670bf746e7e5 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,3 @@ include README.rst bootstrap-buildout.py buildout.cfg COPYING version.txt requirements.txt recursive-include doc *.py *.rst *.ico *.png +recursive-include bob/pad/face/test/data *.hdf5 diff --git a/bob/pad/face/extractor/LBPHistogram.py b/bob/pad/face/extractor/LBPHistogram.py index 2c8762f2f96df23ab36536c60f0b532177f4456a..c66d7b464c4c6b2e013d83ef975b91964d0ba181 100644 --- a/bob/pad/face/extractor/LBPHistogram.py +++ b/bob/pad/face/extractor/LBPHistogram.py @@ -7,7 +7,7 @@ import numpy class LBPHistogram(Extractor): """Calculates a normalized LBP histogram over an image. - These features are implemented based on the chingovska_effectiveness_2012_. + These features are implemented based on [ChingovskaEffectivnes12]_. Parameters ---------- @@ -32,13 +32,6 @@ class LBPHistogram(Extractor): resulting features have that dtype. lbp : bob.ip.base.LBP The LPB extractor object. - - - .. _chingovska_effectiveness_2012: - I. Chingovska, A. Anjos, and S. Marcel, ``On the effectiveness of - local binary patterns in face anti-spoofing,'' in Biometrics Special - Interest Group (BIOSIG), 2012 BIOSIG-Proceedings of the International - Conference of the, 2012, pp. 1-7. """ def __init__(self, @@ -130,10 +123,3 @@ class LBPHistogram(Extractor): if self.dtype is not None: hist = hist.astype(self.dtype) return hist - - # re-define unused functions, just so that they do not get documented - def train(*args, **kwargs): - raise NotImplementedError() - - def load(*args, **kwargs): - pass diff --git a/doc/conf.py b/doc/conf.py index d18851fb15e148cbe8cb24321367b1f52f780f77..2dbdd540ed38e039b02b229d244463f7acc794a3 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -232,7 +232,6 @@ autodoc_member_order = 'bysource' autodoc_default_flags = [ 'members', 'undoc-members', - 'inherited-members', 'show-inheritance', ] diff --git a/doc/index.rst b/doc/index.rst index a09a2bfc71f23cccbea445209de1298c8f18912a..8e68816b872bc0d554ec5313d5aede1f0bc92a75 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -15,6 +15,7 @@ Package Documentation :maxdepth: 2 guide + refrences py_api diff --git a/doc/py_api.rst b/doc/py_api.rst index 8f040ca2c3d24debdb31d7a249d6fa1aed3f6bab..127fc0eef1ee96689f8d2b56d0a832181a541038 100644 --- a/doc/py_api.rst +++ b/doc/py_api.rst @@ -19,9 +19,6 @@ Video Preprocessors Image Extractors ~~~~~~~~~~~~~~~~ -Image Extractors -~~~~~~~~~~~~~~~~ - .. autosummary:: bob.pad.face.extractor.LBPHistogram @@ -37,4 +34,5 @@ Image Extractors ---------------- .. automodule:: bob.pad.face.extractor - + :special-members: __call__ + :no-inherited-members: diff --git a/doc/refrences.rst b/doc/refrences.rst new file mode 100644 index 0000000000000000000000000000000000000000..c1233b034a51840d4a554bf4b6c831e61781e0fe --- /dev/null +++ b/doc/refrences.rst @@ -0,0 +1,10 @@ +.. vim: set fileencoding=utf-8 : + +========== +References +========== + +.. [ChingovskaEffectivnes12] I. Chingovska, A. Anjos, and S. Marcel, ''On the + effectiveness of local binary patterns in face anti- spoofing,'' in + Biometrics Special Interest Group (BIOSIG), 2012 BIOSIG- Proceedings of the + International Conference of the, 2012, pp. 1-7.