Commit d0bad5c2 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Fixes in the database interface

parent ccb9d00e
Pipeline #19542 failed with stages
in 22 seconds
database.protocol = 'grandtest1-face-spoof'
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -63,11 +63,6 @@ class SwanVideoBioFile(VideoBioFile, SwanBioFile):
def frames(self):
"""Yields the frames of the biofile one by one.
Parameters
----------
biofile : :any:`SwanVideoBioFile`
The high-level bio file
Yields
------
:any:`numpy.array`
......@@ -82,11 +77,6 @@ class SwanVideoBioFile(VideoBioFile, SwanBioFile):
def number_of_frames(self):
"""Returns the number of frames in a video file.
Parameters
----------
biofile : :any:`SwanVideoBioFile`
The high-level bio file
Returns
-------
int
......@@ -102,7 +92,7 @@ class SwanVideoBioFile(VideoBioFile, SwanBioFile):
Returns
-------
(int, int, int)
The (#Channels, Height, Width) which is (3, 1920, 1080).
The (#Channels, Height, Width) which is (3, 1280, 720).
"""
return (3, 1280, 720)
......@@ -143,8 +133,7 @@ class Database(bob.bio.base.database.FileListBioDatabase):
return files
def frames(self, padfile):
for frame in padfile.frames:
yield frame
return padfile.frames
def number_of_frames(self, padfile):
return padfile.number_of_frames
......
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