CN110473399A - A kind of passenger on public transport number detection method, equipment and storage medium - Google Patents

A kind of passenger on public transport number detection method, equipment and storage medium Download PDF

Info

Publication number
CN110473399A
CN110473399A CN201910699889.XA CN201910699889A CN110473399A CN 110473399 A CN110473399 A CN 110473399A CN 201910699889 A CN201910699889 A CN 201910699889A CN 110473399 A CN110473399 A CN 110473399A
Authority
CN
China
Prior art keywords
bus
array
passenger
ridership
weight
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.)
Withdrawn
Application number
CN201910699889.XA
Other languages
Chinese (zh)
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.)
Yangtze University
Original Assignee
Yangtze University
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 Yangtze University filed Critical Yangtze University
Priority to CN201910699889.XA priority Critical patent/CN110473399A/en
Publication of CN110473399A publication Critical patent/CN110473399A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • 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
    • G08G1/0125Traffic data processing
    • 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
    • G08G1/0137Measuring and analyzing of parameters relative to traffic conditions for specific applications

Abstract

The invention discloses a kind of passenger on public transport number detection method, equipment and storage mediums, it is stored in the first array the described method includes: the passenger weight value got on the bus is put on serial number, and the passenger weight value got on the bus within the scope of the first preset weight is stored in the 4th array;The passenger weight value got off is put on serial number to be stored in the second array;The total weight of passenger on real-time vehicle is stored in third array;The real-time ridership on bus is calculated according to the data in each array;It calculates the density value on current bus and judges the real-time status of vehicle according to the density value on current bus.The present invention passes through the relationship using point weight and total weight got on or off the bus, judge get on the bus ridership and ridership of getting off, and then obtain the ridership on current intelligent bus, finally by the conversion of closeness, judge the state being on current bus, adapt to the problems such as bus environment is complicated, and precision is lower, and cost performance is poor.

Description

A kind of passenger on public transport number detection method, equipment and storage medium
Technical field
The present invention relates to intelligent bus technical field, in particular to a kind of passenger on public transport number detection method, equipment and deposit Storage media.
Background technique
As science and expanding economy and Chinese Urbanization's paces are getting faster.The traffic problems in city are increasingly tight Weight, resident take bus trip be alleviate traffic congestion an effective means, not only environmental protection but also public resource can be improved Utilization rate.But some public bus networks are not scientific in peak period transport power, do not alleviate traffic pressure effectively, increasing transport power is solution Certainly insufficient best means of peak period transport power, however only increase the bus quantity of hot travel route, not only not environmentally but also Also waste of resource.And carrying out statistics to the ridership of public transport is the key that intelligent bus dispatching system is realized.
Classify according to the basic principle of detection, state's vehicle guest flow statistics mainly uses three kinds of detection methods at present: Pressure detecting method, Infrared Detection Method, the image detection based on video.
The total weight of passenger on vehicle, is estimated passenger's as parameter with algorithm by traditional pressure detecting method simple possible Total ridership.But the judgement of the occupant orientation for getting on or off the bus and ridership has very big error.From total weight to always multiplying In the algorithmic procedure of objective number, bad realization.
Infrared Detection Method is divided into active infrared detection and passive infrared detection, and active infrared detection, which utilizes, is mounted on bus Front/rear door is nearby in specific height, and the infrared ray of the customization wavelength launched by emitting head covers certain region, then The light being reflected back from passenger is detected by sensor, to reach automatic identification passenger getting on/off direction and multiply The purpose of objective number.Passive infrared detection, is popped one's head in using suitable thermal release electric infra-red ray, so being only able to detect the sending of passenger's body Signal avoids the interference of other objects in this way.Above and below passenger when bus, it is red that passenger's body is detected by infrared sensor The process of passenger getting on/off can be obtained in variation caused by external spectrum, then can be differentiated by signal processing get on or off the bus direction and It gets on or off the bus ridership.But the limited coverage area of Infrared Detection Method, and be affected by temperature light etc., especially It is when the passenger's congestion of peak period.
In addition, the progress of image processing techniques and occupant detection and tracking technique are not with the raising of hardware performance It is disconnected to break through, so that the passenger flow counting method based on video image becomes present main stream approach.But use image procossing skill Art is primarily present 4 problems: 1. video jitter caused by body oscillating;2. image trapezoidal distortion caused by shooting visual angle;3. vehicle Complexity the problems such as (light, background color, blocking) of compartment environment;4. image processing system will meet real-time and portability Requirement.Now when using video image processing, handled in conjunction with machine learning.Image processing system is also more excellent It is different, and the thing handled is excessively complicated and cumbersome, it is all excessively huge for the pressure of front end and backstage, requirement of real-time also compared with For height, so being analyzed and being counted using video image on bus, and is unreasonable.Cost is too big, it is desirable that and it is higher, it can Row is not strong.It small-scale can be tested, but be not suitable for promoting.
Therefore, the complexity for how solving China's bus environment finds a kind of high-precision, high performance and simply may be used Capable passenger flow counting method is to be badly in need of the problem of facing.
Thus the prior art could be improved and improve.
Summary of the invention
Place in view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a kind of passenger on public transport number detection sides Method, equipment and storage medium do not adapt to bus environment complexity, precision to solve existing guest flow statistics detection method It is lower, the problems such as cost performance is poor.
In order to achieve the above object, this invention takes following technical schemes:
A kind of passenger on public transport number detection method, includes the following steps:
The passenger weight value got on the bus is put on serial number to be stored in the first array, and will be within the scope of the first preset weight The passenger weight value got on the bus is stored in the 4th array;
The passenger weight value got off is put on serial number to be stored in the second array;
The total weight of passenger on real-time vehicle is stored in the weight value number in third array and in real-time update third array According to, wherein a total weight data are only stored in the third array;
It is calculated according to the data in the first array, the second array, third array and the 4th array real-time on bus Ridership;
The density value on current bus is calculated according to the real-time ridership on bus and according on current bus Density value judge the real-time status of vehicle.
Preferably, in the passenger on public transport number detection method, the real-time status includes idle state, congestion state With full state.
Preferably, described according to the first array, the second array, third number in the passenger on public transport number detection method Organizing the step of calculating the real-time ridership on bus with the data in the 4th array includes:
Whether the weight data in monitoring third array changes, and if it is judges that ridership changes, otherwise Judge that ridership is constant;
It monitors in the first array whether to have and increases weight data value, if there is then judging increased weight number in the first array It according to value whether within the scope of the first preset weight, if it is calculates ridership of getting on the bus and adds one, otherwise getting on the bus calculates ridership and add Two, and calculate the total ridership got on the bus;
It monitors in the second array whether to have and increases weight data value, if there is then judging increased weight number in the second array According to value whether within the scope of the first preset weight, adds two if not ridership of getting off then is calculated, otherwise looked in the 4th array Increased weight data value and ridership of getting off is calculated after deleting add one, and calculate the total passenger to get off into the second array Number;
It is calculated according to the ridership on the bus of the total ridership got on the bus, the total ridership got off and last storage Out when total ridership on front truck.
Preferably, in the passenger on public transport number detection method, total ridership calculation formula when on front truck are as follows:
Cn=Cn-1+ R,
Wherein, R=a-b, Cn are when total ridership on front truck, and Cn-1 is the passenger on the bus of last storage Number, a is the total ridership got on the bus, and b is the total ridership got off.
Preferably, in the passenger on public transport number detection method, the density value calculation formula on the current bus Are as follows:
γ=Cn÷ V,
Wherein, γ is the density value of current bus, CnFor when total ridership on front truck, V is the space size of public transport Value.
Preferably, in the passenger on public transport number detection method, the real-time ridership according on bus is calculated Density value on current bus and tool the step of judge the real-time status of vehicle according to the density value on current bus out Body are as follows:
When γ is less than the first preset density value, judge that vehicle is in idle condition;When γ is not less than the first pre-set density When being worth and being not more than the second preset density value, judge that vehicle is in congestion state;When γ is greater than the second preset density value, judgement Vehicle is in full state.
Preferably, in the passenger on public transport number detection method, first preset density value is 0.27, described second Preset density value is 0.38.
A kind of passenger on public transport number detection device, comprising: processor, memory and communication bus;
The computer-readable program that can be executed by the processor is stored on the memory;
The communication bus realizes the connection communication between processor and memory;
The processor realizes passenger on public transport number detection method as described above when executing the computer-readable program In step.
A kind of computer readable storage medium, the computer-readable recording medium storage have one or more program, One or more of programs can be executed by one or more processor, to realize passenger on public transport number inspection as described above Step in survey method.
Compared to the prior art, described in passenger on public transport number detection method provided by the invention, equipment and storage medium Method includes: that the passenger weight value that will be got on the bus is put on serial number and is stored in the first array, and will be within the scope of the first preset weight The passenger weight value got on the bus be stored in the 4th array;The passenger weight value got off is put on into serial number and is stored in the second array In;The total weight of passenger on real-time vehicle is stored in the weight Value Data in third array and in real-time update third array;Root The real-time ridership on bus is calculated according to the data in the first array, the second array, third array and the 4th array;According to Real-time ridership on bus calculates the density value on current bus and is judged according to the density value on current bus The real-time status of vehicle out.The present invention passes through the relationship using point weight and total weight got on or off the bus, and judges ridership of getting on the bus With ridership of getting off, and then the ridership on current intelligent bus is obtained.Finally by the conversion of closeness, judge current Idle, crowded or full state is on bus, and it is reasonable to be transferred to bus scheduling system progress intelligent bus Scheduling;Breakthrough is found from more traditional method, rather than is limited completely using thinkings such as video image processings to problem Solution;Adapt to the problems such as bus environment is complicated, and precision is lower, and cost performance is poor.
Detailed description of the invention
Fig. 1 is the flow chart of a preferred embodiment of passenger on public transport number detection method provided by the invention.
Fig. 2 is the structural representation of a preferred embodiment of the bus that the present invention realizes passenger on public transport number detection method Figure.
Fig. 3 is the flow chart of step S400 described in passenger on public transport number detection method provided by the invention.
Fig. 4 is the flow chart of a specific embodiment of passenger on public transport number detection method provided by the invention.
Fig. 5 is the running environment schematic diagram for the preferred embodiment that passenger on public transport number provided by the invention detects program.
Fig. 6 is the functional block diagram for the system preferred embodiment that present invention installation passenger on public transport number detects program.
Specific embodiment
The present invention provides a kind of passenger on public transport number detection method, equipment and storage medium, to make the purpose of the present invention, skill Art scheme and effect are clearer, clear, and the present invention is described in more detail as follows in conjunction with drawings and embodiments.It should manage Solution, described herein specific examples are only used to explain the present invention, is not intended to limit the present invention.
Referring to Fig. 1, its flow chart for a preferred embodiment of passenger on public transport number detection method provided by the invention, Include the following steps:
S100, it the passenger weight value got on the bus is put on into serial number is stored in the first array, and will be in the first preset weight model The passenger weight value got on the bus in enclosing is stored in the 4th array;
S200, it the passenger weight value got off is put on into serial number is stored in the second array;
S300, the total weight of passenger on real-time vehicle is stored in the weight in third array and in real-time update third array Value Data, wherein a total weight data are only stored in the third array;
S400, it is calculated on bus according to the data in the first array, the second array, third array and the 4th array Real-time ridership;
S500, the density value on current bus is calculated according to the real-time ridership on bus and according to current public transport Density value on vehicle judges the real-time status of vehicle.
In the present embodiment, as shown in Fig. 2, being equipped with the first check weighing plate 1, the second check weighing plate 2, third on intelligent bus Check weighing plate 3 and passenger on public transport number detection device 4, wherein the first check weighing plate 1 is mounted on the step of getting on the bus at bus front door Inside, the second check weighing plate 2 are mounted on inside the step of getting off of rear door of bus, and the third check weighing plate 3 is mounted on public transport The bottom of the room by bus of vehicle, the passenger on public transport number detection device 4 are mounted on the side of operator seat, the first check weighing plate 1, Second check weighing plate 2 and third check weighing plate 3 are all connected with the passenger on public transport number detection device 4, certainly, it should be noted that this Invention provide passenger on public transport number detection device may be provided at except bus, by way of wireless connection with the first check weighing Plate 1, the second check weighing plate 2 and third check weighing plate 3, the present invention are not construed as limiting the position of passenger on public transport number detection device 4.
Specifically, the first check weighing plate 1 is used to measure the weight of the passenger to get on the bus and the data of measurement is transmitted to public affairs Hand over vehicle ridership detection device 4;The second check weighing plate 2 is used to measure the weight of the passenger to get off and transmits the data of measurement To passenger on public transport number detection device 4;The third check weighing plate 3 is for measuring on real-time vehicle the total weight of passenger and by measurement Data are transmitted to passenger on public transport number detection device 4.
Furthermore, it is understood that weight data is divided into point weight data and total weight data by the present invention, it is upper for dividing weight data Vehicle passenger weight data and passenger weight data of getting off, corresponding operation is carried out when the total weight data of vehicle change, will Point weight data is put on serial number and is incorporated into array, and records total weight data, and then the statistics for carrying out ridership calculates and in real time It updates;Wherein, the first array A is used to store the passenger weight data got on the bus and put on serial number, and the second array B is used to store to get off Passenger weight data and put on serial number, third array C is used to store the total weight data of all passengers, and the 4th array A1 is used to The weight data of the passenger that gets on the bus within the scope of storage constant weight, such as A=[[1,66.32], [2,78.15], [3, 190.00] ... ..], B=[[1,56.00], [2,70.15], [3,66.32] ... ..], C=[142.15], A1= [78.15 ... ..], in the present embodiment, the first preset weight range is 0 to 180 jin;In addition, it should be noted that, with multiplying Visitor gets on the bus, and weight data can all increase the number of weight data in array when can be stored in the first array and the 4th array, With passenger getting off car, the weight data number being stored into the second array be will increase and the weight data number in the 4th array Can reduce, in third array only store a total weight data, total weight data change each time all be data value increase or It reduces.
Preferably, the real-time status includes idle state, congestion state and full state, and idle state indicates that vehicle is superior Objective negligible amounts, congestion state indicate that passengers quantity is more on vehicle, and the state that has a full house indicates that passengers quantity is full on vehicle.
In further embodiment, Fig. 3 please be participate in, the step S400 is specifically included:
Whether the weight data in S201, monitoring third array changes, and if it is judges that ridership changes, Otherwise judge that ridership is constant;
Whether have in S202, the first array of monitoring and increases weight data value, it is increased in the first array if there is then judging Whether weight data value if it is calculates ridership of getting on the bus and adds one, calculating of otherwise getting on the bus multiplies within the scope of the first preset weight Objective number adds two, and calculates the total ridership got on the bus;
Whether have in S203, the second array of monitoring and increases weight data value, it is increased in the second array if there is then judging Weight data value adds two whether within the scope of the first preset weight, if not ridership of getting off then is calculated, otherwise in the 4th number Find in the second array increased weight data value in group and calculate ridership of getting off after deleting and add one, and calculate get off it is total Ridership;
Passenger on S204, total ridership that basis is got on the bus, the total ridership got off and the bus of last storage Number is calculated when total ridership on front truck.
Specifically, when being calculated, whether the data value first in monitoring third array changes, if do not had It changes, illustrate at this time not passenger loading or gets off, be only possible to passenger near check weighing plate.The present invention mentions The equipment of confession can prevent first in traditional pressure detecting method the problem of trampling back and forth.Then according to the data of total weight Value increases or reduces and carry out comprehensive descision at this time in conjunction with the variation of the weight data number in the first array and the second array It is no to get on the bus or getting off (it should be noted that the variation got on or off the bus with total weight is not positive connection);Then, judging When changing, according to total ridership that weight data number in the first array and weight data value are got on the bus, according to second Total ridership that weight data number and weight data value (in reasonable range) in array are got off, it is also right at this time Weight data value in first array and the second array carries out joint judgement, if it is within the scope of the first preset weight but passenger Orderly to get on or off the bus, the weight data in the second array can find the weight data of identical weight numerical value in the 4th array, The weight data for " scratching " identical weight numerical value from the weight data in the 4th array at this time just represents the passenger getting off car and (needs Illustrate, weight repeats to have no effect on the judgement of ridership).Last section carries out ridership meter directly from the 4th array Number, or using the total ridership calculation formula worked as on front truck, if weight no longer the first preset weight range of passenger up and down It is interior, or weight data in the 4th array can not find with regard to individually carrying out passengers quantity counting.
Furthermore, it is understood that total ridership calculation formula when on front truck are as follows:
Cn=Cn-1+ R,
Wherein, R=a-b, Cn are when total ridership on front truck, and Cn-1 is the passenger on the bus of last storage Number, a is the total ridership got on the bus, and b is the total ridership got off.
The ridership on current bus can be calculated according to recurrence formula, after saving after the completion of calculating and handle data To judge current bus be in which kind of state be then communicated to bus company scheduling system progress bus rationally adjust Degree.During the treatment using density value γ as the standard of reference.
Furthermore, it is understood that the density value calculation formula on the current bus are as follows:
γ=Cn÷ V,
Wherein, γ is the density value of current bus, CnFor when total ridership on front truck, V is the space size of public transport Value.
When the real-time status for carrying out vehicle judges: when γ is less than the first preset density value, judging that vehicle is in the free time State;When γ is not less than the first preset density value and is not more than the second preset density value, judge that vehicle is in congestion state;When When γ is greater than the second preset density value, judge that vehicle is in full state;Wherein, the reference value of closeness can be according to intelligent public affairs Hand over vehicle size and seat on intelligent bus number be adjusted correspondingly, in the present embodiment, described first preset it is close Angle value is 0.27, and second preset density value is 0.38.
In order to better understand the present invention, technical solution of the present invention is described in detail below in conjunction with Fig. 4:
In real life can not passenger centainly individually orderly get on or off the bus, it is therefore assumed that: 1. get on the bus ridership one Secondary is a people, because with the continuous development in e-payment epoch, when 95% or more passenger takes bus through mobile electricity Son payment, the paying riding fee used time is typically all the payment that a passenger follows a passenger;Passenger weight with 75 jin the following are One class, it is a class more than 180 jin that 75 jin to 180 jin, which are a class, if embracing the passenger that child gets on the bus is greater than 180 jin of countings For two passengers, if the weight for not embracing one passenger of child, which is greater than 180 jin, is also counted as two passengers, because being according to intensive The value of degree judges intelligent bus state in which, even 1 people is more than 180, shared weight is also more big;2. get on the bus passenger Before the weight data for being counted as a passenger and the weight data being placed in the 4th array of the weight less than 75 jin;On 3. Vehicle passenger weight is counted as a passenger greater than 75 jin less than 180 jin, and corresponding weight data is stored into the 4th array In;It gets on or off the bus together in one's arms 4. child is considered as to embrace if being significantly less weight than 75 jin in adult;5. ridership of getting off once is a people Or two people, the case where not considering 3 people or more while getting off;6. the passenger weight that do not consider to get on the bus is exactly equal to get off two The such small probability event of the sum of passenger weight;7. passenger weight of getting off is counted as a passenger less than 75 jin;8. get off passenger When weight is greater than 75 jin less than 180 jin and weight data can be found in the weight data in the 4th array, at this time from the 4th array In weight data " scratch " weight data of identical weight numerical value and be counted as a passenger, two are counted as if it can not find Passenger (explanation is two passengers while getting off at this time);9. two passengers that are counted as that the passenger that gets off is more than 180 jin (have willing at this time Can two passengers get off simultaneously weight be more than 180 jin or a passenger weight be more than 180 jin or a passenger have in arms it is small Child gets off more than 180 jin, but judges intelligent bus state in which according to the value of closeness, even 1 people is more than 180, shared weight is also more big, so being counted as two passengers).
1, when the weight data number in the first array or the second array changes, first judge the weight of third array Whether amount data value changes.If the weight data value of third array changes, illustrate to have at this time passenger loading or Person gets off.(do not consider to get on the bus and get off passenger weight just small probability event).
2, the weight data number of the first array changes, and total weight data value changes, and has passenger loading at this time (whether the increase of total weight data value is with reduction and in uninevitable contact of getting on the bus or get off).
If 2.1, the numerical value of the increased weight data of the first array is counted as a passenger less than 75 jin, and this is heavy Amount data be placed in the 4th array other be greater than before 75 jin of weight datas less than 180 jin, and weight data is put on Serial number.
If 2.2, the numerical value of the increased weight data of the first array is greater than 75 jin less than 180 jin, it is counted as a passenger, And the data are placed in the 4th array, and serial number is put on to weight data.
If 2.3, the numerical value of the increased weight data of the first array is counted as two passengers greater than 180, and to weight Data put on serial number.No matter it is 1 passenger or 2 passengers that it is corresponding, which to be greater than 180 this numerical value, all carried out as 2 passengers Processing.(judged according to closeness reference value, even 1 passenger is more than 180, shared weight is also more big.Do not consider 2 and The case where above passenger gets on the bus simultaneously)
3, the value of the second array changes, and total weight changes, and has passenger getting off car at this time.
If 3.1, the weight data of the secondary variation is at 0 jin to 180 jin within the scope of this, and the weight number in the second array According to the weight data of identical weight numerical value can be found in the weight data in the 4th array, at this time from the weight number in the 4th array According to the weight data of " scratching " identical weight numerical value, the passenger getting off car is just represented, ridership meter 1 of getting off.
If 3.2, the weight data of the secondary variation is at 0 jin to 180 jin within the scope of this, but the weight in the second array Data cannot find the weight data of identical weight numerical value in the weight data in the 4th array, then will delete in the past in the 4th array Except a weight data again from 75 jin to 150 jin within the scope of look for an immediate weight data, the two numerical value are deleted, and It gets off ridership meter 2.
If 3.3, the weight data of the variation within the scope of this and is greater than 180 jin not at 0 jin to 180 jin, get off passenger Number meter 2.
4, the ridership a that gets on the bus is obtained, and the ridership b that gets off.
5, according to formula Cn=Cn-1+ R (R=a-b) calculates current ridership, and Cn-1 is ridership on the vehicle of last time.
6, according to closeness formula: γ=Cn÷ V calculates current intelligent bus state in which.
Preferably, the first check weighing plate 1, the second check weighing plate 2 and third check weighing plate 3 pass through conducting wire and Vehicle Controller 4 connections.
Preferably, the Vehicle Controller of model MC9S12C can be used to realize in the passenger on public transport number detection device.
Preferably, the first check weighing plate 1, the second check weighing plate 2 and third check weighing plate 3 are the electricity of model TCS-3000 Sub- weighing scale.
The present invention passes through the relationship using point weight and total weight got on or off the bus, and judges get on the bus ridership and the passenger that gets off Number, and then obtain the ridership on current intelligent bus.Finally by the conversion of closeness, judge on current bus In idle, crowded or full state, and it is transferred to bus scheduling system and carries out intelligent bus rational management;From more Breakthrough is found in traditional method, rather than limits the solution to problem using thinkings such as video image processings completely;It can be suitable Answer the problems such as bus environment is complicated, and precision is lower, and cost performance is poor.
As shown in figure 5, being based on above-mentioned passenger on public transport number detection method, the present invention further correspondingly provides a kind of bus and multiplies Objective number detection device, the passenger on public transport number detection device can be mobile terminal, desktop PC, notebook, palm Computer and server etc. calculate equipment.The passenger on public transport number detection device includes processor 10, memory 20 and display 30. Fig. 5 illustrates only the members of passenger on public transport number detection device, it should be understood that being not required for implementing all show Component, the implementation that can be substituted is more or less component.
The memory 20 can be the storage inside list of the passenger on public transport number detection device in some embodiments Member, such as the hard disk or memory of passenger on public transport number detection device.The memory 20 is also possible in further embodiments What is be equipped on the External memory equipment of the passenger on public transport number detection device, such as the passenger on public transport number detection device inserts Connect formula hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash memory Block (Flash Card) etc..Further, the memory 20 can also both include the inside of passenger on public transport number detection device Storage unit also includes External memory equipment.The memory 20 is installed on the passenger on public transport number detection device for storing Application software and Various types of data, such as the program code etc. of the passenger on public transport number detection device.The memory 20 is also It can be used for temporarily storing the data that has exported or will export.In one embodiment, public affairs are stored on memory 20 Vehicle ridership is handed over to detect program 40, which detects program 40 can be performed by processor 10, to realize this Shen Please each embodiment passenger on public transport number detection method.
The processor 10 can be in some embodiments a central processing unit (Central Processing Unit, CPU), microprocessor or other data processing chips, for running the program code stored in the memory 20 or processing number According to, such as execute the passenger on public transport number detection method etc..
The display 30 can be light-emitting diode display, liquid crystal display, touch-control liquid crystal display in some embodiments And OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) touches device etc..The display 30 is used In the information for being shown in the passenger on public transport number detection device and for showing visual user interface.The bus The component 10-30 of ridership detection device is in communication with each other by system bus.
In one embodiment, the realization when processor 10 executes passenger on public transport number detection program 40 in the memory 20 Following steps:
The passenger weight value got on the bus is put on serial number to be stored in the first array, and will be within the scope of the first preset weight The passenger weight value got on the bus is stored in the 4th array;
The passenger weight value got off is put on serial number to be stored in the second array;
The total weight of passenger on real-time vehicle is stored in the weight value number in third array and in real-time update third array According to, wherein a total weight data are only stored in the third array;
It is calculated according to the data in the first array, the second array, third array and the 4th array real-time on bus Ridership;
The density value on current bus is calculated according to the real-time ridership on bus and according on current bus Density value judge the real-time status of vehicle.
Preferably, the real-time status includes idle state, congestion state and full state.
Further, the data according in the first array, the second array, third array and the 4th array calculate public affairs Hand over vehicle on real-time ridership the step of include:
Whether the weight data in monitoring third array changes, and if it is judges that ridership changes, otherwise Judge that ridership is constant;
It monitors in the first array whether to have and increases weight data value, if there is then judging increased weight number in the first array It according to value whether within the scope of the first preset weight, if it is calculates ridership of getting on the bus and adds one, otherwise getting on the bus calculates ridership and add Two, and calculate the total ridership got on the bus;
It monitors in the second array whether to have and increases weight data value, if there is then judging increased weight number in the second array According to value whether within the scope of the first preset weight, adds two if not ridership of getting off then is calculated, otherwise looked in the 4th array Increased weight data value and ridership of getting off is calculated after deleting add one, and calculate the total passenger to get off into the second array Number;
It is calculated according to the ridership on the bus of the total ridership got on the bus, the total ridership got off and last storage Out when total ridership on front truck.
Further, total ridership calculation formula when on front truck are as follows:
Cn=Cn-1+ R,
Wherein, R=a-b, Cn are when total ridership on front truck, and Cn-1 is the passenger on the bus of last storage Number, a is the total ridership got on the bus, and b is the total ridership got off.
Further, the density value calculation formula on the current bus are as follows:
γ=Cn÷ V,
Wherein, γ is the density value of current bus, CnFor when total ridership on front truck, V is the space size of public transport Value.
Further, the real-time ridership according on bus calculates the density value on current bus and basis Density value on current bus judges the step of real-time status of vehicle specifically:
When γ is less than the first preset density value, judge that vehicle is in idle condition;When γ is not less than the first pre-set density When being worth and being not more than the second preset density value, judge that vehicle is in congestion state;When γ is greater than the second preset density value, judgement Vehicle is in full state.
Further, first preset density value is 0.27, and second preset density value is 0.38.
Referring to Fig. 6, the function mould of its system preferred embodiment for detecting program for present invention installation passenger on public transport number Block figure.In the present embodiment, the system of installation passenger on public transport number detection program can be divided into one or more modules, institute It states one or more module to be stored in the memory 20, and (the present embodiment is described by one or more processors Processor 10) it is performed, to complete the present invention.For example, in Fig. 6, the system of installation passenger on public transport number detection program can be with It is divided into passenger weight memory module 21 of getting on the bus, passenger weight memory module 22 of getting off, 23 ridership of total weight memory module Computing module 24 and vehicle-state judgment module 25.The so-called module of the present invention is a series of meters for referring to complete specific function Calculation machine program instruction section is examined more suitable for describing the passenger on public transport number detection program in the passenger on public transport number than program Implementation procedure in measurement equipment.The function of the module 21-25 will specifically be introduced by being described below.
It gets on the bus passenger weight memory module 21, the passenger weight value for will get on the bus puts on serial number and is stored in the first array In, and the passenger weight value got on the bus within the scope of the first preset weight is stored in the 4th array;
It gets off passenger weight memory module 22, the passenger weight value for will get off puts on serial number and is stored in the second array In;
Total weight memory module 23, for the total weight of passenger on real-time vehicle to be stored in third array simultaneously real-time update Weight Value Data in third array, wherein a total weight data are only stored in the third array;
Ridership computing module 24, for according to the data in the first array, the second array, third array and the 4th array Calculate the real-time ridership on bus;
Vehicle-state judgment module 25, it is close on current bus for being calculated according to the real-time ridership on bus Angle value and the real-time status that vehicle is judged according to the density value on current bus.
Wherein, the real-time status includes idle state, congestion state and full state.
Furthermore, it is understood that the ridership computing module 24 includes:
Ridership changes judging unit, and whether the weight data for monitoring in third array changes, if it is Judge that ridership changes, otherwise judges that ridership is constant;
It gets on the bus ridership computing unit, increases weight data value for monitoring whether to have in the first array, if there is then sentencing Whether increased weight data value if it is calculates ridership of getting on the bus and adds within the scope of the first preset weight in disconnected first array One, otherwise getting on the bus calculates ridership and adds two, and calculates the total ridership got on the bus;
It gets off ridership computing unit, increases weight data value for monitoring whether to have in the second array, if there is then sentencing Whether increased weight data value within the scope of the first preset weight in disconnected second array, if not then calculating ridership of getting off Add two, increased weight data value is otherwise found in the second array in the 4th array and calculates ridership of getting off after deleting adds One, and calculate the total ridership got off;
Total ridership computing unit, for according to the total ridership got on the bus, the total ridership got off and last storage Bus on ridership calculate when total ridership on front truck.
Wherein, total ridership calculation formula when on front truck are as follows:
Cn=Cn-1+ R,
Wherein, R=a-b, Cn are when total ridership on front truck, and Cn-1 is the passenger on the bus of last storage Number, a is the total ridership got on the bus, and b is the total ridership got off.
Preferably, the density value calculation formula on the current bus are as follows:
γ=Cn÷ V,
Wherein, γ is the density value of current bus, CnFor when total ridership on front truck, V is the space size of public transport Value.
Preferably, the vehicle-state judgment module 25 is specifically used for:
When γ is less than the first preset density value, judge that vehicle is in idle condition;When γ is not less than the first pre-set density When being worth and being not more than the second preset density value, judge that vehicle is in congestion state;When γ is greater than the second preset density value, judgement Vehicle is in full state.
Preferably, first preset density value is 0.27, and second preset density value is 0.38.
In conclusion in passenger on public transport number detection method provided by the invention, equipment and storage medium, the method packet It includes: the passenger weight value got on the bus being put on into serial number and is stored in the first array, and by getting on the bus within the scope of the first preset weight Passenger weight value be stored in the 4th array;The passenger weight value got off is put on serial number to be stored in the second array;It will be real The total weight of Shi Cheshang passenger is stored in the weight Value Data in third array and in real-time update third array;According to the first number Data in group, the second array, third array and the 4th array calculate the real-time ridership on bus;According on bus Real-time ridership calculate the density value on current bus and vehicle judged according to the density value on current bus Real-time status.The present invention passes through using the relationship of point weight and total weight got on or off the bus, and the ridership and getting off of judging to get on the bus multiplies Objective number, and then obtain the ridership on current intelligent bus.Finally by the conversion of closeness, judge on current bus In idle, crowded or full state, and it is transferred to bus scheduling system and carries out intelligent bus rational management;From more To find breakthrough in traditional method, rather than the solution to problem is limited using thinkings such as video image processings completely;Energy Adapt to the problems such as bus environment is complicated, and precision is lower, and cost performance is poor.
Certainly, those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, It is that related hardware (such as processor, controller etc.) can be instructed to complete by computer program, the program can store In a computer-readable storage medium, which may include the process such as above-mentioned each method embodiment when being executed.Its Described in storage medium can be for memory, magnetic disk, CD etc..
It, can according to the technique and scheme of the present invention and its hair it is understood that for those of ordinary skills Bright design is subject to equivalent substitution or change, and all these changes or replacement all should belong to the guarantor of appended claims of the invention Protect range.

Claims (9)

1. a kind of passenger on public transport number detection method, which comprises the steps of:
The passenger weight value got on the bus is put on serial number to be stored in the first array, and by getting on the bus within the scope of the first preset weight Passenger weight value be stored in the 4th array;
The passenger weight value got off is put on serial number to be stored in the second array;
The total weight of passenger on real-time vehicle is stored in the weight Value Data in third array and in real-time update third array, In, a total weight data are only stored in the third array;
The real-time passenger on bus is calculated according to the data in the first array, the second array, third array and the 4th array Number;
The density value on current bus is calculated according to the real-time ridership on bus and according to close on current bus Angle value judges the real-time status of vehicle.
2. passenger on public transport number detection method according to claim 1, which is characterized in that the real-time status includes the free time State, congestion state and full state.
3. passenger on public transport number detection method according to claim 2, which is characterized in that described according to the first array, The step of data in two arrays, third array and the 4th array calculate the real-time ridership on bus include:
Whether the weight data in monitoring third array changes, and if it is judges that ridership changes, otherwise judges Ridership is constant;
It monitors in the first array whether to have and increases weight data value, if there is then judging increased weight data value in the first array Whether within the scope of the first preset weight, if it is calculates ridership of getting on the bus and add one, otherwise getting on the bus calculates ridership and adds two, and Calculate the total ridership got on the bus;
It monitors in the second array whether to have and increases weight data value, if there is then judging increased weight data value in the second array Whether within the scope of the first preset weight, add two if not ridership of getting off then is calculated, the is otherwise found in the 4th array Increased weight data value and ridership of getting off is calculated after deleting add one, and calculate the total ridership got off in two arrays;
It is calculated and is worked as according to the ridership on the bus of the total ridership got on the bus, the total ridership got off and last storage Total ridership on front truck.
4. passenger on public transport number detection method according to claim 3, which is characterized in that total passenger when on front truck Number calculation formula are as follows:
Cn=Cn-1+ R,
Wherein, R=a-b, Cn are when total ridership on front truck, and Cn-1 is the ridership on the bus of last storage, and a is The total ridership got on the bus, b are the total ridership got off.
5. passenger on public transport number detection method according to claim 4, which is characterized in that close on the current bus Angle value calculation formula are as follows:
γ=Cn÷ V,
Wherein, γ is the density value of current bus, CnFor when total ridership on front truck, V is the space size value of public transport.
6. passenger on public transport number detection method according to claim 5, which is characterized in that the reality according on bus When ridership calculate the density value on current bus and the real-time of vehicle judged according to the density value on current bus The step of state specifically:
When γ is less than the first preset density value, judge that vehicle is in idle condition;When γ not less than the first preset density value and When no more than the second preset density value, judge that vehicle is in congestion state;When γ is greater than the second preset density value, vehicle is judged In full state.
7. passenger on public transport number detection method according to claim 6, which is characterized in that first preset density value is 0.27, second preset density value is 0.38.
8. a kind of passenger on public transport number detection device characterized by comprising processor, memory and communication bus;
The computer-readable program that can be executed by the processor is stored on the memory;
The communication bus realizes the connection communication between processor and memory;
Realize that the bus as described in claim 1-7 any one multiplies when the processor executes the computer-readable program Step in objective number detection method.
9. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be executed by one or more processor, to realize that claim 1-7 such as appoints Step in passenger on public transport number detection method described in meaning one.
CN201910699889.XA 2019-07-31 2019-07-31 A kind of passenger on public transport number detection method, equipment and storage medium Withdrawn CN110473399A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910699889.XA CN110473399A (en) 2019-07-31 2019-07-31 A kind of passenger on public transport number detection method, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910699889.XA CN110473399A (en) 2019-07-31 2019-07-31 A kind of passenger on public transport number detection method, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110473399A true CN110473399A (en) 2019-11-19

