A personnel information statistics method and system based on face recognition

By calculating the degree of difference between facial areas and quantifying the comprehensive degree of difference, the problem of poor handling of facial occlusion and regional differences in the prior art is solved, and the accuracy and accuracy of personnel information statistics are achieved.

CN118379778BActive Publication Date: 2024-08-23GUIZHOU JUKONG CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410822972.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-08-23
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

The existing personnel information statistics method based on facial recognition cannot accurately handle the differences in facial occlusion and facial area, resulting in the inability to effectively count the number of people who enter and exit repeatedly over a period of time.

Method used

By obtaining all facial area images of each newly added person, the difference between the facial areas of each group of comparative personnel is calculated, and quantified according to the comprehensive difference, determining whether the person is the same person, and then counting the number of entry times.

Benefits of technology

Accurate statistics on the number of people entering and leaving and the number of people entering and leaving for a period of time are achieved, and the accuracy of personnel information statistics is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118379778B
    Figure CN118379778B
Patent Text Reader

Abstract

The present invention relates to the technical field of personnel information statistics, and specifically discloses a personnel information statistics method and system based on face recognition, including: performing image processing on the face image of each new person in the store to obtain all facial region images of each new person; obtaining the difference between each facial region image of each group of comparison personnel based on all facial region images of each new person; obtaining the comprehensive difference of each group of comparison personnel based on the difference between all facial region images of each group of comparison personnel, obtaining the personnel determination result of each group of comparison personnel based on the comprehensive difference of each group of comparison personnel; obtaining the personnel information statistics result based on the personnel determination results of all groups of comparison personnel. The present invention realizes the accurate acquisition of the number of entries of the new person when there are partial obstructions on the face of the new person, and accurately determines the calibration personnel by quantifying the differences between the partial facial regions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of personnel information statistics, and in particular to a personnel information statistics method and system based on face recognition. Background Art

[0002] At present, for store-based companies, especially those with chain stores, counting the number of people entering the store on a given day is of great reference significance for companies to adjust their sales strategies in a timely manner. However, traditional identity authentication methods, such as document inspection and password input, have many limitations and disadvantages, such as cumbersome processes and the existence of discrepancies between people and documents. Therefore, identity authentication methods based on facial recognition technology have gradually received widespread attention and application.

[0003] However, the existing personnel information statistics method and system based on face recognition only records the visit time of faces and tracks faces to count the number of faces and the visit time and departure time corresponding to each face within a set time, but does not consider how to accurately obtain the number of entries of new persons when there are partial obstructions on the faces of new persons, and does not consider quantifying the differences between partial facial areas to determine the people who repeatedly enter and exit within a period of time. For example, the publication number is "CN112784784A" and the patent name is "Method and system for counting personnel information based on face recognition". The method includes the following steps: collecting image information of people in the store; identifying faces in the image information; determining whether the face is in the cached face library. If not, storing the face in the face library, recording the visit time of the face, and tracking the face. If the face leaves the store, the leaving face is cached. Within the set time, if the face re-enters the store and is recognized, it is determined that the person has not left the store and the face is tracked again and the cached face library is reset. If the leaving face is not recognized again within the set time, it is determined that the person has left the store, the face is cleared from the face library, and the departure time of the face is recorded; within the set time, the number of faces and the face visit time and face departure time corresponding to each face are counted. However, this patent only records the arrival time of faces and tracks faces to count the number of faces and the arrival time and departure time corresponding to each face within a set time, but does not consider how to accurately obtain the number of entries of new people when there are partial obstructions on the faces of new people, and does not consider quantifying the differences between partial facial areas to determine the people who repeatedly enter and exit within a period of time.

[0004] Therefore, the present invention proposes a personnel information statistics method and system based on face recognition. Summary of the invention

[0005] The present invention provides a personnel information statistics method and system based on face recognition, which are used for obtaining the vector representation of all the facial region images of each newly added person according to all the facial region images of each newly added person, so as to facilitate the subsequent calculation of the difference degree, accurately obtain the difference degree between each facial region image of each group of compared persons according to the vector representation of all the facial region images of all the newly added persons, quantify the difference degree between each facial region image of each group of compared persons, and facilitate more detailed comparison of the difference between different facial region features, accurately obtain the comprehensive difference degree of each group of compared persons according to the difference degree between all the facial region images of each group of compared persons, quantify the comprehensive difference degree of each group of compared persons, obtain the personnel determination result of each group of compared persons according to the comprehensive difference degree of each group of compared persons, accurately obtain the entry times of all calibrated persons and each calibrated person according to the personnel determination results of all the groups of compared persons, realize accurate statistics of the number and the entry times of persons who repeatedly enter and exit within a period of time, improve the accuracy of determining the calibrated persons, and obtain more accurate personnel information statistics results.

[0006] The present invention provides a personnel information statistics method based on face recognition, comprising:

[0007] S1: Obtain a facial image of each new employee in the store, and perform image processing on the facial image of each new employee in the store to obtain all facial region images of each new employee;

[0008] S2: obtaining a vector representation of all facial region images of each newly added person based on all facial region images of each newly added person, and obtaining a difference between each facial region image of each group of compared persons based on the vector representation of all facial region images of all newly added persons;

