# US 12,192,616 B2 · Photographing method and apparatus

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

- Number: US 12,192,616 B2
- Document ID: US12192616B2
- Status: Granted
- Kind: B2
- Application number: 18/184,773
- Filed: 2023-03-16
- Published: 2023-07-13
- Granted: 2025-01-07
- Earliest claimed: 2020-09-17
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Feilong Ma; Cong Zhao; Rui Chen; Yuanqiang Wang; Yu Li; Xingguang Song
- Web page: https://patentgrep.com/patent/US12192616B2

## CPC

- H04N 5/272: Means for inserting a foreground image in a background image, i.e. inlay, outlay
- H04N 23/632: {for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters}
- G06T 7/194: involving foreground-background segmentation
- G06T 7/70: Determining position or orientation of objects or cameras (camera calibration G06T7/80)
- H04N 5/265: Mixing
- H04N 23/61: based on recognised objects
- H04N 23/63: by using electronic viewfinders
- H04N 23/64: {Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image}
- H04N 23/667: Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
- G06T 2207/20021: Dividing image into blocks, subimages or windows
- G06T 2207/30196: Human being; Person
- H04N 5/2226: {Determination of depth image, e.g. for foreground/background separation (determining depth by image analysis in general G06T7/50; segmentation by image analysis in general G06T7/10)}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

The present disclosure discloses a photographing method and an apparatus in, relates to the photographing field and the field of image processing technologies. When multiple people take a group photo, no help from a third party is required. Therefore, implementation is convenient, and user satisfaction with a group photo result can be improved, thereby improving user experience. The method includes: obtaining a first image including an image of a first photographing background and a first to-be-photographed subject; then displaying a first preview interface, the first preview image includes an image of a second photographing background and an image of a second to-be-photographed subject, and a degree of coincidence between the image of the second photographing background and the image of the first photographing background is greater than or equal to a preset degree of coincidence; obtaining a target image based on the first image and the first preview image.

## Claims

### Claim 1

A photographing method, applied to a terminal, wherein the terminal is configured to photograph a plurality of to-be-photographed subjects including a first to-be-photographed subject and a second to-be-photographed subject, and the method comprises:
obtaining a first image including an image of a first photographing background and an image of the first to-be-photographed subject;
displaying a first preview interface including a first preview image, wherein the first preview image comprises an image of a second photographing background and an image of the second to-be-photographed subject, and a degree of coincidence between the image of the second photographing background and the image of the first photographing background is greater than or equal to a threshold degree of coincidence; and
obtaining a target image based on the first image and the first preview image, wherein the target image comprises the image of the first to-be-photographed subject and the image of the second to-be-photographed subject.

### Claim 2 (depends on 1)

The method according to claim 1, wherein before the displaying a first preview interface, the method further comprises:
displaying a second preview interface, wherein the second preview interface comprises a second preview image and first information, the second preview image comprises an image of a third photographing background and the image of the second to-be-photographed subject, and the first information indicates adjusting an image of a photographing background in a current preview image of the terminal.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the first information indicates at least one of the following:
a degree of coincidence between the image of the third photographing background and the image of the first photographing background is less than the threshold degree of coincidence; or
a target position of the terminal.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the first preview interface further comprises:
second information, wherein the second information indicates at least one of a position, a pose, or a size of the image of the first to-be-photographed subject in the image of the second photographing background.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the second information comprises:
a contour of the image of the first to-be-photographed subject; or
a translucent image of the image of the first to-be-photographed subject.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the obtaining a first image comprises:
outputting third information indicating that the second to-be-photographed subject is a user who photographs the first image;
displaying a third preview image after outputting the third information, wherein the third preview image comprises the image of the first photographing background and the image of the first to-be-photographed subject; and
determining the third preview image as the first image, or determining, as the first image, an image obtained by processing the third preview image.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the outputting third information comprises:
displaying a target photographing template indicating the third information and a position relationship between the plurality of to-be-photographed subjects.

### Claim 8 (depends on 6)

The method according to claim 6, further comprising:
displaying a target photographing template indicating a position relationship between the plurality of to-be-photographed subjects; and
the outputting third information comprises:
outputting the third information based on the target photographing template.

### Claim 9 (depends on 1)

The method according to claim 1, wherein
a user who photographs the first image is a to-be-photographed subject, in the plurality of to-be-photographed subjects, whose range of coincidence with another to-be-photographed subject is less than or equal to a threshold range of coincidence;
a user who photographs the first image is a to-be-photographed subject closest to the terminal in the plurality of to-be-photographed subjects; or
a user who photographs the first image is a to-be-photographed subject, in the plurality of to-be-photographed subjects, whose distance from another to-be-photographed subject is greater than a distance threshold.

