IP Library Granted Patent US 12,563,291
Granted Patent B2
US 12,563,291 · App. 18/574,906 · Granted Feb 24, 2026

Camera switching method and electronic device

Inventors: Yonghua Wang (Shenzhen, CN); Shiyu Zhu (Shenzhen, CN)
Assignee: HONOR DEVICE CO., LTD.
H04N23/667H04N23/635H04N23/671H04N23/69H04N23/90H04N23/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,563,291
App. No.
18/574,906
Granted
Feb 24, 2026
Kind
B2
Abstract

This application relates to the field of terminals, and provides a camera switching method and an electronic device. The method is applicable to an electronic device. The electronic device includes a camera module. The camera module includes a first camera and a second camera. The method includes: enabling a camera application; displaying a first image, where the first image is captured when the first camera serves as a main camera for image capturing; determining that a first parameter and a second parameter satisfy a first preset condition, where the first parameter indicates distance information between the electronic device and a target object, the first parameter is a parameter from the camera module, and the second parameter indicates a zoom ratio of the electronic device; and displaying a second image, where the second image is captured when the second camera serves as the main camera for image capturing.

Claims (43)

1 . A camera switching method, applicable to an electronic device, wherein the electronic device comprises a camera module, the camera module comprises a first camera and a second camera, and the method comprises:

enabling a camera application;

displaying a first image, wherein the first image is captured when the first camera serves as a main camera for image capturing;

determining that a first parameter and a second parameter satisfy a first preset condition, wherein the first parameter indicates distance information between the electronic device and a target object, the first parameter is a parameter from the camera module and comprises a distance between the camera module and a sensor in the electronic device, the target object is a to-be-photographed object in the first image, and the second parameter indicates a zoom ratio of the electronic device; and

displaying a second image, wherein the second image is captured when the second camera serves as the main camera for image capturing.

2 . The method according to claim 1 , wherein the determining that a first parameter and a second parameter satisfy a first preset condition comprises:

determining that the first parameter is greater than a first preset threshold and the second parameter satisfies a second preset range, wherein the first preset threshold indicates distance information between a lens of the first camera and the sensor in the electronic device, and the second preset range indicates a zoom range of the camera module.

3 . The method according to claim 2 , further comprising:

obtaining a first distance range of the first camera, wherein the first distance range indicates an effective distance range for focusing by the first camera; and

obtaining the first preset threshold based on the first distance range.

4 . The method according to claim 3 , wherein a start point of the first distance range is a first value, and the first preset threshold is greater than or equal to the first value.

5 . The method according to claim 2 , further comprising:

obtaining a zoom ratio range of the first camera; and

obtaining the second preset range based on the zoom ratio range.

6 . The method according to claim 5 , wherein the second preset range is a subset of the zoom ratio range.

7 . The method according to claim 1 , wherein the first parameter is a parameter from the first camera.

8 . The method according to claim 1 , wherein the second parameter is the zoom ratio of the electronic device.

9 . The method according to claim 1 , wherein the displaying a second image comprises:

displaying the second image on a first display interface of the electronic device, wherein the first display interface further comprises a first icon, and the first icon indicates a super macro mode.

10 . The method according to claim 9 , wherein the first icon comprises a first control, and the method further comprises:

detecting a first operation on the first control; and

exiting, by the electronic device, the super macro mode in response to the first operation.

11 . The method according to claim 1 , wherein the first camera comprises a wide angle camera, and/or the second camera comprises an ultra wide camera or a telephoto camera.

12 . The method according to claim 1 , wherein the electronic device is at a same position when displaying the first image and the second image.

13 . The camera switching method according to claim 1 , wherein the distance between the camera module and the sensor in the electronic device comprises a lens position of a lens of the first camera.

14 . An electronic device, comprising

one or more processors and a memory, wherein

the memory is coupled to the one or more processors, the memory is configured to store computer program code, the computer program code comprises computer instructions, and the one or more processors invoke the computer instructions to cause the electronic device to:

enable a camera application;

display a first image, wherein the first image is captured when a first camera of a camera module serves as a main camera for image capturing;

determine that a first parameter and a second parameter satisfy a first preset condition, wherein the first parameter indicates distance information between the electronic device and a target object, the first parameter is a parameter from the camera module and comprises a distance between the camera module and a sensor in the electronic device, the target object is a to-be-photographed object in the first image, and the second parameter indicates a zoom ratio of the electronic device; and

