Robust corner and tangent point detection for strokes with deep learning approach

Long Zeng, Zhi-Kai Dong, Yi-Fan XuarXiv 2019 · OpenReview

Abstract

A robust corner and tangent point detection (CTPD) tool is critical for sketch-based engineering modeling. This paper proposes a robust CTPD approach for hand-drawn strokes with deep learning approach. Its robustness for users, stroke shapes and biased datasets is improved due to multiscaled point contexts and a vote scheme. Firstly, all stroke points are classified into segments by two deep learning networks, based on scaled point contexts which mimic human's perception. Then, a vote scheme is adopted to analyze the merge conditions and operations for adjacent segments. If most points agree with a stroke's type, this type is accepted. Finally, new corners and tangent points are inserted at transition points. The algorithm's performance is experimented with 1500 strokes of 20 shapes. Results show that our algorithm can achieve 95.3% for all-or-nothing accuracy and 88.6% accuracy for biased datasets, compared to 84.6% and 71% of the state-of-the-art CTPD technique, which is heuristic and empirical-based.

Introduction

In Sketch-Based Engineering Modeling (SBEM), the primary challenge is converting imprecise, hand-drawn strokes into clean geometric primitives like straight lines and smooth curves. To achieve this, a system must accurately identify feature points: corners (where primitives meet at sharp angles) and tangent points (where they meet smoothly).

Traditional methods rely on heuristics—mathematical rules based on pen speed or local curvature. However, these methods are often brittle, failing when users draw at different speeds or scales. This paper introduces CTPD-DL, a deep-learning-based framework designed to mimic human perception by analyzing points within their broader geometric context.

System Architecture

The CTPD-DL framework operates in two distinct phases: offline training and online detection.

The CTPD-DL framework consists of offline training on labeled stroke databases and an online pipeline utilizing dual ResNet architectures for point classification and segment merging.

As shown in the architecture above, the online detection phase utilizes two specialized Residual Networks (ResNet):

  1. Corner-ResNet: Distinguishes genuine corners from candidate points.
  2. Point-ResNet: Classifies non-corner points as belonging to either a line or a curve segment.

Multi-Scaled Point Contexts

The core innovation of this approach is the use of multi-scaled point contexts. Rather than analyzing a point in isolation, the system generates four image patches centered on the point at varying scales (from 32x32 to 256x256 pixels). This allows the model to capture both local details (fine-grained curvature) and global shape (the overall trajectory of the stroke).

Multi-scaled point contexts allow the model to see a point at different zoom levels, facilitating more accurate classification of points into line or curve segments.

Robustness via Voting and Merging

To handle the inherent noise in individual point classifications, the authors implemented a vote scheme. If a small number of points in a segment are misclassified (e.g., a "curve" point appearing in the middle of a straight line), the system looks at the majority classification of the entire segment. If the majority agrees on a type, the outliers are merged, ensuring geometric consistency across the entire stroke.

Experimental Results

The system was evaluated using a dataset of 1,500 strokes based on 20 common engineering shapes. The dataset included both standard research strokes (TCVD-1000) and a "biased" set (CTPD-500) designed to test the system against varied drawing styles and noise.

  • Accuracy: CTPD-DL achieved an All-or-Nothing (AON) accuracy of 95.3%, significantly outperforming the state-of-the-art TCVD-R method (84.6%).
  • Generalization: On biased datasets, the performance gap widened; CTPD-DL maintained 88.6% accuracy, while heuristic methods dropped to 71%.
  • Efficiency: The system processes a shape in approximately 0.37 seconds, making it suitable for real-time interactive CAD applications.

Conclusion

By combining multi-scale visual contexts with a robust voting logic, CTPD-DL overcomes the limitations of traditional heuristic-based stroke segmentation. Future work will focus on optimizing the Point-ResNet processing time and improving the handling of overlapping stroke ends.

Summary updated

Abstract

A robust corner and tangent point detection (CTPD) tool is critical for sketch-based engineering modeling. This paper proposes a robust CTPD approach for hand-drawn strokes with deep learning approach. Its robustness for users, stroke shapes and biased datasets is improved due to multiscaled point contexts and a vote scheme. Firstly, all stroke points are classified into segments by two deep learning networks, based on scaled point contexts which mimic human's perception. Then, a vote scheme is adopted to analyze the merge conditions and operations for adjacent segments. If most points agree with a stroke's type, this type is accepted. Finally, new corners and tangent points are inserted at transition points. The algorithm's performance is experimented with 1500 strokes of 20 shapes. Results show that our algorithm can achieve 95.3% for all-or-nothing accuracy and 88.6% accuracy for biased datasets, compared to 84.6% and 71% of the state-of-the-art CTPD technique, which is heuristic and empirical-based.
BibTeX
@misc{zeng2019robust,
  author = {Long Zeng and Zhi-Kai Dong and Yi-Fan Xu},
  title = {{Robust corner and tangent point detection for strokes with deep learning approach}},
  year = {2019},
  eprint = {1903.00899},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1903.00899},
}
Figure