fix manual extractor

This commit is contained in:
Colombo 2019-10-27 18:53:01 +04:00
parent 2fd6616765
commit 410b8e98a0

View file

@ -542,7 +542,8 @@ class ExtractSubprocessor(Subprocessor):
def on_result (self, host_dict, data, result):
if self.manual == True:
filename, landmarks = result.filename, result.landmarks
if len(landmarks) != 0:
if len(landmarks) != 0 and landmarks[0] is not None:
self.landmarks = landmarks[0]
(h,w,c) = self.image.shape