[0009] S3: based on the differences between all facial region images of each group of comparison persons, obtaining the comprehensive differences of each group of comparison persons, and obtaining the personnel determination results of each group of comparison persons based on the comprehensive differences of each group of comparison persons;

[0010] S4: Based on the personnel determination results of all group comparison personnel, the entry times of all calibrated personnel and each calibrated personnel are obtained, and based on the entry times of all calibrated personnel and each calibrated personnel, the personnel information statistics results are obtained.

[0011] Preferably, the personnel information statistics method based on face recognition, S1: obtaining the face image of each new person in the store, and performing image processing on the face image of each new person in the store to obtain all face-like region images of each new person, including:

[0012] Obtain surveillance video based on a preset shooting device, and obtain the facial image of each newly added person based on the image extraction model and the surveillance video;

[0013] Perform image processing on the facial image of each new person in the store to obtain all facial region images of each new person.

[0014] Preferably, the personnel information statistics method based on face recognition performs image processing on the face image of each new person in the store to obtain all face-like region images of each new person, including:

[0015] Performing multiple pixel region extractions on the facial image of each newly added person based on a preset pixel region extraction frame to obtain all extracted region images of each newly added person, wherein each extracted region image does not contain an occluded region;

[0016] When the extraction area image corresponds to the extraction position of the mouth, the corresponding extraction area image is used as the initial image of the mouth area;

[0017] When the extraction area image corresponds to the extraction position of the nose, the corresponding extraction area image is used as the initial image of the nose area;

[0018] When the extraction area image corresponds to the extraction position of the eye, the corresponding extraction area image is used as the initial image of the eye area;

[0019] When the extraction area image corresponds to the ear, the corresponding extraction area image is used as the initial image of the ear area;

[0020] The mouth region initial image, the nose region initial image, the eye region initial image and the ear region initial image are all regarded as region initial images;

[0021] Determine whether the pixel difference between the pixel value of each pixel point in the initial image of each type of area of ​​each new person and the pixel value of each corresponding adjacent pixel point is greater than the preset pixel difference value. If so, take the corresponding pixel point as the pixel point to be adjusted, and adjust the pixel values ​​of all the pixel points to be adjusted in the initial image of each type of area of ​​each new person to the average pixel value of all the corresponding adjacent pixel points to obtain the corresponding facial area image of each new person.

[0022] Preferably, the personnel information statistics method based on face recognition also includes:

[0023] Determine whether the number of categories of the facial area image of each newly added person is zero. If so, delete the corresponding newly added person and upload the surveillance video of the corresponding newly added person to the cloud.

[0024] Preferably, the personnel information statistics method based on face recognition, S2: based on all the facial region images of each newly added person, obtaining the vector representation of all the facial region images of each newly added person, based on the vector representation of all the facial region images of all the newly added persons, obtaining the difference between each facial region image of each group of compared persons, including:

[0025] The average value of all pixels in each type of facial region image of each newly added person is taken as the standard pixel value of each type of facial region image of each newly added person;

[0026] The difference between the pixel value of each pixel point in each type of facial region image of each newly added person and the standard pixel value of the corresponding type of facial region image of the corresponding newly added person is used as the element representation of each pixel point in each type of facial region image of each newly added person;

[0027] Sort each column of pixels in each type of facial region image of each newly added person in order from top to bottom to obtain a column pixel sequence of each column of pixels in each type of facial region image of each newly added person, and sort and concatenate all column pixel sequences in each type of facial region image of each newly added person in order from left to right according to corresponding column positions to obtain a pixel sequence of each type of facial region image of each newly added person;

[0028] Based on the element representation of each pixel point in the pixel point sequence of each type of facial region image of each newly added person, a vector representation of each type of facial region image of each newly added person is obtained;

[0029] Based on the vector representation of all types of facial region images of all newly added persons, the difference between each type of facial region images of each group of compared persons is obtained.

[0030] Preferably, the personnel information statistics method based on face recognition obtains the difference between each type of facial region image of each group of compared personnel based on the vector representation of all types of facial region images of all newly added personnel, including:

[0031] All newly added personnel are randomly combined in pairs to obtain all groups of comparison personnel, where a single group of comparison personnel contains two newly added personnel;

[0032] Based on the vector representation of all facial region images of each group of comparison personnel, the difference between each facial region image of each group of comparison personnel is obtained, which is:

[0033] ;

[0034] in, is the difference between the current calculation group and the current calculation group of the comparison personnel, n is the number of pixels limited in the preset pixel area extraction box, is the mean of the standard pixel values ​​of the facial region image of the current calculation class of the comparison personnel in the current calculation group, is the i-th vector element in the vector representation of the facial region image of the current calculation class of the first newly added person in the current calculation group comparison person, is the i-th vector element in the vector representation of the current calculated facial region image of the second newly added person in each group of compared persons, ln is the natural logarithm, and the value of the natural constant e is 2.718.

[0035] Preferably, the personnel information statistics method based on face recognition, S3: based on the difference between all facial region images of each group of comparison personnel, obtaining the comprehensive difference of each group of comparison personnel, and obtaining the personnel determination result of each group of comparison personnel based on the comprehensive difference of each group of comparison personnel, including:

[0036] Obtaining the single-category facial region images included in each group of comparison persons as the overlapping-category facial region images of each group of comparison persons;

[0037] Based on the differences between all overlapping facial region images of each group of comparison persons, the comprehensive difference between each group of comparison persons is obtained, which is:

