CN113129584B - Method, device and equipment for determining number of passengers and storage medium - Google Patents

Method, device and equipment for determining number of passengers and storage medium Download PDF

Info

Publication number
CN113129584B
CN113129584B CN202010043474.XA CN202010043474A CN113129584B CN 113129584 B CN113129584 B CN 113129584B CN 202010043474 A CN202010043474 A CN 202010043474A CN 113129584 B CN113129584 B CN 113129584B
Authority
CN
China
Prior art keywords
terminal information
vehicle
passengers
information set
moment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010043474.XA
Other languages
Chinese (zh)
Other versions
CN113129584A (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.)
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co 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 China Mobile Communications Group Co Ltd, China Mobile Suzhou Software Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010043474.XA priority Critical patent/CN113129584B/en
Publication of CN113129584A publication Critical patent/CN113129584A/en
Application granted granted Critical
Publication of CN113129584B publication Critical patent/CN113129584B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/0104Measuring and analyzing of parameters relative to traffic conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems

Landscapes

  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Traffic Control Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a method, a device and a storage medium for determining the number of passengers, wherein the method comprises the following steps: the method comprises the steps of obtaining a first terminal information set and a first passenger carrying number of a vehicle at a first moment, wherein the first terminal information set comprises terminal information detected by vehicle-mounted equipment of the vehicle at the first moment, obtaining a second terminal information set and the number of passengers getting on the vehicle between the first moment and a second moment, the second terminal information set comprises terminal information detected by the vehicle-mounted equipment at the second moment, determining the number of passengers getting off the vehicle between the first moment and the second moment according to the first terminal information set, the second terminal information set and the first passenger carrying number, and determining the second passenger carrying number of the vehicle at the second moment according to the number of passengers getting on the vehicle, the number of passengers getting off the vehicle and the first passenger carrying number.

Description

