IP Library › Granted Patent US 12,526,518
Granted Patent B2
US 12,526,518 · App. 18/700,386 · Granted Jan 13, 2026

Shooting method and related device

Inventor: Dan Zhang (Shenzhen, CN)
Assignee: Honor Device Co., Ltd.
H04N23/675G06T9/00H04N23/611H04N23/682
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,526,518
App. No.
18/700,386
Granted
Jan 13, 2026
Kind
B2
Abstract

This application provides a shooting method and a related device. The electronic device may output a RAW image through the camera lens, and divide the image into three paths of data streams through an image processor. The three paths of data streams are data streams of a panorama path, a focus tracking path, and a detection path respectively. After stabilization processing, the data stream of the panorama path is used to display and preview a large window of a camera application interface. After human body detection and successful focus tracking, information about a human body cropping frame may be output, through the data stream of the detection path, to the focus tracking path for cropping a human body frame. After stabilization processing, smoothing processing, and cropping processing, the data stream of the focus tracking path may be used to display and preview a small window of the camera application interface.

Claims (88)

1 . A shooting method, applied to an electronic device with a camera lens, wherein the method comprises:

displaying a shooting interface, wherein the shooting interface comprises a preview area, and the preview area is used to display an image captured by the camera lens, and

the shooting interface comprises a first image and a first control;

detecting a first operation performed on the first control;

in response to the first operation, displaying one or more markers on the first image, wherein the one or more markers are used to mark a shot object in the first image;

detecting a second operation performed on a first marker, wherein the first marker is used to mark a first shot object;

in response to the second operation, displaying a first window on the preview area of the shooting interface, wherein the first window displays a close-up image of the first shot object, and the shooting interface comprises a recording control;

detecting a third operation performed on the recording control;

in response to the third operation, starting, by the electronic device, recording a video; and

displaying a first recording time on the shooting interface, wherein the first window displays a second recording time.

2 . The method according to claim 1 , wherein before the detecting a second operation performed on a first marker, the method further comprises:

processing a RAW image captured by the camera lens to obtain a second image and a third image, wherein a size of the second image is larger than a size of the third image;

performing stabilization processing on the second image to, obtain first jitter information, wherein the first jitter information comprises a first jitter offset and a first jitter direction;

performing object recognition on the third image according to an object recognition algorithm, and obtaining first object recognition information, wherein the first object recognition information comprises coordinates of one or more shot objects; and

processing the first object recognition information based on the first jitter information, to obtain second object recognition information, wherein coordinates of one or more shot objects comprised in the second object recognition information are used to display the one or more markers on the first image.

3 . The method according to claim 2 , wherein after the detecting a second operation performed on a first marker, the method comprises:

obtaining operation information of the second operation;

determining a focus tracking target and coordinates of the focus tracking target based on the operation information of the second operation and the second object recognition information, wherein the focus tracking target is the first shot object, and coordinates of the first shot object match the operation information of the second operation; and

determining a first cropping area based on the coordinates of the focus tracking target, wherein the close-up image is an image generated based on the first cropping area.

4 . The method according to claim 3 , wherein the method further comprises:

processing the RAW image captured by the camera lens to obtain a fourth image;

performing stabilization processing on the fourth image, to obtain second jitter information, wherein the second jitter information comprises a second jitter offset and a second jitter direction;

determining multiple information based on the fourth image and the third image, wherein the multiple information comprises a ratio of the fourth image to the third image;

processing the first cropping area based on the second jitter information and the multiple information, to obtain a second cropping area; and

cropping the fourth image based on coordinates comprised in the second cropping area, to obtain a fifth image, wherein the close-up image is an image generated based on the fifth image.

5 . The method according to claim 4 , wherein the processing the first cropping area based on the second jitter information and the multiple information, to obtain a second cropping area specifically comprises:

performing, based on the second jitter offset, offset processing on coordinates comprised in the first cropping area in a direction opposite to the second jitter direction, to obtain a third cropping area; and

zooming in the third cropping area based on the multiple information, to obtain the second cropping area.

6 . The method according to claim 5 , wherein the processing the first cropping area based on the second jitter information and the multiple information, to obtain a second cropping area; and the cropping the fourth image based on coordinates comprised in the second cropping area, to obtain a fifth image specifically comprises:

processing, by an internal camera hardware abstraction layer (HAL) in the electronic device, the first cropping area based on the second jitter information and the multiple information, to obtain the second cropping area;

sending, by the internal camera HAL, the second cropping area to a chip platform camera HAL in the electronic device; and

cropping, by the chip platform camera HAL, the fourth image based on the coordinates comprised in the second cropping area, to obtain the fifth image.

7 . The method according to claim 6 , wherein after obtaining the fifth image, the method further comprises:

performing compression processing on the fifth image, to obtain the close-up image of the first shot object.

8 . The method according to claim 7 , wherein after the performing stabilization processing on the second image, the method further comprises: obtaining a sixth image; and

performing compression processing on the sixth image, to obtain an image currently displayed in the preview area.

9 . The method according to claim 8 , wherein after the performing stabilization processing on the second image, the method further comprises: obtaining a sixth image; and

performing compression processing on the sixth image, to obtain an image currently displayed in the preview area.

10 . The method according to claim 4 , wherein the processing the first cropping area based on the second jitter information and the multiple information, to obtain a second cropping area; and the cropping the fourth image based on coordinates comprised in the second cropping area, to obtain a fifth image specifically comprises:

processing, by an internal camera hardware abstraction layer (HAL) in the electronic device, the first cropping area based on the second jitter information and the multiple information, to obtain the second cropping area;

sending, by the internal camera HAL, the second cropping area to a chip platform camera HAL in the electronic device; and

cropping, by the chip platform camera HAL, the fourth image based on the coordinates comprised in the second cropping area, to obtain the fifth image.

11 . The method according to claim 10 , wherein after obtaining the fifth image, the method further comprises:

performing compression processing on the fifth image, to obtain the close-up image of the first shot object.

12 . The method according to claim 4 , wherein after obtaining the fifth image, the method further comprises:

performing compression processing on the fifth image, to obtain the close-up image of the first shot object.

13 . The method according to claim 2 , wherein after the performing stabilization processing on the second image, the method further comprises: obtaining a sixth image; and

performing compression processing on the sixth image, to obtain an image currently displayed in the preview area.

14 . An electronic device, comprising a camera lens, a display, a memory, and one or more processors, wherein the memory is configured to store a computer program, and the processor is configured to invoke the computer program, to enable the electronic device to perform:

displaying a shooting interface, wherein the shooting interface comprises a preview area, and the preview area is used to display an image captured by the camera lens, and the shooting interface comprises a first image and a first control;

detecting a first operation performed on the first control;

in response to the first operation, displaying one or more markers on the first image, wherein the one or more markers are used to mark a shot object in the first image;

detecting a second operation performed on a first marker, wherein the first marker is used to mark a first shot object;

in response to the second operation, displaying a first window on the preview area of the shooting interface, wherein the first window displays a close-up image of the first shot object, and the shooting interface comprises a recording control;

detecting a third operation performed on the recording control;

in response to the third operation, starting, by the electronic device, recording a video; and

displaying a first recording time on the shooting interface, wherein the first window displays a second recording time.

15 . The electronic device according to claim 14 , wherein the processor is configured to invoke the computer program, to enable the electronic device further to perform:

processing a RAW image captured by the camera lens to obtain a second image and a third image, wherein a size of the second image is larger than a size of the third image;

performing stabilization processing on the second image to, obtain first jitter information, wherein the first jitter information comprises a first jitter offset and a first jitter direction;

performing object recognition on the third image according to an object recognition algorithm, and obtaining first object recognition information, wherein the first object recognition information comprises coordinates of one or more shot objects; and

processing the first object recognition information based on the first jitter information, to obtain second object recognition information, wherein coordinates of one or more shot objects comprised in the second object recognition information are used to display the one or more markers on the first image.

16 . The electronic device according to claim 15 , wherein the processor is configured to invoke the computer program, to enable the electronic device further to perform:

obtaining operation information of the second operation;

determining a focus tracking target and coordinates of the focus tracking target based on the operation information of the second operation and the second object recognition information, wherein the focus tracking target is the first shot object, and coordinates of the first shot object match the operation information of the second operation; and

determining a first cropping area based on the coordinates of the focus tracking target, wherein the close-up image is an image generated based on the first cropping area.

17 . The electronic device according to claim 16 , wherein the processor is configured to invoke the computer program, to enable the electronic device further to perform:

processing the RAW image captured by the camera lens to obtain a fourth image;

performing stabilization processing on the fourth image, to obtain second jitter information, wherein the second jitter information comprises a second jitter offset and a second jitter direction;

determining multiple information based on the fourth image and the third image, wherein the multiple information comprises a ratio of the fourth image to the third image;

processing the first cropping area based on the second jitter information and the multiple information, to obtain a second cropping area; and

cropping the fourth image based on coordinates comprised in the second cropping area, to obtain a fifth image, wherein the close-up image is an image generated based on the fifth image.

18 . The electronic device according to claim 17 , wherein the processing the first cropping area based on the second jitter information and the multiple information, to obtain a second cropping area specifically comprises:

performing, based on the second jitter offset, offset processing on coordinates comprised in the first cropping area in a direction opposite to the second jitter direction, to obtain a third cropping area; and

zooming in the third cropping area based on the multiple information, to obtain the second cropping area.

19 . The electronic device according to claim 18 , wherein the processing the first cropping area based on the second jitter information and the multiple information, to obtain a second cropping area; and the cropping the fourth image based on coordinates comprised in the second cropping area, to obtain a fifth image specifically comprises:

