Commit 2ff27466 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Merge branch 'preproc_wrapper' into 'master'

Returning none insted of empty FrameContainer in preprocessor Wrapper

See merge request !34
parents a906f9c9 6773c786
Pipeline #17636 passed with stages
in 19 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