Method, device and equipment for determining number of passengers and storage medium
Technical Field
The application relates to the technical field of smart cities, in particular to a method, a device, equipment and a storage medium for determining the number of passengers.
Background
At present, in most cities of China, a public transport system is an important component of urban passenger transport, and the intelligent degree of public transport operation scheduling plays an important role in the development of the cities. The intelligent bus dispatching system acquires the real-time position and the crowding degree of the bus through data acquisition and processing, and realizes real-time monitoring and efficient dispatching of the bus. With the development of big data and internet +, wi-Fi hotspots can be covered on a large scale on urban public transport vehicles in the future, so that the method for acquiring the bus running data by taking Wi-Fi detection data as a basis has a solid practical foundation and a good application prospect.
The existing scheme for determining the number of passengers carried by a bus through Wi-Fi detection data adopts a bus stop Wi-Fi detection router or a vehicle-mounted Wi-Fi detection router. In the scheme of the station Wi-Fi detection router, the current terminal information of the passengers of the bus is detected after the bus enters the station, and the number of passengers is determined according to the detected terminal information. In the scheme of adopting the vehicle-mounted Wi-Fi detection router, when the number of people getting off is determined, a frequently-adopted method is to investigate and sample with the vehicle, ignore the difference of the number of people taking buses in different lines and different time periods, and ensure that the number of people getting off does not have real-time performance, so that the determined number of people carrying passengers is not accurate enough.
Disclosure of Invention
In view of this, embodiments of the present application provide a method, an apparatus, and a storage medium for determining the number of passengers, which can improve the accuracy of determining the number of passengers.
In a first aspect, an embodiment of the present application provides a method for determining a number of passengers, including: the method comprises the steps of obtaining a first terminal information set and a first passenger carrying number of a vehicle at a first moment, wherein the first terminal information set comprises terminal information detected by vehicle-mounted equipment of the vehicle at the first moment; acquiring a second terminal information set and the number of passengers getting on the vehicle between the first time and a second time, wherein the second terminal information set comprises terminal information detected by the vehicle-mounted equipment at the second time; determining the number of people getting off between the first moment and the second moment according to the first terminal information set, the second terminal information set and the first number of people carrying passengers; and determining the second passenger carrying number of the transportation means at the second moment according to the number of the passengers getting on the vehicle, the number of the passengers getting off the vehicle and the first passenger carrying number.
In a second aspect, an embodiment of the present application provides an apparatus for determining a number of passengers, including: the system comprises a first acquisition module, a second acquisition module and a display module, wherein the first acquisition module is used for acquiring a first terminal information set and a first passenger carrying number of a vehicle at a first moment, and the first terminal information set comprises terminal information detected by vehicle-mounted equipment of the vehicle at the first moment; the second acquisition module is used for acquiring a second terminal information set and the number of the passengers getting on the vehicle between the first moment and the second moment, wherein the second terminal information set comprises terminal information detected by the vehicle-mounted equipment at the second moment; the first determining module is used for determining the number of people getting off between the first moment and the second moment according to the first terminal information set, the second terminal information set and the first number of people carrying passengers; and the second determining module is used for determining the second passenger carrying number of the vehicle at the second moment according to the number of the passengers getting on the vehicle, the number of the passengers getting off the vehicle and the first passenger carrying number.
In a third aspect, an embodiment of the present application provides an apparatus for determining a number of passengers, including: a memory for storing executable instructions; and the processor is used for realizing the method provided by the embodiment of the application when executing the executable instructions stored in the memory.
In a fourth aspect, an embodiment of the present application provides a storage medium storing executable instructions for causing a processor to implement a method provided by an embodiment of the present application when the processor executes the executable instructions.
In the embodiment of the application, the server determines the number of people getting off at the first moment according to the terminal information detected by the vehicle-mounted equipment at the first moment and the number of people carrying passengers at the first moment respectively, so that the number of people getting off at the first moment is determined according to the number of people getting on the vehicle, the number of people getting off at the second moment and the first number of people carrying passengers, and the second number of people carrying passengers at the second moment is determined by the vehicle-mounted equipment.
Drawings
Fig. 1 is a schematic network architecture diagram of a method for determining the number of passengers according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a component of an apparatus for determining the number of passengers according to an embodiment of the present application;
fig. 3 is a schematic flow chart of an implementation of the method for determining the number of passengers according to the embodiment of the present application;
fig. 4 is a schematic flow chart of another implementation of the method for determining the number of passengers provided in the embodiment of the present application;
fig. 5 is a schematic flowchart of another implementation of the method for determining the number of passengers according to the embodiment of the present application;
fig. 6 is a schematic flow chart of still another implementation of the method for determining the number of passengers according to the embodiment of the present application;
fig. 7 is a schematic flowchart of still another implementation of the method for determining the number of passengers according to the embodiment of the present application;
fig. 8 is a schematic flow chart of still another implementation of the method for determining the number of passengers according to the embodiment of the present application;
fig. 9 is a schematic flowchart of still another implementation of the method for determining the number of passengers according to the embodiment of the present application;
fig. 10 is a schematic flow chart of still another implementation of the method for determining the number of passengers according to the embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the accompanying drawings, the described embodiments should not be considered as limiting the present application, and all other embodiments obtained by a person of ordinary skill in the art without making creative efforts fall within the protection scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict. In the following description, references to the terms "first \ second \ third" are only to distinguish similar objects and do not denote a particular order, but rather the terms "first \ second \ third" are used to interchange specific orders or sequences, where appropriate, so as to enable the embodiments of the application described herein to be practiced in other than the order shown or described herein. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application. In order to better understand the embodiments of the present application, a method for determining the number of passengers and the disadvantages thereof in the related art will be described first.
The real-time congestion degree of the bus is a key index for measuring the bus service level, and has an important effect on bus operation scheduling. And calculating the real-time congestion degree of the bus, wherein the real-time passenger carrying number of the bus needs to be determined firstly. At present, the public transport charging modes in most cities are modes that only the bus is on and the card is swiped, the coin is thrown, and the card is not swiped any more when the bus is off. Therefore, the number of passengers in the vehicle is difficult to obtain by only swiping the card and inserting the coins. While others, such as camera video based or foot pedal sensor based approaches to counting passengers are costly. With the development of big data and Internet +, a basis is provided for acquiring real-time passenger carrying data of a bus through Wi-Fi detection data.
In the related technology, a Wi-Fi detection router is arranged at a bus stop, and the stop Wi-Fi detection router is adopted to determine the number of passengers carried by a bus. Specifically, when the bus enters the station, the station Wi-Fi detection router detects the current bus passenger terminal information, and the number of passengers is determined according to the detected terminal information. Because a large number of terminal devices of non-current bus passengers exist around the station, the terminal information detected by the station Wi-Fi detection router not only comprises the terminal information of the passengers of the bus, but also comprises the terminal information of non-passengers around the station, so that a large amount of noise data exists in the detection data sent to the back-end processing platform, and the back-end processing platform is required to further perform denoising processing to reduce the non-passenger terminal information as much as possible, thereby determining the number of passengers. Therefore, in the mode for determining the number of passengers, the amount of noise data detected by the Wi-Fi detection router is huge, the workload of the back-end processing platform is increased, and the detected information of the non-passenger terminals is more, so that the result of the determined number of passengers is influenced.
In the related technology, an on-board Wi-Fi detection router is adopted to detect the current passenger carrying number of a bus, the number of passengers getting on the bus is determined according to the money swiping and the coin inserting, and sample expansion processing is carried out on detection data according to a statistical value so as to estimate the number of passengers getting off the bus, so that the number of passengers is determined. The method for obtaining the statistical value of the estimated number of people getting off the bus is usually a method of following the bus, investigating and sampling, ignoring the difference of the number of people taking the bus in different lines and different time periods, so that the estimated number of people getting off the bus does not have real-time performance, and the result of the determined number of people carrying passengers is not accurate enough.
In the related technology, when the number of passengers carried by the current bus is detected by adopting the vehicle-mounted Wi-Fi detection router, other non-passengers are detected by the vehicle-mounted Wi-Fi detection router when the other non-passengers are close to the vehicle-mounted Wi-Fi detection router, and the related technology does not consider the condition of the terminal equipment of the non-current bus passengers detected by the current bus-mounted Wi-Fi detection router, so that the detected terminal information has noise data, and the result of the number of the passengers is not accurate enough.
Based on the above problems, in the embodiment of the present application, a method for determining the number of passengers is provided, in which a server obtains the number of passengers before the bus is entered and a first terminal information set detected by a vehicle-mounted device before the bus is entered, obtains the number of passengers getting on the bus at the bus and a second terminal information set detected by the vehicle-mounted device after the bus is left, and then estimates the number of passengers getting off the bus at the bus according to the first terminal information set, the second terminal information set and the number of passengers before the bus is entered, so that the number of passengers getting on the bus at the bus can be determined according to the number of passengers getting on the bus, the number of passengers getting off the bus and the number of passengers before the bus is entered, and the number of passengers getting off the bus after the bus is left.
An exemplary application of the apparatus implementing the embodiment of the present application is described below, and the apparatus provided in the embodiment of the present application may be implemented as a terminal device. In the following, exemplary applications covering terminal devices when the apparatus is implemented as a terminal device will be explained.
Referring to fig. 1, fig. 1 is a schematic diagram of a network architecture of a method for determining the number of passengers in an embodiment of the present application, and as shown in fig. 1, the network architecture at least includes a server 100, a Wi-Fi detection router 200, a network 300, a user terminal 400, and a collection device 500. To support an exemplary application, the server 100 connects the Wi-Fi probe router 200 and the acquisition device 500 through the network 300, and the Wi-Fi probe router 200 probes the user terminal 400 through the network 300. The network 300 may be a wide area network or a local area network, or a combination of both, using wireless links for data transmission.
The server 100 obtains a first terminal information set and a first number of people carrying passengers from data stored in the server before the server, wherein the first terminal information set comprises terminal information detected by the Wi-Fi detection router 200 at a first moment, and the first number of people carrying passengers is the number of people carrying passengers on the vehicle at the first moment. At the second time, the Wi-Fi probe router 200 probes the user terminals 400 on the vehicle through the network 300, determines the terminal information of the plurality of user terminals 400 detected at the second time as a second terminal information set, and transmits the second terminal information set to the server 100 through the network 300. Meanwhile, the collecting device 500 collects the number of the persons getting on the vehicle between the first time and the second time, and sends the number of the persons getting on the vehicle to the server 100 through the network 300 (or the collecting device 500 can also send the number of the persons getting on the vehicle to the Wi-Fi detection router 200 through the network 300 or an internal circuit, and then the Wi-Fi detection router 200 sends the number of the persons getting on the vehicle to the server 100), the server 100 determines the number of the persons getting off the vehicle between the first time and the second time according to the first terminal information set, the second terminal information set and the first number of the persons carrying the vehicle, and then the server 100 determines the second number of the persons carrying the vehicle at the second time according to the number of the persons getting on the vehicle, the number of the persons getting off the vehicle and the first number of the persons carrying the vehicles.
The apparatus provided in the embodiments of the present application may be implemented as hardware or a combination of hardware and software, and various exemplary implementations of the apparatus provided in the embodiments of the present application are described below.
Other exemplary configurations of the apparatus for determining the number of passengers 100 can be envisioned from the exemplary configuration of the apparatus for determining the number of passengers 100 shown in fig. 2, and thus the configuration described herein should not be construed as a limitation, e.g., some of the components described below may be omitted, or components not described below may be added to accommodate the particular needs of certain applications.
The apparatus for determining the number of passengers 100 shown in fig. 2 includes: at least one processor 110, memory 140, at least one network interface 120, and a user interface 130. Each of the components in the people mover determination device 100 are coupled together by a bus system 150. It will be appreciated that the bus system 150 is used to enable communications among the components of the connection. The bus system 150 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 150 in fig. 2. The user interface 130 may include a display, a keyboard, a mouse, a touch-sensitive pad, a touch screen, and the like. The memory 140 may be either volatile memory or nonvolatile memory, and may also include both volatile and nonvolatile memory. The non-volatile Memory may be a Read Only Memory (ROM). The volatile Memory may be a Random Access Memory (RAM). The memory 140 described in embodiments herein is intended to comprise any suitable type of memory.
The memory 140 in the embodiment of the present application is capable of storing data to support the operation of the apparatus 100 for determining the number of passengers. Examples of such data include: any computer program, such as an operating system and an application program, for operating on the device 100 for determining the number of passengers. The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application program may include various application programs.
As an example of the method provided by the embodiment of the present application implemented by software, the method provided by the embodiment of the present application may be directly embodied as a combination of software modules executed by the processor 110, the software modules may be located in a storage medium located in the memory 140, and the processor 110 reads executable instructions included in the software modules in the memory 140, and completes the method provided by the embodiment of the present application in combination with necessary hardware (for example, including the processor 110 and other components connected to the bus 150).
By way of example, the Processor 110 may be an integrated circuit chip having Signal processing capabilities, such as a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like, wherein the general purpose Processor may be a microprocessor or any conventional Processor, or the like.
The method for determining the number of passengers provided by the embodiment of the present application will be described with reference to exemplary applications and implementations of the terminal provided by the embodiment of the present application. Referring to fig. 3, fig. 3 is a schematic flow chart of an implementation of the method for determining the number of passengers provided in the embodiment of the present application, which is applied to the apparatus for determining the number of passengers shown in fig. 1 and will be described with reference to the steps shown in fig. 3.
The vehicle has zero passenger count before starting. After the vehicle-mounted device is started, the vehicle-mounted device on the vehicle starts to work, the number of people getting on the vehicle is obtained by the vehicle-mounted device every a period of time, and terminal information is detected. The time interval for acquiring the number of boarding persons can be determined according to the time of opening or closing the door, for example, the number of boarding persons in the time period from the last time the door is opened to the time the door is opened is acquired before the door is opened once. The time for opening and closing the door can be obtained by a sensor at the door or by a vehicle control system. Alternatively, the time interval for acquiring the number of boarding persons may be determined according to the parking points of the vehicle, for example, the number of boarding persons in the time period from the departure from the previous parking point to the departure from the current parking point is acquired every time one parking point is reached. Whether the vehicle arrives at the parking spot may be determined by a device on board the vehicle (e.g., global positioning system GPS) or by a detection device installed at the parking spot. The time interval for detecting the terminal information may be periodic detection, for example, once every 5s (seconds).
In this embodiment, when the number of passengers getting on the bus is obtained, the number of passengers getting on the bus can be determined according to the number of coin-freed passengers and the number of passengers swiping a card in a time period from the last time before the door is opened to the time before the door is opened. When the vehicle-mounted device detects the terminal information, the detectable terminal is determined, and when a passenger opens a network of the terminal, the terminal can be detected by the vehicle-mounted terminal, so that the passenger can be determined to be on the vehicle. If the passenger does not open the network of the terminal of the passenger, the vehicle-mounted device cannot detect the terminal, and whether the passenger is on the vehicle cannot be determined. The vehicle-mounted terminal determines the terminals which can be detected by the vehicle-mounted terminal as the terminals of passengers, and obtains the terminal information of the terminals of the passengers.
And after the number of the passengers getting on the bus and the terminal information are obtained, the vehicle-mounted equipment sends the obtained number of the passengers getting on the bus and the detected terminal information to the server. The server receives and stores the number of the passengers getting on the bus and the terminal information, and determines the number of the passengers according to the number of the passengers getting on the bus and the terminal information.
In order to avoid occupying the network for a long time, the vehicle-mounted equipment can send the current latest detected terminal information and the current number of people getting on the bus to the server after acquiring the number of people getting on the bus every time, so that the network is prevented from being occupied for a long time, the detected terminal information is not required to be uploaded every 5s, and the data volume of network transmission is reduced.
Step S301, a first terminal information set and a first passenger carrying number of the vehicle at a first moment are obtained.
Wherein the first terminal information set includes terminal information detected by an onboard device of the vehicle at the first time. When an instruction for determining the number of passengers carried by the current vehicle at the current moment is received, the server acquires terminal information detected by vehicle-mounted equipment of the vehicle at a first moment from all the number of passengers and terminal information of the current vehicle after the current vehicle is started, wherein the first moment is the next closest moment to the current moment in all the moments for receiving the number of passengers and the terminal information. Meanwhile, the server obtains the first passenger carrying number of the vehicle at the first moment determined by the server.
And step S302, acquiring a second terminal information set and the number of the passengers getting on the train between the first moment and the second moment.
Here, the second terminal information set includes the terminal information detected by the in-vehicle apparatus at the second time. After the first terminal information set and the first passenger carrying number are obtained, the server obtains terminal information detected by vehicle-mounted equipment of the vehicle at a second moment and the number of passengers getting on the vehicle from the first moment to the second moment from all the number of passengers getting on the vehicle and the terminal information stored by the server after the current vehicle is started, wherein the second moment is the moment closest to the current moment in all the moments for receiving the number of passengers getting on the vehicle and the terminal information. That is, the second time is the closest reception time to the current time, and the first time is the last reception time of the second time.
In this embodiment, since the vehicle-mounted device is used to detect the terminal information, compared with the existing detection of the terminal information by the station device, the detected non-passenger terminal information is greatly reduced, and thus the workload of processing the noise data of the non-passenger terminal information by the server is reduced.
And step S303, determining the number of people getting off between the first moment and the second moment according to the first terminal information set, the second terminal information set and the first passenger carrying number.
The passengers of the transportation means get on or off the vehicle between the first time and the second time, so that the terminal information in the first terminal information set is different from the terminal information in the second terminal information set, and the number of the passengers getting off the vehicle between the first time and the second time can be estimated according to the first terminal information set, the second terminal information set and the first number of passengers. Since the present embodiment is implemented on the premise of acquiring a large amount of data of the transportation, the individual difference is not considered, and therefore, the estimated number of people to get off can be used as the actual number of people to get off.
In the embodiment, the number of the people getting off is calculated according to the real-time passenger carrying information of the vehicle, and compared with the existing mode of determining the number of the people getting off through car following investigation sampling, the accuracy rate of the determined number of the people getting off is improved.
And S304, determining a second passenger carrying number of the vehicle at the second moment according to the number of the passengers getting on the vehicle, the number of the passengers getting off the vehicle and the first passenger carrying number.
The number of passengers of the vehicle at the first moment is obtained, and the second number of passengers of the vehicle at the second moment can be calculated after the number of passengers getting on and off the vehicle between the first moment and the second moment.
Further, the server stores the second terminal information set and the second passenger number of the vehicle at the second time so as to obtain the passenger number of the vehicle at the subsequent time.
In this embodiment, the server determines the number of people getting off between the first time and the second time according to the terminal information and the number of people carrying passengers at the first time, which are detected by the vehicle-mounted device at the first time and the second time, respectively, and determines the second number of people carrying passengers of the transportation tool at the second time according to the number of people getting on, the number of people getting off and the first number of people carrying passengers. Because the vehicle-mounted equipment is adopted for detecting the terminal information, compared with the existing station equipment for detecting the terminal information, the detected non-passenger terminal information is greatly reduced, so that the workload of processing the noise data of the non-passenger terminal information by the server is reduced, the number of people getting off is calculated according to the real-time passenger carrying information of the transportation means, the estimated accuracy of the number of people getting off is improved, and the determined number of people getting off is more accurate.
On the basis of the embodiment shown in fig. 3, the embodiment of the present application further provides a method for determining the number of passengers. Fig. 4 is a schematic flow chart of another implementation of the method for determining the number of people carrying passengers according to the embodiment of the present application, which is applied to the apparatus for determining the number of people carrying passengers shown in fig. 1 and will be described with reference to the steps shown in fig. 4.
Step S401, a first terminal information set and a first passenger carrying number of the vehicle at a first time are obtained.
Wherein the first terminal information set includes terminal information detected by an onboard device of the vehicle at the first time.
Step S401, step S405 to step S407 in this embodiment refer to the description of corresponding parts in the embodiment shown in fig. 3, which is not repeated herein. Steps S402 to S406 are an implementation manner of "acquiring the second terminal information set", and specifically, the following steps are performed:
and step S402, receiving the detection terminal information set detected at the second moment and sent by the vehicle-mounted equipment.
Here, the detection terminal information in the detection terminal information set includes the detected terminal information and a corresponding time stamp. The method comprises the steps that when the vehicle-mounted equipment is used for detecting, detection is carried out once every 5s, if a certain currently detected terminal does not exist in a last detected terminal set, the terminal is determined to be the terminal detected for the first time, terminal information of the detected terminal is obtained, and the current detection time is determined to be a time stamp corresponding to the detected terminal information. And if the currently detected terminal also exists in the last detected terminal, the terminal information of the detected terminal and the timestamp corresponding to the terminal information are unchanged.
In this embodiment, when the vehicle-mounted device sends the detected terminal information to the server, the time when the terminal is detected for the first time, that is, the timestamp corresponding to the detected terminal information, is sent to the server, so that the server can determine the time length for detecting the terminal according to the timestamp corresponding to the detected terminal information.
Step S403, determining a detection duration of each detected terminal information according to the timestamp corresponding to each detected terminal information and the second time.
The server determines the detection duration of receiving all the detected terminal information in the detected terminal information set at the second time, and specifically, takes the difference between the time stamps corresponding to the second time and the detected terminal information as the detection duration of the detected terminal information.
Step S404, determining the detected terminal information with the detection duration greater than the time threshold as the terminal information in the second terminal information set.
Because the passenger on the vehicle gets off the front, the terminal that it held is on the car all the time, consequently can be detected by on-vehicle equipment all the time, and the detection duration is generally longer. Due to the fact that passengers on the non-current vehicle move continuously, the terminals of the passengers on the non-current vehicle can be detected by the vehicle-mounted equipment only when the distance between the terminals and the current vehicle is very short, and the detection time is generally very short. Based on this, the embodiment may determine whether the terminal corresponding to the detected terminal information is the terminal on the current vehicle according to the detection duration of the detected terminal information, that is, determine whether the user holding the terminal is a passenger on the current vehicle. And when the detection duration of the detected terminal information is greater than the time threshold, determining that the owner of the terminal corresponding to the detected terminal information is the passenger on the current vehicle, and determining the detected terminal information as the terminal information in the second terminal information set. Otherwise, determining that the holder of the terminal corresponding to the detected terminal information is not a passenger on the current vehicle. And judging all the detected terminal information in the detection terminal information set to obtain terminal information in a second terminal information set, wherein the holders of the terminals corresponding to the terminal information in the second terminal information set are all passengers on the current vehicle.
And step S405, acquiring the number of the passengers getting on the train between the first moment and the second moment.
And S406, determining the number of people getting off between the first moment and the second moment according to the first terminal information set, the second terminal information set and the first number of people carrying passengers.
And step S407, determining a second passenger carrying number of the vehicle at the second moment according to the number of the passengers getting on the vehicle, the number of the passengers getting off the vehicle and the first passenger carrying number.
In this embodiment, the server determines the second terminal information set according to the detection terminal information set received at the second moment, and determines the terminal information with the detection time length longer than the time threshold value in the detection terminal information set as the terminal information in the second terminal information set, thereby excluding passengers not belonging to the current transportation means, reducing the detected non-passenger terminal information, and improving the accuracy of the determined number of passengers.
On the basis of the embodiment shown in fig. 3, the embodiment of the present application further provides a method for determining the number of passengers. Fig. 5 is a schematic flow chart of still another implementation of the method for determining the number of passengers provided in the embodiment of the present application, and as shown in fig. 5, the method for determining the number of passengers provided in the embodiment includes:
step S501, a first terminal information set and a first passenger carrying number of the vehicle at a first time are obtained.
Wherein the first terminal information set includes terminal information detected by an onboard device of the vehicle at the first time.
Step S501, step S502 and step S505 in this embodiment refer to the description of corresponding parts in the embodiment shown in fig. 3, which is not repeated herein.
And step S502, acquiring a second terminal information set and the number of the passengers getting on the train from the first time to the second time. Wherein the second terminal information set includes the terminal information detected by the vehicle-mounted device at the second time.
Step S503 and step S504 are an implementation manner of step S303 in the embodiment shown in fig. 3, and specifically include the following steps:
step S503, determining the number of departing terminals between the first time and the second time according to the terminal information in the first terminal information set and the terminal information in the second terminal information set.
The passengers of the vehicle get on or off the vehicle between the first time and the second time, so that the terminal information in the first terminal information set is different from the terminal information in the second terminal information set, and therefore, the number of the leaving terminals between the first time and the second time can be determined according to the first terminal information set and the second terminal information set, namely, the number of the terminals which can not be detected any more between the first time and the second time is determined, and the passengers holding the terminals are considered to get off the vehicle. Accordingly, the present embodiment determines the number of departing terminals between the first time and the second time based on the terminal information in the first terminal information set and the terminal information in the second terminal information set.
In some embodiments, the terminal information is a terminal Identifier, which may specifically be a Media Access Control Address (MAC) Address of the terminal, or an International Mobile Equipment Identity (IMEI) of the terminal, or a Universal Unique Identity (UUID) of the terminal, and may also be other identifiers capable of distinguishing different terminals, which is not specifically limited in this embodiment.
And step S504, determining the number of getting-off persons between the first time and the second time according to the number of leaving terminals, the first number of passengers and the number of terminal information included in the first terminal information set.
Since the present embodiment is implemented on the premise of acquiring a large amount of data of the vehicle, individual differences are not considered, and therefore, the passengers getting off the vehicle can be taken as random samples of the passengers getting on the vehicle at the first moment. According to the random sampling principle, the ratio of the number of leaving terminals to the number of getting-off passengers is equal to the ratio of the number of terminals corresponding to the terminal information included in the first terminal information set to the first number of passengers. Accordingly, the number of people getting off between the first time and the second time is determined according to the number of the terminals leaving, the first number of people carrying passengers and the number of the terminal information included in the first terminal information set.
And step S505, determining a second passenger carrying number of the vehicle at the second moment according to the number of the passengers getting on the vehicle, the number of the passengers getting off the vehicle and the first passenger carrying number.
In the embodiment, the server can accurately determine the number of the getting-off people according to the number of the leaving terminals of the transportation tool between the first time and the second time, the first number of the passenger carrying people and the first terminal information set, and compared with the existing manual car following investigation sampling, the accuracy rate of the determined number of the getting-off people is improved, so that the determined number of the passenger carrying people is more accurate.
On the basis of the embodiment shown in fig. 5, an embodiment of the present application further provides a method for determining the number of passengers, and fig. 6 is a schematic flow chart of another implementation of the method for determining the number of passengers provided in the embodiment of the present application, as shown in fig. 6, the method includes:
step S601, a first terminal information set and a first passenger carrying number of the vehicle at a first moment are obtained.
Wherein the first terminal information set includes terminal information detected by an onboard device of the vehicle at the first time.
Step S601, step S602, step S605 and step S606 in this embodiment refer to the description of corresponding parts in the embodiment shown in fig. 5, and are not described herein again.
And step S602, acquiring a second terminal information set and the number of the passengers getting on the train from the first time to the second time. Wherein the second terminal information set includes the terminal information detected by the vehicle-mounted device at the second time.
Step S603 and step S604 are an implementation manner of step S503 in the embodiment shown in fig. 5, and are specifically as follows:
step S603, obtaining terminal information that belongs to the first terminal information set and does not belong to the second terminal information set according to the terminal information in the first terminal information set and the terminal information in the second terminal information set.
Because the terminal information of different terminals is different, according to the terminal information in the first terminal information set and the terminal information in the second terminal information set, all the terminal information in the first terminal information set can be matched one by one, and whether the terminal information belongs to the second terminal information set or not is judged, so that the terminal information which belongs to the first terminal information set but does not belong to the second terminal information set is determined.
Here, it is also possible to acquire terminal information belonging to the second terminal information set, but not to the first terminal information set, the terminal information corresponding to a terminal detected by the in-vehicle device among terminals held by the boarding passenger between the first time and the second time.
Step S604, determining the number of terminal information belonging to the first terminal information set and not belonging to the second terminal information set as the number of leaving terminals between the first time and the second time.
After determining the terminal information belonging to the first terminal information set but not to the second terminal information set, the number of the terminal information belonging to the first terminal information set but not to the second terminal information set is further determined, thereby obtaining the number of the leaving terminals.
And step S605, determining the number of getting-off persons between the first time and the second time according to the number of leaving terminals, the first number of passengers and the number of terminal information included in the first terminal information set.
And step S606, determining the second passenger carrying number of the vehicle at the second moment according to the number of the passengers getting on the vehicle, the number of the passengers getting off the vehicle and the first passenger carrying number.
In this embodiment, the server acquires the terminal information belonging to the first terminal information set but not belonging to the second terminal information set through the terminal information in the first terminal information set and the second terminal information set, thereby determining the number of leaving terminals between the first time and the second time, comparing with manual car-following investigation sampling to acquire the number of leaving terminals, improving the accuracy of the determined number of leaving terminals, thereby improving the accuracy of the determined number of getting-off people, and further making the determined number of people carrying passengers more accurate.
On the basis of the embodiment shown in fig. 3, the embodiment of the present application further provides a method for determining the number of passengers. Fig. 7 is a schematic flow chart of still another implementation of the method for determining the number of passengers provided in the embodiment of the present application, and as shown in fig. 7, the method includes:
step S701, a first terminal information set and a first passenger carrying number of the vehicle at a first moment are obtained.
Wherein the first terminal information set includes terminal information detected by an onboard device of the vehicle at the first time.
Steps S701 to S704 in this embodiment refer to the description of corresponding parts in the embodiment shown in fig. 3, which is not repeated herein.
And step S702, acquiring a second terminal information set and the number of the passengers getting on the train from the first moment to the second moment. Wherein the second terminal information set includes the terminal information detected by the vehicle-mounted device at the second time.
And step S703, determining the number of people getting off between the first moment and the second moment according to the first terminal information set, the second terminal information set and the first passenger carrying number.
And step S704, determining a second passenger carrying number of the transportation means at the second moment according to the number of the passengers getting on the vehicle, the number of the passengers getting off the vehicle and the first passenger carrying number.
And step S705, acquiring the number of the passengers of the vehicle.
After the number of passengers carried by the vehicle at the second moment is obtained, the server can further judge the current congestion degree of the vehicle. In some embodiments, the server stores the number of persons carrying different vehicles, i.e., the maximum number of persons carrying different vehicles in advance. Every time the information sent by the vehicle-mounted equipment of the vehicle comprises the unique identification code of the vehicle, and the corresponding vehicle is searched according to the identification code, so that the number of people carried by the vehicle can be determined.
Step S706, determining the crowding degree of the transportation means at the second moment according to the carrying number and the second passenger carrying number.
And calculating the crowdedness of the transportation at the second moment according to the second passenger carrying number and the carrying number. Normally, the congestion degree is a value between 0 and 1. When the crowdedness is 0, the current number of passengers on the vehicle is 0; when the degree of congestion is 1, it indicates that the vehicle is currently full. When the degree of congestion is greater than 1, it indicates that the vehicle may be currently overloaded.
Step S707, the congestion degree is sent to the dispatch center.
And after receiving the congestion degree, the dispatching center determines dispatching information of other vehicles according to the congestion degree, wherein the routes of the other vehicles and the vehicles are the same.
Taking a vehicle as a bus as an example, sending the determined congestion degree of the current bus at the second moment to a bus dispatching center. And the bus dispatching center determines the departure time of the bus to be departed on the route according to the congestion degree of the current bus. For example, when the crowdedness is small, the number of passengers on the current trip is small, and the departure interval time can be appropriately prolonged; when the crowdedness is high, the number of passengers going out at present is large, and the departure interval time can be properly shortened, so that the utilization of the bus is more reasonable.
In the embodiment, after the number of passengers of the transportation means at a certain moment is determined by the server, the congestion degree of the transportation means at the moment is calculated, and the congestion degree is sent to the scheduling center, so that the scheduling center optimizes the scheduling information of the transportation means on other same routes according to the congestion degree, and the benefits of the transportation means are more reasonable.
On the basis of the embodiment shown in fig. 7, the embodiment of the present application further provides a method for determining the number of passengers. Fig. 8 is a schematic flow chart of still another implementation of the method for determining the number of passengers provided in the embodiment of the present application, and as shown in fig. 8, the method includes:
step S801, a first terminal information set and a first number of passengers of the vehicle at a first time are obtained.
Wherein the first terminal information set includes terminal information detected by an onboard device of the vehicle at the first time.
Steps S801 to S807 in this embodiment refer to descriptions of corresponding parts in the embodiment shown in fig. 7, and are not repeated here.
And step S802, acquiring a second terminal information set and the number of the passengers getting on the train from the first time to the second time. Wherein the second terminal information set includes the terminal information detected by the vehicle-mounted device at the second time.
And S803, determining the number of people getting off between the first moment and the second moment according to the first terminal information set, the second terminal information set and the first passenger carrying number.
And step S804, determining a second passenger carrying number of the vehicle at the second moment according to the number of the passengers getting on the vehicle, the number of the passengers getting off the vehicle and the first passenger carrying number.
And step S805, acquiring the number of the passengers of the vehicle.
And step S806, determining the crowding degree of the transportation means at a second moment according to the carrying number and the second passenger carrying number.
Step S807, the congestion degree is sent to a scheduling center.
And after receiving the congestion degree, the dispatching center determines dispatching information of other vehicles according to the congestion degree, wherein the routes of the other vehicles and the vehicles are the same.
And step S808, sending the crowdedness to a terminal of the passenger to be transported.
And after receiving the crowdedness, the terminal of the passenger to be traveled displays the crowdedness, so that the passenger to be traveled who holds the terminal determines a travel plan according to the information displayed on the terminal. For example, the passenger waiting for traveling finds that the bus to be taken is crowded currently, and can select other traveling modes in advance without waiting for the bus, so that convenience is provided for the passenger waiting for traveling.
In this embodiment, after determining the number of passengers carried by the transportation means at a certain time, the server further calculates the congestion degree of the transportation means at the certain time, and sends the congestion degree to the scheduling center, so that the scheduling center optimizes the scheduling information of the transportation means on other same routes according to the congestion degree, and the benefit of the transportation means is more reasonable.
Based on the foregoing embodiments, an embodiment of the present application further provides a method for determining the number of passengers, which is applied to the network architecture shown in fig. 1, and fig. 9 is a schematic diagram of a further implementation flow of the method for determining the number of passengers provided in the embodiment of the present application, as shown in fig. 9, the method includes:
in step S901, the server obtains a first terminal information set and a first number of passengers of the vehicle at a first time.
Wherein the first terminal information set includes terminal information detected by an onboard device of the vehicle at the first time. When an instruction for determining the number of passengers carried by the current vehicle at the current moment is received, the server acquires the first terminal information set and the first number of passengers according to all the number of passengers getting on the vehicle and the terminal information stored in the server after the current vehicle is started.
And step S902, the vehicle-mounted equipment performs detection at the second moment to acquire a detection terminal information set.
Here, the probe terminal information in the probe terminal information set includes the probe terminal information and the corresponding time stamp. The timestamp corresponding to the detected terminal information is the time when the vehicle-mounted device first detected the detected terminal information.
In step S903, the in-vehicle device transmits the probe terminal information set to the server.
Step S904, the server determines the detection duration of each detected terminal information according to the timestamp corresponding to each detected terminal information and the second time.
Here, the server takes the difference between the second time and the timestamp corresponding to the detected terminal information as the detection duration of the detected terminal information.
In step S905, the server determines the detected terminal information with the detection duration greater than the time threshold as the terminal information in the second terminal information set.
And when the detection duration of the detected terminal information is greater than the time threshold, determining that the owner of the terminal corresponding to the detected terminal information is a passenger on the current vehicle, and determining the detected terminal information as the terminal information in the second terminal information set. Otherwise, determining that the holder of the terminal corresponding to the detected terminal information is not a passenger on the current vehicle.
Step S906, the server acquires, according to the terminal information in the first terminal information set and the terminal information in the second terminal information set, terminal information that belongs to the first terminal information set and does not belong to the second terminal information set.
According to the terminal information in the first terminal information set and the terminal information in the second terminal information set, all the terminal information in the first terminal information set can be matched one by one, and whether the terminal information belongs to the second terminal information set or not is judged, so that the terminal information which belongs to the first terminal information set but does not belong to the second terminal information set is determined.
In step S907, the server determines the number of terminal information belonging to the first terminal information set and not belonging to the second terminal information set as the number of leaving terminals between the first time and the second time.
Step S908, the server determines the number of getting-off persons between the first time and the second time according to the number of leaving terminals, the first number of passengers, and the number of terminal information included in the first terminal information set.
In step S909, the server determines a second passenger carrying capacity of the vehicle at the second time according to the number of the passengers getting on the vehicle, the number of the passengers getting off the vehicle, and the first passenger carrying capacity.
In this embodiment, the ratio of the number of terminals leaving the terminal to the number of people getting off the vehicle is equal to the ratio of the number of terminals corresponding to the terminal information included in the first terminal information set to the first number of people getting on the vehicle. Accordingly, the number of people getting off between the first time and the second time is determined according to the number of the terminals leaving, the first number of people carrying passengers and the number of the terminal information included in the first terminal information set.
In step S910, the server obtains the number of people in the transportation.
The number of persons is a fixed value related to the size of the vehicle.
And step S911, the server determines the crowding degree of the transportation means at the second moment according to the carrying number and the second passenger carrying number.
Step S912, the server sends the congestion degree to the dispatch center.
The congestion degree is a value between 0 and 1. When the crowdedness is 0, the current number of passengers on the vehicle is 0; when the congestion degree is 1, it indicates that the vehicle is currently full. When the degree of congestion is greater than 1, it indicates that the vehicle may be currently overloaded.
And step S913, the dispatching center determines dispatching information of other vehicles according to the congestion degree.
Wherein the other vehicles are on the same route as the vehicle.
In step S914, the server sends the congestion degree to the terminal of the passenger to be transported.
And after receiving the crowdedness degree, the terminal of the passenger to be traveled displays the crowdedness degree, so that the passenger to be traveled determines a travel plan according to the crowdedness degree.
Step S915, displaying the crowdedness degree by the terminal of the passenger to go out.
In the embodiment, the vehicle-mounted equipment is adopted for detecting the terminal information, compared with the existing station equipment for detecting the terminal information, the detected non-passenger terminal information is greatly reduced, and therefore the workload of processing the noise data of the non-passenger terminal information by the server is reduced; in addition, the number of the passengers getting off is calculated according to the real-time passenger carrying information of the transportation means, so that the accuracy of the estimated number of the passengers getting off is improved, and the determined number of the passengers is more accurate; moreover, passengers not belonging to the current transportation means are eliminated according to the detection time, the detected non-passenger terminal information is further reduced, and the accuracy rate of the determined number of passengers is further improved; the method comprises the steps that after the number of passengers carried by a vehicle at a certain moment is determined, the congestion degree of the vehicle at the moment is further calculated by a server, the congestion degree is sent to a scheduling center so that the scheduling center can optimize scheduling information of other vehicles on the same route according to the congestion degree, the benefits of the vehicle are more reasonable, and meanwhile, the congestion degree is sent to a terminal of a passenger to be traveled by the terminal so that the passenger to be traveled by the terminal can determine a travel plan meeting the requirements of the passenger according to information displayed on the terminal.
Next, an exemplary application of the embodiment of the present application in a practical application scenario will be described. An embodiment of the present application provides a method for determining a number of passengers, where fig. 10 is a schematic flow chart of another implementation of the method for determining a number of passengers provided in the embodiment of the present application, and as shown in fig. 10, the method includes:
and S1001, detecting nearby user terminals by the vehicle-mounted Wi-Fi detection router, and uploading detection information to the passenger number determining equipment (a background big data processing platform) in real time.
The detection information comprises the MAC address of the detected user terminal, the vehicle-mounted Wi-Fi detection router mark code and the detection time of the detected terminal. In this embodiment, the vehicle-mounted Wi-Fi detection router performs detection by using a probe technology of an IEEE 802.11 protocol.
And step S1002, the passenger number determining device receives real-time GPS data of the bus sent by the GPS device, and the time sequence of the bus entering and leaving the bus station is obtained through analysis and calculation by utilizing the position data of the bus station.
And the passenger carrying number determining equipment calculates the current position of the bus according to the real-time GPS data of the bus. And then analyzing and calculating the time of the bus to get in and out according to the pre-stored position data of the bus stop. According to the time of the bus getting in and out, the time that the passenger can get on or off the bus can be determined. The number of passengers on the bus is unchanged in the time period from the departure of the bus to the next arrival of the bus. During the time period, repeated detection information does not need to be sent to the equipment for determining the number of passengers, a network does not need to be occupied for a long time, and the data volume of network transmission is reduced.
And step S1003, the passenger number determining device receives passenger boarding card swiping and coin inserting data collected by the collecting device at each station, and analyzes and calculates the number of passengers boarding at each station of the bus by combining the time sequence of the bus when the bus enters and exits the station.
In some embodiments, the number of people getting on the bus at the station is equal to the number of people swiping cards at the station and the number of people inserting coins at the station, wherein the number of people inserting coins at the station is equal to the total amount of coins inserted at the station divided by the ticket price at the station. Wherein, collection equipment can be bus-mounted all-in-one (the all-in-one of inserting coins of punching the card), counts the number of getting on bus. The collecting device can firstly send the collected number of the passengers getting on the bus to the vehicle-mounted Wi-Fi detection router, and the vehicle-mounted Wi-Fi detection router sends the number of the passengers getting on the bus to the passenger number determining device.
And step S1004, the passenger number determining equipment processes and analyzes the received detection data in real time to obtain the passenger number detected by the vehicle-mounted Wi-Fi detection router in real time.
The method is particularly used for processing and analyzing in a stream type computing environment Storm deployed on a large data processing platform of the passenger carrying number determining device, and the processing and analyzing speed is improved. The vehicle-mounted Wi-Fi detection router detects the terminals in real time, and the terminals are all terminals which are currently located in the detection range of the vehicle-mounted Wi-Fi detection router and comprise non-passenger terminals outside the bus currently. In order to exclude the influence of these non-passenger terminals on the number of detected passengers, the detected non-passenger terminals are removed by considering the processing of the boundary condition. The specific process is as shown in step S10041 to step S10045:
and S10041, the vehicle-mounted Wi-Fi detection router acquires detection data and sends the detection data to the equipment for determining the number of passengers.
Step S10042, the determining device for the number of passengers determines whether the terminal corresponding to the detection data is detected for the first time.
The passenger number determining device determines that the terminal in the currently received detection data is detected for the first time by comparing the terminal in the detection data received in history with the terminal in the detection data received at present and if the terminal in the detection data received at present does not exist in the terminal in the detection data received in history, and then the step S10043 is executed. If the terminal in the currently received probe data exists in the terminals in the historically received probe data, it is determined that the terminal in the currently received probe data is not detected for the first time, and step S10044 is executed.
Step S10043, the determining device of the number of passengers saves the detection data
Step S10044, the determining device for the number of passengers acquires the detection duration of the detected detection data, and determines that the terminal corresponding to the detection data is a non-passenger terminal if the detection duration is less than the threshold.
When the passenger number determining device receives the detection data of the terminal detected for the first time, the detection time of the terminal is received at the same time. And then the passenger carrying number determining equipment acquires the detection duration of the detected detection data according to the current time and the detection time. And when the detection duration is less than the threshold, indicating that the terminal is detected only in the time period less than the threshold, and determining the terminal corresponding to the detection data as a non-passenger terminal. Otherwise, it is determined to be the passenger terminal.
Step S10045, if the connection duration is not less than the threshold, the device for determining the number of passengers determines that the terminal corresponding to the detection data is the passenger terminal.
According to steps S10041 to S10045, the accuracy of the determined number of passengers is further improved by reducing the detected information of the non-passenger terminals by excluding the non-passenger terminals.
Step S1005, the device for determining the number of passengers performs sample expansion processing on the number of newly detected passengers at each station according to the number of passengers getting on the bus counted at each station, so as to estimate the number of passengers in real time in the bus. The method comprises the following specific steps:
Figure BDA0002368546980000211
wherein the content of the first and second substances,
Figure BDA0002368546980000212
denotes the sample expansion ratio, x, of the ith station i Indicates the number of persons getting on the ith station, y i Indicating the number of newly detected passengers at the ith station.
Figure BDA0002368546980000221
Wherein, d n Indicating the number of persons getting off at the nth stop, z n Indicating the number of passengers detected exiting at the nth station. Since the number of passengers on the vehicle before the 1 st station is 0, the number of passengers getting off the vehicle at the first station is 0, i.e., d 1 =z 1 =0。
s n =s n-1 +x n -d n (3);
Wherein s is n Indicates the number of passengers at the nth station, wherein s 0 =0。
The passenger terminal is not connected with the network and cannot be detected by the vehicle-mounted Wi-Fi detection router. The embodiment is subjected to sample expansion processing, so that the current passenger carrying number obtained by analysis and estimation is closer to the reality.
And step S1006, calculating the real-time crowding degree of the bus by the passenger number determining equipment according to the estimated passenger number and the number of passengers carried by the bus.
The crowdedness is a value between 0 and 1. When the crowdedness is 0, the current number of passengers on the vehicle is 0; when the degree of congestion is 1, it indicates that the vehicle is currently full. When the congestion degree is greater than 1, it indicates that the vehicle may be currently overloaded. The higher the degree of congestion, the more crowded the bus is currently.
And step S1007, the device for determining the number of passengers sends the real-time congestion degree to a bus operation monitoring center to provide data support for bus operation scheduling, and finally the optimal balance between the passenger taking demand and the bus resource allocation scheduling is achieved.
In the embodiment, an additional camera, a sensor or a bus stop Wi-Fi detection router is not required to be arranged, so that the hardware cost is saved; massive real-time data are efficiently processed in a large data platform stream data processing mode, and the hardware cost is reduced; determining the number of people getting on the bus in real time according to the data of swiping cards and inserting coins of passengers getting on the bus, fusing the number of people getting on the bus in real time to perform differentiated sample expansion processing, and obtaining more accurate number of people carrying passengers in real time; the bus station entering and exiting is judged based on the bus GPS data and the bus station geographic fence, and the bus station entering and exiting is accurate and easy to operate.
Continuing with the exemplary structure of the apparatus 10 for determining the number of passengers provided by the embodiment of the present application implemented as software modules, in some embodiments, as shown in fig. 2, the software modules stored in the apparatus 10 for determining the number of passengers in the storage 140 may include:
the system comprises a first acquisition module 11, a first terminal information set and a first passenger carrying capacity of a vehicle at a first moment, wherein the first terminal information set comprises terminal information detected by vehicle-mounted equipment of the vehicle at the first moment;
a second obtaining module 12, configured to obtain a second terminal information set and a number of people getting on the vehicle between the first time and a second time, where the second terminal information set includes terminal information detected by the vehicle-mounted device at the second time;
a first determining module 13, configured to determine, according to the first terminal information set, the second terminal information set, and the first number of passengers, the number of getting-off passengers between the first time and the second time;
and a second determining module 14, configured to determine a second passenger carrying number of the vehicle at the second time according to the number of the passengers getting on the vehicle, the number of the passengers getting off the vehicle, and the first passenger carrying number.
In some embodiments, the second obtaining module 12 further includes: the receiving submodule is used for receiving a detection terminal information set which is sent by the vehicle-mounted equipment and detected at the second moment, and detection terminal information in the detection terminal information set comprises detected terminal information and a corresponding timestamp; the first determining submodule is used for determining the detection duration of each detected terminal information according to the timestamp corresponding to each detected terminal information and the second moment; and the second determining submodule is used for determining the detected terminal information with the detection duration being greater than the time threshold as the terminal information in the second terminal information set.
In some embodiments, the first determining module 13 further includes: a third determining submodule, configured to determine, according to the terminal information in the first terminal information set and the terminal information in the second terminal information set, the number of departing terminals between the first time and the second time; and the fourth determining submodule is used for determining the number of getting-off persons between the first moment and the second moment according to the number of the leaving terminals, the first passenger carrying number and the number of the terminal information included in the first terminal information set.
In some embodiments, the third determining submodule further includes: an obtaining unit, configured to obtain, according to terminal information in the first terminal information set and terminal information in the second terminal information set, terminal information that belongs to the first terminal information set and does not belong to the second terminal information set; a determining unit, configured to determine the number of terminal information that belongs to the first terminal information set and does not belong to the second terminal information set as the number of leaving terminals between the first time and the second time.
In some embodiments, the apparatus further comprises: the third acquisition module is used for acquiring the number of people carried by the vehicle; the third determining module is used for determining the crowdedness of the transportation means at a second moment according to the number of the passengers and the second number of the passengers; and the first sending module is used for sending the congestion degree to a dispatching center so that the dispatching center determines dispatching information of other vehicles according to the congestion degree, wherein the routes of the other vehicles and the vehicles are the same.
In some embodiments, the apparatus further comprises: and the second sending module is used for sending the crowding degree to a terminal of a passenger to be taken out so that the passenger to be taken out can determine a trip plan according to the crowding degree.
Embodiments of the present application provide a storage medium storing executable instructions that, when executed by a processor, will cause the processor to perform a method provided by embodiments of the present application, for example, the method as illustrated in fig. 3 to 9.
In some embodiments, the storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EE PROM, flash, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
In some embodiments, the executable instructions may be in the form of a program, software module, script, or code written in any form of programming language, including compiled or interpreted languages, or declarative or procedural languages, and it may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
By way of example, executable instructions may, but need not, correspond to files in a file system, and may be stored in a portion of a file that holds other programs or data, such as in one or more scripts in a hypertext Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code).
As an example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices located at one site or distributed across multiple sites and interconnected by a communication network.
The above description is only an example of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims (9)

