Disclosure of Invention
The application aims to provide a traffic safety monitoring method and a system thereof, which have the technical effects of ensuring traffic safety, effectively improving inspection efficiency and reducing vehicle congestion conditions.
In order to achieve the above object, the present application provides a traffic safety monitoring method, which includes the following steps: acquiring monitoring data, wherein the monitoring data at least comprises: driving routes, all monitored object data and vehicle information; processing the monitoring data to generate a passing instruction; and issuing the passing instruction to the corresponding inspection station, so that the corresponding inspection station carries out passing inspection on the corresponding vehicle according to the passing instruction.
As above, the sub-step of obtaining the monitoring data is as follows: determining a driving route; monitoring object data acquisition is carried out on monitoring objects getting on the bus in the driving route; pre-judging temperature information in the monitored object data, and storing the monitored object data if the pre-judging result is that the temperature value is normal; if the pre-judgment result is that the temperature value is abnormal, an alarm is given; and generating monitoring data by using the driving route, all the monitored object data and the vehicle information.
As above, the sub-step of processing the monitoring data and generating the pass command is as follows: processing all monitored object data in the monitoring data to obtain traffic information; determining an execution inspection station according to the driving route in the monitoring data; and generating a traffic instruction by using the traffic information, the execution inspection station and the vehicle information in the monitoring data.
As above, the sub-step of processing all the monitored object data in the monitored data to obtain the traffic information is as follows: respectively checking the validity of the identity card information of each monitored object to generate a checking result; processing the image data, verifying whether the testimony is consistent or not, and generating an authentication result; and after checking and/or verifying all the monitored object data, generating the traffic information according to the checking result and the authentication result.
As above, the sub-steps of processing the image data, verifying whether the testimony is consistent, and generating the authentication result are as follows: acquiring a first processing area from image data according to an edge detection algorithm, selecting an area with colors within a reference RGB value range from the image data as a second processing area, and taking an area where the first processing area and the second processing area are overlapped as a face area; acquiring a feature region from a face region, determining a rectangular region by using the center of the feature region, sequentially rotating the rectangular region around the center by 0-180 degrees, dividing the rectangular region into a plurality of sub-regions after each rotation operation, respectively extracting the texture feature of each sub-region, and acquiring a texture feature set corresponding to each rotation operation; comparing the texture feature set corresponding to each rotation operation with the face data in the identity card information, calculating the similarity corresponding to each rotation operation, if the similarity corresponding to each rotation operation is higher than a preset value, enabling the face data in the identity card information to be consistent with the image data, and enabling the authentication result to be consistent, and if the similarity corresponding to each rotation operation is lower than the preset value, enabling the face data in the identity card information to be inconsistent with the image data, and enabling the authentication result to be inconsistent.
As above, wherein the expression of the texture features of the sub-regions is as follows:
LW is the texture feature of the sub-region; p is a radical of
cThe gray value of the pixel point at the middle position of the subregion is obtained; q is the q-th pixel point except the middle position pixel point in a 3 multiplied by 3 window, q is a natural number, and q belongs to [0,8 ]];p
qIs the gray value of the q-th pixel point in the neighborhood, wherein, when P is
q-P
cAt more than or equal to 0, theta (P)
q-P
c) 1 is ═ 1; when P is present
q-P
cAt < 0, theta (P)
q-P
c)=0。
The present application further provides a traffic safety monitoring system, including: a monitoring center, a plurality of inspection execution stations and a plurality of vehicles; wherein, the monitoring center: the system is used for receiving monitoring data uploaded by a vehicle, executing the traffic safety monitoring method, processing the monitoring data, generating a pass instruction, and issuing the pass instruction to a corresponding execution inspection station; an execution inspection station: the system comprises a monitoring center, a real-time position acquisition instruction, a real-time position information acquisition instruction and a real-time position information acquisition instruction, wherein the monitoring center is used for receiving a traffic instruction issued by the monitoring center, issuing the real-time position acquisition instruction to a corresponding vehicle according to the traffic instruction, calculating the predicted arrival time after acquiring the real-time position information, and performing clearance or abnormal inspection on the corresponding vehicle according to the predicted arrival time; a vehicle: the monitoring center is used for acquiring monitoring data and sending the monitoring data to the monitoring center; the system is used for receiving and feeding back real-time position acquisition instructions sent by the execution inspection station.
As above, wherein, the monitoring center includes at least: the system comprises a data receiving and sending unit, a testimony checking unit, a route analyzing unit and a generating instruction unit; wherein, the data receiving and dispatching unit: the monitoring data is used for receiving monitoring data uploaded by a vehicle; the system is used for issuing a pass instruction to an execution inspection station; an authentication certificate checking unit: the system is used for processing the identity card information and the image data of the monitoring data to obtain a checking result and an authentication result; a route analysis unit: the system is used for analyzing the driving route in the monitoring data and determining an execution inspection station; a generation instruction unit: and generating a traffic instruction by using the traffic information, the execution inspection station and the vehicle information in the monitoring data.
As above, wherein the vehicle comprises: the system comprises a data acquisition device and an interactive terminal; wherein, the data acquisition device: the monitoring system is used for acquiring monitoring object data; and (4) interactive terminal: the monitoring system is a device arranged in a vehicle and used for acquiring a driving route, real-time position information and monitoring object data of the vehicle, generating monitoring data, uploading the monitoring data to a monitoring center for processing, and receiving and executing instructions or data sent by a check station.
As above, wherein the interactive terminal includes: the system comprises a data receiving unit, a pre-judging unit, a data storage unit, a route position acquiring unit, an alarm unit and a data sending unit; wherein the data receiving unit: the device is used for receiving the monitored object data uploaded by the data acquisition device and sending the monitored object data to the pre-judging unit; real-time position acquisition instructions for the checkpoint to send; a pre-judgment unit: the data storage unit is used for reading temperature information in the monitored object data, pre-judging the temperature information, generating a pre-judging result, and sending the monitored object data to the data storage unit if the pre-judging result is that the temperature value is normal; if the pre-judgment result is that the temperature value is abnormal, sending abnormal information to an alarm unit; a data storage unit: the device is used for storing the monitoring object data sent by the pre-judging unit; a route position acquisition unit: the system comprises a driving route pushing module, a driving route determining module and a vehicle position acquiring module, wherein the driving route pushing module is used for pushing a driving route according to an input driving starting point and an input driving end point, determining the driving route and acquiring real-time position information of a vehicle; the system comprises a monitoring station, a position acquisition command and a feedback command, wherein the monitoring station is used for receiving a real-time position acquisition command sent by the monitoring station and feeding back the real-time position acquisition command; an alarm unit: the device is used for receiving the abnormal information sent by the pre-judging unit and sending an alarm according to the abnormal information; a data transmission unit: and generating monitoring data by using the driving routes, all the monitored object data and the vehicle information, and uploading the monitoring data to a monitoring center.
The vehicle traffic safety inspection method has the technical effects of effectively improving inspection efficiency and reducing vehicle congestion while ensuring traffic safety.
Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The application provides a traffic safety monitoring method and a system thereof, which have the technical effects of ensuring traffic safety, effectively improving inspection efficiency and reducing vehicle congestion conditions.
As shown in fig. 1, the present application provides a traffic safety monitoring system, comprising: a monitoring center 1, a plurality of executive check stations 2 and a plurality of vehicles 3.
Wherein, monitoring center 1: the traffic safety monitoring method is used for receiving monitoring data uploaded by vehicles, executing the traffic safety monitoring method, processing the monitoring data, generating a pass instruction, and issuing the pass instruction to a corresponding execution inspection station.
The execution inspection station 2: the system is used for receiving a passing instruction issued by the monitoring center, issuing a real-time position acquisition instruction to the corresponding vehicle according to the passing instruction, calculating the predicted arrival time after acquiring the real-time position information, and performing clearance or abnormal inspection on the corresponding vehicle according to the predicted arrival time.
The vehicle 3: the monitoring center is used for acquiring monitoring data and sending the monitoring data to the monitoring center; the system is used for receiving and feeding back real-time position acquisition instructions sent by the execution inspection station.
Further, the monitoring center 1 at least includes: the system comprises a data receiving and sending unit, a testimony checking unit, a route analyzing unit and a generating instruction unit.
Wherein, the data receiving and dispatching unit: the monitoring data is used for receiving monitoring data uploaded by a vehicle; for issuing a pass command to the execution checkpoint.
A witness verification unit: the system is used for processing the identity card information and the image data of the monitoring data to obtain a checking result and an authentication result.
A route analysis unit: the system is used for analyzing the driving route in the monitoring data and determining the execution inspection station.
A generation instruction unit: and generating a traffic instruction by using the traffic information, the execution inspection station and the vehicle information in the monitoring data.
Further, the vehicle 3 includes: data acquisition device and interactive terminal.
Wherein, the data acquisition device: for collecting monitored object data.
And (4) interactive terminal: the monitoring system is a device arranged in a vehicle and used for acquiring a driving route, real-time position information and monitoring object data of the vehicle, generating monitoring data, uploading the monitoring data to a monitoring center for processing, and receiving and executing instructions or data sent by a check station.
Further, the interactive terminal includes: the system comprises a data receiving unit, a pre-judging unit, a data storage unit, a route position acquiring unit, an alarm unit and a data sending unit.
Wherein the data receiving unit: the device is used for receiving the monitored object data uploaded by the data acquisition device and sending the monitored object data to the pre-judging unit; for receiving real-time position acquisition instructions sent by the inspection station.
A pre-judgment unit: the data storage unit is used for reading temperature information in the monitored object data, pre-judging the temperature information, generating a pre-judging result, and sending the monitored object data to the data storage unit if the pre-judging result is that the temperature value is normal; and if the pre-judgment result is that the temperature value is abnormal, sending abnormal information to an alarm unit.
A data storage unit: and the monitoring object data is used for storing the monitoring object data sent by the pre-judging unit.
A route position acquisition unit: the system comprises a driving route pushing module, a driving route determining module and a vehicle position acquiring module, wherein the driving route pushing module is used for pushing a driving route according to an input driving starting point and an input driving end point, determining the driving route and acquiring real-time position information of a vehicle; and the system is used for receiving and feeding back a real-time position acquisition instruction sent by the inspection station.
An alarm unit: and the alarm is used for receiving the abnormal information sent by the pre-judging unit and sending an alarm according to the abnormal information.
A data transmission unit: and generating monitoring data by using the driving routes, all the monitored object data and the vehicle information, and uploading the monitoring data to a monitoring center.
As shown in fig. 2, the present application provides a traffic safety monitoring method, including the following steps:
s210: and acquiring monitoring data.
Further, the sub-steps of acquiring the monitoring data are as follows:
q1: and determining a driving route.
Specifically, a driver inputs a driving starting point and a driving end point to an interactive terminal of the vehicle, the interactive terminal pushes at least one pushed driving route to the driver according to the driving starting point and the driving end point, the driver selects one pushed driving route from the at least one pushed driving route according to actual conditions as the driving route of this time, and the vehicle runs according to the selected driving route. The driver is a bus driver, a bus driver or a taxi driver, and the application takes the bus driver as an example for explanation. The traffic work is a bus, a bus or a taxi, and the like, and the bus is taken as an example for explanation in the application.
The interactive terminal is a device arranged in a vehicle and used for acquiring a driving route, real-time position information and monitoring object data of the vehicle, generating monitoring data, uploading the monitoring data to a monitoring center for processing and receiving feedback information.
Wherein, the driving route includes: at least one boarding station and at least one inspection station.
Q2: and carrying out monitoring object data acquisition on the monitoring objects getting on the vehicle in the driving route.
Specifically, when each monitored object gets on the bus, the data acquisition device of the vehicle acquires the monitored object data of the monitored object, uploads the monitored object data to the interaction terminal, and executes Q3.
Wherein, the monitoring object includes: the driver and the passengers getting on from the boarding station.
Wherein the monitored object data at least comprises: identification card information, body temperature information, and image data.
Wherein, the data acquisition device: comprises a temperature acquisition device, an image acquisition device and an identity card information acquisition device.
Q3: pre-judging temperature information in the monitored object data, and storing the monitored object data if the pre-judging result is that the temperature value is normal; and if the pre-judgment result is that the temperature value is abnormal, an alarm is given.
Specifically, the interactive terminal receives the monitored object data uploaded by the data acquisition device through the data receiving unit and uploads the monitored object data to the pre-judging unit, and the pre-judging unit reads the temperature information in the monitored object data, pre-judges the temperature information and generates a pre-judging result. If the temperature value is normal as a result of the pre-determination, the monitoring object data is stored, and Q4 is executed. If the pre-judgment result is that the temperature value is abnormal, an abnormal alarm is sent to the driver through the alarm unit, the driver rechecks the temperature information of the passenger according to the actual condition, and if the rechecking result is that the temperature value is still abnormal, the passenger is explained as the load rejection reason.
Furthermore, the pre-judging unit only reads the temperature information, and the identity card information cannot be read at the interactive terminal. This setting does benefit to protecting the identity information security of control object.
Q4: and generating monitoring data by using the driving route, all the monitored object data and the vehicle information.
Further, the vehicle information includes at least: the type of vehicle, the license plate number of the vehicle, and the interactive terminal ID.
Specifically, when the vehicle runs through all boarding stations located before one checkpoint and no passengers get on the vehicle, the data storage unit reaches one storage node, the data sending unit obtains all monitoring object data in one storage node, the driving route selected by the route position obtaining unit and the vehicle information to generate monitoring data, and uploads the monitoring data to the monitoring center to execute step S220.
S220: and processing the monitoring data to generate a pass instruction.
Further, the substep of processing the monitoring data and generating the pass command is as follows:
r1: and processing all monitored object data in the monitoring data to obtain the traffic information.
Further, the substep of processing all monitored object data in the monitored data to obtain the traffic information is as follows:
r110: and respectively carrying out validity check on the identity card information of each monitored object to generate a check result.
Specifically, after receiving the monitoring data, the monitoring center checks the identity card information through the authentication and checking unit and generates a checking result. Wherein, the check result includes: valid and invalid. If the check result is valid, then R120 is performed. If the checking result is invalid, the verification of the monitored object data of the monitored object is finished, the identity card invalid mark is carried out on the monitored object information, the monitored object data of the next monitored object is read, and R110 is executed.
R120: and processing the image data, verifying whether the testimony is consistent or not, and generating an authentication result.
Further, the substeps of processing the image data, verifying whether the testimony is consistent and generating the authentication result are as follows:
w1: according to an edge detection algorithm, a first processing area is obtained from image data, an area with colors within a reference RGB value range is selected from the image data to be used as a second processing area, and an area where the first processing area and the second processing area are overlapped is used as a human face area.
W2: the method comprises the steps of obtaining a feature region from a face region, determining a rectangular region according to the center of the feature region, sequentially rotating the rectangular region around the center by 0-180 degrees, dividing the rectangular region into a plurality of sub-regions after each rotation operation, respectively extracting texture features of each sub-region, and obtaining a texture feature set corresponding to each rotation operation.
Specifically, the expression of the texture features of the sub-regions is as follows:
LW is the texture feature of the sub-region; p is a radical ofcThe gray value of the pixel point at the middle position of the subregion is obtained; q is the q-th pixel point except the middle position pixel point in a 3 multiplied by 3 window, q is a natural number, and q belongs to [0,8 ]]; pqIs the gray value of the q-th pixel point in the neighborhood, wherein, when P isq-PcAt more than or equal to 0, theta (P)q-Pc) 1 is ═ 1; when P is presentq-PcAt < 0, theta (P)q-Pc)=0。
W3: comparing the texture feature set corresponding to each rotation operation with the face data in the identity card information, calculating the similarity corresponding to each rotation operation, if the similarity corresponding to each rotation operation is higher than a preset value, enabling the face data in the identity card information to be consistent with the image data, and enabling the authentication result to be consistent, and if the similarity corresponding to each rotation operation is lower than the preset value, enabling the face data in the identity card information to be inconsistent with the image data, and enabling the authentication result to be inconsistent.
Wherein the preset value is 80%.
R130: and after checking and/or verifying all the monitored object data, generating the traffic information according to the checking result and the authentication result.
Specifically, the authentication and verification unit generates the traffic information according to the verification result and the verification result after completing verification and/or verification of all monitored object data in the monitored data.
Further, the traffic information includes: and when the traffic information is to be checked for the abnormality, the traffic information also comprises an abnormal monitoring object and an abnormal reason.
Specifically, if all the check results in the monitoring data are valid and all the authentication results are identical to the testimony, the generated traffic information is normal and can pass. If at least one invalid check result exists in the monitoring data, the generated traffic information is abnormal to be checked, the abnormal monitoring object is a passenger with abnormal identification card information check, and the abnormal reason is the abnormal identification card information. If the check result in the monitoring data is valid, but at least one authentication in the authentication result is inconsistent, the generated traffic information is abnormal to be checked, the abnormal monitoring object is a passenger with the authentication result inconsistent, and the abnormal reason is the authentication inconsistency.
R2: and determining an execution inspection station according to the driving route in the monitoring data.
Specifically, the route analysis unit analyzes the driving route in the monitoring data, and determines a first inspection station after a last boarding station in the driving route as an execution inspection station. As an embodiment, a driving route of the bus 814 is taken as an example, the driving starting point is the fifth stage of swallow-outoft, and the driving end point is the country trade in beijing, wherein the last boarding station of the driving route is the tidal white person home station, and the first inspection station after the tidal white person home station is the white temple inspection station, and then the route analysis unit determines the white temple inspection station as the execution inspection station.
R3: and generating a traffic instruction by using the traffic information, the execution inspection station and the vehicle information in the monitoring data.
Specifically, the generation instruction unit generates a passage instruction using the passage information, the execution checkpoint, and the vehicle information in the monitoring data, and executes R3.
S230: and issuing the pass instruction to the corresponding execution inspection station, so that the corresponding execution inspection station carries out pass inspection on the corresponding vehicle according to the pass instruction.
Specifically, after the instruction generating unit generates the pass instruction, the pass instruction is issued to the corresponding execution inspection station, and after the execution inspection station receives the pass instruction, the corresponding transaction tool is released or subjected to abnormal inspection according to the pass instruction.
Further, the passing instruction is issued to the corresponding execution inspection station, so that the corresponding execution inspection station performs the passing inspection on the corresponding vehicle according to the passing instruction in the following sub-steps:
e1: and receiving and executing the pass command.
Specifically, after the execution checkpoint receives the pass command, the execution checkpoint feeds back a reception success message to the monitoring center, and executes E2.
E2: and issuing a real-time position acquisition instruction to a corresponding vehicle according to the passing instruction to acquire real-time position information.
Specifically, the execution inspection station sends a real-time position acquisition instruction to the corresponding vehicle according to the interactive terminal ID, after receiving the real-time position acquisition instruction, the vehicle feeds back real-time position information of itself to the execution inspection station, and after receiving the real-time position information, the execution inspection station executes E3.
E3: and acquiring the predicted arrival time of the vehicle according to the real-time position information.
Specifically, the calculation formula of the estimated arrival time is as follows:
wherein, T
yIs the predicted arrival time; d
aFor a sampling period T
dArrival rate of medium vehicles; s is the distance from the vehicle to the inspection execution station; v
gIs an assumed speed, V, of the vehicle
g=λ×S,
For a sampling period T
dAverage travel time of the medium vehicle; n is a sampling time period T
dThe number of arrivals of the medium vehicle; e is a constant; ψ is a traffic congestion threshold value.
Specifically, the traffic congestion threshold ψ is a parameter that is manually set or calculated by the system according to the degree of traffic congestion in a specific time period, and the traffic congestion threshold ψ is larger the more serious the traffic congestion condition is. The specific segmentation manner of the specific time period may be determined according to actual situations. Preferably, the specific time period may be divided into an on-duty time period and a non-on-duty time period.
E4: and performing pass check on the corresponding vehicles according to the predicted arrival time, wherein the pass check comprises passing or abnormal check.
Specifically, the expected arrival time of the inspection station is executed to carry out data acquisition on the vehicles, and if the acquired data display is consistent with the types and license plate numbers of the vehicles in the vehicle information, the vehicles are directly released or subjected to abnormal inspection according to the traffic information in the traffic instruction.
Further, after the execution inspection station receives the pass instruction, the pass code is issued to the corresponding vehicle according to the pass instruction, wherein the pass code comprises: a pass green code and an exception check code.
Specifically, when the passing information in the passing instruction is that no abnormal passing exists, the passing code issued by the execution check station to the corresponding vehicle is a passing green code. And when the passing information in the passing instruction is abnormal to be checked, the passing code issued to the corresponding vehicle by the inspection station is an abnormal inspection code.
If the vehicle receives the green pass code, when the vehicle drives to the execution inspection station, the vehicle presents the green pass code to the execution inspection station for direct passing. If the vehicle receives the abnormal check code, the vehicle sends an alarm to be checked to a driver through the alarm unit, and when the vehicle runs to the check execution station, the vehicle actively cooperates with the check execution station to perform abnormal check.
The vehicle traffic safety inspection method has the technical effects of effectively improving inspection efficiency and reducing vehicle congestion while ensuring traffic safety.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, the scope of protection of the present application is intended to be interpreted to include the preferred embodiments and all variations and modifications that fall within the scope of the present application. It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the present application and their equivalents, the present application is intended to include such modifications and variations as well.