IP Library › Granted Patent US 12,647,686
Granted Patent B2
US 12,647,686 · App. 18/695,516 · Granted Jun 2, 2026

Video recording method and related apparatus

Inventors: Jie Yi (Shenzhen, CN); Yufei Huang (Shenzhen, CN)
Assignee: Honor Device Co., Ltd.
H04N23/695H04N23/632H04N23/671
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,647,686
App. No.
18/695,516
Granted
Jun 2, 2026
Kind
B2
Abstract

Embodiments of this application provide a video recording method and a related apparatus. The method includes: displaying a first interface including a first window, where pictures acquired by a camera in real time and tracking identities are displayed in the first window; receiving a first operation for a first tracking identity; displaying a second interface in response to the first operation, where the second interface includes the first window and a second window, a part of pictures related to a first object in the first window are displayed in the second window, and the first object is an object corresponding to the first tracking identity; detecting, at a first moment, that the first object is displayed at a first position of the first window, and detecting, at a second moment, that the first object is displayed at a second position of the first window.

Claims (60)

1 . A video recording method, applied to a terminal device comprising a first camera, the method comprising:

displaying, by the terminal device, a first interface, wherein the first interface comprises a first window, and pictures acquired by the first camera and one or more tracking identities are displayed in the first window;

receiving, by the terminal device, a first operation for a first tracking identity, wherein the first tracking identity is one of the one or more tracking identities;

displaying, by the terminal device, a second interface in response to the first operation, wherein the second interface comprises the first window and a second window, the pictures acquired by the first camera are displayed in the first window, a part of pictures related to a first object in the first window are displayed in the second window, and the first object is an object corresponding to the first tracking identity;

detecting, by the terminal device at a first moment, that the first object is displayed at a first position of the first window, and a part of pictures that are related to the first object and that are at the first position of the first window are displayed in the second window;

detecting, by the terminal device at a second moment, that the first object is displayed at a second position of the first window, and a part of pictures that are related to the first object and that are at the second position of the first window are displayed in the second window; and

based on the terminal device detecting that a second object and a third object in the first window overlap, displaying, by the terminal device based on one or more pieces of information, one of a second tracking identity of the second object or a third tracking identity of the third object but not both of the second tracking identity of the second object and the third tracking identity of the third object;

wherein the one or more pieces of information include a focal length between the second object and the first camera and a focal length between the third object and the first camera.

2 . The method according to claim 1 , wherein the pictures displayed in the second window are obtained through cropping based on the pictures displayed in the first window.

3 . The method according to claim 1 , wherein the first interface is a preview interface in a video recording process, the first window further comprises a first control, and the method further comprises:

receiving, by the terminal device, a second operation for the first control; and

ending, by the terminal device, recording in response to the second operation, and storing a first video and a second video, wherein the first video is a video formed by the pictures displayed in the first window, and the second video is a video formed by the pictures displayed in the second window.

4 . The method according to claim 1 , wherein the one or more tracking identities are in a one-to-one correspondence with objects that are displayed in the first window and that are detected by the terminal device.

5 . The method according to claim 1 , wherein displaying one of the second tracking identity of the second object or the third tracking identity of the third object but not both of the second tracking identity of the second object and the third tracking identity of the third object comprises:

when the terminal device detects that the focal length between the second object and the first camera is less than or equal to the focal length between the third object and the first camera, displaying, by the terminal device, the second tracking identity, and skipping displaying the third tracking identity.

6 . The method according to claim 1 , wherein when a distance between a center position of the second tracking identity and a center position of the third tracking identity in a first preset direction is greater than or equal to a first preset spacing, or a distance between the center position of the second tracking identity and the center position of the third tracking identity in a second preset direction is greater than or equal to a second preset spacing, the terminal device detects that the second object and the third object in the first window overlap.

7 . The method according to claim 6 ,

wherein the first preset spacing is half of a sum of a first length and a second length, wherein the first length is a length of the second tracking identity in the first preset direction, and the second length is a length of the third tracking identity in the first preset direction; and

wherein the second preset spacing is half of a sum of a third length and a fourth length, wherein the third length is a length of the second tracking identity in the second preset direction, and the fourth length is a length of the third tracking identity in the second preset direction.

8 . The method according to claim 7 , wherein the first preset direction is a horizontal direction, and the second preset direction is a vertical direction.

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

when a distance between a center position of a second tracking identity and a center position of a third tracking identity in a first preset direction is greater than or equal to a first preset spacing, or a distance between the center position of the second tracking identity and the center position of the third tracking identity in a second preset direction is greater than or equal to a second preset spacing, adjusting, by the terminal device, a position of the second tracking identity and/or a position of the third tracking identity, until the distance between the center position of the second tracking identity and the center position of the third tracking identity in the first preset direction is less than the first preset spacing, or the distance between the center position of the second tracking identity and the center position of the third tracking identity in the second preset direction is less than the second preset spacing.

10 . The method according to claim 1 , wherein when the terminal device displays a plurality of tracking identities, sizes of the tracking identities are the same.

11 . The method according to claim 1 ,

wherein when the terminal device displays a plurality of tracking identities, sizes of the tracking identities are different; and

wherein:

a size of each tracking identity is determined by the terminal device based on a size or an area occupied by an object corresponding to each tracking identity in the first window; or

the size of each tracking identity is determined by the terminal device based on a focal length between the object corresponding to each tracking identity and the first camera.

12 . The method according to claim 11 ,

wherein the object comprises the first object and a fourth object; and

wherein:

when a size of the first object in a first picture is greater than a size of the fourth object in the first picture, a size of the first tracking identity is greater than a size of a fourth tracking identity corresponding to the fourth object; or

