config_annotate.py 468 Bytes
Newer Older
Amir MOHAMMADI's avatar
Amir MOHAMMADI committed
1
2
3
4
5
6
7
8
9
10
11
from bob.bio.video.annotator import Wrapper
from bob.bio.face.annotator import FailSafe
from bob.bio.face.annotator.bobipfacedetect import BobIpFacedetect
from bob.bio.face.annotator.bobipflandmark import BobIpFlandmark
from bob.bio.face.annotator.bobipmtcnn import BobIpMTCNN
from .query_bio import load_frames

annotator = Wrapper(
    FailSafe([BobIpMTCNN(), BobIpFacedetect(), BobIpFlandmark()],
             ['leye', 'reye']),
    read_original_data=load_frames)