                  cv2.rectangle(img, (0, 0), (width - 1, height - 1), (255, 255, 255), 1)
                  out_image = np.concatenate((face, masked, mask), axis=1)
          elif self._output_type == "mask":
              out_image = mask
          elif self._output_type == "masked":
              out_image = np.concatenate([face, mask], axis=-1)
          return out_image
 
</s> remove         self._output_opts = dict(blur_kernel=arguments.blur_kernel, threshold=arguments.threshold)
        self._output_type = arguments.output_type
        self._output_full_frame = arguments.full_frame
        self._output_suffix = self._get_output_suffix()

        self._face_count = 0
        self._skip_count = 0
        self._update_count = 0
 </s> add         self._output = dict(opts=dict(blur_kernel=arguments.blur_kernel,
                                      threshold=arguments.threshold),
                            type=arguments.output_type,
                            full_frame=arguments.full_frame,
                            suffix=self._get_output_suffix())
        self._counts = dict(face=0, skip=0, update=0) </s> remove                 self._face_count += 1
 </s> add                 self._counts["face"] += 1 </s> remove             self._face_count += len(faces_in_frame)
 </s> add             self._counts["face"] += len(faces_in_frame) </s> remove         self._loader = ImagesLoader(arguments.input, load_with_hash=self._input_is_faces)
 </s> add         loader = FacesLoader if self._input_is_faces else ImagesLoader
        self._loader = loader(arguments.input)
        elif self._output["type"] == "masked":
                  cv2.rectangle(img, (0, 0), (width - 1, height - 1), (255, 255, 255), 1)
                  out_image = np.concatenate((face, masked, mask), axis=1)
          elif self._output_type == "mask":
              out_image = mask
        elif self._output["type"] == "masked":
              out_image = np.concatenate([face, mask], axis=-1)
          return out_image
keep keep keep keep replace keep keep
 Core Update (#995)

* lib.alignments - Add Video Meta Data methods

* lib.image - Monkey Path ImageIO for video scanning 
tools/mask/mask.py