# US 2025/0166138 A1 · Object and road contour adjustment method and apparatus, device, storage medium, and program product

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

- Number: US 2025/0166138 A1
- Document ID: US20250166138A1
- Status: Published application
- Kind: A1
- Application number: 19/035,602
- Filed: 2025-01-23
- Published: 2025-05-22
- Earliest claimed: 2023-01-04
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Jinyan LIU
- Web page: https://patentgrep.com/patent/US20250166138A1

## CPC

- G06T 5/70: Denoising; Smoothing
- G06T 7/12: Edge-based segmentation
- G06T 7/50: Depth or shape recovery
- 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/46: Descriptors for shape, contour or point-related descriptors, e.g. scale invariant feature transform [SIFT] or bags of words [BoW]; Salient regional features (colour feature extraction G06V10/56)
- G06V 20/588: {Recognition of the road, e.g. of lane markings; Recognition of the vehicle driving pattern in relation to the road}
- G06T 2207/20101: Interactive definition of point of interest, landmark or seed
- G06T 2207/30181: Earth observation
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

An object contour adjustment method including: obtaining a target image, the target image including a target object; performing contour recognition on the target object to obtain a reference contour, the reference contour including a plurality of reference key points, which are the key points on corners of the reference contour; determining a gradient change result corresponding to each of the plurality of reference key points, the gradient change result corresponding to the reference key point being configured for indicating an angle between contour edges obtained by connecting adjacent reference key points in the reference contour; determining the reference key point that meets the gradient change condition as a target key point; and determining a target contour corresponding to the target object based on key point connection results among the plurality of target key points, contour edge flatness of the target contour being higher than that of the reference contour.

## Claims

### Claim 1

An object contour adjustment method, performed by a computer device, the method comprising:
obtaining a target image, the target image comprising a target object;
obtaining a reference contour by performing contour recognition on the target object, the reference contour comprising a plurality of reference key points, the plurality of reference key points being key points on corners of the reference contour;
determining a gradient change result corresponding to each of the plurality of reference key points, the gradient change result corresponding to the reference key point being configured to indicate an angle between contour edges, the contour edges being obtained by connecting adjacent reference key points in the reference contour;
determining the reference key points in the plurality of reference key points as a plurality of target key points when the reference key points meet a gradient change condition; and
determining a target contour corresponding to the target object based on a plurality of key point connection results of the plurality of target key points, a contour edge flatness of the target contour being higher than a contour edge flatness of the reference contour.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the reference contour is an irregular-shaped contour.

### Claim 3 (depends on 1)

The method according to claim 1, wherein determining a gradient change result corresponding to each of the plurality of reference key points comprises:
determining a first adjacent key point and a second adjacent key point corresponding to an nth reference key point, n being a positive integer and not exceeding a quantity of the plurality of reference key points;
determining a first contour edge between the nth reference key point and the first adjacent key point based on the reference contour;
determining a second contour edge between the nth reference key point and the second adjacent key point based on the reference contour; and
determining the gradient change result corresponding to the nth reference key point based on a target angle between the first contour edge, the nth reference key point, and the second contour edge, the target angle being an angle toward an inner side of the reference contour after the first contour edge connects to the second contour edge through the nth reference key point.

### Claim 4 (depends on 1)

The method according to claim 1, wherein determining the reference key points in the plurality of reference key points as a plurality of target key points when the reference key points meet a gradient change condition comprises:
obtaining a preset gradient threshold;
using an nth reference key point as a candidate key point in response to the gradient change result corresponding to an nth reference key point reaching the preset gradient threshold; and
performing a gradient value screening on a plurality of candidate key points and determining the remaining candidate key points after the gradient value screening as the plurality of target key points.

### Claim 5 (depends on 4)

The method according to claim 4, wherein performing a gradient value screening on a plurality of candidate key points and determining the remaining candidate key points after the gradient value screening as the plurality of target key points comprises:
determining a target pixel point range based on pixel point coordinates respectively corresponding to the plurality of candidate key points;
obtaining a gradient sorting result by sorting gradient change results corresponding to at least two candidate key points within the target pixel point range;
obtaining a key point removal result by removing at least one candidate key point from the gradient sorting result; and
using the candidate key point in the key point removal result as the target key point.

