Commit a0bbe9e8 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Account for failed extractor

parent 2ff27466
......@@ -83,8 +83,9 @@ class Wrapper (bob.bio.base.extractor.Extractor):
for index, frame, quality in self.frame_selector(frames):
# extract features
extracted = self.extractor(frame)
# add features to new frame container
fc.add(index, extracted, quality)
if extracted is not None:
# add features to new frame container
fc.add(index, extracted, quality)
return fc
......
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