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

1# isort: skip_file 

2from .Base import Base 

3from .FaceCrop import FaceCrop, MultiFaceCrop, BoundingBoxAnnotatorCrop 

4 

5from .TanTriggs import TanTriggs 

6from .INormLBP import INormLBP 

7from .HistogramEqualization import HistogramEqualization 

8from .Scale import Scale 

9from .croppers import FaceEyesNorm, FaceCropBoundingBox 

10 

11 

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. 

16 

17 Parameters 

18 ---------- 

19 

20 *args: An iterable of objects to modify 

21 

22 Resolves `Sphinx referencing issues 

23 <https://github.com/sphinx-doc/sphinx/issues/3048>` 

24 """ 

25 

26 for obj in args: 

27 obj.__module__ = __name__ 

28 

29 

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("_")]