Hostname: page-component-74656f9884-6grmk Total loading time: 0 Render date: 2026-11-05T23:26:39.104Z Has data issue: false hasContentIssue false

RGB-based line segment detection and processing for fabric corner recognition and robotic grasping

Published online by Cambridge University Press:  22 September 2026

Ziyue Hao
Affiliation:
State Key Laboratory of Fluid Power and Mechatronic Systems, School of Mechanical Engineering, Zhejiang University, Hangzhou, China
Ze’an Liu
Affiliation:
China Mobile (Hangzhou) Information Technology Co., Ltd., Hangzhou, China
Shuo Yang
Affiliation:
State Key Laboratory of Fluid Power and Mechatronic Systems, School of Mechanical Engineering, Zhejiang University, Hangzhou, China
Feng Pan
Affiliation:
Zhejiang Sunny Optical Intelligence Technology Co., Ltd., Hangzhou, China
Xuanyin Wang*
Affiliation:
State Key Laboratory of Fluid Power and Mechatronic Systems, School of Mechanical Engineering, Zhejiang University, Hangzhou, China
*
Corresponding author: Xuanyin Wang; Email: xywang@zju.edu.cn
Rights & Permissions [Opens in a new window]

Abstract

To address the difficulty of deploying complex grasping point detection methods in fabric unfolding and folding tasks for smart homes and automated production lines, this paper presents an RGB-based robotic grasping system for fabric corner recognition, targeting small- to medium-sized solid-color fabrics. For thin and deformable fabrics, ordinary depth cameras often provide unstable local depth measurements at lifted or folded corners, making precise corner height estimation difficult, while introducing depth sensing also increases hardware complexity and computational cost. Therefore, this work adopts an RGB-only perception setting and builds on a line segment detector (LSD)-enhanced line perception pipeline and a Line Segment Classification, Deletion, and Completion Tool (LS-CDCT) to recover task-relevant line structures and corner cues from 2D images. Based on the recovered line segment chains, a geometric fabric corner detection algorithm is developed for robust recognition of visible fabric corners. The detected corner points are further integrated into a single-arm robotic system with a corner-driven grasping strategy for automatic fabric corner grasping. Experiments were conducted on 160 fabric images containing 489 visible fabric corners under different postures, backgrounds, lighting conditions, image acquisition settings, and image sizes. The proposed method achieves a corner recognition rate of 92.84%. In 100 recognition-and-grasping trials, the overall corner-grasping success rate reaches 92.00%, and the grasping success rate conditioned on correct corner recognition reaches 100.00%. The results demonstrate the effectiveness of the proposed line perception and structural recovery framework for lightweight robotic fabric handling.

Information

Type
Research Article
Copyright
© The Author(s), 2026. Published by Cambridge University Press
Figure 0

Figure 1. Figure 1 long description.Overview of the LS-CDCT-based structural recovery process. The figure shows the main stages of line processing, including resolution-aware preprocessing, LSD line detection, segment repair/filtering/merging, segment completion and chain construction, and edge/internal chain filtering with corner completion. Representative local changes during line refinement are highlighted by red circles and zoom-in views.

Figure 1

Figure 2. Figure 2 long description.Comparison of line segment detection results before and after preprocessing.

Figure 2

Figure 3. Figure 3 long description.Illustration of the LS-CDCT structural recovery process. (a) Raw line detections after preprocessing. (b) Restoration of short but useful boundary fragments. (c) Filtering of residual short noisy segments. (d) Merging of overlapping or nearly parallel segments. (e) Splitting of each restored segment into two directional sub-segments for Tail-Seeking. (f) Completion of previously unconnected segment fragments into more continuous edge-supporting structures. Red circles and zoom-in views highlight representative local regions during the refinement process.

Figure 3

Figure 4. Figure 4 long description.Illustration of edge/internal chain filtering. (a) Local endpoint analysis of two line segment chains, where red indicates the presence of nonzero pixels in the corresponding direction and green indicates the absence of nonzero pixels. (b) Edge/internal classification results for the same local example. (c) Filtering result of the corresponding local line segment chains after applying the edge/internal chain decision.

Figure 4

Figure 5. Figure 5 long description.Illustration of corner completion and pruning. Stage 1 shows the classification of two types of candidate corners, where red circles indicate Type I corners and green circles indicate Type II corners. Stage 2 shows the corresponding processing results for the two corner types. Stage 3 shows the final results after pruning and filtering.

