US 12,256,146 B2
Photographing method, electronic device and storage medium
Cong Peng, Beijing (CN)
Assigned to BEIJING XIAOMI MOBILE SOFTWARE CO., LTD., Beijing (CN)
Filed by BEIJING XIAOMI MOBILE SOFTWARE CO., LTD., Beijing (CN)
Filed on Dec. 23, 2022, as Appl. No. 18/088,380.
Claims priority of application No. 202211210411.4 (CN), filed on Sep. 30, 2022.
Prior Publication US 2024/0114242 A1, Apr. 4, 2024
Int. Cl. H04N 23/67 (2023.01); G06T 7/20 (2017.01); G06T 7/70 (2017.01)
CPC H04N 23/675 (2023.01) [G06T 7/20 (2013.01); G06T 7/70 (2017.01); G06T 2207/10016 (2013.01); G06T 2207/20021 (2013.01); G06T 2207/20076 (2013.01)] 18 Claims
OG exemplary drawing
 
1. A photographing method, comprising:
in response to detecting that a target object is included in a first photographing region, acquiring, by a terminal device, relative motion information between the target object and the terminal device, wherein a photographing region corresponding to a first camera in the terminal device is a second photographing region, a photographing region corresponding to a second camera in the terminal device is a third photographing region, and the first photographing region is a region in the second photographing region other than the third photographing region;
according to the relative motion information, obtaining, by the terminal device, focusing information in response to determining that the target object enters the third photographing region; and
performing, by the terminal device, focusing on the target object based on the focusing information,
wherein before the step of according to the relative motion information, obtaining focusing information when in response to determining that the target object enters the third photographing region, the method further comprises:
determining, by the terminal device, that a probability of the target object entering the third photographing region is greater than a threshold; and
wherein before determining that the probability of the target object entering the third photographing region is greater than a threshold, the method further comprises:
acquiring, by the terminal device, a second image sequence collected by the terminal device in a second continuous time period before the current moment and a collection time sequence corresponding to the second image sequence;
determining, by the terminal device, a fifth position of the target object in each image frame in the second image sequence;
determining, by the terminal device, a position sequence of the target object in the second continuous time period and a distance sequence between the target object and the third photographing region according to the fifth positions;
determining, by the terminal device, a speed sequence and an acceleration sequence of the target object in the second continuous time period according to the position sequence and the collection time sequence; and
determining, by the terminal device, a probability of the target object entering the third photographing region according to the speed sequence, the acceleration sequence, the position sequence and the distance sequence.