WO2020173314A1 - Personnel statistical method and device and electronic device - Google Patents

Personnel statistical method and device and electronic device Download PDF

Info

Publication number
WO2020173314A1
WO2020173314A1 PCT/CN2020/075285 CN2020075285W WO2020173314A1 WO 2020173314 A1 WO2020173314 A1 WO 2020173314A1 CN 2020075285 W CN2020075285 W CN 2020075285W WO 2020173314 A1 WO2020173314 A1 WO 2020173314A1
Authority
WO
WIPO (PCT)
Prior art keywords
person
face model
face
similarity
model
Prior art date
Application number
PCT/CN2020/075285
Other languages
French (fr)
Chinese (zh)
Inventor
潘雄振
Original Assignee
杭州海康威视数字技术股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN201910146911.8A external-priority patent/CN111626079A/en
Priority claimed from CN201910180045.4A external-priority patent/CN111696220A/en
Priority claimed from CN201911267295.8A external-priority patent/CN112949362B/en
Application filed by 杭州海康威视数字技术股份有限公司 filed Critical 杭州海康威视数字技术股份有限公司
Publication of WO2020173314A1 publication Critical patent/WO2020173314A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition

Definitions

  • This application relates to the field of machine vision technology, and in particular to a method, device and electronic equipment for personnel counting. Background technique
  • the user may need to count the people appearing in the monitoring scene to dig out useful information. For example, the user may want to count the flow of people in a shopping mall every day during a week to serve as a reference for shopping mall management.
  • a monitoring device may be set to shoot a monitoring scene to obtain a monitoring picture. Face recognition is performed on the monitoring screen, and each time a face image is recognized in the monitoring screen, the number of people present is determined to increase by one. Exemplarily, assuming that in one day, from the start of business to the closing of the mall, a total of 1,000 face images are recognized from the monitoring screen, then it can be determined that the number of people appearing in the mall in one day is 1,000.
  • the purpose of the embodiments of the present application is to provide a method for counting people, so as to reduce the inaccuracy of statistical results caused by repeated statistics.
  • the specific technical solutions are as follows:
  • a method for counting people includes: when a face image is recognized from a monitoring screen, comparing the face image with a person saved in a first person database.
  • the face model is matched, and the first person database stores a person identifier and a face model correspondingly; If the face image matches the face model in the first person database, the appearance record of the person indicated by the first person identifier is updated, and the first person identifier is the same as that in the first person database.
  • the person ID corresponding to the face model that matches the face image is provided.
  • a person counting device comprising: a face matching module, when a face image is recognized from a monitoring screen, compare the face image with a first person Matching the face models saved in the library, and the first person library stores a person identifier and a face model correspondingly;
  • a record update module if the face image matches the face model in the first person database, update the appearance record of the person indicated by the first person identifier, where the first person identifier is the first person database The person ID corresponding to the face model matching the face image in.
  • an electronic device including:
  • the processor is used to implement the steps of the personnel counting method described in any one of the first aspects when executing the program stored in the memory.
  • a computer-readable storage medium is provided, and a computer program is stored in the computer-readable storage medium.
  • the computer program When executed by a processor, the computer program implements any of the above-mentioned aspects of the first aspect. The steps of the staff statistics method described.
  • the personnel counting method, device and electronic equipment provided by the embodiments of the present application can match the recognized facial images to distinguish the personnel corresponding to the facial images, and then separately count the appearance records of each personnel Effectively reduce the possibility of counting recurring personnel as different personnel, and improve the accuracy of statistical results.
  • any product or method of the present application does not necessarily need to achieve all the advantages described above at the same time.
  • FIG. 1 is a schematic flowchart of a method for counting people provided by an embodiment of the application
  • FIG. 2 is a schematic diagram of another flow of the method for counting people provided by an embodiment of this application
  • FIG. 3 is a schematic diagram of another flow of the method for counting people provided by an embodiment of this application
  • 4 is a schematic diagram of another flow chart of the personnel counting method provided by an embodiment of this application
  • FIG. 5 is another structural schematic diagram of the people counting device provided by an embodiment of this application
  • FIG. 6 is a schematic diagram of the electronic equipment provided by an embodiment of this application A schematic diagram of the structure.
  • Fig. 1 is a schematic flowchart of a method for counting people provided in an embodiment of the application.
  • a method for counting people provided in an embodiment of the present application may include:
  • the personnel counting method provided in the embodiments of the present application can be applied to electronic devices.
  • the electronic device may be a monitoring device with image acquisition and analysis functions, such as a camera.
  • the monitoring device may have an image acquisition function, a face recognition function, and a people counting function; or, the electronic device It can also be a device that serves as a back-end server of the monitoring device, such as a desktop computer, a notebook computer, a smart phone, a hard disk video recorder, an intelligent analysis device, etc.
  • the monitoring device may have an image acquisition function and a face recognition function
  • the The equipment as a back-end server has a personnel counting function.
  • the application scenario of the personnel counting method provided in the embodiments of the present application may be any scenario where there is a demand for personnel counting, for example: shopping malls, conference venues, check-in venues, etc., where there is a demand for people flow statistics.
  • the first person database stores a person identifier and a face model correspondingly.
  • the face model in the first person database mentioned in this application may be the image itself containing the face, or the feature value extracted from the image containing the face, or based on any other
  • the image processing method is the content used for face matching obtained by processing the image containing the face, and so on.
  • the feature value can also be called feature data, which can be image data of facial feature points extracted from an image.
  • the facial feature points can include: eyes, nose, mouth, and pupil distance and many more.
  • a monitoring screen may include multiple face images.
  • each face image may be matched with the face model saved in the first person database. That is, the case where the monitoring screen includes multiple face images is the same as the case where the monitoring screen includes only one face image. For the convenience of discussion, the following will take the monitoring screen including one face image as an example for description.
  • the face image may be modeled to obtain the face model of the face image, corresponding to the aforementioned description of the face model, the person
  • the face model of the face image may be: the face image, the feature value of the face image, or the content for face matching obtained by processing the face image based on any other image processing method.
  • matching the face image with the face model saved in the first person database may include: calculating the face model of the face image with the person saved in the first person database The similarity between the face models.
  • the similarity between the face model of the face image and the face model saved in the first person database is higher than the preset similarity threshold, then it can be determined that the face image and the first person The face model saved in the library is matched; if the similarity between the face model of the face image and the face model saved in the first person library is not higher than the preset similarity threshold, it can be determined that the face image and the first person’s face model The face model saved in a person database does not match.
  • the face image does not match the face model saved in the first person library, which means that the face image does not match the face model. If there are multiple face models saved in the first person database, the face image does not match the face model saved in the first person database, which means that the face image does not match any face model.
  • the person database corresponds to a predetermined auxiliary database
  • each record in the predetermined auxiliary database corresponds to a face model in the first person database
  • each record includes at least one auxiliary face model matching the face model corresponding to the record
  • the face image is matched with the face model saved in the first person library.
  • the personnel identifiers can be selected as the personnel identifiers.
  • the personnel identifier may be Use the serial number as the personnel identification, or use a string of numbers and letters as the personnel identification. It is understandable that, because the person identifier is used to indicate a person, the person identifier of different persons is different.
  • the first person ID is the person ID corresponding to the face model that matches the face image in the first person database.
  • the content recorded in the appearance record may be different.
  • the appearance record may include the number of people's appearances.
  • updating the appearance record may be the appearance record.
  • the so-called update occurrence record may include the number of times a person has signed in.
  • the appearance information may include facial feature information obtained based on the face image, and may also include monitoring pictures One or more of the timestamp of, the device identifier of the monitoring device that took the monitoring picture, the monitoring picture, and the person information preset for the first person identifier.
  • the facial features obtained based on the facial image can be different according to different application scenarios.
  • the facial features can include whether they wear glasses, whether they wear a mask, the age of the person estimated based on the facial image, Gender etc.
  • the time stamp of the monitoring screen can be used to indicate the time when the person appears in the monitoring scene this time.
  • the device identifier of the monitoring device that took the monitoring picture can be used to indicate the location where the person appears this time. It is understandable that in some application scenarios, the field of view of the monitoring scene may be larger than that of a single monitoring device, making it difficult or impossible to use a monitoring device.
  • the equipment shoots the entire surveillance scene, so multiple surveillance equipment can be used to shoot the surveillance scene at the same time to reduce or avoid the surveillance blind spots in the surveillance scene.
  • one or more surveillance equipment can be installed in each partition on each floor, and Establish the corresponding relationship between the device identifier and the area monitored by the monitoring device, based on the device identifier of the monitoring device to which the monitoring screen of the recognized face image belongs, and the corresponding relationship, the area monitored by the monitoring device that took the monitoring screen can be determined, And use this area as the location where the person appears this time.
  • the preset personnel information for the first person identifier may include different content according to different actual application scenarios, and the content of the preset personnel information may be different for different personnel identifiers.
  • it may be the name, ID number, hometown, contact information, home address and other identity information that the user pre-input for the first person ID.
  • the user may have the identity information of some personnel.
  • the user may know how often they come to the mall. Then, the user can correspondingly save the face models and personal identifications of these persons in the first person database, and input the identification information of these persons as the preset personal information for the personal identifications of these persons.
  • the more information included in the appearance information the more useful information users can dig out from the appearance records obtained by statistics. For example, if the appearance information includes whether a person wears a mask, the user can determine the proportion of persons with masks who appear in the surveillance scene within a day based on the appearance records obtained by statistics.
  • the recognized face images can be matched to distinguish the persons corresponding to the face images, and the appearance records of each person can be counted separately, effectively reducing the number of recurring persons as The possibility of different personnel improves the accuracy of statistical results.
  • the step of matching the face image with the face model saved in the first person database may include step A1-step A2:
  • Step A1 Calculate the similarity between the face model of the face image and each face model in the first person library, and calculate the similarity between the face model of the face image and each auxiliary face model in the predetermined auxiliary library Degree; wherein, each record in the predetermined auxiliary library corresponds to a face model in the first person library, and each record includes at least one auxiliary face model that matches the face model corresponding to the record;
  • the first person database is used as the basic database for face recognition
  • the predetermined auxiliary database is used as the auxiliary database of the first person database
  • the auxiliary face model included in each record in the predetermined auxiliary database is The specific form of is the same as the specific data form of the face model in the first person database.
  • the number of auxiliary face models included in each record in the predetermined auxiliary library can be set according to actual conditions, for example: 5, 6, 10, and so on.
  • any face model in the first person database is determined based on a person's face image
  • the person's face image may be an image containing more comprehensive face information, for example: a passport photo , Or, the collected image with a higher face quality score.
  • each auxiliary face model included in each record in the predetermined auxiliary library is also determined based on a face image, and the face image to which the auxiliary face model included in each record belongs may be: corresponding to the record A similar image of the face image to which the face model in the first person database belongs.
  • the person to which a face model belongs in the first person database, and the person to which the auxiliary face model belongs is recorded corresponding to the face model, Can be identified as the same person, the difference lies in the person's posture, degree of occlusion, etc.
  • the predetermined auxiliary database may be a pre-built personnel database, or the face model in the predetermined auxiliary database may be pre-built partly and gradually in the process of personnel statistics. Complete the face model in the predetermined auxiliary library.
  • the face models in the predetermined auxiliary database can be pre-built and gradually improved in the process of personnel statistics, and the pre-constructed face models in the predetermined auxiliary database
  • the partial face models are related models of persons corresponding to the face models constructed in advance in the first person database.
  • the similarity algorithms used may be different.
  • a face model as a feature value
  • the Euclidean distance between the face model of the face image and the vector value of the face model in the first person database can be calculated, and the face model of the face image can be calculated The Euclidean distance to the vector value of each auxiliary face model in the predetermined auxiliary library.
  • the face model is an image
  • any image similarity recognition algorithm may be used to calculate the similarity between the face model of the face image and each face model in the first person database, and calculate the The similarity between the face model of the face image and each auxiliary face model in the predetermined auxiliary library.
  • Step A2 Based on the calculated similarity, it is determined whether the face image matches the face model in the first person database.
  • determining whether the face image matches the face model in the first person database may include:
  • the found similarity is the similarity between a face model in the first person database and the face model of the face image, Determine that the face image matches the face model in the first person database, and use the face model in the first person database as a face model that matches the face model of the face image ;
  • the found similarity is the similarity between an auxiliary face model in the predetermined auxiliary library and the face model of the face image, determining that the face image matches the face model in the first person library, In addition, the face model corresponding to the record to which the auxiliary face model belongs in the predetermined auxiliary library is used as the face model matching the face model of the face image.
  • the specified similarity threshold can be set according to actual conditions, and is not limited here.
  • the step of determining whether the face image matches a face model in the first person database based on the calculated similarity may include:
  • the similarity to be used of any face model in the first person database is a value determined based on the first similarity and the second similarity corresponding to the face model; the first similarity corresponding to the face model The similarity is the similarity between the face model and the face model of the face image, and the second similarity corresponding to the face model is the auxiliary face model in the corresponding record of the face model, and the difference between the face model and the face image.
  • the similarity of the face model is the similarity between the face model and the face model of the face image, and the second similarity corresponding to the face model is the auxiliary face model in the corresponding record of the face model, and the difference between the face model and the face image.
  • the face model that matches the face image is the face model that has the greatest similarity to be used and meets the predetermined similarity condition.
  • the predetermined similarity condition may be greater than a predetermined similarity threshold, and the predetermined similarity threshold may be set according to the situation, for example: 90%, 92%, 93%, 95%, and so on.
  • determining the to-be-used similarity of each face model in the first person database may include:
  • the first similarity and the second similarity corresponding to the face model are weighted and averaged to obtain the to-be-used similarity of the face model.
  • This optional implementation manner is to determine the to-be-used similarity of each face model in the first person database.
  • the face model in the first person database is the data in the basic database, the face information is more comprehensive, and the corresponding similarity is more reliable for the data matching judgment. Therefore, the weight corresponding to the face model in the first person database may be greater than the weight corresponding to the auxiliary face model in the predetermined auxiliary database.
  • determining the to-be-used similarity of each face model in the first person database may include steps B1-step B2:
  • Step B1 selecting models whose similarity with the face model of the face image meets a predetermined similarity condition from the first person database and the predetermined auxiliary database respectively, to obtain hit data;
  • Step B2 For each face model in the face model corresponding to the hit data, when the face model is included in the hit data, if the record corresponding to the face model belongs to the first record, follow the person Among the first similarity and the third similarity corresponding to the face model, the maximum value is selected as the person The to-be-used similarity of the face model; otherwise, the first similarity corresponding to the face model is used as the to-be-used similarity of the face model; when the face model is not included in the hit data, the face model Among the third similarity degrees corresponding to the model, the maximum value is selected as the to-be-used similarity degree of the face model; wherein, the third similarity degree corresponding to the face model is: an auxiliary of the hit data in the corresponding record of the face model The face model, the similarity with the face model of the face image;
  • the face model corresponding to the hit data includes: the face model included in the hit data, and the face model not included in the hit data but the corresponding record belongs to the first record; the first record is included
  • the auxiliary face model belongs to the record of the hit data.
  • step B1 from the first person database and the predetermined auxiliary database, the models whose similarity with the face model of the face image meets the predetermined similarity condition are selected from the first person database and the predetermined auxiliary database, and there are multiple specific implementation methods for obtaining hit data.
  • the models whose similarity with the face model of the face image meets the predetermined similarity condition are selected from the first person database and the predetermined auxiliary database.
  • determining whether the similarity between the model and the face model of the face image is greater than a predetermined threshold If it is, it is determined that the model is a model whose similarity with the face model of the face image satisfies a predetermined similarity condition.
  • the predetermined threshold can be set according to actual conditions, for example: 85%, 87%, 90%, 92%, 95%, and so on.
  • the face information included in the image to which each face model belongs in the first person database is relative to the auxiliary
  • the face information included in the image to which the face model belongs is more comprehensive, that is, the similarity corresponding to the face model in the first person database is more reliable for judging matching. Therefore, in order to further improve the matching accuracy, different predetermined thresholds can be set for the two libraries based on the characteristics of the first personnel library and the predetermined auxiliary library.
  • respectively selecting from the first person database and the predetermined auxiliary database the models whose similarity with the face model of the face image satisfies a predetermined similarity condition may include: determining a preset set for the first person database A predetermined first predetermined threshold, and a second predetermined threshold set in advance for the predetermined auxiliary library; wherein, the first predetermined threshold is less than the second predetermined threshold;
  • auxiliary face model For each auxiliary face model in the predetermined auxiliary library, determine whether the similarity between the auxiliary face model and the face model of the face image is greater than the second predetermined threshold; if so, determine that the auxiliary face model is A model whose similarity with the face model of the face image meets the predetermined similarity condition.
  • the first predetermined threshold may be lower than the second predetermined threshold.
  • the first predetermined threshold and the second predetermined threshold may be set according to actual conditions. For example, the first predetermined threshold may be 87%, and the second predetermined threshold may be 90%; or, the first predetermined threshold may be 90%, and the second predetermined threshold may be 94%, and so on.
  • the predetermined person attribute of the face image affects the credibility of the data matching judgment by the similarity corresponding to the face model of the face image, and different attribute values have different effects. Therefore, in order to further improve the matching accuracy, the following correspondence can be set in advance for the first personnel database: The first correspondence between each attribute value of the predetermined personnel attribute and the predetermined threshold; and the following correspondence is set in advance for the predetermined auxiliary database Relationship: The second corresponding relationship between each attribute value of the attribute of the predetermined person and the predetermined threshold.
  • the attributes of the predetermined person may include: whether to wear eye glasses, whether to wear a hat, identities based on age groups, and so on.
  • the predetermined threshold corresponding to the attribute value with a large degree of influence may be greater than the predetermined threshold corresponding to the attribute value with a small degree of influence.
  • the attribute of the predetermined person is whether to wear glasses.
  • the attribute value of the attribute of the predetermined person includes wearing glasses and not wearing glasses. Wearing glasses has a great influence on the credibility, and not wearing glasses has little influence on the credibility.
  • first The corresponding relationship may be: Wearing glasses corresponds to a predetermined threshold: 91%, and not wearing glasses corresponds to 89%; and the second correspondence may be: Wearing glasses corresponding to a predetermined threshold: 93%, and not wearing glasses corresponds to a threshold of 92% .
  • the attributes of the predetermined personnel are identities based on age groups.
  • the attribute values of the attributes of the predetermined personnel include old age, children, and young people, and the influence of children, young people, and old age on the credibility is gradually reduced.
  • the first corresponding relationship may be: children corresponding to a predetermined threshold: 93%, youth corresponding to a predetermined threshold of 90%, and old age corresponding to a predetermined threshold of 88%; and the second corresponding relationship may be: children corresponding to a predetermined threshold: 95%, The predetermined threshold for young people is 93%, and the predetermined threshold for old people is 90%.
  • the determining a first predetermined threshold set in advance for the first personnel library, and a second predetermined threshold set in advance for the predetermined auxiliary library Can include: Determine the attribute value of the predetermined person attribute of the face image as the target attribute value; from the first correspondence relationship between each attribute value of the predetermined person attribute set in advance for the first person database and the predetermined threshold value, search for and The predetermined threshold corresponding to the target attribute value is used as the first predetermined threshold set for the first personnel database;
  • a pre-trained neural network model for identifying the attribute value of the predetermined person attribute may be used to identify the attribute value of the predetermined person attribute of the face image.
  • the method provided in the embodiments of the present application also Can include:
  • the second record is a record in the predetermined auxiliary library that corresponds to a face model that matches the face model of the face image.
  • the method for determining the image quality score of the face image can be any method that can score the image quality, which is not limited in the embodiment of the present application.
  • the predetermined scoring threshold can be set according to actual conditions. For example, if the image quality score is a percentile system, then the predetermined scoring threshold can be 92 points, 95 points, 96 points, and so on.
  • the face model saved in the first person database may be a pre-input face model of a person who may appear in the monitoring scene.
  • the face model saved in the first person database may be the face model of students, faculty and staff of the school.
  • the surveillance scenes are shopping malls, parks, etc., because these surveillance scenes have a large amount of people and the personnel The composition is more complex, so it is difficult for users to predict who may appear in the surveillance scene.
  • FIG. 2 is a schematic diagram of another flow chart of the method for counting people provided in an embodiment of this application.
  • the personnel counting method provided by the embodiment of the present application may include:
  • This step is the same as S101, and can refer to the related description in the foregoing S101, which is not repeated here.
  • the second person ID is different from the person ID saved in the first person database.
  • the person identification is a serial number
  • the saved person identification in the first person database is 1-66
  • the second person identification may be 67.
  • the second person ID is different from the saved person ID in the first person database
  • the person indicated by the second person ID is different from the person indicated by any saved person ID in the first person database. It is understandable that if the face image does not match the face model in the first person database, it can be considered that the person corresponding to the face image is not the person identified by the saved person ID in the first person database. Therefore, the second person ID needs to be used to indicate the person.
  • a person identification in an application scenario where it is difficult for the user to predict a person who may appear in the monitoring scene, a person identification can be automatically assigned to a person who has not previously input a corresponding face model, and the face identification of the person can be saved.
  • effective statistics can be made on the appearance records of persons who have not entered the corresponding face model in advance.
  • the first person database may not initially save any face models, but by saving the second person identification, the saved person identifications and face models in the first person database are added.
  • the first person database corresponds to Before saving the second person identifier and the face model of the face image, it may also include:
  • the face model of the face image is determined to be added Stranger data, and execute the step of correspondingly saving the second person identifier and the face model of the face image in the first person database;
  • the so-called stranger data of the same stranger the problem of being added multiple times in the first person database specifically refers to: before a piece of stranger data is written to the first person database, the stranger data belongs to another stranger An image containing a human face is recorded as a stranger again as a new image to be analyzed in the process of personnel counting, and written into the first personnel database. Among them, if the face model of the face image does not find a matching face model in the first person database, then the face model of the face image can be used as stranger data.
  • the predetermined cache stores the faces determined to be stranger data to be added in the last N seconds Model.
  • the similarity between the face model of the face image and each face model in the predetermined cache is calculated, and then the judgment Whether there is a face model with a similarity greater than the third predetermined threshold in the predetermined cache, that is, determine whether the person to which the face image belongs is a stranger that has been determined in the last N seconds, and perform different processing according to different determination results process.
  • N can be set according to the writing speed of stranger data in the actual situation.
  • the N can be 4, 5, 6, etc.
  • the specific value of the third predetermined threshold can be set according to the actual situation.
  • for a specific implementation manner of calculating the similarity between the target data and each third face data in the predetermined cache reference may be made to the relevant description of the foregoing embodiment, and details are not described herein.
  • the specific implementation of identifying whether the image quality of the face image meets the predetermined high quality condition may include: determining whether the image quality score of the face image exceeds a predetermined score threshold, and if so, determining that the image quality of the face image meets Predetermine high quality conditions.
  • determining the image quality score of the face image please refer to the relevant description of the foregoing embodiment, which will not be repeated here.
  • the user may only need to count the appearance records of some people in the monitoring scene.
  • the monitoring scene as a shopping mall as an example
  • the user may be interested in the appearance records of customers in the shopping mall, and the appearance records of the customers may appear in the shopping mall.
  • Personnel also include store employees, and users may not be interested in the presence records of store employees.
  • an embodiment of the present application provides a method for counting people, which can be referred to FIG. 3, which shows another schematic flow chart of the method for counting people provided by an embodiment of the application.
  • the personnel counting method provided by the embodiment of the present application may include:
  • the second person database stores face models of persons who do not need to participate in statistics. According to different application scenarios, the people who do not need to participate in statistics can be different.
  • the face model in the second person database may be input in advance by the user.
  • the person corresponding to the face image can be considered to be a person who does not need to participate in the statistics.
  • Statistics of personnel appearance records If the face image does not match the face model saved in the second person database, the person corresponding to the face image can be considered to be a person who needs to participate in the statistics. Therefore, the face image can be further compared with the face model in the first person database. The saved face models are matched for statistics.
  • This step is the same as S102, and you can refer to the foregoing description of S102, which will not be repeated here.
  • the user may need to count the presence records of customers in the shopping mall, which may be pre-collected facial models of mall staff and save them in the second personnel database. If the face image of the worker is recognized from the monitoring screen, the face image matches the face model in the second person database, so no further statistics will be performed. And when the face image of the customer is recognized from the monitoring change, the face image does not match the face model in the second person database, so further statistics will be performed to obtain the presence record of the customer.
  • the first personnel database can be one personnel database or multiple personnel databases. Each first person database may pre-store the face model input by the user, or it may not pre-store the model input by the user, but according to the embodiment shown in FIG. 2 gradually increase the saved face model during the personnel counting process. model.
  • the surveillance scene is a shopping mall
  • the user has installed surveillance equipment in multiple areas of the shopping mall in advance for shooting surveillance pictures.
  • the user needs to count the presence records of customers in the mall to better manage the mall.
  • Two first personnel databases and a second personnel database can be pre-set.
  • the two first personnel databases are the stranger database and the key personnel database.
  • the stranger database does not save face models in advance
  • the key personnel database is Corresponding to the face model, person identification, and person information (such as ID number, address, contact information, etc.) of important customers (in some embodiments, it may also include suspicious persons that need to be monitored) that are stored in advance
  • the staff library is a staff library, and the face models of the staff in the shopping mall are pre-stored.
  • the personnel counting method provided by the embodiment of the present application may include:
  • S401 When a face image is recognized from a monitoring picture, the face image is matched with a face model saved in a staff library. Since the staff database is the second personnel database, you can refer to the relevant description in S301, which will not be repeated here.
  • S402 If the face image does not match the face model saved in the staff library, match the face image with the face model saved in the key staff library. If the face image matches the face model in the key staff library, Perform S403, if the face image does not match the face model in the key personnel database, perform S404. Since the staff library is the first staff library, you can refer to the related description in S101, which will not be repeated here.
  • S405 correspondingly save the face model of the second person identifier and the face image in the stranger library. This step is the same as S203, and you can refer to the foregoing description of S203, which is not repeated here.
  • the face model is not pre-stored in the stranger library
  • the face image is The face image in the stranger library does not match, so the face model of the face image will be correspondingly saved in the stranger library. That is, after the face image is matched with the face model stored in the stranger library for the first time, the face model and logo are correspondingly stored in the stranger library.
  • the staff database can be used to avoid collecting statistics on staff who are not interested in the user.
  • the stranger database customers who are difficult to obtain face models in advance can be counted.
  • customers who are more interested in users can be distinguished from ordinary customers.
  • the appearance records obtained by statistics may be as shown in the following table:
  • the table can indicate: The person indicated by the person identification 1 has appeared 5 times in total and has appeared in areas 1 and 2, the person is a stranger and wears glasses. The person indicated by Personnel ID 2 has appeared 5 times in total and has appeared in areas 3, 4, and 5. This person is a key person and does not wear glasses.
  • the method is XXX-XXXXX. It is understandable that this table is only a representation form of the appearance records obtained by statistics. In other optional embodiments, according to actual needs, the appearance records may include more table items, and the appearance records may also be in the form of a table. If it is expressed in other forms, this embodiment does not limit it.
  • users can conduct information mining based on actual needs.
  • the user may sort according to the number of appearances to determine the personnel with a larger number of appearances, and consider key personnel among these personnel as key development targets, and unfamiliar personnel as potential development targets.
  • the personnel counting method provided in the embodiments of the present application can be applied to any scenario with personnel counting requirements.
  • the following uses a sign-in scenario as an example to describe the personnel counting method provided in the embodiment of the present application.
  • the personnel counting method provided in the embodiments of the present application may include the following steps C1-C2:
  • Step C1 When a face image is recognized from the monitoring screen, the face image is matched with a face model saved in a first person database, and the first person database correspondingly saves a person identification and a face model;
  • Step C2 If the face image matches the face model in the first person database, update the check-in status of the first person ID to the checked-in state, and update the number of check-ins corresponding to the person indicated by the first person ID
  • the number of check-ins is the number of times the check-in status of the first person ID is updated to the checked-in state
  • the first person ID is the person ID corresponding to the face model in the first person database that matches the face image .
  • the electronic device to which the method provided in the embodiment of the present application is applied can be communicatively connected with monitoring devices set up at different check-in locations, and the monitoring device has an image collection function.
  • step C1 the recognition of the face image from the monitoring picture can be understood as the face image collected from the scene, and the scene is the sign-in scene.
  • the electronic device can match the face image with the face model stored in the first person database, and the first person database correspondingly stores the person identification and Face model.
  • the first person database correspondingly stores the person identification and Face model.
  • the person identification in the first person database may include any information such as name, ID number, contact information, and face picture, or a combination of various information.
  • the check-in status of the first person ID can be updated to the checked-in status, and then the first person ID is updated
  • the number of check-ins corresponding to the personnel It should be noted that the number of check-in times reflects the appearance record of the person in the check-in scene.
  • the check-in status before the update to checked-in can be the unchecked state or the checked-in state, which is reasonable.
  • the personnel counting method provided by the embodiments of the present application can distinguish the personnel corresponding to the facial images by matching the recognized facial images, and then can separately count the appearance records of each personnel at the check-in site, which is effective Reduce the possibility of counting recurring personnel as different personnel, and improve the accuracy of statistical results.
  • a personnel counting method provided in the embodiments of the present application may include the following steps D1-D4:
  • Step D1 When a face image is recognized from the monitoring screen, the face image is matched with a face model saved in a first person database, and the first person database correspondingly saves a person identification and a face model, And correspondingly save personnel identification and group identification;
  • the people belonging to the same group ID can be classified as a group.
  • the sign-in status update occurs, the number of signed-in persons included in the group to which the person whose sign-in status update occurs can be judged, and the sign-in status of the group can be determined based on the number of the sign-in persons.
  • the number of the first personnel database may include multiple, and each first personnel database has a different identifier, and each first personnel database may include one or more group identifiers.
  • Step D2 If the face image matches the face model in the first person database, update the check-in status of the first person ID to the checked-in state, and update the number of check-ins corresponding to the person indicated by the first person ID
  • the number of check-ins is the number of times the check-in status of the first person ID is updated to the checked-in state
  • the first person ID is the person ID corresponding to the face model in the first person database that matches the face image ;
  • Step D3 After updating the sign-in status of the first person identification to the signed-in state, obtain the sign-in status of all the person identifications corresponding to the target group identification in the first person database; wherein, the target group identification is the first person identification.
  • Step D4 Determine the sign-in status of the group with the target group ID based on the obtained sign-in status of all the personnel IDs.
  • the determination of the sign-in status of the group with the target group identifier based on the obtained sign-in status of all the personnel identities may include:
  • the sign-in status of the group with the target group identifier is determined. Among them, if the first number is less than the preset number of people corresponding to the target group, the sign-in status of the target group is not signed in; if the first number is not less than the preset number of people corresponding to the target group, the sign-in status of the target group is signed in .
  • a prompt message indicating that the sign-in status of the target group is not sign-in is output; if the first number is not less than the target group
  • a prompt message indicating that the sign-in status of the target group is signed-in is output.
  • the preset number of people can be set according to actual needs.
  • the person ID corresponding to the found face model is: Wang Wu, update the sign-in status of "Wang Wu” to Has checked in, and updated the number of check-in times corresponding to "Wang Wu", and the number of people who have checked-in information contained in group 1 to which Wang Wu belongs is 3, assuming that the preset number of people corresponding to group 1 is 3, then it can be determined And output the sign-in status of group 1 as signed-in.
  • all the person identities included in the target group and the sign-in status of all the person identities can be output at the same time, so that the user can know which persons in the target group sign in , Who did not sign in.
  • the face image corresponding to the person who has checked in can also be presented, or the statistics and presentation The number of people who have signed in to the target group and the number of people who have not signed in, so that the user can learn the detailed sign-in status of each person in the target group, which is not limited in this application.
  • the personnel counting method may further include: taking the collection time of the face image as the sign-in time of the first person identification and recording it; when an external input is received, the specified time and During the group identification retrieval instruction, obtain the person identification corresponding to the received group identification and whose sign-in status is signed-in;
  • the obtained second number is less than the preset number of people corresponding to the group with the received group ID, determining that the sign-in status of the group with the received group ID is not signed in;
  • the obtained number is not less than the preset number of people corresponding to the group with the received group ID, it is determined that the sign-in status of the group with the received group ID is checked in.
  • the personnel counting method provided by the embodiments of the present application can distinguish the personnel corresponding to the facial images by matching the recognized facial images, and then can separately count the appearance records of each personnel at the check-in site, which is effective Reduce the possibility of counting recurring personnel as different personnel, and improve the accuracy of statistical results. Moreover, it can meet the need to count the sign-in status of the sign-in group, and realize the demand for the association between personnel and the group. In addition, it can meet the needs of searching group sign-in situations at different times.
  • FIG. 5 shows a schematic structural diagram of a people counting device provided by an embodiment of the application, which may include:
  • the face matching module 501 when a face image is recognized from the monitoring picture, matches the face image with a face model saved in a first person database, and the first person database correspondingly saves a person identifier And face model;
  • the record update module 502 if the face image matches the face model in the first person database, update the appearance record of the person indicated by the first person identifier, where the first person identifier is the first person The person identification corresponding to the face model in the library that matches the face image.
  • the face matching module 501 may include:
  • the similarity calculation sub-module is used to calculate the similarity between the face model of the face image and each face model in the first person library, and calculate the face model of the face image and the predetermined auxiliary library The similarity of each auxiliary face model; wherein, each record in the predetermined auxiliary library corresponds to a face model in the first person library, and each record includes a face model matching the record At least one auxiliary face model of The matching analysis sub-module is configured to determine whether the face image matches the face model in the first person database based on the calculated similarity.
  • the matching analysis submodule may include:
  • the calculation unit is configured to determine the to-be-used similarity of each face model in the first person database based on the calculated similarity; wherein, the to-be-used similarity of any face model in the first person database is The value determined based on the first similarity and the second similarity corresponding to the face model; the first similarity corresponding to the face model is the similarity between the face model and the face model of the face image, The second similarity corresponding to the face model is the similarity between the auxiliary face model in the corresponding record of the face model and the face model of the face image;
  • An analysis unit configured to, if there is a face model with the greatest similarity to be used and meet a predetermined similarity condition, determine that the face image matches the face model in the first person database;
  • the face model that matches the face image is the face model that has the greatest similarity to be used and meets a predetermined similarity condition.
  • the calculation unit may include:
  • a screening subunit which is used to screen the models whose similarity with the face model of the face image meets the predetermined similarity condition from the first person database and the predetermined auxiliary database respectively, to obtain hit data;
  • the determining subunit is used for each face model in the face model corresponding to the hit data, and when the face model is included in the hit data, if the record corresponding to the face model belongs to the first record , Select the maximum value from the first similarity and the third similarity corresponding to the face model as the to-be-used similarity of the face model, otherwise, the first similarity corresponding to the face model is taken as The to-be-used similarity of the face model; when the face model is not included in the hit data, select the maximum value from the third similarity corresponding to the face model as the to-be-used similarity of the face model Degree
  • the third degree of similarity corresponding to the face model is: the degree of similarity between the auxiliary face model belonging to the hit data in the corresponding record of the face model and the face model of the face image;
  • the face model corresponding to the hit data includes: a face model included in the hit data, and a face model that is not included in the hit data but the corresponding record belongs to the first record;
  • the first record is a record in which the included auxiliary face model belongs to the hit data.
  • the calculation unit may include: The first calculation subunit is used to select the maximum value from the first similarity and the second similarity corresponding to the face model for each face model in the first person database, as the face model Similarity to be used;
  • the second calculation subunit is used for weighting and averaging the first similarity and the second similarity corresponding to the face model for each face model in the first person database, to obtain the waiting time of the face model Use similarity.
  • the screening subunit is specifically configured to:
  • the screening subunit determines a first predetermined threshold set in advance for the first personnel database, and a second predetermined threshold set in advance for the predetermined auxiliary database, Include:
  • the predetermined threshold corresponding to the target attribute value is searched as the predetermined auxiliary The second predetermined threshold set by the library.
  • the face matching module 501 is further configured to: if the face image does not match the face model in the first person database, corresponding in the first person database Save second A person identification and a face model of the face image, and the second person identification is different from a person identification saved in the first person database;
  • the record update module 502 is also used to update the appearance record of the person indicated by the second person identifier.
  • the face matching module 501 is further configured to calculate the face model of the face image and the second person identification in the first person database.
  • the face matching module 501 is further configured to compare the face image with the face model stored in the first person database before matching the face image Matching with face models saved in a second person database, where face models of persons who do not need to participate in statistics are saved in the second person database;
  • the record update module 502 is specifically configured to add new appearance information to the appearance record of the person indicated by the first person identifier, and the appearance information includes information based on the person Face feature information obtained from a face image.
  • the appearance information further includes: the time stamp of the monitoring screen, the device identification of the monitoring device that took the monitoring screen, the monitoring screen, the identification of the first person One or more of the set personnel information.
  • the record update module 502 is specifically configured to:
  • the check-in status of the first person ID is updated to the checked-in status, and the number of check-ins corresponding to the person indicated by the first person ID is updated , The check-in status whose check-in times is the first person ID is updated to The number of check-in states.
  • the first personnel database also correspondingly stores personnel identifications and group identifications
  • the device also includes:
  • the obtaining module is configured to obtain the check-in status of all the person IDs corresponding to the target group ID in the first person database after the record update module updates the check-in status of the first person ID to the checked-in status; wherein,
  • the target group identifier is the group identifier corresponding to the first person identifier;
  • the determining module is configured to determine the sign-in status of the group with the target group identifier based on the obtained sign-in status of all the personnel identities.
  • the determining module is specifically configured to:
  • the device further includes:
  • a recording module configured to, after the record update module updates the sign-in status of the first person identification to the signed-in state, use the collection time of the face image as the sign-in time of the first person identification and record;
  • the obtained second number is less than the preset number of people corresponding to the group with the received group ID, determining that the sign-in status of the group with the received group ID is not signed in;
  • the acquired second number is not less than the preset number of people corresponding to the group with the received group ID, it is determined that the sign-in status of the group with the received group ID is signed in.
  • An embodiment of the present application also provides an electronic device, as shown in FIG. 6, including:
  • the memory 601 is used to store computer programs
  • the processor 602 is configured to execute the program stored in the memory 601 to implement the following steps: when a face image is recognized from the monitoring picture, the face image is stored in the first person database The stored face model is matched, and the first person database stores a person ID and a face model correspondingly; if the face image matches the face model in the first person database, the first person ID is updated For the appearance record of the indicated person, the first person identifier is a person identifier corresponding to a face model that matches the face image in the first person database.
  • the method further includes:
  • the second person identifier and the face model of the face image are correspondingly saved in the first person database, and the second person The person ID is different from the person ID saved in the first person database;
  • the method before the matching the face image with the face model saved in the first person database, the method further includes:
  • the updating the appearance record of the person indicated by the first person identifier includes:
  • New appearance information is added to the appearance record of the person indicated by the first person identifier, and the appearance information includes face feature information obtained based on the face image.
  • the appearance information further includes: the time stamp of the monitoring screen, the device identification of the monitoring device that took the monitoring screen, the monitoring screen, the identification of the first person One or more of the set personnel information.
  • the memory mentioned in the above electronic device may include random access memory ( Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NYM), such as at least one disk memory.
  • RAM Random Access Memory
  • NYM Non-Volatile Memory
  • the memory may also be at least one storage device located far away from the foregoing processor.
  • the above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (DSP), a dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • CPU central processing unit
  • NP Network Processor
  • DSP digital signal processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • FPGA Field-Programmable Gate Array
  • a computer-readable storage medium stores instructions, which when run on a computer, cause the computer to execute any one of the foregoing embodiments. People counting methods.
  • a computer program product containing instructions is also provided, which when running on a computer, causes the computer to execute any of the personnel counting methods in the foregoing embodiments.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state hard disk (SSD)).

Abstract

Disclosed are a personnel statistical method and device and an electronic device. The method comprises: when a face image is recognized in a monitoring screen, matching the face image with face models stored in a first personnel library which correspondingly stores personnel identifiers and face models; if the face image matches a face model in the first personnel library, updating the appearance record of the person represented by a first personnel identifier, the first personnel identifier being a personnel identifier corresponding to the face model in the first personnel library which matches with the face image. The face images obtained by recognition can be matched to distinguish personnel corresponding to the face images, and then the appearance record of each person can be separately counted, thereby effectively reducing the possibility of counting a person with repeated appearances as different persons and improving the accuracy of statistical results.

Description

一种人员统计方法、 装置及电子设备 Person counting method, device and electronic equipment
本申请要求于 2019 年 2 月 27 日提交中国专利局、 申请号为 201910146911. 8发明名称为“一种人员统计方法、 装置及电子设备” 的中国 专利申请, 2019年 3月 11日提交中国专利局、 申请号为 201910180045. 4发 明名称为“签到方法及装置” 的中国专利申请, 以及 2019年 12月 11日提交 中国专利局的、 申请号为 201911267295. 8发明名称为“人员信息标注方法、 装置及电子设备” 的中国专利申请的优先权, 其全部内容通过引用结合在本 申请中。 This application requires that it be submitted to the Chinese Patent Office on February 27, 2019, and the application number is 201910146911. 8 The Chinese patent application with the title of "A method, device and electronic equipment for personnel counting" shall be submitted on March 11, 2019. The application number is 201910180045. 4 The Chinese patent application with the title of “sign-in method and device”, and the application number of 201911267295, which was filed with the Chinese Patent Office on December 11, 2019, with the application number of 201911267295. 8 The title of the invention is “Method for labeling personnel information, The priority of the Chinese patent application for "Devices and Electronic Equipment", the entire content of which is incorporated into this application by reference.
技术领域 Technical field
本申请涉及机器视觉技术领域, 特别是涉及一种人员统计方法、 装置及 电子设备。 背景技术 This application relates to the field of machine vision technology, and in particular to a method, device and electronic equipment for personnel counting. Background technique
在一些应用场景中, 用户可能需要对出现在监控场景中的人员进行统计, 以从中挖掘出有用的信息, 例如用户可能希望统计商场在一周内每天各自的 人流量, 以作为商场管理的参考。 In some application scenarios, the user may need to count the people appearing in the monitoring scene to dig out useful information. For example, the user may want to count the flow of people in a shopping mall every day during a week to serve as a reference for shopping mall management.
相关技术中, 可以设置监控设备对监控场景进行拍摄, 得到监控画面。 并对监控画面进行人脸识别, 每在监控画面中识别到一次人脸图像, 确定出 现人员的数量加一。 示例性的, 假设在一天之内, 从开始营业到商场关门期 间, 共从监控画面中识别到 1000次人脸图像, 则可以确定在一天之内出现在 商场中的人员的数量为 1000。 In the related technology, a monitoring device may be set to shoot a monitoring scene to obtain a monitoring picture. Face recognition is performed on the monitoring screen, and each time a face image is recognized in the monitoring screen, the number of people present is determined to increase by one. Exemplarily, assuming that in one day, from the start of business to the closing of the mall, a total of 1,000 face images are recognized from the monitoring screen, then it can be determined that the number of people appearing in the mall in one day is 1,000.
但是, 如果相同人员重复多次出现在监控场景中, 则该人员可能会被反 复统计, 导致统计结果不准确。 However, if the same person repeatedly appears in the monitoring scene multiple times, the person may be counted repeatedly, resulting in inaccurate statistics.
发明内容 Summary of the invention
本申请实施例的目的在于提供一种人员统计方法, 以实现降低反复统计 造成的统计结果的不准确性。 具体技术方案如下: The purpose of the embodiments of the present application is to provide a method for counting people, so as to reduce the inaccuracy of statistical results caused by repeated statistics. The specific technical solutions are as follows:
在本申请实施例的第一方面,提供了一种人员统计方法,所述方法包括: 当从监控画面中识别到人脸图像时, 将所述人脸图像与第一人员库中保 存的人脸模型进行匹配, 所述第一人员库中对应保存有人员标识和人脸模型; 如果所述人脸图像与所述第一人员库中的人脸模型匹配, 更新第一人员 标识所表示的人员的出现记录, 所述第一人员标识为所述第一人员库中与所 述人脸图像相匹配的人脸模型所对应的人员标识。 In the first aspect of the embodiments of the present application, a method for counting people is provided. The method includes: when a face image is recognized from a monitoring screen, comparing the face image with a person saved in a first person database. The face model is matched, and the first person database stores a person identifier and a face model correspondingly; If the face image matches the face model in the first person database, the appearance record of the person indicated by the first person identifier is updated, and the first person identifier is the same as that in the first person database. The person ID corresponding to the face model that matches the face image.
在本申请实施例的第二方面,提供了一种人员统计装置,所述装置包括: 人脸匹配模块, 当从监控画面中识别到人脸图像时, 将所述人脸图像与 第一人员库中保存的人脸模型进行匹配, 所述第一人员库中对应保存有人员 标识和人脸模型; In a second aspect of the embodiments of the present application, there is provided a person counting device, the device comprising: a face matching module, when a face image is recognized from a monitoring screen, compare the face image with a first person Matching the face models saved in the library, and the first person library stores a person identifier and a face model correspondingly;
记录更新模块, 如果所述人脸图像与所述第一人员库中的人脸模型匹配, 更新第一人员标识所表示的人员的出现记录, 所述第一人员标识为所述第一 人员库中与所述人脸图像相匹配的人脸模型所对应的人员标识。 A record update module, if the face image matches the face model in the first person database, update the appearance record of the person indicated by the first person identifier, where the first person identifier is the first person database The person ID corresponding to the face model matching the face image in.
在本申请实施例的第三方面, 提供了一种电子设备, 包括: In a third aspect of the embodiments of the present application, an electronic device is provided, including:
存储器, 用于存放计算机程序; Memory for storing computer programs;
处理器, 用于执行存储器上所存放的程序时, 实现上述第一方面任一所 述的人员统计方法步骤。 The processor is used to implement the steps of the personnel counting method described in any one of the first aspects when executing the program stored in the memory.
在本申请实施例的第四方面, 提供了一种计算机可读存储介质, 所述计 算机可读存储介质内存储有计算机程序, 所述计算机程序被处理器执行时实 现上述第一方面任一所述的人员统计方法步骤。 In a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, and a computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, the computer program implements any of the above-mentioned aspects of the first aspect. The steps of the staff statistics method described.
本申请实施例提供的人员统计方法、 装置及电子设备, 可以通过对识别 得到的人脸图像进行匹配, 以对人脸图像所对应的人员进行区分, 进而可以 对每个人员的出现记录分别统计, 有效降低将反复出现的人员统计为不同人 员的可能性, 提高统计结果的准确性。 当然, 实施本申请的任一产品或方法 并不一定需要同时达到以上所述的所有优点。 The personnel counting method, device and electronic equipment provided by the embodiments of the present application can match the recognized facial images to distinguish the personnel corresponding to the facial images, and then separately count the appearance records of each personnel Effectively reduce the possibility of counting recurring personnel as different personnel, and improve the accuracy of statistical results. Of course, implementing any product or method of the present application does not necessarily need to achieve all the advantages described above at the same time.
附图说明 Description of the drawings
为了更清楚地说明本申请实施例和现有技术的技术方案, 下面对实施例 和现有技术中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的 附图仅仅是本申请的一些实施例, 对于本领域普通技术人员来讲, 在不付出 创造性劳动的前提下, 还可以根据这些附图获得其他的附图。 In order to explain the embodiments of the present application and the technical solutions of the prior art more clearly, the following briefly introduces the drawings that need to be used in the embodiments and the prior art. Obviously, the drawings in the following description are merely present. For some of the applied embodiments, for those of ordinary skill in the art, other drawings may be obtained based on these drawings without creative efforts.
图 1为本申请实施例提供的人员统计方法的一种流程示意图; FIG. 1 is a schematic flowchart of a method for counting people provided by an embodiment of the application;
图 2为本申请实施例提供的人员统计方法的另一种流程示意图; 图 3为本申请实施例提供的人员统计方法的另一种流程示意图; 图 4为本申请实施例提供的人员统计方法的另一种流程示意图; 图 5为本申请实施例提供的人员统计装置的另一种结构示意图; 图 6为本申请实施例提供的电子设备的一种结构示意图。 2 is a schematic diagram of another flow of the method for counting people provided by an embodiment of this application; FIG. 3 is a schematic diagram of another flow of the method for counting people provided by an embodiment of this application; 4 is a schematic diagram of another flow chart of the personnel counting method provided by an embodiment of this application; FIG. 5 is another structural schematic diagram of the people counting device provided by an embodiment of this application; FIG. 6 is a schematic diagram of the electronic equipment provided by an embodiment of this application A schematic diagram of the structure.
具体实施方式 detailed description
为使本申请的目的、 技术方案、 及优点更加清楚明白, 以下参照附图并 举实施例, 对本申请进一步详细说明。 显然, 所描述的实施例仅仅是本申请 一部分实施例, 而不是全部的实施例。 基于本申请中的实施例, 本领域普通 技术人员在没有作出创造性劳动前提下所获得的所有其他实施例, 都属于本 申请保护的范围。 In order to make the objectives, technical solutions, and advantages of the present application clearer, the following further describes the present application in detail with reference to the accompanying drawings and embodiments. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
参见图 1, 图 1所示为本申请实施例提供的人员统计方法的一种流程示意 图。 如图 1所示, 本申请实施例所提供的一种人员统计方法可以包括: Referring to Fig. 1, Fig. 1 is a schematic flowchart of a method for counting people provided in an embodiment of the application. As shown in FIG. 1, a method for counting people provided in an embodiment of the present application may include:
S101, 当从监控画面中识别到人脸图像时, 将人脸图像与第一人员库中 保存的人脸模型进行匹配。 S101: When a face image is recognized from a monitoring picture, the face image is matched with a face model stored in a first person database.
其中, 本申请实施例所提供的人员统计方法可以应用于电子设备中。 在 具体应用中,该电子设备可以为具有图像采集及分析功能的监控设备,例如: 摄像机, 此时, 该监控设备可以具有图像采集功能、 人脸识别功能以及人员 统计功能; 或者, 该电子设备也可以为作为监控设备的后台服务器的设备, 例如: 台式计算机、 笔记本电脑、 智能手机、 硬盘录像机、 智能分析设备等, 此时, 该监控设备可以具有图像采集功能和人脸识别功能, 而该作为后台服 务器的设备具有人员统计功能。 并且, 本申请实施例所提供的人员统计方法 的应用场景可以为存在人员统计需求的任一场景中, 例如: 存在人流统计需 求的商场、 会场、 签到会场等。 Among them, the personnel counting method provided in the embodiments of the present application can be applied to electronic devices. In a specific application, the electronic device may be a monitoring device with image acquisition and analysis functions, such as a camera. In this case, the monitoring device may have an image acquisition function, a face recognition function, and a people counting function; or, the electronic device It can also be a device that serves as a back-end server of the monitoring device, such as a desktop computer, a notebook computer, a smart phone, a hard disk video recorder, an intelligent analysis device, etc. At this time, the monitoring device may have an image acquisition function and a face recognition function, and the The equipment as a back-end server has a personnel counting function. In addition, the application scenario of the personnel counting method provided in the embodiments of the present application may be any scenario where there is a demand for personnel counting, for example: shopping malls, conference venues, check-in venues, etc., where there is a demand for people flow statistics.
其中, 第一人员库中对应保存有人员标识和人脸模型。 需要强调的是, 本申请所提及的第一人员库中的人脸模型可以为包含人脸的图像本身, 或者, 从包含人脸的图像中提取的特征值, 或者, 基于其他任一种图像处理方式对 包含人脸的图像进行处理所得到的用于人脸匹配的内容, 等等。 其中, 特征 值, 也可以被称为特征数据, 其可以是从图像中提取到的人脸特征点的图像 数据, 示例性的, 该人脸特征点可以包括: 眼睛、 鼻子、 嘴巴、 瞳距等等。 并且, 从包含人脸的图像转化为相应的人脸模型的过程, 可以被称为建模过 程;另外,本申请所提及的人脸模型也可以被称为一种人脸数据或人脸信息。 可以理解的是,在一些应用场景中,一个监控画面中可能包括多个人脸图像, 在本申请实施例中, 对于这些应用场景, 可以是分别将每个人脸图像与第一 人员库中保存的人脸模型进行匹配。 即监控画面中包括多个人脸图像的情况, 和监控画面中只包括一个人脸图像的情况原理是相同的, 为讨论方便, 下文 将以监控画面中包含一个人脸图像为例进行说明。 Among them, the first person database stores a person identifier and a face model correspondingly. It should be emphasized that the face model in the first person database mentioned in this application may be the image itself containing the face, or the feature value extracted from the image containing the face, or based on any other The image processing method is the content used for face matching obtained by processing the image containing the face, and so on. Among them, the feature value can also be called feature data, which can be image data of facial feature points extracted from an image. Illustratively, the facial feature points can include: eyes, nose, mouth, and pupil distance and many more. In addition, the process of transforming an image containing a human face into a corresponding face model can be called a modeling process; in addition, the face model mentioned in this application can also be called a kind of face data or face information. It is understandable that in some application scenarios, a monitoring screen may include multiple face images. In the embodiment of the present application, for these application scenarios, each face image may be matched with the face model saved in the first person database. That is, the case where the monitoring screen includes multiple face images is the same as the case where the monitoring screen includes only one face image. For the convenience of discussion, the following will take the monitoring screen including one face image as an example for description.
并且, 为了与第一人员库中的人脸模型进行匹配分析, 可以对人脸图像 进行建模, 得到该人脸图像的人脸模型, 相应于上述的关于人脸模型的描述 内容, 该人脸图像的人脸模型可以为: 该人脸图像、 该人脸图像的特征值, 或者, 基于其他任一种图像处理方式对该人脸图像进行处理所得到的用于人 脸匹配的内容。 In addition, in order to perform matching analysis with the face model in the first person database, the face image may be modeled to obtain the face model of the face image, corresponding to the aforementioned description of the face model, the person The face model of the face image may be: the face image, the feature value of the face image, or the content for face matching obtained by processing the face image based on any other image processing method.
其中, 所述将人脸图像与第一人员库中保存的人脸模型进行匹配的实现 方式存在多种。 可选地, 在一种实现方式中, 将人脸图像与第一人员库中保 存的人脸模型进行匹配, 可以包括: 计算人脸图像的人脸模型, 与第一人员 库中保存的人脸模型之间的相似度, 如果人脸图像的人脸模型与第一人员库 中保存的人脸模型之间的相似度高于预设相似度阈值, 则可以确定人脸图像 与第一人员库中保存的人脸模型匹配; 如果人脸图像的人脸模型与第一人员 库中保存的人脸模型之间的相似度不高于预设相似度阈值, 则可以确定人脸 图像与第一人员库中保存的人脸模型不匹配。 Wherein, there are many ways to realize the matching of the face image with the face model saved in the first person database. Optionally, in an implementation manner, matching the face image with the face model saved in the first person database may include: calculating the face model of the face image with the person saved in the first person database The similarity between the face models. If the similarity between the face model of the face image and the face model saved in the first person database is higher than the preset similarity threshold, then it can be determined that the face image and the first person The face model saved in the library is matched; if the similarity between the face model of the face image and the face model saved in the first person library is not higher than the preset similarity threshold, it can be determined that the face image and the first person’s face model The face model saved in a person database does not match.
如果第一人员库中只保存有一个人脸模型, 则人脸图像与第一人员库中 保存的人脸模型不匹配, 是指人脸图像与该人脸模型不匹配。 如果第一人员 库中保存有多个人脸模型, 则人脸图像与第一人员库中保存的人脸模型不匹 配, 是指人脸图像与任一人脸模型均不匹配。 If there is only one face model saved in the first person library, the face image does not match the face model saved in the first person library, which means that the face image does not match the face model. If there are multiple face models saved in the first person database, the face image does not match the face model saved in the first person database, which means that the face image does not match any face model.
另外, 由于实际过程中受到人脸姿态、 遮挡程度等因素影响, 使得同一 人员的图像具有多样性, 因此, 为了提升匹配准确度, 可选地, 在另一种实 现方式中, 可以为第一人员库对应预定辅助库, 该预定辅助库中每一条记录 对应该第一人员库中的一个人脸模型, 且每一条记录包括与该记录对应的人 脸模型相匹配的至少一个辅助人脸模型, 这样, 结合预定辅助库, 将人脸图 像与第一人员库中保存的人脸模型进行匹配。 为了方案清楚及布局清晰, 后 续对在结合预定辅助库时, 将人脸图像与第一人员库中保存的人脸模型进行 匹配的具体实现方式进行介绍。 In addition, because the actual process is affected by factors such as face posture and occlusion degree, the images of the same person are diversified. Therefore, in order to improve the matching accuracy, optionally, in another implementation manner, it may be the first The person database corresponds to a predetermined auxiliary database, each record in the predetermined auxiliary database corresponds to a face model in the first person database, and each record includes at least one auxiliary face model matching the face model corresponding to the record In this way, in combination with the predetermined auxiliary library, the face image is matched with the face model saved in the first person library. In order to make the scheme clear and the layout clear, the specific implementation method of matching the face image with the face model saved in the first person library when combined with the predetermined auxiliary library will be introduced later.
本申请实施例中, 根据实际需求, 可以选用不同类型的标识作为人员标 识, 示例性的, 针对不关注人员真实姓名或身份的场景下, 人员标识可以是 用编号作为人员标识, 也可以是用数字加字母形式的字符串作为人员标识。 可以理解的是, 由于人员标识用于表示人员,因此不同人员的人员标识不同。 In the embodiments of this application, according to actual needs, different types of identifiers can be selected as the personnel identifiers. Illustratively, for scenarios where the real name or identity of the personnel is not concerned, the personnel identifier may be Use the serial number as the personnel identification, or use a string of numbers and letters as the personnel identification. It is understandable that, because the person identifier is used to indicate a person, the person identifier of different persons is different.
S102, 如果人脸图像与第一人员库中的人脸模型匹配, 更新第一人员标 识所表示的人员的出现记录。 S102: If the face image matches the face model in the first person database, update the appearance record of the person indicated by the first person identification.
其中, 第一人员标识为第一人员库中与人脸图像相匹配的人脸模型所对 应的人员标识。 根据实际需求的不同, 出现记录中所记录的内容可以不同, 示例性的, 在一些应用场景中, 出现记录中可以包括人员的出现次数, 在这 些应用场景中, 更新出现记录可以是将出现记录中的出现次数加一。 具体而 言, 针对签到场景这种特定场景而言, 所谓的更新出现记录可以包括人员的 已签到次数。 Among them, the first person ID is the person ID corresponding to the face model that matches the face image in the first person database. According to different actual needs, the content recorded in the appearance record may be different. For example, in some application scenarios, the appearance record may include the number of people's appearances. In these application scenarios, updating the appearance record may be the appearance record. The number of occurrences in plus one. Specifically, for a specific scenario such as a sign-in scenario, the so-called update occurrence record may include the number of times a person has signed in.
在一些应用场景中, 也可以是在第一人员标识所表示的人员的出现记录 中增加新的出现信息, 其中, 出现信息可以包括基于人脸图像得到的人脸特 征信息, 还可以包括监控画面的时间戳、 拍摄监控画面的监控设备的设备标 识、 监控画面、 以及针对第一人员标识预设的人员信息中的一个或多个。 In some application scenarios, it is also possible to add new appearance information to the appearance record of the person indicated by the first person identifier, where the appearance information may include facial feature information obtained based on the face image, and may also include monitoring pictures One or more of the timestamp of, the device identifier of the monitoring device that took the monitoring picture, the monitoring picture, and the person information preset for the first person identifier.
其中, 基于人脸图像得到的人脸特征, 根据应用场景的不同可以不同, 示例性的, 人脸特征可以包括是否带有眼镜、 是否带有口罩、 基于人脸图像 估计得到的人员的年龄、 性别等。 Among them, the facial features obtained based on the facial image can be different according to different application scenarios. Illustratively, the facial features can include whether they wear glasses, whether they wear a mask, the age of the person estimated based on the facial image, Gender etc.
监控画面的时间戳, 可以用于表示人员本次出现在监控场景的出现时间。 拍摄监控画面的监控设备的设备标识, 可以用于表示人员本次出现的位 置, 可以理解的是, 在一些应用场景中, 监控场景相对单个监控设备的视野 可能较大, 难以或者无法利用一个监控设备拍摄整个监控场景, 因此可以同 时利用多个监控设备拍摄监控场景, 以降低或避免监控场景中存在监控盲区, 例如商城中, 可以在每层的各个分区分别安装一个或多个监控设备, 并建立 设备标识与监控设备所监控的区域的对应关系, 基于识别到人脸图像的监控 画面所属的监控设备的设备标识, 以及该对应关系, 可以确定拍摄该监控画 面的监控设备所监控的区域, 并将该区域作为人员本次出现的位置。 The time stamp of the monitoring screen can be used to indicate the time when the person appears in the monitoring scene this time. The device identifier of the monitoring device that took the monitoring picture can be used to indicate the location where the person appears this time. It is understandable that in some application scenarios, the field of view of the monitoring scene may be larger than that of a single monitoring device, making it difficult or impossible to use a monitoring device. The equipment shoots the entire surveillance scene, so multiple surveillance equipment can be used to shoot the surveillance scene at the same time to reduce or avoid the surveillance blind spots in the surveillance scene. For example, in a shopping mall, one or more surveillance equipment can be installed in each partition on each floor, and Establish the corresponding relationship between the device identifier and the area monitored by the monitoring device, based on the device identifier of the monitoring device to which the monitoring screen of the recognized face image belongs, and the corresponding relationship, the area monitored by the monitoring device that took the monitoring screen can be determined, And use this area as the location where the person appears this time.
针对第一人员标识预设的人员信息, 根据实际应用场景的不同, 可以包 括不同的内容,并且针对不同的人员标识,预设的人员信息的内容可以不同。 在本申请实施例中, 可以是用户针对第一人员标识预先输入的姓名、 身份证 号、 籍贯、 联系方式、 家庭住址等身份信息。 例如, 在一些应用场景中, 用 户可能掌握有一些人员的身份信息, 示例性的, 用户可能掌握有经常来商场 的人员的身份信息, 那么, 用户可以将这些人员的人脸模型和人员标识对应 保存于第一人员库, 并输入这些人员的身份信息, 作为针对这些人员的人员 标识预设的人员信息。 The preset personnel information for the first person identifier may include different content according to different actual application scenarios, and the content of the preset personnel information may be different for different personnel identifiers. In this embodiment of the application, it may be the name, ID number, hometown, contact information, home address and other identity information that the user pre-input for the first person ID. For example, in some application scenarios, the user may have the identity information of some personnel. For example, the user may know how often they come to the mall. Then, the user can correspondingly save the face models and personal identifications of these persons in the first person database, and input the identification information of these persons as the preset personal information for the personal identifications of these persons.
出现信息中包括的信息越多, 用户能够从统计得到的出现记录中挖掘出 有用信息往往也越多。 例如, 如果出现信息中包括人员是否带有口罩, 则用 户可以基于统计得到的出现记录, 确定在一天之内出现在监控场景中的人员 中带有口罩的人员的占比。 The more information included in the appearance information, the more useful information users can dig out from the appearance records obtained by statistics. For example, if the appearance information includes whether a person wears a mask, the user can determine the proportion of persons with masks who appear in the surveillance scene within a day based on the appearance records obtained by statistics.
选用该实施例, 可以通过对识别得到的人脸图像进行匹配, 以对人脸图 像所对应的人员进行区分, 进而可以对每个人员的出现记录分别统计, 有效 降低将反复出现的人员统计为不同人员的可能性, 提高统计结果的准确性。 With this embodiment, the recognized face images can be matched to distinguish the persons corresponding to the face images, and the appearance records of each person can be counted separately, effectively reducing the number of recurring persons as The possibility of different personnel improves the accuracy of statistical results.
下面对在结合预定辅助库时, 将人脸图像与第一人员库中保存的人脸模 型进行匹配的具体实现方式进行介绍。 The following describes the specific implementation of matching the face image with the face model saved in the first person library when combining the predetermined auxiliary library.
具体而言, 所述将人脸图像与第一人员库中保存的人脸模型进行匹配的 步骤, 可以包括步骤 A1-步骤 A2: Specifically, the step of matching the face image with the face model saved in the first person database may include step A1-step A2:
步骤 A1, 计算该人脸图像的人脸模型与该第一人员库中每个人脸模型的 相似度, 以及计算该人脸图像的人脸模型与预定辅助库中每个辅助人脸模型 的相似度; 其中, 该预定辅助库中每一条记录对应该第一人员库中的一个人 脸模型, 且每一条记录包括与该记录对应的人脸模型相匹配的至少一个辅助 人脸模型; Step A1: Calculate the similarity between the face model of the face image and each face model in the first person library, and calculate the similarity between the face model of the face image and each auxiliary face model in the predetermined auxiliary library Degree; wherein, each record in the predetermined auxiliary library corresponds to a face model in the first person library, and each record includes at least one auxiliary face model that matches the face model corresponding to the record;
在该种实现方式中, 第一人员库作为人脸识别的基础库, 而该预定辅助 库作为该第一人员库的辅助库, 其中, 预定辅助库中每一条记录所包括的辅 助人脸模型的具体形式与第一人员库中人脸模型的具体数据形式相同。 该预 定辅助库中每一条记录所包括的辅助人脸模型的数量, 可以根据实际情况设 定, 例如: 5个、 6个、 10个等等。 In this implementation manner, the first person database is used as the basic database for face recognition, and the predetermined auxiliary database is used as the auxiliary database of the first person database, wherein the auxiliary face model included in each record in the predetermined auxiliary database is The specific form of is the same as the specific data form of the face model in the first person database. The number of auxiliary face models included in each record in the predetermined auxiliary library can be set according to actual conditions, for example: 5, 6, 10, and so on.
可以理解的是, 该第一人员库中的任一人脸模型是基于一人员的人脸图 像所确定的, 该人员的人脸图像可以为包含较为全面的人脸信息的图像, 例 如: 证件照、 或者, 采集到的人脸质量评分较高的图像。 而该预定辅助库中 每一条记录所包括的每个辅助人脸模型也是基于一人脸图像所确定的, 每一 条记录所包括的辅助人脸模型所属的人脸图像可以为: 与该记录对应的第一 人员库中的人脸模型所属人脸图像的相似图像, 因此, 该第一人员库中的一 人脸模型所属人员, 与该人脸模型对应记录包括的辅助人脸模型所属人员, 可被认定为同一人员, 区别在于人员姿态、 遮挡程度等。 另外, 在该第一人 员库是固定的人员库时,该预定辅助库可以为预先构建完成的人员库,或者, 该预定辅助库中的人脸模型可以预先构建部分且在人员统计过程中逐渐进行 完善预定辅助库中的人脸模型。 而在第一人员库是存在变化的人员库时, 该 预定辅助库中的人脸模型可以预先构建部分且在人员统计过程中逐渐进行完 善预定辅助库中的人脸模型, 且该预先构成的部分的人脸模型是该第一人员 库中预先构建的人脸模型所对应人员的相关模型。 It is understandable that any face model in the first person database is determined based on a person's face image, and the person's face image may be an image containing more comprehensive face information, for example: a passport photo , Or, the collected image with a higher face quality score. And each auxiliary face model included in each record in the predetermined auxiliary library is also determined based on a face image, and the face image to which the auxiliary face model included in each record belongs may be: corresponding to the record A similar image of the face image to which the face model in the first person database belongs. Therefore, the person to which a face model belongs in the first person database, and the person to which the auxiliary face model belongs is recorded corresponding to the face model, Can be identified as the same person, the difference lies in the person's posture, degree of occlusion, etc. In addition, when the first personnel database is a fixed personnel database, the predetermined auxiliary database may be a pre-built personnel database, or the face model in the predetermined auxiliary database may be pre-built partly and gradually in the process of personnel statistics. Complete the face model in the predetermined auxiliary library. When the first person database is a person database with changes, the face models in the predetermined auxiliary database can be pre-built and gradually improved in the process of personnel statistics, and the pre-constructed face models in the predetermined auxiliary database The partial face models are related models of persons corresponding to the face models constructed in advance in the first person database.
另外, 对于不同形式的人脸模型, 采用的相似度算法可以不同。 示例性 的, 对于人脸模型为特征值而言, 可以计算该人脸图像的人脸模型与第一人 员库中人脸模型的向量值的欧式距离, 以及计算该人脸图像的人脸模型与预 定辅助库中每个辅助人脸模型的向量值的欧式距离。 示例性的, 对于人脸模 型为图像而言, 可以利用任何一种图像相似度识别算法, 计算该人脸图像的 人脸模型与第一人员库中每个人脸模型的相似度, 以及计算该人脸图像的人 脸模型与预定辅助库中每个辅助人脸模型的相似度。 In addition, for different forms of face models, the similarity algorithms used may be different. Exemplarily, for a face model as a feature value, the Euclidean distance between the face model of the face image and the vector value of the face model in the first person database can be calculated, and the face model of the face image can be calculated The Euclidean distance to the vector value of each auxiliary face model in the predetermined auxiliary library. Exemplarily, if the face model is an image, any image similarity recognition algorithm may be used to calculate the similarity between the face model of the face image and each face model in the first person database, and calculate the The similarity between the face model of the face image and each auxiliary face model in the predetermined auxiliary library.
步骤 A2, 基于计算得到的相似度, 确定该人脸图像是否与该第一人员库 中的人脸模型相匹配。 Step A2: Based on the calculated similarity, it is determined whether the face image matches the face model in the first person database.
可选地, 在一种实现方式中, 基于计算得到的相似度, 确定该人脸图像 是否与该第一人员库中的人脸模型相匹配, 可以包括: Optionally, in an implementation manner, based on the calculated similarity, determining whether the face image matches the face model in the first person database may include:
从计算得到的相似度中, 查找最大且大于指定的相似度阈值的相似度; 如果所查找到的相似度为第一人员库中一人脸模型与该人脸图像的人脸 模型的相似度,确定该人脸图像与该第一人员库中的人脸模型相匹配,并且, 将该第一人员库中的该人脸模型, 作为与该人脸图像的人脸模型相匹配的人 脸模型; From the calculated similarity, find the maximum similarity greater than the specified similarity threshold; if the found similarity is the similarity between a face model in the first person database and the face model of the face image, Determine that the face image matches the face model in the first person database, and use the face model in the first person database as a face model that matches the face model of the face image ;
如果所查找到的相似度为该预定辅助库中一辅助人脸模型与该人脸图像 的人脸模型的相似度, 确定该人脸图像与该第一人员库中的人脸模型相匹配, 并且, 将该预定辅助库中该辅助人脸模型所属记录对应的人脸模型, 作为与 该人脸图像的人脸模型相匹配的人脸模型。 If the found similarity is the similarity between an auxiliary face model in the predetermined auxiliary library and the face model of the face image, determining that the face image matches the face model in the first person library, In addition, the face model corresponding to the record to which the auxiliary face model belongs in the predetermined auxiliary library is used as the face model matching the face model of the face image.
其中, 指定的相似度阈值可以根据实际情况设定, 在此不做限定。 Among them, the specified similarity threshold can be set according to actual conditions, and is not limited here.
可选地, 在一种实现方式中, 所述基于计算得到的相似度, 确定所述人 脸图像是否与该第一人员库中的人脸模型相匹配的步骤, 可以包括: Optionally, in an implementation manner, the step of determining whether the face image matches a face model in the first person database based on the calculated similarity may include:
基于所计算得到的相似度, 确定该第一人员库中每个人脸模型的待利用 相似度; 其中, 该第一人员库中任一人脸模型的待利用相似度为基于该人脸 模型对应的第一相似度和第二相似度所确定的值; 该人脸模型对应的第一相 似度为该人脸模型与该人脸图像的人脸模型的相似度, 该人脸模型对应的第 二相似度为该人脸模型对应记录中的辅助人脸模型, 与该人脸图像的人脸模 型的相似度; Based on the calculated similarity, determine the pending use of each face model in the first person database Similarity; where the similarity to be used of any face model in the first person database is a value determined based on the first similarity and the second similarity corresponding to the face model; the first similarity corresponding to the face model The similarity is the similarity between the face model and the face model of the face image, and the second similarity corresponding to the face model is the auxiliary face model in the corresponding record of the face model, and the difference between the face model and the face image. The similarity of the face model;
如果存在待利用相似度最大且符合预定相似条件的人脸模型, 判定该人 脸图像与该第一人员库中的人脸模型相匹配; If there is a face model with the greatest similarity to be used and meets the predetermined similarity condition, determining that the face image matches the face model in the first person database;
相应的, 与该人脸图像相匹配的人脸模型为该待利用相似度最大且符合 预定相似条件的人脸模型。 Correspondingly, the face model that matches the face image is the face model that has the greatest similarity to be used and meets the predetermined similarity condition.
其中, 预定相似条件可以为大于一预定的相似阈值, 该预定的相似阈值 可以根据情况设定, 例如: 90%、 92%、 93%、 95%等等。 Wherein, the predetermined similarity condition may be greater than a predetermined similarity threshold, and the predetermined similarity threshold may be set according to the situation, for example: 90%, 92%, 93%, 95%, and so on.
示例性的, 在第一种实现方式中, 基于所计算得到的相似度, 确定该第 一人员库中每个人脸模型的待利用相似度, 可以包括: Exemplarily, in the first implementation manner, based on the calculated similarity, determining the to-be-used similarity of each face model in the first person database may include:
针对该第一人员库中的每个人脸模型, 从该人脸模型对应的第一相似度 和第二相似度中, 选取最大值, 作为该人脸模型的待利用相似度; For each face model in the first person database, select the maximum value from the first similarity and the second similarity corresponding to the face model as the to-be-used similarity of the face model;
或者, Or
针对该第一人员库中的每个人脸模型, 对该人脸模型对应的第一相似度 和第二相似度进行加权求平均, 得到该人脸模型的待利用相似度。 For each face model in the first person database, the first similarity and the second similarity corresponding to the face model are weighted and averaged to obtain the to-be-used similarity of the face model.
该种可选实现方式为确定该第一人员库中每个人脸模型的待利用相似度 的实现方式。 其中, 针对于加权求平均所利用的权重而言, 由于第一人员库 中的人脸模型为基础库中的数据, 人脸信息更全面, 所对应相似度对于数据 匹配判定的可信程度更高, 因此, 该第一人员库中的人脸模型对应的权重可 以大于预定辅助库中辅助人脸模型对应的权重。 This optional implementation manner is to determine the to-be-used similarity of each face model in the first person database. Among them, for the weights used in the weighted average, since the face model in the first person database is the data in the basic database, the face information is more comprehensive, and the corresponding similarity is more reliable for the data matching judgment. Therefore, the weight corresponding to the face model in the first person database may be greater than the weight corresponding to the auxiliary face model in the predetermined auxiliary database.
示例性的, 在第二种实现方式中, 基于所计算得到的相似度, 确定该第 —人员库中每个人脸模型的待利用相似度, 可以包括步骤 B1-步骤 B2: Exemplarily, in the second implementation manner, based on the calculated similarity, determining the to-be-used similarity of each face model in the first person database may include steps B1-step B2:
步骤 B1, 分别从该第一人员库和该预定辅助库中, 筛选与该人脸图像的 人脸模型的相似度满足预定相似条件的模型, 得到命中数据; Step B1, selecting models whose similarity with the face model of the face image meets a predetermined similarity condition from the first person database and the predetermined auxiliary database respectively, to obtain hit data;
步骤 B2, 针对与该命中数据对应的人脸模型中的每个人脸模型, 当该命 中数据中包括该人脸模型时, 如果该人脸模型所对应的记录属于第一记录, 则从该人脸模型对应的第一相似度和第三相似度中, 选取最大值, 作为该人 脸模型的待利用相似度, 否则, 将该人脸模型对应的第一相似度, 作为该人 脸模型的待利用相似度; 当该命中数据中未包括该人脸模型时, 从该人脸模 型对应的第三相似度中, 选取最大值, 作为该人脸模型的待利用相似度; 其中, 该人脸模型对应的第三相似度为: 该人脸模型对应记录中属于命 中数据的辅助人脸模型, 与该人脸图像的人脸模型的相似度; Step B2: For each face model in the face model corresponding to the hit data, when the face model is included in the hit data, if the record corresponding to the face model belongs to the first record, follow the person Among the first similarity and the third similarity corresponding to the face model, the maximum value is selected as the person The to-be-used similarity of the face model; otherwise, the first similarity corresponding to the face model is used as the to-be-used similarity of the face model; when the face model is not included in the hit data, the face model Among the third similarity degrees corresponding to the model, the maximum value is selected as the to-be-used similarity degree of the face model; wherein, the third similarity degree corresponding to the face model is: an auxiliary of the hit data in the corresponding record of the face model The face model, the similarity with the face model of the face image;
其中, 与该命中数据对应的人脸模型包括: 该命中数据所包括的人脸模 型, 以及, 该命中数据未包括但所对应记录属于第一记录的人脸模型; 该第 一记录为所包括的辅助人脸模型属于命中数据的记录。 Wherein, the face model corresponding to the hit data includes: the face model included in the hit data, and the face model not included in the hit data but the corresponding record belongs to the first record; the first record is included The auxiliary face model belongs to the record of the hit data.
在步骤 B 1中, 分别从该第一人员库和该预定辅助库中, 筛选与该人脸图 像的人脸模型的相似度满足预定相似条件的模型, 得到命中数据的具体实现 方式存在多种。 举例而言, 在一种可选地的实现方式中, 分别从该第一人员 库和该预定辅助库中, 筛选与该人脸图像的人脸模型的相似度满足预定相似 条件的模型, 可以包括: In step B1, from the first person database and the predetermined auxiliary database, the models whose similarity with the face model of the face image meets the predetermined similarity condition are selected from the first person database and the predetermined auxiliary database, and there are multiple specific implementation methods for obtaining hit data. . For example, in an optional implementation manner, from the first person database and the predetermined auxiliary database, respectively, the models whose similarity with the face model of the face image meets the predetermined similarity condition are selected. Include:
针对该第一人员库所包括的人脸模型和该预定辅助库所包括的辅助人脸 模型中的每个模型, 判断该模型与该人脸图像的人脸模型的相似度是否大于 预定阈值, 如果是, 判定该模型为与该人脸图像的人脸模型的相似度满足预 定相似条件的模型。 For each of the face models included in the first person database and the auxiliary face models included in the predetermined auxiliary database, determining whether the similarity between the model and the face model of the face image is greater than a predetermined threshold, If it is, it is determined that the model is a model whose similarity with the face model of the face image satisfies a predetermined similarity condition.
其中,该预定阈值可以根据实际情况设定,例如: 85%、 87%、 90%、 92% , 95%等等。 Among them, the predetermined threshold can be set according to actual conditions, for example: 85%, 87%, 90%, 92%, 95%, and so on.
举例而言, 在另一种可选地实现方式中, 基于第一人员库和预定辅助库 的构建方式可知, 该第一人员库中每个人脸模型所属图像包括的人脸信息, 相对于辅助人脸模型所属图像包括的人脸信息, 更为全面, 即第一人员库中 的人脸模型对应的相似度对于评判匹配性的可信程度更高。 因此, 为了进一 步提升匹配准确性, 可以基于第一人员库和预定辅助库的特性, 为两个库设 定不同的预定阈值。 相应的, 分别从该第一人员库和该预定辅助库中, 筛选 与该人脸图像的人脸模型的相似度满足预定相似条件的模型, 可以包括: 确定预先针对该第一人员库所设定的第一预定阈值, 以及预先针对该预 定辅助库所设定的第二预定阈值; 其中, 该第一预定阈值小于该第二预定阈 值; For example, in another optional implementation manner, based on the construction of the first person database and the predetermined auxiliary database, it can be known that the face information included in the image to which each face model belongs in the first person database is relative to the auxiliary The face information included in the image to which the face model belongs is more comprehensive, that is, the similarity corresponding to the face model in the first person database is more reliable for judging matching. Therefore, in order to further improve the matching accuracy, different predetermined thresholds can be set for the two libraries based on the characteristics of the first personnel library and the predetermined auxiliary library. Correspondingly, respectively selecting from the first person database and the predetermined auxiliary database the models whose similarity with the face model of the face image satisfies a predetermined similarity condition may include: determining a preset set for the first person database A predetermined first predetermined threshold, and a second predetermined threshold set in advance for the predetermined auxiliary library; wherein, the first predetermined threshold is less than the second predetermined threshold;
针对该第一人员库中的每个人脸模型, 判断该人脸模型与该人脸图像的 人脸模型的相似度是否大于该第一预定阈值, 如果是, 判定该人脸模型为与 该人脸图像的人脸模型的相似度满足该预定相似条件的模型; For each face model in the first person database, determine whether the similarity between the face model and the face model of the face image is greater than the first predetermined threshold, and if so, determine whether the face model is with The model whose similarity of the face model of the face image satisfies the predetermined similarity condition;
针对该预定辅助库中的每个辅助人脸模型, 判断该辅助人脸模型与该人 脸图像的人脸模型的相似度是否大于该第二预定阈值, 如果是, 判定该辅助 人脸模型为与该人脸图像的人脸模型的相似度满足该预定相似条件的模型。 For each auxiliary face model in the predetermined auxiliary library, determine whether the similarity between the auxiliary face model and the face model of the face image is greater than the second predetermined threshold; if so, determine that the auxiliary face model is A model whose similarity with the face model of the face image meets the predetermined similarity condition.
由于第一人员库中人脸模型所属图像的人脸信息较为全面, 因此, 该人 脸图像的人脸模型与第一人员库中人脸模型的相似度对于数据匹配判定的可 信程度更高些, 因此, 第一预定阈值可以低于第二预定阈值。 其中, 第一预 定阈值和第二预定阈值, 可以根据实际情况设定, 示例性的, 第一预定阈值 可以为 87%, 而第二预定阈值可以为 90% ; 或者, 第一预定阈值可以为 90%, 而第二预定阈值可以为 94%, 等等。 Since the face information of the image to which the face model belongs in the first person database is more comprehensive, the similarity between the face model of the face image and the face model in the first person database is more reliable for data matching judgments Therefore, the first predetermined threshold may be lower than the second predetermined threshold. Wherein, the first predetermined threshold and the second predetermined threshold may be set according to actual conditions. For example, the first predetermined threshold may be 87%, and the second predetermined threshold may be 90%; or, the first predetermined threshold may be 90%, and the second predetermined threshold may be 94%, and so on.
另外, 发明人发现, 该人脸图像的预定人员属性, 影响该人脸图像的人 脸模型对应的相似度对数据匹配评判的可信程度, 并且, 不同的属性值, 影 响不同。 因此, 为了进一步提升匹配准确率, 可以预先针对第一人员库设定 如下对应关系: 关于预定人员属性的各个属性值与预定阈值的第一对应关系; 并且, 预先针对预定辅助库设定如下对应关系: 关于预定人员属性的各个属 性值与预定阈值的第二对应关系。 其中, 预定人员属性可以包括: 是否戴眼 镜、 是否带帽子、 基于年龄段所划分的身份等等。 In addition, the inventor found that the predetermined person attribute of the face image affects the credibility of the data matching judgment by the similarity corresponding to the face model of the face image, and different attribute values have different effects. Therefore, in order to further improve the matching accuracy, the following correspondence can be set in advance for the first personnel database: The first correspondence between each attribute value of the predetermined personnel attribute and the predetermined threshold; and the following correspondence is set in advance for the predetermined auxiliary database Relationship: The second corresponding relationship between each attribute value of the attribute of the predetermined person and the predetermined threshold. Among them, the attributes of the predetermined person may include: whether to wear eye glasses, whether to wear a hat, identities based on age groups, and so on.
并且, 影响程度大的属性值所对应的预定阈值, 可以大于影响程度小的 属性值所对应的预定阈值。 例如: 预定人员属性为是否戴眼镜, 此时, 预定 人员属性的属性值包括戴眼镜和未戴眼镜, 戴眼镜对于可信程度影响大, 未 戴眼镜对于可信程度影响小, 那么, 第一对应关系可以为: 戴眼镜对应预定 阈值: 91%, 而未戴眼镜对应阈值为 89% ; 而第二对应关系可以为: 戴眼镜对 应预定阈值: 93%, 而未戴眼镜对应阈值为 92%。 又例如: 预定人员属性为基 于年龄段所划分的身份, 此时, 预定人员属性的属性值包括老年、 儿童和青 年, 而儿童、 青年、 老年对于可信程度的影响逐级减小, 那么, 第一对应关 系可以为: 儿童对应预定阈值: 93% , 青年对应的预定阈值为 90%, 而老年对 应的预定阈值为 88%; 而第二对应关系可以为: 儿童对应预定阈值: 95%, 青 年对应的预定阈值为 93%, 而老年对应的预定阈值为 90%。 In addition, the predetermined threshold corresponding to the attribute value with a large degree of influence may be greater than the predetermined threshold corresponding to the attribute value with a small degree of influence. For example, the attribute of the predetermined person is whether to wear glasses. At this time, the attribute value of the attribute of the predetermined person includes wearing glasses and not wearing glasses. Wearing glasses has a great influence on the credibility, and not wearing glasses has little influence on the credibility. Then, first The corresponding relationship may be: Wearing glasses corresponds to a predetermined threshold: 91%, and not wearing glasses corresponds to 89%; and the second correspondence may be: Wearing glasses corresponding to a predetermined threshold: 93%, and not wearing glasses corresponds to a threshold of 92% . For another example, the attributes of the predetermined personnel are identities based on age groups. At this time, the attribute values of the attributes of the predetermined personnel include old age, children, and young people, and the influence of children, young people, and old age on the credibility is gradually reduced. Then, The first corresponding relationship may be: children corresponding to a predetermined threshold: 93%, youth corresponding to a predetermined threshold of 90%, and old age corresponding to a predetermined threshold of 88%; and the second corresponding relationship may be: children corresponding to a predetermined threshold: 95%, The predetermined threshold for young people is 93%, and the predetermined threshold for old people is 90%.
基于上述的存在第一对应关系和第二对应关系的情况, 所述确定预先针 对该第一人员库所设定的第一预定阈值, 以及预先针对该预定辅助库所设定 的第二预定阈值, 可以包括: 确定该人脸图像的预定人员属性的属性值, 作为目标属性值; 从预先针对该第一人员库设定的、 关于预定人员属性的各个属性值与预 定阈值的第一对应关系中, 查找与该目标属性值对应的预定阈值, 作为针对 该第一人员库所设定的第一预定阈值; Based on the foregoing situation where there is a first correspondence and a second correspondence, the determining a first predetermined threshold set in advance for the first personnel library, and a second predetermined threshold set in advance for the predetermined auxiliary library , Can include: Determine the attribute value of the predetermined person attribute of the face image as the target attribute value; from the first correspondence relationship between each attribute value of the predetermined person attribute set in advance for the first person database and the predetermined threshold value, search for and The predetermined threshold corresponding to the target attribute value is used as the first predetermined threshold set for the first personnel database;
从预先针对该预定辅助库设定的、 关于该预定人员属性的各个属性值与 预定阈值的第二对应关系中, 查找与该目标属性值对应的预定阈值, 作为针 对该预定辅助库所设定的第二预定阈值。 Find the predetermined threshold corresponding to the target attribute value from the second corresponding relationship between each attribute value of the predetermined person attribute and the predetermined threshold set in advance for the predetermined auxiliary library, as the predetermined threshold value set for the predetermined auxiliary library The second predetermined threshold.
其中, 确定该人脸图像的预定人员属性的属性值的实现方式存在多种, 本申请实施例对此不做限定。 示例性的, 可以利用预先训练的用于识别预定 人员属性的属性值的神经网络模型, 识别该人脸图像的预定人员属性的属性 值。 Among them, there are multiple implementation manners for determining the attribute value of the predetermined person attribute of the face image, which is not limited in the embodiment of the present application. Exemplarily, a pre-trained neural network model for identifying the attribute value of the predetermined person attribute may be used to identify the attribute value of the predetermined person attribute of the face image.
另外, 为了实现对预定辅助库的不断完善和更新, 从而有效保证人员匹 配的准确率, 可选地, 在包含第一人员库和预定辅助库的基础上, 本申请实 施例所提供的方法还可以包括: In addition, in order to continuously improve and update the predetermined auxiliary library, thereby effectively ensuring the accuracy of personnel matching, optionally, on the basis of including the first personnel library and the predetermined auxiliary library, the method provided in the embodiments of the present application also Can include:
如果该人脸图像与第一人员库中的人脸模型匹配, 判定该人脸图像的图 像质量评分是否大于预定评分阈值; If the face image matches the face model in the first person database, determining whether the image quality score of the face image is greater than a predetermined score threshold;
当判断结果为是时, 如果第二记录所包括的辅助人脸模型的数量小于预 定数量, 将该人脸图像的人脸模型加入该第二记录中, 否则, 利用该人脸图 像的人脸模型, 替换该第二记录中所对应图像的图像质量评分最低的辅助人 脸模型。 When the judgment result is yes, if the number of auxiliary face models included in the second record is less than the predetermined number, add the face model of the face image to the second record, otherwise, use the face model of the face image Model, replacing the auxiliary face model with the lowest image quality score of the corresponding image in the second record.
其中, 该第二记录为该预定辅助库中, 与该人脸图像的人脸模型相匹配 的人脸模型对应的记录。 Wherein, the second record is a record in the predetermined auxiliary library that corresponds to a face model that matches the face model of the face image.
其中, 该人脸图像的图像质量评分的确定方式可以采用任一种能够对图 像质量进行评分的方式, 本申请实施例对此不做限定。 其中, 预定评分阈值 可以根据实际进行设定, 示例性的, 如果图像质量评分为百分制, 那么, 该 预定评分阈值可以为 92分, 95分, 96分, 等等。 The method for determining the image quality score of the face image can be any method that can score the image quality, which is not limited in the embodiment of the present application. Wherein, the predetermined scoring threshold can be set according to actual conditions. For example, if the image quality score is a percentile system, then the predetermined scoring threshold can be 92 points, 95 points, 96 points, and so on.
在一种可选的实施例中, 第一人员库中保存的人脸模型, 可以是预先输 入的可能出现在监控场景中的人员的人脸模型。 例如, 监控场景为学校, 则 第一人员库中保存的人脸模型, 可以是该学校的学生以及教职工的人脸模型。 但是, 在一些应用场景中, 用户难以预测可能出现在监控场景中的人员, 例 如, 监控场景为商场、 公园等, 由于这些监控场景的人流量较大, 并且人员 组成较复杂, 因此用户难以预测可能出现在监控场景中的人员。 In an optional embodiment, the face model saved in the first person database may be a pre-input face model of a person who may appear in the monitoring scene. For example, if the monitoring scene is a school, the face model saved in the first person database may be the face model of students, faculty and staff of the school. However, in some application scenarios, it is difficult for users to predict the persons who may appear in the surveillance scene. For example, the surveillance scenes are shopping malls, parks, etc., because these surveillance scenes have a large amount of people and the personnel The composition is more complex, so it is difficult for users to predict who may appear in the surveillance scene.
有鉴于此, 本申请实施例提供了一种人员统计方法, 可以参见图 2, 图 2 所示为本申请实施例提供的人员统计方法的另一种流程示意图。 如图 2所示, 本申请实施例所提供的人员统计方法可以包括: In view of this, an embodiment of the present application provides a method for counting people, which can be referred to FIG. 2. FIG. 2 is a schematic diagram of another flow chart of the method for counting people provided in an embodiment of this application. As shown in FIG. 2, the personnel counting method provided by the embodiment of the present application may include:
S201 , 当从监控画面中识别到人脸图像时, 将人脸图像与第一人员库中 保存的人脸模型进行匹配, 如果人脸图像与第一人员库中的人脸模型匹配, 执行 S202, 如果人脸图像与第一人员库中的人脸模型不匹配, 执行 S203。 S201: When the face image is recognized from the monitoring screen, the face image is matched with the face model saved in the first person database, and if the face image matches the face model in the first person database, execute S202 , If the face image does not match the face model in the first person database, execute S203.
该步骤与 S101相同, 可以参见前述 S101中相关的描述, 在此不再赘述。 This step is the same as S101, and can refer to the related description in the foregoing S101, which is not repeated here.
S 202, 更新第一人员标识所表示的人员的出现记录。 S202: Update the appearance record of the person indicated by the first person identifier.
该步骤与 S102相同,可以参见前述关于 S102的相关描述,在此不再赘述。 This step is the same as S102, and you can refer to the foregoing related description of S102, which will not be repeated here.
S203 , 在第一人员库中对应保存第二人员标识和人脸图像的人脸模型。 其中,第二人员标识与第一人员库中已保存的人员标识不同。示例性的, 假设人员标识为编号, 并且第一人员库中已保存的人员标识为 1-66, 则第二人 员标识可以为 67。 S203, correspondingly save the face model of the second person identifier and the face image in the first person database. Wherein, the second person ID is different from the person ID saved in the first person database. Exemplarily, assuming that the person identification is a serial number, and the saved person identification in the first person database is 1-66, the second person identification may be 67.
S 204, 更新第二人员标识所表示的人员的出现记录。 S204: Update the appearance record of the person indicated by the second person identifier.
由于第二人员标识与第一人员库中已保存的人员标识不同, 因此第二人 员标识所表示的人员, 与第一人员库中任一已保存的人员标识所表示的人员 不同。 可以理解的是, 如果人脸图像与第一人员库中的人脸模型不匹配, 可 以认为该人脸图像所对应的人员, 不为第一人员库中已保存的人员标识所标 识的人员。 因此, 需要利用第二人员标识表示该人员。 Since the second person ID is different from the saved person ID in the first person database, the person indicated by the second person ID is different from the person indicated by any saved person ID in the first person database. It is understandable that if the face image does not match the face model in the first person database, it can be considered that the person corresponding to the face image is not the person identified by the saved person ID in the first person database. Therefore, the second person ID needs to be used to indicate the person.
选用该实施例, 可以在用户难以预测可能出现在监控场景中的人员的应 用场景中, 自动为没有预先输入对应的人脸模型的人员分配人员标识, 并保 存该人员的人脸标识。 可以在用户难以预测可能出现在监控场景中的人员的 应用场景中, 对没有预先输入对应的人脸模型的人员的出现记录进行有效的 统计。 在该实施例中, 第一人员库中初始时可以没有保存任何人脸模型, 而 是通过保存第二人员标识的方式, 增加第一人员库中已保存的人员标识和人 脸模型。 Using this embodiment, in an application scenario where it is difficult for the user to predict a person who may appear in the monitoring scene, a person identification can be automatically assigned to a person who has not previously input a corresponding face model, and the face identification of the person can be saved. In application scenarios where it is difficult for the user to predict the persons who may appear in the monitoring scene, effective statistics can be made on the appearance records of persons who have not entered the corresponding face model in advance. In this embodiment, the first person database may not initially save any face models, but by saving the second person identification, the saved person identifications and face models in the first person database are added.
示例性的, 假设第一人员库中初始时没有保存任何人脸模型和人员标识, 人员 A出现在监控场景并被监控设备拍摄到,则可以从监控画面中识别到人员 A的人脸图像, 由于第一人员库中没有保存任何人脸模型, 因此人员 A的人脸 图像无法与第一人员库中的人脸模型匹配, 进而在第一人员库中对应保存第 二人员标识与人员 A的人脸图像的人脸模型 (即人员 A的人脸模型), 为讨论 方便, 假设为人员 A分配的第二人员标识为编号 1, 并更新编号 1所表示的人员 (即人员 A) 的出现记录。 Exemplarily, assuming that no face model and person identification are initially saved in the first person database, person A appears in the monitoring scene and is photographed by the monitoring device, then the face image of person A can be identified from the monitoring screen. Since no face model is saved in the first person database, the face of person A The image cannot be matched with the face model in the first person database, and then the face model of the second person ID and the face image of person A (that is, the face model of person A) is correspondingly saved in the first person database, for discussion For convenience, suppose that the second person ID assigned to person A is number 1, and the appearance record of the person represented by number 1 (ie, person A) is updated.
人员 A再次出现在监控场景并被监控设备拍摄到,则可以再次从监控画面 中识别到人员 A的人脸图像, 此时由于第一人员库中已经保存有人员 A的人脸 模型, 因此人员 A的人脸图像可以与第一人员库中的人脸模型匹配, 进而更新 编号 1所表示的人员 (即人员 A) 的出现记录。 Person A reappears in the monitoring scene and is photographed by the monitoring equipment, then the face image of Person A can be recognized from the monitoring screen again. At this time, because the face model of Person A is already stored in the first person database, the person The face image of A can be matched with the face model in the first person database, and then the appearance record of the person represented by number 1 (ie, person A) is updated.
可见, 选用该实施例, 在第一人员库中没有保存人员 A的人脸模型的情况 下, 也能够有效统计人员 A的出现记录。 It can be seen that by using this embodiment, if the face model of the person A is not saved in the first person database, the appearance records of the person A can also be effectively counted.
可选的,基于图 2所示的方案,本发明实施例所提供的一种人员统计方法, 如果人脸图像与第一人员库中的人脸模型不匹配, 在该第一人员库中对应保 存第二人员标识和该人脸图像的人脸模型之前, 还可以包括: Optionally, based on the solution shown in FIG. 2 and a method for counting people provided by an embodiment of the present invention, if the face image does not match the face model in the first person database, the first person database corresponds to Before saving the second person identifier and the face model of the face image, it may also include:
计算该人脸图像的人脸模型与预定缓存中的各个人脸模型的相似度; 其 中, 该预定缓存中的各个人脸模型为: 最近 N秒内被判定为待添加陌生人数据 的人脸模型; Calculate the similarity between the face model of the face image and each face model in the predetermined cache; where each face model in the predetermined cache is: the face that is determined to be the stranger data to be added in the last N seconds Model
如果该预定缓存中不存在相似度大于第三预定阈值的人脸模型, 识别该 人脸图像的图像质量是否符合预定高质量条件, 如果是, 将该人脸图像的人 脸模型判定为待添加陌生人数据, 并执行该在所述第一人员库中对应保存第 二人员标识和该人脸图像的人脸模型的步骤; If there is no face model with a similarity greater than the third predetermined threshold in the predetermined cache, it is recognized whether the image quality of the face image meets the predetermined high quality condition, and if so, the face model of the face image is determined to be added Stranger data, and execute the step of correspondingly saving the second person identifier and the face model of the face image in the first person database;
如果该预定缓存中存在相似度大于第三预定阈值的人脸模型, 更新第三 人员标识所表示的人员的出现记录, 该第三人员标识为所述第一人员库中该 相似度大于第三预定阈值的人脸模型所对应的人员标识。 If there is a face model with a similarity greater than a third predetermined threshold in the predetermined cache, update the appearance record of the person indicated by the third person identifier, and the third person identifier is that the similarity in the first person database is greater than the third The person ID corresponding to the face model with a predetermined threshold.
通过增设缓存机制, 可以避免数据同步延迟所导致的同一个陌生人的陌 生人数据, 在第一人员库中被多次加入的问题。 所谓的同一个陌生人的陌生 人数据, 在第一人员库中被多次加入的问题具体指: 在一条陌生人数据被写 入至第一人员库之前, 该陌生人数据所属陌生人的另一包含人脸的图像, 作 为新的待分析图像进行人员统计过程中, 被再次作为陌生人记录, 并写入到 第一人员库。 其中, 如果人脸图像的人脸模型, 未在第一人员库中查找到相 匹配的人脸模型, 那么, 该人脸图像的人脸模型可以作为陌生人数据。 By adding a caching mechanism, it is possible to avoid the problem of stranger data of the same stranger being added to the first-person database multiple times caused by data synchronization delay. The so-called stranger data of the same stranger, the problem of being added multiple times in the first person database specifically refers to: before a piece of stranger data is written to the first person database, the stranger data belongs to another stranger An image containing a human face is recorded as a stranger again as a new image to be analyzed in the process of personnel counting, and written into the first personnel database. Among them, if the face model of the face image does not find a matching face model in the first person database, then the face model of the face image can be used as stranger data.
具体的,预定缓存中存储有最近 N秒内被判定为待添加陌生人数据的人脸 模型。 当在第一人员库中未查找到与该人脸图像的人脸模型相匹配的模型时, 计算该人脸图像的人脸模型与预定缓存中的各个人脸模型的相似度, 进而, 判断该预定缓存中是否存在相似度大于第三预定阈值的人脸模型, 即判断该 人脸图像所属人员是否为最近 N秒内已被判定为的陌生人,并根据不同的判断 结果执行不同的处理过程。 Specifically, the predetermined cache stores the faces determined to be stranger data to be added in the last N seconds Model. When a model matching the face model of the face image is not found in the first person database, the similarity between the face model of the face image and each face model in the predetermined cache is calculated, and then the judgment Whether there is a face model with a similarity greater than the third predetermined threshold in the predetermined cache, that is, determine whether the person to which the face image belongs is a stranger that has been determined in the last N seconds, and perform different processing according to different determination results process.
其中, N可以根据实际情况中关于陌生人数据的写入速度来设定, 示例性 的, 该 N可以为 4、 5、 6等等; 而第三预定阈值的具体数值可以根据实际情况 进行设定, 在此不做限定。 另外, 计算该目标数据与预定缓存中的各个第三 人脸数据的相似度的具体实现方式, 可以参见上述实施例的相关描述内容, 在此不做赘述。 Wherein, N can be set according to the writing speed of stranger data in the actual situation. For example, the N can be 4, 5, 6, etc.; and the specific value of the third predetermined threshold can be set according to the actual situation. There is no limitation here. In addition, for a specific implementation manner of calculating the similarity between the target data and each third face data in the predetermined cache, reference may be made to the relevant description of the foregoing embodiment, and details are not described herein.
并且, 识别该人脸图像的图像质量是否符合预定高质量条件的具体实现 方式可以包括: 判断该人脸图像的图像质量评分是否超过预定评分阈值, 如 果是, 判定该人脸图像的图像质量符合预定高质量条件。 其中, 关于人脸图 像的图像质量评分的具体确定方式可以参见上述实施例的相关描述内容, 在 此不做赘述。 Moreover, the specific implementation of identifying whether the image quality of the face image meets the predetermined high quality condition may include: determining whether the image quality score of the face image exceeds a predetermined score threshold, and if so, determining that the image quality of the face image meets Predetermine high quality conditions. For the specific method for determining the image quality score of the face image, please refer to the relevant description of the foregoing embodiment, which will not be repeated here.
在一些应用场景中, 用户可能只需要对监控场景中的部分人员的出现记 录进行统计, 以监控场景为商场为例, 用户可能感兴趣的是商场中顾客的出 现记录, 而商场中可能出现的人员还包括商场员工, 用户可能对商场员工的 出现记录不感兴趣。 In some application scenarios, the user may only need to count the appearance records of some people in the monitoring scene. Taking the monitoring scene as a shopping mall as an example, the user may be interested in the appearance records of customers in the shopping mall, and the appearance records of the customers may appear in the shopping mall. Personnel also include store employees, and users may not be interested in the presence records of store employees.
有鉴于此, 本申请实施例提供了一种人员统计方法, 可以参见图 3, 图 3 所示为本申请实施例提供的人员统计方法的另一种流程示意图。 如图 3所示, 本申请实施例所提供的人员统计方法可以包括: In view of this, an embodiment of the present application provides a method for counting people, which can be referred to FIG. 3, which shows another schematic flow chart of the method for counting people provided by an embodiment of the application. As shown in FIG. 3, the personnel counting method provided by the embodiment of the present application may include:
S301, 当从监控画面中识别到人脸图像时, 将人脸图像与第二人员库中 保存的人脸模型进行匹配, S301: When a face image is recognized from the monitoring screen, the face image is matched with a face model saved in the second person database,
其中, 第二人员库中保存有不需要参与统计的人员的人脸模型。 根据应 用场景的不同, 不需要参与统计的人员可以不同。 在本实施例中, 第二人员 库中的人脸模型可以是用户预先输入的。 Among them, the second person database stores face models of persons who do not need to participate in statistics. According to different application scenarios, the people who do not need to participate in statistics can be different. In this embodiment, the face model in the second person database may be input in advance by the user.
S302, 如果人脸图像与第二人员库中的人脸模型不匹配, 将人脸图像与 第一人员库中保存的人脸模型进行匹配。 S302: If the face image does not match the face model in the second person database, match the face image with the face model saved in the first person database.
可以理解的是, 如果人脸图像与第二人员库中保存的人脸模型匹配, 则 可以认为该人脸图像对应的人员为不需要参与统计的人员, 因此可以不对该 人员的出现记录进行统计。 如果人脸图像与第二人员库中保存的人脸模型不 匹配, 则可以认为该人脸图像对应的人员为需要参与统计的人员, 因此可以 进一步的将该人脸图像与第一人员库中保存的人脸模型进行匹配, 以进行统 计。 It is understandable that if the face image matches the face model saved in the second person database, then the person corresponding to the face image can be considered to be a person who does not need to participate in the statistics. Statistics of personnel appearance records. If the face image does not match the face model saved in the second person database, the person corresponding to the face image can be considered to be a person who needs to participate in the statistics. Therefore, the face image can be further compared with the face model in the first person database. The saved face models are matched for statistics.
S303 , 如果人脸图像与第一人员库中的人脸模型匹配, 更新第一人员标 识所表示的人员的出现记录。 S303: If the face image matches the face model in the first person database, update the appearance record of the person indicated by the first person identification.
该步骤与 S102相同, 可以参见前述关于 S102的描述, 在此不再赘述。 示例性的, 以监控场景为商场为例, 用户可能需要统计该商场内顾客的 出现记录, 可以是预先收集商场工作人员的人脸模型, 并保存于第二人员库 中。 如果从监控画面中识别到工作人员的人脸图像, 则该人脸图像与第二人 员库中的人脸模型匹配, 因此不会进一步进行统计。 而当从监控换面中识别 到顾客的人脸图像, 则该人脸图像与第二人员库中的人脸模型不匹配, 因此 会进一步进行统计, 以得到顾客的出现记录。 This step is the same as S102, and you can refer to the foregoing description of S102, which will not be repeated here. Exemplarily, taking the monitoring scene as a shopping mall as an example, the user may need to count the presence records of customers in the shopping mall, which may be pre-collected facial models of mall staff and save them in the second personnel database. If the face image of the worker is recognized from the monitoring screen, the face image matches the face model in the second person database, so no further statistics will be performed. And when the face image of the customer is recognized from the monitoring change, the face image does not match the face model in the second person database, so further statistics will be performed to obtain the presence record of the customer.
第一人员库可以是一个人员库, 也可以是多个人员库。 每个第一人员库 可以预先保存有用户输入的人脸模型, 也可以没有预先保存用户输入的模型, 而是根据如图 2所示的实施例在人员统计过程中逐渐增加所保存的人脸模型。 为更清楚的对本申请实施例提供的人员统计方法进行说明, 下面将结合具体 的应用场景举例说明。 The first personnel database can be one personnel database or multiple personnel databases. Each first person database may pre-store the face model input by the user, or it may not pre-store the model input by the user, but according to the embodiment shown in FIG. 2 gradually increase the saved face model during the personnel counting process. model. In order to more clearly explain the personnel counting method provided in the embodiments of the present application, the following will illustrate with specific application scenarios.
假设监控场景为商场, 并且用户预先在商场的多个区域安装有监控设备, 用于拍摄监控画面。 用户需要统计商场中顾客的出现记录, 以更好的对商场 进行管理。 可以预先设置有两个第一人员库, 和一个第二人员库, 两个第一 人员库分别为陌生人员库和重点人员库, 其中, 陌生人员库没有预先保存人 脸模型, 重点人员库中预先对应保存有用户输入的重要顾客 (在一些实施例 中也可以包括需要重点监控的可疑人员) 的人脸模型、 人员标识以及人员信 息 (如身份证号、 住址、 联系方式等), 第二人员库为工作人员库, 预先保存 有商场工作人员的人脸模型。 Assume that the surveillance scene is a shopping mall, and the user has installed surveillance equipment in multiple areas of the shopping mall in advance for shooting surveillance pictures. The user needs to count the presence records of customers in the mall to better manage the mall. Two first personnel databases and a second personnel database can be pre-set. The two first personnel databases are the stranger database and the key personnel database. The stranger database does not save face models in advance, and the key personnel database is Corresponding to the face model, person identification, and person information (such as ID number, address, contact information, etc.) of important customers (in some embodiments, it may also include suspicious persons that need to be monitored) that are stored in advance, and second The staff library is a staff library, and the face models of the staff in the shopping mall are pre-stored.
可以参见图 4, 图 4所示为本申请实施例提供的人员统计方法的另一种流 程示意图。 如图 4所示, 本申请实施例所提供的人员统计方法可以包括: Refer to Fig. 4, which shows another flowchart of the personnel counting method provided by an embodiment of the application. As shown in FIG. 4, the personnel counting method provided by the embodiment of the present application may include:
S401, 当从监控画面中识别到人脸图像时, 将人脸图像与工作人员库中 保存的人脸模型进行匹配。由于工作人员库为第二人员库,因此可以参见 S301 中的相关描述, 在此不再赘述。 S402, 如果人脸图像与工作人员库中保存人脸模型不匹配, 将人脸图像 与重点人员库中保存的人脸模型进行匹配, 如果人脸图像与重点人员库中的 人脸模型匹配,执行 S403 ,如果人脸图像与重点人员库中的人脸模型不匹配, 执行 S404。由于工作人员库为第一人员库,因此可以参见 S101中的相关描述, 在此不再赘述。 S401: When a face image is recognized from a monitoring picture, the face image is matched with a face model saved in a staff library. Since the staff database is the second personnel database, you can refer to the relevant description in S301, which will not be repeated here. S402: If the face image does not match the face model saved in the staff library, match the face image with the face model saved in the key staff library. If the face image matches the face model in the key staff library, Perform S403, if the face image does not match the face model in the key personnel database, perform S404. Since the staff library is the first staff library, you can refer to the related description in S101, which will not be repeated here.
S 403, 更新第一人员标识所表示的人员的出现记录。 S403: Update the appearance record of the person indicated by the first person identifier.
该步骤与 S102相同, 可以参见前述关于 S102的描述, 在此不再赘述。 This step is the same as S102, and you can refer to the foregoing description of S102, which will not be repeated here.
5404, 将人脸图像与陌生人员库中保存的人脸模型进行匹配, 如果人脸 图像与陌生人员库中的人脸模型匹配, 执行 S403 , 如果人脸图像与陌生人员 库中的人脸模型不匹配, 执行 S405。 5404: Match the face image with the face model saved in the stranger database, if the face image matches the face model in the stranger database, perform S403, if the face image matches the face model in the stranger database If it does not match, execute S405.
5405 , 在陌生人员库中对应保存第二人员标识和人脸图像的人脸模型。 该步骤与 S203相同, 可以参见前述关于 S203的描述, 在此不再赘述。 S405, correspondingly save the face model of the second person identifier and the face image in the stranger library. This step is the same as S203, and you can refer to the foregoing description of S203, which is not repeated here.
S406, 更新第二人员标识所表示的人员的出现记录。 S406: Update the appearance record of the person indicated by the second person identifier.
可以理解的是, 在本实施例中, 由于陌生人员库中没有预先保存人脸模 型, 因此第一次将人脸图像与陌生人员库中保存的人脸模型进行匹配时, 该 人脸图像与陌生人员库中的人脸图像不匹配, 因此会在陌生人员库中对应保 存该人脸图像的人脸模型。 即第一次将人脸图像与陌生人员库中保存的人脸 模型进行匹配之后, 陌生人员库中对应保存有人脸模型和标识。 It is understandable that in this embodiment, since the face model is not pre-stored in the stranger library, when the face image is matched with the face model saved in the stranger library for the first time, the face image is The face image in the stranger library does not match, so the face model of the face image will be correspondingly saved in the stranger library. That is, after the face image is matched with the face model stored in the stranger library for the first time, the face model and logo are correspondingly stored in the stranger library.
选用该实施例, 可以通过工作人员库, 避免对用户不感兴趣的工作人员 进行统计。 通过陌生人员库, 可以对难以预先获取到人脸模型的顾客进行统 计, 通过分别设置重点人员库与陌生人员库, 可以对用户感兴趣程度较高的 顾客与普通顾客区别统计。 图 4所示的实施例, 统计得到的出现记录可以如下 表所示: With this embodiment, the staff database can be used to avoid collecting statistics on staff who are not interested in the user. Through the stranger database, customers who are difficult to obtain face models in advance can be counted. By separately setting up key personnel database and stranger database, customers who are more interested in users can be distinguished from ordinary customers. In the embodiment shown in Figure 4, the appearance records obtained by statistics may be as shown in the following table:
Figure imgf000018_0001
Figure imgf000018_0001
该表可以表示: 人员标识 1所表示的人员共计出现 5次并且在区域 1、 2出 现过, 该人员为陌生人员, 并且佩戴有眼镜。 人员标识 2所表示的人员共计出 现 5次并且在区域 3、 4、 5出现过, 该人员为重点人员, 没有佩戴眼镜, 联系 方式为 XXX-XXXXX。 可以理解的是, 该表仅是统计得到的出现记录的一种 表现形式, 在其他可选的实施例中, 根据实际需求, 出现记录中可以包括更 多表项, 出现记录也可以是以表格以外的其他形式表示的, 本实施例对此不 做限制。 The table can indicate: The person indicated by the person identification 1 has appeared 5 times in total and has appeared in areas 1 and 2, the person is a stranger and wears glasses. The person indicated by Personnel ID 2 has appeared 5 times in total and has appeared in areas 3, 4, and 5. This person is a key person and does not wear glasses. The method is XXX-XXXXX. It is understandable that this table is only a representation form of the appearance records obtained by statistics. In other optional embodiments, according to actual needs, the appearance records may include more table items, and the appearance records may also be in the form of a table. If it is expressed in other forms, this embodiment does not limit it.
基于统计得到的出现记录, 用户可以根基实际需求进行信息挖掘。 示例 性的, 用户可以按照出现次数进行排序, 以确定出现次数较多的人员, 将这 些人员中的重点人员作为重点发展对象, 陌生人员作为潜在发展对象。 Based on the appearance records obtained by statistics, users can conduct information mining based on actual needs. Exemplarily, the user may sort according to the number of appearances to determine the personnel with a larger number of appearances, and consider key personnel among these personnel as key development targets, and unfamiliar personnel as potential development targets.
本申请实施例所提供的人员统计方法可以应用于任何一种具有人员统计 需求的场景。 下面以签到场景作为示例, 对本申请实施例所提供的人员统计 方法进行说明。 通过在签到场景中应用该人员统计方法, 可以统计出各个人 员在签到现场的出现情况, 有效降低将反复出现的人员统计为不同人员的可 能性, 提高统计结果的准确性。 The personnel counting method provided in the embodiments of the present application can be applied to any scenario with personnel counting requirements. The following uses a sign-in scenario as an example to describe the personnel counting method provided in the embodiment of the present application. By applying this personnel counting method in the sign-in scenario, it is possible to count the appearance of each person at the sign-in site, effectively reducing the possibility of counting recurring personnel as different persons, and improving the accuracy of statistical results.
本申请实施例所提供的人员统计方法, 可以包括如下步骤 C1-C2: The personnel counting method provided in the embodiments of the present application may include the following steps C1-C2:
步骤 C1, 当从监控画面中识别到人脸图像时, 将该人脸图像与第一人员 库中保存的人脸模型进行匹配, 该第一人员库中对应保存有人员标识和人脸 模型; Step C1: When a face image is recognized from the monitoring screen, the face image is matched with a face model saved in a first person database, and the first person database correspondingly saves a person identification and a face model;
步骤 C2, 如果该人脸图像与该第一人员库中的人脸模型匹配, 将第一人 员标识的签到状态更新为已签到状态, 并更新该第一人员标识所表示的人员 对应的签到次数, 该签到次数为该第一人员标识的签到状态被更新为已签到 状态的次数, 该第一人员标识为该第一人员库中与该人脸图像相匹配的人脸 模型所对应的人员标识。 Step C2: If the face image matches the face model in the first person database, update the check-in status of the first person ID to the checked-in state, and update the number of check-ins corresponding to the person indicated by the first person ID The number of check-ins is the number of times the check-in status of the first person ID is updated to the checked-in state, and the first person ID is the person ID corresponding to the face model in the first person database that matches the face image .
本申请实施例所提供的方法所应用于的电子设备可以与设置在不同签到 地点的监控设备进行通信连接, 该监控设备具有图像采集功能。 The electronic device to which the method provided in the embodiment of the present application is applied can be communicatively connected with monitoring devices set up at different check-in locations, and the monitoring device has an image collection function.
在步骤 C1中, 从监控画面中识别到人脸图像, 可以理解为从现场采集到 人脸图像, 该现场即为签到现场。 当从监控设备从监控画面中识别到人脸图 像时, 该电子设备可以将该人脸图像与第一人员库中保存的人脸模型进行匹 配, 该第一人员库中对应保存有人员标识和人脸模型。 其中, 关于将该人脸 图像与第一人员库中保存的人脸模型进行匹配的具体实现方式可以参照上述 实施例中的相应内容, 在此不做赘述。 In step C1, the recognition of the face image from the monitoring picture can be understood as the face image collected from the scene, and the scene is the sign-in scene. When the monitoring device recognizes a face image from the monitoring screen, the electronic device can match the face image with the face model stored in the first person database, and the first person database correspondingly stores the person identification and Face model. For the specific implementation of matching the face image with the face model stored in the first person database, reference may be made to the corresponding content in the foregoing embodiment, which will not be repeated here.
并且, 示例性的, 第一人员库中的人员标识可以包括姓名、 身份证号、 联系方式、 人脸图片等任一种信息或各种信息的组合。 在步骤 C2中, 如果该人脸图像与该第一人员库中的人脸模型匹配, 可以 先将第一人员标识的签到状态更新为已签到状态, 然后, 更新该第一人员标 识所表示的人员对应的签到次数。 需要说明的是, 该签到次数体现出人员在 签到场景中的出现记录。 另外, 更新为已签到之前的签到状态可以为未签到 状态, 也可以为已签到状态, 这都是合理的。 Also, for example, the person identification in the first person database may include any information such as name, ID number, contact information, and face picture, or a combination of various information. In step C2, if the face image matches the face model in the first person database, the check-in status of the first person ID can be updated to the checked-in status, and then the first person ID is updated The number of check-ins corresponding to the personnel. It should be noted that the number of check-in times reflects the appearance record of the person in the check-in scene. In addition, the check-in status before the update to checked-in can be the unchecked state or the checked-in state, which is reasonable.
本申请实施例提供的人员统计方法, 可以通过对识别得到的人脸图像进 行匹配, 以对人脸图像所对应的人员进行区分, 进而可以对每个人员在签到 现场的出现记录分别统计, 有效降低将反复出现的人员统计为不同人员的可 能性, 提高统计结果的准确性。 The personnel counting method provided by the embodiments of the present application can distinguish the personnel corresponding to the facial images by matching the recognized facial images, and then can separately count the appearance records of each personnel at the check-in site, which is effective Reduce the possibility of counting recurring personnel as different personnel, and improve the accuracy of statistical results.
另外, 在一些签到场景中, 不但需要了解个人的出现记录, 而且存在统 计签到团体的签到情况的需要。 针对该种需要, 本申请实施例所提供的一种 人员统计方法可以包括如下步骤 D1-D4: In addition, in some sign-in scenarios, it is not only necessary to understand the appearance records of individuals, but also there is a need to count the sign-in status of the sign-in group. In response to this need, a personnel counting method provided in the embodiments of the present application may include the following steps D1-D4:
步骤 D1, 当从监控画面中识别到人脸图像时, 将该人脸图像与第一人员 库中保存的人脸模型进行匹配, 该第一人员库中对应保存有人员标识和人脸 模型, 以及对应保存有人员标识和团体标识; Step D1: When a face image is recognized from the monitoring screen, the face image is matched with a face model saved in a first person database, and the first person database correspondingly saves a person identification and a face model, And correspondingly save personnel identification and group identification;
本实施例中, 通过为每个人员标识对应一个团体标识, 从而可将属于同 一团体标识的人员归为一个团体。 这样, 在发生签到状态更新时, 可以判断 发生签到状态更新的人员所属的团体中包含的已签到人员的数量, 并依据该 已签到人员的数量确定团体的签到状态。 In this embodiment, by corresponding to a group ID for each person ID, the people belonging to the same group ID can be classified as a group. In this way, when a sign-in status update occurs, the number of signed-in persons included in the group to which the person whose sign-in status update occurs can be judged, and the sign-in status of the group can be determined based on the number of the sign-in persons.
并且, 第一人员库的数量可以包括多个, 每个第一人员库的标识不同, 每个第一人员库中可以包括一个或多个团体标识。 In addition, the number of the first personnel database may include multiple, and each first personnel database has a different identifier, and each first personnel database may include one or more group identifiers.
步骤 D2, 如果该人脸图像与该第一人员库中的人脸模型匹配, 将第一人 员标识的签到状态更新为已签到状态, 并更新该第一人员标识所表示的人员 对应的签到次数, 该签到次数为该第一人员标识的签到状态被更新为已签到 状态的次数, 该第一人员标识为该第一人员库中与该人脸图像相匹配的人脸 模型所对应的人员标识; Step D2: If the face image matches the face model in the first person database, update the check-in status of the first person ID to the checked-in state, and update the number of check-ins corresponding to the person indicated by the first person ID The number of check-ins is the number of times the check-in status of the first person ID is updated to the checked-in state, and the first person ID is the person ID corresponding to the face model in the first person database that matches the face image ;
如果该人脸图像与该第一人员库中的人脸模型匹配, 可以先将第一人员 标识的签到状态更新为已签到状态, 然后, 更新该第一人员标识所表示的人 员对应的签到次数。 需要说明的是, 该签到次数体现出人员在签到场景中的 出现记录。 另外, 更新为已签到之前的签到状态可以为未签到状态, 也可以 为已签到状态, 这都是合理的。 步骤 D3, 在将该第一人员标识的签到状态更新为已签到状态之后, 获取 该第一人员库中对应有目标团体标识的所有人员标识的签到状态; 其中, 该 目标团体标识为所述第一人员标识所对应的团体标识; If the face image matches the face model in the first person database, the check-in status of the first person ID can be updated to the checked-in status first, and then the number of check-ins corresponding to the person indicated by the first person ID is updated . It should be noted that the number of check-in times reflects the appearance record of the person in the check-in scene. In addition, the check-in status before the update to checked-in can be the unchecked state or the checked-in state, which is reasonable. Step D3: After updating the sign-in status of the first person identification to the signed-in state, obtain the sign-in status of all the person identifications corresponding to the target group identification in the first person database; wherein, the target group identification is the first person identification. A group ID corresponding to a person ID;
步骤 D4, 基于所获取的该所有人员标识的签到状态, 确定具有该目标团 体标识的团体的签到状态。 Step D4: Determine the sign-in status of the group with the target group ID based on the obtained sign-in status of all the personnel IDs.
其中, 所述基于所获取的该所有人员标识的签到状态, 确定具有该目标 团体标识的团体的签到状态, 可以包括: Wherein, the determination of the sign-in status of the group with the target group identifier based on the obtained sign-in status of all the personnel identities may include:
从所获取的该所有人员标识的签到状态中, 统计签到状态为已签到的人 员标识的第一数量; From the obtained sign-in status of all the personnel IDs, count the first number of the person IDs whose sign-in status is checked-in;
基于所获取的第一数量, 确定具有该目标团体标识的团体的签到状态。 其中, 若第一数量小于该目标团体对应的预设人数, 该目标团体的签到 状态为未签到; 若第一数量不小于该目标团体对应的预设人数, 该目标团体 的签到状态为已签到。 Based on the obtained first quantity, the sign-in status of the group with the target group identifier is determined. Among them, if the first number is less than the preset number of people corresponding to the target group, the sign-in status of the target group is not signed in; if the first number is not less than the preset number of people corresponding to the target group, the sign-in status of the target group is signed in .
可选地, 在一种实现方式中, 若第一数量小于该目标团体对应的预设人 数, 则输出该目标团体的签到状态为未签到的提示信息; 若所述第一数量不 小于该目标团体对应的预设人数, 则输出该目标团体的签到状态为已签到的 提示信息。 其中, 该预设人数可以根据实际需求设置。 例如: 通过获取的监 控设备在现场采集的人脸图像的人脸模型查找第一人员库后, 查找到的人脸 模型对应的人员标识为: 王五, 将“王五” 的签到状态更新为已签到, 并更 新“王五”对应的签到次数, 并经过统计王五所属的团体 1包含的已签到的人 员信息的人员数量为 3 , 假设团体 1对应的预设人数为 3 , 那么可以确定并输出 团体 1的签到状态为已签到。 Optionally, in an implementation manner, if the first number is less than the preset number of people corresponding to the target group, a prompt message indicating that the sign-in status of the target group is not sign-in is output; if the first number is not less than the target group For the preset number of persons corresponding to the group, a prompt message indicating that the sign-in status of the target group is signed-in is output. Among them, the preset number of people can be set according to actual needs. For example: After the first person database is searched through the face model of the face image collected by the monitoring equipment on the spot, the person ID corresponding to the found face model is: Wang Wu, update the sign-in status of "Wang Wu" to Has checked in, and updated the number of check-in times corresponding to "Wang Wu", and the number of people who have checked-in information contained in group 1 to which Wang Wu belongs is 3, assuming that the preset number of people corresponding to group 1 is 3, then it can be determined And output the sign-in status of group 1 as signed-in.
可选地, 在一种实现方式中, 在输出该目标团体的签到状态时, 可以同 时输出该目标团体包含的所有人员标识和所有人员标识的签到状态, 从而用 户可以了解目标团体中哪些人员签到, 哪些人员未签到。 Optionally, in an implementation manner, when outputting the sign-in status of the target group, all the person identities included in the target group and the sign-in status of all the person identities can be output at the same time, so that the user can know which persons in the target group sign in , Who did not sign in.
本领域技术人员可以理解的是, 在呈现团体签到情况时, 除了呈现团体 的签到状态和每个人员的签到状态之外, 还可以呈现已签到人员对应的人脸 图像, 或者还可以统计并呈现该目标团体已签到的人员数量和未签到的人员 数量, 从而用户可以了解到该目标团体中每位人员的详细签到情况, 本申请 对此不进行限定。 Those skilled in the art can understand that when presenting the group sign-in status, in addition to showing the sign-in status of the group and the sign-in status of each person, the face image corresponding to the person who has checked in can also be presented, or the statistics and presentation The number of people who have signed in to the target group and the number of people who have not signed in, so that the user can learn the detailed sign-in status of each person in the target group, which is not limited in this application.
可选地, 在另一种实现方式中, 将该第一人员标识的签到状态更新为已 签到状态之后, 本申请实施例所提供的人员统计方法还可以包括: 将该人脸图像的采集时间作为所述第一人员标识的签到时间并记录; 当接收到外部输入的携带有指定时间和团体标识的检索指令时, 获取对 应所接收到的团体标识的、 且签到状态为已签到的人员标识; Optionally, in another implementation manner, the sign-in status of the first person ID is updated to After the sign-in state, the personnel counting method provided in the embodiment of the present application may further include: taking the collection time of the face image as the sign-in time of the first person identification and recording it; when an external input is received, the specified time and During the group identification retrieval instruction, obtain the person identification corresponding to the received group identification and whose sign-in status is signed-in;
从所获取的人员标识中, 确定签到时间不晚于该指定时间的人员标识的 第二数量; From the acquired personnel identifiers, determine the second number of personnel identifiers whose sign-in time is not later than the designated time;
若所获取的第二数量小于具有所接收到的团体标识的团体对应的预设人 数, 则确定具有所接收到的团体标识的团体的签到状态为未签到; If the obtained second number is less than the preset number of people corresponding to the group with the received group ID, determining that the sign-in status of the group with the received group ID is not signed in;
若所获取的数量不小于具有所接收到的团体标识的团体对应的预设人数, 则确定具有所接收到的团体标识的团体的签到状态为已签到。 If the obtained number is not less than the preset number of people corresponding to the group with the received group ID, it is determined that the sign-in status of the group with the received group ID is checked in.
本申请实施例提供的人员统计方法, 可以通过对识别得到的人脸图像进 行匹配, 以对人脸图像所对应的人员进行区分, 进而可以对每个人员在签到 现场的出现记录分别统计, 有效降低将反复出现的人员统计为不同人员的可 能性, 提高统计结果的准确性。 而且, 可以满足统计签到团体的签到情况的 需要, 实现人员与团体进行关联的需求。 另外, 可以满足对不同时间的团体 签到情况进行检索的需求。 The personnel counting method provided by the embodiments of the present application can distinguish the personnel corresponding to the facial images by matching the recognized facial images, and then can separately count the appearance records of each personnel at the check-in site, which is effective Reduce the possibility of counting recurring personnel as different personnel, and improve the accuracy of statistical results. Moreover, it can meet the need to count the sign-in status of the sign-in group, and realize the demand for the association between personnel and the group. In addition, it can meet the needs of searching group sign-in situations at different times.
参见图 5, 图 5所示为本申请实施例提供的人员统计装置的一种结构示意 图, 可以包括: Referring to FIG. 5, FIG. 5 shows a schematic structural diagram of a people counting device provided by an embodiment of the application, which may include:
人脸匹配模块 501, 当从监控画面中识别到人脸图像时, 将所述人脸图像 与第一人员库中保存的人脸模型进行匹配, 所述第一人员库中对应保存有人 员标识和人脸模型; The face matching module 501, when a face image is recognized from the monitoring picture, matches the face image with a face model saved in a first person database, and the first person database correspondingly saves a person identifier And face model;
记录更新模块 502, 如果所述人脸图像与所述第一人员库中的人脸模型匹 配, 更新第一人员标识所表示的人员的出现记录, 所述第一人员标识为所述 第一人员库中与所述人脸图像相匹配的人脸模型所对应的人员标识。 The record update module 502, if the face image matches the face model in the first person database, update the appearance record of the person indicated by the first person identifier, where the first person identifier is the first person The person identification corresponding to the face model in the library that matches the face image.
在一种可选的实施例中, 所述人脸匹配模块 501可以包括: In an optional embodiment, the face matching module 501 may include:
相似度计算子模块, 用于计算所述人脸图像的人脸模型与所述第一人员 库中每个人脸模型的相似度, 以及计算所述人脸图像的人脸模型与预定辅助 库中每个辅助人脸模型的相似度; 其中, 所述预定辅助库中每一条记录对应 所述第一人员库中的一个人脸模型, 且每一条记录包括与该记录对应的人脸 模型相匹配的至少一个辅助人脸模型; 匹配分析子模块, 用于基于计算得到的相似度, 确定所述人脸图像是否 与所述第一人员库中的人脸模型相匹配。 The similarity calculation sub-module is used to calculate the similarity between the face model of the face image and each face model in the first person library, and calculate the face model of the face image and the predetermined auxiliary library The similarity of each auxiliary face model; wherein, each record in the predetermined auxiliary library corresponds to a face model in the first person library, and each record includes a face model matching the record At least one auxiliary face model of The matching analysis sub-module is configured to determine whether the face image matches the face model in the first person database based on the calculated similarity.
在一种可选的实施例中, 所述匹配分析子模块可以包括: In an optional embodiment, the matching analysis submodule may include:
计算单元, 用于基于所计算得到的相似度, 确定所述第一人员库中每个 人脸模型的待利用相似度; 其中, 所述第一人员库中任一人脸模型的待利用 相似度为基于该人脸模型对应的第一相似度和第二相似度所确定的值; 该人 脸模型对应的第一相似度为该人脸模型与所述人脸图像的人脸模型的相似度, 该人脸模型对应的第二相似度为该人脸模型对应记录中的辅助人脸模型, 与 所述人脸图像的人脸模型的相似度; The calculation unit is configured to determine the to-be-used similarity of each face model in the first person database based on the calculated similarity; wherein, the to-be-used similarity of any face model in the first person database is The value determined based on the first similarity and the second similarity corresponding to the face model; the first similarity corresponding to the face model is the similarity between the face model and the face model of the face image, The second similarity corresponding to the face model is the similarity between the auxiliary face model in the corresponding record of the face model and the face model of the face image;
分析单元, 用于如果存在待利用相似度最大且符合预定相似条件的人脸 模型, 判定所述人脸图像与所述第一人员库中的人脸模型相匹配; An analysis unit, configured to, if there is a face model with the greatest similarity to be used and meet a predetermined similarity condition, determine that the face image matches the face model in the first person database;
所述与所述人脸图像相匹配的人脸模型为所述待利用相似度最大且符合 预定相似条件的人脸模型。 The face model that matches the face image is the face model that has the greatest similarity to be used and meets a predetermined similarity condition.
在一种可选的实施例中, 所述计算单元可以包括: In an optional embodiment, the calculation unit may include:
筛选子单元, 用于分别从所述第一人员库和所述预定辅助库中, 筛选与 所述人脸图像的人脸模型的相似度满足所述预定相似条件的模型, 得到命中 数据; A screening subunit, which is used to screen the models whose similarity with the face model of the face image meets the predetermined similarity condition from the first person database and the predetermined auxiliary database respectively, to obtain hit data;
确定子单元, 用于针对与所述命中数据对应的人脸模型中的每个人脸模 型, 当所述命中数据中包括该人脸模型时, 如果该人脸模型所对应的记录属 于第一记录, 则从该人脸模型对应的第一相似度和第三相似度中, 选取最大 值, 作为该人脸模型的待利用相似度, 否则, 将该人脸模型对应的第一相似 度, 作为该人脸模型的待利用相似度; 当所述命中数据中未包括该人脸模型 时, 从该人脸模型对应的第三相似度中, 选取最大值, 作为该人脸模型的待 利用相似度; The determining subunit is used for each face model in the face model corresponding to the hit data, and when the face model is included in the hit data, if the record corresponding to the face model belongs to the first record , Select the maximum value from the first similarity and the third similarity corresponding to the face model as the to-be-used similarity of the face model, otherwise, the first similarity corresponding to the face model is taken as The to-be-used similarity of the face model; when the face model is not included in the hit data, select the maximum value from the third similarity corresponding to the face model as the to-be-used similarity of the face model Degree
其中, 该人脸模型对应的第三相似度为: 该人脸模型对应记录中属于命 中数据的辅助人脸模型, 与所述人脸图像的人脸模型的相似度; Wherein, the third degree of similarity corresponding to the face model is: the degree of similarity between the auxiliary face model belonging to the hit data in the corresponding record of the face model and the face model of the face image;
其中, 所述与所述命中数据对应的人脸模型包括: 所述命中数据所包括 的人脸模型, 以及, 所述命中数据未包括但所对应记录属于第一记录的人脸 模型; 所述第一记录为所包括的辅助人脸模型属于命中数据的记录。 Wherein, the face model corresponding to the hit data includes: a face model included in the hit data, and a face model that is not included in the hit data but the corresponding record belongs to the first record; The first record is a record in which the included auxiliary face model belongs to the hit data.
在一种可选的实施例中, 所述计算单元可以包括: 第一计算子单元, 用于针对所述第一人员库中的每个人脸模型, 从该人 脸模型对应的第一相似度和第二相似度中, 选取最大值, 作为该人脸模型的 待利用相似度; In an optional embodiment, the calculation unit may include: The first calculation subunit is used to select the maximum value from the first similarity and the second similarity corresponding to the face model for each face model in the first person database, as the face model Similarity to be used;
或者, Or
第二计算子单元, 用于针对所述第一人员库中的每个人脸模型, 对该人 脸模型对应的第一相似度和第二相似度进行加权求平均, 得到该人脸模型的 待利用相似度。 The second calculation subunit is used for weighting and averaging the first similarity and the second similarity corresponding to the face model for each face model in the first person database, to obtain the waiting time of the face model Use similarity.
在一种可选的实施例中, 所述筛选子单元具体用于: In an optional embodiment, the screening subunit is specifically configured to:
确定预先针对所述第一人员库所设定的第一预定阈值, 以及预先针对所 述预定辅助库所设定的第二预定阈值; 其中, 所述第一预定阈值小于所述第 二预定阈值; Determine a first predetermined threshold set in advance for the first personnel library, and a second predetermined threshold set in advance for the predetermined auxiliary library; wherein, the first predetermined threshold is less than the second predetermined threshold ;
针对所述第一人员库中的每个人脸模型, 判断该人脸模型与所述人脸图 像的人脸模型的相似度是否大于所述第一预定阈值, 如果是, 判定该人脸模 型为与所述人脸图像的人脸模型的相似度满足所述预定相似条件的模型; 针对所述预定辅助库中的每个辅助人脸模型, 判断该辅助人脸模型与所 述人脸图像的人脸模型的相似度是否大于所述第二预定阈值, 如果是, 判定 该辅助人脸模型为与所述人脸图像的人脸模型的相似度满足所述预定相似条 件的模型。 For each face model in the first person database, determine whether the similarity between the face model and the face model of the face image is greater than the first predetermined threshold, and if so, determine whether the face model is A model whose similarity with the face model of the face image satisfies the predetermined similarity condition; for each auxiliary face model in the predetermined auxiliary library, determine whether the auxiliary face model is different from the face image Whether the similarity of the face model is greater than the second predetermined threshold, if so, it is determined that the auxiliary face model is a model whose similarity with the face model of the face image meets the predetermined similarity condition.
在一种可选的实施例中, 所述筛选子单元确定预先针对所述第一人员库 所设定的第一预定阈值, 以及预先针对所述预定辅助库所设定的第二预定阈 值, 包括: In an optional embodiment, the screening subunit determines a first predetermined threshold set in advance for the first personnel database, and a second predetermined threshold set in advance for the predetermined auxiliary database, Include:
确定所述人脸图像的预定人员属性的属性值, 作为目标属性值; 从预先针对所述第一人员库设定的、 关于所述预定人员属性的各个属性 值与预定阈值的第一对应关系中, 查找与所述目标属性值对应的预定阈值, 作为针对所述第一人员库所设定的第一预定阈值; Determine the attribute value of the predetermined person attribute of the face image as the target attribute value; from the first correspondence relationship between each attribute value of the predetermined person attribute set in advance for the first person database and a predetermined threshold , Searching for a predetermined threshold corresponding to the target attribute value as the first predetermined threshold set for the first personnel database;
从预先针对所述预定辅助库设定的、 关于所述预定人员属性的各个属性 值与预定阈值的第二对应关系中, 查找与所述目标属性值对应的预定阈值, 作为针对所述预定辅助库所设定的第二预定阈值。 From the second corresponding relationship between each attribute value of the predetermined person attribute and a predetermined threshold set in advance for the predetermined auxiliary library, the predetermined threshold corresponding to the target attribute value is searched as the predetermined auxiliary The second predetermined threshold set by the library.
在一种可选的实施例中, 所述人脸匹配模块 501还用于如果所述人脸图像 与所述第一人员库中的人脸模型不匹配, 在所述第一人员库中对应保存第二 人员标识和所述人脸图像的人脸模型, 所述第二人员标识与所述第一人员库 中已保存的人员标识不同; In an optional embodiment, the face matching module 501 is further configured to: if the face image does not match the face model in the first person database, corresponding in the first person database Save second A person identification and a face model of the face image, and the second person identification is different from a person identification saved in the first person database;
所述记录更新模块 502, 还用于更新所述第二人员标识所表示的人员的出 现记录。 The record update module 502 is also used to update the appearance record of the person indicated by the second person identifier.
在一种可选的实施例中, 所述人脸匹配模块 501还用于在所述第一人员库 中对应保存第二人员标识和所述人脸图像的人脸模型之前, 计算所述人脸图 像的人脸模型与预定缓存中的各个人脸模型的相似度; 其中, 所述预定缓存 中的各个人脸模型为: 最近 N秒内被判定为待添加陌生人数据的人脸模型; 如果所述预定缓存中不存在相似度大于第三预定阈值的人脸模型, 识别 所述人脸图像的图像质量是否符合预定高质量条件, 如果是, 将所述人脸图 像的人脸模型判定为待添加陌生人数据, 并执行所述在所述第一人员库中对 应保存第二人员标识和所述人脸图像的人脸模型的步骤; In an optional embodiment, the face matching module 501 is further configured to calculate the face model of the face image and the second person identification in the first person database. The similarity between the face model of the face image and each face model in a predetermined cache; wherein, each face model in the predetermined cache is: a face model determined to be a stranger data to be added in the last N seconds; If there is no face model with a similarity greater than the third predetermined threshold in the predetermined cache, identify whether the image quality of the face image meets the predetermined high quality condition, and if so, determine the face model of the face image For stranger data to be added, and execute the step of correspondingly saving the second person identifier and the face model of the face image in the first person database;
如果所述预定缓存中存在相似度大于第三预定阈值的人脸模型, 更新第 三人员标识所表示的人员的出现记录, 所述第三人员标识为所述第一人员库 中所述相似度大于第三预定阈值的人脸模型所对应的人员标识。 If there is a face model with a similarity greater than a third predetermined threshold in the predetermined cache, update the appearance record of the person indicated by the third person identification, where the third person identification is the similarity in the first person database The person identification corresponding to the face model greater than the third predetermined threshold.
在一种可选的实施例中, 所述人脸匹配模块 501还用于在所述将所述人脸 图像与第一人员库中保存的人脸模型进行匹配之前, 将所述人脸图像与第二 人员库中保存的人脸模型进行匹配, 所述第二人员库中保存有不需要参与统 计的人员的人脸模型; In an optional embodiment, the face matching module 501 is further configured to compare the face image with the face model stored in the first person database before matching the face image Matching with face models saved in a second person database, where face models of persons who do not need to participate in statistics are saved in the second person database;
如果所述人脸图像与所述第二人员库中的人脸模型不匹配, 执行所述将 所述人脸图像与第一人员库中保存的人脸模型进行匹配的步骤。 If the face image does not match the face model in the second person database, perform the step of matching the face image with the face model saved in the first person database.
在一种可选的实施例中, 所述记录更新模块 502, 具体用于在所述第一人 员标识所表示的人员的出现记录中增加新的出现信息, 所述出现信息包括基 于所述人脸图像得到的人脸特征信息。 In an optional embodiment, the record update module 502 is specifically configured to add new appearance information to the appearance record of the person indicated by the first person identifier, and the appearance information includes information based on the person Face feature information obtained from a face image.
在一种可选的实施例中,所述出现信息还包括:所述监控画面的时间戳、 拍摄所述监控画面的监控设备的设备标识、 所述监控画面、 针对所述第一人 员标识预设的人员信息中的一个或多个。 In an optional embodiment, the appearance information further includes: the time stamp of the monitoring screen, the device identification of the monitoring device that took the monitoring screen, the monitoring screen, the identification of the first person One or more of the set personnel information.
在一种可选的实施例中, 所述记录更新模块 502具体用于: In an optional embodiment, the record update module 502 is specifically configured to:
如果查找到与所述人脸图像的人脸模型相匹配的人脸模型, 将所述第一 人员标识的签到状态更新为已签到状态, 并更新第一人员标识所表示的人员 对应的签到次数, 所述签到次数为所述第一人员标识的签到状态被更新为已 签到状态的次数。 If a face model that matches the face model of the face image is found, the check-in status of the first person ID is updated to the checked-in status, and the number of check-ins corresponding to the person indicated by the first person ID is updated , The check-in status whose check-in times is the first person ID is updated to The number of check-in states.
在一种可选的实施例中, 所述第一人员库中还对应保存有人员标识和团 体标识; In an optional embodiment, the first personnel database also correspondingly stores personnel identifications and group identifications;
所述装置还包括: The device also includes:
获取模块, 用于所述记录更新模块将所述第一人员标识的签到状态更新 为已签到状态之后, 获取所述第一人员库中对应有目标团体标识的所有人员 标识的签到状态; 其中, 所述目标团体标识为所述第一人员标识所对应的团 体标识; The obtaining module is configured to obtain the check-in status of all the person IDs corresponding to the target group ID in the first person database after the record update module updates the check-in status of the first person ID to the checked-in status; wherein, The target group identifier is the group identifier corresponding to the first person identifier;
确定模块, 用于基于所获取的所述所有人员标识的签到状态, 确定具有 所述目标团体标识的团体的签到状态。 The determining module is configured to determine the sign-in status of the group with the target group identifier based on the obtained sign-in status of all the personnel identities.
在一种可选的实施例中, 所述确定模块具体用于: In an optional embodiment, the determining module is specifically configured to:
从所获取的所述所有人员标识的签到状态中, 统计签到状态为已签到的 人员标识的第一数量; From the acquired sign-in status of all the personnel identities, count the first number of the person identities whose sign-in status is already signed in;
基于所获取的第一数量, 确定具有所述目标团体标识的团体的签到状态 在一种可选的实施例中, 所述装置还包括: Based on the acquired first quantity, determining the sign-in status of the group with the target group identifier. In an optional embodiment, the device further includes:
记录模块, 用于在所述记录更新模块将所述第一人员标识的签到状态更 新为已签到状态之后, 将所述人脸图像的采集时间作为所述第一人员标识的 签到时间并记录; A recording module, configured to, after the record update module updates the sign-in status of the first person identification to the signed-in state, use the collection time of the face image as the sign-in time of the first person identification and record;
当接收到外部输入的携带有指定时间和团体标识的检索指令时, 获取对 应所接收到的团体标识的、 且签到状态为已签到的人员标识; When receiving an externally input retrieval instruction carrying the designated time and group ID, obtain the ID of the person corresponding to the received group ID and whose sign-in status is checked-in;
从所获取的人员标识中, 确定签到时间不晚于所述指定时间的人员标识 的第二数量; From the acquired personnel identifiers, determine the second number of personnel identifiers whose sign-in time is not later than the specified time;
若所获取的第二数量小于具有所接收到的团体标识的团体对应的预设人 数, 则确定具有所接收到的团体标识的团体的签到状态为未签到; If the obtained second number is less than the preset number of people corresponding to the group with the received group ID, determining that the sign-in status of the group with the received group ID is not signed in;
若所获取的第二数量不小于具有所接收到的团体标识的团体对应的预设 人数, 则确定具有所接收到的团体标识的团体的签到状态为已签到。 If the acquired second number is not less than the preset number of people corresponding to the group with the received group ID, it is determined that the sign-in status of the group with the received group ID is signed in.
本申请实施例还提供了一种电子设备, 如图 6所示, 包括: An embodiment of the present application also provides an electronic device, as shown in FIG. 6, including:
存储器 601, 用于存放计算机程序; The memory 601 is used to store computer programs;
处理器 602, 用于执行存储器 601上所存放的程序时, 实现如下步骤: 当从监控画面中识别到人脸图像时, 将所述人脸图像与第一人员库中保 存的人脸模型进行匹配, 所述第一人员库中对应保存有人员标识和人脸模型; 如果所述人脸图像与所述第一人员库中的人脸模型匹配, 更新第一人员 标识所表示的人员的出现记录, 所述第一人员标识为所述第一人员库中与所 述人脸图像相匹配的人脸模型所对应的人员标识。 The processor 602 is configured to execute the program stored in the memory 601 to implement the following steps: when a face image is recognized from the monitoring picture, the face image is stored in the first person database The stored face model is matched, and the first person database stores a person ID and a face model correspondingly; if the face image matches the face model in the first person database, the first person ID is updated For the appearance record of the indicated person, the first person identifier is a person identifier corresponding to a face model that matches the face image in the first person database.
在一种可选的实施例中, 所述方法还包括: In an optional embodiment, the method further includes:
如果所述人脸图像与所述第一人员库中的人脸模型不匹配, 在所述第一 人员库中对应保存第二人员标识和所述人脸图像的人脸模型, 所述第二人员 标识与所述第一人员库中已保存的人员标识不同; If the face image does not match the face model in the first person database, the second person identifier and the face model of the face image are correspondingly saved in the first person database, and the second person The person ID is different from the person ID saved in the first person database;
更新所述第二人员标识所表示的人员的出现记录。 Update the appearance record of the person indicated by the second person identifier.
在一种可选的实施例中, 在所述将所述人脸图像与第一人员库中保存的 人脸模型进行匹配之前, 所述方法还包括: In an optional embodiment, before the matching the face image with the face model saved in the first person database, the method further includes:
将所述人脸图像与第二人员库中保存的人脸模型进行匹配, 所述第二人 员库中保存有不需要参与统计的人员的人脸模型; Matching the face image with a face model stored in a second person database, where the face model of a person who does not need to participate in statistics is stored in the second person database;
如果所述人脸图像与所述第二人员库中的人脸模型不匹配, 执行所述将 所述人脸图像与第一人员库中保存的人脸模型进行匹配的步骤。 If the face image does not match the face model in the second person database, perform the step of matching the face image with the face model saved in the first person database.
在一种可选的实施例中, 所述更新第一人员标识所表示的人员的出现记 录, 包括: In an optional embodiment, the updating the appearance record of the person indicated by the first person identifier includes:
在所述第一人员标识所表示的人员的出现记录中增加新的出现信息, 所 述出现信息包括基于所述人脸图像得到的人脸特征信息。 New appearance information is added to the appearance record of the person indicated by the first person identifier, and the appearance information includes face feature information obtained based on the face image.
在一种可选的实施例中,所述出现信息还包括:所述监控画面的时间戳、 拍摄所述监控画面的监控设备的设备标识、 所述监控画面、 针对所述第一人 员标识预设的人员信息中的一个或多个。 In an optional embodiment, the appearance information further includes: the time stamp of the monitoring screen, the device identification of the monitoring device that took the monitoring screen, the monitoring screen, the identification of the first person One or more of the set personnel information.
上述电子设备提到的存储器可以包括随机存取存储器 ( Random Access Memory, RAM) ,也可以包括非易失性存储器 (Non-Volatile Memory, NYM) , 例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述 处理器的存储装置。 The memory mentioned in the above electronic device may include random access memory ( Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NYM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located far away from the foregoing processor.
上述的处理器可以是通用处理器, 包括中央处理器 ( Central Processing Unit, CPU)、 网络处理器 (Network Processor, NP) 等; 还可以是数字信号 处理器 (Digital Signal Processing, DSP)、 专用集成电路 ( Application Specific Integrated Circuit, ASIC )、现场可编程门阵列 ( Field-Programmable Gate Array, FPGA) 或者其他可编程逻辑器件、 分立门或者晶体管逻辑器件、 分立硬件组 件。 The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (DSP), a dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
在本申请提供的又一实施例中, 还提供了一种计算机可读存储介质, 该 计算机可读存储介质中存储有指令, 当其在计算机上运行时, 使得计算机执 行上述实施例中任一人员统计方法。 In another embodiment provided in this application, a computer-readable storage medium is also provided. The computer-readable storage medium stores instructions, which when run on a computer, cause the computer to execute any one of the foregoing embodiments. People counting methods.
在本申请提供的又一实施例中, 还提供了一种包含指令的计算机程序产 品, 当其在计算机上运行时, 使得计算机执行上述实施例中任一人员统计方 法。 In another embodiment provided in this application, a computer program product containing instructions is also provided, which when running on a computer, causes the computer to execute any of the personnel counting methods in the foregoing embodiments.
在上述实施例中, 可以全部或部分地通过软件、 硬件、 固件或者其任意 组合来实现。 当使用软件实现时, 可以全部或部分地以计算机程序产品的形 式实现。 所述计算机程序产品包括一个或多个计算机指令。 在计算机上加载 和执行所述计算机程序指令时, 全部或部分地产生按照本申请实施例所述的 流程或功能。 所述计算机可以是通用计算机、 专用计算机、 计算机网络、 或 者其他可编程装置。 所述计算机指令可以存储在计算机可读存储介质中, 或 者从一个计算机可读存储介质向另一个计算机可读存储介质传输, 例如, 所 述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例 如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、 无线、微波等) 方式向另一个网站站点、 计算机、 服务器或数据中心进行传输。 所述计算机 可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个 可用介质集成的服务器、 数据中心等数据存储设备。 所述可用介质可以是磁 性介质, (例如, 软盘、 硬盘、 磁带)、 光介质(例如, DVD)、 或者半导体介质 (例如固态硬盘 Solid State Disk(SSD)) 等。 In the foregoing embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state hard disk (SSD)).
需要说明的是, 在本文中, 诸如第一和第二等之类的关系术语仅仅用来 将一个实体或者操作与另一个实体或操作区分开来, 而不一定要求或者暗示 这些实体或操作之间存在任何这种实际的关系或者顺序。 而且, 术语“包括”、 “包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要 素的过程、 方法、 物品或者设备不仅包括那些要素, 而且还包括没有明确列 出的其他要素, 或者是还包括为这种过程、 方法、 物品或者设备所固有的要 素。在没有更多限制的情况下, 由语句“包括一个 ......”限定的要素, 并不排除 在包括所述要素的过程、 方法、 物品或者设备中还存在另外的相同要素。 It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply one of these entities or operations. There is any such actual relationship or order between. Moreover, the terms "including", "including" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes those that are not explicitly listed Other elements of the process, method, article, or equipment are inherent elements. Without more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or equipment that includes the element.
本说明书中的各个实施例均采用相关的方式描述, 各个实施例之间相同 相似的部分互相参见即可, 每个实施例重点说明的都是与其他实施例的不同 之处。 尤其, 对于装置、 电子设备、 计算机可读存储介质、 计算机程序产品 实施例而言, 由于其基本相似于方法实施例, 所以描述的比较简单, 相关之 处参见方法实施例的部分说明即可。 The various embodiments in this specification are described in a related manner, and the various embodiments are the same The similar parts can be referred to each other, and each embodiment focuses on the difference from other embodiments. In particular, for the device, electronic equipment, computer-readable storage medium, and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for related parts, please refer to the partial descriptions of the method embodiments.
以上所述仅为本申请的较佳实施例而已, 并非用于限定本申请的保护范 围。 凡在本申请的精神和原则之内所作的任何修改、 等同替换、 改进等, 均 包含在本申请的保护范围内。 The foregoing descriptions are only preferred embodiments of the present application, and are not used to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of this application are all included in the protection scope of this application.

Claims

权 利 要 求 Rights request
1、 一种人员统计方法, 其特征在于, 所述方法包括: 1. A method for counting personnel, characterized in that the method includes:
当从监控画面中识别到人脸图像时, 将所述人脸图像与第一人员库中保 存的人脸模型进行匹配, 所述第一人员库中对应保存有人员标识和人脸模型; 如果所述人脸图像与所述第一人员库中的人脸模型匹配, 更新第一人员 标识所表示的人员的出现记录, 所述第一人员标识为所述第一人员库中与所 述人脸图像相匹配的人脸模型所对应的人员标识。 When a face image is recognized from the monitoring screen, the face image is matched with a face model saved in a first person database, and the first person database stores a person ID and a face model correspondingly; if The face image is matched with the face model in the first person database, and the appearance record of the person indicated by the first person identifier is updated. The first person identifier is the person in the first person database. The person ID corresponding to the face model that matches the face image.
2、 根据权利要求 1所述的方法, 其特征在于, 所述将所述人脸图像与第 一人员库中保存的人脸模型进行匹配的步骤, 包括: 2. The method according to claim 1, wherein the step of matching the face image with a face model stored in a first person database comprises:
计算所述人脸图像的人脸模型与所述第一人员库中每个人脸模型的相似 度, 以及计算所述人脸图像的人脸模型与预定辅助库中每个辅助人脸模型的 相似度; 其中, 所述预定辅助库中每一条记录对应所述第一人员库中的一个 人脸模型, 且每一条记录包括与该记录对应的人脸模型相匹配的至少一个辅 助人脸模型; Calculate the similarity between the face model of the face image and each face model in the first person library, and calculate the similarity between the face model of the face image and each auxiliary face model in the predetermined auxiliary library Degree; wherein, each record in the predetermined auxiliary library corresponds to a face model in the first person library, and each record includes at least one auxiliary face model that matches the face model corresponding to the record;
基于计算得到的相似度, 确定所述人脸图像是否与所述第一人员库中的 人脸模型相匹配。 Based on the calculated similarity, it is determined whether the face image matches the face model in the first person database.
3、 根据权利要求 2所述的方法, 其特征在于, 所述基于计算得到的相似 度, 确定所述人脸图像是否与所述第一人员库中的人脸模型相匹配, 包括: 基于所计算得到的相似度, 确定所述第一人员库中每个人脸模型的待利 用相似度; 其中, 所述第一人员库中任一人脸模型的待利用相似度为基于该 人脸模型对应的第一相似度和第二相似度所确定的值; 该人脸模型对应的第 一相似度为该人脸模型与所述人脸图像的人脸模型的相似度, 该人脸模型对 应的第二相似度为该人脸模型对应记录中的辅助人脸模型, 与所述人脸图像 的人脸模型的相似度; 3. The method according to claim 2, wherein the determining whether the face image matches the face model in the first person database based on the calculated similarity comprises: The calculated similarity determines the to-be-used similarity of each face model in the first person database; wherein the to-be-used similarity of any face model in the first person database is based on the corresponding face model The value determined by the first similarity and the second similarity; the first similarity corresponding to the face model is the similarity between the face model and the face model of the face image, and the first similarity corresponding to the face model The second similarity is the similarity between the auxiliary face model in the corresponding record of the face model and the face model of the face image;
如果存在待利用相似度最大且符合预定相似条件的人脸模型, 判定所述 人脸图像与所述第一人员库中的人脸模型相匹配; If there is a face model with the greatest similarity to be used and meets a predetermined similarity condition, determining that the face image matches the face model in the first person database;
所述与所述人脸图像相匹配的人脸模型为所述待利用相似度最大且符合 预定相似条件的人脸模型。 The face model that matches the face image is the face model that has the greatest similarity to be used and meets a predetermined similarity condition.
4、根据权利要求 3所述的方法,其特征在于,基于所计算得到的相似度, 确定所述第一人员库中每个人脸模型的待利用相似度, 包括: 分别从所述第一人员库和所述预定辅助库中, 筛选与所述人脸图像的人 脸模型的相似度满足所述预定相似条件的模型, 得到命中数据; 4. The method according to claim 3, wherein, based on the calculated similarity, determining the to-be-used similarity of each face model in the first person database comprises: Selecting, from the first person database and the predetermined auxiliary database, models whose similarity with the face model of the face image satisfies the predetermined similarity condition to obtain hit data;
针对与所述命中数据对应的人脸模型中的每个人脸模型, 当所述命中数 据中包括该人脸模型时, 如果该人脸模型所对应的记录属于第一记录, 则从 该人脸模型对应的第一相似度和第三相似度中, 选取最大值, 作为该人脸模 型的待利用相似度, 否则, 将该人脸模型对应的第一相似度, 作为该人脸模 型的待利用相似度; 当所述命中数据中未包括该人脸模型时, 从该人脸模型 对应的第三相似度中, 选取最大值, 作为该人脸模型的待利用相似度; For each face model in the face model corresponding to the hit data, when the face model is included in the hit data, if the record corresponding to the face model belongs to the first record, then the face Among the first similarity and the third similarity corresponding to the model, the maximum value is selected as the to-be-used similarity of the face model, otherwise, the first similarity corresponding to the face model is used as the waiting-to-use similarity of the face model. Use similarity; when the face model is not included in the hit data, select the maximum value from the third similarity corresponding to the face model as the to-be-used similarity of the face model;
其中, 该人脸模型对应的第三相似度为: 该人脸模型对应记录中属于命 中数据的辅助人脸模型, 与所述人脸图像的人脸模型的相似度; Wherein, the third degree of similarity corresponding to the face model is: the degree of similarity between the auxiliary face model belonging to the hit data in the corresponding record of the face model and the face model of the face image;
其中, 所述与所述命中数据对应的人脸模型包括: 所述命中数据所包括 的人脸模型, 以及, 所述命中数据未包括但所对应记录属于第一记录的人脸 模型; 所述第一记录为所包括的辅助人脸模型属于命中数据的记录。 Wherein, the face model corresponding to the hit data includes: a face model included in the hit data, and a face model that is not included in the hit data but the corresponding record belongs to the first record; The first record is a record in which the included auxiliary face model belongs to the hit data.
5、根据权利要求 3所述的方法,其特征在于,基于所计算得到的相似度, 确定所述第一人员库中每个人脸模型的待利用相似度, 包括: 5. The method according to claim 3, wherein, based on the calculated similarity, determining the to-be-used similarity of each face model in the first person database comprises:
针对所述第一人员库中的每个人脸模型, 从该人脸模型对应的第一相似 度和第二相似度中, 选取最大值, 作为该人脸模型的待利用相似度; 或者, 针对所述第一人员库中的每个人脸模型, 对该人脸模型对应的第一相似 度和第二相似度进行加权求平均, 得到该人脸模型的待利用相似度。 For each face model in the first person database, the maximum value is selected from the first similarity and the second similarity corresponding to the face model as the to-be-used similarity of the face model; or, for For each face model in the first person database, the first similarity and the second similarity corresponding to the face model are weighted and averaged to obtain the to-be-used similarity of the face model.
6、 根据权利要求 4所述的方法, 其特征在于, 分别从所述第一人员库和 所述预定辅助库中, 筛选与所述人脸图像的人脸模型的相似度满足所述预定 相似条件的模型, 包括: 6. The method according to claim 4, characterized in that, from the first person database and the predetermined auxiliary database, respectively, the similarity with the face model of the face image is selected to satisfy the predetermined similarity Conditional model, including:
确定预先针对所述第一人员库所设定的第一预定阈值, 以及预先针对所 述预定辅助库所设定的第二预定阈值; 其中, 所述第一预定阈值小于所述第 二预定阈值; Determine a first predetermined threshold set in advance for the first personnel library, and a second predetermined threshold set in advance for the predetermined auxiliary library; wherein, the first predetermined threshold is less than the second predetermined threshold ;
针对所述第一人员库中的每个人脸模型, 判断该人脸模型与所述人脸图 像的人脸模型的相似度是否大于所述第一预定阈值, 如果是, 判定该人脸模 型为与所述人脸图像的人脸模型的相似度满足所述预定相似条件的模型; 针对所述预定辅助库中的每个辅助人脸模型, 判断该辅助人脸模型与所 述人脸图像的人脸模型的相似度是否大于所述第二预定阈值, 如果是, 判定 该辅助人脸模型为与所述人脸图像的人脸模型的相似度满足所述预定相似条 件的模型。 For each face model in the first person database, determine whether the similarity between the face model and the face model of the face image is greater than the first predetermined threshold, and if so, determine whether the face model is A model whose similarity with the face model of the face image satisfies the predetermined similarity condition; for each auxiliary face model in the predetermined auxiliary library, determine whether the auxiliary face model is different from the face image Whether the similarity of the face model is greater than the second predetermined threshold, if yes, determine that the auxiliary face model is that the similarity of the face model with the face image satisfies the predetermined similarity criterion The model of the piece.
7、 根据权利要求 6所述的方法, 其特征在于, 确定预先针对所述第一人 员库所设定的第一预定阈值, 以及预先针对所述预定辅助库所设定的第二预 定阈值, 包括: 7. The method according to claim 6, characterized in that: determining a first predetermined threshold set in advance for the first personnel library, and a second predetermined threshold set in advance for the predetermined auxiliary library, Include:
确定所述人脸图像的预定人员属性的属性值, 作为目标属性值; 从预先针对所述第一人员库设定的、 关于所述预定人员属性的各个属性 值与预定阈值的第一对应关系中, 查找与所述目标属性值对应的预定阈值, 作为针对所述第一人员库所设定的第一预定阈值; Determine the attribute value of the predetermined person attribute of the face image as the target attribute value; from the first correspondence relationship between each attribute value of the predetermined person attribute set in advance for the first person database and a predetermined threshold , Searching for a predetermined threshold corresponding to the target attribute value as the first predetermined threshold set for the first personnel database;
从预先针对所述预定辅助库设定的、 关于所述预定人员属性的各个属性 值与预定阈值的第二对应关系中, 查找与所述目标属性值对应的预定阈值, 作为针对所述预定辅助库所设定的第二预定阈值。 From the second corresponding relationship between each attribute value of the predetermined person attribute and a predetermined threshold set in advance for the predetermined auxiliary library, the predetermined threshold corresponding to the target attribute value is searched as the predetermined auxiliary The second predetermined threshold set by the library.
8、 根据权利要求 1-7任一项所述的方法, 其特征在于, 所述方法还包括: 如果所述人脸图像与所述第一人员库中的人脸模型不匹配, 在所述第一 人员库中对应保存第二人员标识和所述人脸图像的人脸模型, 所述第二人员 标识与所述第一人员库中已保存的人员标识不同; 8. The method according to any one of claims 1-7, further comprising: if the face image does not match the face model in the first person database, A second person identification and a face model corresponding to the face image stored in the first person database, where the second person identification is different from the person identification saved in the first person database;
更新所述第二人员标识所表示的人员的出现记录。 Update the appearance record of the person indicated by the second person identifier.
9、 根据权利要求 8所述的方法, 其特征在于, 所述在所述第一人员库中 对应保存第二人员标识和所述人脸图像的人脸模型之前, 还包括: 9. The method according to claim 8, characterized in that, before correspondingly saving a second person identifier and a face model of the face image in the first person database, the method further comprises:
计算所述人脸图像的人脸模型与预定缓存中的各个人脸模型的相似度; 其中, 所述预定缓存中的各个人脸模型为: 最近 N秒内被判定为待添加陌生人 数据的人脸模型; Calculate the similarity between the face model of the face image and each face model in a predetermined cache; wherein, each face model in the predetermined cache is: the face model that is determined to be added with stranger data in the last N seconds Face model
如果所述预定缓存中不存在相似度大于第三预定阈值的人脸模型, 识别 所述人脸图像的图像质量是否符合预定高质量条件, 如果是, 将所述人脸图 像的人脸模型判定为待添加陌生人数据, 并执行所述在所述第一人员库中对 应保存第二人员标识和所述人脸图像的人脸模型的步骤; If there is no face model with a similarity greater than the third predetermined threshold in the predetermined cache, identify whether the image quality of the face image meets the predetermined high quality condition, and if so, determine the face model of the face image For stranger data to be added, and execute the step of correspondingly saving the second person identifier and the face model of the face image in the first person database;
如果所述预定缓存中存在相似度大于第三预定阈值的人脸模型, 更新第 三人员标识所表示的人员的出现记录, 所述第三人员标识为所述第一人员库 中所述相似度大于第三预定阈值的人脸模型所对应的人员标识。 If there is a face model with a similarity greater than a third predetermined threshold in the predetermined cache, update the appearance record of the person indicated by the third person identification, where the third person identification is the similarity in the first person database The person identification corresponding to the face model greater than the third predetermined threshold.
10、 根据权利要求 1-7任一项所述的方法, 其特征在于, 在所述将所述人 脸图像与第一人员库中保存的人脸模型进行匹配之前, 所述方法还包括: 将所述人脸图像与第二人员库中保存的人脸模型进行匹配, 所述第二人 员库中保存有不需要参与统计的人员的人脸模型; 10. The method according to any one of claims 1-7, characterized in that, before the matching the face image with a face model stored in a first person database, the method further comprises: Matching the face image with a face model stored in a second person database, where the second person database stores face models of persons who do not need to participate in statistics;
如果所述人脸图像与所述第二人员库中的人脸模型不匹配, 执行所述将 所述人脸图像与第一人员库中保存的人脸模型进行匹配的步骤。 If the face image does not match the face model in the second person database, perform the step of matching the face image with the face model saved in the first person database.
11、 根据权利要求 1-7任一项所述的方法, 其特征在于, 所述更新第一人 员标识所表示的人员的出现记录, 包括: 11. The method according to any one of claims 1-7, wherein said updating the appearance record of the person indicated by the first person identifier comprises:
在所述第一人员标识所表示的人员的出现记录中增加新的出现信息, 所 述出现信息包括基于所述人脸图像得到的人脸特征信息。 New appearance information is added to the appearance record of the person indicated by the first person identifier, and the appearance information includes face feature information obtained based on the face image.
12、 根据权利要求 11所述的方法, 其特征在于, 所述出现信息还包括: 所述监控画面的时间戳、 拍摄所述监控画面的监控设备的设备标识、 所述监 控画面、 针对所述第一人员标识预设的人员信息中的一个或多个。 12. The method according to claim 11, wherein the appearance information further comprises: the time stamp of the monitoring screen, the device identification of the monitoring device that took the monitoring screen, the monitoring screen, and the The first person identifies one or more of the preset person information.
13、 根据权利要求 1-7任一项所述的方法, 其特征在于, 如果所述人脸图 像与所述第一人员库中的人脸模型匹配, 更新第一人员标识所表示的人员的 出现记录, 包括: 13. The method according to any one of claims 1-7, wherein if the face image matches a face model in the first person database, updating the person’s profile indicated by the first person identifier Records appear, including:
如果查找到与所述人脸图像的人脸模型相匹配的人脸模型, 将所述第一 人员标识的签到状态更新为已签到状态, 并更新所述第一人员标识所表示的 人员对应的签到次数, 所述签到次数为所述第一人员标识的签到状态被更新 为已签到状态的次数。 If a face model that matches the face model of the face image is found, the check-in status of the first person ID is updated to the checked-in status, and the person corresponding to the person indicated by the first person ID is updated The number of check-ins, where the number of check-ins is the number of times the check-in status identified by the first person is updated to the checked-in status.
14、 根据权利要求 13所述的方法, 其特征在于, 所述第一人员库中还对 应保存有人员标识和团体标识; 14. The method according to claim 13, wherein the first personnel database also correspondingly stores personnel identifications and group identifications;
所述将所述第一人员标识的签到状态更新为已签到状态之后, 所述方法 还包括: After updating the sign-in status of the first person identifier to the signed-in status, the method further includes:
获取所述第一人员库中对应有目标团体标识的所有人员标识的签到状态; 其中, 所述目标团体标识为所述第一人员标识所对应的团体标识; Acquiring the sign-in status of all the person IDs corresponding to the target group ID in the first person database; wherein, the target group ID is the group ID corresponding to the first person ID;
基于所获取的所述所有人员标识的签到状态, 确定具有所述目标团体标 识的团体的签到状态。 Based on the acquired sign-in status of all the person IDs, the sign-in status of the group with the target group ID is determined.
15、 根据权利要求 14所述的方法, 其特征在于, 所述基于所获取的所述 所有人员标识的签到状态, 确定具有所述目标团体标识的团体的签到状态, 包括: 15. The method according to claim 14, wherein the determining the sign-in status of the group having the target group identity based on the obtained sign-in status of all the person identities comprises:
从所获取的所述所有人员标识的签到状态中, 统计签到状态为已签到的 人员标识的第一数量; From the obtained check-in status of all the personnel IDs, the statistical check-in status is checked-in The first number of person identification;
基于所获取的第一数量, 确定具有所述目标团体标识的团体的签到状态。 Based on the obtained first quantity, the sign-in status of the group with the target group identifier is determined.
16、 根据权利要求 14所述的方法, 其特征在于, 将所述第一人员标识的 签到状态更新为已签到状态之后, 所述方法还包括: 16. The method according to claim 14, wherein after updating the sign-in status of the first person identifier to the signed-in status, the method further comprises:
将所述人脸图像的采集时间作为所述第一人员标识的签到时间并记录; 当接收到外部输入的携带有指定时间和团体标识的检索指令时, 获取对 应所接收到的团体标识的、 且签到状态为已签到的人员标识; The collection time of the face image is taken as the sign-in time of the first person ID and recorded; when an externally input retrieval instruction carrying a specified time and a group ID is received, the data corresponding to the received group ID is obtained And the sign-in status is the identification of the person who has signed-in;
从所获取的人员标识中, 确定签到时间不晚于所述指定时间的人员标识 的第二数量; From the acquired personnel identifiers, determine the second number of personnel identifiers whose sign-in time is not later than the specified time;
若所获取的第二数量小于具有所接收到的团体标识的团体对应的预设人 数, 则确定具有所接收到的团体标识的团体的签到状态为未签到; If the obtained second number is less than the preset number of people corresponding to the group with the received group ID, determining that the sign-in status of the group with the received group ID is not signed in;
若所获取的第二数量不小于具有所接收到的团体标识的团体对应的预设 人数, 则确定具有所接收到的团体标识的团体的签到状态为已签到。 If the obtained second number is not less than the preset number of people corresponding to the group with the received group ID, it is determined that the sign-in status of the group with the received group ID is signed in.
17、 一种人员统计装置, 其特征在于, 所述装置包括: 17. A personnel counting device, characterized in that the device includes:
人脸匹配模块, 当从监控画面中识别到人脸图像时, 将所述人脸图像与 第一人员库中保存的人脸模型进行匹配, 所述第一人员库中对应保存有人员 标识和人脸模型; The face matching module, when a face image is recognized from the monitoring picture, matches the face image with a face model stored in a first person database, and the first person database stores a person ID and Face model
记录更新模块, 如果所述人脸图像与所述第一人员库中的人脸模型匹配, 更新第一人员标识所表示的人员的出现记录, 所述第一人员标识为所述第一 人员库中与所述人脸图像相匹配的人脸模型所对应的人员标识。 A record update module, if the face image matches the face model in the first person database, update the appearance record of the person indicated by the first person identifier, where the first person identifier is the first person database The person ID corresponding to the face model matching the face image in.
18、根据权利要求 17所述的装置, 其特征在于, 所述人脸匹配模块包括: 相似度计算子模块, 用于计算所述人脸图像的人脸模型与所述第一人员 库中每个人脸模型的相似度, 以及计算所述人脸图像的人脸模型与预定辅助 库中每个辅助人脸模型的相似度; 其中, 所述预定辅助库中每一条记录对应 所述第一人员库中的一个人脸模型, 且每一条记录包括与该记录对应的人脸 模型相匹配的至少一个辅助人脸模型; 18. The device according to claim 17, wherein the face matching module comprises: a similarity calculation sub-module configured to calculate the face model of the face image and each person in the first person database The similarity of the personal face model, and calculating the similarity between the face model of the face image and each auxiliary face model in a predetermined auxiliary library; wherein, each record in the predetermined auxiliary library corresponds to the first person One face model in the library, and each record includes at least one auxiliary face model matching the face model corresponding to the record;
匹配分析子模块, 用于基于计算得到的相似度, 确定所述人脸图像是否 与所述第一人员库中的人脸模型相匹配。 The matching analysis sub-module is configured to determine whether the face image matches the face model in the first person database based on the calculated similarity.
19、 根据权利要求 18所述的装置, 其特征在于, 所述匹配分析子模块包 括: 计算单元, 用于基于所计算得到的相似度, 确定所述第一人员库中每个 人脸模型的待利用相似度; 其中, 所述第一人员库中任一人脸模型的待利用 相似度为基于该人脸模型对应的第一相似度和第二相似度所确定的值; 该人 脸模型对应的第一相似度为该人脸模型与所述人脸图像的人脸模型的相似度, 该人脸模型对应的第二相似度为该人脸模型对应记录中的辅助人脸模型, 与 所述人脸图像的人脸模型的相似度; 19. The device according to claim 18, wherein the matching analysis sub-module comprises: The calculation unit is configured to determine the to-be-used similarity of each face model in the first person database based on the calculated similarity; wherein, the to-be-used similarity of any face model in the first person database is The value determined based on the first similarity and the second similarity corresponding to the face model; the first similarity corresponding to the face model is the similarity between the face model and the face model of the face image, The second similarity corresponding to the face model is the similarity between the auxiliary face model in the corresponding record of the face model and the face model of the face image;
分析单元, 用于如果存在待利用相似度最大且符合预定相似条件的人脸 模型, 判定所述人脸图像与所述第一人员库中的人脸模型相匹配; 所述与所 述人脸图像相匹配的人脸模型为所述待利用相似度最大且符合预定相似条件 的人脸模型。 The analysis unit is configured to determine that the face image matches the face model in the first person database if there is a face model with the greatest similarity to be used and meets a predetermined similarity condition; The face model matching the image is the face model with the greatest similarity to be used and meeting the predetermined similarity condition.
20、 根据权利要求 19所述的装置, 其特征在于, 所述计算单元包括: 筛选子单元, 用于分别从所述第一人员库和所述预定辅助库中, 筛选与 所述人脸图像的人脸模型的相似度满足所述预定相似条件的模型, 得到命中 数据; 20. The device according to claim 19, wherein the calculation unit comprises: a screening subunit, configured to filter the face image from the first person database and the predetermined auxiliary database, respectively A model whose similarity of the face model satisfies the predetermined similarity condition to obtain hit data;
确定子单元, 用于针对与所述命中数据对应的人脸模型中的每个人脸模 型, 当所述命中数据中包括该人脸模型时, 如果该人脸模型所对应的记录属 于第一记录, 则从该人脸模型对应的第一相似度和第三相似度中, 选取最大 值, 作为该人脸模型的待利用相似度, 否则, 将该人脸模型对应的第一相似 度, 作为该人脸模型的待利用相似度; 当所述命中数据中未包括该人脸模型 时, 从该人脸模型对应的第三相似度中, 选取最大值, 作为该人脸模型的待 利用相似度; The determining subunit is used for each face model in the face model corresponding to the hit data, and when the face model is included in the hit data, if the record corresponding to the face model belongs to the first record , Select the maximum value from the first similarity and the third similarity corresponding to the face model as the to-be-used similarity of the face model, otherwise, the first similarity corresponding to the face model is taken as The to-be-used similarity of the face model; when the face model is not included in the hit data, select the maximum value from the third similarity corresponding to the face model as the to-be-used similarity of the face model Degree
其中, 该人脸模型对应的第三相似度为: 该人脸模型对应记录中属于命 中数据的辅助人脸模型, 与所述人脸图像的人脸模型的相似度; Wherein, the third degree of similarity corresponding to the face model is: the degree of similarity between the auxiliary face model belonging to the hit data in the corresponding record of the face model and the face model of the face image;
其中, 所述与所述命中数据对应的人脸模型包括: 所述命中数据所包括 的人脸模型, 以及, 所述命中数据未包括但所对应记录属于第一记录的人脸 模型; 所述第一记录为所包括的辅助人脸模型属于命中数据的记录。 Wherein, the face model corresponding to the hit data includes: a face model included in the hit data, and a face model that is not included in the hit data but the corresponding record belongs to the first record; The first record is a record in which the included auxiliary face model belongs to the hit data.
21、 根据权利要求 19所述的装置, 其特征在于, 所述计算单元包括: 第一计算子单元, 用于针对所述第一人员库中的每个人脸模型, 从该人 脸模型对应的第一相似度和第二相似度中, 选取最大值, 作为该人脸模型的 待利用相似度; 或者, 21. The apparatus according to claim 19, wherein the calculation unit comprises: a first calculation subunit, configured to, for each face model in the first person database, from the corresponding face model In the first similarity and the second similarity, the maximum value is selected as the to-be-used similarity of the face model; or,
第二计算子单元, 用于针对所述第一人员库中的每个人脸模型, 对该人 脸模型对应的第一相似度和第二相似度进行加权求平均, 得到该人脸模型的 待利用相似度。 The second calculation subunit is used to target each face model in the first person database to the person The first similarity and the second similarity corresponding to the face model are weighted and averaged to obtain the to-be-used similarity of the face model.
22、 根据权利要求 20所述的装置, 其特征在于, 所述筛选子单元具体用 于: 22. The device according to claim 20, wherein the screening subunit is specifically used for:
确定预先针对所述第一人员库所设定的第一预定阈值, 以及预先针对所 述预定辅助库所设定的第二预定阈值; 其中, 所述第一预定阈值小于所述第 二预定阈值; Determine a first predetermined threshold set in advance for the first personnel library, and a second predetermined threshold set in advance for the predetermined auxiliary library; wherein, the first predetermined threshold is less than the second predetermined threshold ;
针对所述第一人员库中的每个人脸模型, 判断该人脸模型与所述人脸图 像的人脸模型的相似度是否大于所述第一预定阈值, 如果是, 判定该人脸模 型为与所述人脸图像的人脸模型的相似度满足所述预定相似条件的模型; 针对所述预定辅助库中的每个辅助人脸模型, 判断该辅助人脸模型与所 述人脸图像的人脸模型的相似度是否大于所述第二预定阈值, 如果是, 判定 该辅助人脸模型为与所述人脸图像的人脸模型的相似度满足所述预定相似条 件的模型。 For each face model in the first person database, determine whether the similarity between the face model and the face model of the face image is greater than the first predetermined threshold, and if so, determine whether the face model is A model whose similarity with the face model of the face image satisfies the predetermined similarity condition; for each auxiliary face model in the predetermined auxiliary library, determine whether the auxiliary face model is different from the face image Whether the similarity of the face model is greater than the second predetermined threshold, if so, it is determined that the auxiliary face model is a model whose similarity with the face model of the face image meets the predetermined similarity condition.
23、 根据权利要求 22所述的装置, 其特征在于, 所述筛选子单元确定预 先针对所述第一人员库所设定的第一预定阈值, 以及预先针对所述预定辅助 库所设定的第二预定阈值, 包括: 23. The device according to claim 22, wherein the screening subunit determines a first predetermined threshold set in advance for the first personnel library, and a first predetermined threshold set in advance for the predetermined auxiliary library The second predetermined threshold includes:
确定所述人脸图像的预定人员属性的属性值, 作为目标属性值; 从预先针对所述第一人员库设定的、 关于所述预定人员属性的各个属性 值与预定阈值的第一对应关系中, 查找与所述目标属性值对应的预定阈值, 作为针对所述第一人员库所设定的第一预定阈值; Determine the attribute value of the predetermined person attribute of the face image as the target attribute value; from the first correspondence relationship between each attribute value of the predetermined person attribute set in advance for the first person database and a predetermined threshold , Searching for a predetermined threshold corresponding to the target attribute value as the first predetermined threshold set for the first personnel database;
从预先针对所述预定辅助库设定的、 关于所述预定人员属性的各个属性 值与预定阈值的第二对应关系中, 查找与所述目标属性值对应的预定阈值, 作为针对所述预定辅助库所设定的第二预定阈值。 From the second corresponding relationship between each attribute value of the predetermined person attribute and a predetermined threshold set in advance for the predetermined auxiliary library, the predetermined threshold corresponding to the target attribute value is searched as the predetermined auxiliary The second predetermined threshold set by the library.
24、 根据权利要求 17-23任一项所述的装置, 其特征在于, 所述人脸匹配 模块还用于如果所述人脸图像与所述第一人员库中的人脸模型不匹配, 在所 述第一人员库中对应保存第二人员标识和所述人脸图像的人脸模型, 所述第 二人员标识与所述第一人员库中已保存的人员标识不同; 24. The device according to any one of claims 17-23, wherein the face matching module is further configured to: if the face image does not match the face model in the first person database, Correspondingly saving a second person ID and a face model of the face image in the first person database, where the second person ID is different from the person ID saved in the first person database;
所述记录更新模块, 还用于更新所述第二人员标识所表示的人员的出现 记录。 25、 根据权利要求 24所述的装置, 其特征在于, 所述人脸匹配模块还用 于在所述第一人员库中对应保存第二人员标识和所述人脸图像的人脸模型之 前, 计算所述人脸图像的人脸模型与预定缓存中的各个人脸模型的相似度; 其中, 所述预定缓存中的各个人脸模型为: 最近 N秒内被判定为待添加陌生人 数据的人脸模型; The record update module is also used to update the appearance record of the person indicated by the second person identifier. 25. The device according to claim 24, wherein the face matching module is further configured to correspondingly save a second person identifier and a face model of the face image in the first person database, Calculate the similarity between the face model of the face image and each face model in a predetermined cache; wherein, each face model in the predetermined cache is: the face model that is determined to be added with stranger data in the last N seconds Face model
如果所述预定缓存中不存在相似度大于第三预定阈值的人脸模型, 识别 所述人脸图像的图像质量是否符合预定高质量条件, 如果是, 将所述人脸图 像的人脸模型判定为待添加陌生人数据, 并执行所述在所述第一人员库中对 应保存第二人员标识和所述人脸图像的人脸模型的步骤; If there is no face model with a similarity greater than the third predetermined threshold in the predetermined cache, identify whether the image quality of the face image meets the predetermined high quality condition, and if so, determine the face model of the face image For stranger data to be added, and execute the step of correspondingly saving the second person identifier and the face model of the face image in the first person database;
如果所述预定缓存中存在相似度大于第三预定阈值的人脸模型, 更新第 三人员标识所表示的人员的出现记录, 所述第三人员标识为所述第一人员库 中所述相似度大于第三预定阈值的人脸模型所对应的人员标识。 If there is a face model with a similarity greater than a third predetermined threshold in the predetermined cache, update the appearance record of the person represented by the third person identifier, where the third person identifier is the similarity in the first person database The person identification corresponding to the face model greater than the third predetermined threshold.
26、 根据权利要求 17-23任一项所述的装置, 其特征在于, 所述人脸匹配 模块还用于在所述将所述人脸图像与第一人员库中保存的人脸模型进行匹配 之前, 将所述人脸图像与第二人员库中保存的人脸模型进行匹配, 所述第二 人员库中保存有不需要参与统计的人员的人脸模型; 26. The device according to any one of claims 17-23, wherein the face matching module is further configured to perform the process of comparing the face image with a face model saved in a first person database. Before matching, matching the face image with a face model stored in a second person database, where the second person database stores face models of persons who do not need to participate in statistics;
如果所述人脸图像与所述第二人员库中的人脸模型不匹配, 执行所述将 所述人脸图像与第一人员库中保存的人脸模型进行匹配的步骤。 If the face image does not match the face model in the second person database, perform the step of matching the face image with the face model saved in the first person database.
21、 根据权利要求 17-23任一项所述的装置, 其特征在于, 所述记录更新 模块, 具体用于在所述第一人员标识所表示的人员的出现记录中增加新的出 现信息, 所述出现信息包括基于所述人脸图像得到的人脸特征信息。 21. The device according to any one of claims 17-23, wherein the record update module is specifically configured to add new appearance information to the appearance record of the person indicated by the first person identifier, The appearance information includes facial feature information obtained based on the facial image.
28、 根据权利要求 27所述的装置, 其特征在于, 所述出现信息还包括: 所述监控画面的时间戳、 拍摄所述监控画面的监控设备的设备标识、 所述监 控画面、 针对所述第一人员标识预设的人员信息中的一个或多个。 28. The device according to claim 27, wherein the appearance information further comprises: the time stamp of the monitoring screen, the device identification of the monitoring device that took the monitoring screen, the monitoring screen, and the The first person identifies one or more of the preset person information.
29、 根据权利要求 17-23任一项所述的装置, 其特征在于, 所述记录更新 模块具体用于: 29. The device according to any one of claims 17-23, wherein the record update module is specifically configured to:
如果查找到与所述人脸图像的人脸模型相匹配的人脸模型, 将所述第一 人员标识的签到状态更新为已签到状态, 并更新所述第一人员标识所表示的 人员对应的签到次数, 所述签到次数为所述第一人员标识的签到状态被更新 为已签到状态的次数。 If a face model that matches the face model of the face image is found, the check-in status of the first person ID is updated to the checked-in status, and the person corresponding to the person indicated by the first person ID is updated The number of check-ins, where the number of check-ins is the number of times the check-in status identified by the first person is updated to the checked-in status.
30、 根据权利要求 29所述的装置, 其特征在于, 所述第一人员库中还对 应保存有人员标识和团体标识; 所述装置还包括: 30. The device according to claim 29, wherein the first personnel database also has Person identification and group identification should be kept; the device also includes:
获取模块, 用于所述记录更新模块将所述第一人员标识的签到状态更新 为已签到状态之后, 获取所述第一人员库中对应有目标团体标识的所有人员 标识的签到状态; 其中, 所述目标团体标识为所述第一人员标识所对应的团 体标识; The obtaining module is configured to obtain the check-in status of all the person IDs corresponding to the target group ID in the first person database after the record update module updates the check-in status of the first person ID to the checked-in status; wherein, The target group identifier is the group identifier corresponding to the first person identifier;
确定模块, 用于基于所获取的所述所有人员标识的签到状态, 确定具有 所述目标团体标识的团体的签到状态。 The determining module is configured to determine the sign-in status of the group with the target group identifier based on the obtained sign-in status of all the personnel identities.
31、根据权利要求 30所述的装置, 其特征在于, 所述确定模块具体用于: 从所获取的所述所有人员标识的签到状态中, 统计签到状态为已签到的 人员标识的第一数量; 基于所获取的第一数量, 确定具有所述目标团体标识 的团体的签到状态 31. The device according to claim 30, wherein the determining module is specifically configured to: from the acquired check-in status of all the person IDs, count the check-in status as the first number of the person IDs who have checked in ; Based on the obtained first quantity, determine the sign-in status of the group with the target group ID
32、 根据权利要求 30所述的装置, 其特征在于, 所述装置还包括: 记录模块, 用于在所述记录更新模块将所述第一人员标识的签到状态更 新为已签到状态之后, 将所述人脸图像的采集时间作为所述第一人员标识的 签到时间并记录; 32. The device according to claim 30, wherein the device further comprises: a recording module, configured to: after the recording update module updates the sign-in status of the first person identifier to the signed-in status, The collection time of the face image is used as the sign-in time of the first person ID and recorded;
当接收到外部输入的携带有指定时间和团体标识的检索指令时, 获取对 应所接收到的团体标识的、 且签到状态为已签到的人员标识; When receiving an externally input retrieval instruction carrying the designated time and group ID, obtain the ID of the person corresponding to the received group ID and whose sign-in status is checked-in;
从所获取的人员标识中, 确定签到时间不晚于所述指定时间的人员标识 的第二数量; From the acquired personnel identifiers, determine the second number of personnel identifiers whose sign-in time is not later than the specified time;
若所获取的第二数量小于具有所接收到的团体标识的团体对应的预设人 数, 则确定具有所接收到的团体标识的团体的签到状态为未签到; If the obtained second number is less than the preset number of people corresponding to the group with the received group ID, determining that the sign-in status of the group with the received group ID is not signed in;
若所获取的第二数量不小于具有所接收到的团体标识的团体对应的预设 人数, 则确定具有所接收到的团体标识的团体的签到状态为已签到。 If the obtained second number is not less than the preset number of people corresponding to the group with the received group ID, it is determined that the sign-in status of the group with the received group ID is signed in.
33、 一种电子设备, 其特征在于, 包括: 存储器, 用于存放计算机程序; 处理器,用于执行存储器上所存放的程序时, 实现权利要求 1-16任一所述的方 法步骤。 33. An electronic device, comprising: a memory for storing a computer program; a processor for executing the program stored on the memory to implement the method steps of any one of claims 1-16.
34、 一种计算机可读存储介质, 其特征在于, 所述计算机可读存储介质 内存储有计算机程序, 所述计算机程序被处理器执行时实现权利要求 1-16任 一所述的方法步骤。 34. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method steps of any one of claims 1-16 are implemented.
PCT/CN2020/075285 2019-02-27 2020-02-14 Personnel statistical method and device and electronic device WO2020173314A1 (en)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
CN201910146911.8A CN111626079A (en) 2019-02-27 2019-02-27 Personnel counting method and device and electronic equipment
CN201910146911.8 2019-02-27
CN201910180045.4 2019-03-11
CN201910180045.4A CN111696220A (en) 2019-03-11 2019-03-11 Sign-in method and device
CN201911267295.8A CN112949362B (en) 2019-12-11 2019-12-11 Personnel information labeling method and device and electronic equipment
CN201911267295.8 2019-12-11

Publications (1)

Publication Number Publication Date
WO2020173314A1 true WO2020173314A1 (en) 2020-09-03

Family

ID=72239075

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/075285 WO2020173314A1 (en) 2019-02-27 2020-02-14 Personnel statistical method and device and electronic device

Country Status (1)

Country Link
WO (1) WO2020173314A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112232186A (en) * 2020-10-14 2021-01-15 盈合(深圳)机器人与自动化科技有限公司 Epidemic prevention monitoring method and system
CN112559583A (en) * 2020-11-30 2021-03-26 杭州海康威视数字技术股份有限公司 Method and device for identifying pedestrians
CN112560772A (en) * 2020-12-25 2021-03-26 北京百度网讯科技有限公司 Face recognition method, device, equipment and storage medium
CN112651366A (en) * 2020-12-30 2021-04-13 深圳云天励飞技术股份有限公司 Method and device for processing number of people in passenger flow, electronic equipment and storage medium
CN112784784A (en) * 2021-01-29 2021-05-11 新疆爱华盈通信息技术有限公司 Personnel information statistical method and system based on face recognition
CN112560772B (en) * 2020-12-25 2024-05-14 北京百度网讯科技有限公司 Face recognition method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103093213A (en) * 2013-01-28 2013-05-08 广东欧珀移动通信有限公司 Video file classification method and terminal
CN104298956A (en) * 2013-07-19 2015-01-21 因为科技无锡有限公司 Face identification method
CN105279814A (en) * 2014-07-24 2016-01-27 中兴通讯股份有限公司 Driving recording treatment method and driving recording treatment system
CN107527012A (en) * 2017-07-14 2017-12-29 深圳云天励飞技术有限公司 Make a dash across the red light monitoring method, device and monitoring processing equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103093213A (en) * 2013-01-28 2013-05-08 广东欧珀移动通信有限公司 Video file classification method and terminal
CN104298956A (en) * 2013-07-19 2015-01-21 因为科技无锡有限公司 Face identification method
CN105279814A (en) * 2014-07-24 2016-01-27 中兴通讯股份有限公司 Driving recording treatment method and driving recording treatment system
CN107527012A (en) * 2017-07-14 2017-12-29 深圳云天励飞技术有限公司 Make a dash across the red light monitoring method, device and monitoring processing equipment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112232186A (en) * 2020-10-14 2021-01-15 盈合(深圳)机器人与自动化科技有限公司 Epidemic prevention monitoring method and system
CN112232186B (en) * 2020-10-14 2024-02-27 盈合(深圳)机器人与自动化科技有限公司 Epidemic prevention monitoring method and system
CN112559583A (en) * 2020-11-30 2021-03-26 杭州海康威视数字技术股份有限公司 Method and device for identifying pedestrians
CN112559583B (en) * 2020-11-30 2023-09-01 杭州海康威视数字技术股份有限公司 Method and device for identifying pedestrians
CN112560772A (en) * 2020-12-25 2021-03-26 北京百度网讯科技有限公司 Face recognition method, device, equipment and storage medium
CN112560772B (en) * 2020-12-25 2024-05-14 北京百度网讯科技有限公司 Face recognition method, device, equipment and storage medium
CN112651366A (en) * 2020-12-30 2021-04-13 深圳云天励飞技术股份有限公司 Method and device for processing number of people in passenger flow, electronic equipment and storage medium
CN112784784A (en) * 2021-01-29 2021-05-11 新疆爱华盈通信息技术有限公司 Personnel information statistical method and system based on face recognition

Similar Documents

Publication Publication Date Title
WO2020173314A1 (en) Personnel statistical method and device and electronic device
US9704185B2 (en) Product recommendation using sentiment and semantic analysis
US20160321256A1 (en) System and method for generating a facial representation
IL258817A (en) Methods and apparatus for false positive minimization in facial recognition applications
CN108038176B (en) Method and device for establishing passerby library, electronic equipment and medium
JP6109970B2 (en) Proposal for tagging images on online social networks
AU2017254967A1 (en) Presence granularity with augmented reality
WO2021068635A1 (en) Information processing method and apparatus, and electronic device
CN106850346A (en) Change and assist in identifying method, device and the electronic equipment of blacklist for monitor node
JP2012533803A (en) Estimating and displaying social interests in time-based media
WO2018205845A1 (en) Data processing method, server, and computer storage medium
CN109783685A (en) A kind of querying method and device
US20230268073A1 (en) Inquiry information processing method and apparatus, and medium
US11288673B1 (en) Online fraud detection using machine learning models
US20220345435A1 (en) Automated image processing and insight presentation
US20180027092A1 (en) Selecting assets
CN109064217B (en) User level-based core body strategy determination method and device and electronic equipment
US10805255B2 (en) Network information identification method and apparatus
WO2022033068A1 (en) Image management method and apparatus, and terminal device and system
WO2023019927A1 (en) Facial recognition method and apparatus, storage medium, and electronic device
JPWO2015016262A1 (en) Information processing apparatus, authentication system, authentication method, and program
WO2021104513A1 (en) Object display method and apparatus, electronic device and storage medium
CN109167939A (en) It is a kind of to match literary method, apparatus and computer storage medium automatically
US10193990B2 (en) System and method for creating user profiles based on multimedia content
CN108256542A (en) A kind of feature of communication identifier determines method, apparatus and equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20762314

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20762314

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20762314

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 05/04/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20762314

Country of ref document: EP

Kind code of ref document: A1