Esempio n. 1
0
 def ellipse(img, area: Extent, color, border_thickness):
     cv.ellipse(img,
                area.get_center().as_point(),
                (area.get_size() / 2).as_point(), 0, 0, 360, color,
                border_thickness)
Esempio n. 2
0
 def set_area(self, area: Extent):
     self.position = area.get_upper_left
     self.size = area.get_size()
     self.area = area