Exemplo n.º 1
0
 def to_dlib_rect(self):
     """ Return Bounding Box as Dlib Rectangle """
     left = self.x
     top = self.y
     right = self.x + self.w
     bottom = self.y + self.h
     return d_rectangle(left, top, right, bottom)
Exemplo n.º 2
0
 def to_dlib_rect(self):
     """ Return Bounding Box as Dlib Rectangle """
     left = self.x
     top = self.y
     right = self.x + self.w
     bottom = self.y + self.h
     retval = d_rectangle(left, top, right, bottom)
     logger.trace("Returning: %s", retval)
     return retval