Exemplo n.º 1
0
 def setImage(self, image: Imagelike) -> None:
     """Set the image for this :py:class:`FacePanel`. This
     will initiate the processing of this image using the
     current tools.
     """
     self.setData(Image.as_data(image))
Exemplo n.º 2
0
 def setUp(self):
     """Initialize a detector to be used in the tests.
     """
     self.detector = Tool['haar']
     self.detector.prepare()
     self.image = Image.as_data('examples/reservoir-dogs.jpg')