### Claim 10 (depends on 1)

The method according to claim 1, wherein the obtaining a target image based on the first image and the first preview image comprises:
performing image segmentation on the first image based on the image of the second photographing background to obtain the image of the first to-be-photographed subject, and obtaining the target image based on the image of the first to-be-photographed subject and the first preview image; or
performing image segmentation on the first preview image based on the image of the first photographing background to obtain the image of the second to-be-photographed subject, and obtaining the target image based on the image of the second to-be-photographed subject and the first preview image.

### Claim 11

A terminal, configured to photograph a plurality of to-be-photographed subjects including a first to-be-photographed subject and a second to-be-photographed subject, and the terminal comprises:
at least one processor, configured to obtain a first image including an image of a first photographing background and an image of the first to-be-photographed subject; and
a display, configured to display a first preview interface including a first preview image, wherein the first preview image comprises an image of a second photographing background and an image of the second to-be-photographed subject, and a degree of coincidence between the image of the second photographing background and the image of the first photographing background is greater than or equal to a threshold degree of coincidence; and
the at least one processor is further configured to obtain a target image based on the first image and the first preview image, wherein the target image comprises the image of the first to-be-photographed subject and the image of the second to-be-photographed subject.

### Claim 12 (depends on 11)

The terminal according to claim 11, wherein
the display is further configured to display a second preview interface before the first preview interface is displayed, the second preview interface comprises a second preview image and first information, the second preview image comprises an image of a third photographing background and the image of the second to-be-photographed subject, and the first information indicates adjusting an image of a photographing background in a current preview image of the terminal.

### Claim 13 (depends on 12)

The terminal according to claim 12, wherein the first information indicates at least one of the following:
a degree of coincidence between the image of the third photographing background and the image of the first photographing background is less than the threshold degree of coincidence; or
a target position of the terminal.

### Claim 14 (depends on 11)

The terminal according to claim 11, wherein the first preview interface further comprises:
second information indicating at least one of a position, a pose, or a size of the image of the first to-be-photographed subject in the image of the second photographing background.

### Claim 15 (depends on 14)

The terminal according to claim 14, wherein the second information comprises:
a contour of the image of the first to-be-photographed subject; or
a translucent image of the image of the first to-be-photographed subject.

### Claim 16 (depends on 11)

The terminal according to claim 11, wherein the terminal further comprises:
an outputter, configured to output third information indicating that the second to-be-photographed subject is a user who photographs the first image; and
the display is further configured to display a third preview image after the output outputs the third information, wherein the third preview image comprises the image of the first photographing background and the image of the first to-be-photographed subject,
the third preview image is determined as the first image, or an image obtained by processing the third preview image is determined as the first image.

### Claim 17 (depends on 16)

The terminal according to claim 16, wherein
the display is further configured to display a target photographing template indicating a position relationship between the plurality of to-be-photographed subjects; and
the third information is output based on the target photographing template.

### Claim 18 (depends on 11)

The terminal according to claim 11, wherein
a user who photographs the first image is a to-be-photographed subject, in the plurality of to-be-photographed subjects, whose range of coincidence with another to-be-photographed subject is less than or equal to a threshold range of coincidence;
a user who photographs the first image is a to-be-photographed subject closest to the terminal in the plurality of to-be-photographed subjects; or
a user who photographs the first image is a to-be-photographed subject, in the plurality of to-be-photographed subjects, whose distance from another to-be-photographed subject is greater than a threshold distance.

### Claim 19 (depends on 11)

The terminal according to claim 11, wherein the obtaining of the target image based on the first image and the first preview image comprises:
performing image segmentation on the first image based on the image of the second photographing background to obtain the image of the first to-be-photographed subject, and obtaining the target image based on the image of the first to-be-photographed subject and the first preview image; or
performing image segmentation on the first preview image based on the image of the first photographing background to obtain the image of the second to-be-photographed subject, and obtaining the target image based on the image of the second to-be-photographed subject and the first preview image.

### Claim 20

A terminal, comprising at least one processor, at least one memory, and a display, wherein the display is configured to display an image, the at least one memory is configured to store a computer program, including instructions that, when executed by the at least one processor, cause the terminal to perform operations comprising:
obtaining a first image including an image of a first photographing background and an image of a first to-be-photographed subject;
displaying a first preview interface including a first preview image, wherein the first preview image comprises an image of a second photographing background and an image of a second to-be-photographed subject, and a degree of coincidence between the image of the second photographing background and the image of the first photographing background is greater than or equal to a threshold degree of coincidence; and
obtaining a target image based on the first image and the first preview image, wherein the target image comprises the image of the first to-be-photographed subject and the image of the second to-be-photographed subject.