display a second image, wherein the second image is captured when a second camera of the camera module serves as the main camera for image capturing.

15 . The electronic device according to claim 14 , wherein the determining that a first parameter and a second parameter satisfy a first preset condition comprises:

determining that the first parameter is greater than a first preset threshold and the second parameter satisfies a second preset range, wherein the first preset threshold indicates distance information between a lens of the first camera and the sensor in the electronic device, and the second preset range indicates a zoom range of the camera module.

16 . The electronic device according to claim 14 , wherein the distance between the camera module and the sensor in the electronic device comprises a lens position of a lens of the first camera.

17 . A chip system, applicable to an electronic device, the chip system comprising one or more processors, wherein the processors are configured to invoke computer instructions to cause the electronic device to:

enable a camera application;

display a first image, wherein the first image is captured when a first camera of a camera module serves as a main camera for image capturing;

determine that a first parameter and a second parameter satisfy a first preset condition, wherein the first parameter indicates distance information between the electronic device and a target object, the first parameter is a parameter from the camera module and comprises a distance between the camera module and a sensor in the electronic device, the target object is a to-be-photographed object in the first image, and the second parameter indicates a zoom ratio of the electronic device; and

display a second image, wherein the second image is captured when a second camera of the camera module serves as the main camera for image capturing.

18 . The chip system according to claim 17 , wherein the determining that a first parameter and a second parameter satisfy a first preset condition comprises:

determining that the first parameter is greater than a first preset threshold and the second parameter satisfies a second preset range, wherein the first preset threshold indicates distance information between a lens of the first camera and the sensor in the electronic device, and the second preset range indicates a zoom range of the camera module.

19 . The chip system according to claim 17 , wherein the distance between the camera module and the sensor in the electronic device comprises a lens position of a lens of the first camera.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 5, 2024
From: WANG, YONGHUA; ZHU, SHIYU
To: HONOR DEVICE CO., LTD.
Reel/Frame 066641/0595 →
Priority Claims (2)
CN 202210085026.5 · Jan 25, 2022 · national
CN 202210468924.9 · Apr 29, 2022 · national
Continuity (1)
Related Publication 20240323518A1 · Sep 26, 2024
References Cited (30)
US 10951833B2 · Yuan · 2021 [cited by applicant]
US 20120032984A1 · Chen · 2012 [cited by examiner]
US 20160241793A1 · Ravirala · 2016 [cited by examiner]
US 20170272644A1 · Chou · 2017 [cited by examiner]
US 20170359494A1 · Zhou · 2017 [cited by examiner]
US 20180332223A1 · Lin · 2018 [cited by examiner]
US 20190014270A1 · Yuan · 2019 [cited by examiner]
US 20190037189A1 · Yuan · 2019 [cited by examiner]
US 20200007777A1 · Huang · 2020 [cited by examiner]
US 20200106964A1 · Cohen et al. · 2020 [cited by applicant]
US 20200145633A1 · Yuan · 2020 [cited by examiner]
US 20200304723A1 · Okiyama · 2020 [cited by applicant]
US 20210112206A1 · Hwang · 2021 [cited by examiner]
US 20230247286A1 · Cui · 2023 [cited by examiner]
US 20240267615A1 · Huo · 2024 [cited by examiner]
US 20250047979A1 · Choi · 2025 [cited by examiner]
US 20250106529A1 · Tian · 2025 [cited by examiner]
CN 106161941A · 2016 [cited by applicant]
CN 106197366A · 2016 [cited by applicant]
CN 107277355A · 2017 [cited by applicant]
CN 110248081A · 2019 [cited by applicant]
CN 110691193A · 2020 [cited by applicant]
CN 112804450A · 2021 [cited by applicant]
CN 113099102A · 2021 [cited by applicant]
CN 113747028A · 2021 [cited by applicant]
JP 2005101874A · 2005 [cited by applicant]
JP 2019134459A · 2019 [cited by applicant]
WO WO2020073959A1 · 2020 [cited by examiner]
WO 2021244295A1 · 2021 [cited by applicant]
Du Yanqi et al: “Research on the Detection Algorithm of the Vehicle and Vehicle Distance based on the Single and Double Camera Switch”, Con 01 Engineering of China, vol. 26, No. 2, Feb. 2019, 9 pages. [cited by applicant]