Back to results
US 12,762,820 B2Granted
Region recognition method and region recognition device
AssigneeLenovo (Beijing) Limited
InventorsZhongtao Han, Peng Chen, Peifa Yan
Life of this patent
Estimating the term…
Abstract
A region recognition method includes obtaining a scene image of a scene to-be-recognized; determining a specified boundary curve of the scene image; generating a contour map corresponding to the scene image according to the specified boundary curve; and determining a target region in the scene according to the contour map.
Claims19
A region recognition method, comprising:
- obtaining a scene image of a scene to-be-recognized;
- determining a specified boundary curve of the scene image, the specified boundary curve comprising a Bezier curve;
- generating a contour map corresponding to the scene image according to the specified boundary curve, wherein the generating the contour map comprises discretizing the Bezier curve by setting a step size of a curve parameter t to obtain a plurality of discrete points, determining a normal vector of each of the plurality of discrete points, determining, through the normal vector of each discrete point, a height of the discrete point on the Bezier curve relative to a horizontal plane, calculating a plurality of contour lines according to the heights, and rendering a plurality of regions corresponding to the plurality of contour lines to obtain the contour map;
- and
- determining a target region in the scene according to the contour map.
2 more elements
An electronic device, comprising:
- one or more processors;
- and
- a memory coupled to the one or more processors and storing computer program instructions that, when being executed, cause the one or more processors to perform:
- obtaining a scene image of a scene to-be-recognized;
- determining a specified boundary curve of the scene image, the specified boundary curve comprising a Bezier curve;
- generating a contour map corresponding to the scene image according to the specified boundary curve, wherein the generating the contour map comprises discretizing the Bezier curve by setting a step size of a curve parameter t to obtain a plurality of discrete points, determining a normal vector of each of the plurality of discrete points, determining, through the normal vector of each discrete point, a height of the discrete point on the Bezier curve relative to a horizontal plane, calculating a plurality of contour lines according to the heights, and rendering a plurality of regions corresponding to the plurality of contour lines to obtain the contour map;
- and
- determining a target region in the scene according to the contour map.
5 more elements
A non-transitory computer readable storage medium containing computer program instructions that, when being executed, cause one or more processors to perform:
- obtaining a scene image of a scene to-be-recognized;
- determining a specified boundary curve of the scene image, the specified boundary curve comprising a Bezier curve;
- generating a contour map corresponding to the scene image according to the specified boundary curve, wherein the generating the contour map comprises discretizing the Bezier curve by setting a step size of a curve parameter t to obtain a plurality of discrete points, determining a normal vector of each of the plurality of discrete points, determining, through the normal vector of each discrete point, a height of the discrete point on the Bezier curve relative to a horizontal plane, calculating a plurality of contour lines according to the heights, and rendering a plurality of regions corresponding to the plurality of contour lines to obtain the contour map;
- and
- determining a target region in the scene according to the contour map.
2 more elements
Dependencies are inferred from the claim text.