removing dflimg image_to_face_mat

This commit is contained in:
iperov 2019-03-18 14:42:10 +04:00
parent 5d819e3e83
commit 7c1ea1a617
3 changed files with 5 additions and 22 deletions

View file

@ -329,9 +329,6 @@ class DFLPNG(object):
def get_source_filename(self): return self.fcwp_dict['source_filename']
def get_source_rect(self): return self.fcwp_dict['source_rect']
def get_source_landmarks(self): return np.array ( self.fcwp_dict['source_landmarks'] )
def get_image_to_face_mat(self):
mat = self.fcwp_dict.get('image_to_face_mat', None)
return np.array(mat) if mat is not None else None
def __str__(self):
return "<PNG length={length} chunks={}>".format(len(self.chunks), **self.__dict__)