(points, color=[192,0,0])
| 23 | return max_iou, max_idx |
| 24 | |
| 25 | def paint_points(points, color=[192,0,0]): |
| 26 | color = np.array([color]) |
| 27 | new_pts = np.zeros([points.shape[0],6]) |
| 28 | new_pts[:,:3] = points |
| 29 | new_pts[:, 3:] = new_pts[:, 3:] + color |
| 30 | return new_pts.astype(np.float32) |
| 31 | |
| 32 | def cal_corner_after_rotation(corner, center, r): |
| 33 | x1, y1 = corner |