[0038] ;

[0039] in, is the comprehensive difference between each group of comparison personnel, is the difference between the first overlapping facial region images of each group of comparison persons, is the difference between the mth overlapping facial region images of each group of comparison persons, m is the number of categories of overlapping facial region images of each group of comparison persons, n is the number of pixels limited in the preset pixel region extraction box, is the mean of the standard pixel values ​​of all overlapping facial region images of each group of comparison persons, ln is the natural logarithm, and the value of the natural constant e is 2.718;

[0040] The personnel determination results of each group of comparison personnel are obtained based on the comprehensive difference between each group of comparison personnel.

[0041] Preferably, the personnel information statistics method based on face recognition obtains the personnel determination result of each group of compared personnel based on the comprehensive difference of each group of compared personnel, including:

[0042] Determine whether the comprehensive difference of each group of comparison personnel is greater than the preset comprehensive difference threshold. If so, the two new persons in the corresponding group of comparison personnel are determined to be the same person, which is used as the personnel determination result of the corresponding group of comparison personnel. Otherwise, the two new persons in the corresponding group of comparison personnel are determined to be different persons, which is used as the personnel determination result of the corresponding group of comparison personnel.

[0043] Preferably, the personnel information statistics method based on face recognition, S4: based on the personnel determination results of all group comparison personnel, obtaining the number of entries of all calibrated personnel and each calibrated personnel, and based on the number of entries of all calibrated personnel and each calibrated personnel, obtaining the personnel information statistics results, including:

[0044] Among all the comparison persons who are determined to be the same person, all groups of comparison persons in which the newly added persons overlap with each other are summarized to obtain at least one same person combination;

[0045] All newly added persons in each fan group are regarded as a calibration person, and the total number of all newly added persons in the corresponding fan group is regarded as the number of entries of the corresponding calibration person;

[0046] Each of the newly added persons except all the newly added persons included in all the same person combinations is regarded as a calibration person, and 1 is regarded as the entry number of the corresponding calibration person;

[0047] A personnel entry and exit statistics table is obtained based on all calibrated personnel and the number of entries of each calibrated personnel, and the personnel entry and exit statistics table is used as the personnel information statistics result.

[0048] The present invention provides a personnel information statistics system based on face recognition, which is used to execute any one of the personnel information statistics methods based on face recognition in embodiments 1 to 9, including:

[0049] A processing module is used to obtain a facial image of each new person in the store, and perform image processing on the facial image of each new person in the store to obtain all facial region images of each new person;

[0050] A first calculation module is used to obtain a vector representation of all the facial region images of each newly added person based on all the facial region images of each newly added person, and obtain a difference between each facial region image of each group of compared persons based on the vector representation of all the facial region images of all the newly added persons;

[0051] The second calculation module is used to obtain the comprehensive difference of each group of comparison personnel based on the difference between all facial region images of each group of comparison personnel, and obtain the personnel determination result of each group of comparison personnel based on the comprehensive difference of each group of comparison personnel;

[0052] The information statistics module is used to obtain the number of entries of all calibrated personnel and each calibrated personnel based on the personnel determination results of all group comparison personnel, and obtain the personnel information statistics results based on the number of entries of all calibrated personnel and each calibrated personnel.

[0053] Compared with the prior art, the beneficial effects of the present invention are as follows: a vector representation of all facial region images of each newly added person is obtained based on all facial region images of each newly added person, which is convenient for subsequent calculation of the difference degree; the difference degree between each facial region image of each group of compared persons is accurately obtained based on the vector representation of all facial region images of all newly added persons; the degree of difference between each facial region image of each group of compared persons is quantified, which is convenient for more detailed comparison of the differences between different facial region features; the comprehensive degree of difference of each group of compared persons is accurately obtained based on the degree of difference between all facial region images of each group of compared persons; the comprehensive degree of difference of each group of compared persons is quantified; the personnel determination result of each group of compared persons is obtained based on the comprehensive degree of difference of each group of compared persons; the number of entries of all calibrated persons and each calibrated person is accurately obtained based on the personnel determination results of all groups of compared persons, so as to achieve accurate statistics of the number and number of entries of persons who repeatedly enter and exit within a period of time, improve the accuracy of determining the calibrated persons, and obtain more accurate personnel information statistics.

[0054] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or be understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structure specifically pointed out in the written application document.

[0055] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0057] Figure 1 This is a flow chart of a personnel information statistics method based on face recognition in an embodiment of the present invention;

[0058] Figure 2 The figure is a schematic diagram of a personnel information statistics system based on face recognition in an embodiment of the present invention. DETAILED DESCRIPTION

[0059] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0060] Embodiment 1: The present invention provides a personnel information statistics method based on face recognition, referring to Figure 1 ,include:

[0061] S1: Obtain a facial image of each new employee in the store, and perform image processing on the facial image of each new employee in the store to obtain all facial region images of each new employee;

[0062] S2: obtaining a vector representation of all facial region images of each newly added person based on all facial region images of each newly added person, and obtaining a difference between each facial region image of each group of compared persons based on the vector representation of all facial region images of all newly added persons;

[0063] S3: based on the differences between all facial region images of each group of comparison persons, obtaining the comprehensive differences of each group of comparison persons, and obtaining the personnel determination results of each group of comparison persons based on the comprehensive differences of each group of comparison persons;

