(self, img_path, expresion)
| 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) |
no test coverage detected