Text this: Keypoint Detection Based on Curvature Grouping and Adaptive Sampling