processing, by an internal camera hardware abstraction layer (HAL) in the electronic device, the first cropping area based on the second jitter information and the multiple information, to obtain the second cropping area;

sending, by the internal camera HAL, the second cropping area to a chip platform camera HAL in the electronic device; and

cropping, by the chip platform camera HAL, the fourth image based on the coordinates comprised in the second cropping area, to obtain the fifth image.

20 . A non-transitory computer-readable storage medium, comprising computer instructions, wherein when the computer instructions are run on an electronic device, the electronic device is enabled to perform:

displaying a shooting interface, wherein the shooting interface comprises a preview area, and the preview area is used to display an image captured by the camera lens, and the shooting interface comprises a first image and a first control;

detecting a first operation performed on the first control;

in response to the first operation, displaying one or more markers on the first image, wherein the one or more markers are used to mark a shot object in the first image;

detecting a second operation performed on a first marker, wherein the first marker is used to mark a first shot object;

in response to the second operation, displaying a first window on the preview area of the shooting interface, wherein the first window displays a close-up image of the first shot object, and the shooting interface comprises a recording control;

detecting a third operation performed on the recording control;

in response to the third operation, starting, by the electronic device, recording a video; and

displaying a first recording time on the shooting interface, wherein the first window displays a second recording time.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 11, 2024
From: ZHANG, DAN
To: HONOR DEVICE CO., LTD.
Reel/Frame 067074/0258 →
Priority Claims (1)
CN 202210603528.2 · May 30, 2022 · national
Continuity (1)
Related Publication 20250024146A1 · Jan 16, 2025
References Cited (51)
US 7424218B2 · Baudisch · 2008 [cited by examiner]
US 9344618B2 · Min · 2016 [cited by examiner]
US 9860411B2 · Ju · 2018 [cited by examiner]
US 10341529B2 · Cho et al. · 2019 [cited by applicant]
US 10423194B2 · Lee · 2019 [cited by examiner]
US 10699747B2 · Knutt · 2020 [cited by examiner]
US 11238898B2 · Knutt · 2022 [cited by examiner]
US 11451706B2 · Yang · 2022 [cited by examiner]
US 11700452B2 · Xu et al. · 2023 [cited by applicant]
US 11765463B2 · Li et al. · 2023 [cited by applicant]
US 11832022B2 · Cui · 2023 [cited by applicant]
US 20070025723A1 · Baudisch et al. · 2007 [cited by applicant]
US 20130155308A1 · Wu · 2013 [cited by examiner]
US 20150009372A1 · Min et al. · 2015 [cited by applicant]
US 20150350533A1 · Harris · 2015 [cited by examiner]
US 20170134605A1 · Ju · 2017 [cited by examiner]
US 20170180680A1 · Yu · 2017 [cited by applicant]
US 20180005665A1 · Knutt · 2018 [cited by examiner]
US 20180069983A1 · Cho · 2018 [cited by examiner]
US 20180196472A1 · Lee · 2018 [cited by applicant]
US 20200257436A1 · Yun · 2020 [cited by examiner]
US 20200327908A1 · Knutt · 2020 [cited by examiner]
US 20210014413A1 · Yang · 2021 [cited by examiner]
US 20220159183A1 · Li · 2022 [cited by examiner]
US 20220360715A1 · Xu · 2022 [cited by examiner]
US 20230116044A1 · Han · 2023 [cited by applicant]
US 20230156144A1 · Cui · 2023 [cited by examiner]
US 20230230276A1 · Shen · 2023 [cited by applicant]
US 20230421900A1 · Huang et al. · 2023 [cited by applicant]
CN 110072070A · 2019 [cited by applicant]
CN 110650291A · 2020 [cited by applicant]
CN 112261218A · 2021 [cited by applicant]
CN 112825543A · 2021 [cited by applicant]
CN 112954219A · 2021 [cited by applicant]
CN 113365013A · 2021 [cited by applicant]
CN 113873166A · 2021 [cited by applicant]
CN 114339051A · 2022 [cited by applicant]
CN 114390213A · 2022 [cited by applicant]
CN 114422692A · 2022 [cited by applicant]
CN 114466128A · 2022 [cited by applicant]
CN 115484403A · 2022 [cited by applicant]
CN 116055868A · 2023 [cited by applicant]
EP 3291533A1 · 2018 [cited by applicant]
EP 4387253A1 · 2024 [cited by applicant]
KR 20160136636A · 2016 [cited by applicant]
WO 2018166069A1 · 2018 [cited by applicant]
WO 2020186969A1 · 2020 [cited by applicant]
WO 2021032117A1 · 2021 [cited by applicant]
WO 2021213477A1 · 2021 [cited by applicant]
WO 2022063023A1 · 2022 [cited by applicant]
WO 2022068537A1 · 2022 [cited by applicant]