The invention provides an alarming method based on a rotary camera, and a mobile terminal. The method comprises steps of when a
camera module of the mobile terminal is not on the same plane with a
machine body, determining a first angle value between a plane where the
camera module is located and the plane where the
machine body is located, and calculating the sum value of the first angle value and a second angle value, wherein the second angle value is the angle value between the plane where the
machine body is located and the ground; when the sum value is within a preset angle range, controlling the
camera module to automatically rotate and acquire images of surrounding environments where users are located during the rotation process; identifying where a preset obstacle exists in the acquired images of the surrounding environments; and if the preset obstacle exists, judging whether the preset obstacle meets a preset alarming condition, and when the preset obstacle meets the preset alarming condition, giving out an alarming
signal. According to the invention, according to the images of surrounding the environments acquired by the camera, users are effectively warned to pay attentions to the safety; occurrence rate of all kinds of accidents and traffic risks are reduced; and personal and financial safety of people is ensured.