CN110012495A - People counting method and device and computer equipment - Google Patents

People counting method and device and computer equipment Download PDF

Info

Publication number
CN110012495A
CN110012495A CN201811332854.4A CN201811332854A CN110012495A CN 110012495 A CN110012495 A CN 110012495A CN 201811332854 A CN201811332854 A CN 201811332854A CN 110012495 A CN110012495 A CN 110012495A
Authority
CN
China
Prior art keywords
mac address
relevant information
barcode scanning
gate mouth
gate
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.)
Granted
Application number
CN201811332854.4A
Other languages
Chinese (zh)
Other versions
CN110012495B (en
Inventor
蔡鸿博
傅春霖
姜世琦
曾晓东
林锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202010489702.6A priority Critical patent/CN111654880B/en
Priority to CN201811332854.4A priority patent/CN110012495B/en
Publication of CN110012495A publication Critical patent/CN110012495A/en
Priority to TW108129106A priority patent/TWI724497B/en
Priority to PCT/CN2019/110018 priority patent/WO2020093831A1/en
Application granted granted Critical
Publication of CN110012495B publication Critical patent/CN110012495B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06MCOUNTING MECHANISMS; COUNTING OF OBJECTS NOT OTHERWISE PROVIDED FOR
    • G06M1/00Design features of general application
    • G06M1/27Design features of general application for representing the result of count in the form of electric signals, e.g. by sensing markings on the counter drum
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/20Individual registration on entry or exit involving the use of a pass

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Time Recorders, Dirve Recorders, Access Control (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The method is used for counting the total number of people passing through a target area in a specified time period, 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 enter and exit the specified place in a code scanning mode; the method 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.

Description

一种人数统计方法、装置、及计算机设备A people counting method, device, and computer equipment

技术领域technical field

本说明书实施例涉及数据处理技术领域,尤其涉及一种人数统计方法、装置、及计算机设备。The embodiments of this specification relate to the technical field of data processing, and in particular, to a people counting method, apparatus, and computer equipment.

背景技术Background technique

目前,人数统计服务在多种环境和应用场景下均具有较高的应用价值,例如,在线下商业场景中,对于地铁站、游乐场等大型公共场合,统计不同区域的人流量,可以协助商家合理安排广告投放位置或者商品摆放位置。At present, people counting services have high application value in various environments and application scenarios. For example, in offline business scenarios, for large public places such as subway stations and playgrounds, counting the flow of people in different areas can help businesses. Reasonably arrange the placement of advertisements or the placement of products.

现有技术中,存在两种人数统计方式:其一,在固定区域布设WiFi探针,通过WiFi探针可获取出现在该固定区域内的设备的MAC地址,继而,将探测到的MAC地址数量乘以一个还原系数作为该固定区域内的人数统计结果;其二:在固定区域布设摄像设备,通过摄像设备可以采集该固定区域的视频图像,继而,通过深度学习算法对视频图像进行分析,则得到该固定区域内的人数统计结果。In the prior art, there are two ways of counting people: first, a WiFi probe is arranged in a fixed area, and the MAC address of the device appearing in the fixed area can be obtained through the WiFi probe, and then the number of detected MAC addresses is calculated. Multiply by a reduction coefficient as the result of the number of people in the fixed area; secondly: deploy a camera device in the fixed area, and the video image of the fixed area can be collected by the camera device, and then, the video image is analyzed by a deep learning algorithm, then Get the number of people in the fixed area.

然而,在上述方式一中,随着科技的发展,一个MAC地址未必对应一台移动设备(例如手机),也可能对应一台路由器或其他可联网设备,也即一个MAC地址未必对应一个自然人,并且,还原系数也是通过人工经验估算得出,由此可见,利用上述方式一进行人数统计误差较大;在上述方式二中,摄像设备的硬件成本较高,该方式对硬件计算能力的要求也较高,且摄像本身涉及到隐私问题,从而,利用上述方式二进行人数统计的成本较大,通用性不高。However, in the above method 1, with the development of technology, a MAC address may not necessarily correspond to a mobile device (such as a mobile phone), but may also correspond to a router or other networkable device, that is, a MAC address may not correspond to a natural person. In addition, the reduction coefficient is also estimated by manual experience. It can be seen that the above-mentioned method 1 has a large error in people counting; in the above-mentioned method 2, the hardware cost of the camera equipment is relatively high, and this method also requires hardware computing power. It is relatively high, and the camera itself involves privacy issues. Therefore, using the above-mentioned method 2 to count people costs relatively high, and the versatility is not high.

发明内容SUMMARY OF THE INVENTION

针对上述技术问题,本说明书实施例提供一种人数统计方法、装置、及计算机设备,技术方案如下:In view of the above technical problems, the embodiments of this specification provide a people counting method, device, and computer equipment, and the technical solutions are as follows:

根据本说明书实施例的第一方面,提供一种人数统计方法,用于统计指定时间段内经过目标区域的总人数,所述目标区域位于指定场所内,所述指定场所内布设有WiFi探针和多个闸机口,所述WiFi探针用于探测所述指定场所内设备的MAC地址相关信息,所述闸机口用于供用户使用扫码方式通过所述闸机口;所述方法包括:According to a first aspect of the embodiments of the present specification, a method for counting people is provided, which is used to count the total number of people passing through a target area within a specified time period, where the target area is located in a designated place, and WiFi probes are arranged in the designated place and a plurality of gate ports, the WiFi probe is used to detect the MAC address-related information of the equipment in the designated place, and the gate port is used for users to pass through the gate port by scanning a code; the method include:

获取所述WiFi探针在指定时间段内探测到的MAC地址相关信息;Acquire information about the MAC address detected by the WiFi probe within a specified time period;

获取各个闸机口在所述指定时间段内采集到的扫码相关信息,所述扫码相关信息为用户使用扫码方式通过闸机口时产生的;Acquire the relevant information of scanning code collected by each gate within the specified time period, and the relevant information of scanning code is generated when the user passes through the gate by scanning the code;

根据所述MAC地址相关信息和所述扫码相关信息,确定在所述指定时间段内经过所述目标区域的总人数。Determine the total number of people passing through the target area within the specified time period according to the MAC address related information and the code scanning related information.

根据本说明书实施例的第二方面,提供一种人数统计装置,用于统计指定时间段内经过目标区域的总人数,所述目标区域位于指定场所内,所述指定场所内布设有WiFi探针和多个闸机口,所述WiFi探针用于探测所述指定场所内设备的MAC地址相关信息,所述闸机口用于供用户使用扫码方式通过所述闸机口;所述装置包括:According to a second aspect of the embodiments of the present specification, there is provided a people counting device for counting the total number of people passing through a target area within a specified time period, where the target area is located in a designated place, and WiFi probes are arranged in the designated place and a plurality of gate ports, the WiFi probe is used to detect the MAC address-related information of the equipment in the designated place, and the gate port is used for users to pass through the gate port by scanning a code; the device include:

第一获取模块,用于获取所述WiFi探针在指定时间段内探测到的MAC地址相关信息;a first acquisition module, configured to acquire the MAC address-related information detected by the WiFi probe within a specified time period;

第二获取模块,用于获取各个闸机口在所述指定时间段内采集到的扫码相关信息,所述扫码相关信息为用户使用扫码方式通过闸机口时产生的;The second acquisition module is used to acquire the relevant information of scanning code collected by each gate within the specified time period, and the relevant information of scanning code is generated when the user passes through the gate by scanning the code;

总人数确定模块,根据所述MAC地址相关信息和所述扫码相关信息,确定在所述指定时间段内经过所述目标区域的总人数。The total number of people determination module determines the total number of people passing through the target area within 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 including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the present invention when the processor executes the program. The people counting method provided in the embodiment of the description.

本说明书实施例所提供的技术方案,通过获取WiFi探针在指定时间段内探测到的MAC地址相关信息,并获取各个闸机口在指定时间段内采集到的扫码相关信息,该扫码相关信息为用户使用扫码方式通过闸机口时产生的,后续根据MAC地址相关信息和扫码相关信息,可以较为准确地确定在指定时间段内经过目标区域的总人数。The technical solution provided by the embodiments of this specification is to obtain the relevant information of the MAC address detected by the WiFi probe within the specified time period, and obtain the scanning code related information collected by each gate within the specified time period. The relevant information is generated when the user passes through the gate by scanning the code, and the total number of people who pass through the target area within the specified time period can be more accurately determined according to the information related to the MAC address and the relevant information of scanning the code.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本说明书实施例。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not limiting of the embodiments of the present specification.

此外,本说明书实施例中的任一实施例并不需要达到上述的全部效果。In addition, any one of the embodiments of the present specification does not need to achieve all the above effects.

附图说明Description of drawings

为了更清楚地说明本说明书实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书实施例中记载的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present specification or the prior art, the following briefly introduces the accompanying drawings required in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some of the embodiments described in the embodiments of the present specification. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings.

图1为本说明书一示例性实施例提供的一种应用本说明书提供的人数统计方法的应用场景示意图;FIG. 1 is a schematic diagram of an application scenario provided by an exemplary embodiment of this specification for applying the people counting method provided in this specification;

图2为目标区域的一种示例;Fig. 2 is an example of the target area;

图3为本说明书一示例性实施例提供的一种人数统计方法的实施例流程图;FIG. 3 is a flowchart of an embodiment of a people counting method provided by an exemplary embodiment of the present specification;

图4为本说明书一示例性实施例提供的一种人数统计装置的实施例框图;FIG. 4 is a block diagram of an embodiment of a people counting apparatus provided by an exemplary embodiment of the present specification;

图5示出了本说明书实施例所提供的一种更为具体的计算机设备硬件结构示意图。FIG. 5 shows a more specific schematic diagram of the hardware structure of a computer device provided by an embodiment of the present specification.

具体实施方式Detailed ways

为了使本领域技术人员更好地理解本说明书实施例中的技术方案,下面将结合本说明书实施例中的附图,对本说明书实施例中的技术方案进行详细地描述,显然,所描述的实施例仅仅是本说明书的一部分实施例,而不是全部的实施例。基于本说明书中的实施例,本领域普通技术人员所获得的所有其他实施例,都应当属于保护的范围。In order for those skilled in the art to 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 accompanying drawings in the embodiments of the present specification. Obviously, the described implementation Examples are only some of the embodiments of the present specification, but not all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in this specification should fall within the scope of protection.

请参见图1,为本说明书一示例性实施例提供的一种应用本说明书提供的人数统计方法的应用场景示意图。Please refer to FIG. 1 , which is a schematic diagram of an application scenario provided by an exemplary embodiment of this specification for applying the people counting method provided in this specification.

如图1所示,以地铁站100为例,该地铁站100内可设有多个闸机口,例如,设有闸机口1至闸机口25,在本说明书实施例中,地铁站100内还设有广告投放屏101、WiFi探针102。其中,WiFi探针102的探测范围可以包括整个地铁站100,也即通过WiFi探针102,可以探测到出现在地铁站100内所有设备的MAC地址。As shown in FIG. 1 , taking a subway station 100 as an example, the subway station 100 may be provided with multiple gates, for example, gates 1 to 25 . In the embodiment of this specification, the subway station An advertisement placement screen 101 and a WiFi probe 102 are also arranged in the 100 . The detection range of the WiFi probe 102 may include the entire subway station 100 , that is, through the WiFi probe 102 , the MAC addresses of all devices present in the subway station 100 may be detected.

在图1所示例的应用场景中,可以基于广告投放屏101所在位置设置一个目标区域(图1中未示出),例如,如图2所示,为目标区域的一种示例,该目标区域为半径8m的半圆形区域,应用本说明书提供的人数统计方法,可以统计得到在指定时间段内,经过该目标区域的总人数,从而可以协助商家了解广告投放屏101所在位置是否合理。In the application scenario illustrated in FIG. 1 , a target area (not shown in FIG. 1 ) may be set based on the location of the advertisement placement screen 101 . For example, as shown in FIG. 2 , which is an example of the target area, the target area It is a semicircular area with a radius of 8m. By applying the people counting method provided in this manual, the total number of people passing through the target area within a specified time period can be counted, so as to help the merchant to understand whether the location of the advertisement placement screen 101 is reasonable.

需要说明的是,本说明书实施例旨在统计指定时间段内经过目标区域的总人数,则可以将WiFi探针102布设在目标区域内,或者目标区域附近。It should be noted that the embodiment of this specification aims to count the total number of people passing through the target area within a specified time period, and the WiFi probe 102 may be arranged in or near the target area.

如下,基于图1所示例的应用场景,示出下述实施例对该人数统计方法进行详细说明。As follows, based on the application scenario illustrated in FIG. 1 , the following embodiments are shown to describe the people counting method in detail.

请参见图3,为本说明书一示例性实施例提供的一种人数统计方法的实施例流程图,该方法在上述图1所示应用场景的基础上,可以包括以下步骤:Please refer to FIG. 3 , which is a flowchart of an embodiment of a people counting method provided by an exemplary embodiment of this specification. Based on the application scenario shown in FIG. 1 above, the method may include the following steps:

步骤302:获取WiFi探针在指定时间段内探测到的MAC地址相关信息。Step 302: Acquire information related to MAC addresses detected by the WiFi probe within a specified time period.

基于图1所示例的应用场景示意图,WiFi探针102可以探测到出现在地铁站100内所有设备的MAC地址,例如,当用户进入地铁站100时,若该用户携带有移动设备,例如智能手机,且该移动设备的WiFi连接功能处于开启状态,那么WiFi探针102即可以探测到该移动设备的MAC地址,同时,WiFi探针还可以记录下探测到该MAC地址的时间(为了描述描述,将该时间称为探测时间)。Based on the schematic diagram of the application scenario illustrated in FIG. 1 , the WiFi probe 102 can detect the 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 smartphone , and the WiFi connection function of the mobile device is on, then the WiFi probe 102 can detect the MAC address of the mobile device, and at the same time, the WiFi probe can also record the time when the MAC address was detected (for description, This time is referred to as the detection time).

在本说明书实施例中,WiFi探针102在探测到MAC地址时,还可以获取探测到该MAC地址的信号强度,本领域技术人员可以理解的是,信号强度与探测距离呈负相关关系,即探测距离越大,信号强度越小,而真实场景中,用户进入地铁站100之后,将处于行走状态,也即用户与WiFi探针102之间的距离处于变化状态,从而WiFi探针102所探测到的该MAC地址的信号强度也将处于变化状态,基于此,在本说明书实施例中,可以令WiFi探针102仅记录下探测到的最大信号强度。In the embodiment of this specification, when the WiFi probe 102 detects a MAC address, it can also obtain the signal strength of the detected MAC address. Those skilled in the art can understand that the signal strength is negatively correlated with the detection distance, that is, The longer the detection distance is, the smaller the signal strength is. In the real scene, after the user enters the subway station 100, he will be in a walking state, that is, the distance between the user and the WiFi probe 102 is in a state of change, so that the detection by the WiFi probe 102 is in a state of change. The obtained signal strength of the MAC address will also be in a state of change. Based on this, in the embodiment of the present specification, the WiFi probe 102 may only record the detected maximum signal strength.

在本说明书实施例中,可以将MAC地址、探测时间、信号强度统称为MAC地址相关信息。In the embodiments of this specification, the MAC address, detection time, and signal strength may be collectively referred to as MAC address related information.

由上述描述可知,每发生一次用户进站行为,WiFi探针102即探测到一条MAC地址相关信息。除此之外,本领域技术人员可以理解的是,WiFi探针102还可以探测到地铁站100内存在的路由器或其他可联网设备的MAC地址相关信息。It can be seen from the above description that each time a user enters the station, the WiFi probe 102 detects a piece of MAC address related information. Besides, those skilled in the art can understand that the WiFi probe 102 can also detect information related to MAC addresses of routers or other networkable devices existing in the subway station 100 .

在本说明书实施例中,WiFi探针102探测到MAC地址相关信息后,将该MAC地址相关信息上传至云端服务器(图1中未示出),从而,云端服务器可以获取到WiFi探针102在指定时间段,例如上午8点至9点内探测到的MAC地址相关信息。In the embodiment of this specification, after the WiFi probe 102 detects the information related to the MAC address, the information related to the MAC address is uploaded to the cloud server (not shown in FIG. 1 ), so that the cloud server can obtain that the WiFi probe 102 is in the cloud server. Specify the time period, such as MAC address related information detected between 8 am and 9 am.

步骤304:获取各个闸机口在指定时间段内采集到的扫码相关信息,该扫码相关信息为用户使用扫码方式通过闸机口时产生的。Step 304: Acquire relevant information about scanning codes collected by each gate within a specified time period, where the relevant information about scanning codes is generated when the user passes through the gates in a scanning manner.

现有技术中,用户可以使用扫码方式通过闸机口,该扫码方式是指,用户在其携带的移动设备,例如智能手机上安装特定应用程序,例如支付宝APP,在通过闸机口时,用户则可以通过该特定应用程序出示一个二维码,并将该二维码对准闸机口的扫码屏,待扫码成功后,闸机口即自动开启。In the prior art, the user can pass the gate by scanning the code, which means that the user installs a specific application, such as the Alipay APP, on the mobile device carried by the user, such as a smartphone, when passing through the gate. , the user can present a two-dimensional code through the specific application, and aim the two-dimensional code at the scanning screen of the gate. After the code is scanned successfully, the gate will automatically open.

基于上述描述,用户使用扫码方式通过闸机口时,则可以产生一个扫码相关信息,该扫码相关信息至少可以包括:扫码时间、用户ID、闸机口ID,其中,用户ID是指用户基于上述特定应用程序所注册的用户ID,例如支付宝账号。由此可见,每发生一次用户使用扫码方式通过闸机口的行为,闸机口则可以采集到一条扫码相关信息。Based on the above description, when the user passes through the gate by scanning the code, a code-scanning related information may be generated, and the scanning-related information may at least include: scanning time, user ID, and gate ID, where the user ID is Refers to the user ID registered by the user based on the above-mentioned specific application, such as Alipay account. It can be seen that every time a user passes through the gate by scanning the code, the gate can collect a piece of code-scanning related information.

在本说明书实施例中,各个闸机口可以将采集到的扫码相关信息上传至云端服务器,从而,云端服务器可以获取到各个闸机口在指定时间段,例如上午8点至9点内采集到的扫码相关信息。In the embodiment of this specification, each gate can upload the collected information related to scanning the code to the cloud server, so that the cloud server can obtain the information collected by each gate during a specified time period, for example, from 8:00 to 9:00 in the morning. Scan code related information.

在此说明,在针对目标区域进行人数统计时,统计的通常是一个时间段内经过目标区域的人数,该时间段可以较短,例如仅一小时,其在一天范围内具有某种意义上的代表性即可,例如上班早高峰时段,并且,在实际场景中,通常不会出现用户在较短的时间段内进站并出站,从而,在本说明书实施例中,上述指定时间段内采集到的扫码相关信息中通常不会既包括用户进站时产生的扫码相关信息,又包括该用户出站时产生的扫码相关信息。It is explained here that when people are counted for the target area, the number of people passing through the target area is usually counted in a period of time, and the period of time can be short, such as only one hour, which has a certain meaning within a day. It is only representative, for example, during the morning rush hour for work, and, in actual scenarios, it usually does not appear that users enter and exit the station within a short period of time. Therefore, in the embodiment of the present specification, within the above specified period of time The collected scan code related information usually does not include both code scan related information generated when the user enters the station, and code scan related information generated when the user exits the station.

还需要说明的是,尽管在实际场景中,通常不会出现用户在较短时间段内进站并出站的情形,但也无法完全排除该情形发生的可能性,但是,在本说明书实施例中,考虑到该情形仅为偶发情形,从而对在该情形时,指定时间段内采集到的扫码相关信息中既包括用户进站时产生的扫码相关信息,又包括该用户出站时产生的扫码相关信息,对后续人数统计的影响忽略不计。It should also be noted that, although in actual scenarios, it usually does not occur that users enter and exit the station within a short period of time, the possibility of such a situation cannot be completely ruled out. However, in the embodiments of this specification In this case, considering that this situation is only an occasional situation, in this situation, the relevant information of scanning code collected during the specified time period includes not only the relevant information of scanning code generated when the user enters the station, but also the relevant information of scanning code generated when the user exits the station. The generated code scanning related information has a negligible impact on subsequent population statistics.

步骤306:根据MAC地址相关信息和扫码相关信息,确定在指定时间段内经过目标区域的总人数。Step 306: Determine the total number of people passing through the target area within the specified time period according to the MAC address related information and the scanning code related information.

在本步骤中,云端服务器可以基于步骤302中获取到的MAC地址相关信息,确定在指定时间段内,被WiFi探针探测到的总人数S1In this step, the cloud server may determine the total number of people S 1 detected by the WiFi probe within the specified time period based on the MAC address-related information obtained in step 302;

基于步骤304中获取到的扫码相关信息,确定在指定时间段内,使用扫码方式通过任一闸机口的总人数S2Based on the scan code related information obtained in step 304, determine the total number of people S 2 who pass through any gate in a code scan mode within a specified time period;

基于步骤302中获取到的MAC地址相关信息,和步骤304中获取到的扫码相关信息,共同确定出在指定时间段内,使用扫码方式通过任一闸机口,且被WiFi探针探测到的总人数S3Based on the MAC address-related information obtained in step 302 and the scanning code-related information obtained in step 304, it is jointly determined that the scanning method is used to pass through any gate within the specified time period, and is detected by the WiFi probe. The total number of people arriving S 3 ;

针对任一闸机口,基于步骤304中获取到的扫码相关信息,确定在指定时间段内,使用扫码方式通过该闸机口的人数QiFor any gate, based on the scan code-related information obtained in step 304, determine within a specified time period, the number of people Qi passing through the gate using the code-scanning method;

针对任一闸机口,根据步骤302中获取到的MAC地址相关信息,和步骤304中获取到的扫码相关信息,确定在指定时间段内,使用扫码方式通过该闸机口,且被WiFi探针102探测到,且经过目标区域的人数RiFor any gate, according to the MAC address-related information obtained in step 302 and the scan code-related information obtained in step 304, it is determined that within the specified time period, the code-scanning method is used to pass through the gate, and is The number of people R i detected by the WiFi probe 102 and passing through the target area;

其中,i为大于0且不超过N的自然数,N为闸机口的数量,例如,可以将使用扫码方式通过编号为1的闸机口的人数记为Q1,将使用扫码方式通过编号为2的闸机口的人数记为Q2,将使用扫码方式通过编号为3的闸机口的人数记为Q3,依此类推,Ri的具体命名也可依此类推,本说明书实施例不再一一举例。Among them, i is a natural number greater than 0 and no more than N, and N is the number of gates. For example, the number of people who pass the gate number 1 by scanning the code can be recorded as Q 1 , and the number of people who pass the gate by scanning the code can be recorded as Q 1 . The number of people at the gate number 2 is recorded as Q 2 , and the number of people who pass through the gate number 3 by scanning the code is recorded as Q 3 , and so on. The specific naming of R i can also be deduced by analogy. The embodiments in the description are not exemplified one by one.

最后,根据上述S1、S2、S3、Qi,以及Ri,可以确定出在指定时间段内,经过目标区域的总人数S。Finally, according to the above S 1 , S 2 , S 3 , Qi , and R i , the total number of people S passing through the target area within the specified time period can be determined.

如下,分别对上述S1、S2、S3、Qi、Ri,以及S的确定过程进行说明:As follows, the above-mentioned determination process of S 1 , S 2 , S 3 , Q i , R i , and S will be described respectively:

(1)对上述S1的确定过程进行说明:( 1 ) Describe the determination process of the above S1:

由上述步骤302中的相关描述可知,步骤302中获取到的MAC地址相关信息既可以包括WiFi探针102在用户进站时,探测到的MAC地址相关信息,又可以包括WiFi探针102探测到的地铁站100内存在的路由器或其他可联网设备的MAC地址相关信息。基于此,在本说明书实施例中,可以首先从获取到的所有MAC地址相关信息中,筛选出用户进站时,探测到的MAC地址相关信息,也即对应一个自然人的MAC地址相关信息。As can be seen from the relevant description in the above step 302, the MAC address related information obtained in step 302 may include both the MAC address related information detected by the WiFi probe 102 when the user enters the station, and the information detected by the WiFi probe 102. MAC address related information of routers or other networkable devices existing in the subway station 100 . Based on this, in the embodiment of this 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, can be firstly screened out from all the acquired MAC address-related information.

具体的,针对步骤302中所获取到的任一MAC地址相关信息,根据其包括的MAC地址查找预先获取的用户注册信息,该用户注册信息可以是云端服务器从上述特定应用程序对应的服务器上获取的,其包括已注册用户的用户ID和该已注册用户常用MAC地址的关联关系,若查找到该MAC地址,则可以确定该MAC地址具有相关联的用户ID,从而,则可以认为该MAC地址对应一个自然人,也即该MAC地址相关信息对应一个自然人。Specifically, for any MAC address-related information obtained in step 302, search for pre-acquired user registration information according to the MAC address included in the information. The user registration information may be obtained by the cloud server from the server corresponding to the above-mentioned specific application. It includes the association between the user ID of the registered user and the commonly used MAC address of the registered user. If the MAC address is found, it can be determined that the MAC address has an associated user ID, so it can be considered that the MAC address Corresponding to a natural person, that is, the MAC address related information corresponds to a natural person.

在一实施例中,每确认一条对应一个自然人的MAC地址相关信息,则可以将预先设置的用于表示在指定时间段内,被WiFi探针102探测到的总人数S1的值做加1处理,本领域技术人员可以理解的是,该S1的初始值为0,由此,则可以得到在指定时间段内,被WiFi探针102探测到的总人数S1In one embodiment, each time a piece of MAC address-related information corresponding to a natural person is confirmed, a preset value representing the total number of people S1 detected by the WiFi probe 102 within a specified time period may be added by 1 . For processing, those skilled in the art can understand that the initial value of S 1 is 0, and thus, the total number of people S 1 detected by the WiFi probe 102 within a specified time period can be obtained.

在另一实施例中,考虑到在实际场景中,有可能出现同一用户在短时间内多次进出地铁站的情形,而用户每进入一次地铁站,也即每发生一次进站行为,WiFi探针102则可以探测到一次该用户,针对该情形,在本说明书实施例中,可以将同一用户在短时间内的多次进站行为合并为一次进站行为。在此先说明,在实际场景中,即使会出现用户在短时间内多次进站的情形,但通常也是在短时间内两次进站,两次以上进站行为的情形发生概率极低,从而,在本说明书实施例中,以用户在短时间内最多发生两次进站行为为例进行说明。In another embodiment, considering that in an actual scenario, it is possible for the same user to enter and exit a subway station multiple times in a short period of time, and each time a user enters a subway station, that is, every time an entering behavior occurs, the WiFi detection The needle 102 can detect the user once, and for this situation, in the embodiment of the present specification, multiple inbound behaviors of the same user in a short period of time can be combined into one inbound behavior. Let me first explain that in the actual scenario, even if the user enters the station multiple times in a short period of time, it is usually two times in a short period of time. Therefore, in the embodiments of the present specification, the user enters the station at most twice in a short period of time as an example for description.

在一可选的实现方式中,可以基于MAC地址将上述筛选出的对应一个自然人的MAC地址相关信息进行分组,其中,每一分组包括的任一MAC地址相关信息包括相同的MAC地址。后续,针对任一分组进行如下处理:In an optional implementation manner, the MAC address related information corresponding to a natural person selected above may be grouped based on the MAC address, wherein any MAC address related information included in each group includes the same MAC address. Subsequently, the following processing is performed for any group:

若分组中仅包括一条MAC地址相关信息,则可直接确定该分组所对应的用户在指定时间段内具有一次进站行为,此时,可以将预先设置的用于表示在指定时间段内,被WiFi探针102探测到的总人数S1的值做加1处理。If only one piece of MAC address-related information is included in the group, it can be directly determined that the user corresponding to the group has an inbound behavior within the specified time period. The value of the total number of people S1 detected by the WiFi probe 102 is incremented by 1 .

若分组中包括两条MAC地址相关信息,也即该分组对应的用户实际上有两次进站行为,此时,则可以根据该两条MAC地址相关信息各自包括的探测时间,确定该两次进站行为的时间间隔是否小于预设的时间阈值,若是,则可将该两次进站行为合并为一次进站行为,若否,则不进行合并,由此,则可以得到在指定时间段内,探测到该分组对应的用户的次数。If the group includes two pieces of MAC address related information, that is, the user corresponding to the group actually has entered the station twice, at this time, the two times can be determined according to the detection time included in the two pieces of MAC address related information. Whether the time interval of the inbound behavior is less than the preset time threshold, if so, the two inbound behaviors can be combined into one inbound behavior; if not, the combination is not performed. Within, the number of times the user corresponding to the group is detected.

举例来说,假设指定时间段为早上8点至9点,而某一用户先后在8:05和8:25两次进入地铁站100,该两次进站的时间间隔为20分钟,小于预设的时间阈值(例如为30分钟),那么,则可以认为在该指定时间段内,仅探测到一次该用户;再举例来说,假设某一用户先后在8:05和8:50两次进入地铁站,该两次进站的时间间隔为45分钟,大于预设的时间间隔,那么,则可以认为在该指定时间段内,探测到两次该用户。For example, suppose the specified time period is from 8:00 to 9:00 in the morning, and a user enters the subway station 100 twice at 8:05 and 8:25. The time interval between the two entrances is 20 minutes, which is less than the expected time. The set time threshold (for example, 30 minutes), then it can be considered that the user is detected only once in the specified time period; for another example, suppose a user has two times at 8:05 and 8:50. When entering a subway station, the time interval between the two entering the station is 45 minutes, which is greater than the preset time interval. Then, it can be considered that the user has been detected twice within the specified time period.

后续基于该次数,对上述总人数S1的值做加值处理。Subsequently, based on the number of times, the value of the above-mentioned total number of people S 1 is added.

由此可见,通过上述处理,即可得到在指定时间段内,被WiFi探针102探测到的总人数S1It can be seen that, through the above processing, the total number of people S 1 detected by the WiFi probe 102 within a specified time period can be obtained.

(2)对上述S2的确定过程进行说明:( 2 ) Describe the determination process of the above S2:

由上述步骤304中的描述可知,用户使用扫码方式通过闸机口时即产生一条扫码相关信息,从而,在本说明书实施例中,可以将步骤304中获取到的扫码相关信息的条数确定为在指定时间段内,使用扫码方式通过任一闸机口的总人数S2It can be seen from the description in the above step 304 that a piece of code-scanning related information is generated when the user passes through the gate by scanning the code. Therefore, in the embodiment of this specification, the code-scanning-related information obtained in step 304 can be converted into a piece of information. The number is determined as the total number of people S 2 who pass through any gate by scanning the code within the specified time period.

(3)对上述S3的确定过程进行说明:( 3 ) Describe the determination process of the above S3:

在本说明书实施例中,可以针对任一条扫码相关信息进行如下处理,得到在指定时间段内,使用扫码方式通过任一闸机口,且被WiFi探针102探测到的总人数S3In the embodiment of this specification, the following processing can be performed for any piece of code-scanning related information to obtain the total number of people S 3 who pass through any gate using the code-scanning method and are detected by the WiFi probe 102 within a specified time period. :

根据该扫码相关信息中包括的用户ID,查找上述用户注册信息,若查找到该用户ID,则获取与该用户ID关联的MAC地址,为了描述方便,将该MAC地址称为目标MAC地址,后续,在获取到的MAC地址相关信息中,确定是否存在包括该目标MAC地址的MAC地址相关信息,为了描述方便,将包括该目标MAC地址的MAC地址相关信息称为目标MAC地址相关信息,后续,进一步判断目标MAC地址所对应的进站行为的进站开始时间、进站结束时间(进站开始时间、进站结束时间的定义请参见下述描述),与扫码相关信息中包括的扫码时间是否满足预设的判断标准,若满足,则可以认为该用户ID所标识的用户在指定时间段内,使用扫码方式通过任一闸机口,且被WiFi探针102探测到,此时,则可以将预先设置的用于表示在指定时间段内,使用扫码方式通过任一闸机口,且被WiFi探针102探测到的总人数S3加1。According to the user ID included in the scan code related information, the above-mentioned user registration information is searched. If the user ID is found, the MAC address associated with the user ID is obtained. For the convenience of description, the MAC address is called the target MAC address. Subsequently, in the acquired MAC address-related information, it is determined whether there is MAC address-related information including the target MAC address. For the convenience of description, the MAC address-related information including the target MAC address is referred to as target MAC address-related information. , and further determine the inbound start time and inbound end time of the inbound behavior corresponding to the target MAC address (for the definitions of the inbound start time and the inbound end time, please refer to the following description), and the scan code included in the scan code related information Whether the code time meets the preset judgment criteria, if so, it can be considered that the user identified by the user ID passed through any gate by scanning the code within the specified time period, and was detected by the WiFi probe 102. When , the preset value can be used to indicate that the total number of people S3 detected by the WiFi probe 102 is increased by 1 within a specified period of time, using the code scanning method to pass through any gate.

在上述描述中,预设的判断标准可以为:In the above description, the preset judgment criteria can be:

进站行为开始时间-3分钟<扫码时间<进站行为结束时间+3分钟。Start time of pit-stop behavior - 3 minutes < scan code time < end time of pit-stop behavior + 3 minutes.

需要说明的是,上述判断标准中的“3分钟”仅仅作为举例,在实际应用中,还可以为其他值,例如2分钟、4分钟,本说明书实施例对此不作限制。It should be noted that "3 minutes" in the above judgment criteria is only an example, and in practical applications, it may be other values, such as 2 minutes and 4 minutes, which are not limited in the embodiments of this specification.

在本说明书实施例中,上述目标MAC地址所对应的进站行为的进站开始时间、进站结束时间的定义如下:In the embodiment of this specification, the definitions of the inbound start time and the inbound end time of the inbound behavior corresponding to the above target MAC address are as follows:

由上述描述可知,WiFi探针102是基于用户的进站行为探测到MAC地址相关信息的,并结合上述将用户的两次进站行为合并为一次进站行为的处理过程可知,一条或两条MAC地址相关信息即可对应一次用户进站行为,其中,对于仅对应一条MAC地址相关信息的进站行为而言,可将该进站行为的开始时间和结束时间均定义为其对应的MAC地址相关信息中的探测时间;而对于对应两条MAC地址相关信息的进站行为而言,可将该进站行为的开始时间定义为其对应的第一个MAC地址相关信息中的探测时间,将该进站行为的结束时间定义为其对应的第二个MAC地址相关信息中的探测时间。It can be seen from the above description that the WiFi probe 102 detects the MAC address related information based on the user's inbound behavior, and combined with the above-mentioned processing process of combining the user's two inbound behaviors into one inbound behavior, it can be seen that one or two The MAC address related information can correspond to a user inbound behavior. For an inbound behavior corresponding to only one piece of MAC address related information, the start time and end time of the inbound behavior can be defined as its corresponding MAC address. The detection time in the related information; and for the inbound behavior corresponding to the two MAC address related information, the start time of the inbound behavior can be defined as the detection time in the corresponding first MAC address related information, and the The end time of the inbound behavior is defined as the detection time in the corresponding second MAC address related information.

(4)对上述Qi的确定过程进行说明:(4) Describe the determination process of the above Qi:

由上述步骤304的相关描述可知,扫码相关信息中包括闸机口ID,那么,则可以针对任一闸机口ID,确定出包括该闸机口ID的扫码相关信息,包括该闸机口ID的扫码相关信息的条数,即可作为使用扫码方式,通过该闸机口的人数Qi的。From the relevant description of the above step 304, it can be known that the scanning code related information includes the gate ID, then, for any gate ID, the scanning related information including the gate ID can be determined, including the gate ID. The number of pieces of information related to the code scanning of the port ID can be used as the number of people who pass through the gate using the code scanning method.

(5)对上述Ri的确定过程进行说明:(5) Describe the determination process of the above R i :

首先说明,由上述步骤302的相关描述可知,MAC地址相关信息中包括信号强度,并且,信号强度越强,表示探测距离越近,而WiFi探针被布设于目标区域内或目标区域附近,从而,可以根据信号强度确定出经过目标区域的用户。First of all, it can be seen from the relevant description of the above step 302 that the MAC address related information includes the signal strength, and the stronger the signal strength is, the closer the detection distance is, and the WiFi probe is deployed in or near the target area, thus , users who pass through the target area can be determined according to the signal strength.

基于此,在上述确定S3所描述过程的基础上,若确定出目标MAC地址相关信息所对应的进站行为的进站开始时间、进站结束时间,与扫码相关信息中包括的扫码时间满足上述判断标准,则可以继续确定该目标MAC地址相关信息中包括的信号强度是否大于预设的信号强度阈值,若是,则可以将预先设置的表示使用扫码方式通过该闸机口,且被WiFi探针102探测到,且经过目标区域的人数Ri加1。Based on this, on the basis of the process described in the above determination S3, if the inbound start time and inbound end time of the inbound behavior corresponding to the target MAC address related information are determined, the scan code included in the scan code related information is determined. If the time meets the above judgment criteria, it can continue to determine whether the signal strength included in the target MAC address related information is greater than the preset signal strength threshold, and if so, the preset indication can be passed through the gate by scanning the code, and Detected by WiFi probe 102, and the number of people R i passing through the target area is incremented by 1.

(6)对上述S的确定过程进行说明:(6) Describe the determination process of the above S:

首先,根据上述S1和S3,确定出使用扫码方式通过任一闸机口的用户比例P1,其中,该P1具体指,使用扫码方式通过任一闸机口的人数,占通过任一闸机口总人数的比例,基于统计学,其可以通过如下公式(一)计算得出:First, according to the above S 1 and S 3 , determine the proportion P 1 of users who pass through any gate by scanning the code, where P 1 specifically refers to the number of people who pass through any gate by scanning the code, accounting for Through the proportion of the total number of people at any gate, based on statistics, it can be calculated by the following formula (1):

其次,根据上述S2和S3,确定出WiFi探针的探测率P2,其中,该P2表具体指,被WiFi探针探测到的人数,占通过任一闸机口总人数的比例,基于统计学,其可以通过如下公式(二)计算得出:Secondly, according to the above S 2 and S 3 , the detection rate P 2 of the WiFi probe is determined, wherein the P 2 table specifically refers to the proportion of the number of people detected by the WiFi probe to the total number of people passing through any gate , based on statistics, it can be calculated by the following formula (2):

再次,可以针对任一闸机口,根据上述P2和Ri,确定使用扫码方式通过该闸机口,且经过目标区域的人数Ti,基于统计学,Ti可以通过如下公式(三)计算得出:Again, for any gate, according to the above P 2 and R i , determine the number of people T i who pass through the gate and pass through the target area by scanning the code. Based on statistics, T i can be determined by the following formula (3 )Calculated:

其中,使用扫码方式通过编号为1的闸机口,且经过目标区域的人数记为T1,使用扫码方式通过编号为2的闸机口,且经过目标区域的人数记为T2,依次类推。Among them, use the code scanning method to pass through the gate number 1, and the number of people passing through the target area is recorded as T 1 , using the code scanning method to pass through the gate number 2, and the number of people passing through the target area is recorded as T 2 , And so on.

再次,针对任一闸机口,可以根据上述Ti和Qi,确定用户从该闸机口通过时,经过目标区域的概率Ci,基于统计学,Ci可以通过如下公式(四)计算得出:Again, for any gate, the probability C i of passing through the target area when the user passes through the gate can be determined according to the above T i and Q i . Based on statistics, C i can be calculated by the following formula (4) inferred:

其中,用户从编号为1的闸机口通过时,经过目标区域的概率记为C1,用户从编号为2的闸机口通过时,经过目标区域的概率记为C2,依次类推。Among them, when the user passes through the gate number 1, the probability of passing through the target area is denoted as C 1 , when the user passes through the gate number 2, the probability of passing through the target area is denoted as C 2 , and so on.

再次,针对任一闸机口,可以根据上述P1和Qi,确定在指定时间段内,通过该闸机口的人数记为Mi,基于统计学,Mi可以通过如下公式(五)计算得出:Again, for any gate, according to the above P 1 and Q i , it can be determined that the number of people passing through the gate within a specified period of time is recorded as M i , based on statistics, Mi can be determined by the following formula (5) Calculated:

其中,通过编号为1的闸机口的人数记为M1,通过编号为2的闸机口的人数记为M2,依此类推。The number of people passing through the gate number 1 is recorded as M 1 , the number of people passing through the gate number 2 is recorded as M 2 , and so on.

最后,则可以根据任一闸机口的Ci和Mi,确定在指定时间段内,经过目标区域的总人数S,基于统计学,S可以通过如下公式(六)计算出的:Finally, according to the C i and Mi of any gate, the total number of people S passing through the target area in the specified time period can be determined. Based on statistics, S can be calculated by the following formula (6):

本说明书实施例所提供的技术方案,通过获取WiFi探针在指定时间段内探测到的MAC地址相关信息,并获取各个闸机口在指定时间段内采集到的扫码相关信息,该扫码相关信息为用户使用扫码方式通过闸机口时产生的,后续根据MAC地址相关信息和扫码相关信息,可以较为准确地确定在指定时间段内经过目标区域的总人数。The technical solution provided by the embodiments of this specification is to obtain the relevant information of the MAC address detected by the WiFi probe within the specified time period, and obtain the scanning code related information collected by each gate within the specified time period. The relevant information is generated when the user passes through the gate by scanning the code, and the total number of people who pass through the target area within the specified time period can be more accurately determined according to the information related to the MAC address and the relevant information of scanning the code.

相应于上述方法实施例,本说明书实施例还提供一种人数统计装置,参见图4所示,为本说明书一示例性实施例提供的一种人数统计装置的实施例框图,该装置可以包括:第一获取模块41,第二获取模块42,以及总人数确定模块43。Corresponding to the above method embodiments, the embodiments of this specification further provide a people counting device. Referring to FIG. 4 , which is a block diagram of an embodiment of a people counting device provided by an exemplary embodiment of this specification, the device may include: The first obtaining module 41 , the second obtaining module 42 , and the total number of people determining module 43 .

其中,第一获取模块41,用于获取WiFi探针在指定时间段内探测到的MAC地址相关信息;Wherein, the first acquisition module 41 is used to acquire the MAC address related information detected by the WiFi probe within a specified time period;

第二获取模块42,用于获取各个闸机口在所述指定时间段内采集到的扫码相关信息,所述扫码相关信息为用户使用扫码方式通过闸机口时产生的;The second obtaining module 42 is configured to obtain the relevant information of scanning code collected by each gate within the specified time period, and the relevant information of scanning code is generated when the user passes through the gate by scanning the code;

总人数确定模块43,根据所述MAC地址相关信息和所述扫码相关信息,确定在所述指定时间段内经过目标区域的总人数。The total number of people determining module 43 determines the total number of people passing through the target area within the specified time period according to the MAC address related information and the code scanning related information.

在一实施例中,所述MAC地址相关信息至少包括:MAC地址、探测时间,以及信号强度;In an embodiment, the MAC address related information at least includes: MAC address, detection time, and signal strength;

所述扫码相关信息至少包括:扫码时间、用户ID、闸机口ID。The scan code related information at least includes: scan code time, user ID, and gate ID.

在一实施例中,所述总人数确定模块43包括(图4中未示出):In one embodiment, the total number of people determining module 43 includes (not shown in FIG. 4 ):

第一确定子模块,用于根据所述MAC地址相关信息,确定在所述指定时间段内,被所述WiFi探针探测到的总人数S1a first determination submodule, configured to determine the total number of people S 1 detected by the WiFi probe within the specified time period according to the MAC address-related information;

第二确定子模块,用于根据所述MAC地址相关信息和所述扫码相关信息,确定在所述指定时间段内,使用扫码方式通过任一闸机口,且被所述WiFi探针探测到的总人数S3The second determination sub-module is configured to determine, according to the MAC address related information and the scan code related information, to use the scan code method to pass through any gate within the specified time period and be detected by the WiFi probe. the total number of people detected S 3 ;

第三确定子模块,用于针对任一闸机口,根据所述扫码相关信息,确定在所述指定时间段内,使用扫码方式通过所述闸机口的人数Qi,并确定使用扫码方式通过任一闸机口的总人数S2,其中,所述i为大于0,且不超过N的自然数,所述N为闸机口数量;The third determining sub-module is configured to, for any gate, determine the number of people Q i who pass through the gate by scanning the code within the specified time period according to the relevant information about scanning the code, and determine the number of people who pass through the gate by scanning the code. The total number of people S 2 passing through any gate by scanning the code, wherein the i is a natural number greater than 0 and no more than N, and N is the number of gates;

第四确定子模块,用于针对任一闸机口,根据所述MAC地址相关信息和所述扫码相关信息,确定在所述指定时间段内,使用扫码方式通过所述闸机口,且被所述WiFi探针探测到,且经过所述目标区域的人数RiThe fourth determination sub-module is configured to, for any gate, determine, according to the MAC address related information and the scan code related information, to use the code scan method to pass through the gate within the specified time period, and detected by the WiFi probe, and the number of people R i passing through the target area;

第五确定子模块,用于根据所述S1、所述S2、所述S3、所述Qi,以及所述Ri确定在所述指定时间段内,经过所述目标区域的总人数S。A fifth determination sub-module, configured to determine, according to the S 1 , the S 2 , the S 3 , the Qi , and the R i , the total amount of time passing through the target area within the specified time period. number of people S.

在一实施例中,所述第一确定子模块包括(图4中未示出):In one embodiment, the first determination sub-module includes (not shown in FIG. 4 ):

针对任一所述MAC地址相关信息进行如下处理,得到在所述指定时间段内,被所述WiFi探针探测到的总人数S1Perform the following processing on any of the MAC address related information to obtain the total number of people S 1 detected by the WiFi probe within the specified time period:

第一查找子模块,用于根据所述MAC地址相关信息中包括的MAC地址,查找预先获取的用户注册信息,所述用户注册信息包括已注册用户的用户ID和MAC地址的关联关系;a first search submodule, configured to search for pre-acquired user registration information according to the MAC address included in the MAC address related information, where the user registration information includes the association relationship between the user ID and the MAC address of the registered user;

第一统计子模块,用于若查找到所述MAC地址相关信息中包括的MAC地址,则将被所述WiFi探针探测到的总人数S1加1;其中,所述S1的初始值为0;The first statistics sub-module is configured to add 1 to the total number of people S1 detected by the WiFi probe if the MAC address included in the MAC address related information is found; wherein, the initial value of the S1 is 0;

所述查找子模块与所述第一统计子模块相互配合,实现针对任一所述MAC地址相关信息的处理,得到在所述指定时间段内,被所述WiFi探针探测到的总人数S1The search sub-module cooperates with the first statistics sub-module to process information related to any one of the MAC addresses to obtain the total number of people S detected by the WiFi probe within the specified time period 1 .

在一实施例中,所述第二确定子模块包括(图4中未示出):In one embodiment, the second determination sub-module includes (not shown in FIG. 4 ):

第二查找子模块,用于根据所述扫码相关信息中包括的用户ID,查找预先获取的用户注册信息,所述用户注册信息包括已注册用户的用户ID和MAC地址的关联关系;The second search sub-module is used to search for pre-acquired user registration information according to the user ID included in the code scanning related information, where the user registration information includes the association relationship between the user ID and the MAC address of the registered user;

获取子模块,用于若查找到所述扫码相关信息中包括的用户ID,则获取所述用户ID关联的目标MAC地址;an acquisition sub-module, configured to acquire the target MAC address associated with the user ID if the user ID included in the scan code related information is found;

第二统计子模块,用于在所获取到的MAC地址相关信息中,确定是否存在包括所述目标MAC地址的目标MAC地址相关信息,若存在,则继续判断所述目标MAC地址相关信息所对应的进站行为的进站开始时间、进站结束时间,与所述扫码相关信息中包括的扫码时间是否满足预设的判断标准,若满足,则将使用扫码方式通过任一闸机口,且被所述WiFi探针探测到的总人数S3加1;其中,所述S3的初始值为0;The second statistics sub-module is configured to determine whether there is target MAC address related information including the target MAC address in the acquired MAC address related information, and if so, continue to judge the corresponding target MAC address related information The entry start time and entry end time of the entry behavior, and whether the scan time included in the code scan related information meets the preset judgment criteria, if so, the scan code will be used to pass through any gate. and the total number of people detected by the WiFi probe S3 is increased by 1 ; wherein, the initial value of the S3 is 0;

所述第二查找子模块、所述获取子模块,以及所述第二统计子模块相互配合,实现针对任一所述扫码相关信息的处理,得到在所述指定时间段内,使用扫码方式通过任一闸机口,且被所述WiFi探针探测到的总人数S3The second search sub-module, the acquisition sub-module, and the second statistics sub-module cooperate with each other to realize the processing of any of the scan code related information, and obtain the use of scan code within the specified time period. The total number of people S3 detected by the WiFi probe through any gate in the way.

在一实施例中,所述第三确定子模块具体用于:In an embodiment, the third determination submodule is specifically used for:

根据所述扫码相关信息中包括的闸机口编号,确定在所述指定时间段内,使用扫码方式通过各个闸机口的人数QiAccording to the gate number included in the code scanning related information, the number of people Qi who pass through each gate by scanning the code within the specified time period is determined .

在一实施例中,所述第四确定子模块具体用于:In one embodiment, the fourth determination sub-module is specifically used for:

若所述目标MAC地址相关信息所对应的进站行为的进站开始时间、进站结束时间,与所述扫码相关信息中包括的扫码时间满足所述判断标准,则确定所述目标MAC地址相关信息中包括的信号强度是否大于预设的信号强度阈值,若是,则将使用扫码方式通过所述闸机口,且被所述WiFi探针探测到,且经过所述目标区域的人数Ri加1;If the inbound start time, inbound end time of the inbound behavior corresponding to the target MAC address related information, and the scan time included in the scan code related information meet the judgment criteria, then the target MAC address is determined. Whether the signal strength included in the address-related information is greater than the preset signal strength threshold, and if so, the number of people who will pass through the gate by scanning the code and be detected by the WiFi probe and pass through the target area R i plus 1;

其中,所述Ri的初始值为0。Wherein, the initial value of R i is 0.

在一实施例中,所述第五确定子模块包括(图4中未示出):In one embodiment, the fifth determination sub-module includes (not shown in FIG. 4 ):

第六确定子模块,用于根据所述S1和所述S3,确定使用扫码方式通过任一闸机口的用户比例P1The sixth determination sub-module is configured to determine, according to the S 1 and the S 3 , the proportion P 1 of users who pass through any gate by scanning the code;

第七确定子模块,根据所述S2和所述S3,确定所述WiFi探针的探测率P2The seventh determination sub-module determines the detection rate P 2 of the WiFi probe according to the S 2 and the S 3 ;

第八确定子模块,针对任一闸机口,根据所述P2和所述Ri,确定使用扫码方式通过所述闸机口,且经过所述目标区域的人数Ti;根据所述闸机口的Ti和Qi,确定用户从所述闸机口通过时,经过所述目标区域的概率Ci;根据所述P1和所述闸机口的Qi,确定在所述指定时间段内,通过所述闸机口的人数MiThe eighth determination sub-module, for any gate, according to the P 2 and the R i , to determine the number of people T i who pass through the gate and the target area by scanning the code; according to the Ti and Qi of the gate , determine the probability C i of the user passing through the target area when passing through the gate ; according to the P 1 and the Qi of the gate , determine Within a specified time period, the number of people Mi passing through the gate;

第九确定子模块,根据任一闸机口的Ci和Mi,确定在所述指定时间段内,经过目标区域的总人数S。The ninth determination sub-module determines, according to C i and M i of any gate, the total number of people S passing through the target area within the specified time period.

可以理解的是,第一获取模块41、第二获取模块42,以及总人数确定模块43作为三种功能独立的模块,既可以如图4所示同时配置在装置中,也可以分别单独配置在装置中,因此图4所示的结构不应理解为对本说明书实施例方案的限定。It can be understood that the first acquisition module 41, the second acquisition module 42, and the total number of people determination module 43, as three modules with independent functions, can be simultaneously configured in the device as shown in FIG. Therefore, the structure shown in FIG. 4 should not be construed as a limitation on the solutions of the embodiments of the present specification.

此外,上述装置中各个模块的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。本说明书实施例还提供一种计算机设备,其至少包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,处理器执行所述程序时实现前述的人数统计方法。该方法至少包括:获取WiFi探针在指定时间段内探测到的MAC地址相关信息;获取各个闸机口在所述指定时间段内采集到的扫码相关信息,所述扫码相关信息为用户使用扫码方式通过闸机口时产生的;根据所述MAC地址相关信息和所述扫码相关信息,确定在所述指定时间段内经过目标区域的总人数。In addition, the implementation process of the functions and functions of each module in the above-mentioned device is detailed in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here. Embodiments of the present specification also provide a computer device, which at least includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the aforementioned people counting method when executing the program. The method includes at least: acquiring MAC address related information detected by a WiFi probe within a specified time period; acquiring code scanning related information collected by each gate within the specified time period, the code scanning related information being a user Generated when the code scanning method is used to pass through the gate; according to the MAC address related information and the scanning code related information, the total number of people passing through the target area within the specified time period is determined.

图5示出了本说明书实施例所提供的一种更为具体的计算机设备硬件结构示意图,该设备可以包括:处理器510、存储器520、输入/输出接口530、通信接口540和总线550。其中处理器510、存储器520、输入/输出接口530和通信接口540通过总线550实现彼此之间在设备内部的通信连接。FIG. 5 shows a more specific schematic diagram of the hardware structure of a computer device provided by an embodiment of this specification. The device may include: a processor 510 , a memory 520 , an input/output interface 530 , a communication interface 540 and a bus 550 . The processor 510 , the memory 520 , the input/output interface 530 and the communication interface 540 realize the communication connection among each other within the device through the bus 550 .

处理器510可以采用通用的CPU(Central Processing Unit,中央处理器)、微处理器、应用专用集成电路(Application Specific Integrated Circuit,ASIC)、或者一个或多个集成电路等方式实现,用于执行相关程序,以实现本说明书实施例所提供的技术方案。The processor 510 may be implemented by a general-purpose CPU (Central Processing Unit, central processing unit), a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute related program to implement the technical solutions provided by the embodiments of this specification.

存储器520可以采用ROM(Read Only Memory,只读存储器)、RAM(Random AccessMemory,随机存取存储器)、静态存储设备,动态存储设备等形式实现。存储器520可以存储操作系统和其他应用程序,在通过软件或者固件来实现本说明书实施例所提供的技术方案时,相关的程序代码保存在存储器520中,并由处理器55来调用执行。The memory 520 may be implemented in the form of a ROM (Read Only Memory, read only memory), a RAM (Random Access Memory, random access memory), a static storage device, a dynamic storage device, and the like. The memory 520 may store an operating system and other application programs. When implementing the technical solutions provided by the embodiments of this specification through software or firmware, relevant program codes are stored in the memory 520 and invoked by the processor 55 for execution.

输入/输出接口530用于连接输入/输出模块,以实现信息输入及输出。输入输出/模块可以作为组件配置在设备中(图中未示出),也可以外接于设备以提供相应功能。其中输入设备可以包括键盘、鼠标、触摸屏、麦克风、各类传感器等,输出设备可以包括显示器、扬声器、振动器、指示灯等。The input/output interface 530 is used for connecting input/output modules to realize information input and output. The input/output/module can be configured in the device as a component (not shown in the figure), or can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, and the like.

通信接口540用于连接通信模块(图中未示出),以实现本设备与其他设备的通信交互。其中通信模块可以通过有线方式(例如USB、网线等)实现通信,也可以通过无线方式(例如移动网络、WIFI、蓝牙等)实现通信。The communication interface 540 is used to connect a communication module (not shown in the figure), so as to realize the communication interaction between the device and other devices. The communication module may implement communication through wired means (eg, USB, network cable, etc.), or may implement communication through wireless means (eg, mobile network, WIFI, Bluetooth, etc.).

总线550包括一通路,在设备的各个组件(例如处理器510、存储器520、输入/输出接口530和通信接口540)之间传输信息。Bus 550 includes a path to transfer information between the various components of the device (eg, processor 510, memory 520, input/output interface 530, and communication interface 540).

需要说明的是,尽管上述设备仅示出了处理器510、存储器520、输入/输出接口530、通信接口540以及总线550,但是在具体实施过程中,该设备还可以包括实现正常运行所必需的其他组件。此外,本领域的技术人员可以理解的是,上述设备中也可以仅包含实现本说明书实施例方案所必需的组件,而不必包含图中所示的全部组件。It should be noted that although the above 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 process, the device may also include necessary components for normal operation. other components. In addition, those skilled in the art can understand that, the above-mentioned device may only include components necessary to implement the solutions of the embodiments of the present specification, rather than all the components shown in the figures.

本说明书实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现前述的人数统计方法。该方法至少包括:获取WiFi探针在指定时间段内探测到的MAC地址相关信息;获取各个闸机口在所述指定时间段内采集到的扫码相关信息,所述扫码相关信息为用户使用扫码方式通过闸机口时产生的;根据所述MAC地址相关信息和所述扫码相关信息,确定在所述指定时间段内经过目标区域的总人数。Embodiments of the present specification further provide a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the aforementioned method for counting people. The method includes at least: acquiring MAC address related information detected by a WiFi probe within a specified time period; acquiring code scanning related information collected by each gate within the specified time period, the code scanning related information being a user Generated when the code scanning method is used to pass through the gate; according to the MAC address related information and the scanning code related information, the total number of people passing through the target area within the specified time period is determined.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology. Information may be computer readable instructions, data structures, modules of programs, 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 Disc (DVD) or other optical storage, Magnetic tape 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, computer-readable media does not include transitory computer-readable media, such as modulated data signals and carrier waves.

通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本说明书实施例可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本说明书实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本说明书实施例各个实施例或者实施例的某些部分所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the embodiments of the present specification can be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solutions of the embodiments of this specification or the parts that make contributions to the prior art may be embodied in the form of software products, and the computer software products may be stored in storage media, such as ROM/RAM, A magnetic disk, an optical disk, etc., includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments in this specification.

上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机,计算机的具体形式可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。The systems, devices, modules or units described in the above embodiments may be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementing device is a computer, which may be in the form of a personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media player, navigation device, email sending and receiving device, game control desktop, tablet, wearable device, or a combination of any of these devices.

本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,在实施本说明书实施例方案时可以把各模块的功能在同一个或多个软件和/或硬件中实现。也可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the apparatus embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for related parts. The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated. When implementing the solutions of the embodiments of the present specification, the functions of each module may be integrated into the same module. or multiple software and/or hardware implementations. Some or all of the modules may also be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.

以上所述仅是本说明书实施例的具体实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本说明书实施例原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本说明书实施例的保护范围。The above are only specific implementations of the embodiments of the present specification. It should be pointed out that for those skilled in the art, without departing from the principles of the embodiments of the present specification, several improvements and modifications can be made. These Improvements and modifications should also be regarded as the protection scope of the embodiments of the present specification.

Claims (17)

1. a kind of demographic method, for counting the total number of persons in designated time period by target area, the target area In specified place, WiFi probe and multiple gate mouths are laid in the specified place, the WiFi probe is for detecting The MAC Address relevant information of equipment in the specified place, the gate mouth pass through described for barcode scanning mode for users to use Gate mouth;The described method includes:
Obtain the MAC Address relevant information that the WiFi probe at the appointed time detects in section;
Each gate mouth collected barcode scanning relevant information in the designated time period is obtained, the barcode scanning relevant information is to use Family is using barcode scanning mode by generating when gate mouth;
According to the MAC Address relevant information and the barcode scanning relevant information, determine in the designated time period by described The total number of persons of target area.
2. according to the method described in claim 1, the MAC Address relevant information includes at least: MAC Address, detection time, with And signal strength;
The barcode scanning relevant information includes at least: barcode scanning time, User ID, gate mouth ID.
3. according to the method described in claim 2, described according to the MAC Address relevant information and the barcode scanning relevant information, Determine the total number of persons for passing through the target area in the designated time period, comprising:
It according to the MAC Address relevant information, determines in the designated time period, the total people detected by the WiFi probe Number S1
According to the MAC Address relevant information and the barcode scanning relevant information, determines in the designated time period, use barcode scanning Mode passes through any gate mouth, and the total number of persons S detected by the WiFi probe3
It is determined in the designated time period for any gate mouth according to the barcode scanning relevant information, it is logical using barcode scanning mode Cross the number Q of the gate mouthi, and determine the total number of persons S for passing through any gate mouth using barcode scanning mode2, wherein the i is big In 0, and it is no more than the natural number of N, the N is gate mouth quantity;
It is determined when described specified for any gate mouth according to the MAC Address relevant information and the barcode scanning relevant information Between in section, using barcode scanning mode by the gate mouth, and detected by the WiFi probe, and by the target area Number Ri
According to the S1, the S2, the S3, the QiAnd the RiIt determines in the designated time period, by the mesh Mark the total number of persons S in region.
4. determination is in the specified time according to the method described in claim 3, described according to the MAC Address relevant information In section, the total number of persons S that is detected by the WiFi probe1, comprising:
It is handled as follows, obtains in the designated time period, by the WiFi for any MAC Address relevant information The total number of persons S that probe detects1:
According to the MAC Address for including in the MAC Address relevant information, the user's registration information obtained in advance, the use are searched Family registration information includes the User ID of registered users and the incidence relation of MAC Address;
If finding the MAC Address for including in the MAC Address relevant information, the total people that will be detected by the WiFi probe Number S1Add 1;
Wherein, the S1Initial value be 0.
5. according to the method described in claim 3, described according to the MAC Address relevant information and the barcode scanning relevant information, It determines in the designated time period, using barcode scanning mode by any gate mouth, and is detected by the WiFi probe total Number S3, comprising:
It is handled as follows for any barcode scanning relevant information, obtains in the designated time period, use barcode scanning mode By any gate mouth, and the total number of persons S detected by the WiFi probe3:
According to the User ID for including in the barcode scanning relevant information, the user's registration information obtained in advance, user's note are searched Volume information includes the User ID of registered users and the incidence relation of MAC Address;
If finding the User ID for including in the barcode scanning relevant information, the associated destination-mac address of the User ID is obtained;
In accessed MAC Address relevant information, it is determined whether with there is the Destination MAC including the destination-mac address Location relevant information, and if it exists, the beginning of entering the station for the behavior that then continues to judge to enter the station corresponding to the destination-mac address relevant information Whether the barcode scanning time for including in time, the end time of entering the station, with the barcode scanning relevant information meets preset judgment criteria, if Meet, then barcode scanning mode will be used to pass through any gate mouth, and the total number of persons S detected by the WiFi probe3Add 1;
Wherein, the S3Initial value be 0.
6., according to the barcode scanning relevant information, being determined according to the method described in claim 3, described be directed to any gate mouth In the designated time period, pass through the number Q of the gate mouth using barcode scanning modei, comprising:
According to the gate mouth number for including in the barcode scanning relevant information, determines in the designated time period, use barcode scanning side The number Q that formula passes through each gate mouthi
7. according to the method described in claim 5, described be directed to any gate mouth, according to the MAC Address relevant information and institute Barcode scanning relevant information is stated, is determined in the designated time period, using barcode scanning mode by the gate mouth, and by the WiFi Probe detects, and by the number R of the target areai, comprising:
If behavior of entering the station corresponding to the destination-mac address relevant information is entered the station time started, the end time of entering the station, with institute Stating the barcode scanning time for including in barcode scanning relevant information meets the judgment criteria, then continues to determine that the destination-mac address is related Whether the signal strength for including in information is greater than preset signal strength threshold, if so, it is described that barcode scanning mode will be used to pass through Gate mouth, and detected by the WiFi probe, and by the number R of the target areaiAdd 1;
Wherein, the RiInitial value be 0.
8. according to the method described in claim 3, described according to the S1, the S2, the S3, the QiAnd the Ri, really It is scheduled in the designated time period, by the total number of persons S of target area, comprising:
According to the S1With the S3, determine and use user ratio P of the barcode scanning mode by any gate mouth1
According to the S2With the S3, determine the detectivity P of the WiFi probe2
For any gate mouth, according to the P2With the Ri, determine using barcode scanning mode through the gate mouth, and pass through institute State the number T of target areai;According to the T of the gate mouthiAnd Qi, when determining that user passes through from the gate mouth, by described The probability C of target areai;According to the P1With the Q of the gate mouthi, determine in the designated time period, pass through the lock The number M of machine mouthi
According to the C of any gate mouthiAnd Mi, determine in the designated time period, by the total number of persons S of target area.
9. a kind of people counting device, for counting the total number of persons in designated time period by target area, the target area In specified place, WiFi probe and multiple gate mouths are laid in the specified place, the WiFi probe is for detecting The MAC Address relevant information of equipment in the specified place, the gate mouth pass through described for barcode scanning mode for users to use Gate mouth;Described device includes:
First obtains module, the MAC Address relevant information at the appointed time detected in section for obtaining the WiFi probe;
Second obtains module, for obtaining each gate mouth collected barcode scanning relevant information, institute in the designated time period State barcode scanning relevant information be user using barcode scanning mode by generating when gate mouth;
Total number of persons determining module determines when described specified according to the MAC Address relevant information and the barcode scanning relevant information Between in section by the total number of persons of the target area.
10. device according to claim 9, the MAC Address relevant information is included at least: MAC Address, detection time, And signal strength;
The barcode scanning relevant information includes at least: barcode scanning time, User ID, gate mouth ID.
11. device according to claim 10, the total number of persons determining module include:
First determines submodule, described for determining in the designated time period according to the MAC Address relevant information The total number of persons S that WiFi probe detects1
Second determines submodule, for determining in the finger according to the MAC Address relevant information and the barcode scanning relevant information It fixes time in section, passes through any gate mouth, and the total number of persons S detected by the WiFi probe using barcode scanning mode3
Third determines submodule, for being directed to any gate mouth, according to the barcode scanning relevant information, determines in the specified time In section, pass through the number Q of the gate mouth using barcode scanning modei, and determine and pass through the total of any gate mouth using barcode scanning mode Number S2, wherein the i is the natural number greater than 0, and no more than N, and the N is gate mouth quantity;
4th determines submodule, for being directed to any gate mouth, according to MAC Address relevant information letter related to the barcode scanning Breath determines in the designated time period, using barcode scanning mode by the gate mouth, and is detected by the WiFi probe, And by the number R of the target areai
5th determines submodule, for according to the S1, the S2, the S3, the QiAnd the RiIt determines described specified In period, by the total number of persons S of the target area.
12. device according to claim 11, described first determines that submodule includes:
It is handled as follows, obtains in the designated time period, by the WiFi for any MAC Address relevant information The total number of persons S that probe detects1:
First searches submodule, for what is obtained in advance according to the MAC Address for including in the MAC Address relevant information, lookup User's registration information, the user's registration information include the User ID of registered users and the incidence relation of MAC Address;
First statistic submodule, if for finding the MAC Address for including in the MAC Address relevant information, it will be described The total number of persons S that WiFi probe detects1Add 1;Wherein, the S1Initial value be 0;
The lookup submodule and first statistic submodule cooperate, and realize for any MAC Address correlation letter The processing of breath obtains in the designated time period, the total number of persons S detected by the WiFi probe1
13. device according to claim 11, described second determines that submodule includes:
Second searches submodule, for searching the user obtained in advance according to the User ID for including in the barcode scanning relevant information Registration information, the user's registration information include the User ID of registered users and the incidence relation of MAC Address;
Acquisition submodule, if obtaining the User ID for finding the User ID for including in the barcode scanning relevant information and closing The destination-mac address of connection;
Second statistic submodule, in accessed MAC Address relevant information, it is determined whether exist including the target The destination-mac address relevant information of MAC Address, and if it exists, then continue to judge corresponding to the destination-mac address relevant information It enters the station the entering the station time started, the end time of entering the station of behavior, it is whether full with barcode scanning time for including in the barcode scanning relevant information The preset judgment criteria of foot if satisfied, will then use barcode scanning mode by any gate mouth, and be detected by the WiFi probe Total number of persons S3Add 1;Wherein, the S3Initial value be 0;
Described second, which searches submodule, the acquisition submodule and second statistic submodule, cooperates, and realization is directed to The processing of any barcode scanning relevant information, obtains in the designated time period, passes through any gate mouth using barcode scanning mode, And the total number of persons S detected by the WiFi probe3
14. device according to claim 11, the third determines that submodule is specifically used for:
According to the gate mouth number for including in the barcode scanning relevant information, determines in the designated time period, use barcode scanning side The number Q that formula passes through each gate mouthi
15. device according to claim 13, the described 4th determines that submodule is specifically used for:
If behavior of entering the station corresponding to the destination-mac address relevant information is entered the station time started, the end time of entering the station, with institute Stating the barcode scanning time for including in barcode scanning relevant information meets the judgment criteria, it is determined that the destination-mac address relevant information In include signal strength whether be greater than preset signal strength threshold, if so, will use barcode scanning mode pass through the gate Mouthful, and detected by the WiFi probe, and by the number R of the target areaiAdd 1;
Wherein, the RiInitial value be 0.
16. device according to claim 11, the described 5th determines that submodule includes:
6th determines submodule, for according to the S1With the S3, determine the user for passing through any gate mouth using barcode scanning mode Ratio P1
7th determines submodule, according to the S2With the S3, determine the detectivity P of the WiFi probe2
8th determines submodule, for any gate mouth, according to the P2With the Ri, determine using barcode scanning mode described in Gate mouth, and by the number T of the target areai;According to the T of the gate mouthiAnd Qi, determine user from the gate mouth By when, by the probability C of the target areai;According to the P1With the Q of the gate mouthi, determine in the specified time In section, pass through the number M of the gate mouthi
9th determines submodule, according to the C of any gate mouthiAnd Mi, determine in the designated time period, by target area Total number of persons S.
17. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, wherein the processor realizes the method according to claim 1 when executing described program.
CN201811332854.4A 2018-11-09 2018-11-09 A people counting method, device, and computer equipment Expired - Fee Related CN110012495B (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN202010489702.6A CN111654880B (en) 2018-11-09 2018-11-09 People counting method and device and computer equipment
CN201811332854.4A CN110012495B (en) 2018-11-09 2018-11-09 A people counting method, device, and computer equipment
TW108129106A TWI724497B (en) 2018-11-09 2019-08-15 People counting method, device and computer equipment
PCT/CN2019/110018 WO2020093831A1 (en) 2018-11-09 2019-10-08 Method and apparatus for counting number of people, and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811332854.4A CN110012495B (en) 2018-11-09 2018-11-09 A people counting method, device, and computer equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202010489702.6A Division CN111654880B (en) 2018-11-09 2018-11-09 People counting method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN110012495A true CN110012495A (en) 2019-07-12
CN110012495B CN110012495B (en) 2020-04-14

Family

ID=67164881

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202010489702.6A Active CN111654880B (en) 2018-11-09 2018-11-09 People counting method and device and computer equipment
CN201811332854.4A Expired - Fee Related CN110012495B (en) 2018-11-09 2018-11-09 A people counting method, device, and computer equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202010489702.6A Active CN111654880B (en) 2018-11-09 2018-11-09 People counting method and device and computer equipment

Country Status (3)

Country Link
CN (2) CN111654880B (en)
TW (1) TWI724497B (en)
WO (1) WO2020093831A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110706376A (en) * 2019-08-02 2020-01-17 阿里巴巴集团控股有限公司 A method and device for counting people flow
WO2020093831A1 (en) * 2018-11-09 2020-05-14 阿里巴巴集团控股有限公司 Method and apparatus for counting number of people, and computer device
CN112785759A (en) * 2021-01-22 2021-05-11 支付宝(杭州)信息技术有限公司 System and method for passenger flow statistics

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112070955B (en) * 2020-09-16 2025-01-03 陈耀相 A dynamic face QR code visitor intelligent gate
CN113705852A (en) * 2021-05-13 2021-11-26 北京金山云网络技术有限公司 Crowd density early warning method and device, electronic equipment and storage medium
CN114333123B (en) * 2021-12-13 2024-08-16 南京熊猫电子股份有限公司 Gate passing detection method, equipment and medium based on laser ranging element group
CN116056013A (en) * 2023-01-18 2023-05-02 武汉大学 A classroom population monitoring method, system, equipment and storage medium
CN117152913A (en) * 2023-10-27 2023-12-01 青岛天眼物联科技有限公司 Drowning prevention device, system and method
CN117404784A (en) * 2023-11-23 2024-01-16 北京中金云网科技有限公司 Energy-saving fan ventilation control method for data center based on Internet of Things
CN118692022B (en) * 2024-06-17 2025-02-07 深圳市创世纪科技发展有限公司 Intelligent temporary platform non-contact image recognition mobile control method and system
CN119888904B (en) * 2025-03-26 2025-07-01 杭州八爪鱼微电子有限公司 Intelligent lock non-inductive passing method and system based on millimeter wave and Bluetooth

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105844742A (en) * 2016-03-20 2016-08-10 立德高科(昆山)数码科技有限责任公司 Method and system for controlling the number of tourists entering a scenic spot based on a two-dimensional code
CN106341465A (en) * 2016-08-30 2017-01-18 成都西加云杉科技有限公司 Statistical method, device and system of passenger flow and population flow distribution
CN107066978A (en) * 2017-04-18 2017-08-18 云熠信息科技有限公司 Crowd information acquisition and analysis method and system
CN107995649A (en) * 2017-11-28 2018-05-04 四川长虹电器股份有限公司 Realize that the method and system of flow of the people is checked card or counted in attendance by WIFI probes
CN108022000A (en) * 2016-10-28 2018-05-11 浙江师范大学 A kind of metro passenger flow Early-Warning System and method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104616365B (en) * 2015-02-03 2017-12-26 同济大学 A kind of attendance system and method
WO2016187829A1 (en) * 2015-05-27 2016-12-01 裴峤 Interactive mobile advertisement delivery system based on user personalization and return mechanism
US9998868B2 (en) * 2015-06-05 2018-06-12 International Business Machines Corporation Mobile device proximity notification
CN105205554B (en) * 2015-09-16 2019-06-11 中国矿业大学(北京) A method and system for predicting queuing time in a subway station
CN205722035U (en) * 2016-04-13 2016-11-23 上海三吉电子工程有限公司 Passenger flow analysis system
CN106295513B (en) * 2016-07-26 2020-01-31 中电海康集团有限公司 People counting method and device based on residence time probability distribution
CN107360590A (en) * 2017-06-29 2017-11-17 上海工程技术大学 Track station part congestion points passenger flow condition judgement method
CN111654880B (en) * 2018-11-09 2023-01-20 创新先进技术有限公司 People counting method and device and computer equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105844742A (en) * 2016-03-20 2016-08-10 立德高科(昆山)数码科技有限责任公司 Method and system for controlling the number of tourists entering a scenic spot based on a two-dimensional code
CN106341465A (en) * 2016-08-30 2017-01-18 成都西加云杉科技有限公司 Statistical method, device and system of passenger flow and population flow distribution
CN108022000A (en) * 2016-10-28 2018-05-11 浙江师范大学 A kind of metro passenger flow Early-Warning System and method
CN107066978A (en) * 2017-04-18 2017-08-18 云熠信息科技有限公司 Crowd information acquisition and analysis method and system
CN107995649A (en) * 2017-11-28 2018-05-04 四川长虹电器股份有限公司 Realize that the method and system of flow of the people is checked card or counted in attendance by WIFI probes

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李凯雷等: "基于WiFi探针的人流量异常自动预警系统设计", 《电子测量技术》 *
郝伟娜: "基于MAC地址扫描的公交客流动态获取方法", 《浙江工业大学学报》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020093831A1 (en) * 2018-11-09 2020-05-14 阿里巴巴集团控股有限公司 Method and apparatus for counting number of people, and computer device
CN110706376A (en) * 2019-08-02 2020-01-17 阿里巴巴集团控股有限公司 A method and device for counting people flow
CN110706376B (en) * 2019-08-02 2021-09-28 创新先进技术有限公司 People flow rate statistical method and device
CN112785759A (en) * 2021-01-22 2021-05-11 支付宝(杭州)信息技术有限公司 System and method for passenger flow statistics

Also Published As

Publication number Publication date
CN111654880B (en) 2023-01-20
WO2020093831A1 (en) 2020-05-14
TW202019198A (en) 2020-05-16
CN111654880A (en) 2020-09-11
CN110012495B (en) 2020-04-14
TWI724497B (en) 2021-04-11

Similar Documents

Publication Publication Date Title
CN111654880B (en) People counting method and device and computer equipment
JP6540314B2 (en) Facility estimation method, device and program
JP5819529B2 (en) Peer device assisted location information service provider check-in
EP2972461B1 (en) Multi-factor location verification
JP5951802B2 (en) System and method for identifying and analyzing a user&#39;s personal context
US20150254737A1 (en) Method, apparatus and system for providing customized service based on beacon signal
RU2638154C2 (en) Methods and devices for number labeling
JP2014527773A5 (en)
CN110009090A (en) Neural metwork training and image processing method and device
JP2018528517A (en) Method, apparatus and system for detecting fraudulent software promotions
US20200344522A1 (en) Using wifi-signal based, device-free human presence detection technology to identify humans consuming media content
JP2012185161A (en) Method for measuring real dimension of object by using camera included in portable terminal
GB2559923A (en) Graphical user interface customization for automating complex operations
CN109493852A (en) A kind of evaluating method and device of speech recognition
US10375198B2 (en) Daily counts and usage probabilities for a user of an online service
US9264859B2 (en) Communication device having automatic reply function and method for performing automatic reply thereof
CN105095081B (en) Application program functional testing method and device
CN110008111A (en) A kind of service test method and device
CN106357480A (en) Method and device for monitoring network performance of application and mobile terminal
KR20190098965A (en) Method and device for storing and recalling data
CN111753266A (en) User authentication method, multimedia content push method and device
CN109857660A (en) Project measurement method, system, device and computer readable storage medium
CN108600413B (en) Positioning method and device and electronic equipment
Hossmann et al. Collecting big datasets of human activity one checkin at a time
US20150089298A1 (en) Methods, systems, and computer-readable media for testing applications on a handheld device

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200925

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200925

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200414