lgbphs.py 339 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python

import bob.bio.face
import math

# feature extraction
extractor = bob.bio.face.extractor.LGBPHS(
    # block setup
    block_size = 10,
    block_overlap = 4,
    # Gabor parameters
    gabor_sigma = math.sqrt(2.) * math.pi,
    # LBP setup (we use the defaults)

    # histogram setup
    sparse_histogram = True
)