[0064] S4: Based on the personnel determination results of all group comparison personnel, the entry times of all calibrated personnel and each calibrated personnel are obtained, and based on the entry times of all calibrated personnel and each calibrated personnel, the personnel information statistics results are obtained.

[0065] In this embodiment, the newly added personnel are personnel who enter within the monitoring range of a preset shooting device set in a store to which the personnel information counting system based on face recognition is applied.

[0066] In this embodiment, the facial image is the facial image of each new person in the store, and there may be obstructions in the facial image (such as mask obstruction).

[0067] In this embodiment, the image processing is a process of obtaining all face-like region images of each new person in the store based on the face image of each new person in the store.

[0068] In this embodiment, all facial area images are images of all facial areas of the corresponding new personnel obtained based on the facial images of each new personnel in the store, wherein all facial area images include mouth area images, nose area images, eye area images and ear area images.

[0069] In this embodiment, the vector representation of the facial region image is a vector group that can characterize all the facial region images of each newly added person, obtained based on all the facial region images of each newly added person.

[0070] In this embodiment, the difference degree is a numerical value obtained based on the vector representation of all facial region images of all newly added persons, which can reflect the degree of difference between each facial region image of each group of compared persons.

[0071] In this embodiment, the comprehensive difference is a value obtained based on the difference between all facial region images of each group of comparison persons, which can reflect the comprehensive difference degree of each group of comparison persons.

[0072] In this embodiment, the person determination result is a determination result indicating whether each group of compared persons is the same person, obtained based on the comprehensive difference between each group of compared persons.

[0073] In this embodiment, the calibrated personnel is a collective term for all newly added personnel who are determined to be the same person.

[0074] In this embodiment, the number of entries of each calibrated person is the number of times each calibrated person enters the store.

[0075] In this embodiment, the personnel information statistics result is a personnel entry and exit statistics table including all calibrated personnel and the entry times of each calibrated personnel, wherein each calibrated personnel in the personnel entry and exit statistics table has a corresponding entry times.

[0076] The beneficial effects of the above technology are as follows: according to all types of facial area images of each newly added person, a vector representation of all types of facial area images of each newly added person is obtained, which is convenient for the subsequent calculation of the difference degree; according to the vector representation of all types of facial area images of all newly added persons, the difference degree between each type of facial area images of each group of compared persons is accurately obtained, and the degree of difference between each type of facial area images of each group of compared persons is quantified, which is convenient for a more detailed comparison of the differences between different facial area features; according to the degree of difference between all types of facial area images of each group of compared persons, the comprehensive degree of difference of each group of compared persons is accurately obtained, the comprehensive degree of difference of each group of compared persons is quantified, and the personnel determination result of each group of compared persons is obtained according to the comprehensive degree of difference of each group of compared persons; according to the personnel determination results of all groups of compared persons, the number of entries of all calibrated persons and each calibrated person is accurately obtained, and the accurate statistics of the number and number of entries of persons who repeatedly enter and exit within a period of time are realized, and the accuracy of the determination of calibrated persons is improved, that is, more accurate personnel information statistics are obtained.

[0077] Embodiment 2: Based on Embodiment 1, a personnel information statistics method based on face recognition is provided. S1: obtaining a face image of each new person in the store, and performing image processing on the face image of each new person in the store to obtain all face-like region images of each new person, including:

[0078] Obtain surveillance video based on a preset shooting device, and obtain the facial image of each newly added person based on the image extraction model and the surveillance video;

[0079] Perform image processing on the facial image of each new person in the store to obtain all facial region images of each new person.

[0080] In this embodiment, the preset shooting device is a pre-set device for monitoring all new personnel in the store, such as a camera set at the entrance and exit of the store.

[0081] In this embodiment, the monitoring video is a video obtained based on a preset shooting device that can monitor all new personnel in the store.

[0082] In this embodiment, the image extraction model is pre-based on a large number of surveillance videos containing at least one new person as model input, and the facial images contained in the surveillance videos are manually annotated as model output. The trained model can output the facial images contained in the surveillance videos based on the input surveillance videos.

[0083] The beneficial effects of the above technology are: it clearly provides a specific method for obtaining the facial image of each new person based on the surveillance video, and performs image processing on the facial image of each new person in the store to obtain all facial area images of each new person.

[0084] Embodiment 3: Based on Embodiment 2, a personnel information statistics method based on face recognition is used to process the face image of each new person in the store to obtain all face-like region images of each new person, including:

[0085] Performing multiple pixel region extractions on the facial image of each newly added person based on a preset pixel region extraction frame to obtain all extracted region images of each newly added person, wherein each extracted region image does not contain an occluded region;

[0086] When the extraction area image corresponds to the extraction position of the mouth, the corresponding extraction area image is used as the initial image of the mouth area;

[0087] When the extraction area image corresponds to the extraction position of the nose, the corresponding extraction area image is used as the initial image of the nose area;

[0088] When the extraction area image corresponds to the extraction position of the eye, the corresponding extraction area image is used as the initial image of the eye area;

[0089] When the extraction area image corresponds to the ear, the corresponding extraction area image is used as the initial image of the ear area;

[0090] The mouth region initial image, the nose region initial image, the eye region initial image and the ear region initial image are all regarded as region initial images;

[0091] Determine whether the pixel difference between the pixel value of each pixel point in the initial image of each type of area of ​​each new person and the pixel value of each corresponding adjacent pixel point is greater than the preset pixel difference value. If so, take the corresponding pixel point as the pixel point to be adjusted, and adjust the pixel values ​​of all the pixel points to be adjusted in the initial image of each type of area of ​​each new person to the average pixel value of all the corresponding adjacent pixel points to obtain the corresponding facial area image of each new person.

[0092] In this embodiment, the preset pixel region extraction frame is a pre-set extraction frame for performing multiple pixel region extractions on the face image of each newly added person. In this embodiment, the preset pixel region extraction frame is set to have a length and a width of 10 A square box of 10 (number of pixels).

[0093] In this embodiment, the pixel region extraction is a process of performing region extraction on the face image of each newly added person based on a preset pixel region extraction frame to obtain an extracted region image of each newly added person. The pixel region extraction process is specifically as follows:

[0094] Based on a preset feature point calibration model (a large number of face images are used as model input in advance, and the positions of the mouth feature points, nose feature points, eye feature points and ear feature points in each face image that are manually annotated are used as model output, and a trained model that can input face images can output the mouth feature points, nose feature points, eye feature points and ear feature points in the face image) and the face image of each new person, the mouth feature points, nose feature points, eye feature points and ear feature points of each new person are obtained (the number of feature points is not unique). When pixel areas are extracted multiple times based on a preset pixel area extraction frame, the positions of the preset pixel area extraction frames in adjacent extraction processes differ by one pixel in the horizontal or vertical direction, and all extracted area images are obtained. The extracted area image containing the most mouth feature points is used as the initial image of the mouth area, the extracted area image containing the most nose feature points is used as the initial image of the nose area, the extracted area image containing the most eye feature points is used as the initial image of the eye area, and the extracted area image containing the most ear feature points is used as the initial image of the ear area.

[0095] In this embodiment, the obstruction area is the image area of ​​the obstruction (such as a mask or sunglasses, etc.) existing in the facial image of each newly added person.

[0096] In this embodiment, the preset pixel difference value is a pre-set value used to determine whether each pixel point in the initial image of each type of area of ​​each new person is a pixel point to be adjusted, and the pixel difference between the corresponding pixel point and all corresponding adjacent pixels must be greater than a value.

[0097] The beneficial effects of the above technology are: by classifying the extracted area images and comparing the pixel differences between the pixel points in the initial image of each type of area of ​​the new personnel and all the corresponding adjacent pixel points with the preset pixel differences, the pixel points to be adjusted in the initial image of each type of area of ​​the new personnel are screened out, and by further adjusting the pixel points to be adjusted in the initial image of each type of area of ​​the new personnel, the clarity and accuracy of all facial area images of each new personnel are ensured, thereby improving the accuracy of subsequent personnel judgment.

[0098] Embodiment 4: Based on Embodiment 3, the personnel information statistics method based on face recognition further includes:

[0099] Determine whether the number of categories of the facial area image of each newly added person is zero. If so, delete the corresponding newly added person and upload the surveillance video of the corresponding newly added person to the cloud.

[0100] In this embodiment, the cloud is a remote server to which the in-store computers are connected.

[0101] In this embodiment, the surveillance video of the newly added person is a video segment consisting of all video frames containing the facial images of the newly added person in the surveillance video acquired by the preset shooting device.

[0102] The beneficial effect of the above technology is that the surveillance video of people with completely obscured faces and suspicious identities is uploaded to the cloud, which is beneficial to the security management in the store.

[0103] Embodiment 5: Based on Embodiment 1, a personnel information statistics method based on face recognition, S2: based on all facial region images of each newly added person, a vector representation of all facial region images of each newly added person is obtained, and based on the vector representation of all facial region images of all newly added persons, the difference between each facial region image of each group of compared persons is obtained, including:

[0104] The average value of all pixels in each type of facial region image of each newly added person is taken as the standard pixel value of each type of facial region image of each newly added person;

[0105] The difference between the pixel value of each pixel point in each type of facial region image of each newly added person and the standard pixel value of the corresponding type of facial region image of the corresponding newly added person is used as the element representation of each pixel point in each type of facial region image of each newly added person;

[0106] Sort each column of pixels in each type of facial region image of each newly added person in order from top to bottom to obtain a column pixel sequence of each column of pixels in each type of facial region image of each newly added person, and sort and concatenate all column pixel sequences in each type of facial region image of each newly added person in order from left to right according to corresponding column positions to obtain a pixel sequence of each type of facial region image of each newly added person;

[0107] Based on the element representation of each pixel point in the pixel point sequence of each type of facial region image of each newly added person, a vector representation of each type of facial region image of each newly added person is obtained;

[0108] Based on the vector representation of all types of facial region images of all newly added persons, the difference between each type of facial region images of each group of compared persons is obtained.

[0109] The beneficial effects of the above technology are: a specific method for obtaining a vector representation of all facial region images of each new person based on all facial region images of each new person is clearly given; based on the vector representation of all facial region images of all new persons, the difference between each type of facial region images of each group of compared persons is accurately obtained; the difference between each type of facial region images of each group of compared persons is quantified, so as to facilitate a more detailed comparison of the differences between different facial region features.

[0110] Embodiment 6: Based on Embodiment 5, a personnel information statistics method based on face recognition is used to obtain the difference between each type of facial region image of each group of compared personnel based on the vector representation of all types of facial region images of all newly added personnel, including:

[0111] All newly added personnel are randomly combined in pairs to obtain all groups of comparison personnel, where a single group of comparison personnel contains two newly added personnel;

[0112] Based on the vector representation of all facial region images of each group of comparison personnel, the difference between each facial region image of each group of comparison personnel is obtained, which is:

[0113] ;

[0114] in, is the difference between the current calculation group and the current calculation group of the comparison personnel, n is the number of pixels limited in the preset pixel area extraction box, is the mean of the standard pixel values ​​of the facial region image of the current calculation class of the comparison personnel in the current calculation group, is the i-th vector element in the vector representation of the facial region image of the current calculation class of the first newly added person in the current calculation group comparison person, is the i-th vector element in the vector representation of the current calculated facial region image of the second newly added person in each group of compared persons, ln is the natural logarithm, and the value of the natural constant e is 2.718.

[0115] The beneficial effects of the above technology are: based on the vector representation of all types of facial area images of all newly added persons, the difference between each type of facial area image of each group of compared persons is accurately obtained, and the degree of difference between each type of facial area image of each group of compared persons is quantified. This embodiment provides a specific method for quantifying the degree of difference between each type of facial area image of each group of compared persons.

[0116] Embodiment 7: Based on Embodiment 6, a personnel information statistics method based on face recognition, S3: based on the difference between all facial region images of each group of comparison personnel, obtaining the comprehensive difference of each group of comparison personnel, and obtaining the personnel determination result of each group of comparison personnel based on the comprehensive difference of each group of comparison personnel, including:

[0117] Obtaining the single-category facial region images included in each group of comparison persons as the overlapping-category facial region images of each group of comparison persons;

[0118] Based on the differences between all overlapping facial region images of each group of comparison persons, the comprehensive difference between each group of comparison persons is obtained, which is:

[0119] ;

[0120] in, is the comprehensive difference between each group of comparison personnel, is the difference between the first overlapping facial region images of each group of comparison persons, is the difference between the mth overlapping facial region images of each group of comparison persons, m is the number of categories of overlapping facial region images of each group of comparison persons, n is the number of pixels limited in the preset pixel region extraction box, is the mean of the standard pixel values ​​of all overlapping facial region images of each group of comparison persons, ln is the natural logarithm, and the value of the natural constant e is 2.718;

[0121] The personnel determination results of each group of comparison personnel are obtained based on the comprehensive difference between each group of comparison personnel.

[0122] The beneficial effects of the above technology are: based on the differences between all facial area images of each group of comparison personnel, the comprehensive difference of each group of comparison personnel is accurately obtained, and the accurate quantification of the comprehensive difference degree of each group of comparison personnel is achieved. This embodiment provides a specific method for quantifying the comprehensive difference degree of each group of comparison personnel.

[0123] Embodiment 8: Based on Embodiment 7, a personnel information statistics method based on face recognition is used to obtain the personnel determination results of each group of compared personnel based on the comprehensive difference between each group of compared personnel, including:

[0124] Determine whether the comprehensive difference of each group of comparison personnel is greater than the preset comprehensive difference threshold. If so, the two new persons in the corresponding group of comparison personnel are determined to be the same person, which is used as the personnel determination result of the corresponding group of comparison personnel. Otherwise, the two new persons in the corresponding group of comparison personnel are determined to be different persons, which is used as the personnel determination result of the corresponding group of comparison personnel.

[0125] In this embodiment, the preset comprehensive difference threshold is a preset comprehensive difference threshold used as a reference when determining whether two newly added persons in each group of compared persons are the same person.

[0126] The beneficial effect of the above technology is: the personnel determination results of each group of comparison personnel are obtained according to the comprehensive difference of each group of comparison personnel, which avoids the influence of manual intervention and subjective judgment and facilitates the determination of subsequent calibration personnel.

[0127] Embodiment 9: Based on Embodiment 8, a personnel information statistics method based on face recognition, S4: based on the personnel determination results of all group comparison personnel, obtaining the number of entries of all calibrated personnel and each calibrated personnel, and obtaining personnel information statistics results based on the number of entries of all calibrated personnel and each calibrated personnel, including:

[0128] Among all the comparison persons who are determined to be the same person, all groups of comparison persons in which the newly added persons overlap with each other are summarized to obtain at least one same person combination;

[0129] All newly added persons in each fan group are regarded as a calibration person, and the total number of all newly added persons in the corresponding fan group is regarded as the number of entries of the corresponding calibration person;

[0130] Each of the newly added persons except all the newly added persons included in all the same person combinations is regarded as a calibration person, and 1 is regarded as the entry number of the corresponding calibration person;

[0131] A personnel entry and exit statistics table is obtained based on all calibrated personnel and the number of entries of each calibrated personnel, and the personnel entry and exit statistics table is used as the personnel information statistics result.

[0132] The beneficial effects of the above technology are: accurately obtaining the number of entries of all calibrated personnel and each calibrated personnel based on the personnel determination results of all groups of comparison personnel, improving the accuracy of calibrated personnel determination, and obtaining personnel information statistics based on the number of entries of all calibrated personnel and each calibrated personnel.

[0133] Embodiment 10: The present invention provides a personnel information statistics system based on face recognition, which is used to execute any one of the personnel information statistics methods based on face recognition in Embodiments 1 to 9, referring to Figure 2 ,include:

[0134] A processing module is used to obtain a facial image of each new person in the store, and perform image processing on the facial image of each new person in the store to obtain all facial region images of each new person;

[0135] A first calculation module is used to obtain a vector representation of all the facial region images of each newly added person based on all the facial region images of each newly added person, and obtain a difference between each facial region image of each group of compared persons based on the vector representation of all the facial region images of all the newly added persons;

[0136] The second calculation module is used to obtain the comprehensive difference of each group of comparison personnel based on the difference between all facial region images of each group of comparison personnel, and obtain the personnel determination result of each group of comparison personnel based on the comprehensive difference of each group of comparison personnel;

[0137] The information statistics module is used to obtain the number of entries of all calibrated personnel and each calibrated personnel based on the personnel determination results of all group comparison personnel, and obtain the personnel information statistics results based on the number of entries of all calibrated personnel and each calibrated personnel.

[0138] The beneficial effects of the above technology are as follows: according to all types of facial area images of each newly added person, a vector representation of all types of facial area images of each newly added person is obtained, which is convenient for the subsequent calculation of the difference degree; according to the vector representation of all types of facial area images of all newly added persons, the difference degree between each type of facial area images of each group of compared persons is accurately obtained, and the degree of difference between each type of facial area images of each group of compared persons is quantified, which is convenient for a more detailed comparison of the differences between different facial area features; according to the degree of difference between all types of facial area images of each group of compared persons, the comprehensive degree of difference of each group of compared persons is accurately obtained, the comprehensive degree of difference of each group of compared persons is quantified, and the personnel determination result of each group of compared persons is obtained according to the comprehensive degree of difference of each group of compared persons; according to the personnel determination results of all groups of compared persons, the number of entries of all calibrated persons and each calibrated person is accurately obtained, and the accurate statistics of the number and number of entries of persons who repeatedly enter and exit within a period of time are realized, and the accuracy of the determination of calibrated persons is improved, that is, more accurate personnel information statistics are obtained.

[0139] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A personnel information statistics method based on face recognition, characterized in that: include: S1: Obtain a facial image of each new employee in the store, and perform image processing on the facial image of each new employee in the store to obtain all facial region images of each new employee; S2: obtaining a vector representation of all facial region images of each newly added person based on all facial region images of each newly added person, and obtaining a degree of difference between each facial region image of each group of compared persons based on the vector representation of all facial region images of all newly added persons; S3: Based on the differences between all facial region images of each comparison group, a comprehensive difference of each comparison group is obtained, and based on the comprehensive difference of each comparison group, a person determination result of each comparison group is obtained; S4: Based on the personnel determination results of all groups of comparison personnel, obtain the number of entries of all calibrated personnel and each calibrated personnel, and obtain personnel information statistics results based on the number of entries of all calibrated personnel and each calibrated personnel; Wherein, S2: obtaining a vector representation of all facial region images of each newly added person based on all facial region images of each newly added person, and obtaining the difference between each facial region image of each group of compared persons based on the vector representation of all facial region images of all newly added persons, including: The mean value of all pixels in each type of facial region image of each newly added person is taken as the standard pixel value of each type of facial region image of each newly added person; The difference between the pixel value of each pixel point in each type of facial region image of each newly added person and the standard pixel value of the corresponding type of facial region image of the newly added person is used as the element representation of each pixel point in each type of facial region image of each newly added person; Sort each column of pixels in each type of facial region image of each newly added person in order from top to bottom to obtain a column pixel sequence for each column of pixels in each type of facial region image of each newly added person, and sort all column pixel sequences in each type of facial region image of each newly added person in order from left to right according to corresponding column positions and concatenate them to obtain a pixel sequence for each type of facial region image of each newly added person; Obtaining a vector representation of each type of facial region image of each newly added person based on the element representation of each pixel point in the pixel point sequence of each type of facial region image of each newly added person; Based on the vector representation of all facial region images of all newly added persons, the difference between each facial region image of each group of comparison persons is obtained; Among them, based on the vector representation of all facial region images of all newly added persons, the difference between each facial region image of each group of comparison persons is obtained, including: All newly added personnel were randomly combined in pairs to obtain all comparison groups, where a single comparison group contained two newly added personnel. Based on the vector representation of all facial region images of each comparison group, the difference between each facial region image of each comparison group is obtained, which is: ; in, is the difference between the current calculation group and the current calculation group of the comparison personnel's current calculation class face area image, n is the number of pixels limited in the preset pixel area extraction box, is the mean of the standard pixel values ​​of the current face region image of the current calculation group comparison personnel, is the i-th vector element in the vector representation of the facial region image of the current calculation class of the first newly added person in the current calculation group comparison personnel, is the i-th vector element in the vector representation of the current calculated facial region image of the second newly added person in each comparison group, ln is the natural logarithm, and the value of the natural constant e is 2.718; Wherein, S3: based on the differences between all facial region images of each comparison group of persons, obtaining the comprehensive differences of each comparison group of persons, and obtaining the personnel determination results of each comparison group of persons based on the comprehensive differences of each comparison group of persons, including: Obtaining the single-category facial region images contained in each group of comparison persons as the overlapping-category facial region images of each group of comparison persons; Based on the differences between all overlapping facial region images of each comparison group, the comprehensive difference between each comparison group is obtained, which is: ; in, is the comprehensive difference between each group of comparison personnel, is the difference between the first overlapping facial region images of each group of comparison persons, is the difference between the mth overlapping facial region images of each comparison group, m is the number of categories of overlapping facial region images of each comparison group, and n is the number of pixels limited in the preset pixel region extraction box. is the mean of the standard pixel values ​​of all overlapping facial region images of each comparison group, ln is the natural logarithm, and the value of the natural constant e is 2.718; The personnel determination results of each group of comparison personnel are obtained based on the comprehensive difference between each group of comparison personnel.

2. The personnel information statistics method based on face recognition according to claim 1 is characterized in that: S1: Obtain a facial image of each new employee in the store, and perform image processing on the facial image of each new employee in the store to obtain all facial region images of each new employee, including: Obtain surveillance video based on the preset shooting device, and obtain the facial image of each newly added person based on the image extraction model and the surveillance video; Perform image processing on the facial image of each new person in the store to obtain all facial region images of each new person.

3. The personnel information statistics method based on face recognition according to claim 2 is characterized in that: Perform image processing on the facial images of each new employee in the store to obtain all facial region images of each new employee, including: Performing multiple pixel region extractions on the facial image of each newly added person based on a preset pixel region extraction frame to obtain all extracted region images of each newly added person, wherein each extracted region image does not contain an occlusion region; When the extracted area image corresponds to the mouth, the corresponding extracted area image is used as the initial image of the mouth area; When the extracted area image corresponds to the nose, the corresponding extracted area image is used as the initial image of the nose area; When the extracted position of the extracted area image is the eye, the corresponding extracted area image is used as the initial image of the eye area; When the extracted area image corresponds to the ear, the corresponding extracted area image is used as the initial image of the ear area; The mouth region initial image, the nose region initial image, the eye region initial image and the ear region initial image are all regarded as region initial images; Determine whether the pixel difference between the pixel value of each pixel point in the initial image of each type of area of ​​each new person and the pixel value of each corresponding adjacent pixel point is greater than the preset pixel difference value. If so, treat the corresponding pixel point as the pixel point to be adjusted, and adjust the pixel values ​​of all the pixel points to be adjusted in the initial image of each type of area of ​​each new person to the average pixel value of all the corresponding adjacent pixel points to obtain the corresponding facial area image of each new person.

4. The personnel information statistics method based on face recognition according to claim 3 is characterized in that: Also includes: Determine whether the number of categories of the facial area image of each newly added person is zero. If so, delete the corresponding newly added person and upload the surveillance video of the corresponding newly added person to the cloud.

5. The personnel information statistics method based on face recognition according to claim 1 is characterized in that: The personnel determination results of each group of comparison personnel are obtained based on the comprehensive difference between each group of comparison personnel, including: Determine whether the comprehensive difference between each group of comparison personnel is greater than the preset comprehensive difference threshold. If so, the two new personnel in the corresponding group of comparison personnel are determined to be the same person, which is used as the personnel determination result of the corresponding group of comparison personnel. Otherwise, the two new personnel in the corresponding group of comparison personnel are determined to be different persons, which is used as the personnel determination result of the corresponding group of comparison personnel.

6. The personnel information statistics method based on face recognition according to claim 5 is characterized in that: S4: Based on the personnel determination results of all group comparison personnel, obtain the number of entries of all calibrated personnel and each calibrated personnel, and obtain personnel information statistics based on the number of entries of all calibrated personnel and each calibrated personnel, including: Among all the comparison persons determined to be the same person, all the comparison persons in which the newly added persons overlap with each other are summarized to obtain at least one same-person combination; All newly added members in each fan group are regarded as a calibration member, and the total number of newly added members in the corresponding fan group is regarded as the number of entries of the corresponding calibration member; Each new person remaining in all new persons except all new persons included in all doujinshi groups is considered as a calibration person, and 1 is used as the entry count of the corresponding calibration person; A personnel entry and exit statistics table is obtained based on all calibrated personnel and the number of entries of each calibrated personnel, and the personnel entry and exit statistics table is used as the personnel information statistics result.

7. A personnel information statistics system based on face recognition, characterized in that: A method for counting personnel information based on face recognition according to any one of claims 1 to 6, comprising: A processing module is used to obtain a facial image of each new employee in the store, and perform image processing on the facial image of each new employee in the store to obtain all facial region images of each new employee; a first calculation module, configured to obtain a vector representation of all facial region images of each newly added person based on all facial region images of each newly added person, and obtain a degree of difference between each facial region image of each group of comparison persons based on the vector representation of all facial region images of all newly added persons; A second calculation module is used to obtain a comprehensive difference degree of each comparison group of people based on the difference degrees between all facial region images of each comparison group of people, and obtain a person determination result of each comparison group of people based on the comprehensive difference degree of each comparison group of people; The information statistics module is used to obtain the number of entries of all calibrated personnel and each calibrated personnel based on the personnel determination results of all groups of comparison personnel, and obtain personnel information statistics results based on the number of entries of all calibrated personnel and each calibrated personnel.