wide_line_detector.py 486 Bytes
Newer Older
Pedro TOME's avatar
Pedro TOME committed
1
2
3
4
5
6
7
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :

import bob.fingervein

# Parameters
RADIUS_NEIGHBOURHOOD_REGION = 5 # Radius of the circular neighbourhood region
8
9
NEIGHBOURHOOD_THRESHOLD = 1
SUM_NEIGHBOURHOOD = 41 #Sum of neigbourhood threshold
Pedro TOME's avatar
Pedro TOME committed
10
11
12
13
RESCALE = True

#Define feature extractor
feature_extractor = bob.fingervein.features.WideLineDetector(
14
  radius = RADIUS_NEIGHBOURHOOD_REGION,
Pedro TOME's avatar
Pedro TOME committed
15
      threshold = NEIGHBOURHOOD_THRESHOLD,
16
17
  g = SUM_NEIGHBOURHOOD,
  rescale = RESCALE
Pedro TOME's avatar
Pedro TOME committed
18
19
)