def test_should_get_bounding_box_with_padding(self): porthole = Porthole() test_face = helper_make_face(100,100,6,8) porthole.set_face(test_face) porthole.set_padding(10) rect = porthole.get_bounding_box() self.assertTupleEqual(rect, helper_make_rect(88,89,30,30))
def __init__(self): self._cam = Camera(IMAGE_WIDTH, IMAGE_HEIGHT) self._face_cascade = FaceCascade() self._stabiliser = Stabiliser() porthole = Porthole(IMAGE_WIDTH, IMAGE_HEIGHT) porthole.set_padding(10) self._porthole = porthole
def test_should_set_padding(self): porthole = Porthole() porthole.set_padding(10)