People counting method and device and computer equipment
Technical Field
The embodiment of the specification relates to the technical field of data processing, in particular to a people counting method, a people counting device and computer equipment.
Background
At present, people counting service has high application value in various environments and application scenes, for example, in an online commercial scene, for large public occasions such as subway stations and amusement parks, people flow in different areas is counted, and merchants can be assisted to reasonably arrange advertisement putting positions or commodity putting positions.
In the prior art, there are two people counting methods: firstly, a WiFi probe is arranged in a fixed area, the MAC address of equipment in the fixed area can be obtained through the WiFi probe, and then the number of the detected MAC addresses is multiplied by a reduction coefficient to serve as a people counting result in the fixed area; the second step is as follows: and arranging camera equipment in the fixed area, acquiring the video image of the fixed area through the camera equipment, and analyzing the video image through a deep learning algorithm to obtain the people counting result in the fixed area.
However, in the first mode, with the development of technology, one MAC address does not necessarily correspond to one mobile device (e.g., a mobile phone), but may also correspond to one router or other network-enabled devices, that is, one MAC address does not necessarily correspond to one natural person, and the reduction coefficient is also estimated through manual experience, so that the first mode has a large error in people counting; in the second mode, the hardware cost of the image pickup apparatus is high, the requirement on the hardware computing capacity is high, and the privacy problem is involved in the image pickup itself, so that the cost for counting the number of people by the second mode is high, and the universality is not high.
Disclosure of Invention
In order to solve the technical problems, embodiments of the present specification provide a method, an apparatus, and a computer device for people counting, where the technical scheme is as follows:
according to a first aspect of the embodiments of the present specification, there is provided a people counting method for counting a total number of people passing through a target area within a specified time period, where the target area is located in a specified place, a WiFi probe and a plurality of gate ports are distributed in the specified place, the WiFi probe is used for detecting MAC address related information of equipment in the specified place, and the gate ports are used for a user to pass through the gate ports in a code scanning manner; the method comprises the following steps:
acquiring MAC address related information detected by the WiFi probe in a specified time period;
acquiring code scanning related information acquired by each gate in the specified time period, wherein the code scanning related information is generated when a user passes through the gate in a code scanning mode;
and determining the total number of people passing through the target area in the specified time period according to the MAC address related information and the code scanning related information.
According to a second aspect of the embodiments of the present specification, there is provided a people counting device for counting a total number of people passing through a target area within a specified time period, wherein the target area is located in a specified place, a WiFi probe and a plurality of gate ports are distributed in the specified place, the WiFi probe is used for detecting MAC address related information of equipment in the specified place, and the gate ports are used for a user to pass through the gate ports in a code scanning manner; the device comprises:
the first acquisition module is used for acquiring the MAC address related information detected by the WiFi probe in a specified time period;
the second acquisition module is used for acquiring code scanning related information acquired by each gate in the specified time period, wherein the code scanning related information is generated when a user passes through the gate in a code scanning mode;
and the head number determining module is used for determining the head number passing through the target area in the specified time period according to the MAC address related information and the code scanning related information.
According to a third aspect of the embodiments of the present specification, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the people counting method provided by the embodiments of the present specification when executing the program.
According to the technical scheme provided by the embodiment of the specification, the MAC address related information detected by the WiFi probe in the specified time period is acquired, the code scanning related information collected by each gate in the specified time period is acquired, the code scanning related information is generated when a user passes through the gates in a code scanning mode, and then the total number of people passing through the target area in the specified time period can be accurately determined according to the MAC address related information and the code scanning related information.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of embodiments of the invention.
In addition, any one of the embodiments in the present specification is not required to achieve all of the effects described above.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present specification, and other drawings can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a schematic view of an application scenario of a people counting method provided in this specification according to an exemplary embodiment of the specification;
FIG. 2 is an example of a target area;
FIG. 3 is a flowchart of an embodiment of a people counting method provided by an exemplary embodiment of the present disclosure;
FIG. 4 is a block diagram of an embodiment of a people counting device provided in an exemplary embodiment of the present disclosure;
fig. 5 is a schematic diagram illustrating a more specific hardware structure of a computer device according to an embodiment of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present specification, the technical solutions in the embodiments of the present specification will be described in detail below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all the embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of protection.
Please refer to fig. 1, which is a schematic diagram of an application scenario of the people counting method provided in the present specification according to an exemplary embodiment of the present specification.
As shown in fig. 1, taking a subway station 100 as an example, a plurality of gate ports, for example, gate port 1 to gate port 25, may be provided in the subway station 100, and in this embodiment, an advertisement projection screen 101 and a WiFi probe 102 are further provided in the subway station 100. The detection range of the WiFi probe 102 may include the entire subway station 100, that is, the MAC addresses of all the devices present in the subway station 100 may be detected by the WiFi probe 102.
In the application scenario illustrated in fig. 1, a target area (not shown in fig. 1) may be set based on the position of the advertisement delivery screen 101, for example, as shown in fig. 2, which is an example of the target area, the target area is a semicircular area with a radius of 8m, and by applying the people counting method provided in this specification, the total number of people passing through the target area in a specified time period may be counted, so as to assist a merchant in knowing whether the position of the advertisement delivery screen 101 is reasonable.
It should be noted that, if the embodiments of the present disclosure aim to count the total number of people passing through the target area within a specified time period, the WiFi probe 102 may be disposed in the target area or near the target area.
As follows, the following embodiment is shown to explain the people counting method in detail based on the application scenario illustrated in fig. 1.
Referring to fig. 3, a flowchart of an embodiment of a people counting method according to an exemplary embodiment of the present disclosure is provided, where the method may include the following steps based on the application scenario shown in fig. 1:
step 302: and acquiring the MAC address related information detected by the WiFi probe in a specified time period.
Based on the application scenario diagram illustrated in fig. 1, the WiFi probe 102 may detect MAC addresses of all devices present in the subway station 100, for example, when a user enters the subway station 100, if the user carries a mobile device, such as a smart phone, and a WiFi connection function of the mobile device is in an on state, the WiFi probe 102 may detect the MAC address of the mobile device, and at the same time, the WiFi probe may record a time when the MAC address is detected (for description, the time is referred to as a detection time).
In this embodiment, when the WiFi probe 102 detects a MAC address, the WiFi probe 102 may further obtain a signal strength of detecting the MAC address, and it can be understood by those skilled in the art that the signal strength is in a negative correlation with a detection distance, that is, the detection distance is larger, the signal strength is smaller, and in a real scene, after a user enters the subway station 100, the user will be in a walking state, that is, the distance between the user and the WiFi probe 102 is in a change state, so that the signal strength of the MAC address detected by the WiFi probe 102 will also be in the change state.
In the embodiments of the present specification, the MAC address, the probe time, and the signal strength may be collectively referred to as MAC address related information.
As can be seen from the above description, the WiFi probe 102 detects a piece of MAC address related information every time a user station-entering behavior occurs. In addition, as will be appreciated by those skilled in the art, the WiFi probe 102 may also detect MAC address related information of routers or other network-enabled devices present within the subway station 100.
In this embodiment, after the WiFi probe 102 detects the MAC address related information, the MAC address related information is uploaded to a cloud server (not shown in fig. 1), so that the cloud server can obtain the MAC address related information detected by the WiFi probe 102 in a specified time period, for example, 8 to 9 am.
Step 304: and acquiring code scanning related information acquired by each gate in a specified time period, wherein the code scanning related information is generated when a user passes through the gate in a code scanning mode.
Among the prior art, the user can use and sweep a yard mode and pass through the floodgate mouth, should sweep a yard mode and mean, the user is at the mobile device that it carried, for example install specific application on the smart mobile phone, for example pay precious APP, when passing through the floodgate mouth, the user then can show a two-dimensional code through this specific application to with this two-dimensional code aim at the yard screen of sweeping of floodgate mouth, wait to sweep a yard success back, the floodgate mouth is opened automatically promptly.
Based on the above description, when the user passes through the gate by using the code scanning method, a code scanning related message may be generated, and the code scanning related message at least may include: the code scanning time, the user ID and the gate port ID, wherein the user ID refers to the user ID registered by the user based on the specific application program, such as a Payment account number. Therefore, when the user uses the code scanning mode to pass through the behavior of the gate port every time, the gate port can acquire a piece of code scanning related information.
In this specification, each gate port may upload the collected code scanning related information to the cloud server, so that the cloud server may acquire the code scanning related information collected by each gate port in a specified time period, for example, 8 to 9 am.
It should be noted that, when counting the number of people in the target area, the counted number of people passing through the target area in a time period may be shorter, for example, only one hour, and the time period may be representative in a day range, for example, an early peak period in work, and in an actual scene, it usually does not occur that a user enters and leaves the station in a shorter time period, so in this embodiment of the present specification, the code scanning related information collected in the specified time period usually does not include both the code scanning related information generated when the user enters the station and the code scanning related information generated when the user leaves the station.
It should be noted that, although in an actual scene, a situation that a user enters and leaves a station within a short period of time does not generally occur, but the possibility of the situation occurring cannot be completely eliminated, in the embodiment of the present specification, it is considered that the situation is only a sporadic situation, so that, in the situation, the influence on the subsequent people count is negligible when the relevant code scanning information collected in a specified time period includes both the code scanning information generated when the user enters the station and the code scanning information generated when the user leaves the station.
Step 306: and determining the total number of people passing through the target area in a specified time period according to the MAC address related information and the code scanning related information.
In this step, the cloud server may determine the total number S of people detected by the WiFi probe within a specified time period based on the MAC address related information acquired in step 3021;
Based on the code scanning related information acquired in step 304, determining the total number S of people passing through any gate in a code scanning mode in a specified time period2;
Based on the MAC address related information acquired in the step 302 and the code scanning related information acquired in the step 304, determining that the total number S of people passing through any gate in a code scanning mode and detected by the WiFi probe in a specified time period is determined3;
For any gate, determining the number Q of people passing through the gate in a code scanning mode in a specified time period based on the code scanning related information acquired in step 304i;
For any gate port, according to the MAC address related information acquired in the step 302 and the code scanning related information acquired in the step 304, determining that the code scanning mode is used to pass through the gate port in a specified time period, and the code scanning related information is detected by the WiFi probe 102 and passes through the gate portThe number of persons who cross the target area Ri;
Wherein i is a natural number greater than 0 and not greater than N, and N is the number of gate openings, for example, the number of people passing through a gate opening numbered 1 by using a code scanning method can be recorded as Q1The number of people passing through the gate with the number of 2 in the code scanning mode is recorded as Q2The number of people passing through the gate with the number of 3 in the code scanning mode is recorded as Q3And so on, RiThe specific names of the components can be analogized, and the embodiments in the specification are not illustrated in a one-to-one way.
Finally, according to the above S1、S2、S3、QiAnd RiThe total number of persons S passing through the target area within a specified time period can be determined.
For each of the above S, as follows1、S2、S3、Qi、RiAnd the determination process of S is explained:
(1) for the above S1The determination process of (2) will be explained:
as can be known from the above description in step 302, the MAC address related information acquired in step 302 may include MAC address related information detected by the WiFi probe 102 when the user arrives at the station, and may also include MAC address related information of a router or other network-connectable devices existing in the subway station 100 and detected by the WiFi probe 102. Based on this, in this embodiment of the present specification, the MAC address related information detected when the user enters the station, that is, the MAC address related information corresponding to a natural person, may be first screened out from all the obtained MAC address related information.
Specifically, for any MAC address related information acquired in step 302, the pre-acquired user registration information is searched according to the MAC address included in the MAC address related information, where the user registration information may be acquired by the cloud server from a server corresponding to the specific application program and includes an association relationship between the user ID of the registered user and the MAC address commonly used by the registered user, and if the MAC address is found, it may be determined that the MAC address has an associated user ID, so that the MAC address may be considered to correspond to a natural person, that is, the MAC address related information corresponds to a natural person.
In one embodiment, every time a piece of MAC address related information corresponding to a natural person is confirmed, the MAC address related information can be preset to indicate the total number S of people detected by the WiFi probe 102 in a specified time period1Is processed by adding 1, as will be understood by those skilled in the art, this S1Is 0, then the total number of people S detected by the WiFi probe 102 within a specified time period can be found1。
In another embodiment, considering that in an actual scenario, there may be a situation where the same user enters and exits the subway station multiple times in a short time, and the user may be detected by the WiFi probe 102 once every time the user enters the subway station, that is, every time an arrival behavior occurs, in this specification, multiple arrival behaviors of the same user in a short time may be combined into one arrival behavior. It should be noted that, in an actual scenario, even though a user may arrive at a station many times in a short time, the user usually arrives at a station twice in a short time, and the probability of occurrence of the two or more arrival behaviors is extremely low.
In an alternative implementation manner, the screened MAC address related information corresponding to one natural person may be grouped based on MAC addresses, where any MAC address related information included in each group includes the same MAC address. Subsequently, the following processing is performed for any packet:
if the grouping only comprises one piece of MAC address related information, the fact that the user corresponding to the grouping has one-time station-entering behavior in a specified time period can be directly determined, and at the moment, the preset information can be used for indicating the total number S of people detected by the WiFi probe 102 in the specified time period1The value of (c) is processed by adding 1.
If the packet includes two pieces of MAC address related information, that is, the user corresponding to the packet actually has two inbound behaviors, at this time, it may be determined whether a time interval between the two inbound behaviors is smaller than a preset time threshold according to detection times included in the two pieces of MAC address related information, if so, the two inbound behaviors may be merged into one inbound behavior, and if not, the merging is not performed, so that the number of times that the user corresponding to the packet is detected within a specified time period may be obtained.
For example, assume that the specified time period is 8 am to 9 am, and a user is in sequence at 8:05 and 8: 25, two times of entering the subway station 100, where the time interval between the two times of entering is 20 minutes and is smaller than a preset time threshold (for example, 30 minutes), then it may be considered that the user is detected only once within the specified time period; for another example, if a user enters a subway station twice at 8:05 and 8:50, and the time interval between two entering is 45 minutes, which is greater than the preset time interval, then it may be considered that the user is detected twice within the specified time period.
Subsequently based on the number of times, the total number of people S1The value of (2) is processed by adding value.
Thus, through the above processing, the total number of people S detected by the WiFi probe 102 in a specified time period can be obtained1。
(2) For the above S2The determination process of (2) will be explained:
as can be seen from the above description in step 304, a piece of code scanning related information is generated when the user passes through the gates in the code scanning manner, so that, in this embodiment of the present specification, the number of pieces of code scanning related information acquired in step 304 may be determined as the total number S of people passing through any gate in the code scanning manner within a specified time period2。
(3) For the above S3The determination process of (2) will be explained:
in this embodiment, the following processing may be performed on any piece of code scanning related information to obtain the total number S of people that pass through any gate in a code scanning manner and are detected by the WiFi probe 102 in a specified time period3:
Searching the user notes according to the user ID included in the code scanning related informationRegistering information, if the user ID is found, acquiring a MAC address associated with the user ID, for convenience of description, referring the MAC address to a target MAC address, subsequently determining whether MAC address related information including the target MAC address exists in the acquired MAC address related information, for convenience of description, referring the MAC address related information including the target MAC address to target MAC address related information, subsequently further determining whether a start time of arrival, an end time of arrival (the definition of the start time of arrival and the end time of arrival is described below) of an arrival behavior corresponding to the target MAC address, and a code scanning time included in the code scanning related information satisfy a preset determination criterion, and if so, considering that the user identified by the user ID passes through any gateway port in a code scanning manner within a specified time period and is detected by the WiFi probe 102, at this time, the total number of people S that is preset to indicate that the people passes through any gate in a code scanning manner and is detected by the WiFi probe 102 within a specified time period3And adding 1.
In the above description, the preset judgment criteria may be:
the start time of the inbound action is-3 minutes < the code scanning time < the end time of the inbound action +3 minutes.
It should be noted that "3 minutes" in the above judgment standard is merely an example, and in practical applications, other values may be set, for example, 2 minutes and 4 minutes, and this is not limited in the examples of the present specification.
In this embodiment of the present specification, the inbound start time and the inbound end time of the inbound behavior corresponding to the target MAC address are defined as follows:
as can be seen from the above description, the WiFi probe 102 detects MAC address related information based on the inbound behavior of the user, and in combination with the processing procedure of combining two inbound behaviors of the user into one inbound behavior, one or two pieces of MAC address related information may correspond to the inbound behavior of the user, where, for an inbound behavior corresponding to only one piece of MAC address related information, both the start time and the end time of the inbound behavior may be defined as the detection time in the corresponding MAC address related information; for the inbound behavior corresponding to the two pieces of MAC address related information, the start time of the inbound behavior may be defined as the probe time in the first piece of MAC address related information corresponding to the inbound behavior, and the end time of the inbound behavior may be defined as the probe time in the second piece of MAC address related information corresponding to the inbound behavior.
(4) For the above QiThe determination process of (2) will be explained:
as can be seen from the above description in step 304, the code scanning related information includes the gate ID, and then, for any gate ID, the code scanning related information including the gate ID, and the number of pieces of code scanning related information including the gate ID can be determined, that is, the number Qi of people passing through the gate can be determined as a code scanning mode.
(5) For the above RiThe determination process of (2) will be explained:
first, as can be seen from the above description of step 302, the MAC address related information includes signal strength, and the stronger the signal strength, the closer the detection distance is, and the WiFi probe is disposed in or near the target area, so that the user passing through the target area can be determined according to the signal strength.
Based on this, in the above determination S3On the basis of the described process, if the station-entering starting time and the station-entering ending time of the station-entering behavior corresponding to the target MAC address related information are determined, and the code scanning time included in the code scanning related information meets the judgment standard, whether the signal intensity included in the target MAC address related information is greater than a preset signal intensity threshold value or not can be continuously determined, if so, the preset representation can pass through the gate by using a code scanning mode, is detected by the WiFi probe 102, and the number R of people passing through the target areaiAnd adding 1.
(6) The determination process of S described above is explained:
first, according to the above S1And S3Determining the proportion P of users passing through any gate port by using a code scanning mode1Wherein the P is1In particular to the number of people passing through any gate port by using a code scanning mode,the proportion of the total number of people passing through any gate port can be calculated by the following formula (I) based on statistics:
then, according to the above S2And S3Determining the detectivity P of the WiFi probe2Wherein the P is2The table specifically indicates that the number of people detected by the WiFi probe accounts for the proportion of the total number of people passing through any gate, and based on statistics, the number of people can be calculated by the following formula (two):
again, any gate port can be targeted according to P above2And RiDetermining the number of people T passing through the gate in a code scanning mode and passing through the target areaiBased on statistics, TiCan be calculated by the following formula (three):
wherein, the number of people passing through the target area is recorded as T by using a code scanning mode through a gate opening with the number of 11The number of people passing through the target area is recorded as T by using a code scanning mode through a gate with the number of 22And so on.
Thirdly, for any gate port, the T can be usediAnd QiDetermining the probability C of the user passing through the target area when passing through the gateiBased on statistics, CiCan be calculated by the following formula (iv):
wherein, when the user passes through the gate with the number of 1, the probability of passing through the target area is marked as C1When the user passes through the gate opening with the number of 2, the probability of passing through the target area is marked as C2And so on.
Thirdly, for any gate port, the above P can be used1And QiDetermining the number of people passing through the gate in a specified time period to be MiBased on statistics, MiCan be calculated by the following formula (five):
wherein the number of people passing through the gate with the number of 1 is recorded as M1The number of people passing through the gate with the number of 2 is recorded as M2And so on.
Finally, the C of any gate port can be determinediAnd MiDetermining the total number S of people passing through the target area in the specified time period, wherein S can be calculated by the following formula (six) based on statistics:
according to the technical scheme provided by the embodiment of the specification, the MAC address related information detected by the WiFi probe in the specified time period is acquired, the code scanning related information collected by each gate in the specified time period is acquired, the code scanning related information is generated when a user passes through the gates in a code scanning mode, and then the total number of people passing through the target area in the specified time period can be accurately determined according to the MAC address related information and the code scanning related information.
Corresponding to the above method embodiment, an embodiment of the present specification further provides a people counting apparatus, and referring to fig. 4, a block diagram of an embodiment of the people counting apparatus provided for an exemplary embodiment of the present specification, where the apparatus may include: a first acquisition module 41, a second acquisition module 42, and a headcount determination module 43.
The first obtaining module 41 is configured to obtain relevant information of the MAC address detected by the WiFi probe in a specified time period;
the second obtaining module 42 is configured to obtain code scanning related information collected by each gate in the specified time period, where the code scanning related information is generated when a user passes through the gate in a code scanning manner;
and a head count determining module 43, configured to determine the head count of the target area passing through the designated time period according to the MAC address related information and the code scanning related information.
In one embodiment, the MAC address related information at least includes: MAC address, probe time, and signal strength;
the code scanning related information at least comprises: code scanning time, user ID, gate ID.
In one embodiment, the headcount determination module 43 includes (not shown in FIG. 4):
a first determining submodule, configured to determine, according to the MAC address related information, a total number S of people detected by the WiFi probe within the specified time period1;
A second determining submodule, configured to determine, according to the MAC address related information and the code scanning related information, that the total number S of people who pass through any gate in a code scanning manner and are detected by the WiFi probe is within the specified time period3;
A third determining submodule, configured to determine, according to the code scanning related information, the number of people Q who pass through the gate in the code scanning manner in the specified time period for any gateiAnd determining the total number S of people passing through any gate opening by using a code scanning mode2Wherein i is a natural number which is greater than 0 and not greater than N, and N is the number of the gate ports;
a fourth determining submodule, configured to determine, for any one of the gatekeepers, according to the MAC address related information and the code scanning related information, that the number R of people who pass through the gatekeeper portal in the designated time period in a code scanning manner, are detected by the WiFi probe, and pass through the target areai;
A fifth determination submodule forAccording to the S1The S2The S3Said QiAnd said R isiDetermining a head count S that passes through the target area within the specified time period.
In an embodiment, the first determination submodule comprises (not shown in fig. 4):
aiming at any MAC address related information, processing the information as follows to obtain the total number S of people detected by the WiFi probe in the specified time period1:
The first searching submodule is used for searching the pre-acquired user registration information according to the MAC address included in the MAC address related information, wherein the user registration information includes the association relationship between the user ID of the registered user and the MAC address;
a first statistic submodule, configured to find the MAC address included in the MAC address related information, and detect a total number S of people detected by the WiFi probe1Adding 1; wherein, the S1Is 0;
the search submodule and the first statistic submodule are matched with each other to realize the processing aiming at any MAC address related information and obtain the total number S of people detected by the WiFi probe in the specified time period1。
In an embodiment, the second determination submodule comprises (not shown in fig. 4):
the second searching submodule is used for searching the pre-acquired user registration information according to the user ID included in the code scanning related information, wherein the user registration information comprises the association relationship between the user ID of the registered user and the MAC address;
the acquisition submodule is used for acquiring a target MAC address associated with the user ID if the user ID included in the code scanning related information is found;
a second statistic submodule, configured to determine whether target MAC address related information including the target MAC address exists in the obtained MAC address related information, and if so, continue to determine that an inbound behavior corresponding to the target MAC address related information is inbound onStarting time, arrival ending time and code scanning time contained in the code scanning related information meet preset judgment standards, if so, a code scanning mode is used to pass through any gate, and the total number of people S detected by the WiFi probe3Adding 1; wherein, the S3Is 0;
the second searching submodule, the acquiring submodule and the second counting submodule are matched with each other to realize the processing aiming at any code scanning related information, and the total number S of people detected by the WiFi probe through any gate in a code scanning mode in the specified time period3。
In an embodiment, the third determining sub-module is specifically configured to:
according to the gate port numbers included in the code scanning related information, determining the number Q of people passing through each gate port in a code scanning mode in the specified time periodi。
In an embodiment, the fourth determining sub-module is specifically configured to:
if the arrival starting time and the arrival ending time of the arrival behavior corresponding to the target MAC address related information and the code scanning time included in the code scanning related information meet the judgment standard, determining whether the signal intensity included in the target MAC address related information is greater than a preset signal intensity threshold value, if so, using a code scanning mode to pass through the gate, and the number of people R passing through the target area and detected by the WiFi probeiAdding 1;
wherein, R isiIs 0.
In an embodiment, said fifth determination submodule comprises (not shown in fig. 4):
a sixth determining submodule for determining according to the S1And said S3Determining the proportion P of users passing through any gate port by using a code scanning mode1;
A seventh determining submodule according to the S2And said S3Determining the detectivity P of the WiFi probe2;
An eighth determining submodule for determining whether any of the gate ports is operated according to the P2And said RiDetermining the number of people T who pass through the gate in a code scanning mode and pass through the target areai(ii) a According to T of the gate portiAnd QiDetermining the probability C of the user passing through the target area when passing through the gatei(ii) a According to said P1And Q of the gate portiDetermining the number M of people passing through the gate in the specified time periodi;
A ninth determination submodule according to C of any one of the gate portsiAnd MiAnd determining the total number S of people passing through the target area in the specified time period.
It should be understood that the first acquiring module 41, the second acquiring module 42, and the head count determining module 43 may be configured in the apparatus at the same time as shown in fig. 4 or separately as three independent modules, and therefore the structure shown in fig. 4 should not be construed as limiting the embodiment of the present specification.
In addition, the implementation process of the functions and actions of each module in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again. The present specification further provides a computer device, which at least includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the people counting method when executing the program. The method at least comprises the following steps: acquiring MAC address related information detected by a WiFi probe in a specified time period; acquiring code scanning related information acquired by each gate in the specified time period, wherein the code scanning related information is generated when a user passes through the gate in a code scanning mode; and determining the total number of people passing through the target area in the specified time period according to the MAC address related information and the code scanning related information.
Fig. 5 is a schematic diagram illustrating a more specific hardware structure of a computer device according to an embodiment of the present disclosure, where the device may include: a processor 510, a memory 520, an input/output interface 530, a communication interface 540, and a bus 550. Wherein processor 510, memory 520, input/output interface 530, and communication interface 540 are communicatively coupled to each other within the device via bus 550.
The processor 510 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present specification.
The Memory 520 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random access Memory), a static storage device, a dynamic storage device, or the like. The memory 520 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 520 and called to be executed by the processor 55.
The input/output interface 530 is used for connecting an input/output module to realize information input and output. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 540 is used for connecting a communication module (not shown in the figure) to realize communication interaction between the device and other devices. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 550 includes a pathway to transfer information between various components of the device, such as processor 510, memory 520, input/output interface 530, and communication interface 540.
It should be noted that although the above-mentioned device only shows the processor 510, the memory 520, the input/output interface 530, the communication interface 540 and the bus 550, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
Embodiments of the present specification further provide a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the people counting method described above. The method at least comprises the following steps: acquiring MAC address related information detected by a WiFi probe in a specified time period; acquiring code scanning related information acquired by each gate in the specified time period, wherein the code scanning related information is generated when a user passes through the gate in a code scanning mode; and determining the total number of people passing through the target area in the specified time period according to the MAC address related information and the code scanning related information.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
From the above description of the embodiments, it is clear to those skilled in the art that the embodiments of the present disclosure can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the embodiments of the present specification may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments of the present specification.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the method embodiment for relevant points. The above-described apparatus embodiments are merely illustrative, and the modules described as separate components may or may not be physically separate, and the functions of the modules may be implemented in one or more software and/or hardware when implementing the embodiments of the present disclosure. And part or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The foregoing is only a specific embodiment of the embodiments of the present disclosure, and it should be noted that, for those skilled in the art, a plurality of modifications and decorations can be made without departing from the principle of the embodiments of the present disclosure, and these modifications and decorations should also be regarded as the protection scope of the embodiments of the present disclosure.