Commit 7cdf6156 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Add a config file

parent f5d0dffc
Pipeline #13855 failed with stages
in 4 minutes and 43 seconds
#!/usr/bin/env python
from bob.db.oulunpu import Database
oulunpu_directory = "[OULUNPU_DIRECTORY]"
database = Database(
original_directory=oulunpu_directory,
)
......@@ -15,7 +15,8 @@ class Database(FileListPadDatabase):
"""The database interface for the OULU-NPU dataset."""
def __init__(self, original_directory=None,
bio_file_class=None, name='oulunpu', **kwargs):
bio_file_class=None, name='oulunpu',
original_extension=".avi", **kwargs):
if bio_file_class is None:
bio_file_class = File
filelists_directory = resource_filename(__name__, 'lists')
......@@ -23,6 +24,7 @@ class Database(FileListPadDatabase):
filelists_directory=filelists_directory, name=name,
original_directory=original_directory,
bio_file_class=bio_file_class,
original_extension=original_extension,
**kwargs)
def frames(self, padfile):
......
......@@ -58,6 +58,10 @@ setup(
'bob.db' : [
'oulunpu = bob.db.oulunpu.driver:Interface',
],
'bob.bio.database': [
'pad-oulunpu = bob.db.oulunpu.config:database',
],
},
# Classifiers are important if you plan to distribute this package through
......
Markdown is supported
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