Coverage for src/bob/bio/face/preprocessor/__init__.py: 100%
12 statements
« prev ^ index » next coverage.py v7.6.0, created at 2024-07-13 00:04 +0200
« prev ^ index » next coverage.py v7.6.0, created at 2024-07-13 00:04 +0200
1# isort: skip_file
2from .Base import Base
3from .FaceCrop import FaceCrop, MultiFaceCrop, BoundingBoxAnnotatorCrop
5from .TanTriggs import TanTriggs
6from .INormLBP import INormLBP
7from .HistogramEqualization import HistogramEqualization
8from .Scale import Scale
9from .croppers import FaceEyesNorm, FaceCropBoundingBox
12# gets sphinx autodoc done right - don't remove it
13def __appropriate__(*args):
14 """Says object was actually declared here, and not in the import module.
15 Fixing sphinx warnings of not being able to find classes, when path is shortened.
17 Parameters
18 ----------
20 *args: An iterable of objects to modify
22 Resolves `Sphinx referencing issues
23 <https://github.com/sphinx-doc/sphinx/issues/3048>`
24 """
26 for obj in args:
27 obj.__module__ = __name__
30__appropriate__(
31 Base,
32 FaceCrop,
33 TanTriggs,
34 INormLBP,
35 HistogramEqualization,
36 Scale,
37 FaceEyesNorm,
38 FaceCropBoundingBox,
39 MultiFaceCrop,
40 BoundingBoxAnnotatorCrop,
41)
42__all__ = [_ for _ in dir() if not _.startswith("_")]