finger_crop_None_CircGabor.py 805 Bytes
Newer Older
Pedro TOME's avatar
Pedro TOME committed
1
2
3
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :

4
from ...preprocessors import FingerCrop
Pedro TOME's avatar
Pedro TOME committed
5

6
# Contour localization mask
Pedro TOME's avatar
Pedro TOME committed
7
8
9
10
11
12
13
CONTOUR_MASK_HEIGHT = 4 # Height of the mask
CONTOUR_MASK_WIDTH = 40 # Width of the mask

PADDING_OFFSET = 5
PADDING_THRESHOLD = 0.2 #Threshold for padding black zones

PREPROCESSING = None
14
FINGERCONTOUR = 'leemaskMod' # Options: 'leemaskMatlab', 'konomask'
Pedro TOME's avatar
Pedro TOME committed
15
16
17
18
19
POSTPROCESSING = 'CircGabor' # Options: None, 'HE', 'HFE', 'CircGabor'

GPU_ACCELERATION = False

# define the preprocessor
20
21
22
23
24
25
26
27
28
29
preprocessor = FingerCrop(
    mask_h=CONTOUR_MASK_HEIGHT,
    mask_w=CONTOUR_MASK_WIDTH,
    padding_offset=PADDING_OFFSET,
    padding_threshold=PADDING_THRESHOLD,
    preprocessing=PREPROCESSING,
    fingercontour=FINGERCONTOUR,
    postprocessing=POSTPROCESSING,
    gpu=GPU_ACCELERATION,
    )