when an area occupied by the first object in the first picture is greater than an area occupied by the fourth object in the first picture, the size of the first tracking identity is greater than the size of the fourth tracking identity; or

when the terminal device detects that a focal length between the first object and the first camera is greater than a focal length between the fourth object and the first camera, the size of the first tracking identity is greater than the size of the fourth tracking identity.

13 . The method according to claim 1 , wherein when a quantity of objects that are displayed in the first window and that are detected by the terminal device is greater than N, the first interface comprises N tracking identities, wherein N is an integer.

14 . The method according to claim 13 ,

wherein objects corresponding to the N tracking identities are objects of top N sizes in descending order of sizes of the objects in the first picture; or

wherein the objects corresponding to the N tracking identities are objects whose sizes are top N in ascending order of distances between the objects and the first camera and that are detected by the terminal device.

15 . The method according to claim 1 ,

wherein when the terminal device displays the second interface, a focus of the first camera is on the first object;

wherein at the first moment, the focus of the first camera is on the first object; and

wherein at the second moment, the focus of the first camera is on the first object.

16 . An electronic device, comprising:

one or more memories storing one or more programs; and

one or more processors, wherein when the one or more programs are executed by the one or more processors, the electronic device is enabled to perform operations comprising:

displaying a first interface, wherein the first interface comprises a first window, and pictures acquired by the first camera and one or more tracking identities are displayed in the first window;

receiving a first operation for a first tracking identity, wherein the first tracking identity is one of the one or more tracking identities;

displaying a second interface in response to the first operation, wherein the second interface comprises the first window and a second window, the pictures acquired by the first camera are displayed in the first window, a part of pictures related to a first object in the first window are displayed in the second window, and the first object is an object corresponding to the first tracking identity;

detecting, at a first moment, that the first object is displayed at a first position of the first window, and a part of pictures that are related to the first object and that are at the first position of the first window are displayed in the second window;

detecting, at a second moment, that the first object is displayed at a second position of the first window, and a part of pictures that are related to the first object and that are at the second position of the first window are displayed in the second window; and

based on detecting that a second object and a third object in the first window overlap, displaying, based on one or more pieces of information, one of a second tracking identity of the second object or a third tracking identity of the third object but not both of the second tracking identity of the second object and the third tracking identity of the third object;

wherein the one or more pieces of information include a focal length between the second object and the first camera and a focal length between the third object and the first camera.

17 . A non-transitory computer-readable storage medium storing a computer program, that when executed by a processor, causes a computing device to perform operations comprising:

displaying a first interface, wherein the first interface comprises a first window, and pictures acquired by the first camera and one or more tracking identities are displayed in the first window;

receiving a first operation for a first tracking identity, wherein the first tracking identity is one of the one or more tracking identities;

displaying a second interface in response to the first operation, wherein the second interface comprises the first window and a second window, the pictures acquired by the first camera are displayed in the first window, a part of pictures related to a first object in the first window are displayed in the second window, and the first object is an object corresponding to the first tracking identity;

detecting, at a first moment, that the first object is displayed at a first position of the first window, and a part of pictures that are related to the first object and that are at the first position of the first window are displayed in the second window;

detecting, at a second moment, that the first object is displayed at a second position of the first window, and a part of pictures that are related to the first object and that are at the second position of the first window are displayed in the second window; and

based on detecting that a second object and a third object in the first window overlap, displaying, based on one or more pieces of information, one of a second tracking identity of the second object or a third tracking identity of the third object but not both of the second tracking identity of the second object and the third tracking identity of the third object;

wherein the one or more pieces of information include a focal length between the second object and the first camera and a focal length between the third object and the first camera.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 26, 2024
From: YI, JIE; HUANG, YUFEI
To: HONOR DEVICE CO., LTD.
Reel/Frame 066901/0242 →
Priority Claims (1)
CN 202210577630.X · May 25, 2022 · national
Continuity (1)
Related Publication 20250016453A1 · Jan 9, 2025
References Cited (24)
US 8887311B1 · Kirishima · 2014 [cited by examiner]
US 11765463B2 · Li et al. · 2023 [cited by applicant]
US 20080175576A1 · Hong · 2008 [cited by examiner]
US 20130314562A1 · Shibuya et al. · 2013 [cited by applicant]
US 20150062434A1 · Deng · 2015 [cited by examiner]
US 20150179219A1 · Gao · 2015 [cited by examiner]
US 20180152666A1 · Taine et al. · 2018 [cited by applicant]
US 20190050629A1 · Olgiati · 2019 [cited by examiner]
US 20200074738A1 · Hare et al. · 2020 [cited by applicant]
US 20220319033A1 · Kim · 2022 [cited by examiner]
US 20230040548A1 · Jiang et al. · 2023 [cited by applicant]
CN 104252629A · 2014 [cited by applicant]
CN 110248254A · 2019 [cited by applicant]
CN 111008621A · 2020 [cited by applicant]
CN 111163267A · 2020 [cited by applicant]
CN 112954218A · 2021 [cited by applicant]
CN 112954219A · 2021 [cited by applicant]
CN 113067983A · 2021 [cited by applicant]
CN 113536866A · 2021 [cited by applicant]
CN 113766129A · 2021 [cited by applicant]
CN 114390191A · 2022 [cited by applicant]
CN 114430457A · 2022 [cited by applicant]
JP 201234242A · 2012 [cited by applicant]
Fei, Fan, “Research and Implementation of Human Abnormal Behavior Detection Algorithm in the Intelligent Surveillance,” Nanjing University of Posts and Telecommunications, 65 pages (with English abstract) (Apr. 2014). [cited by applicant]