Skip to content
Snippets Groups Projects
Commit 83bb7997 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

improve docs

parent ddf69d96
No related branches found
No related tags found
No related merge requests found
Pipeline #
include README.rst bootstrap-buildout.py buildout.cfg COPYING version.txt requirements.txt include README.rst bootstrap-buildout.py buildout.cfg COPYING version.txt requirements.txt
recursive-include doc *.py *.rst *.ico *.png recursive-include doc *.py *.rst *.ico *.png
recursive-include bob/pad/face/test/data *.hdf5
...@@ -7,7 +7,7 @@ import numpy ...@@ -7,7 +7,7 @@ import numpy
class LBPHistogram(Extractor): class LBPHistogram(Extractor):
"""Calculates a normalized LBP histogram over an image. """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 Parameters
---------- ----------
...@@ -32,13 +32,6 @@ class LBPHistogram(Extractor): ...@@ -32,13 +32,6 @@ class LBPHistogram(Extractor):
resulting features have that dtype. resulting features have that dtype.
lbp : bob.ip.base.LBP lbp : bob.ip.base.LBP
The LPB extractor object. 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, def __init__(self,
...@@ -130,10 +123,3 @@ class LBPHistogram(Extractor): ...@@ -130,10 +123,3 @@ class LBPHistogram(Extractor):
if self.dtype is not None: if self.dtype is not None:
hist = hist.astype(self.dtype) hist = hist.astype(self.dtype)
return hist 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
...@@ -232,7 +232,6 @@ autodoc_member_order = 'bysource' ...@@ -232,7 +232,6 @@ autodoc_member_order = 'bysource'
autodoc_default_flags = [ autodoc_default_flags = [
'members', 'members',
'undoc-members', 'undoc-members',
'inherited-members',
'show-inheritance', 'show-inheritance',
] ]
......
...@@ -15,6 +15,7 @@ Package Documentation ...@@ -15,6 +15,7 @@ Package Documentation
:maxdepth: 2 :maxdepth: 2
guide guide
refrences
py_api py_api
...@@ -19,9 +19,6 @@ Video Preprocessors ...@@ -19,9 +19,6 @@ Video Preprocessors
Image Extractors Image Extractors
~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
Image Extractors
~~~~~~~~~~~~~~~~
.. autosummary:: .. autosummary::
bob.pad.face.extractor.LBPHistogram bob.pad.face.extractor.LBPHistogram
...@@ -37,4 +34,5 @@ Image Extractors ...@@ -37,4 +34,5 @@ Image Extractors
---------------- ----------------
.. automodule:: bob.pad.face.extractor .. automodule:: bob.pad.face.extractor
:special-members: __call__
:no-inherited-members:
.. 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.
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