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)
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