def METHOD_NAME(self):
    bbox_rect_geo = self.polyline.boundingRect()
    self.bottom_left = bbox_rect_geo.bottomLeft()
    self.upper_right = bbox_rect_geo.topRight()
    self.corner_points.clear()
    self.corner_points.extend([
        self.bottom_left,
        bbox_rect_geo.topLeft(),
        self.upper_right,
        bbox_rect_geo.bottomRight(),
    ])
    self.w = self.corner_points[3].x() - self.corner_points[1].x()
    self.h = self.corner_points[3].y() - self.corner_points[1].y()
    if self.corner_points[1].x() > 512 or self.corner_points[1].x(
    ) + self.w > 512:
        pass
    if self.corner_points[1].y() > 512 or self.corner_points[1].y(
    ) + self.h > 512:
        pass
    return self.corner_points