### Claim 6 (depends on 1)

The method according to claim 1, wherein obtaining a reference contour by performing contour recognition on the target object comprises:
obtaining a benchmark contour corresponding to the target object, the benchmark contour being configured to indicate a real contour corresponding to the target object, the benchmark contour comprising a plurality of benchmark key points, the plurality of benchmark key points being key points on corresponding edges of the benchmark contour;
calculating a distance between an mth benchmark key point and an (m+1)th benchmark key point, m being a positive integer, and m+1 not exceeding a quantity of the plurality of benchmark key points;
removing the (m+1)th benchmark key point from the plurality of benchmark key points in response to the distance reaching a preset distance threshold; and
using a contour generated from the remaining benchmark key points after the removal as the reference contour, and using the remaining benchmark key points after the removal as the reference key points.

### Claim 7 (depends on 1)

The method according to claim 1, wherein determining a target contour corresponding to the target object based on a plurality of key point connection results of the plurality of target key points comprises:
determining a plurality of target key edges corresponding to the plurality of target key points by using the plurality of target key points as anchor points and performing contour splitting on the reference contour; and
determining the target contour corresponding to the target object by connecting the plurality of target key edges based on a sequence of the plurality of target key points.

### Claim 8 (depends on 7)

The method according to claim 7, wherein determining a plurality of target key edges corresponding to the plurality of target key points by using the plurality of target key points as anchor points and performing contour splitting on the reference contour comprises:
obtaining a key point sorting result by sorting the plurality of target key points based on a specified dimension;
obtaining a key edge by connecting adjacent target key points based on the key point sorting result during traversal of the plurality of target key points; and
obtaining the plurality of target key edges by smoothing a plurality of key edges.

### Claim 9 (depends on 8)

The method according to claim 8, wherein obtaining the plurality of target key edges by smoothing a plurality of key edges comprises:
determining a filtering window and a filter order; and
obtaining the plurality of target key edges by performing filtering and convolution on the plurality of target key edges through a data filter based on the filtering window and the filter order.

### Claim 10 (depends on 1)

The method according to claim 1, wherein a target image is a road image of a specified scene, the road image being an image generated by photographing the specified scene within a specified perspective range, and the road image comprising the target object, the target object being a target road.

### Claim 11

An object contour adjustment apparatus, comprising a memory for storing instructions and a processor for executing the instructions, wherein the processor is configured to:
obtain a target image, the target image comprising a target object;
obtain a reference contour by performing contour recognition on the target object, the reference contour comprising a plurality of reference key points, the reference key points being key points on corners of the reference contour; and
determine a gradient change result corresponding to each of the plurality of reference key points, the gradient change result corresponding to the reference key point being configured to indicate an angle between contour edges, the contour edges being obtained by connecting adjacent reference key points in the reference contour;
determine the reference key points in the plurality of reference key points as a plurality of target key points when the reference key points meet a gradient change condition; and
determine a target contour corresponding to the target object based on a plurality of key point connection results of the plurality of target key points, contour edge flatness of the target contour being higher than a contour edge flatness of the reference contour.

### Claim 12 (depends on 11)

The object contour adjustment apparatus of claim 11, comprising a memory for storing instructions and a processor for executing the instructions, wherein the reference contour is an irregular-shaped contour.

### Claim 13 (depends on 11)

The object contour adjustment apparatus of claim 11, comprising a memory for storing instructions and a processor for executing the instructions, wherein the processor, being configured to determine a gradient change result corresponding to each of the plurality of reference key points, is further configured to:
determine a first adjacent key point and a second adjacent key point corresponding to an nth reference key point, n being a positive integer and not exceeding a quantity of the plurality of reference key points;
determine a first contour edge between the nth reference key point and the first adjacent key point based on the reference contour;
determine a second contour edge between the nth reference key point and the second adjacent key point based on the reference contour; and
determine the gradient change result corresponding to the nth reference key point based on a target angle between the first contour edge, the nth reference key point, and the second contour edge, the target angle being an angle toward an inner side of the reference contour after the first contour edge connects to the second contour edge through the nth reference key point.

