An embodiment of the present invention provides a face recognition device and a memory cleaning method thereof, which relate to the field of memory cleaning technology. Among them, this face recognition device can execute steps S1 to S6 to clean the memory: S1, the processor controls the
clock chip to send an electrical
signal of a preset frequency. S2, after receiving the electrical
signal of the preset frequency, the communication module sends a memory query command to the processor, S3, obtains the usage of a specified area in the memory, and performs judgment and
processing based on the usage. S4, when it is judged that the usage is above the first preset value and less than the second preset value, a memory cleaning request is sent to the back-end platform
server. S5, when it is judged that the usage is above the second preset value, or when a memory cleaning command sent by the back-end platform
server is received, the communication module sends an electrical
signal of a preset frequency to the processor. S6, the processor receives the electrical signal of the preset frequency, and then performs memory cleaning on the specified area of the memory.