A system for controlling a laser projector, comprising: a laser projector; a first drive circuit, coupled to the laser projector and configured to output an electrical signal to drive the laser projector to project laser light; a second drive circuit, coupled to the first drive circuit and configured to supply power to the first drive circuit; a watchdog timer, coupled to the second drive circuit; a microprocessor, coupled to the watchdog timer and configured to send a first predetermined signal to the watchdog timer; and an application processor, coupled to the watchdog timer and configured to send a second predetermined signal to the watchdog timer, the watchdog timer is configured to power off the second drive circuit to power off the first drive circuit and the laser projector, in response to that the watchdog timer does not read the first predetermined signal or the second predetermined signal, wherein the application processor comprises a trusted execution environment, the microprocessor is configured to control the first drive circuit to drive the laser projector to project laser light, control an infrared camera to collect a laser pattern modulated by a target object, process the laser pattern to get a depth image, and send the depth image to the trusted execution environment, and the application processor is configured to compare the depth image with a depth template in the trusted execution environment to verify an identity of a user, being characterized in that: the application processor is configured to send the second predetermined signal to the watchdog timer periodically at a second period, the watchdog timer is configured to power off the second drive circuit to power off the first drive circuit and the laser projector, in response to that the watchdog timer does not receive the second predetermined signal within the second period, and the watchdog timer is configured to send a reset signal for restarting the application processor, in response to that the watchdog timer does not receive the second predetermined signal within the second period, wherein the reset signal for restarting the application processor is sent to a reset chip external to the application processor which forces the application processor to reset in response to the reset signal. a laser projector; a first drive circuit, coupled to the laser projector and configured to output an electrical signal to drive the laser projector to project laser light; a second drive circuit, coupled to the first drive circuit and configured to supply power to the first drive circuit; a watchdog timer, coupled to the second drive circuit; a microprocessor, coupled to the watchdog timer and configured to send a first predetermined signal to the watchdog timer; and an application processor, coupled to the watchdog timer and configured to send a second predetermined signal to the watchdog timer, the watchdog timer is configured to power off the second drive circuit to power off the first drive circuit and the laser projector, in response to that the watchdog timer does not read the first predetermined signal or the second predetermined signal, wherein the application processor comprises a trusted execution environment, the microprocessor is configured to control the first drive circuit to drive the laser projector to project laser light, control an infrared camera to collect a laser pattern modulated by a target object, process the laser pattern to get a depth image, and send the depth image to the trusted execution environment, and the application processor is configured to compare the depth image with a depth template in the trusted execution environment to verify an identity of a user, being characterized in that: the application processor is configured to send the second predetermined signal to the watchdog timer periodically at a second period, the watchdog timer is configured to power off the second drive circuit to power off the first drive circuit and the laser projector, in response to that the watchdog timer does not receive the second predetermined signal within the second period, and the watchdog timer is configured to send a reset signal for restarting the application processor, in response to that the watchdog timer does not receive the second predetermined signal within the second period, wherein the reset signal for restarting the application processor is sent to a reset chip external to the application processor which forces the application processor to reset in response to the reset signal. the application processor is configured to send the second predetermined signal to the watchdog timer periodically at a second period, the watchdog timer is configured to power off the second drive circuit to power off the first drive circuit and the laser projector, in response to that the watchdog timer does not receive the second predetermined signal within the second period, and the watchdog timer is configured to send a reset signal for restarting the application processor, in response to that the watchdog timer does not receive the second predetermined signal within the second period, wherein the reset signal for restarting the application processor is sent to a reset chip external to the application processor which forces the application processor to reset in response to the reset signal.