A system for controlling a laser projector , comprising: 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 ; an infrared camera ; a microprocessor , coupled to the first drive circuit and the infrared camera ; and an application processor , coupled to the microprocessor and the second drive circuit , and configured to, read a preset signal from the microprocessor , and power off the second drive circuit , thus powering off the first drive circuit and the laser projector , and send a reset signal for restarting the microprocessor to the microprocessor , in response to that the application processor cannot read the preset signal, wherein the preset signal comprises a flag signal of the infrared camera coupled to the microprocessor , wherein in the microprocessor is configured to read the flag signal of the infrared camera and store the flag signal of the infrared camera , 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 the infrared camera to collect a laser pattern modulated by the 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 the user. 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 ; an infrared camera ; a microprocessor , coupled to the first drive circuit and the infrared camera ; and an application processor , coupled to the microprocessor and the second drive circuit , and configured to, read a preset signal from the microprocessor , and power off the second drive circuit , thus powering off the first drive circuit and the laser projector , and send a reset signal for restarting the microprocessor to the microprocessor , in response to that the application processor cannot read the preset signal, wherein the preset signal comprises a flag signal of the infrared camera coupled to the microprocessor , wherein in the microprocessor is configured to read the flag signal of the infrared camera and store the flag signal of the infrared camera , 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 the infrared camera to collect a laser pattern modulated by the 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 the user. <EOS>