The invention relates to the technical field of face recognition, in particular to a face snapshot gunlock load balancing method, which comprises the steps that two paths of original images are acquired, and an acquisition module of a snapshot gunlock transmits the original images to an image encoding and decoding module; an image encoding and decoding module outputs one path to a CPU encoding module for encoding, and outputs the other path to the GPU module for
face detection; after receiving the image, a CPU image
application module stores the image to a local storage card and uploads the image to a far-end
server through a network; a CPU
image analysis module analyzes the locally stored images, counts the number N of face snapshots in a set time and transmits a
code rate value X needingto be adjusted, and the CPU encoding module acquires and configures an initial
code rate value as the adjusted
code rate value X; the coding code rate is dynamically adjusted in real time, the code rate is reduced when the snapshot amount is large, and the effects of giving way to CPU resources, locally storing pictures and uploading the pictures to a remote
server are achieved; on the contrary,the code rate can be recovered and even improved in the time period with small snapshot amount, and a load balancing strategy is achieved.