Terminal, focusing method and apparatus, and computer readable storage medium
AssigneeBeijing Xiaomi Mobile Software Co., Ltd.
InventorXiankun Hu
Life of this patent
Estimating the term…
Abstract
The present disclosure relates to a terminal, a focusing method and apparatus. The terminal includes a ranging radar configured to obtain a reference distance between a target object to be focused and a camera module, wherein an antenna radiation angle of the ranging radar covers a viewing angle of the camera module, and wherein the camera module is configured to adjust a photographing focus of the camera module to a position where the target object is located based on the reference distance.
Claims11
A terminal, comprising:
- a ranging radar configured to determine a target object to be focused in a camera preview image displayed in the terminal and to detect a reference distance between the target object and a camera module provided in the terminal based on a position where the target object is located in the camera preview image, wherein an antenna radiation angle of the ranging radar covers a viewing angle of the camera module, and
- wherein the camera module is configured to adjust a photographing focus of the camera module to a position where the target object is located based on the reference distance,
- wherein the ranging radar determines the target object by performing acts of:
- detecting whether a click operation is received in response to displaying the camera preview image;
- and
- determining an object corresponding to a click position of the click operation in the camera preview image as the target object in response to receiving the click operation;
- and
- the ranging radar detects the reference distance by performing acts of:
- determining an azimuthal angle α of the target object relative to plane X and an azimuthal angle β of the target object relative to plane Y based on the position where the target object is located in the camera preview image, wherein the plane X and the plane Y are orthogonal in a central axis of the camera module;
- and
- detecting the reference distance between the target object and the camera module by employing the ranging radar based on the azimuthal angle α and the azimuthal angle β.
A method for focusing, applied to a terminal, the method comprising:
- detecting a reference distance between a target object to be focused and a camera module provided in the terminal by employing a ranging radar provided in the terminal;
- and
- adjusting a photographing focus of the camera module to a position where the target object is located based on the reference distance,
- wherein detecting the reference distance comprises:
- determining the target object in a camera preview image displayed in the terminal;
- and
- detecting the reference distance between the target object and the camera module by employing the ranging radar based on a position where the target object is located in the camera preview image,
- wherein determining the target object in the camera preview image comprises:
- detecting whether a click operation is received in response to displaying the camera preview image;
- and
- determining an object corresponding to a click position of the click operation in the camera preview image as the target object in response to receiving the click operation, and
- wherein detecting the reference distance comprises:
- determining an azimuthal angle α of the target object relative to plane X and an azimuthal angle β of the target object relative to plane Y based on the position where the target object is located in the camera preview image, n the plane X and the plane Y are orthogonal in a central axis of the camera module;
- and
- detecting the reference distance between the target object and the camera module by employing the ranging radar based on the azimuthal angle α and the azimuthal angle β.
An apparatus for focusing, comprising:
- a processor;
- and
- a memory storing instructions executable by the processor,
- wherein the processor is configured to:
- determine a target object to be focused in a camera preview image displayed in the terminal and to detect a reference distance between the target object and a camera module based on a position where the target object is located in the camera preview image;
- and
- adjust a photographing focus of the camera module to a position where the target object is located based on the reference distance,
- wherein the processor determines the target object by performing acts of:
- detecting whether a click operation is received in response to displaying the camera preview image;
- and
- determining an object corresponding to a click position of the click operation in the camera preview image as the target object in response to receiving the click operation;
- and/or
- the processor detects the reference distance by performing acts of:
- determining an azimuthal angle α of the target object relative to plane X and an azimuthal angle β of the target object relative to plane Y based on the position where the target object is located in the camera preview image, wherein the plane X and the plane Y are orthogonal in a central axis of the camera module;
- and
- detecting the reference distance between the target object and the camera module by employing the ranging radar based on the azimuthal angle α and the azimuthal angle β.
Dependencies are inferred from the claim text.