Figure 5

Figure 6. Figure 6 long description.Some fabric corners (green circles) and non-fabric corners (red circles).

Figure 6

Figure 7. Figure 7 long description.Special selection of internal and external corner points. I shows the convexity/concavity analysis of external fabric corners (point 1 represents a concave state, point 2 represents a convex state). The point labeled as center denotes the fabric center, defined as the centroid of the convex hull formed by the endpoints of the refined line segment chains. II shows the crease existence analysis for internal fabric corners.

Figure 7

Figure 8. Figure 8 long description.Corner detection results for images with different resolution sizes.

Figure 8

Figure 9. Figure 9 long description.System overview and standard flowchart of the corner-to-grasp execution procedure. The upper part shows the robotic fabric corner recognition and grasping setup, and the lower part shows the feedback-guided execution workflow. In the flowchart, d$d$ denotes the camera-to-platform height, δ$\delta$ denotes the clearance offset above the platform, and z=d−δ$z=d-\delta$ denotes the grasping plane used for coordinate transformation.

Figure 9

Figure 10. Figure 10 long description.Partial fabric sample images. In the figure, (a), (b), and (g) show images of 27 cm ×$\times$27 cm towels in different colors under various conditions; (d) and (f) show images of 50 cm×$\times$50 cm towels in different colors under various conditions; (c), (e), and (h) show images of 70 cm×$\times$ 32 cm towels in different colors under various conditions.

Figure 10

Figure 11. Figure 11 long description.Representative fabric corner recognition results on the collected dataset. Green annotations indicate external fabric corners, and red annotations indicate internal fabric corners. The short line drawn at each detected corner denotes the corresponding corner bisector direction, which is further used as the mapped grasping direction in robotic execution. Subfigures (a) and (b) show results for low-resolution small fabrics; (c)–(f) show results for low-resolution medium-sized fabrics with different colors; (g) shows results for a high-resolution small fabric; and (h) shows results for a high-resolution medium-sized fabric. A legend is included in the figure for clarity.

Figure 11

Table I. Average time consumption of different stages in the detection pipeline.Table I long description.

Figure 12

Table II. Compact theoretical time and space complexity comparison.Table II long description.

Figure 13

Table III. Quantitative comparison with traditional geometry-based baselines and detector-replacement variants.Table III long description.

Figure 14

Figure 12. Figure 12 long description.Examples of false positives or missed detections.

Figure 15

Figure 13. Figure 13 long description.Robot fabric corner recognition and grasping system.

Figure 16

Figure 14. Figure 14 long description.Representative robotic grasping examples under two image capture heights. (I) shows the grasping process at a capture height of 350 mm, and (II) shows the grasping process at a capture height of 600 mm. In each group, (a) shows image capture, (b) shows grasp initiation, (c) shows repeated grasping attempt, and (d) shows successful corner grasping.

Figure 17

Table IV. Robotic grasping performance under repeated post-grasp reconfiguration trials.Table IV long description.

Figure 18

Table V. Capability-limit recognition results on non-rectangular fabrics.Table V long description.

Figure 19

Figure 15. Figure 15 long description.Supplementary corner recognition results on non-rectangular fabrics without changing the main parameter settings. From left to right: triangular fabrics, irregular quadrilateral fabrics, and polygonal fabrics. The method remains effective for corners whose geometry is close to the rectangular-case angular assumptions, whereas the recognition of polygonal external corners becomes less reliable when the corner angles deviate more significantly.

Figure 20

Table A1. Main parameter settings used in the proposed frameworkTable A2 long description.

Figure 21

Table A2. Compact one-at-a-time robustness verification for representative parametersTable A2 long description.

Figure 22

Algorithm 1. Repair and filter short line segmentsAlgorithm 1 long description.

Figure 23

Algorithm 2. Merge parallel or overlapping line segmentsAlgorithm 2 long description.

Figure 24

Algorithm 3. Tail-Seeking and line segment chain constructionAlgorithm 3 long description.

Figure 25

Algorithm 4. Edge/internal chain filteringAlgorithm 4 long description.

Figure 26

Algorithm 5. Corner completion: Projection and replacement pointsAlgorithm 5 long description.

Figure 27

Algorithm 6. Corner completion: Type I/II corner handling and pruningAlgorithm 6 long description.