The invention relates to a
living body detection method and device, an electronic device and a storage medium, and is applied to the field of target recognition, and the method comprises the steps: inputting a to-be-detected image collected by
monocular equipment into a target lightweight
network structure in a
living body detection network, and obtaining a
face detection frame and a
living body label corresponding to the
face detection frame; and the target lightweight
network structure is used for acquiring target global features, including dense
semantic information in the to-be-detected image, in the to-be-detected image.
Cutting a human
face detection frame corresponding to the target living body
label containing the living body content to obtain a
cut human face, and inputting the
cut human face into the target texture discrimination network to obtain a living body detection result; and the target texture judgment network is used for carrying out classification judgment on the clipped face on a
texture feature level. According to the method and the device, the problem that hardware cost saving and accurate face detection effect keeping cannot be taken into consideration under the condition that only one-way
color image input exists in the prior art is solved.