Commit 6773c786 authored by Olegs Nikisins's avatar Olegs Nikisins

Returning none insted of empty FrCont in preproc Wrapper

parent a906f9c9
Pipeline #17634 passed with stage
in 17 minutes and 3 seconds
......@@ -136,6 +136,9 @@ class Wrapper(bob.bio.base.preprocessor.Preprocessor):
# add image to frame container
fc.add(index, preprocessed, quality)
if not len(fc):
return None
return fc
......
......@@ -77,6 +77,11 @@ def test_missing_annotations():
assert preprocessed_video[0][1] == 3
assert [x[0] for x in preprocessed_video] == ['0', '1', '3']
annotations = {}
preprocessed_video = preprocessor(video, annotations)
assert preprocessed_video is None
def test_detect():
......
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