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 (202, 305) a photographing focus of the camera module to a position where the target object is located based on the reference distance; characterized in that said 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; wherein detecting the reference distance comprises: determining an azimuthal angle of the target object relative to the camera module based on the position where the target object is located in the camera preview image; and detecting the reference distance between the target object and the camera module by employing the ranging radar based on the azimuthal angle of the target object relative to the camera module. 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 (202, 305) a photographing focus of the camera module to a position where the target object is located based on the reference distance; characterized in that said 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; wherein detecting the reference distance comprises: determining an azimuthal angle of the target object relative to the camera module based on the position where the target object is located in the camera preview image; and detecting the reference distance between the target object and the camera module by employing the ranging radar based on the azimuthal angle of the target object relative to the camera module. 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; wherein detecting the reference distance comprises: determining an azimuthal angle of the target object relative to the camera module based on the position where the target object is located in the camera preview image; and detecting the reference distance between the target object and the camera module by employing the ranging radar based on the azimuthal angle of the target object relative to the camera module. determining an azimuthal angle of the target object relative to the camera module based on the position where the target object is located in the camera preview image; and detecting the reference distance between the target object and the camera module by employing the ranging radar based on the azimuthal angle of the target object relative to the camera module.