1. A method for determining the number of passengers, comprising:
the method comprises the steps of obtaining a first terminal information set and a first passenger carrying number of a vehicle at a first moment, wherein the first terminal information set comprises terminal information detected by vehicle-mounted equipment of the vehicle at the first moment;
acquiring a second terminal information set and the number of the passengers getting on the vehicle between the first moment and a second moment, wherein the second terminal information set comprises terminal information detected by the vehicle-mounted equipment at the second moment; the number of boarding persons is the sum of the number of card swiping persons and the number of coin inserting persons between the first time and the second time;
determining the number of people getting off between the first moment and the second moment according to the first terminal information set, the second terminal information set and the first number of people carrying passengers;
determining a second passenger carrying number of the transportation means at the second moment according to the number of the passengers getting on the bus, the number of the passengers getting off the bus and the first passenger carrying number;
the determining of the number of people getting off between the first moment and the second moment according to the first terminal information set, the second terminal information set and the first number of people carrying passengers comprises:
determining the number of left terminals and the number of newly added terminals between the first time and the second time according to the terminal information in the first terminal information set and the terminal information in the second terminal information set;
and determining the number of the getting-off terminals between the first moment and the second moment according to the number of the leaving terminals, the number of the getting-on terminals and the number of the newly added terminals between the first moment and the second moment.
2. The method of claim 1, wherein the obtaining the second set of terminal information comprises:
receiving a detection terminal information set which is sent by the vehicle-mounted equipment and detected at the second moment, wherein detection terminal information in the detection terminal information set comprises detected terminal information and a corresponding timestamp;
determining the detection duration of each detected terminal information according to the timestamp corresponding to each detected terminal information and the second time;
and determining the detected terminal information with the detection duration being greater than the time threshold as the terminal information in the second terminal information set.
3. The method of claim 1, wherein the determining the number of departing terminals between the first time and the second time according to the terminal information in the first terminal information set and the terminal information in the second terminal information set comprises:
acquiring terminal information which belongs to the first terminal information set and does not belong to the second terminal information set according to the terminal information in the first terminal information set and the terminal information in the second terminal information set;
determining the number of terminal information belonging to the first terminal information set and not belonging to the second terminal information set as the number of departing terminals between the first time and the second time.
4. The method of claim 1, further comprising:
acquiring the number of the passengers of the vehicle;
determining the crowding degree of the transportation means at a second moment according to the number of the passengers and the second number of the passengers;
and sending the congestion degree to a scheduling center so that the scheduling center determines scheduling information of other vehicles according to the congestion degree, wherein the routes of the other vehicles and the vehicles are the same.
5. The method of claim 4, further comprising:
and sending the crowdedness to a terminal of a passenger to be traveled so that the passenger to be traveled determines a travel plan according to the crowdedness.
6. An apparatus for determining the number of passengers, comprising:
the system comprises a first acquisition module, a second acquisition module and a display module, wherein the first acquisition module is used for acquiring a first terminal information set and a first passenger carrying number of a vehicle at a first moment, and the first terminal information set comprises terminal information detected by vehicle-mounted equipment of the vehicle at the first moment;
the second acquisition module is used for acquiring a second terminal information set and the number of the passengers getting on the vehicle between the first moment and the second moment, wherein the second terminal information set comprises terminal information detected by the vehicle-mounted equipment at the second moment; the number of boarding persons is the sum of the number of card swiping persons and the number of coin inserting persons between the first time and the second time;
the first determining module is used for determining the number of people getting off between the first moment and the second moment according to the first terminal information set, the second terminal information set and the first number of people carrying passengers;
the second determining module is used for determining the second passenger carrying number of the transportation tool at the second moment according to the number of the passengers getting on the vehicle, the number of the passengers getting off the vehicle and the first passenger carrying number;
the first determining module includes:
a third determining submodule, configured to determine, according to the terminal information in the first terminal information set and the terminal information in the second terminal information set, the number of left terminals and the number of new terminals between the first time and the second time;
and the fourth determining submodule is used for determining the number of the getting-off persons between the first moment and the second moment according to the number of the leaving terminals, the number of the getting-on persons and the number of the newly added terminals between the first moment and the second moment.
7. The apparatus of claim 6, wherein the second obtaining module comprises:
the receiving submodule is used for receiving a detection terminal information set which is sent by the vehicle-mounted equipment and detected at the second moment, and detection terminal information in the detection terminal information set comprises detected terminal information and a corresponding timestamp;
the first determining submodule is used for determining the detection duration of each detected terminal message according to the timestamp corresponding to each detected terminal message and the second time;
and the second determining submodule is used for determining the detected terminal information with the detection duration being greater than the time threshold as the terminal information in the second terminal information set.
8. An apparatus for determining the number of passengers, comprising:
a memory for storing executable instructions;
a processor for implementing the method of any one of claims 1 to 5 when executing executable instructions stored in the memory.
9. A storage medium having stored thereon executable instructions for causing a processor to perform the method of any one of claims 1 to 5 when executed.
CN202010043474.XA 2020-01-15 2020-01-15 Method, device and equipment for determining number of passengers and storage medium Active CN113129584B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010043474.XA CN113129584B (en) 2020-01-15 2020-01-15 Method, device and equipment for determining number of passengers and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010043474.XA CN113129584B (en) 2020-01-15 2020-01-15 Method, device and equipment for determining number of passengers and storage medium

