def from_dict(self, d):
     self.central_point = Point.from_array(d["central_point"])
     self.break_point = Point.from_array(d["break_point"])
     self.point_nose = Point.from_array(d["point_nose"])
     self.wall.left = Point.from_array(d["wall_left"])
     self.wall.right = Point.from_array(d["wall_right"])
     self.maxilar.left = Point.from_array(d["maxilar_left"])
     self.maxilar.right = Point.from_array(d["maxilar_right"])
Beispiel #2
0
 def from_dict(self, d):
     # self.guideline_point = Point.from_array(d["guideline_point"])
     self.middle = Point.from_array(d["middle"])
     self.chin = Point.from_array(d["chin"])
     self.nose_center = Point.from_array(d["nose_center"])
     self.cheekbone.left = Point.from_array(d["cheekbone_left"])
     self.cheekbone.right = Point.from_array(d["cheekbone_right"])
     self.cheek.left = Point.from_array(d["cheek_left"])
     self.cheek.right = Point.from_array(d["cheek_right"])
     self.mouth.left = Point.from_array(d["mouth_left"])
     self.mouth.right = Point.from_array(d["mouth_right"])
     self.nose.left = Point.from_array(d["nose_left"])
     self.nose.right = Point.from_array(d["nose_right"])
     self.inner_eye.left = Point.from_array(d["inner_eye_left"])
     self.inner_eye.right = Point.from_array(d["inner_eye_right"])
     self.outer_eye.left = Point.from_array(d["outer_eye_left"])
     self.outer_eye.right = Point.from_array(d["outer_eye_right"])
     self.malar.left = Point.from_array(d["malar_left"])
     self.malar.right = Point.from_array(d["malar_right"])