Family

ID=68509633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910699889.XA Withdrawn CN110473399A (en) 2019-07-31 2019-07-31 A kind of passenger on public transport number detection method, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110473399A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090192756A1 (en) * 2008-01-28 2009-07-30 Bodin William K Utilizing Gross Vehicle Weight to Determine Passenger Numbers
CN205563758U (en) * 2016-03-30 2016-09-07 成都理工大学 Public transit number real time intelligence detecting system
CN206672196U (en) * 2017-03-09 2017-11-24 郑州宇通客车股份有限公司 A kind of car occupant data statistics device and a kind of automobile

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090192756A1 (en) * 2008-01-28 2009-07-30 Bodin William K Utilizing Gross Vehicle Weight to Determine Passenger Numbers
CN205563758U (en) * 2016-03-30 2016-09-07 成都理工大学 Public transit number real time intelligence detecting system
CN206672196U (en) * 2017-03-09 2017-11-24 郑州宇通客车股份有限公司 A kind of car occupant data statistics device and a kind of automobile

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
余珺瑞 等: "智能公交人数检测方法研究", 《电脑知识与技术》 *

Similar Documents

Publication Publication Date Title
CN103279998B (en) A kind of turn pike charge station gateway track collecting vehicle information and recognition system
CN105140977B (en) Electric automobile based on dispatching of power netwoks changes method for electrically and changes electricity service Internet of Things
CN204557612U (en) A kind of bus passenger flow statistical system based on machine vision
CN201936386U (en) Public vehicle and charging terminal, billing system and payment terminal thereof
CN203311473U (en) Toll road toll station gateway lane vehicle information acquisition and identification system
CN106097759A (en) A kind of intelligent parking method and system for parking lot
CN103886774A (en) Intelligent city public road curb parking management method and system
CN103839333B (en) A kind of air passenger self-help luggage moves mandatory system and control method
CN105741366B (en) A kind of anti-interference with vehicle method of commerce, roadside unit and transaction system
US11847875B2 (en) System and method of providing remote management of access to a group of devices
CN109572477A (en) Automatically switch the charging pile of power
CN111445179A (en) Three-in-one intelligent park management platform based on Internet of things and optimization algorithm
CN110490103A (en) Track traffic for passenger flow Density Detection method and device
CN201845193U (en) Unattended operation metering control system
CN109285340A (en) A kind of GPS management monitoring system of Mine haul vehicle
CN103714604B (en) Based on the bus passenger flow statistical system of ultrasonic sensor
CN110473399A (en) A kind of passenger on public transport number detection method, equipment and storage medium
CN209534770U (en) A kind of intelligent charging spot system based on 4G communication
CN109003449B (en) Remote vehicle information managing and control system
Rajyalakshmi et al. Detection of car parking space by using Hybrid Deep DenseNet Optimization algorithm
CN109033964A (en) It is a kind of judgement vehicle to departure from port event method, system and equipment
CN103641058A (en) System for measuring and metering oil in tank truck automatically
CN102622815A (en) Electric vehicle charging tolling system based on power line carrier
CN110246361A (en) Parking management method, device and terminal based on intelligent railway spike
TWI773339B (en) Dispatching system and method for automated guided vehicle

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20191119

WW01 Invention patent application withdrawn after publication