Publications (2)

Publication Number Publication Date
CN113129584A CN113129584A (en) 2021-07-16
CN113129584B true CN113129584B (en) 2023-04-14

Family

ID=76772175

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010043474.XA Active CN113129584B (en) 2020-01-15 2020-01-15 Method, device and equipment for determining number of passengers and storage medium

Country Status (1)

Country Link
CN (1) CN113129584B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6259377B1 (en) * 1997-05-24 2001-07-10 Daimlerchrysler Ag Process for detecting and reporting traffic situation data
CN105046962A (en) * 2015-08-18 2015-11-11 安徽四创电子股份有限公司 Bus-mobile-WIFI-hot-spot-based real-time calculation method of vehicle full-load rate
CN108922178A (en) * 2018-07-01 2018-11-30 北京工业大学 The real-time load factor calculation method of public transit vehicle based on public transport multi-source data

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103700174B (en) * 2013-12-26 2015-10-14 中国电子科技集团公司第三十三研究所 A kind of bus passenger flow data acquisition based on WIFI identification and OD analytical approach
EP3101620A1 (en) * 2015-06-05 2016-12-07 FourC AS Passenger flow determination
CN105046944A (en) * 2015-06-26 2015-11-11 浙江工业大学 Bus passenger flow data acquisition method based on mobile phone MAC address scanning
CN105809959B (en) * 2016-03-31 2020-09-25 腾讯科技(深圳)有限公司 Passenger number counting method, device and system
CN105869388B (en) * 2016-05-31 2018-09-04 苏州朗捷通智能科技有限公司 The analysis method and system of a kind of acquisition of bus passenger flow data and origin and destination
CN108074397B (en) * 2016-11-15 2021-08-24 中移物联网有限公司 Method and device for detecting vehicle entering and exiting parking space
US10168167B2 (en) * 2017-01-25 2019-01-01 Via Transportation, Inc. Purposefully selecting longer routes to improve user satisfaction
CN107845259B (en) * 2017-10-24 2021-02-09 东南大学 Bus running condition real-time feedback system and bus real-time running data processing method
CN107767669B (en) * 2017-10-24 2020-11-20 东南大学 Bus line passenger flow OD estimation method based on WiFi and Bluetooth recognition
CN207883011U (en) * 2017-11-10 2018-09-18 同济大学 Bus passenger flow data acquisition equipment and OD analysis systems
CN107945352A (en) * 2017-11-10 2018-04-20 同济大学 Bus passenger flow data acquisition equipment and OD analysis systems
CN108449439A (en) * 2018-05-22 2018-08-24 集美大学 Number of people in car statistical system based on WiFi technology
CN209947095U (en) * 2019-04-25 2020-01-14 华南理工大学 Portable bus passenger number counting assembly that gets on or off bus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6259377B1 (en) * 1997-05-24 2001-07-10 Daimlerchrysler Ag Process for detecting and reporting traffic situation data
CN105046962A (en) * 2015-08-18 2015-11-11 安徽四创电子股份有限公司 Bus-mobile-WIFI-hot-spot-based real-time calculation method of vehicle full-load rate
CN108922178A (en) * 2018-07-01 2018-11-30 北京工业大学 The real-time load factor calculation method of public transit vehicle based on public transport multi-source data

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
Expansion and Analysis of Minbus Passenger Count Data.《Journal of The Korean Data Analysis Society》.2008,3519-3528. *
Hayato Nakashima等.Proposal of a Method for Estimating the Number of Passengers with Using Drive Recorder and Sensors Equipped in Buses.《2018 IEEE International Conference on Big Data (Big Data)》.2019,全文. *
佟慧姣 ; 刘小松 ; 朱磊基 ; 楼亮亮 ; 熊勇 ; .客流量监测的WiFi嗅探网格化方法.电子测量技术.2018,(08),全文. *
刘剑锋.基于换乘的城市轨道交通网络流量分配建模及其实证研究.《中国博士学位论文全文数据库 (工程科技Ⅱ辑)》.2012,C033-10. *
游婷等.基于公交IC卡信息的公交客流推算.《交通工程》.2018,第18卷(第6期),51-56. *

