English

Freehand Sketch Generation from Mechanical Components

Computer Vision and Pattern Recognition 2024-08-22 v2 Artificial Intelligence Graphics Multimedia

Abstract

Drawing freehand sketches of mechanical components on multimedia devices for AI-based engineering modeling has become a new trend. However, its development is being impeded because existing works cannot produce suitable sketches for data-driven research. These works either generate sketches lacking a freehand style or utilize generative models not originally designed for this task resulting in poor effectiveness. To address this issue, we design a two-stage generative framework mimicking the human sketching behavior pattern, called MSFormer, which is the first time to produce humanoid freehand sketches tailored for mechanical components. The first stage employs Open CASCADE technology to obtain multi-view contour sketches from mechanical components, filtering perturbing signals for the ensuing generation process. Meanwhile, we design a view selector to simulate viewpoint selection tasks during human sketching for picking out information-rich sketches. The second stage translates contour sketches into freehand sketches by a transformer-based generator. To retain essential modeling features as much as possible and rationalize stroke distribution, we introduce a novel edge-constraint stroke initialization. Furthermore, we utilize a CLIP vision encoder and a new loss function incorporating the Hausdorff distance to enhance the generalizability and robustness of the model. Extensive experiments demonstrate that our approach achieves state-of-the-art performance for generating freehand sketches in the mechanical domain. Project page: https://mcfreeskegen.github.io .

Keywords

Cite

@article{arxiv.2408.05966,
  title  = {Freehand Sketch Generation from Mechanical Components},
  author = {Zhichao Liao and Di Huang and Heming Fang and Yue Ma and Fengyuan Piao and Xinghui Li and Long Zeng and Pingfa Feng},
  journal= {arXiv preprint arXiv:2408.05966},
  year   = {2024}
}

Comments

Published at ACM Multimedia (ACM MM) 2024

R2 v1 2026-06-28T18:10:08.852Z