The invention relates to a focusing method and device, a terminal and a storage medium, and the method comprises the steps: determining the first target
stroke information of a lens in a first direction based on a focusing instruction, and enabling the first direction to be the
optical axis direction of the lens; according to the first target travel information, second target travel information of the lens in a second direction is determined, and the second direction is a direction perpendicular to the first direction; according to the first target
stroke information and the second target
stroke information, the lens is driven to move, the movement comprises sub-movement in the first direction and sub-movement in the second direction, and when the sub-movement of the lens in the first direction is driven to stop, the lens reaches a target focusing position matched with the focusing instruction. According to the method, during focusing, when the sub-motion of the lens in the
optical axis direction stops, the optical center of the lens is still located on the
optical axis, that is, the lens directly reaches the target focusing position matched with the focusing instruction, the situation of image blurring is avoided, the
imaging quality is better guaranteed, and the use experience is improved.