A system for controlling a camera component in an electronic device, wherein the camera component comprises an infrared camera and a laser projector, the laser projector is capable of projecting laser light onto a target object, and the infrared camera is capable of collecting an infrared image of the target object, the system comprising: a target processing unit configured to control the camera component; and a first processing unit configured to determine whether the target processing unit writes data to the first processing unit within a preset time interval when the infrared camera is in an on state, and in response to that the target processing unit does not write data to the first processing unit during the preset time interval, control the infrared camera to reset and/or control the electronic device to reboot, wherein the data comprises a predetermined signal; when the infrared camera is in the on state, an image collected by the infrared camera is acquired, wherein the first processing unit is configured to control the infrared camera to reset and/or control the electronic device to reboot by acts of: disconnecting a circuit connection between the first processing unit and the laser projector to turn off the laser projector; and transmitting a reset signal to cause the infrared camera to reset and/or the electronic device to reboot, so as to prevent the laser projector from emitting laser light for a long period of time to cause damage to the human eyes, wherein cause the infrared camera to reset, refers to restore the infrared camera to an initial state. a target processing unit configured to control the camera component; and a first processing unit configured to determine whether the target processing unit writes data to the first processing unit within a preset time interval when the infrared camera is in an on state, and in response to that the target processing unit does not write data to the first processing unit during the preset time interval, control the infrared camera to reset and/or control the electronic device to reboot, wherein the data comprises a predetermined signal; when the infrared camera is in the on state, an image collected by the infrared camera is acquired, wherein the first processing unit is configured to control the infrared camera to reset and/or control the electronic device to reboot by acts of: disconnecting a circuit connection between the first processing unit and the laser projector to turn off the laser projector; and transmitting a reset signal to cause the infrared camera to reset and/or the electronic device to reboot, so as to prevent the laser projector from emitting laser light for a long period of time to cause damage to the human eyes, wherein cause the infrared camera to reset, refers to restore the infrared camera to an initial state. disconnecting a circuit connection between the first processing unit and the laser projector to turn off the laser projector; and transmitting a reset signal to cause the infrared camera to reset and/or the electronic device to reboot, so as to prevent the laser projector from emitting laser light for a long period of time to cause damage to the human eyes, wherein cause the infrared camera to reset, refers to restore the infrared camera to an initial state.