IP Library › Granted Patent US 12,432,445
Granted Patent B2
US 12,432,445 · App. 18/029,144 · Granted Sep 30, 2025

Shooting method and electronic device based on quantity of shot objects and holding state

Inventor: Banghui Yang (Shenzhen, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
H04N23/667H04N23/61H04N23/632
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,432,445
App. No.
18/029,144
Filed
Mar 29, 2023
Granted
Sep 30, 2025
Kind
B2
Art Unit
2638
USPC
348/207.99
Abstract

Embodiments of this application disclose a shooting method and an electronic device, and relate to the field of image processing, to obtain relatively good image quality without manual adjustment performed by a user. A specific solution is as follows: When shooting is started, the electronic device determines a quantity of shot objects and/or a holding state, where the holding state includes a first state in which a display screen is a landscape screen or a second state in which the display screen is a portrait screen. The electronic device sets a shooting parameter based on the determined quantity of the shot objects and/or the holding state, where the shooting parameter is a parameter used when the electronic device performs shooting. The electronic device obtains a first preview image based on the shooting parameter, and displays the first preview image on a display screen.

Claims (98)

1. A method, comprising:

determining, by an electronic device having a shooting function, a quantity of shot objects that can be clearly imaged and a holding state when shooting is started, wherein the holding state comprises a first state in which a display screen of the electronic device is a landscape screen or a second state in which the display screen is a portrait screen;

setting, by the electronic device, at least one shooting parameter based on the quantity of the shot objects and the holding state using a relationship rule,

wherein the at least one shooting parameter is used when the electronic device performs the shooting,

wherein the relationship rule maps a first quantity of shot objects and the first state to at least a first shooting parameter,

wherein the relationship rule maps a second quantity of shot objects and the first state to at least a second shooting parameter,

wherein the relationship rule maps the first quantity of shot objects and the second state to at least a third shooting parameter,

wherein the relationship rule maps the second quantity of shot objects and the second state to at least a fourth shooting parameter,

wherein the first quantity and the second quantity are different from each other, and

wherein the first shooting parameter, the second shooting parameter, the third shooting parameter, and the fourth shooting parameter are different from one another;

obtaining, by the electronic device, a first preview image based on the at least one shooting parameter; and

displaying, by the electronic device, the first preview image on the display screen.

2. The method according to claim 1 , wherein the method further comprises:

before the determining:

obtaining, by the electronic device, a second preview image based on a current shooting parameter, and

wherein the determining, by the electronic device, the at least one of the quantity of the shot objects or the holding state comprises:

determining, by the electronic device, the at least one of the quantity of the shot objects or the holding state based on the second preview image.

3. The method according to claim 1 , wherein the electronic device determines the holding state, and the at least one shooting parameter comprises an output image ratio, and wherein the setting, by the electronic device, the at least one shooting parameter comprises:

based on that the holding state is the first state, setting, by the electronic device, the output image ratio to a first output image ratio; or

based on that the holding state is the second state, setting, by the electronic device, the output image ratio to a second output image ratio.

4. The method according to claim 3 , wherein the first output image ratio is 16:9, and wherein the second output image ratio is 4:3.

5. The method according to claim 3 , wherein the electronic device further determines the quantity of the shot objects, the at least one shooting parameter further comprises a field of view (FOV), and the setting, by the electronic device, the at least one shooting parameter comprises:

determining, by the electronic device, that the quantity of the shot objects is greater than a first threshold, and setting the FOV to a first FOV; or

determining, by the electronic device, that the quantity of the shot objects is less than the first threshold and that the holding state is the first state, and setting the FOV to a second FOV; or

determining, by the electronic device, that the quantity of the shot objects is less than the first threshold and that the holding state is the second state, and setting the FOV to a third FOV,

wherein the first FOV is greater than the second FOV, and the second FOV is greater than the third FOV.

6. The method according to claim 5 , wherein the first FOV is 100 degrees, the second FOV is 90 degrees, and the third FOV is 78 degrees.

7. The method according to claim 5 ,

wherein the electronic device is provided with a first camera and a second camera, and a second maximum FOV of the second camera is greater than a first maximum FOV of the first camera, and

wherein, based on that the electronic device sets the FOV to the first FOV, and the first FOV is greater than the first maximum FOV of the first camera, the electronic device performs the shooting by using the second camera, or

wherein, based on that the electronic device sets the FOV to the second FOV, and the second FOV is greater than the first maximum FOV of the first camera, the electronic device performs the shooting by using the second camera.

8. The method according to claim 1 , wherein the method further comprises:

before the obtaining, by the electronic device, the first preview image based on the at least one shooting parameter:

displaying, by the electronic device, a second preview image obtained based on a current shooting parameter on the display screen, and

wherein the displaying, by the electronic device, the first preview image on the display screen comprises:

controlling, by the electronic device, the display screen to switch from displaying the second preview image to displaying the first preview image.

9. The method according to claim 1 , wherein the method further comprises:

before the shooting is started:

receiving, by the electronic device, a first operation of a user, wherein the first operation indicates to the electronic device to start the shooting.

10. The method according to claim 1 , wherein the method further comprises:

receiving, by the electronic device, a second operation of a user, wherein the second operation indicates to the electronic device to photograph a currently displayed preview image; and

performing, by the electronic device in response to the second operation, image processing on the currently displayed preview image based on a set shooting image to obtain a corresponding photo and store the corresponding photo.

11. An electronic device, comprising:

a display screen;

one or more processors; and

one or more memories, wherein the one or more memories are coupled to the one or more processors, and the one or more memories store computer instructions,

wherein the electronic device has a shooting function, and

wherein the one or more processors execute the computer instructions to cause the electronic device to perform operations including:

determining at least one of a quantity of shot objects that can be clearly imaged and a holding state when shooting is started, wherein the holding state comprises a first state in which the display screen is a landscape screen or a second state in which the display screen is a portrait screen;

setting at least one shooting parameter based on the quantity of the shot objects and the holding state using a relationship rule,

wherein the at least one shooting parameter is used when the electronic device performs the shooting,

wherein the relationship rule maps a first quantity of shot objects and the first state to at least a first shooting parameter,

wherein the relationship rule maps a second quantity of shot objects and the first state to at least a second shooting parameter,

wherein the relationship rule maps the first quantity of shot objects and the second state to at least a third shooting parameter,

wherein the relationship rule maps the second quantity of shot objects and the second state to at least a fourth shooting parameter,

wherein the first quantity and the second quantity are different from each other, and

wherein the first shooting parameter, the second shooting parameter, the third shooting parameter, and the fourth shooting parameter are different from one another;

obtaining a first preview image based on the at least one shooting parameter; and

displaying the first preview image on the display screen.

12. The electronic device according to claim 11 , the operations further comprising:

before the determining:

obtaining a second preview image based on a current shooting parameter, and

wherein the determining the at least one of the quantity of the shot objects or the holding state comprises:

determining the at least one of the quantity of the shot objects or the holding state based on the second preview image.

13. The electronic device according to claim 11 , wherein the at least one shooting parameter comprises an output image ratio, and wherein the setting, by the electronic device, the at least one shooting parameter comprises:

based on that the holding state is the first state, setting the output image ratio to a first output image ratio; or

based on that the holding state is the second state, setting the output image ratio to a second output image ratio.

14. The electronic device according to claim 13 , wherein the first output image ratio is 16:9, and wherein the second output image ratio is 4:3.

15. The electronic device according to claim 11 , wherein the electronic device further determines the quantity of the shot objects, the at least one shooting parameter further comprises a field of view (FOV), and the setting the at least one shooting parameter comprises:

determining that the quantity of the shot objects is greater than a first threshold, and setting the FOV to a first FOV; or

determining that the quantity of the shot objects is less than the first threshold and that the holding state is the first state, and setting the FOV to a second FOV; or

determining that the quantity of the shot objects is less than the first threshold and that the holding state is the second state, and setting the FOV to a third FOV,

wherein the first FOV is greater than the second FOV, and the second FOV is greater than the third FOV.

16. A non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions that, when executed by an electronic device having a shooting function, cause the electronic device to perform operations, the operations comprising:

determining at least one of a quantity of shot objects that can be clearly imaged and a holding state when shooting is started, wherein the holding state comprises a first state in which a display screen of the electronic device is a landscape screen or a second state in which the display screen is a portrait screen;

setting at least one shooting parameter based on the quantity of the shot objects and the holding state using a relationship rule, wherein the at least one shooting parameter is used when the electronic device performs the shooting,

wherein the relationship rule maps a first quantity of shot objects and the first state to at least a first shooting parameter,

wherein the relationship rule maps a second quantity of shot objects and the first state to at least a second shooting parameter,

wherein the relationship rule maps the first quantity of shot objects and the second state to at least a third shooting parameter,

wherein the relationship rule maps the second quantity of shot objects and the second state to at least a fourth shooting parameter,

wherein the first quantity and the second quantity are different from each other, and

wherein the first shooting parameter, the second shooting parameter, the third shooting parameter, and the fourth shooting parameter are different from one another;

obtaining a first preview image based on the at least one shooting parameter; and

displaying the first preview image on the display screen.

17. The non-transitory computer-readable storage medium according to claim 16 , the operations further comprising:

before the determining:

obtaining a second preview image based on a current shooting parameter, and

wherein the determining the at least one of the quantity of the shot objects or the holding state comprises:

determining the at least one of the quantity of the shot objects or the holding state based on the second preview image.

18. The non-transitory computer-readable storage medium according to claim 16 , wherein the at least one shooting parameter comprises an output image ratio, and wherein the setting, by the electronic device, the at least one shooting parameter comprises:

based on that the holding state is the first state, setting the output image ratio to a first output image ratio; or

based on that the holding state is the second state, setting the output image ratio to a second output image ratio.

19. The non-transitory computer-readable storage medium according to claim 18 , wherein the first output image ratio is 16:9, and wherein the second output image ratio is 4:3.

20. The non-transitory computer-readable storage medium according to claim 16 , wherein the electronic device further determines the quantity of the shot objects, the at least one shooting parameter further comprises a field of view (FOV), and the setting the at least one shooting parameter comprises:

determining that the quantity of the shot objects is greater than a first threshold, and setting the FOV to a first FOV; or

determining that the quantity of the shot objects is less than the first threshold and that the holding state is the first state, and setting the FOV to a second FOV; or

determining that the quantity of the shot objects is less than the first threshold and that the holding state is the second state, and setting the FOV to a third FOV,

wherein the first FOV is greater than the second FOV, and the second FOV is greater than the third FOV.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 30, 2023
From: YANG, BANGHUI
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 065380/0333 →
Priority Claims (1)
CN 202011061501.2 · Sep 30, 2020 · national
Continuity (1)
Related Publication 20230370718A1 · Nov 16, 2023
References Cited (13)
US 9491403B2 · Atkinson · 2016 [cited by examiner]
US 20090256925A1 · Yoshizumi · 2009 [cited by examiner]
US 20140240544A1 · Kim · 2014 [cited by examiner]
US 20160219217A1 · Williams · 2016 [cited by examiner]
US 20200177797A1 · Liu · 2020 [cited by examiner]
US 20230412656A1 · Yu · 2023 [cited by examiner]
CN 104469119A · 2015 [cited by applicant]
CN 107465856A · 2017 [cited by applicant]
CN 108605087A · 2018 [cited by applicant]
CN 110225240A · 2019 [cited by applicant]
CN 111050071A · 2020 [cited by applicant]
CN 111385415A · 2020 [cited by applicant]
CN 112422814A · 2021 [cited by applicant]