### Claim 14 (depends on 11)

The object contour adjustment apparatus of claim 11, comprising a memory for storing instructions and a processor for executing the instructions, wherein the processor, being configured to determine the reference key points in the plurality of reference key points as a plurality of target key points when the reference key points meet a gradient change condition, is further configured to:
obtain a preset gradient threshold;
use an nth reference key point as a candidate key point in response to the gradient change result corresponding to an nth reference key point reaching the preset gradient threshold; and
perform a gradient value screening on a plurality of candidate key points and determine the remaining candidate key points after the gradient value screening as the plurality of target key points.

### Claim 15 (depends on 14)

The object contour adjustment apparatus of claim 14, comprising a memory for storing instructions and a processor for executing the instructions, wherein the processor, being configured to perform a gradient value screening on a plurality of candidate key points and determine the remaining candidate key points after the gradient value screening as the plurality of target key points, is further configured to:
determine a target pixel point range based on pixel point coordinates respectively corresponding to the plurality of candidate key points;
obtain a gradient sorting result by sorting gradient change results corresponding to at least two candidate key points within the target pixel point range;
obtain a key point removal result by removing at least one candidate key point from the gradient sorting result; and
use the candidate key point in the key point removal result as the target key point.

### Claim 16 (depends on 11)

The object contour adjustment apparatus of claim 11, comprising a memory for storing instructions and a processor for executing the instructions, wherein the processor, being configured to obtain a reference contour by performing contour recognition on the target object, is further configured to:
obtain a benchmark contour corresponding to the target object, the benchmark contour being configured to indicate a real contour corresponding to the target object, the benchmark contour comprising a plurality of benchmark key points, the plurality of benchmark key points being key points on corresponding edges of the benchmark contour;
calculate a distance between an mth benchmark key point and an (m+1)th benchmark key point, m being a positive integer, and m+1 not exceeding a quantity of the plurality of benchmark key points;
remove the (m+1)th benchmark key point from the plurality of benchmark key points in response to the distance reaching a preset distance threshold; and
use a contour generated from the remaining benchmark key points after the removal as the reference contour, and use the remaining benchmark key points after the removal as the reference key points.

### Claim 17 (depends on 11)

The object contour adjustment apparatus of claim 11, comprising a memory for storing instructions and a processor for executing the instructions, wherein the processor, being configured to determine a target contour corresponding to the target object based on a plurality of key point connection results of the plurality of target key points, is further configured to:
determine a plurality of target key edges corresponding to the plurality of target key points by using the plurality of target key points as anchor points and performing contour splitting on the reference contour; and
determine the target contour corresponding to the target object by connecting the plurality of target key edges based on a sequence of the plurality of target key points.

### Claim 18 (depends on 11)

The object contour adjustment apparatus of claim 11, comprising a memory for storing instructions and a processor for executing the instructions, wherein a target image is a road image of a specified scene, the road image being an image generated by photographing the specified scene within a specified perspective range, and the road image comprising a target road.

### Claim 19

A non-transitory computer readable medium storing a plurality of instructions, wherein the plurality of instructions, when executed by a processor, configure the processor to:
obtain a target image, the target image comprising a target object;
obtain a reference contour by performing contour recognition on the target object, the reference contour comprising a plurality of reference key points, the reference key points being key points on corners of the reference contour; and
determine a gradient change result corresponding to each of the plurality of reference key points, the gradient change result corresponding to the reference key point being configured to indicate an angle between contour edges, the contour edges being obtained by connecting adjacent reference key points in the reference contour;
determine the reference key points in the plurality of reference key points as a plurality of target key points when the reference key points meet a gradient change condition; and
determine a target contour corresponding to the target object based on a plurality of key point connection results of the plurality of target key points, contour edge flatness of the target contour being higher than a contour edge flatness of the reference contour.

### Claim 20 (depends on 19)

The non-transitory computer readable medium according to claim 19, wherein a target image is a road image of a specified scene, the road image being an image generated by photographing the specified scene within a specified perspective range, and the road image comprising a target road.
