Image processing method and image processing apparatus for transforming objects within an image

US12586147B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12586147-B2
Application numberUS-202218263005-A
CountryUS
Kind codeB2
Filing dateJan 4, 2022
Priority dateFeb 7, 2021
Publication dateMar 24, 2026
Grant dateMar 24, 2026

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

The present disclosure provides an image processing method and an image processing apparatus. The image processing method including: performing line detection on a boundary of an object in a scene image to obtain a plurality of candidate lines; taking one of the plurality of the candidate lines, which has the largest number of pixels overlapping with the boundary, as a first reference line; generating a minimum bounding rectangle of the object in the scene image; generating a transformed area, wherein each of four vertexes of the minimum bounding rectangle is on one of four sidelines of the transformed area; transforming a preset image into the transformed area to generate a transformed image; and overlaying the object with the transformed image to update the scene image.

First claim

Opening claim text (preview).

What is claimed is: 1 . An image processing method, comprising: performing line detection on a boundary of an object in a scene image to obtain a plurality of candidate lines; taking one of the plurality of the candidate lines, which has the largest number of pixels overlapping with the boundary, as a first reference line; generating a minimum bounding rectangle of the object in the scene image; generating a transformed area, wherein each of four vertexes of the minimum bounding rectangle is on one of four sidelines of the transformed area, a slope of a first sideline and a slope of a second sideline opposite to the first sideline of the transformed area are determined by a slope of the first reference line, and a slope of a third sideline and a slope of a fourth sideline opposite to the third sideline of the transformed area are determined by a slope of an exterior angle bisector of the first sideline and the second sideline, wherein the generating the transformed area comprises: generating the first sideline passing through a first vertex of the minimum bounding rectangle and the second sideline passing through a second vertex of the minimum bounding rectangle, wherein an angle where the first vertex is located and an angle where the second vertex is located are opposite angles, a difference between the slope of the first sideline and the slope of the first reference line and a difference between the slope of the second sideline and the slope of the first reference line are within a first preset range; generating a second reference line passing through a center point of the minimum bounding rectangle, wherein a slope of the second reference line is the slope of the external angle bisector of the first sideline and the second sideline; generating the third sideline passing through a third vertex of the minimum bounding rectangle and the fourth sideline passing through a fourth vertex of the minimum bounding rectangle, wherein an angle where the third vertex is located and an angle where the fourth vertex is located are opposite angles, a difference between the slope of the third sideline and the slope of the second reference line and a difference between the slope of the fourth sideline and the slope of the second reference line are within a second preset range; and generating the transformed area according to the first sideline, the second sideline, the third sideline and the fourth sideline; transforming a preset image into the transformed area to generate a transformed image; and overlaying the object with the transformed image to update the scene image. 2 . The image processing method according to claim 1 , wherein the slope of the first sideline is greater than the slope of the first reference line and the slope of the second sideline is less than the slope of the first reference line in a case where the slope of the first reference line is less than 0. 3 . The image processing method according to claim 2 , wherein the slope of the first sideline is less than the slope of the first reference line and the slope of the second sideline is greater than the slope of the first reference line in a case where the slope of the first reference line is greater than 0. 4 . The image processing method according to claim 3 , wherein: the difference between the slope of the first sideline and the slope of the first reference line is a ratio of a distance from the first vertex to the first reference line to a first preset parameter; and the difference between the slope of the second sideline and the slope of the first reference line is a ratio of a distance from the second vertex to the first reference line to a second preset parameter. 5 . The image processing method according to claim 4 , wherein the slope of the third sideline is less than the slope of the second reference line and the slope of the fourth sideline is greater than the slope of the second reference line in a case where the slope of the second reference line is greater than 0. 6 . The image processing method according to claim 5 , wherein the slope of the third sideline is greater than the slope of the second reference line and the slope of the fourth sideline is less than the slope of the second reference line in a case where the slope of the second reference line is less than 0. 7 . The image processing method according to claim 6 , wherein: the difference between the slope of the third sideline and the slope of the second reference line is a ratio of a distance from the third vertex to the second reference line to a third preset parameter; and the difference between the slope of the fourth sideline and the slope of the second reference line is a ratio of a distance from the fourth vertex to the second reference line to a fourth preset parameter. 8 . The image processing method according to claim 1 , wherein the transforming a preset image into the transformed area to generate a transformed image comprises: generating a minimum bounding rectangle of the transformed area; splicing repeatedly the preset image in the minimum bounding rectangle of the transformed area to generate a sample image; and transforming the sample image into the transformed area by affine transformation to generate a transformed image. 9 . The image processing method according to claim 1 , further comprising: deleting portions of the transformed image beyond the scene image after overlaying the object with the transformed image. 10 . An image processing apparatus, comprising: a memory; and a processor coupled to the memory, which is configured to execute the image processing method comprising: performing line detection on a boundary of an object in a scene image to obtain a plurality of candidate lines; taking one of the plurality of the candidate lines, which has the largest number of pixels overlapping with the boundary, as a first reference line; generating a minimum bounding rectangle of the object in the scene image; generating a transformed area, wherein each of four vertexes of the minimum bounding rectangle is on one of four sidelines of the transformed area, a slope of a first sideline and a slope of a second sideline opposite to the first sideline of the transformed area are determined by a slope of the first reference line, and a slope of a third sideline and a slope of a fourth sideline opposite to the third sideline of the transformed area are determined by a slope of an exterior angle bisector of the first sideline and the second sideline, wherein the generating the transformed area comprises: generating the first sideline passing through a first vertex of the minimum bounding rectangle and the second sideline passing through a second vertex of the minimum bounding rectangle, wherein an angle where the first vertex is located and an angle where the second vertex is located are opposite angles, a difference between the slope of the first sideline and the slope of the first reference line and a difference between the slope of the second sideline and the slope of the first reference line are within a first preset range; generating a second reference line passing through a center point of the minimum bounding rectangle, wherein a slope of the second reference line is the slope of the external angle bisector of the first sideline and the second sideline; generating the third sideline passing through a third vertex of the minimum bounding rectangle and the fourth sideline passing through a fourth vertex of the minimum bounding rectangle, wherein an angle where the third vertex is located and an angle where the fourth vertex is located are opposite angles, a difference between the slope of the third sideline and the slope of

Assignees

Inventors

Classifications

  • Image subtraction · CPC title

  • Edge detection · CPC title

  • Region-based segmentation · CPC title

  • involving region growing; involving region merging; involving connected component labelling · CPC title

  • Two-dimensional [2D] image generation · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12586147B2 cover?
The present disclosure provides an image processing method and an image processing apparatus. The image processing method including: performing line detection on a boundary of an object in a scene image to obtain a plurality of candidate lines; taking one of the plurality of the candidate lines, which has the largest number of pixels overlapping with the boundary, as a first reference line; gen…
Who is the assignee on this patent?
Beijing Wodong Tianjun Information Technology Co Ltd, Beijing Jingdong Century Trading Co Ltd, Beijing Jingoong Century Trading Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06T3/02. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Mar 24 2026 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 2 related publications on this page (citations in our corpus or others sharing the same primary CPC).