Passenger flow determination method and device, electronic equipment and readable storage medium
By combining the topology map of WiFi nodes and the distribution map of visual equipment, the passenger flow information of the area covered by visual equipment and WiFi nodes is solved, and the problem of inability to take into account both costs and directions in the existing technology is achieved, and the low-cost passenger flow direction determination is achieved.
Patent Information
- Application Number
- CN202410030155.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-09
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2044-01-09
AI Technical Summary
In the prior art, determining passenger flow information based on computer vision technology requires a large amount of computing power costs, while wireless passive perception technology can only detect passenger flow but cannot detect passenger flow direction, resulting in the inability to take into account both cost and direction.
By combining the topology map of WiFi nodes and the distribution map of visual equipment, the passenger flow information of the perceived area covered by the visual device and WiFi nodes is obtained, and the passenger flow direction of adjacent areas is determined by using the topology map of WiFi nodes, reducing dependence on visual technology, and determining the direction of passenger flow.
While reducing calculation costs, it can accurately determine the direction of passenger flow and passenger flow, and improve the monitoring efficiency of passenger flow information.
Smart Images

Figure CN120378440A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of passenger flow monitoring, and in particular to a passenger flow determination method, device, electronic device and readable storage medium. Background Art
[0002] At present, passenger flow can usually be monitored through computer vision technology or wireless passive sensing technology. Among them, computer vision technology determines passenger flow information such as passenger flow and passenger flow direction through collected videos, and wireless passive sensing technology determines passenger flow information such as passenger flow through collected wireless signals. However, determining passenger flow information based on computer vision technology consumes a lot of computing power costs, and although determining passenger flow based on wireless passive sensing technology has a lower cost, it cannot determine the direction of passenger flow. It can be seen that the existing technology has the problem that the cost of determining passenger flow information and the direction of passenger flow cannot be taken into account at the same time. Summary of the invention
[0003] The embodiments of the present application provide a passenger flow determination method, device, electronic device and readable storage medium to solve the problem in the prior art that the cost of determining passenger flow information and the direction of passenger flow cannot be taken into account at the same time.
[0004] In order to solve the above technical problems, the present application is implemented as follows;
[0005] In a first aspect, an embodiment of the present application provides a method for determining passenger flow, the method comprising:
[0006] In the case where the first perception area is determined to be an area covered by the visual device and the WiFi node based on the pre-stored WiFi node topology map and the visual device distribution map, at least one of a first passenger flow and a second passenger flow is obtained, wherein the first passenger flow is the passenger flow in a first direction in the first perception area at a first moment determined based on the visual technology, and the second passenger flow is the passenger flow in a second direction in the first perception area at a second moment determined based on the visual technology, the first direction and the second direction are directions relative to the visual device, the first direction is a direction facing the visual device, and the second direction is a direction facing away from the visual device;
[0007] When the first passenger flow is obtained and the first passenger flow is greater than 0, the passenger flow of the N second perception areas toward the first direction at a third moment is determined according to the first passenger flow and the time it takes for the N second perception areas to reach the first perception area, wherein the N second perception areas are areas adjacent to the first perception area determined based on the WiFi node topology map, to which passenger flow can flow and covered by WiFi nodes;
[0008] When the second passenger flow is obtained and the second passenger flow is greater than 0, the passenger flow of the M second perception areas toward the second direction at the fourth moment is determined according to the second passenger flow and the time it takes for the first perception area to reach the M second perception areas. The M second perception areas are areas adjacent to the first perception area determined based on the WiFi node topology map, where passenger flow can come from the first perception area and are covered by WiFi nodes.
[0009] In a second aspect, an embodiment of the present application provides a passenger flow determination device, including:
[0010] A first acquisition module, for acquiring at least one of a first passenger flow and a second passenger flow, when the first perception area is determined to be an area covered by the visual device and the WiFi node based on a pre-stored WiFi node topology map and a visual device distribution map, wherein the first passenger flow is the passenger flow in a first direction in the first perception area at a first moment determined based on the visual technology, and the second passenger flow is the passenger flow in a second direction in the first perception area at a second moment determined based on the visual technology, the first direction and the second direction are directions relative to the visual device, the first direction is a direction facing the visual device, and the second direction is a direction facing away from the visual device;
[0011] a first determination module, which, when the first passenger flow is obtained and the first passenger flow is greater than 0, determines the passenger flow of the N second perception areas toward the first direction at a third moment according to the first passenger flow and the time it takes for the N second perception areas to reach the first perception area, wherein the N second perception areas are areas adjacent to the first perception area determined based on the WiFi node topology map, to which passenger flow can flow and covered by WiFi nodes;
[0012] The second determination module is used to determine the passenger flow of the M second perception areas toward the second direction at a fourth moment according to the second passenger flow and the time it takes for the first perception area to reach the M second perception areas when the second passenger flow is obtained and the second passenger flow is greater than 0. The M second perception areas are areas adjacent to the first perception area determined based on the WiFi node topology map, where passenger flow can come from the first perception area and are covered by WiFi nodes.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the passenger flow determination method as described in the first aspect.
[0014] Fourthly, an embodiment of the present application provides a readable storage medium, on which a program or instructions are stored, and when the program or instructions are executed by a processor, the steps of the passenger flow determination method described in the first aspect are implemented.
[0015] In an embodiment of the present application, based on vision technology, the passenger flow volume (the first passenger flow volume) in the first direction of the first sensing area at the first moment is determined, and / or based on vision technology, the passenger flow volume (the second passenger flow volume) in the second direction of the first sensing area at the second moment is determined. According to the pre-stored WiFi node topology map, it can be known that the first passenger flow volume comes from N adjacent second sensing areas, and the passenger flow corresponding to the second passenger flow volume will reach M adjacent second sensing areas in the future. According to the first passenger flow volume and the duration for N second sensing areas to reach the first sensing area, without the need to identify the passenger flow direction of the N second sensing areas according to vision technology, the passenger flow volume in the first direction of the N second sensing areas at the third moment can be determined; according to the second passenger flow volume and the duration for the first sensing area to reach the M second sensing areas, without the need to detect the passenger flow direction of the M second sensing areas according to vision technology, the passenger flow volume in the second direction of the M second sensing areas at the fourth moment can be determined. It can be seen that the embodiment of the present application can reduce the application of vision technology when determining the passenger flow direction, so as to take into account the cost of determining passenger flow information while determining the passenger flow direction. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments of the present application. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained according to these drawings.
[0017] Figure 1 It is a flowchart of a passenger flow determination method provided by an embodiment of the present application;
[0018] Figure 2 It is an architecture diagram of a passenger flow volume calculation system provided by an embodiment of the present application;
[0019] Figure 3 It is a WiFi node topology map provided by an embodiment of the present application;
[0020] Figure 4 It is a schematic diagram of each sensing area provided by an embodiment of the present application;
[0021] Figure 5 It is provided by an embodiment of the present application based on Figure 4 Determined WiFi node topology map;
[0022] Figure 6 Structural diagram of a passenger flow determination device provided by an embodiment of the present application;
[0023] Figure 7 Structural diagram of an electronic device provided by an embodiment of the present application. Specific embodiments
[0024] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0025] Terms such as "first" and "second" in the specification and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such terms can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of the same type, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally means that the associated objects before and after are in an "or" relationship.
[0026] For ease of understanding, the following explains the relevant content of the present application.
[0027] Currently, passenger flow monitoring technologies mainly include vision-based passenger flow monitoring technology and wireless passive perception-based passenger flow monitoring technology. The vision-based passenger flow monitoring technology mainly obtains passenger flow information such as passenger flow volume and passenger flow direction through image processing and computer vision technologies. The wireless passive perception-based passenger flow monitoring technology mainly obtains the passenger flow volume by analyzing the propagation characteristics of wireless signals. However, the vision-based passenger flow monitoring technology has high deployment costs and computing power costs because it requires the deployment of intelligent cameras and consumes a large amount of computing power, and is easily interfered by factors such as occlusion and light, resulting in a decrease in the accuracy of passenger flow volume counting; although the wireless passive perception-based passenger flow monitoring technology has low costs and can be deployed on a large scale, it can only detect the passenger flow volume and cannot detect the direction of passenger flow. Based on the problem that the cost of determining passenger flow information and the passenger flow direction cannot be balanced in the above-mentioned related technologies, the embodiments of the present application provide a passenger flow determination method, device, electronic device and readable storage medium.
[0028] Next, in conjunction with the accompanying drawings, the passenger flow determination method, device, electronic device and readable storage medium provided by the embodiments of the present application will be described in detail through specific embodiments and their application scenarios.
[0029] See also Figure 1 , Figure 1 is a flow chart of a passenger flow determination method provided in an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:
[0030] Step 101: When it is determined based on a pre-stored WiFi node topology map and a visual device distribution map that the first perception area is an area covered by visual devices and WiFi nodes, at least one of a first passenger flow and a second passenger flow is obtained, wherein the first passenger flow is a passenger flow in a first direction in the first perception area at a first moment determined based on visual technology, and the second passenger flow is a passenger flow in a second direction in the first perception area at a second moment determined based on visual technology, and the first direction and the second direction are directions relative to the visual device, the first direction is a direction facing the visual device, and the second direction is a direction facing away from the visual device;
[0031] Step 102: when the first passenger flow is obtained and the first passenger flow is greater than 0, determine the passenger flow of the N second perception areas toward the first direction at a third moment according to the first passenger flow and the time it takes for the N second perception areas to reach the first perception area, wherein the N second perception areas are areas adjacent to the first perception area determined based on the WiFi node topology map, to which passenger flow can flow and covered by WiFi nodes;
[0032] Step 103. When the second passenger flow is obtained and the second passenger flow is greater than 0, determine the passenger flow of the M second perception areas toward the second direction at the fourth moment according to the second passenger flow and the time it takes for the first perception area to reach the M second perception areas. The M second perception areas are areas adjacent to the first perception area determined based on the WIFI node topology map, where passenger flow can come from the first perception area and are covered by WiFi nodes.
[0033] It should be noted that the passenger flow determination method provided in the embodiment of the present application can be applied to a passenger flow determination device, or to an electronic device, etc. For better understanding, the technical solution provided in the present application will be specifically described below by taking the method applied to a passenger flow determination device (hereinafter referred to as the device) as an example.
[0034] In step 101, the WiFi node topology map is pre-stored in the device. The WiFi node topology map is used to represent the areas covered by each WIFI node and the possible directions of passenger flow between the areas covered by each WIFI node. A WiFi node can also be referred to as a WIFI access point (AP).
[0035] The visual device distribution map is also pre-stored in the device. The visual device distribution map is used to represent the distribution of visual devices and the areas covered by the visual devices. Visual devices include, for example, cameras.
[0036] The first sensing area is the area jointly covered by the visual device and the WIFI node. Thus, the passenger flow information of the first sensing area can be determined based on the wireless passive sensing technology and the vision technology.
[0037] For ease of understanding, the following provides a passenger flow calculation system to illustrate how the embodiments of the present application determine passenger flow information based on the wireless passive sensing technology and the vision technology.
[0038] See Figure 2 , the passenger flow calculation system includes four parts: a sensing device layer, an access layer, a basic algorithm layer, and a fusion calculation layer. The device in the embodiments of the present application is applied to the fusion calculation layer.
[0039] The sensing device layer includes visual devices and WiFi APs. Visual devices usually need to support the RTSP protocol, and there can be one or more visual devices. There are multiple WIFI APs, which usually need to have the wireless probe function.
[0040] The access layer is used to access the data collected by the sensing device layer. The access layer includes a CV video stream acquisition module and a WiFi uplink signal acquisition module. Among them, the CV video stream acquisition module uses the RSTP protocol supported by the visual device to acquire the video stream and delivers the video stream to the basic algorithm layer for processing. The WiFi uplink signal acquisition module uses the public wireless probe interface of the WiFi AP (such as a commercial WiFi AP) to obtain the WiFi uplink signals of mobile terminals within the coverage of the WiFi AP and parse their features (including signal features such as timestamps, MAC addresses of the WiFi APs reporting information, MAC addresses of the WiFi devices being sensed, and signal strengths), and transmits them to the basic algorithm layer for processing.
[0041] The basic algorithm layer includes a CV orientation detection module based on visual technology. The CV orientation detection module uses computer vision algorithms to detect the orientation of people in video data. The CV orientation detection module can output detection timestamps, IP addresses of detection visual devices, virtual IDs of detected people, pixel coordinates of detected people, orientations of detected people, orientation confidence, and overall confidence of images, etc. The basic algorithm layer also includes a WiFi crowd counting module based on wireless passive sensing technology. The WiFi crowd counting module uses the wireless features and statistical models reported by the access layer to abstract the relationship between wireless uplink signal features and the number of people, infer the number of people in the WiFi sensing area, and report it to the fusion calculation module. The WiFi crowd counting module can ultimately output detection timestamps, sensing area numbers, number of people in the sensing area, and detection confidence, etc.
[0042] The fusion computing layer is the application layer of the passenger flow determination method provided in the embodiment of the present application. The fusion computing layer can obtain passenger flow information from the basic algorithm layer. Among them, the basic algorithm layer does not need to actively determine the passenger flow information based on visual technology and wireless passive sensing technology. When the fusion computing layer needs to obtain relevant passenger flow information (the fusion computing layer sends relevant instructions to the basic algorithm layer), the relevant passenger flow information is calculated based on the needs of the fusion computing layer to save settlement resources. For example: When the fusion computing layer in the embodiment of the present application needs to obtain the above-mentioned first passenger flow and second passenger flow, the CV direction detection module in the basic algorithm layer calculates and outputs the first passenger flow and the second passenger flow according to the needs.
[0043] The first passenger flow is the passenger flow in the first direction in the first perception area at the first moment determined based on the visual technology, and the second passenger flow is the passenger flow in the second direction in the first perception area at the second moment determined based on the visual technology. The first moment and the second moment may be equal or unequal, and the first direction and the second direction are two directions of the visual device relative to the first perception area, the first direction is the direction facing the visual device, and the second direction is the direction facing away from the visual device. Figure 3 As shown, Figure 3 is a WIFI node topology diagram provided in an embodiment of the present application, the y area is the first sensing area, and the first direction is Figure 3 The arrow direction in the middle points to the y region, and the second direction is Figure 3 The arrows in the y area point to other areas.
[0044] In the embodiment of the present application, it is assumed that the flow of people in the sensing area will maintain a uniform speed and will not change the direction of travel.
[0045] Thus, when the first passenger flow volume in the first direction at the first moment in the first sensing area is not zero, the first passenger flow volume comes from N second sensing areas adjacent to the first sensing area, where N is a positive integer, and the passenger flow directions of the N second sensing areas at least include the direction towards the first sensing area. After determining the first passenger flow volume, based on the duration for the N second sensing areas to reach the first sensing area, the passenger flow volume in the first direction at the third moment in the N second sensing areas can be deduced in reverse, where the third moment can be equal to the first moment minus the duration for the N second sensing areas to reach the first sensing area. When M is greater than 1, the average value of the durations for the N second sensing areas to reach the first sensing area respectively can be determined as the duration for the N second sensing areas to reach the first sensing area.
[0046] When the second passenger flow volume in the second direction at the second moment in the second sensing area is not zero, the crowd corresponding to the second passenger flow volume will move towards M second sensing areas adjacent to the first sensing area, where M is a positive integer, and the passenger flow directions of the M second sensing areas at least include the direction from the first sensing area towards the M second sensing areas. N and M may be equal or unequal. After determining the second passenger flow volume, based on the duration for the first sensing area to reach the M second sensing areas, the passenger flow volume in the second direction at the fourth moment in the M second sensing areas can be deduced in reverse, where the fourth moment can be equal to the second moment plus the duration for the first sensing area to reach the M second sensing areas. When M is greater than 1, the average value of the durations for the first sensing area to reach the M second sensing areas respectively can be determined as the duration for the first sensing area to reach the M second sensing areas.
[0047] For the sake of easy understanding, the following combines Figure 3 to give an exemplary illustration of how to determine the passenger flow direction of the second sensing area.
[0048] As Figure 3 described, the y area is the first sensing area, and the x area is the second sensing area. The passenger flow direction of the x area includes both the first direction and the second direction. Assume that the passenger flow volume in the first direction of the y area at the t moment is W x / y , and the duration from the x area to the y area is t1. If the passenger flow volume in the first direction of the y area at the t moment comes from the x area, then it can be determined that the passenger flow volume in the first direction of the x area at the (t - t1) moment is equal to W x / y . Assume that the passenger flow volume in the second direction of the y area at the t moment is W y / x , and the duration from the y area to the x area is t1. The passenger flow in the second direction of the y area at the t moment will move towards the x area, then it can be determined that the passenger flow volume in the second direction of the x area at the (t + t1) moment is equal to W y / x .
[0049] In the embodiments of the present application, without the need to detect the passenger flow directions of M second sensing regions and N second sensing regions according to vision technology, it is possible to determine the passenger flow in the N second sensing regions towards the first direction and the passenger flow in the M second sensing regions towards the second direction. It can be seen that the embodiments of the present application can reduce the application of vision technology, thereby being able to take into account the cost of determining passenger flow information while determining the passenger flow direction.
[0050] Optionally, the method further includes:
[0051] When there is a first target sensing region in the N second sensing regions, obtain the passenger flow volume of the first target sensing region at the third moment determined based on wireless passive sensing technology. The first target sensing region is a sensing region whose passenger flow direction determined based on the WiFi node topology map further includes a third direction, and the third direction is a direction other than the first direction relative to the first target sensing region;
[0052] According to the passenger flow volume of the first target sensing region at the third moment and the passenger flow volume of the first target sensing region towards the first direction at the third moment, determine the passenger flow volume of the first target sensing region towards the third direction at the third moment.
[0053] The first target sensing region is a sensing region whose passenger flow direction determined based on the WiFi node topology map further includes a third direction. The third direction is a direction other than the first direction relative to the first target sensing region. Given that the first direction is the direction of the vision device towards the first sensing region, the passenger flow volume in the third direction within the first target sensing region is: the passenger flow volume towards other directions outside the first sensing region within the first target sensing region.
[0054] When there is a first target sensing region, obtain the passenger flow volume of the first target sensing region at the third moment determined based on wireless passive sensing technology. The passenger flow volume of the first target sensing region at the third moment is equal to the sum of the passenger flow volume of the first target sensing region towards the first direction and the passenger flow volume towards the third direction at the third moment.
[0055] According to the above embodiments, the passenger flow volume of the N second sensing regions towards the first direction at the third moment has been determined. When N is 1, the N second sensing regions are the first target sensing region. When N is greater than 1, the passenger flow volume of the first target sensing region towards the first direction at the third moment can be determined based on the following method.
[0056] Method 1: Determine by the following formula:
[0057]
[0058] In the formula, Wx / y The passenger flow of the first target sensing area in the third moment towards the first direction, W N / y is the passenger flow of N second sensing areas in the third moment towards the first direction.
[0059] The above formula takes the average value of the passenger flow of N second sensing areas in the third moment towards the first direction to obtain the passenger flow of the first target sensing area in the third moment towards the first direction.
[0060] Method 2: Determine through the following formula:
[0061] W x / y = W N / y ×W x (2)
[0062] In the formula, W x / y is the passenger flow of the first target sensing area in the third moment towards the first direction, W N / y is the passenger flow of N second sensing areas in the third moment towards the first direction, W x is the weight of the passenger flow of the first target sensing area towards the first direction in the third moment.
[0063] W x can be calculated according to the historical data of the sensing area. For example, according to the historical passenger flow data of the sensing area, it is determined that during the morning rush hour, 80% of the passenger flow in the first sensing area comes from the first target sensing area among N second sensing areas; during the evening rush hour, 10% of the passenger flow in the first sensing area comes from the first target sensing area; during the periods other than the morning and evening rush hours, 50% of the passenger flow in the first sensing area comes from the first target sensing area; if the first moment is during the morning rush hour, W x is 80%.
[0064] Determining the weight W according to the historical data of the sensing area through Method 2 x is beneficial to improving the accuracy of W x / y .
[0065] When the passenger flow of the first target sensing area in the third moment has been obtained and the passenger flow of the first target sensing area towards the first direction in the third moment is known, the passenger flow of the first target sensing area towards the third direction in the third moment can be calculated.
[0066] In the embodiments of the present application, by combining the passenger flow volume of the first target sensing area determined based on the wireless passive sensing technology, and through the relationship among the passenger flow volume of the first target sensing area at the third moment, the passenger flow volume of the first target sensing area towards the first direction at the third moment, and the passenger flow volume towards the third direction, it is possible to determine the passenger flow volume of the first target sensing area towards the third direction at the third moment without further using vision technology to detect passenger flow information, which is beneficial to saving computing resources and enriching passenger flow information.
[0067] To better understand the determination of the passenger flow volume of the first target sensing area towards the third direction at the third moment, the following will be described by way of example in conjunction with Figure 4 and Figure 5 for illustrative purposes.
[0068] See Figure 4 , Figure 4 which is a schematic diagram of the sensing area. Figure 4 In , the y area is the first sensing area, CV is a vision device set in the y area, and the y area is the area at the entrance and exit of the passage. The x area is also the second sensing area at the entrance and exit of the passage. The z area is the second sensing area at the subway entrance. The passenger flow direction at the entrance and exit of the passage is not limited (it can enter the subway or exit the subway), and only passengers can enter the subway at the subway entrance.
[0069] Based on Figure 4 , the WiFi node topology diagram corresponding to Figure 4 is as shown in Figure 5 . The passenger flow direction in the z area does not include the direction towards the y area (the first direction), and the passenger flow direction in the z area includes the direction from the y area towards the x area (i.e., the direction away from the vision device in the y area: the second direction). Therefore, the z area does not belong to the above N second sensing areas, but belongs to the above M second sensing areas. The passenger flow direction in the x area includes the third direction except for the first direction (the direction towards the y area). Therefore, the x area is the first target sensing area in the embodiments of the present application. According to Figure 5 , it can be known that in addition to the passenger flow direction towards the y area, the x area also includes the direction towards the z area and the direction away from the y area. Therefore, the third direction of the x area includes: the direction from y towards x and the direction from x towards z.
[0070] Therefore, there is:
[0071] W (x) (t) = W x / y (t) + W x / z (t) + W y / x (t ′ ) (3)
[0072] In the formula, t is the third moment, t ′The time representing the flow of people from area y to area x at the corresponding time t, W (x) W(t) is the passenger flow in the first target sensing area at the third time determined based on the wireless passive sensing technology, W x / y W(t) is the passenger flow in the first target sensing area at the third time towards the first direction, W x / z W(t)+W y / x (t ′ ) The passenger flow in the first target sensing area at the third time towards the third direction.
[0073] In some embodiments, the passenger flow in the directions of area x and area y towards outside the channel can be ignored. Therefore, we have:
[0074] W(t) = W x / y (t)+W x / z (t)+W y / z (t)+W y / x (t) (4)
[0075] W(t) is the total passenger flow in area x and area y at time t determined based on the wireless probe technology, W x / y (t) is known, W y / z (t)+W y / x (t) is the passenger flow in area y towards the second direction at the third time determined based on the vision technology. Therefore, according to formula 4, W x / z (t) can be determined. Furthermore, by substituting W x / z (t) into formula 3, W y / x (t ′ ) can be determined. Based on the relationship between t and t ′ , when W y / x (t ′ ) has been determined, W y / x (t) can be obtained. Finally, according to equation formula 4, W y / z (t) can be obtained.
[0076] Thus, in this embodiment, the passenger flow in area x towards any direction and the passenger flow in area y towards any direction can be obtained through formula 3 and formula 4.
[0077] Optionally, the method further includes:
[0078] When there is a second target sensing area in the M second sensing areas, obtaining the passenger flow in the second target sensing area at the fourth time determined based on the wireless passive sensing technology. The second target sensing area is a sensing area whose passenger flow direction based on the WiFi node topology diagram further includes a fourth direction, and the fourth direction is a direction other than the second direction relative to the second target sensing area;
[0079] Determine the passenger flow of the second target perception area in the fourth direction at the fourth moment according to the passenger flow of the second target perception area at the fourth moment and the passenger flow of the second target perception area in the second direction at the fourth moment.
[0080] The fourth direction is a direction other than the second direction relative to the second target perception area. For example, Figure 3 as shown, the y area is the first perception area, the x area is the second target perception area, the second direction is the direction from the y area to the x area, and the fourth direction includes the direction from the x area to the y area; as Figure 5 shown, the y area is the first perception area, the x area is the second target perception area, the second direction is the direction from the y area to the x area, and the fourth direction includes the direction from the x area to the y area and the direction from the x area to the z area.
[0081] According to the above embodiments, the passenger flow of the M second perception areas in the second direction at the fourth moment has been determined. When M is 1, the M second perception areas are the second target perception area. When M is greater than 1, the passenger flow of the second target perception area in the second direction at the fourth moment can be determined based on the following method.
[0082] Method 1: Determine by the following formula:
[0083]
[0084] In the formula, W y / x is the passenger flow of the second target perception area in the second direction at the fourth moment, and W y / M is the passenger flow of the M second perception areas in the second direction at the fourth moment.
[0085] The above formula takes the average value of the passenger flow of the M second perception areas in the second direction at the fourth moment to obtain the passenger flow of the second target perception area in the second direction at the fourth moment.
[0086] Method 2: Determine by the following formula:
[0087] W y / x = W y / M ×W X ′ (6)
[0088] In the formula, W y / x is the passenger flow of the second target perception area in the second direction at the fourth moment, W y / M is the passenger flow of the M second perception areas in the second direction at the fourth moment, and W X ′It is the weight of the passenger flow in the second target perception area towards the second direction at the fourth moment.
[0089] W X ′ It can be calculated based on the historical data of the perception area. For example, according to the historical passenger flow data of the perception area, it is determined that during the morning rush hour, 20% of the passenger flow in the first perception area will flow to the second target perception area among the M second perception areas, during the evening rush hour, 60% of the passenger flow in the first perception area will flow to the second target perception area, and during the periods other than the morning and evening rush hours, 50% of the passenger flow in the first perception area will flow to the second target perception area; if the second moment is during the evening rush hour, then W X ′ is 60%.
[0090] Determine the weight W according to the historical data of the perception area by Method 2 X ′ , which is beneficial to improving the y / x accuracy of W.
[0091] In the embodiments of the present application, by combining the passenger flow in the second target perception area determined based on the wireless passive perception technology, through the relationship among the passenger flow in the second target perception area at the fourth moment, the passenger flow in the second target perception area towards the second direction at the fourth moment, and the passenger flow towards the fourth direction, it is possible to determine the passenger flow in the second target perception area towards the fourth direction at the fourth moment without further using visual technology to determine the passenger flow information, which is beneficial to saving computing resources and enriching the passenger flow information.
[0092] Optionally, when both the N second perception areas and the M second perception areas include a third target perception area, and when the third moment and the fourth moment are equal to the target moment, the method further includes;
[0093] Determine the first moment based on the target moment and the duration for the third target perception area to reach the first perception area;
[0094] Determine the second moment based on the target moment and the duration for the first perception area to reach the third target perception area.
[0095] In this embodiment, both the N second perception areas and the M second perception areas include a third target perception area, so the third target perception area is an area where the passenger flow direction includes both the first direction and the second direction. For example Figure 3 and Figure 4 the x area in.
[0096] In the embodiments of the present application, when the third target perception area is included, the third moment and the fourth moment are set equal to the target moment, and the first moment and the second moment are inversely deduced, so that based on the above embodiments, the passenger flows in the first direction and the second direction of the third target perception area at the same moment (the target moment) can be determined, which is beneficial to enriching passenger flow information.
[0097] Optionally, when determining that the passenger flow direction of the third target perception area based on the WiFi node topology map further includes a fifth direction, the method further includes:
[0098] Obtain the passenger flow volume of the third target perception area at the target moment determined based on the wireless passive perception technology;
[0099] According to the passenger flow volume of the third target perception area at the target moment, the passenger flow volume of the third target perception area in the first direction at the target moment, and the passenger flow volume of the third target perception area in the second direction at the target moment, determine the passenger flow volume of the third target perception area in the fifth direction at the target moment, where the fifth direction is a direction other than the first direction and the second direction relative to the third target perception area.
[0100] The fifth direction is a direction other than the first direction and the second direction relative to the third target perception area, that is, the passenger flow of the third target perception area can flow to the first perception area, can come from the first perception area, and can also flow to other perception areas. For example Figure 5 the x area in Figure 5 For the x area in
[0101] In the embodiments of the present application, by combining the passenger flow volume of the third target perception area determined based on the wireless passive perception technology, without further using visual technology to determine passenger flow information, the passenger flow volume of the third target perception area in the fifth direction at the target moment can be determined, which is beneficial to saving computing resources and enriching passenger flow information.
[0102] The embodiments of the present application also provide a passenger flow determination device. Refer to Figure 6 , Figure 6 which is a structural diagram of a passenger flow determination device provided by the embodiments of the present application. As Figure 6 shown, the device 200 includes:
[0103] A first acquisition module 201 is used to acquire at least one of a first passenger flow and a second passenger flow when the first perception area is determined to be an area covered by both the visual device and the WiFi node based on a pre-stored WiFi node topology map and a visual device distribution map, wherein the first passenger flow is the passenger flow in a first direction in the first perception area at a first moment determined based on the visual technology, and the second passenger flow is the passenger flow in a second direction in the first perception area at a second moment determined based on the visual technology, the first direction and the second direction are directions relative to the visual device, the first direction is a direction facing the visual device, and the second direction is a direction facing away from the visual device;
[0104] The first determination module 202 determines the passenger flow of the N second perception areas toward the first direction at a third moment according to the first passenger flow and the time it takes for the N second perception areas to reach the first perception area when the first passenger flow is obtained and the first passenger flow is greater than 0, wherein the N second perception areas are areas adjacent to the first perception area determined based on the WiFi node topology map, to which passenger flow can flow and covered by WiFi nodes;
[0105] The second determination module 203 is used to determine the passenger flow of the M second perception areas toward the second direction at a fourth moment according to the second passenger flow and the time it takes for the first perception area to reach the M second perception areas when the second passenger flow is obtained and the second passenger flow is greater than 0. The M second perception areas are areas adjacent to the first perception area determined based on the WiFi node topology map, where passenger flow can come from the first perception area and are covered by WiFi nodes.
[0106] Optionally, the apparatus 200 further includes:
[0107] A second acquisition module is used to acquire, when there is a first target perception area among the N second perception areas, the passenger flow of the first target perception area determined based on the wireless passive sensing technology at the third moment, wherein the first target perception area is a perception area whose passenger flow direction determined based on the WiFi node topology map also includes a third direction, and the third direction is a direction other than the first direction relative to the first target perception area;
[0108] The third determination module is used to determine the passenger flow of the first target perception area toward the third direction at the third moment according to the passenger flow of the first target perception area at the third moment and the passenger flow of the first target perception area toward the first direction at the third moment.
[0109] Optionally, the apparatus 200 further includes:
[0110] A third acquisition module, configured to, when there is a second target sensing area among the M second sensing areas, acquire the passenger flow volume of the second target sensing area at the fourth moment determined based on the wireless passive sensing technology, where the second target sensing area is a sensing area whose passenger flow direction determined based on the WiFi node topology map further includes a fourth direction, and the fourth direction is a direction other than the second direction relative to the second target sensing area;
[0111] A fourth determination module, configured to determine the passenger flow volume of the second target sensing area at the fourth moment towards the fourth direction according to the passenger flow volume of the second target sensing area at the fourth moment and the passenger flow volume of the second target sensing area towards the second direction at the fourth moment.
[0112] Optionally, the apparatus 200 further includes:
[0113] A fifth determination module, configured to, when both the N second sensing areas and the M second sensing areas include a third target sensing area, and the third moment and the fourth moment are equal to the target moment, determine the first moment based on the target moment and the duration for the third target sensing area to reach the first sensing area;
[0114] A sixth determination module, configured to determine the second moment based on the target moment and the duration for the first sensing area to reach the third target sensing area.
[0115] Optionally, the apparatus 200 further includes:
[0116] A fourth acquisition module, configured to, when the passenger flow direction of the third target sensing area determined based on the WiFi node topology map further includes a fifth direction, acquire the passenger flow volume of the third target sensing area at the target moment determined based on the wireless passive sensing technology;
[0117] A seventh determination module, configured to determine the passenger flow volume of the third target sensing area at the target moment towards the fifth direction according to the passenger flow volume of the third target sensing area at the target moment, the passenger flow volume of the third target sensing area towards the first direction at the target moment, and the passenger flow volume of the third target sensing area towards the second direction at the target moment, where the fifth direction is a direction other than the first direction and the second direction relative to the third target sensing area.
[0118] It should be noted that the apparatus in the embodiments of the present application can implement each process of the passenger flow determination method embodiments described above and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0119] The embodiments of the present application also provide an electronic device 300. Refer to Figure 7 , which includes at least one processor 301, a memory 302, and a computer program stored on the memory 302 and executable on the processor 301. The computer program is executed by the at least one processor 301 to implement each process of the above-mentioned embodiment of the passenger flow determination method, and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0120] The embodiments of the present application also provide a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. The computer program is executed by the processor 301 to implement each process of the above-mentioned embodiment of the passenger flow determination method, and can achieve the same technical effect. To avoid repetition, it will not be elaborated here. The computer-readable storage medium includes a read-only memory (ROM for short), a random access memory (RAM for short), a magnetic disk, an optical disk, etc.
[0121] It should be noted that in this article, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such a process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of another identical element in the process, method, article or device including the element. In addition, it should be pointed out that the methods and devices in the embodiments of the present application are not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0122] The embodiments of the present application have been described above with reference to the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them belong to the protection scope of the present application.
Claims
1. A passenger flow determination method, characterized in that, The method comprises: In the case where the first perception area is determined to be an area covered by the visual device and the WiFi node based on the pre-stored WiFi node topology map and the visual device distribution map, at least one of a first passenger flow and a second passenger flow is obtained, wherein the first passenger flow is the passenger flow in a first direction in the first perception area at a first moment determined based on the visual technology, and the second passenger flow is the passenger flow in a second direction in the first perception area at a second moment determined based on the visual technology, the first direction and the second direction are directions relative to the visual device, the first direction is a direction facing the visual device, and the second direction is a direction facing away from the visual device; When the first passenger flow is obtained and the first passenger flow is greater than 0, the passenger flow of the N second perception areas toward the first direction at a third moment is determined according to the first passenger flow and the time it takes for the N second perception areas to reach the first perception area, wherein the N second perception areas are areas adjacent to the first perception area determined based on the WiFi node topology map, to which passenger flow can flow and covered by WiFi nodes; When the second passenger flow is obtained and the second passenger flow is greater than 0, the passenger flow of the M second perception areas toward the second direction at the fourth moment is determined according to the second passenger flow and the time it takes for the first perception area to reach the M second perception areas. The M second perception areas are areas adjacent to the first perception area determined based on the WiFi node topology map, where passenger flow can come from the first perception area and are covered by WiFi nodes.
2. The method according to claim 1, wherein The method further comprises: In the case where there is a first target sensing area among the N second sensing areas, obtaining the passenger flow of the first target sensing area at the third moment determined based on the wireless passive sensing technology, wherein the first target sensing area is a sensing area whose passenger flow direction determined based on the WiFi node topology map also includes a third direction, and the third direction is a direction other than the first direction relative to the first target sensing area; The passenger flow of the first target perception area toward the third direction at the third moment is determined according to the passenger flow of the first target perception area at the third moment and the passenger flow of the first target perception area toward the first direction at the third moment.
3. The method according to claim 1, wherein The method further comprises: In the case where there is a second target perception area among the M second perception areas, obtaining the passenger flow of the second target perception area at the fourth moment determined based on the wireless passive sensing technology, where the second target perception area is a perception area whose passenger flow direction determined based on the WiFi node topology map also includes a fourth direction, and the fourth direction is a direction relative to the second target perception area that is different from the second direction; The passenger flow of the second target perception area toward the fourth direction at the fourth moment is determined according to the passenger flow of the second target perception area at the fourth moment and the passenger flow of the second target perception area toward the second direction at the fourth moment.
4. The method according to claim 1, characterized in that, In the case where both the N second perception areas and the M second perception areas include a third target perception area, and the third moment and the fourth moment are equal to the target moment, the method further includes: determining the first moment based on the target moment and the time length of time for the third target perception area to reach the first perception area; The second moment is determined based on the target moment and a time length from the first perception area to the third target perception area.
5. The method according to claim 4, wherein In the case where it is determined based on the WiFi node topology map that the passenger flow direction of the third target perception area also includes a fifth direction, the method further includes: Acquire the passenger flow of the third target sensing area at the target time determined based on the wireless passive sensing technology; Based on the passenger flow of the third target perception area at the target time, the passenger flow of the third target perception area toward the first direction at the target time, and the passenger flow of the third target perception area toward the second direction at the target time, the passenger flow of the third target perception area toward the fifth direction at the target time is determined, and the fifth direction is a direction other than the first direction and the second direction relative to the third target perception area.
6. A passenger flow determination device, characterized in that, include: A first acquisition module, for acquiring at least one of a first passenger flow and a second passenger flow, when the first perception area is determined to be an area covered by the visual device and the WiFi node based on a pre-stored WiFi node topology map and a visual device distribution map, wherein the first passenger flow is the passenger flow in a first direction in the first perception area at a first moment determined based on the visual technology, and the second passenger flow is the passenger flow in a second direction in the first perception area at a second moment determined based on the visual technology, the first direction and the second direction are directions relative to the visual device, the first direction is a direction facing the visual device, and the second direction is a direction facing away from the visual device; A first determination module is used to determine the passenger flow of the N second perception areas toward the first direction at a third moment according to the first passenger flow and the time it takes for the N second perception areas to reach the first perception area when the first passenger flow is obtained and the first passenger flow is greater than 0, wherein the N second perception areas are areas adjacent to the first perception area determined based on the WiFi node topology map, to which passenger flow can flow and covered by WiFi nodes; A second determination module, configured to, when the second passenger flow is obtained and the second passenger flow is greater than 0, determine the passenger flow of the M second sensing areas facing the second direction at the fourth moment according to the second passenger flow and the duration for the first sensing area to reach the M second sensing areas, where the M second sensing areas are areas adjacent to the first sensing area, from which the passenger flow can come from the first sensing area, and covered by WiFi nodes, and are determined based on the WiFi node topology map.
7. The device according to claim 6, characterized in that Further included: A second acquisition module, configured to, when there is a first target sensing area in the N second sensing areas, acquire the passenger flow of the first target sensing area at the third moment determined based on the wireless passive sensing technology, where the first target sensing area is a sensing area whose passenger flow direction determined based on the WiFi node topology map further includes a third direction, and the third direction is a direction other than the first direction relative to the first target sensing area; A third determination module, configured to determine the passenger flow of the first target sensing area facing the third direction at the third moment according to the passenger flow of the first target sensing area at the third moment and the passenger flow of the first target sensing area facing the first direction at the third moment.
8. The device according to claim 6, characterized in that Further included: A third acquisition module, configured to, when there is a second target sensing area in the M second sensing areas, acquire the passenger flow of the second target sensing area at the fourth moment determined based on the wireless passive sensing technology, where the second target sensing area is a sensing area whose passenger flow direction determined based on the WiFi node topology map further includes a fourth direction, and the fourth direction is a direction other than the second direction relative to the second target sensing area; A fourth determination module, configured to determine the passenger flow of the second target sensing area facing the fourth direction at the fourth moment according to the passenger flow of the second target sensing area at the fourth moment and the passenger flow of the second target sensing area facing the second direction at the fourth moment.
9. An electronic device, characterized in that, It includes a processor, a memory, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, the steps of the passenger flow determination method according to any one of claims 1 to 5 are implemented.
10. A readable storage medium, characterized in that, A program or instruction is stored on the readable storage medium. When the program or instruction is executed by the processor, the steps of the passenger flow determination method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Passenger flow volume statistics method and device
CN106295788A
People number monitoring method and device, electronic equipment and readable storage medium
CN116012776A
Visual perception method and apparatus, perception network training method and apparatus, device and storage medium
US20210387646A1
Method and device for calculating customer traffic volume
WO2016180323A1