def METHOD_NAME(self, bbox_tlwh):
    """
    TODO:
        Convert bbox from xtl_ytl_w_h to xc_yc_w_h
    Thanks JieChen91@github.com for reporting this bug!
    """
    x, y, w, h = bbox_tlwh
    x1 = max(int(x), 0)
    x2 = min(int(x + w), self.width - 1)
    y1 = max(int(y), 0)
    y2 = min(int(y + h), self.height - 1)
    return x1, y1, x2, y2