MCPcopy Create free account
hub / github.com/albertpumarola/GANimation / morph_file

Method morph_file

test.py:26–30  ·  view source on GitHub ↗
(self, img_path, expresion)

Source from the content-addressed store, hash-verified

24 ])
25
26 def morph_file(self, img_path, expresion):
27 img = cv_utils.read_cv2_img(img_path)
28 morphed_img = self._img_morph(img, expresion)
29 output_name = '%s_out.png' % os.path.basename(img_path)
30 self._save_img(morphed_img, output_name)
31
32 def _img_morph(self, img, expresion):
33 bbs = face_recognition.face_locations(img)

Callers 1

mainFunction · 0.95

Calls 2

_img_morphMethod · 0.95
_save_imgMethod · 0.95

Tested by

no test coverage detected