Commit fbc96ddb authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Port the database interface to the new format

parent f1aab170
Pipeline #46440 failed with stage
in 8 minutes and 45 seconds
#!/usr/bin/env python
from bob.db.oulunpu import Database
database = Database(protocol='Protocol_1')
from bob.pad.base.pipelines.vanilla_pad.legacy import DatabaseConnector
database = DatabaseConnector(Database(protocol='Protocol_1'))
from pkg_resources import resource_filename
from bob.pad.base.database import FileListPadDatabase
from bob.pad.face.database import VideoPadFile
from import FrameSelector
from bob.extension import rc
from import reader
from bob.db.base.annotations import read_annotation_file
......@@ -83,33 +82,6 @@ class File(VideoPadFile):
return annotations
def load(
"""Loads the video file and returns in a
directory : :obj:`str`, optional
The directory to load the data from.
extension : :obj:`str`, optional
The extension of the file to load.
frame_selector : :any:``, optional
Which frames to select.
The loaded frames inside a frame container.
directory = directory or self.original_directory
extension = extension or self.original_extension
return frame_selector(self.make_path(directory, extension))
class Database(FileListPadDatabase):
"""The database interface for the OULU-NPU dataset."""
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment