CN110717358B - Visitor number counting method and device, electronic equipment and storage medium - Google Patents
Visitor number counting method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN110717358B CN110717358B CN201810762455.5A CN201810762455A CN110717358B CN 110717358 B CN110717358 B CN 110717358B CN 201810762455 A CN201810762455 A CN 201810762455A CN 110717358 B CN110717358 B CN 110717358B
- Authority
- CN
- China
- Prior art keywords
- visitor
- face image
- recognized
- list
- face
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/172—Classification, e.g. identification
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Oral & Maxillofacial Surgery (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Image Analysis (AREA)
- Image Processing (AREA)
Abstract
The embodiment of the invention provides a visitor number counting method, a visitor number counting device, electronic equipment and a storage medium, wherein the visitor number counting method comprises the following steps: acquiring a face image to be recognized in a monitoring scene; comparing the face image to be recognized with a white list face image in a preset white list, and judging whether a white list face image matched with the face image to be recognized exists or not; if the white list face image matched with the face image to be recognized does not exist, comparing the face image to be recognized with the visitor face image in the visitor list, and judging whether the visitor face image matched with the face image to be recognized exists or not; if the visitor face image matched with the face image to be recognized does not exist, taking the face image to be recognized as a new visitor face image, and adding the new visitor face image into a visitor list; and counting the number of the face images of the visitors in the visitor list to obtain the number of the visitors. By the visitor number counting method, the accuracy of visitor number counting can be improved.
Description
Technical Field
The invention relates to the technical field of video monitoring, in particular to a visitor number counting method and device, electronic equipment and a storage medium.
Background
Visitor number statistics has important meaning to scenes such as shopping malls, shopping centers, chain stores, airports, stations, museums, exhibition halls and the like, and can facilitate people flow management, business evaluation and the like of the scenes. For example, for a scene in which the number of visitors needs to be controlled, when the counted number of visitors reaches a specified number, a corresponding restriction measure can be taken to control the people flow.
In the technology of carrying out visitor's number statistics through supervisory equipment in the relevance, in the appointed region of relevant scene, for example areas such as access & exit, set up the camera, gather appointed regional image through the camera, carry out the analysis to the image through the deep learning algorithm, whenever detect that there is the visitor to get into appointed region, increase visitor's number 1.
However, by adopting the method, the visitor number is not accurately counted.
Disclosure of Invention
The embodiment of the invention aims to provide a visitor number counting method and device, electronic equipment and a storage medium, so as to improve the visitor number counting accuracy. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a visitor count counting method, where the method includes:
acquiring a face image to be recognized in a monitoring scene;
comparing the facial image to be recognized with a white list facial image in a preset white list, and judging whether a white list facial image matched with the facial image to be recognized exists or not;
if the white list face image matched with the face image to be recognized does not exist, comparing the face image to be recognized with the visitor face image in the visitor list, and judging whether the visitor face image matched with the face image to be recognized exists or not;
if the visitor face image matched with the face image to be recognized does not exist, taking the face image to be recognized as a new visitor face image, and adding the new visitor face image into the visitor list;
and counting the number of the face images of the visitors in the visitor list to obtain the number of the visitors.
Optionally, after determining whether there is a visitor face image matching the face image to be recognized, the method further includes:
and if the visitor face image matched with the face image to be recognized exists, updating the appearance information of the visitor face image matched with the face image to be recognized.
Optionally, the visitor count counting method according to the embodiment of the present invention further includes:
obtaining visitor query information, wherein the visitor query information comprises an identifier of a face image of a visitor to be queried;
acquiring the appearance information of the visitor face image to be inquired according to the identification of the visitor face image to be inquired in the visitor inquiry information;
and displaying the appearance information of the face image of the visitor to be inquired.
Optionally, the visitor list records the acquisition time of the face image of each visitor;
counting the number of the face images of the visitors in the visitor list to obtain the number of the visitors, including:
and in the visitor list, counting the number of all visitor face images within a specified time period at the acquisition time to obtain the number of visitors.
Optionally, the visitor list further records an acquisition point of each visitor face image;
counting the number of the face images of the visitors in the visitor list to obtain the number of the visitors, including:
and in the visitor list, counting the number of all visitor face images of which the acquisition time is in a specified time period and the acquisition points are specified acquisition points to obtain the number of visitors.
Optionally, after counting the number of the face images of the visitors in the visitor list and obtaining the number of the visitors, the method further includes:
and if the number of the visitors is not less than a preset visitor number threshold value, generating visitor number alarm.
In a second aspect, an embodiment of the present invention provides a visitor count apparatus, where the apparatus includes:
the image acquisition module is used for acquiring a face image to be recognized in a monitoring scene;
the first comparison module is used for comparing the face image to be recognized with a white list face image in a preset white list and judging whether a white list face image matched with the face image to be recognized exists or not;
the second comparison module is used for comparing the face image to be recognized with the visitor face image in the visitor list if the white list face image matched with the face image to be recognized does not exist, and judging whether the visitor face image matched with the face image to be recognized exists or not;
the visitor adding module is used for taking the face image to be recognized as a new visitor face image and adding the new visitor face image into the visitor list if the visitor face image matched with the face image to be recognized does not exist;
and the number counting module is used for counting the number of the face images of the visitors in the visitor list to obtain the number of the visitors.
Optionally, the apparatus for counting the number of visitors in the embodiment of the present invention further includes:
and the information updating module is used for updating the appearance information of the visitor face image matched with the face image to be recognized if the visitor face image matched with the face image to be recognized exists.
Optionally, the apparatus for counting the number of visitors in the embodiment of the present invention further includes:
the system comprises a query information acquisition module, a query information acquisition module and a query processing module, wherein the query information acquisition module is used for acquiring visitor query information, and the visitor query information comprises an identifier of a face image of a visitor to be queried;
the appearance information acquisition module is used for acquiring appearance information of the visitor face image to be inquired according to the identification of the visitor face image to be inquired in the visitor inquiry information;
and the appearance information display module is used for displaying the appearance information of the face image of the visitor to be inquired.
Optionally, the visitor list records the acquisition time of the face image of each visitor;
the people counting module is specifically used for:
and counting the number of all visitor face images in a specified time period within the collection time to obtain the number of visitors.
Optionally, the visitor list further records an acquisition point of each visitor face image;
the people counting module is specifically used for:
and in the visitor list, counting the number of all visitor face images of which the acquisition time is in a specified time period and the acquisition points are specified acquisition points to obtain the number of visitors.
Optionally, the apparatus for counting the number of visitors in the embodiment of the present invention further includes:
and the alarm module is used for generating visitor number alarm if the visitor number is not less than a preset visitor number threshold value.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to implement the visitor count statistical method according to any one of the first aspect described above when executing the program stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when executed by a processor, the computer program implements the visitor count statistical method according to any one of the first aspect.
The visitor number counting method, the visitor number counting device, the electronic equipment and the storage medium provided by the embodiment of the invention are used for acquiring a face image to be recognized in a monitoring scene; comparing the face image to be recognized with a white list face image in a preset white list, and judging whether a white list face image matched with the face image to be recognized exists or not; if the white list face image matched with the face image to be recognized does not exist, comparing the face image to be recognized with the visitor face image in the visitor list, and judging whether the visitor face image matched with the face image to be recognized exists or not; if the visitor face image matched with the face image to be recognized does not exist, taking the face image to be recognized as a new visitor face image, and adding the new visitor face image into a visitor list; and counting the number of the face images of the visitors in the visitor list to obtain the number of the visitors. Through the comparison of the image to be recognized and the white list face image, the statistics of white list personnel (such as workers) is excluded, and when the visitor face image matched with the face image to be recognized does not exist, the face image to be recognized is added into the visitor list, so that the repeated statistics of the same visitor can be prevented, and the accuracy of the visitor number statistics can be improved. Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flowchart illustrating a visitor count counting method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a visitor count counting method according to an embodiment of the invention;
FIG. 3 is a diagram of an apparatus for counting visitor count according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an electronic device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the technology of carrying out visitor's number statistics through supervisory equipment, can indifferently make statistics of staff and visitor in the control scene to can repeat the same visitor who makes statistics of entering the control scene repeatedly, cause visitor's number to count inaccurately.
In view of this, an embodiment of the present invention provides a visitor count counting method, which, with reference to fig. 1, includes:
and S101, acquiring a face image to be recognized in a monitored scene.
The visitor number counting method in the embodiment of the invention can be realized by a counting system, and the counting system is any system capable of realizing the visitor number counting method in the embodiment of the invention. For example:
the statistical system may be an electronic device comprising: a processor, a memory, a communication interface, and a bus; the processor, the memory and the communication interface are connected through a bus and complete mutual communication; the memory stores executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the visitor count counting method of the embodiment of the invention.
The statistical system may also be an application program for performing the visitor count statistical method of the embodiments of the present invention at runtime.
The statistical system may also be a storage medium for storing executable code for performing the visitor count statistical method of embodiments of the present invention.
The statistical system acquires the face image to be recognized in the current monitoring scene through image acquisition equipment, such as a camera, in the current monitoring scene.
And S102, comparing the facial image to be recognized with a white list facial image in a preset white list, and judging whether a white list facial image matched with the facial image to be recognized exists or not.
The face images of the people in the white list, namely the face images in the white list, are stored in the preset white list. The white list personnel can be staff in a monitoring scene, and the statistical system cannot count the number of visitors of the white list personnel. The statistical system compares the face image to be recognized with each white list face image through a preset face recognition algorithm, judges whether a white list face image matched with the face image to be recognized exists or not, and namely judges whether the pedestrian corresponding to the face image to be recognized is a white list person or not.
For example, the face image to be recognized and the white list face image are input into a pre-trained neural network for face recognition, and whether the face image to be recognized and the white list face image are matched is judged. Or based on the comparison of the face models, calculating the similarity between the face image to be recognized and the white list face image, and when the similarity is greater than a preset similarity threshold, determining that the face image to be recognized is matched with the white list face image, where the preset similarity threshold may be set according to actual conditions, for example, the preset similarity threshold is 70%, 80%, or 90%.
S103, if the white list face image matched with the face image to be recognized does not exist, comparing the face image to be recognized with the visitor face image in the visitor list, and judging whether the visitor face image matched with the face image to be recognized exists or not.
The visitor list stores the face image of the visitor, namely the face image of the visitor. The statistical system carries out model comparison on the face image to be recognized and each visitor face image through a preset face recognition algorithm, judges whether the visitor face image matched with the face image to be recognized exists or not, and namely judges whether the visitor corresponding to the face image to be recognized appears or not.
For example, a face model of a face image to be recognized and a face model of each visitor face image are established through a convolutional neural network which is subjected to face recognition training in advance, model comparison is carried out on the face model of the face image to be recognized and the face model of each visitor face image, and whether the visitor face image matched with the face image to be recognized exists is judged; or the target detection method based on the image segmentation technology is used for carrying out model comparison on the face image to be recognized and each visitor face image and judging whether the visitor face image matched with the face image to be recognized exists or not; or the target detection method based on the characteristic matching technology is used for carrying out model comparison on the face image to be recognized and each visitor face image, judging whether the visitor face image matched with the face image to be recognized exists or not, and the like.
And S104, if the visitor face image matched with the face image to be recognized does not exist, taking the face image to be recognized as a new visitor face image, and adding the new visitor face image into the visitor list.
And if the visitor face image matched with the face image to be recognized does not exist, the visitor corresponding to the face image to be recognized appears in the current monitoring scene for the first time, and the statistical system takes the face image to be recognized as a new visitor face image and adds the new visitor face image into the visitor list. Optionally, the visitor corresponding to each visitor image in the visitor list corresponds to a unique ID, so as to count the frequency of visitors.
And S105, counting the number of the face images of the visitors in the visitor list to obtain the number of the visitors.
And the counting system counts the number of the face images of the visitors in the visitor list to obtain the visitor identification number. For example, each visitor corresponding to each visitor image corresponds to a unique ID, and the number of the visitor face images can be counted by counting the visitor IDs and the like.
In the embodiment of the invention, the comparison between the image to be recognized and the white list face image eliminates the statistics of white list personnel (such as workers), and when the visitor face image matched with the face image to be recognized does not exist, the face image to be recognized is added into the visitor list, so that the repeated statistics of the same visitor can be prevented, and the accuracy of the visitor number statistics can be improved.
Optionally, after the determining whether there is a visitor face image matching the face image to be recognized, the method further includes:
and if the visitor face image matched with the face image to be recognized exists, updating the appearance information of the visitor face image matched with the face image to be recognized.
The appearance information of the visitor face image may include the number of times of appearance of the visitor corresponding to the visitor face image, the time of appearance of the corresponding visitor, the place of appearance of the corresponding visitor, and the like.
In the embodiment of the invention, the occurrence information of the face image of the visitor is recorded, so that the statistics on the occurrence frequency, time and other information of the visitor is facilitated, and the analysis of potential customers or potential dangerous personnel and the like is facilitated subsequently according to the occurrence information.
Optionally, the method for counting the number of visitors in the embodiment of the present invention further includes:
step one, obtaining visitor query information, wherein the visitor query information comprises an identification of a face image of a visitor to be queried.
The identification of the visitor face image to be queried can be an ID, name or serial number of the visitor face image to be queried and the like. The identification of the face image of the visitor to be inquired can also be a face image, and the face image of the visitor matched with the face image is detected in the visitor list as the face image of the visitor to be inquired through the preset face recognition algorithm.
And step two, acquiring the appearance information of the visitor face image to be inquired according to the identification of the visitor face image to be inquired in the visitor inquiry information.
And step three, displaying the appearance information of the face image of the visitor to be inquired.
In the embodiment of the invention, the appearance information of the face image of the visitor to be inquired is displayed, so that the behavior of the appointed visitor is conveniently analyzed, and the potential client or the potential dangerous personnel and the like are determined.
Optionally, the visitor list records the acquisition time of the face image of each visitor;
above-mentioned statistics visitor's face image's quantity in above-mentioned visitor's list obtains visitor's number, includes:
in the visitor list, the number of all visitor face images in a specified time period is counted to obtain the number of visitors.
The statistical system may count the number of visitors in a specified time period, for example, the statistical system receives a people number query instruction that counts a specified time period identifying the number of visitors to be counted; and the statistical system inquires the number of all visitor face images in each acquisition time within a specified time period in the visitor list, namely the number of visitors.
In the embodiment of the invention, the acquisition time of the face image of each visitor is recorded in the visitor list, so that the number of visitors in a specified time period can be counted.
Optionally, the visitor list further records an acquisition point of each visitor face image;
above-mentioned statistics visitor's face image's quantity in above-mentioned visitor's list obtains visitor's number, includes:
in the visitor list, the number of all visitor face images of which the acquisition time is in a specified time period and the acquisition points are specified acquisition points is counted to obtain the number of visitors.
The acquisition point is an acquisition point for acquiring image data in the monitoring scene, for example, an image acquisition device, such as a camera or a face capture machine, is an acquisition point.
Optionally, the obtaining of the facial image to be recognized in the monitoring scene includes:
acquiring a face image of each pedestrian newly appearing in a monitoring scene;
the early warning system acquires the face images of each pedestrian newly appearing in the monitoring scene through image acquisition equipment such as a camera in the monitoring scene. For example, the early warning system detects newly appearing pedestrians in the monitoring image of the current monitoring scene through a preset recognition algorithm, and extracts face images of the newly appearing pedestrians. The newly appeared pedestrians refer to pedestrians newly entering the monitoring scene, including the pedestrian entering the current monitoring scene for the first time, and also including the pedestrian entering the current monitoring scene again after leaving the current monitoring scene. Optionally, the early warning system may detect a newly-appearing pedestrian only for an image at an entrance or an exit of the monitored scene, so as to save computational resources.
Step two, judging whether each face image accords with a preset recognizable rule;
the preset recognizable rule can be set according to actual conditions, for example, the resolution of the face image is greater than a preset resolution threshold, or whether the score of the face image is greater than a preset score threshold or not is judged. The early warning system carries out face modeling on the face image, scores the modeled face image, and the scoring rule is that the face image is compared with a three-dimensional reference database of the face one by one to obtain parameters such as pupil distance, pitch angle, left and right angles and the like, and the quality score of the face image is obtained according to the parameters. And judging the face image with the score higher than a preset score threshold value, and conforming to a preset recognizable rule. Judging the face image with the score not higher than a preset score threshold value, and not conforming to a preset recognizable rule.
And step three, taking the face image which accords with the recognizable rule as a face image to be recognized.
The early warning system takes the face image which accords with the recognizable rule as the face image to be recognized. And discarding or storing the face image which does not accord with the recognizable rule to a specified position. Optionally, the face images which do not accord with the preset recognizable rules are added into a snapshot library to facilitate subsequent query and analysis.
In the embodiment of the invention, the face image which accords with the recognizable rule is taken as the face image to be recognized, so that the success rate of comparing the subsequent face images to be recognized can be improved.
Optionally, after counting the number of the face images of the visitors in the visitor list to obtain the number of the visitors, the method further includes:
and if the number of the visitors is not less than a preset visitor number threshold value, generating visitor number alarm.
The preset visitor number threshold is set according to actual conditions, for example, when the monitoring scene is a certain exhibition area of a museum, the number of visitors accommodated in the exhibition area is 100, and the preset visitor number threshold is set to 100. And when the counted number of the visitors is not less than a preset visitor number threshold value, the counting system generates a visitor number alarm. So that corresponding operations, such as temporarily closing an entrance of a monitoring scene, etc., are performed according to the visitor number alarm.
In the embodiment of the invention, when the number of visitors is not less than the preset visitor number threshold, the visitor number alarm is generated, so that the management of the visitor number is convenient, and various requirements of users can be met.
Another flow chart of the visitor count counting method according to the embodiment of the present invention is shown in fig. 2.
The method comprises the steps of obtaining images in a monitoring scene through image acquisition equipment, such as a face snapshot machine, detecting faces in the images, extracting face images to perform face modeling after the faces are detected, comparing built face image models with face image models in a maintained white list library one by one, and if matched face images are not found in the white list library, considering people corresponding to the face images as visitors.
Inquiring a visitor list library, comparing the built face image model with the face image models in the visitor list library one by one, if a matched face image is found in the visitor list library, for example, a face image model with similarity larger than 80% exists through model comparison, determining that a corresponding visitor has appeared, and recording the visitor list library, increasing the current appearance time of the visitor, parameters such as monitoring points and the like, wherein the visitor ID corresponds to a plurality of appearance times, and a plurality of monitoring points are used for subsequent retrieval. And if the matched face image is not found in the visitor name list library, adding the established face image into the visitor name list library, allocating a unique ID for the face image, and recording the parameters of the appearance time, the monitoring point, the model and the like of the visitor corresponding to the face image. And returning the number of the recorded people in the current visitor list library, and transmitting the number of the recorded people to the subscriber terminal through an interface or an alarm mode. When the number of people needing to enter is controlled, when the number of people counted in real time reaches a certain number, some limiting measures can be taken to control people flow.
In addition, the visitor list library can also carry out background retrieval, so that each visitor ID in the visitor list library corresponds to a plurality of appearance time and a plurality of appearance monitoring points, for example, the time and the information of a snapshot machine can be obtained by the face snapshot machine at each time, and the visitors can be retrieved according to the time period and the monitoring points. For example, specifying the number of visitors present at monitoring point 1 during 13-17 pm, the number of visitors present at monitoring point 1 during 13-17 pm is obtained by querying the visitor name list library. Optionally, a snapshot of the visitor in a specified time period can be viewed, so that the user can recognize the visitor more quickly and accurately.
The embodiment of the invention utilizes the methods of face detection, face modeling and face model comparison to count the number of visitors in a certain monitoring environment in real time, can realize the post retrieval of a background, and retrieves the number of visitors according to time periods and monitoring points. The main innovation point of the scheme is that people flow in certain areas, such as shopping malls, hospitals and supermarkets, can be accurately identified, internal workers can be filtered, repeat personnel can be filtered, a more accurate visitor number counting method is provided, and business opportunities are excavated or risk pre-control is carried out.
The existing method for counting the number of people is inaccurate, multiple accesses of the same person are not recognized, and under the scenes of hospitals, supermarkets and the like, the accesses of the same person are very frequent, so that how to filter the same person plays a key role in counting the number of strangers. The system can accurately count the number of people in real time, and can also support the retrieval according to time periods and monitoring points, namely, a certain time period is appointed, certain monitoring points are appointed, the number of people who appear at the appointed monitoring points in the time period can be retrieved for counting, and the system is used for the background working personnel to view the number of people counted in more detail.
An embodiment of the present invention provides a visitor count counting apparatus, referring to fig. 3, the apparatus includes:
the image acquisition module 301 is configured to acquire a face image to be recognized in a monitoring scene;
a first comparison module 302, configured to compare the facial image to be recognized with a white list facial image in a preset white list, and determine whether a white list facial image matching the facial image to be recognized exists;
a second comparison module 303, configured to, if there is no white list face image matching the face image to be recognized, compare the face image to be recognized with a guest face image in a guest list, and determine whether there is a guest face image matching the face image to be recognized;
a visitor adding module 304, configured to add, if there is no visitor face image matching the face image to be recognized, the face image to be recognized as a new visitor face image to the visitor list;
and the number counting module 305 is configured to count the number of the face images of the visitors in the visitor list to obtain the number of the visitors.
In the embodiment of the invention, the comparison between the image to be recognized and the white list face image eliminates the statistics of white list personnel (such as workers), and when the visitor face image matched with the face image to be recognized does not exist, the face image to be recognized is added into the visitor list, so that the repeated statistics of the same visitor can be prevented, and the accuracy of the visitor number statistics can be improved.
Optionally, the image obtaining module 301 includes:
the face image acquisition sub-module is used for acquiring the face images of all people newly appearing in the monitoring scene;
the recognizable judging submodule is used for judging whether each face image meets a preset recognizable rule or not;
and the to-be-recognized face image determining submodule is used for taking the face image which accords with the recognizable rule as the to-be-recognized face image.
Optionally, the apparatus for counting the number of visitors in the embodiment of the present invention further includes:
and the information updating module is used for updating the appearance information of the visitor face image matched with the face image to be recognized if the visitor face image matched with the face image to be recognized exists.
Optionally, the apparatus for counting the number of visitors in the embodiment of the present invention further includes:
the system comprises a query information acquisition module, a query information acquisition module and a query processing module, wherein the query information acquisition module is used for acquiring visitor query information, and the visitor query information comprises an identifier of a face image of a visitor to be queried;
the appearance information acquisition module is used for acquiring the appearance information of the visitor face image to be inquired according to the identification of the visitor face image to be inquired in the visitor inquiry information;
and the appearance information display module is used for displaying the appearance information of the face image of the visitor to be inquired.
Optionally, the visitor list records the acquisition time of the face image of each visitor;
the people counting module 305 is specifically configured to:
in the visitor list, the number of all visitor face images in a specified time period is counted to obtain the number of visitors.
Optionally, the visitor list further records an acquisition point of each visitor face image;
the people counting module 305 is specifically configured to:
in the visitor list, the number of all visitor face images of which the acquisition time is in a specified time period and the acquisition points are specified acquisition points is counted to obtain the number of visitors.
Optionally, the apparatus for counting the number of visitors in the embodiment of the present invention further includes:
and the alarm module is used for generating visitor number alarm if the visitor number is not less than a preset visitor number threshold value.
An embodiment of the present invention further provides an electronic device, as shown in fig. 4, including: a processor 401 and a memory 402;
the memory 402 for storing a computer program;
the processor 401, when executing the program stored in the memory 402, implements the following steps:
acquiring a face image to be recognized in a monitoring scene;
comparing the face image to be recognized with a white list face image in a preset white list, and judging whether a white list face image matched with the face image to be recognized exists or not;
if the white list face image matched with the face image to be recognized does not exist, comparing the face image to be recognized with the visitor face image in the visitor list, and judging whether the visitor face image matched with the face image to be recognized exists or not;
if the visitor face image matched with the face image to be recognized does not exist, taking the face image to be recognized as a new visitor face image, and adding the new visitor face image into the visitor list;
and counting the number of the face images of the visitors in the visitor list to obtain the number of the visitors.
In the embodiment of the invention, the statistics of the white list personnel is excluded by comparing the image to be recognized with the white list face image, and when the visitor face image matched with the face image to be recognized does not exist, the face image to be recognized is added into the visitor list, so that the repeated statistics of the same visitor can be prevented, and the accuracy of the visitor number statistics can be improved.
Optionally, the processor 401 is configured to implement the method for counting the number of visitors when executing the program stored in the memory 402.
Optionally, the electronic device according to the embodiment of the present invention further includes a communication interface and a communication bus, where the processor 401, the communication interface, and the memory 402 complete mutual communication through the communication bus,
the communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the following steps:
acquiring a face image to be recognized in a monitoring scene;
comparing the facial image to be recognized with a white list facial image in a preset white list, and judging whether a white list facial image matched with the facial image to be recognized exists or not;
if the white list face image matched with the face image to be recognized does not exist, comparing the face image to be recognized with the visitor face image in the visitor list, and judging whether the visitor face image matched with the face image to be recognized exists or not;
if the visitor face image matched with the face image to be recognized does not exist, taking the face image to be recognized as a new visitor face image, and adding the new visitor face image into the visitor list;
and counting the number of the face images of the visitors in the visitor list to obtain the number of the visitors.
In the embodiment of the invention, the statistics of the white list personnel is excluded by comparing the image to be recognized with the white list face image, and when the visitor face image matched with the face image to be recognized does not exist, the face image to be recognized is added into the visitor list, so that the repeated statistics of the same visitor can be prevented, and the accuracy of the visitor number statistics can be improved.
Optionally, when being executed by a processor, the computer program can also implement the above method for counting the number of visitors.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiments of the apparatus, the electronic device, and the storage medium, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (8)
1. A visitor count method, comprising:
acquiring new face images of all people in a monitoring scene;
judging whether each face image accords with a preset recognizable rule or not;
taking the face image which accords with the preset recognizable rule as a face image to be recognized;
comparing the face image to be recognized with a white list face image in a preset white list, and judging whether a white list face image matched with the face image to be recognized exists or not;
if the white list face image matched with the face image to be recognized does not exist, comparing the face image to be recognized with the visitor face image in the visitor list, and judging whether the visitor face image matched with the face image to be recognized exists or not;
if the visitor face image matched with the face image to be recognized does not exist, taking the face image to be recognized as a new visitor face image, adding the new visitor face image into the visitor list, and recording the acquisition time and the acquisition point of each visitor face image in the visitor list;
in the visitor list, counting the number of all visitor face images within a specified time period at the acquisition time to obtain the number of visitors or counting the number of all visitor face images within the specified time period at the acquisition point which is a specified acquisition point to obtain the number of visitors, wherein each visitor corresponding to each visitor image corresponds to a unique ID, and counting the number of the visitor face images obtained by the visitor IDs; if the visitor face image matched with the face image to be recognized exists, updating the appearance information of the visitor face image matched with the face image to be recognized, wherein the appearance information of the visitor face image comprises the appearance times of the visitor corresponding to the visitor face image, the time of the corresponding visitor appearing each time and the place of the corresponding visitor appearing each time.
2. The method of claim 1, further comprising:
obtaining visitor query information, wherein the visitor query information comprises an identifier of a face image of a visitor to be queried;
acquiring the appearance information of the visitor face image to be inquired according to the identification of the visitor face image to be inquired in the visitor inquiry information;
and displaying the appearance information of the face image of the visitor to be inquired.
3. The method of claim 1, wherein the counting of the number of the face images of the visitors in the visitor list is performed, and after the number of the visitors is obtained, the method further comprises:
and if the number of the visitors is not less than a preset visitor number threshold value, generating a visitor number alarm.
4. A visitor count apparatus, the apparatus comprising:
the image acquisition module is used for acquiring the face images of all people newly appearing in the monitoring scene; judging whether each face image accords with a preset recognizable rule or not; taking the face image which accords with the preset recognizable rule as a face image to be recognized;
the first comparison module is used for comparing the face image to be recognized with a white list face image in a preset white list and judging whether a white list face image matched with the face image to be recognized exists or not;
the second comparison module is used for comparing the face image to be recognized with the visitor face image in the visitor list if the white list face image matched with the face image to be recognized does not exist, and judging whether the visitor face image matched with the face image to be recognized exists or not;
the visitor adding module is used for adding the face image to be recognized into the visitor list as a new visitor face image if the face image to be recognized does not exist, and the visitor adding module is used for recording the acquisition time and the acquisition point of each visitor face image;
the visitor number counting module is used for counting the number of all visitor face images within a specified time period within the visitor list to obtain the number of visitors or counting the number of all visitor face images within the specified time period within specified time periods at specified collection points to obtain the number of visitors, wherein each visitor image corresponds to a unique ID, and the visitor ID is counted to obtain the number of the visitor face images;
and the information updating module is used for updating the appearance information of the visitor face image matched with the face image to be recognized if the visitor face image matched with the face image to be recognized exists, wherein the appearance information of the visitor face image comprises the appearance times of the visitor corresponding to the visitor face image, the time of each appearance of the corresponding visitor and the place of each appearance of the corresponding visitor.
5. The apparatus of claim 4, further comprising:
the visitor query information acquisition module is used for acquiring visitor query information, wherein the visitor query information comprises an identifier of a face image of a visitor to be queried;
the appearance information acquisition module is used for acquiring appearance information of the visitor face image to be inquired according to the identification of the visitor face image to be inquired in the visitor inquiry information;
and the appearance information display module is used for displaying the appearance information of the face image of the visitor to be inquired.
6. The apparatus of claim 4, further comprising:
and the alarm module is used for generating visitor number alarm if the visitor number is not less than a preset visitor number threshold value.
7. An electronic device comprising a processor and a memory;
the memory is used for storing a computer program;
the processor, when executing the program stored in the memory, implementing the method steps of any of claims 1-3.
8. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810762455.5A CN110717358B (en) | 2018-07-12 | 2018-07-12 | Visitor number counting method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810762455.5A CN110717358B (en) | 2018-07-12 | 2018-07-12 | Visitor number counting method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110717358A CN110717358A (en) | 2020-01-21 |
CN110717358B true CN110717358B (en) | 2022-12-02 |
Family
ID=69209098
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810762455.5A Active CN110717358B (en) | 2018-07-12 | 2018-07-12 | Visitor number counting method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110717358B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111815839B (en) * | 2020-07-13 | 2022-11-11 | 北京小米移动软件有限公司 | Doorbell system, prompting method, monitoring device, terminal device and medium |
CN112333410B (en) * | 2020-07-24 | 2024-09-17 | 深圳Tcl新技术有限公司 | Intelligent doorbell, control method thereof and computer readable storage medium |
CN112507928A (en) * | 2020-12-16 | 2021-03-16 | 富盛科技股份有限公司 | Visitor management system and method based on face recognition |
CN112784784A (en) * | 2021-01-29 | 2021-05-11 | 新疆爱华盈通信息技术有限公司 | Personnel information statistical method and system based on face recognition |
CN114973486A (en) * | 2022-04-20 | 2022-08-30 | 上海奂燎智能科技有限公司 | Intelligent alarm method and device for machine room and electronic equipment |
CN116935315B (en) * | 2023-07-21 | 2024-05-28 | 浙江远图技术股份有限公司 | Monitoring method, device, equipment and medium for ward environment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201587335U (en) * | 2009-05-04 | 2010-09-22 | 陕西理工学院 | Busload monitor for middle-distance and long-distance buses |
CN102355494A (en) * | 2011-09-27 | 2012-02-15 | 中国联合网络通信集团有限公司 | Active shunting guidance method, device and system |
CN103971103A (en) * | 2014-05-23 | 2014-08-06 | 西安电子科技大学宁波信息技术研究院 | People counting system |
CN204463272U (en) * | 2015-03-12 | 2015-07-08 | 北京市商汤科技开发有限公司 | reservation queuing system |
CN106408703A (en) * | 2016-08-31 | 2017-02-15 | 广州云系信息科技有限公司 | Identification method of visitor information |
CN107992786A (en) * | 2016-10-27 | 2018-05-04 | 中国科学院沈阳自动化研究所 | A kind of people streams in public places amount statistical method and system based on face |
CN108038176A (en) * | 2017-12-07 | 2018-05-15 | 浙江大华技术股份有限公司 | A kind of method for building up, device, electronic equipment and the medium in passerby storehouse |
-
2018
- 2018-07-12 CN CN201810762455.5A patent/CN110717358B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201587335U (en) * | 2009-05-04 | 2010-09-22 | 陕西理工学院 | Busload monitor for middle-distance and long-distance buses |
CN102355494A (en) * | 2011-09-27 | 2012-02-15 | 中国联合网络通信集团有限公司 | Active shunting guidance method, device and system |
CN103971103A (en) * | 2014-05-23 | 2014-08-06 | 西安电子科技大学宁波信息技术研究院 | People counting system |
CN204463272U (en) * | 2015-03-12 | 2015-07-08 | 北京市商汤科技开发有限公司 | reservation queuing system |
CN106408703A (en) * | 2016-08-31 | 2017-02-15 | 广州云系信息科技有限公司 | Identification method of visitor information |
CN107992786A (en) * | 2016-10-27 | 2018-05-04 | 中国科学院沈阳自动化研究所 | A kind of people streams in public places amount statistical method and system based on face |
CN108038176A (en) * | 2017-12-07 | 2018-05-15 | 浙江大华技术股份有限公司 | A kind of method for building up, device, electronic equipment and the medium in passerby storehouse |
Also Published As
Publication number | Publication date |
---|---|
CN110717358A (en) | 2020-01-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110717358B (en) | Visitor number counting method and device, electronic equipment and storage medium | |
EP3654285B1 (en) | Object tracking using object attributes | |
JP6854881B2 (en) | Face image matching system and face image search system | |
Adam et al. | Robust real-time unusual event detection using multiple fixed-location monitors | |
US10009579B2 (en) | Method and system for counting people using depth sensor | |
TWI416068B (en) | Object tracking method and apparatus for a non-overlapping-sensor network | |
CN110717357B (en) | Early warning method and device, electronic equipment and storage medium | |
CN110390229B (en) | Face picture screening method and device, electronic equipment and storage medium | |
CN102902960B (en) | Leave-behind object detection method based on Gaussian modelling and target contour | |
CN111291596B (en) | Early warning method and device based on face recognition | |
CN111127066A (en) | Mining application method and device based on user information | |
US11537639B2 (en) | Re-identification of physical objects in an image background via creation and storage of temporary data objects that link an object to a background | |
WO2022030558A1 (en) | Person detection or tracking device, system, method, and program | |
JP2024040203A (en) | Person detection device, person tracking apparatus, person tracking system, person detection method, person tracking method, person detection program and person tracking program | |
CN116824311A (en) | Performance detection method, device, equipment and storage medium of crowd analysis algorithm | |
Razalli et al. | Real-time face tracking application with embedded facial age range estimation algorithm | |
CN111385527B (en) | Method for judging peer and related products | |
CN110956644B (en) | Motion trail determination method and system | |
CN113837066A (en) | Behavior recognition method and device, electronic equipment and computer storage medium | |
CN113051975A (en) | People flow statistical method and related product | |
CN112906725A (en) | Method, device and server for counting people stream characteristics | |
CN110222942B (en) | Method and device for identifying shopping guide, electronic equipment and storage medium | |
CN117523472B (en) | Passenger flow data statistics method, computer equipment and computer readable storage medium | |
CN111723616B (en) | Personnel correlation measurement method and device | |
JP7564064B2 (en) | Video monitoring system and video monitoring method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |