CN109948434B - Method, device, computer equipment and storage medium for boarding number statistics - Google Patents

Method, device, computer equipment and storage medium for boarding number statistics Download PDF

Info

Publication number
CN109948434B
CN109948434B CN201910100416.3A CN201910100416A CN109948434B CN 109948434 B CN109948434 B CN 109948434B CN 201910100416 A CN201910100416 A CN 201910100416A CN 109948434 B CN109948434 B CN 109948434B
Authority
CN
China
Prior art keywords
value
state
ship
shore
boarding
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
CN201910100416.3A
Other languages
Chinese (zh)
Other versions
CN109948434A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910100416.3A priority Critical patent/CN109948434B/en
Publication of CN109948434A publication Critical patent/CN109948434A/en
Application granted granted Critical
Publication of CN109948434B publication Critical patent/CN109948434B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A10/00TECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE at coastal zones; at river basins
    • Y02A10/40Controlling or monitoring, e.g. of flood or hurricane; Forecasting, e.g. risk assessment or mapping

Landscapes

  • Traffic Control Systems (AREA)

Abstract

The present disclosure relates to the field of monitoring technologies, and in particular, to a method, an apparatus, a computer device, and a storage medium for boarding people statistics. Selecting the largest pedestrian number value from the recorded data, obtaining a first quantity value, selecting the pedestrian number value of one of the recorded data when the state of the ship is switched to the off state, obtaining a second quantity value, and counting the number of pedestrians entering each entrance and exit of the square of the waiting ship from the entering state to the state of the ship to obtain the second quantity value; counting the number of pedestrians going out from each entrance and exit of the waiting square in the period from the on-shore state to the off-driving state to obtain a fourth number value; counting the number of pedestrians entering a waiting square from a ship to obtain a fifth number value; according to the comparison result of the fifth quantity value and the fourth quantity value, the first or second calculation formula is selected to count the boarding number, and the problem that the error between the boarding number counted by video and the actual boarding number is large by monitoring the number of pedestrians on boarding and disembarking is solved.

Description

Method, device, computer equipment and storage medium for boarding number statistics
Technical Field
The present disclosure relates to the field of monitoring technologies, and in particular, to a method, an apparatus, a computer device, and a storage medium for boarding people statistics.
Background
At present, passengers need to boarding, all wait in the waiting square of the ferry bank, after the ship is on shore, the number of people who go on and off the pedestrian passageway of the ship is monitored through the camera of the ferry bank, but because people flow is large, and the shielding between people is serious, the problem that the error between the number of boarding people in video statistics and the actual number of boarding people is large exists.
Content of the application
Aiming at the defects of the prior art, the application provides a boarding personnel number counting method, a boarding personnel number counting device, computer equipment and a storage medium, and aims to solve the problem that the error between the boarding personnel number counted by video and the actual boarding personnel number is large by monitoring the personnel number of pedestrian channels on and off a ship.
The technical scheme that this application put forward is:
a method of boarding demographics, the method comprising:
monitoring pedestrians in a waiting square, and recording the number of pedestrians in the waiting square to obtain recorded data, wherein the recorded data is formed by a plurality of pedestrian number values, the pedestrian number values are obtained by counting the number of the pedestrians monitored, and each time the number of the pedestrians is counted, one pedestrian number value is generated;
Monitoring whether the ship in the landing zone is switched from the entering state to the landing state;
if the ship is monitored to be switched from the entering state to the landing state, selecting the maximum pedestrian number value from the entering state to the landing state from the recorded data as the number of people to be boarding, and obtaining a first number value;
monitoring whether the ship is switched from the shore-on state to the off-drive state;
if the ship is monitored to be in the state of being on shore and being switched to the state of being off shore, selecting one number of traveling people value from the recorded data when the state of being on shore is switched to the state of being off shore, and obtaining a second number value;
counting the number of pedestrians entering each entrance and exit of the waiting square in the state from the entering state to the shore-backing state to obtain a third quantity value;
counting the number of pedestrians going out from each entrance and exit of the waiting square in the period from the on-shore state to the off-driving state to obtain a fourth number value;
counting the number of pedestrians entering a waiting square from a ship to obtain a fifth number value;
comparing the fifth quantity value with the fourth quantity value;
if the fifth quantity value is greater than or equal to the fourth quantity value, counting the number of boarding persons according to a first calculation formula, wherein the first calculation formula is A+C-B- (E-D), A is the first quantity value, C is the third quantity value, B is the second quantity value, E is the fifth quantity value, and D is the fourth quantity value;
And if the fifth quantity value is smaller than the fourth quantity value, counting the number of boarding persons according to a second calculation formula, wherein the second calculation formula is A+C-B, A is the first quantity value, C is the third quantity value and B is the second quantity value.
Further, in the step of monitoring whether the ship is switched from the entering state to the landing state in the landing area, the method includes:
monitoring whether a ship exists in the shore area;
if the ship exists in the shore area, judging whether the distance between the center point of the ship and the shore is reduced;
if the distance between the center point of the ship and the shore is determined to be smaller, determining that the ship is in a driving-in state;
obtaining the distance between the center point of the ship and the shore according to a preset first frequency twice continuously to obtain a first distance and a second distance;
calculating a change value of the first distance and the second distance to obtain a first change value;
judging whether the first variation value is smaller than a first preset value or not;
if the first variation value is smaller than a first preset value, the ship is judged to be in a shore-backing state; and when the first variation value is smaller than a first preset value, judging that the ship is switched from the entering state to the landing state.
Further, in the step of monitoring whether the ship is switched from the entering state to the landing state in the landing area, the method includes:
monitoring whether a ship exists in the shore area;
if the ship exists in the shore area, judging whether the distance between the center point of the ship and the shore is reduced;
if the distance between the center point of the ship and the shore is determined to be smaller, determining that the ship is in a driving-in state;
continuously acquiring images of the distance between the center point of the ship and the shore for two times according to a preset third frequency to acquire a first image and a second image;
calculating the change values of the first image and the second image to obtain a second change value, wherein the second change value is the number value of the pixel points;
judging whether the second variation value is smaller than the number value of the first preset pixel points or not;
if the second variation value is smaller than the first preset pixel value, the ship is judged to be in a shore-leaning state; and when the second variation value is judged to be smaller than the first preset pixel value for the first time, judging that the ship is switched from the entering state to the landing state.
Further, in the step of monitoring whether the ship is switched from the on-shore state to the off-drive state, the method includes:
When the ship is in a shore-backing state, continuously acquiring the distance between the center point of the ship and the shore twice according to a preset second frequency to acquire a third distance and a fourth distance;
calculating a change value of the third distance and the fourth distance to obtain a third change value;
judging whether the third variation value is larger than or equal to a second preset value;
if the third variation value is larger than or equal to a second preset value, the ship is judged to be in a driving-off state; and when the third variation value is larger than or equal to a second preset value, the ship is judged to be switched from the shore-on state to the driving-off state.
Further, in the step of monitoring whether the ship is switched from the on-shore state to the off-drive state, the method includes:
when the ship is in a shore-leaning state, continuously acquiring images of the distance between the center point of the ship and the shore twice according to a preset fourth frequency, and acquiring a third image and a fourth image;
calculating the change values of the third image and the fourth image to obtain a fourth change value, wherein the fourth change value is the number value of the pixel points;
judging whether the fourth variation value is larger than or equal to the number value of the second preset pixel points;
If the fourth variation value is larger than or equal to the number value of the second preset pixel points, the ship is judged to be in a driving-away state; and when the fourth variation value is larger than or equal to the number value of the second preset pixel points, the ship is judged to be switched from the on-shore state to the off-drive state.
Further, after the step of counting the number of boarding persons according to the first calculation formula if the fifth number value is greater than or equal to the fourth number value, or after the step of counting the number of boarding persons according to the second calculation formula if the fifth number value is less than the fourth number value, the method comprises the steps of:
counting the number of pedestrians entering the ship from the waiting square to obtain a sixth number value;
comparing the statistical result of the number of boarding persons with the sixth number value;
if the statistical result is greater than or equal to the sixth numerical value, the number of boarding persons is still the statistical result;
and if the statistical result is smaller than the sixth numerical value, changing the number of boarding persons to the sixth numerical value.
Further, after the step of changing the boarding number to the sixth number if the statistical result is smaller than the sixth number, the method includes:
And sending the reminding mail to the appointed receiver.
The application also provides a boarding personnel counting device, which comprises:
the system comprises a recording module, a storage module and a control module, wherein the recording module is used for monitoring pedestrians in a waiting square, recording the number of pedestrians in the waiting square, and obtaining recording data, wherein the recording data is formed by a plurality of pedestrian number values, the pedestrian number values are obtained by counting the number of the pedestrians monitored, and each time the number of the pedestrians is counted, a pedestrian number value is generated;
the first monitoring module is used for monitoring whether the ship in the shore area is switched from the entering state to the shore state;
the first selecting module is used for selecting the maximum pedestrian number value from the entering state to the shore-logging state from the recorded data as the number of people to be boarding if the ship is monitored to be switched from the entering state to the shore-logging state, and obtaining a first number value;
the second monitoring module is used for monitoring whether the ship is switched from the shore-on state to the off-drive state;
the second selecting module is used for selecting one number of traveling people value from the recorded data when the shore-on state is switched to the off-drive state if the ship is monitored to be in the shore-on state and is switched to the off-drive state, so as to obtain a second number value;
The first statistics module is used for counting the number of pedestrians entering each entrance and exit of the waiting square from the entering state to the shore-guiding state to obtain a third quantity value;
the second statistics module is used for counting the number of pedestrians going out from each entrance and exit of the waiting square in the process of going from the on-shore state to the off-driving state to obtain a fourth number value;
the third statistics module is used for counting the number of pedestrians entering the waiting square from the ship to obtain a fifth number value;
a first comparison module for comparing the fifth quantity value with the fourth quantity value;
the boarding number counting module is used for counting the boarding number according to a first calculation formula if the fifth number value is greater than or equal to the fourth number value, wherein the first calculation formula is A+C-B- (E-D), A is the first number value, C is the third number value, B is the second number value, E is the fifth number value, and D is the fourth number value; and if the fifth quantity value is smaller than the fourth quantity value, counting the number of boarding persons according to a second calculation formula, wherein the second calculation formula is A+C-B, A is the first quantity value, C is the third quantity value and B is the second quantity value.
The present application also provides a computer device comprising a memory storing a computer program and a processor implementing the steps of any one of the methods described above when the computer program is executed by the processor.
The present application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of any of the above.
According to the technical scheme, the application has the beneficial effects that: the method comprises the steps of obtaining recorded data by means of a number of traveling people recorded in a waiting ship square, monitoring that a ship in a landing area is switched from a driving-in state to a landing state, selecting the largest number of pedestrians from the driving-in state to the landing state from the recorded data as the number of people to be boarding, obtaining a first number value, monitoring that the ship is switched from the landing state to a driving-out state, selecting the number of traveling people from the recorded data when the ship is switched from the landing state to the driving-out state, obtaining a second number value, and counting the number of pedestrians entering each entrance and exit of the waiting ship square in the driving-in state to the landing state to obtain a third number value; counting the number of pedestrians going out from each entrance and exit of the waiting square in the period from the on-shore state to the off-driving state to obtain a fourth number value; counting the number of pedestrians entering a waiting square from a ship to obtain a fifth number value; if the fifth quantity value is larger than or equal to the fourth quantity value, the boarding number is counted according to the first calculation formula, if the fifth quantity value is smaller than the fourth quantity value, the boarding number is counted according to the second calculation formula, the accuracy is improved through multi-line statistics and the combination of the statistics information of different states, and the problem that the error between the boarding number counted by video and the actual boarding number is larger due to the fact that the number of pedestrians on boarding and alighting channels is monitored is solved.
Drawings
FIG. 1 is a flow chart of a method of boarding demographics provided by an embodiment of the present application;
FIG. 2 is a functional block diagram of a boarding personal statistics device provided by an embodiment of the present application;
fig. 3 is a schematic block diagram of a computer device provided by an embodiment of the application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
As shown in fig. 1, an embodiment of the present application proposes a boarding personal number counting method, which includes the following steps:
step S101, monitoring pedestrians in a waiting square, recording the number of pedestrians in the waiting square, and obtaining recorded data, wherein the recorded data are formed by a plurality of pedestrian number values, the pedestrian number values are obtained by counting the monitored number of pedestrians, and each time the number of pedestrians is counted, one pedestrian number value is generated.
The pedestrians in the waiting ship square, the pedestrians entering at the entrances and exits of the waiting ship square and the pedestrians entering the waiting ship square from the ship are monitored. And obtaining the number of pedestrians in the waiting ship square by monitoring pedestrians in the waiting ship square, and recording the number of pedestrians in the waiting ship square to obtain recorded data.
Step S102, monitoring whether the ship in the landing area is switched from the entering state to the landing state.
And monitoring the ship in the landing area, and monitoring whether the ship in the landing area is switched from the entering state to the landing state.
In the present embodiment, in step S102, it includes:
monitoring whether a ship exists in the shore area;
if the ship exists in the shore area, judging whether the distance between the center point of the ship and the shore is reduced;
if the distance between the center point of the ship and the shore is determined to be smaller, determining that the ship is in a driving-in state;
obtaining the distance between the center point of the ship and the shore according to a preset first frequency twice continuously to obtain a first distance and a second distance;
calculating a change value of the first distance and the second distance to obtain a first change value;
judging whether the first variation value is smaller than a first preset value or not;
if the first variation value is smaller than a first preset value, the ship is judged to be in a shore-backing state; and when the first variation value is smaller than a first preset value, judging that the ship is switched from the entering state to the landing state.
Monitoring the shore area, monitoring whether the ship exists in the shore area, if the ship exists in the shore area, judging whether the ship is in a driving-in state, specifically, acquiring the distance between the center point of the ship and the shore, judging whether the distance between the center point of the ship and the shore is smaller according to the acquired distance between the center point of the ship and the shore, if the distance between the center point of the ship and the shore is smaller, judging that the ship is in the driving-in state, continuously acquiring the distance between the center point of the ship and the shore according to a preset first frequency after judging that the ship is in the driving-in state, acquiring a first distance and a second distance, calculating a change value of the first distance and the second distance, namely, subtracting the value obtained by subtracting the second distance from the first distance, judging whether the first change value is smaller than the first preset value, and judging that the ship is in the shore state if the first change value is smaller than the first preset value, wherein when judging that the first change value is smaller than the first preset value, judging that the ship is switched from the driving-in state.
In some embodiments, in step S102, comprising:
Monitoring whether a ship exists in the shore area;
if the ship exists in the shore area, judging whether the distance between the center point of the ship and the shore is reduced;
if the distance between the center point of the ship and the shore is determined to be smaller, determining that the ship is in a driving-in state;
continuously acquiring images of the distance between the center point of the ship and the shore for two times according to a preset third frequency to acquire a first image and a second image;
calculating the change values of the first image and the second image to obtain a second change value, wherein the second change value is the number value of the pixel points;
judging whether the second variation value is smaller than the number value of the first preset pixel points or not;
if the second variation value is smaller than the first preset pixel value, the ship is judged to be in a shore-leaning state; and when the second variation value is judged to be smaller than the first preset pixel value for the first time, judging that the ship is switched from the entering state to the landing state.
Monitoring the shore area, monitoring whether the ship exists in the shore area, judging whether the ship is in a driving state if the ship exists in the shore area, specifically, acquiring the distance between the center point of the ship and the shore, judging whether the distance between the center point of the ship and the shore is smaller according to the acquired distance between the center point of the ship and the shore, judging whether the ship is in the driving state if the distance between the center point of the ship and the shore is smaller, continuously acquiring images of the distance between the center point of the ship and the shore according to a preset third frequency after judging that the ship is in the driving state, acquiring a first image and a second image, calculating the change value of the first image and the second image, and identifying the number of pixels occupied by the center point and the bank of the ship in the first image and the second image respectively, subtracting the number of the two pixels to obtain the number of pixels, wherein the number of the pixels is a second variation value, judging whether the second variation value is smaller than the number of first preset pixels, if so, judging that the ship is in the on-shore state, wherein when the second variation value is smaller than the number of first preset pixels, judging that the ship is switched from the on-shore state, and in the embodiment, the number of the first preset pixels is 10 pixels.
Step S103, if the ship is monitored to be switched from the entering state to the landing state, selecting the maximum pedestrian number value from the entering state to the landing state from the recorded data as the number of people to be boarding, and obtaining a first number value.
The number of pedestrians in the waiting square is considered as the number of people to be boarding from the driving state to the landing state, and because the number of pedestrians in the waiting square is large, shielding is easily caused among the pedestrians, and the monitored number is easily inaccurate.
Step S104, monitoring whether the ship is switched from the shore-on state to the off-drive state.
And monitoring the ship, and monitoring whether the ship is switched from the shore-backing state to the driving-off state.
In the present embodiment, in step S104, it includes:
when the ship is in a shore-backing state, continuously acquiring the distance between the center point of the ship and the shore twice according to a preset second frequency to acquire a third distance and a fourth distance;
Calculating a change value of the third distance and the fourth distance to obtain a third change value;
judging whether the third variation value is larger than or equal to a second preset value;
if the third variation value is larger than or equal to a second preset value, the ship is judged to be in a driving-off state; and when the third variation value is larger than or equal to a second preset value, the ship is judged to be switched from the shore-on state to the driving-off state.
When the ship is in the shore-backing state, continuously acquiring the distance between the center point of the ship and the shore according to a preset second frequency twice, obtaining a third distance and a fourth distance, calculating a change value of the third distance and the fourth distance, namely subtracting the fourth distance from the third distance to obtain a value, wherein the value is the third change value, judging whether the third change value is larger than or equal to a second preset value, and judging that the ship is in the driving-off state if the third change value is larger than or equal to the second preset value, wherein when the third change value is judged to be larger than or equal to the second preset value for the first time, switching the ship from the shore-backing state to the driving-off state.
In some embodiments, in step S104, comprising:
When the ship is in a shore-leaning state, continuously acquiring images of the distance between the center point of the ship and the shore twice according to a preset fourth frequency, and acquiring a third image and a fourth image;
calculating the change values of the third image and the fourth image to obtain a fourth change value, wherein the fourth change value is the number value of the pixel points;
judging whether the fourth variation value is larger than or equal to the number value of the second preset pixel points;
if the fourth variation value is larger than or equal to the number value of the second preset pixel points, the ship is judged to be in a driving-away state; and when the fourth variation value is larger than or equal to the number value of the second preset pixel points, the ship is judged to be switched from the on-shore state to the off-drive state.
When the ship is in the on-shore state, continuously acquiring images of the distance between the center point and the shore of the ship for two times according to a preset fourth frequency, acquiring a third image and a fourth image, calculating the change values of the third image and the fourth image, identifying the number of pixels occupied by the center point and the shore of the ship in the third image and the fourth image respectively, subtracting the number of pixels obtained by the subtraction of the number of the two pixels, wherein the number of the pixels is the fourth change value, judging whether the fourth change value is larger than or equal to the number of second preset pixels, and judging that the ship is in the off-shore state if the fourth change value is larger than or equal to the number of the second preset pixels, wherein the ship is judged to be switched to the off-shore state from the on-shore state when the fourth change value is judged to be larger than or equal to the number of the second preset pixels for the first time, and the number of the second preset pixels is 10 pixels in the embodiment.
Step S105, if it is monitored that the ship is in the shore-on state and is switched to the off-state, selecting a number of line people value from the recorded data when the shore-on state is switched to the off-state, and obtaining a second number value.
If the ship is monitored to be in the state of being in the shore and is switched to the state of being away, the pedestrian number value in the waiting ship square when the state of being in the shore is switched to the state of being away is obtained, specifically, the pedestrian number value when one of the ship is in the state of being in the shore is selected from the recorded data, and the second number value is obtained.
And S106, counting the number of pedestrians entering each entrance and exit of the waiting square in the state from the entering state to the landing state, and obtaining a third quantity value.
And counting the number of the pedestrians entering each entrance of the waiting ship square from the entering state to the shore-leaning state by monitoring the pedestrians entering each entrance of the waiting ship square, and obtaining a third quantity value.
And S107, counting the number of pedestrians going out from each entrance of the waiting square in the process of going from the on-shore state to the off-wind state, and obtaining a fourth number value.
And counting the number of pedestrians exiting from each entrance of the waiting ship square when the waiting ship square is in a state from the on-shore state to the off-driving state by monitoring pedestrians exiting from each entrance of the waiting ship square, and obtaining a fourth number value.
And S108, counting the number of pedestrians entering a waiting square from the ship to obtain a fifth number value.
And counting the number of pedestrians entering the waiting square from the ship by monitoring pedestrians entering the waiting square from the ship, and obtaining a fifth number value.
Step S109, comparing the fifth quantity value with the fourth quantity value.
By comparing the fifth quantity value with the fourth quantity value, whether pedestrians from the ship go out from the entrances and exits of the waiting square can be known.
And step S110, if the fifth quantity value is greater than or equal to the fourth quantity value, counting the number of boarding persons according to a first calculation formula, wherein the first calculation formula is A+C-B- (E-D), A is the first quantity value, C is the third quantity value, B is the second quantity value, E is the fifth quantity value, and D is the fourth quantity value.
If the fifth number value is greater than or equal to the fourth number value, it indicates that pedestrians falling from the ship do not all exit from each entrance of the waiting square, therefore, the boarding number is counted according to a first calculation formula, wherein the first calculation formula is A+C-B- (E-D), A is the first number value, C is the third number value, B is the second number value, E is the fifth number value, and D is the fourth number value.
And step 111, if the fifth quantity value is smaller than the fourth quantity value, counting the number of boarding persons according to a second calculation formula, wherein the second calculation formula is A+C-B, A is the first quantity value, C is the third quantity value and B is the second quantity value.
If the fifth number value is smaller than the fourth number value, the pedestrians falling from the ship are all indicated to go out from the entrances and exits of the waiting square, and therefore the boarding number is counted according to a second calculation formula, wherein the second calculation formula is A+C-B, A is the first number value, C is the third number value, and B is the second number value.
In order to further improve the accuracy of counting the number of boarding persons, in this embodiment, after step S110, or after step S111, the method includes:
counting the number of pedestrians entering the ship from the waiting square to obtain a sixth number value;
comparing the statistical result of the number of boarding persons with the sixth number value;
if the statistical result is greater than or equal to the sixth numerical value, the number of boarding persons is still the statistical result;
and if the statistical result is smaller than the sixth numerical value, changing the number of boarding persons to the sixth numerical value.
Monitoring pedestrians entering the ship from the waiting square, counting the number of pedestrians entering the ship from the waiting square by monitoring pedestrians entering the ship from the waiting square, obtaining a sixth number value, calculating the number of passengers according to a formula before, comparing the counted number of passengers with the sixth number value, if the counted result is larger than or equal to the sixth number value, the number of passengers is still counted, and if the counted result is smaller than the sixth number value, the number of passengers is changed into the sixth number value.
In this embodiment, after the step of changing the boarding number to the sixth number if the statistical result is smaller than the sixth number, the method includes:
and sending the reminding mail to the appointed receiver.
If the number of boarding persons is changed to the sixth number value, the fact that the number of the multiple lines in the multiple line statistics is insufficient is indicated, namely the fact that the number of the entrances and exits in the waiting square is insufficient is indicated, for this purpose, reminding mails are sent to appointed receivers, and after the reminding mails are received, the receivers can know that the number of the entrances and exits in the waiting square is insufficient, and the number of the entrances and exits in the waiting square can be increased subsequently.
In summary, the number of pedestrians recorded in the waiting area is obtained, the condition that the ship is switched from the entering state to the landing state is monitored, the largest number of pedestrians in the entering state to the landing state is selected from the recorded data as the number of pedestrians to be boarding, the first number is obtained, the condition that the ship is switched from the landing state to the leaving state is monitored, the number of pedestrians in the condition that the ship is switched from the landing state to the leaving state is selected from the recorded data, the second number is obtained, the number of pedestrians entering from the entering state to each entrance of the waiting area in the landing state is counted, and the third number is obtained; counting the number of pedestrians going out from each entrance and exit of the waiting square in the period from the on-shore state to the off-driving state to obtain a fourth number value; counting the number of pedestrians entering a waiting square from a ship to obtain a fifth number value; if the fifth quantity value is larger than or equal to the fourth quantity value, the boarding number is counted according to the first calculation formula, if the fifth quantity value is smaller than the fourth quantity value, the boarding number is counted according to the second calculation formula, the accuracy is improved through multi-line statistics and the combination of the statistics information of different states, and the problem that the error between the boarding number counted by video and the actual boarding number is larger due to the fact that the number of pedestrians on boarding and alighting channels is monitored is solved.
As shown in fig. 2, the embodiment of the application proposes a boarding personal number statistics device 1, where the device 1 includes a recording module 11, a first monitoring module 12, a first selecting module 13, a second monitoring module 14, a second selecting module 15, a first statistics module 16, a second statistics module 17, a third statistics module 18, a first comparing module 19, and a boarding personal number statistics module 20.
The recording module 11 is configured to monitor pedestrians in the waiting square, record the number of pedestrians in the waiting square, and obtain recording data, where the recording data is formed by a plurality of number of pedestrians, and the number of pedestrians is obtained by counting the number of pedestrians monitored, and generate a number of pedestrians for each counted number of pedestrians.
The pedestrians in the waiting ship square, the pedestrians entering at the entrances and exits of the waiting ship square and the pedestrians entering the waiting ship square from the ship are monitored. And obtaining the number of pedestrians in the waiting ship square by monitoring pedestrians in the waiting ship square, and recording the number of pedestrians in the waiting ship square to obtain recorded data.
The first monitoring module 12 is used for monitoring whether the ship in the landing area is switched from the entering state to the landing state.
And monitoring the ship in the landing area, and monitoring whether the ship in the landing area is switched from the entering state to the landing state.
In the present embodiment, the first monitoring module 12 includes:
the first sub-monitoring module is used for monitoring whether a ship exists in the shore area;
the first sub-judging module is used for judging whether the distance between the center point of the ship and the shore is reduced or not if the ship exists in the shore-guiding area;
the first sub-judging module is used for judging that the ship is in a driving-in state if the distance between the center point of the ship and the shore is judged to be smaller;
the first sub-acquisition module is used for continuously acquiring the distance between the center point of the ship and the shore for two times according to a preset first frequency to acquire a first distance and a second distance;
the first sub-calculation module is used for calculating the variation value of the first distance and the second distance to obtain a first variation value;
the second sub-judging module is used for judging whether the first variation value is smaller than a first preset value or not;
the second sub-judging module is used for judging that the ship is in a shore-backing state if the first variation value is smaller than a first preset value; and when the first variation value is smaller than a first preset value, judging that the ship is switched from the entering state to the landing state.
Monitoring the shore area, monitoring whether the ship exists in the shore area, if the ship exists in the shore area, judging whether the ship is in a driving-in state, specifically, acquiring the distance between the center point of the ship and the shore, judging whether the distance between the center point of the ship and the shore is smaller according to the acquired distance between the center point of the ship and the shore, if the distance between the center point of the ship and the shore is smaller, judging that the ship is in the driving-in state, continuously acquiring the distance between the center point of the ship and the shore according to a preset first frequency after judging that the ship is in the driving-in state, acquiring a first distance and a second distance, calculating a change value of the first distance and the second distance, namely, subtracting the value obtained by subtracting the second distance from the first distance, judging whether the first change value is smaller than the first preset value, and judging that the ship is in the shore state if the first change value is smaller than the first preset value, wherein when judging that the first change value is smaller than the first preset value, judging that the ship is switched from the driving-in state.
In some embodiments, the first monitoring module 12 includes:
The second sub-monitoring module is used for monitoring whether the ship exists in the shore area or not;
the third sub-judging module is used for judging whether the distance between the center point of the ship and the shore is smaller or not if the ship exists in the shore-guiding area;
a third sub-judging module, configured to judge that the ship is in a driving-in state if it is judged that a distance between a center point of the ship and the shore is smaller;
the second sub-acquisition module is used for continuously acquiring images of the distance between the center point of the ship and the shore at a preset third frequency twice to acquire a first image and a second image;
the second sub-calculation module is used for calculating the change values of the first image and the second image to obtain a second change value, wherein the second change value is the number value of the pixel points;
a fourth sub-judging module, configured to judge whether the second variation value is smaller than a number value of the first preset pixel points;
a fourth sub-judging module, configured to judge that the ship is in a shore-backing state if it is judged that the second variation value is a value smaller than the number of the first preset pixels; and when the second variation value is judged to be smaller than the first preset pixel value for the first time, judging that the ship is switched from the entering state to the landing state.
Monitoring the shore area, monitoring whether the ship exists in the shore area, judging whether the ship is in a driving state if the ship exists in the shore area, specifically, acquiring the distance between the center point of the ship and the shore, judging whether the distance between the center point of the ship and the shore is smaller according to the acquired distance between the center point of the ship and the shore, judging whether the ship is in the driving state if the distance between the center point of the ship and the shore is smaller, continuously acquiring images of the distance between the center point of the ship and the shore according to a preset third frequency after judging that the ship is in the driving state, acquiring a first image and a second image, calculating the change value of the first image and the second image, and identifying the number of pixels occupied by the center point and the bank of the ship in the first image and the second image respectively, subtracting the number of the two pixels to obtain the number of pixels, wherein the number of the pixels is a second variation value, judging whether the second variation value is smaller than the number of first preset pixels, if so, judging that the ship is in the on-shore state, wherein when the second variation value is smaller than the number of first preset pixels, judging that the ship is switched from the on-shore state, and in the embodiment, the number of the first preset pixels is 10 pixels.
The first selecting module 13 is configured to, if it is monitored that the ship is switched from the entering state to the landing state, select, from the recorded data, a maximum number of pedestrians from the entering state to the landing state as a number of people to be boarding, and obtain a first number.
The number of pedestrians in the waiting square is considered as the number of people to be boarding from the driving state to the landing state, and because the number of pedestrians in the waiting square is large, shielding is easily caused among the pedestrians, and the monitored number is easily inaccurate.
A second monitoring module 14 for monitoring whether the vessel switches from the on-shore state to the off-drive state.
And monitoring the ship, and monitoring whether the ship is switched from the shore-backing state to the driving-off state.
In the present embodiment, the second monitoring module 14 includes:
the third sub-acquisition module is used for continuously acquiring the distance between the center point of the ship and the shore according to a preset second frequency twice when the ship is in a shore-backing state, so as to acquire a third distance and a fourth distance;
The third sub-calculation module is used for calculating the variation values of the third distance and the fourth distance to obtain a third variation value;
a fifth sub-judging module, configured to judge whether the third variation value is greater than or equal to a second preset value;
a fifth sub-judging module, configured to judge that the ship is in a driving-off state if the third variation value is greater than or equal to a second preset value; and when the third variation value is larger than or equal to a second preset value, the ship is judged to be switched from the shore-on state to the driving-off state.
When the ship is in the shore-backing state, continuously acquiring the distance between the center point of the ship and the shore according to a preset second frequency twice, obtaining a third distance and a fourth distance, calculating a change value of the third distance and the fourth distance, namely subtracting the fourth distance from the third distance to obtain a value, wherein the value is the third change value, judging whether the third change value is larger than or equal to a second preset value, and judging that the ship is in the driving-off state if the third change value is larger than or equal to the second preset value, wherein when the third change value is judged to be larger than or equal to the second preset value for the first time, switching the ship from the shore-backing state to the driving-off state.
In some embodiments, the second monitoring module 14 includes:
a fourth sub-acquisition module, configured to acquire, when the ship is in a shore-side state, images of a distance between a center point of the ship and the shore continuously twice according to a preset fourth frequency, and obtain a third image and a fourth image;
a fourth sub-calculation module, configured to calculate a change value of the third image and the fourth image, to obtain a fourth change value, where the fourth change value is a number value of pixel points;
a sixth sub-judging module, configured to judge whether the fourth variation value is greater than or equal to a number value of second preset pixel points;
a sixth sub-judging module, configured to judge that the ship is in a driving-off state if it is judged that the fourth variation value is greater than or equal to a number value of second preset pixel points; and when the fourth variation value is larger than or equal to the number value of the second preset pixel points, the ship is judged to be switched from the on-shore state to the off-drive state.
When the ship is in the on-shore state, continuously acquiring images of the distance between the center point and the shore of the ship for two times according to a preset fourth frequency, acquiring a third image and a fourth image, calculating the change values of the third image and the fourth image, identifying the number of pixels occupied by the center point and the shore of the ship in the third image and the fourth image respectively, subtracting the number of pixels obtained by the subtraction of the number of the two pixels, wherein the number of the pixels is the fourth change value, judging whether the fourth change value is larger than or equal to the number of second preset pixels, and judging that the ship is in the off-shore state if the fourth change value is larger than or equal to the number of the second preset pixels, wherein the ship is judged to be switched to the off-shore state from the on-shore state when the fourth change value is judged to be larger than or equal to the number of the second preset pixels for the first time, and the number of the second preset pixels is 10 pixels in the embodiment.
And the second selecting module 15 is configured to select, from the recorded data, a number of people travelling when the shore-on state is switched to the off-drive state if it is monitored that the ship is in the shore-on state and is switched to the off-drive state, and obtain a second number.
If the ship is monitored to be in the state of being in the shore and is switched to the state of being away, the pedestrian number value in the waiting ship square when the state of being in the shore is switched to the state of being away is obtained, specifically, the pedestrian number value when one of the ship is in the state of being in the shore is selected from the recorded data, and the second number value is obtained.
The first statistics module 16 is configured to count the number of pedestrians entering each entrance and exit of the waiting square from the entering state to the landing state, and obtain a third count value.
And counting the number of the pedestrians entering each entrance of the waiting ship square from the entering state to the shore-leaning state by monitoring the pedestrians entering each entrance of the waiting ship square, and obtaining a third quantity value.
The second statistics module 17 is configured to count the number of pedestrians exiting from each entrance of the waiting square from the on-shore state to the off-shore state, and obtain a fourth number value.
And counting the number of pedestrians exiting from each entrance of the waiting ship square when the waiting ship square is in a state from the on-shore state to the off-driving state by monitoring pedestrians exiting from each entrance of the waiting ship square, and obtaining a fourth number value.
And the third statistics module 18 is used for counting the number of pedestrians entering the waiting square from the ship to obtain a fifth number value.
And counting the number of pedestrians entering the waiting square from the ship by monitoring pedestrians entering the waiting square from the ship, and obtaining a fifth number value.
A first comparing module 19 for comparing the fifth quantity value with the fourth quantity value.
By comparing the fifth quantity value with the fourth quantity value, whether pedestrians from the ship go out from the entrances and exits of the waiting square can be known.
The boarding number counting module 20 is configured to count the boarding number according to a first calculation formula if the fifth number value is greater than or equal to the fourth number value, where the first calculation formula is a+c-B- (E-D), a is the first number value, C is the third number value, B is the second number value, E is the fifth number value, and D is the fourth number value.
If the fifth number value is greater than or equal to the fourth number value, it indicates that pedestrians falling from the ship do not all exit from each entrance of the waiting square, therefore, the boarding number is counted according to a first calculation formula, wherein the first calculation formula is A+C-B- (E-D), A is the first number value, C is the third number value, B is the second number value, E is the fifth number value, and D is the fourth number value.
The boarding number counting module 20 is further configured to count the boarding number according to a second calculation formula if the fifth number value is smaller than the fourth number value, where the second calculation formula is a+c-B, a is the first number value, C is the third number value, and B is the second number value.
If the fifth number value is smaller than the fourth number value, the pedestrians falling from the ship are all indicated to go out from the entrances and exits of the waiting square, and therefore the boarding number is counted according to a second calculation formula, wherein the second calculation formula is A+C-B, A is the first number value, C is the third number value, and B is the second number value.
In order to further improve the accuracy of counting the number of boarding passes, in this embodiment, the apparatus 1 includes:
the statistics module is used for counting the number of pedestrians entering the ship from the waiting square to obtain a sixth number value;
the comparison module is used for comparing the statistical result of the number of boarding people with the sixth number value;
the calculation module is used for calculating the number of boarding persons to be the statistical result if the statistical result is larger than or equal to the sixth numerical value;
and if the statistical result is smaller than the sixth numerical value, changing the number of boarding persons to the sixth numerical value.
Monitoring pedestrians entering the ship from the waiting square, counting the number of pedestrians entering the ship from the waiting square by monitoring pedestrians entering the ship from the waiting square, obtaining a sixth number value, calculating the number of passengers according to a formula before, comparing the counted number of passengers with the sixth number value, if the counted result is larger than or equal to the sixth number value, the number of passengers is still counted, and if the counted result is smaller than the sixth number value, the number of passengers is changed into the sixth number value.
In this embodiment, the apparatus 1 includes:
and the sending module is used for sending the reminding mail to the appointed receiver.
If the number of boarding persons is changed to the sixth number value, the fact that the number of the multiple lines in the multiple line statistics is insufficient is indicated, namely the fact that the number of the entrances and exits in the waiting square is insufficient is indicated, for this purpose, reminding mails are sent to appointed receivers, and after the reminding mails are received, the receivers can know that the number of the entrances and exits in the waiting square is insufficient, and the number of the entrances and exits in the waiting square can be increased subsequently.
In summary, the number of pedestrians recorded in the waiting area is obtained, the condition that the ship is switched from the entering state to the landing state is monitored, the largest number of pedestrians in the entering state to the landing state is selected from the recorded data as the number of pedestrians to be boarding, the first number is obtained, the condition that the ship is switched from the landing state to the leaving state is monitored, the number of pedestrians in the condition that the ship is switched from the landing state to the leaving state is selected from the recorded data, the second number is obtained, the number of pedestrians entering from the entering state to each entrance of the waiting area in the landing state is counted, and the third number is obtained; counting the number of pedestrians going out from each entrance and exit of the waiting square in the period from the on-shore state to the off-driving state to obtain a fourth number value; counting the number of pedestrians entering a waiting square from a ship to obtain a fifth number value; if the fifth quantity value is larger than or equal to the fourth quantity value, the boarding number is counted according to the first calculation formula, if the fifth quantity value is smaller than the fourth quantity value, the boarding number is counted according to the second calculation formula, the accuracy is improved through multi-line statistics and the combination of the statistics information of different states, and the problem that the error between the boarding number counted by video and the actual boarding number is larger due to the fact that the number of pedestrians on boarding and alighting channels is monitored is solved.
As shown in fig. 3, a computer device is further provided in the embodiment of the present application, where the computer device may be a server, and the internal structure of the computer device may be as shown in fig. 3. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing data such as models of the method of boarding personal statistics. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of boarding demographics.
The processor executes the steps of the boarding personal counting method: monitoring pedestrians in a waiting square, and recording the number of pedestrians in the waiting square to obtain recorded data, wherein the recorded data is formed by a plurality of pedestrian number values, the pedestrian number values are obtained by counting the number of the pedestrians monitored, and each time the number of the pedestrians is counted, one pedestrian number value is generated; monitoring whether the ship in the landing zone is switched from the entering state to the landing state; if the ship is monitored to be switched from the entering state to the landing state, selecting the maximum pedestrian number value from the entering state to the landing state from the recorded data as the number of people to be boarding, and obtaining a first number value; monitoring whether the ship is switched from the shore-on state to the off-drive state; if the ship is monitored to be in the state of being on shore and being switched to the state of being off shore, selecting one number of traveling people value from the recorded data when the state of being on shore is switched to the state of being off shore, and obtaining a second number value; counting the number of pedestrians entering each entrance and exit of the waiting square in the state from the entering state to the shore-backing state to obtain a third quantity value; counting the number of pedestrians going out from each entrance and exit of the waiting square in the period from the on-shore state to the off-driving state to obtain a fourth number value; counting the number of pedestrians entering a waiting square from a ship to obtain a fifth number value; comparing the fifth quantity value with the fourth quantity value; if the fifth quantity value is greater than or equal to the fourth quantity value, counting the number of boarding persons according to a first calculation formula, wherein the first calculation formula is A+C-B- (E-D), A is the first quantity value, C is the third quantity value, B is the second quantity value, E is the fifth quantity value, and D is the fourth quantity value; and if the fifth quantity value is smaller than the fourth quantity value, counting the number of boarding persons according to a second calculation formula, wherein the second calculation formula is A+C-B, A is the first quantity value, C is the third quantity value and B is the second quantity value.
In one embodiment, the step of monitoring whether the ship in the landing area is switched from the entering state to the landing state includes:
monitoring whether a ship exists in the shore area; if the ship exists in the shore area, judging whether the distance between the center point of the ship and the shore is reduced;
if the distance between the center point of the ship and the shore is determined to be smaller, determining that the ship is in a driving-in state;
obtaining the distance between the center point of the ship and the shore according to a preset first frequency twice continuously to obtain a first distance and a second distance;
calculating a change value of the first distance and the second distance to obtain a first change value;
judging whether the first variation value is smaller than a first preset value or not;
if the first variation value is smaller than a first preset value, the ship is judged to be in a shore-backing state; and when the first variation value is smaller than a first preset value, judging that the ship is switched from the entering state to the landing state.
In one embodiment, the step of monitoring whether the ship in the landing area is switched from the entering state to the landing state includes:
monitoring whether a ship exists in the shore area;
If the ship exists in the shore area, judging whether the distance between the center point of the ship and the shore is reduced;
if the distance between the center point of the ship and the shore is determined to be smaller, determining that the ship is in a driving-in state;
continuously acquiring images of the distance between the center point of the ship and the shore for two times according to a preset third frequency to acquire a first image and a second image;
calculating the change values of the first image and the second image to obtain a second change value, wherein the second change value is the number value of the pixel points;
judging whether the second variation value is smaller than the number value of the first preset pixel points or not;
if the second variation value is smaller than the first preset pixel value, the ship is judged to be in a shore-leaning state; and when the second variation value is judged to be smaller than the first preset pixel value for the first time, judging that the ship is switched from the entering state to the landing state.
In one embodiment, the step of monitoring whether the ship is switched from the shore-on state to the drive-off state includes:
when the ship is in a shore-backing state, continuously acquiring the distance between the center point of the ship and the shore twice according to a preset second frequency to acquire a third distance and a fourth distance;
Calculating a change value of the third distance and the fourth distance to obtain a third change value;
judging whether the third variation value is larger than or equal to a second preset value;
if the third variation value is larger than or equal to a second preset value, the ship is judged to be in a driving-off state; and when the third variation value is larger than or equal to a second preset value, the ship is judged to be switched from the shore-on state to the driving-off state.
In one embodiment, the step of monitoring whether the ship is switched from the shore-on state to the drive-off state includes:
when the ship is in a shore-leaning state, continuously acquiring images of the distance between the center point of the ship and the shore twice according to a preset fourth frequency, and acquiring a third image and a fourth image;
calculating the change values of the third image and the fourth image to obtain a fourth change value, wherein the fourth change value is the number value of the pixel points;
judging whether the fourth variation value is larger than or equal to the number value of the second preset pixel points;
if the fourth variation value is larger than or equal to the number value of the second preset pixel points, the ship is judged to be in a driving-away state; and when the fourth variation value is larger than or equal to the number value of the second preset pixel points, the ship is judged to be switched from the on-shore state to the off-drive state.
In one embodiment, after the step of counting the number of boarding persons according to the first calculation formula if the fifth number value is greater than or equal to the fourth number value, or after the step of counting the number of boarding persons according to the second calculation formula if the fifth number value is less than the fourth number value, the method further includes:
counting the number of pedestrians entering the ship from the waiting square to obtain a sixth number value;
comparing the statistical result of the number of boarding persons with the sixth number value;
if the statistical result is greater than or equal to the sixth numerical value, the number of boarding persons is still the statistical result;
and if the statistical result is smaller than the sixth numerical value, changing the number of boarding persons to the sixth numerical value.
In one embodiment, after the step of changing the boarding number to the sixth number if the statistics result is smaller than the sixth number, the method further includes:
and sending the reminding mail to the appointed receiver.
Those skilled in the art will appreciate that the architecture shown in fig. 3 is merely a block diagram of a portion of the architecture in connection with the present application and is not intended to limit the computer device to which the present application is applied.
The computer equipment of the embodiment of the application acquires recorded data by recording the number of the passengers in the boarding square, monitors that the ship in the boarding area is switched from the entering state to the boarding state, selects the maximum number of pedestrians from the entering state to the boarding state from the recorded data as the number of passengers to log on the ship, acquires a first number value, monitors that the ship is switched from the boarding state to the leaving state, selects the number of the passengers from the recorded data when the boarding state is switched to the leaving state, acquires a second number value, counts the number of the passengers entering from the entering state to each entrance and exit of the boarding square in the boarding state, and acquires a third number value; counting the number of pedestrians going out from each entrance and exit of the waiting square in the period from the on-shore state to the off-driving state to obtain a fourth number value; counting the number of pedestrians entering a waiting square from a ship to obtain a fifth number value; if the fifth quantity value is larger than or equal to the fourth quantity value, the boarding number is counted according to the first calculation formula, if the fifth quantity value is smaller than the fourth quantity value, the boarding number is counted according to the second calculation formula, the accuracy is improved through multi-line statistics and the combination of the statistics information of different states, and the problem that the error between the boarding number counted by video and the actual boarding number is larger due to the fact that the number of pedestrians on boarding and alighting channels is monitored is solved.
An embodiment of the present application further provides a computer readable storage medium, on which a computer program is stored, where the computer program when executed by a processor implements a method for boarding people counting, specifically: monitoring pedestrians in a waiting square, and recording the number of pedestrians in the waiting square to obtain recorded data, wherein the recorded data is formed by a plurality of pedestrian number values, the pedestrian number values are obtained by counting the number of the pedestrians monitored, and each time the number of the pedestrians is counted, one pedestrian number value is generated; monitoring whether the ship in the landing zone is switched from the entering state to the landing state; if the ship is monitored to be switched from the entering state to the landing state, selecting the maximum pedestrian number value from the entering state to the landing state from the recorded data as the number of people to be boarding, and obtaining a first number value; monitoring whether the ship is switched from the shore-on state to the off-drive state; if the ship is monitored to be in the state of being on shore and being switched to the state of being off shore, selecting one number of traveling people value from the recorded data when the state of being on shore is switched to the state of being off shore, and obtaining a second number value; counting the number of pedestrians entering each entrance and exit of the waiting square in the state from the entering state to the shore-backing state to obtain a third quantity value; counting the number of pedestrians going out from each entrance and exit of the waiting square in the period from the on-shore state to the off-driving state to obtain a fourth number value; counting the number of pedestrians entering a waiting square from a ship to obtain a fifth number value; comparing the fifth quantity value with the fourth quantity value; if the fifth quantity value is greater than or equal to the fourth quantity value, counting the number of boarding persons according to a first calculation formula, wherein the first calculation formula is A+C-B- (E-D), A is the first quantity value, C is the third quantity value, B is the second quantity value, E is the fifth quantity value, and D is the fourth quantity value; and if the fifth quantity value is smaller than the fourth quantity value, counting the number of boarding persons according to a second calculation formula, wherein the second calculation formula is A+C-B, A is the first quantity value, C is the third quantity value and B is the second quantity value.
In one embodiment, the step of monitoring whether the ship in the landing area is switched from the entering state to the landing state includes:
monitoring whether a ship exists in the shore area; if the ship exists in the shore area, judging whether the distance between the center point of the ship and the shore is reduced;
if the distance between the center point of the ship and the shore is determined to be smaller, determining that the ship is in a driving-in state;
obtaining the distance between the center point of the ship and the shore according to a preset first frequency twice continuously to obtain a first distance and a second distance;
calculating a change value of the first distance and the second distance to obtain a first change value;
judging whether the first variation value is smaller than a first preset value or not;
if the first variation value is smaller than a first preset value, the ship is judged to be in a shore-backing state; and when the first variation value is smaller than a first preset value, judging that the ship is switched from the entering state to the landing state.
In one embodiment, the step of monitoring whether the ship in the landing area is switched from the entering state to the landing state includes:
monitoring whether a ship exists in the shore area;
If the ship exists in the shore area, judging whether the distance between the center point of the ship and the shore is reduced;
if the distance between the center point of the ship and the shore is determined to be smaller, determining that the ship is in a driving-in state;
continuously acquiring images of the distance between the center point of the ship and the shore for two times according to a preset third frequency to acquire a first image and a second image;
calculating the change values of the first image and the second image to obtain a second change value, wherein the second change value is the number value of the pixel points;
judging whether the second variation value is smaller than the number value of the first preset pixel points or not;
if the second variation value is smaller than the first preset pixel value, the ship is judged to be in a shore-leaning state; and when the second variation value is judged to be smaller than the first preset pixel value for the first time, judging that the ship is switched from the entering state to the landing state.
In one embodiment, the step of monitoring whether the ship is switched from the shore-on state to the drive-off state includes:
when the ship is in a shore-backing state, continuously acquiring the distance between the center point of the ship and the shore twice according to a preset second frequency to acquire a third distance and a fourth distance;
Calculating a change value of the third distance and the fourth distance to obtain a third change value;
judging whether the third variation value is larger than or equal to a second preset value;
if the third variation value is larger than or equal to a second preset value, the ship is judged to be in a driving-off state; and when the third variation value is larger than or equal to a second preset value, the ship is judged to be switched from the shore-on state to the driving-off state.
In one embodiment, the step of monitoring whether the ship is switched from the shore-on state to the drive-off state includes:
when the ship is in a shore-leaning state, continuously acquiring images of the distance between the center point of the ship and the shore twice according to a preset fourth frequency, and acquiring a third image and a fourth image;
calculating the change values of the third image and the fourth image to obtain a fourth change value, wherein the fourth change value is the number value of the pixel points;
judging whether the fourth variation value is larger than or equal to the number value of the second preset pixel points;
if the fourth variation value is larger than or equal to the number value of the second preset pixel points, the ship is judged to be in a driving-away state; and when the fourth variation value is larger than or equal to the number value of the second preset pixel points, the ship is judged to be switched from the on-shore state to the off-drive state.
In one embodiment, after the step of counting the number of boarding persons according to the first calculation formula if the fifth number value is greater than or equal to the fourth number value, or after the step of counting the number of boarding persons according to the second calculation formula if the fifth number value is less than the fourth number value, the method further includes:
counting the number of pedestrians entering the ship from the waiting square to obtain a sixth number value;
comparing the statistical result of the number of boarding persons with the sixth number value;
if the statistical result is greater than or equal to the sixth numerical value, the number of boarding persons is still the statistical result;
and if the statistical result is smaller than the sixth numerical value, changing the number of boarding persons to the sixth numerical value.
In one embodiment, after the step of changing the boarding number to the sixth number if the statistics result is smaller than the sixth number, the method further includes:
and sending the reminding mail to the appointed receiver.
The storage medium of the embodiment of the application, the number of the pedestrians in the boarding square is recorded, recorded data is obtained, the situation that the ship is switched to the boarding state from the entering state in the boarding area is monitored, the largest number of pedestrians in the entering state to the boarding state is selected from the recorded data as the number of people to be boarding, the first number is obtained, the situation that the ship is switched to the leaving state is monitored, the number of the pedestrians in the boarding state to the leaving state is selected from the recorded data, the second number is obtained, the number of the pedestrians entering each entrance and exit of the boarding square in the entering state to the boarding state is counted, and the third number is obtained; counting the number of pedestrians going out from each entrance and exit of the waiting square in the period from the on-shore state to the off-driving state to obtain a fourth number value; counting the number of pedestrians entering a waiting square from a ship to obtain a fifth number value; if the fifth quantity value is larger than or equal to the fourth quantity value, the boarding number is counted according to the first calculation formula, if the fifth quantity value is smaller than the fourth quantity value, the boarding number is counted according to the second calculation formula, the accuracy is improved through multi-line statistics and the combination of the statistics information of different states, and the problem that the error between the boarding number counted by video and the actual boarding number is larger due to the fact that the number of pedestrians on boarding and alighting channels is monitored is solved.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in embodiments may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The foregoing description of the preferred embodiment of the present invention is not intended to limit the invention to the particular form disclosed, but on the contrary, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the invention.

Claims (9)

1. A method of boarding demographics, the method comprising:
monitoring pedestrians in a waiting square, and recording the number of pedestrians in the waiting square to obtain recorded data, wherein the recorded data is formed by a plurality of pedestrian number values, the pedestrian number values are obtained by counting the number of the pedestrians monitored, and each time the number of the pedestrians is counted, one pedestrian number value is generated;
monitoring whether the ship in the landing zone is switched from the entering state to the landing state;
if the ship is monitored to be switched from the entering state to the landing state, selecting the maximum pedestrian number value from the entering state to the landing state from the recorded data as the number of people to be boarding, and obtaining a first number value;
monitoring whether the ship is switched from the shore-on state to the off-drive state;
if the ship is monitored to be in the state of being on shore and being switched to the state of being off shore, selecting one number of traveling people value from the recorded data when the state of being on shore is switched to the state of being off shore, and obtaining a second number value;
Counting the number of pedestrians entering each entrance and exit of the waiting square in the state from the entering state to the shore-backing state to obtain a third quantity value;
counting the number of pedestrians going out from each entrance and exit of the waiting square in the period from the on-shore state to the off-driving state to obtain a fourth number value;
counting the number of pedestrians entering a waiting square from a ship to obtain a fifth number value;
comparing the fifth quantity value with the fourth quantity value;
if the fifth quantity value is greater than or equal to the fourth quantity value, counting the number of boarding persons according to a first calculation formula, wherein the first calculation formula is A+C-B- (E-D), A is the first quantity value, C is the third quantity value, B is the second quantity value, E is the fifth quantity value, and D is the fourth quantity value;
if the fifth quantity value is smaller than the fourth quantity value, counting the number of boarding persons according to a second calculation formula, wherein the second calculation formula is A+C-B, A is the first quantity value, C is the third quantity value, and B is the second quantity value;
in the step of monitoring whether the ship is switched from the in-coming state to the on-shore state in the on-shore region, the method includes:
monitoring whether a ship exists in the shore area;
If the ship exists in the shore area, judging whether the distance between the center point of the ship and the shore is reduced;
if the distance between the center point of the ship and the shore is determined to be smaller, determining that the ship is in a driving-in state;
obtaining the distance between the center point of the ship and the shore according to a preset first frequency twice continuously to obtain a first distance and a second distance;
calculating a change value of the first distance and the second distance to obtain a first change value;
judging whether the first variation value is smaller than a first preset value or not;
if the first variation value is smaller than a first preset value, the ship is judged to be in a shore-backing state; and when the first variation value is smaller than a first preset value, judging that the ship is switched from the entering state to the landing state.
2. A method of boarding demographics as recited in claim 1, wherein in the step of monitoring whether the ship is switched from the incoming state to the landing state in the landing zone, comprising:
monitoring whether a ship exists in the shore area;
if the ship exists in the shore area, judging whether the distance between the center point of the ship and the shore is reduced;
If the distance between the center point of the ship and the shore is determined to be smaller, determining that the ship is in a driving-in state;
continuously acquiring images of the distance between the center point of the ship and the shore for two times according to a preset third frequency to acquire a first image and a second image;
calculating the change values of the first image and the second image to obtain a second change value, wherein the second change value is the number value of the pixel points;
judging whether the second variation value is smaller than the number value of the first preset pixel points or not;
if the second variation value is smaller than the first preset pixel value, the ship is judged to be in a shore-leaning state; and when the second variation value is judged to be smaller than the first preset pixel value for the first time, judging that the ship is switched from the entering state to the landing state.
3. A method of boarding demographics as recited in claim 1, wherein in the step of monitoring whether the vessel is switched from the on-shore state to the off-drive state, comprising:
when the ship is in a shore-backing state, continuously acquiring the distance between the center point of the ship and the shore twice according to a preset second frequency to acquire a third distance and a fourth distance;
Calculating a change value of the third distance and the fourth distance to obtain a third change value;
judging whether the third variation value is larger than or equal to a second preset value;
if the third variation value is larger than or equal to a second preset value, the ship is judged to be in a driving-off state; and when the third variation value is larger than or equal to a second preset value, the ship is judged to be switched from the shore-on state to the driving-off state.
4. A method of boarding demographics as recited in claim 1, wherein in the step of monitoring whether the vessel is switched from the on-shore state to the off-drive state, comprising:
when the ship is in a shore-leaning state, continuously acquiring images of the distance between the center point of the ship and the shore twice according to a preset fourth frequency, and acquiring a third image and a fourth image;
calculating the change values of the third image and the fourth image to obtain a fourth change value, wherein the fourth change value is the number value of the pixel points;
judging whether the fourth variation value is larger than or equal to the number value of the second preset pixel points;
if the fourth variation value is larger than or equal to the number value of the second preset pixel points, the ship is judged to be in a driving-away state; and when the fourth variation value is larger than or equal to the number value of the second preset pixel points, the ship is judged to be switched from the on-shore state to the off-drive state.
5. The method of boarding personal statistics according to claim 1, characterized by comprising, after the step of counting the number of boarding persons according to a first calculation formula if the fifth number value is greater than or equal to the fourth number value, or after the step of counting the number of boarding persons according to a second calculation formula if the fifth number value is less than the fourth number value:
counting the number of pedestrians entering the ship from the waiting square to obtain a sixth number value;
comparing the statistical result of the number of boarding persons with the sixth number value;
if the statistical result is greater than or equal to the sixth numerical value, the number of boarding persons is still the statistical result;
and if the statistical result is smaller than the sixth numerical value, changing the number of boarding persons to the sixth numerical value.
6. The method of boarding personal statistics according to claim 5, wherein after the step of changing the boarding personal number to the sixth number value if the statistics result is smaller than the sixth number value, comprising:
and sending the reminding mail to the appointed receiver.
7. A device for boarding demographics, for implementing the method of any one of claims 1 to 6, characterized in that it comprises:
The system comprises a recording module, a storage module and a control module, wherein the recording module is used for monitoring pedestrians in a waiting square, recording the number of pedestrians in the waiting square, and obtaining recording data, wherein the recording data is formed by a plurality of pedestrian number values, the pedestrian number values are obtained by counting the number of the pedestrians monitored, and each time the number of the pedestrians is counted, a pedestrian number value is generated;
the first monitoring module is used for monitoring whether the ship in the shore area is switched from the entering state to the shore state;
the first selecting module is used for selecting the maximum pedestrian number value from the entering state to the shore-logging state from the recorded data as the number of people to be boarding if the ship is monitored to be switched from the entering state to the shore-logging state, and obtaining a first number value;
the second monitoring module is used for monitoring whether the ship is switched from the shore-on state to the off-drive state;
the second selecting module is used for selecting one number of traveling people value from the recorded data when the shore-on state is switched to the off-drive state if the ship is monitored to be in the shore-on state and is switched to the off-drive state, so as to obtain a second number value;
the first statistics module is used for counting the number of pedestrians entering each entrance and exit of the waiting square from the entering state to the shore-guiding state to obtain a third quantity value;
The second statistics module is used for counting the number of pedestrians going out from each entrance and exit of the waiting square in the process of going from the on-shore state to the off-driving state to obtain a fourth number value;
the third statistics module is used for counting the number of pedestrians entering the waiting square from the ship to obtain a fifth number value;
a first comparison module for comparing the fifth quantity value with the fourth quantity value;
the boarding number counting module is used for counting the boarding number according to a first calculation formula if the fifth number value is greater than or equal to the fourth number value, wherein the first calculation formula is A+C-B- (E-D), A is the first number value, C is the third number value, B is the second number value, E is the fifth number value, and D is the fourth number value; and if the fifth quantity value is smaller than the fourth quantity value, counting the number of boarding persons according to a second calculation formula, wherein the second calculation formula is A+C-B, A is the first quantity value, C is the third quantity value and B is the second quantity value.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN201910100416.3A 2019-01-31 2019-01-31 Method, device, computer equipment and storage medium for boarding number statistics Active CN109948434B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910100416.3A CN109948434B (en) 2019-01-31 2019-01-31 Method, device, computer equipment and storage medium for boarding number statistics

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910100416.3A CN109948434B (en) 2019-01-31 2019-01-31 Method, device, computer equipment and storage medium for boarding number statistics

Publications (2)

Publication Number Publication Date
CN109948434A CN109948434A (en) 2019-06-28
CN109948434B true CN109948434B (en) 2023-07-21

Family

ID=67007402

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910100416.3A Active CN109948434B (en) 2019-01-31 2019-01-31 Method, device, computer equipment and storage medium for boarding number statistics

Country Status (1)

Country Link
CN (1) CN109948434B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855466A (en) * 2012-04-12 2013-01-02 无锡慧眼电子科技有限公司 People counting method based on video image processing
CN105184480A (en) * 2015-09-01 2015-12-23 中国南方电网有限责任公司超高压输电公司广州局 Assessment method for latent anchor damage caused by ships to submarine cables, and control system
CN107613244A (en) * 2016-07-08 2018-01-19 杭州海康威视数字技术股份有限公司 A kind of navigation channel monitoring objective acquisition methods and device
CN108806271A (en) * 2018-06-22 2018-11-13 安徽科力信息产业有限责任公司 A kind of method and system of record road Vehicle emission distribution
CN108830240A (en) * 2018-06-22 2018-11-16 广州通达汽车电气股份有限公司 Fatigue driving state detection method, device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855466A (en) * 2012-04-12 2013-01-02 无锡慧眼电子科技有限公司 People counting method based on video image processing
CN105184480A (en) * 2015-09-01 2015-12-23 中国南方电网有限责任公司超高压输电公司广州局 Assessment method for latent anchor damage caused by ships to submarine cables, and control system
CN107613244A (en) * 2016-07-08 2018-01-19 杭州海康威视数字技术股份有限公司 A kind of navigation channel monitoring objective acquisition methods and device
CN108806271A (en) * 2018-06-22 2018-11-13 安徽科力信息产业有限责任公司 A kind of method and system of record road Vehicle emission distribution
CN108830240A (en) * 2018-06-22 2018-11-16 广州通达汽车电气股份有限公司 Fatigue driving state detection method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN109948434A (en) 2019-06-28

Similar Documents

Publication Publication Date Title
CN111564015B (en) Method and device for monitoring perimeter intrusion of rail transit
CN110490103B (en) Method and device for detecting passenger flow density of rail transit
CN110796052A (en) License plate recognition method, device, equipment and readable medium
CN109147341B (en) Violation vehicle detection method and device
CN112084824A (en) Passenger reminding method and device, electronic equipment and storage medium
CN107067763B (en) Parking lot entrance and exit switching method and device
US20180350179A1 (en) Information processing apparatus, information processing method, and recording medium
JP2016168876A (en) Congestion predictor and congestion prediction method
CN114758271A (en) Video processing method, device, computer equipment and storage medium
US20210075844A1 (en) Information processing device, information processing method, and storage medium
CN112381014A (en) Illegal parking vehicle detection and management method and system based on urban road
CN113012335A (en) Subway platform guide queuing system based on YOLOv3 face detection
TW200829469A (en) Methods and systems for identifying events for a vehicle
CN111581436B (en) Target identification method, device, computer equipment and storage medium
CN112016731A (en) Queuing time prediction method and device and electronic equipment
CN109948434B (en) Method, device, computer equipment and storage medium for boarding number statistics
CN109996063B (en) Video image screen splash detection method and device, computer equipment and storage medium
CN116797993B (en) Monitoring method, system, medium and equipment based on intelligent community scene
CN117237854A (en) Parking space distribution method, system, equipment and storage medium based on video identification
CN109120916A (en) Fault of camera detection method, device and computer equipment
CN111726620A (en) Encoding method and device for monitoring video background frame, electronic equipment and medium
CN115035543A (en) Big data-based movement track prediction system
CN114782857A (en) Method and system for monitoring abnormal behavior of passenger in railway passenger station
CN113989285A (en) Belt deviation monitoring method, device and equipment based on image and storage medium
EP3846525A1 (en) Management device, communication device, system, method, and non-transitory computer readable medium

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