database.py 685 Bytes
Newer Older
1
2
3
4
5
6
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# Tiago de Freitas Pereira <tiago.pereira@idiap.ch>
# Wed 20 July 14:43:22 CEST 2016

from bob.bio.base.database.file import BioFile
7
from ..utils import FrameSelector
8
9
10


class VideoBioFile(BioFile):
11
    def __init__(self, client_id, path, file_id, **kwargs):
12
13
14
15
        """
        Initializes this File object with an File equivalent for
        VoxForge database.
        """
16
        super(VideoBioFile, self).__init__(client_id=client_id, path=path, file_id=file_id, **kwargs)
17

Amir Mohammadi's avatar
Amir Mohammadi committed
18
    def load(self, directory=None, extension='.avi', frame_selector=FrameSelector()):
19
        return frame_selector(self.make_path(directory, extension))