# US 2023/0267619 A1 · Method and system of recognizing object edges and computer-readable storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0267619 A1
- Document ID: US20230267619A1
- Status: Published application
- Kind: A1
- Application number: 17/637,801
- Filed: 2021-08-30
- Published: 2023-08-24
- Earliest claimed: 2020-09-21
- Assignees: Hangzhou Glority Software Limited
- Applicants: Hangzhou Glority Software Limited
- Inventors: Qingsong Xu; Qing Li
- Web page: https://patentgrep.com/patent/US20230267619A1

## CPC

- G06T 7/13: Edge detection
- G06T 7/12: Edge-based segmentation
- G06T 7/181: involving edge growing; involving edge linking
- G06V 10/44: Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
- G06V 10/761: {Proximity, similarity or dissimilarity measures}
- G06V 10/82: using neural networks
- G06V 30/147: {Determination of region of interest}
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T 2207/20164: Salient point detection; Corner detection
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A method and system of recognizing object edges and a computer-readable storage medium are provided. The method includes: obtaining an input image, where edges of an object in the input image includes a plurality of object vertices; recognizing, through an object vertex recognition model, the input image and obtaining a relative position of each object vertex and a corresponding image vertex thereof; determining a reference position of each object vertex in the input image according to the relative position of each object vertex and the corresponding image vertex thereof; performing corner point detection in a predetermined area where the reference position of the object vertex is located for each object vertex; determining an actual position of each object vertex in the input image according to a result of the corner point detection; and sequentially connecting adjacent object vertices to form edge lines to obtain the edges of the object with edges in the input image according to the actual position of each object vertex in the input image. By applying the solution provided by the disclosure, the edges of the object with edges may be detected in the image.

## Claims

### Claim 1

A method of recognizing object edges, comprising:
obtaining an input image, wherein the input image comprises an object with edges, and the edges of the object comprise a plurality of object vertices;
recognizing, through an object vertex recognition model, the input image and obtaining a relative position of each of the object vertices and a corresponding image vertex thereof;
determining a reference position of each of the object vertices in the input image according to the relative position of each of the object vertices and the corresponding image vertex thereof;
performing a corner point detection in a predetermined area where the reference position of the object vertex is located for each of the object vertices;
determining an actual position of each of the object vertices in the input image according to a result of the corner point detection; and
sequentially connecting adjacent object vertices to form edge lines to obtain the edges of the object with edges in the input image according to the actual position of each of the object vertices in the input image.

### Claim 2 (depends on 1)

The method of recognizing object edges according to claim 1, wherein the predetermined area where the reference position of the object vertex is located is a circular area with a pixel point at the reference position of the object vertex as a center of the circle and a first predetermined pixel as a radius, and
the step of performing the corner point detection in the predetermined area where the reference position of the object vertex is located for each of the object vertices further comprises:
performing the corner point detection on the pixel point in the circular area corresponding to each of the object vertices; treating all of the pixel points whose feature value variation ranges are greater than a predetermined threshold as candidate corner points during a process of the corner point detection; and determining a target corner point corresponding to each of the object vertices among the candidate corner points.

### Claim 3 (depends on 2)

The method of recognizing object edges according to claim 2, wherein the step of determining the target corner point corresponding to each of the object vertices among the candidate corner points further comprises:
step A1, sorting the candidate corner points in a descending order according to the feature value variation ranges, wherein the candidate corner point ranked first is determined as the target corner point, and the candidate corner point ranked second is determined as a current corner point to be selected;
step A2, determining whether all distances between the current corner point to be selected and all current target corner points are greater than a second predetermined pixel, wherein step A3 is performed if all distances between the current corner point to be selected and all current target corner points are greater than the second predetermined pixel—is determined, otherwise, step A4 is performed;
step A3, determining the current corner point to be selected as the target corner point; and
step A4, discarding the current corner point to be selected, determining the candidate corner point ranked next as the current corner point to be selected, and performing step A2 again.

### Claim 4 (depends on 3)

The method of recognizing object edges according to claim 3, wherein a range of the second predetermined pixel is ≥50 pixels.

### Claim 5 (depends on 2)

The method of recognizing object edges according to claim 2, wherein a range of the first predetermined pixel is 10 to 20 pixels.

### Claim 6 (depends on 2)

The method of recognizing object edges according to claim 2, wherein the step of determining the actual position of each of the object vertices in the input image according to the result of the corner point detection further comprises:
for each of the object vertices, if the result of the corner point detection of the object vertex comprises a corner point, determining a position of the corner point as the actual position of the object vertex in the input image; or if the result of the corner point detection of the object vertex does not comprise a corner point, determining the reference position of the object vertex in the input image as the actual position of the object vertex in the input image.

### Claim 7 (depends on 1)

The method of recognizing object edges according to claim 1, wherein the step of obtaining the relative position of each of the object vertices and the corresponding image vertex thereof further comprises:
obtaining the relative position of the object vertex and the image vertex closest to the object vertex in the input image for each of the object vertices.

### Claim 8 (depends on 7)

The method of recognizing object edges according to claim 7, wherein the step of determining the reference position of each of the object vertices in the input image according to the relative position of each of the object vertices and the corresponding image vertex thereof further comprises:
converting the relative position of the object vertex and the image vertex closest to the object vertex in the input image into coordinates of the object vertex in a target coordinate system to obtain the reference position of the object vertex in the input image for each of the object vertices.

### Claim 9 (depends on 8)

The method of recognizing object edges according to claim 8, wherein an origin of the target coordinate system is a position point of the input image.

### Claim 10 (depends on 1)

The method of recognizing object edges according to claim 1, further comprising:
correcting the object with edges by using the edge lines.

### Claim 11 (depends on 10)

The method of recognizing object edges according to claim 10, wherein four object vertices are provided and four edge lines are provided, which are a first line, a second line, a third line, and a fourth line in sequence, the first line and the third line are arranged in a first direction, the second line and the fourth line are arranged in a second direction, and the first direction is perpendicular to the second direction,
the step of correcting the object with edges by using the edge lines further comprises:
obtaining projection lengths of the first line and the third line in the second direction separately and obtaining projection lengths of the second line and the fourth line in the first direction separately;
calculating an average value of the projection lengths of the first line and the third line in the second direction to act as a corrected length of the object with edges in the second direction; and
calculating an average value of the projection lengths of the second line and the fourth line in the first direction to act as a corrected length of the object with edges in the first direction.

### Claim 12 (depends on 1)

The method of recognizing object edges according to claim 1, wherein the object vertex recognition model is a neural network model.

### Claim 13 (depends on 1)

A system of recognizing object edges, comprising a processor and a memory, wherein the memory stores a command, and the steps of the method according to claim 1 are implemented when the command is executed by the processor.

### Claim 14 (depends on 1)

A non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores a command, and the steps of the method according to claim 1 are implemented when the command is executed.
