grid_graph.py 508 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python

import bob.bio.base
import bob.bio.face
import math

# load the face cropping parameters
cropper = bob.bio.base.load_resource("face-crop-eyes", "preprocessor")

extractor = bob.bio.face.extractor.GridGraph(
    # Gabor parameters
    gabor_sigma = math.sqrt(2.) * math.pi,

    # what kind of information to extract
    normalize_gabor_jets = True,

    # setup of the fixed grid
    node_distance = (4, 4),
    first_node = (6, 6),
    image_resolution = cropper.cropped_image_size
)