Also Published As

Publication number Publication date
CN113129584A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
EP2332021B1 (en) System and method for parking time estimations
CN107845259B (en) Bus running condition real-time feedback system and bus real-time running data processing method
WO2019091108A1 (en) Transportation and trip survey data processing method
EP1975884B1 (en) Mobile object charging system and mobile object charging method by mobile object charging system
CN103325248B (en) Transport information creation apparatus and transport information creation method
CN111104990B (en) Method, device, server and storage medium for determining traffic route
CN111311467A (en) Bus route prediction method and system based on face recognition
CN109389416A (en) Number mark control device, number mark control method and recording medium
CN103366560A (en) Vehicle-following detection method, system and application for road traffic state
CN207883011U (en) Bus passenger flow data acquisition equipment and OD analysis systems
CN109448431B (en) Method and device for determining waiting position and intelligent terminal
EP4067823A1 (en) Method for providing integrated navigation service using vehicle sharing network, and device and system for same
CN111259103A (en) Method, device, storage medium and equipment for recognizing riding state
CN111858806A (en) Passenger travel track detection method, device, equipment and storage medium
WO2015138913A1 (en) Facility and infrastructure utilization
US20190017832A1 (en) Method and apparatus for providing recorded, anonymized routes
CN110657817A (en) Method and device for recommending travel route
CN111696376A (en) Method for determining arrival sequence of buses
US11328595B1 (en) Parking recognition server for personal mobility device, system including the same, and method thereof
CN113129584B (en) Method, device and equipment for determining number of passengers and storage medium
CN113160542A (en) Riding method and device based on information feedback
CN111814072A (en) Method, apparatus, device and storage medium for trip management for online vehicle service
JP2012089096A (en) Traveling body operation management system
JP2004199569A (en) Demand bus system
JP2006031421A (en) Information collection device and information collection method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant