finger_crop_None_HFE.py 802 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
7

# Contour localization mask
Pedro TOME's avatar
Pedro TOME committed
8
9
10
11
12
13
14
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
15
FINGERCONTOUR = 'leemaskMod' # Options: 'leemaskMatlab', 'konomask'
Pedro TOME's avatar
Pedro TOME committed
16
17
18
19
20
POSTPROCESSING = 'HFE' 		 # Options: None, 'HE', 'HFE', 'CircGabor'

GPU_ACCELERATION = False

# define the preprocessor
21
22
23
24
25
26
27
28
29
30
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
    )