Detailed Description
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments. It should be noted that, in the present disclosure, the embodiments and features of the embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided by the embodiments of the present disclosure may be executed in a computer terminal or a similar computing device. Taking an example of the method running on a computer terminal, fig. 1 schematically shows a hardware structure block diagram of the computer terminal of the method for danger warning according to the embodiment of the present disclosure. As shown in fig. 1, a computer terminal may include one or more processors 102 (only one is shown in fig. 1), wherein the processors 102 may include but are not limited to a processing device such as a Microprocessor (MPU) or a Programmable Logic Device (PLD) and a memory 104 for storing data, and optionally, the computer terminal may further include a transmission device 106 for communication function and an input/output device 108, it is understood by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not a limitation to the structure of the computer terminal, for example, the computer terminal may further include more or less components than those shown in fig. 1, or have equivalent functions or different configurations than those shown in fig. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the method for warning danger in the embodiments of the present disclosure, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to a computer terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In an embodiment of the present disclosure, a method for danger warning is provided, and fig. 2 schematically illustrates a flowchart of a method for danger warning according to an embodiment of the present disclosure, where as shown in fig. 2, the flowchart includes the following steps:
step S202, collecting positioning information of the dangerous chemical vehicle;
step S204, carrying out track processing on the positioning information, and determining track segment information according to the positioning information after the track processing;
step S206, an electronic fence corresponding to the high-risk area is set, wherein the electronic fence comprises: spatial parameters and risk parameters;
and S208, determining overlapped track information according to the track segment information and the space parameters, and sending out a danger alarm according to the overlapped track information and the risk parameters.
According to the method, the positioning information of the dangerous chemical vehicle is collected; carrying out track processing on the positioning information, and determining track segment information according to the positioning information after the track processing; set up the regional electronic fence that corresponds of high risk, wherein, electronic fence includes: spatial parameters and risk parameters; and determining overlapped track information according to the track segment information and the space parameters, and sending out a danger alarm according to the overlapped track information and the risk parameters. Because the track section information is determined according to the positioning information after the track processing, the electronic fence corresponding to the high-risk area is set, the overlapped track information is determined according to the track section information and the electronic fence, and the danger alarm is sent out, the technical means can solve the problems that long-term labor input is needed, the manual inspection efficiency is low, and the phenomena of missing inspection, misjudgment and the like are inevitable for some road sections with large traffic flow in the prior art, and further provide a method for automatically monitoring and alarming dangerous chemical vehicles.
In step S204, performing a track processing on the positioning information, and determining track segment information according to the positioning information after the track processing, including: performing point aggregation operation on the positioning information according to a time sequence so as to converge a plurality of positioning points which are very close to each other in the positioning information into one positioning point; performing coordinate system projection conversion operation on the positioning information subjected to the point aggregation operation to obtain projection coordinate points under a projection coordinate system; matching the projection coordinate points with a map network so as to correct the projection coordinate points according to the map network; and determining the track segment information according to the projection coordinate points after the point and map network matching operation.
The map road network is road network information on a map.
In addition, the point aggregation is to aggregate a plurality of closely spaced points into one point. The reason why point aggregation is needed is that in actual operation, dangerous chemical vehicles can continuously report GPS points, namely positioning points, under certain conditions, the positions of the points are close to each other and can be represented by one point, all the points do not need to be considered, for example, when the vehicles stay, GPS data of a plurality of similar positions can be received, and under the condition, only one accurate GPS point is needed to represent the position. Point polymerization: on one hand, the position can be more accurately represented, and on the other hand, the redundancy of data is reduced.
The coordinate transformation is to convert the longitude and latitude into a projection coordinate point, wherein the coordinate system corresponding to the projection coordinate point may be WGS84, CGCS2000, or the like. Role of coordinate transformation: in the time-space analysis, each time-space analysis function corresponds to a specific projection coordinate point, GPS data, namely positioning information, is converted into the specific projection coordinate point in the early stage, and the corresponding function can be used in the subsequent processes of space analysis and map network matching. For example, when map road network matching is performed, the road network data is already data under a specific projection coordinate point, and if coordinate conversion is not performed, both the GPS data and the road network data are not matched positively.
The points are matched with a map road network, namely GPS points are matched with data of the map road network actually, the map road network is strip data, GPS tracks are linear data, and the matching operation is to move the points of the GPS tracks to the nearest road network, so that the points on the GPS tracks are all on the road network, and the natural GPS tracks are matched to the road network. The essence of matching is data correction, because a vehicle is certainly driven on a road network, but the GPS data has drift probability, and not every point is an actual position, so that the road network correction needs to be carried out on the GPS points, and the accuracy of subsequent spatial analysis is convenient.
Determining the track segment information according to the projection coordinate points after the point and map network matching operation, wherein the determining comprises the following steps: performing track segmentation operation on the projection coordinate points subjected to the matching operation with the map road network to obtain a plurality of track segments; performing a track segment and map network matching operation on the plurality of track segments to correct each track segment of the plurality of track segments according to the map network; and determining the track segment information according to the plurality of track segments after the track segments are matched with the map road network.
The track segmentation operation is to merge a plurality of continuous points into one track segment, and a plurality of track segments can be obtained through the track segmentation operation. The continuous points are GPS points, all the GPS points have time sequences (the time is reported when the GPS reports the time), the continuity is continuous in time, the continuity of the point positions is determined by the continuity in time, and a section of continuous points is actually a section of track. The track segment and map network matching operation is similar to the process and action of the point and map network matching operation, and the track segment and map network matching operation can be understood as correcting the track segment according to the map network.
Determining the track segment information according to a plurality of track segments after the track segment is matched with the map network, wherein the determining comprises the following steps: performing data interpolation operation on the plurality of track segments after the track segments are matched with the map road network so as to insert track correction points into each track segment according to the map road network; and determining the track segment information according to a plurality of track segments after the track segment and map network matching operation and the data interpolation operation.
And the step of data interpolation is to combine the road network to interpolate the track matched with the road network. According to the map road network matching process, the GPS points are moved to the corresponding road networks, but in this case, the corresponding straight line networks have no problem, if the road networks turn, corresponding GPS points may not exist at the track correction points, and then a point needs to be inserted at the track correction points to ensure the correct matching of the tracks and the road networks.
In step S206, setting an electronic fence corresponding to the high-risk area, including: acquiring a plurality of areas on a map road network, determining the high-risk area according to the areas, and setting the electronic fence according to the area information of the high-risk area; or receiving an electronic fence instruction sent by a target object, and setting the electronic fence corresponding to the high-risk area according to the setting instruction.
The electronic fence is a graphic area drawn on a map network, dangerous chemical vehicles enter the area to move, high-risk area early warning is triggered, a plurality of electronic fences often exist in an administrative area, the dangerous chemical sensitive characteristics of each electronic fence are different, and electronic fence setting and management can be achieved according to the embodiment of the disclosure. The risk parameter settings for the electronic fence can be set based on the fence characteristics, such as the length of time the hazardous chemical vehicle is allowed to stay within the fence, the distance allowed to travel within the fence, and the like. The high-risk area and the dangerous chemical substance vehicles are related, a plurality of areas on a map network are obtained, and the high-risk area is determined according to the areas and the dangerous chemical substance vehicles.
In step S206, setting the electronic fence corresponding to the high-risk area, including: newly building the electronic fence, deleting the electronic fence and modifying the electronic fence; the spatial parameters include: a region name and a region scope; the risk parameters include: vehicle sojourn time, safety distance, vehicle entry distance, hazardous chemical classes, and risk level.
Modifying the electronic fence is to modify a spatial parameter and a risk parameter of the electronic fence. The execution subject of the disclosed embodiments may be an analytical model. The safety distance can be the distance between a dangerous chemical vehicle and a high-risk area when the dangerous chemical vehicle does not enter the high-risk area, the vehicle entering distance is the distance between the dangerous chemical vehicle and the high-risk area, the dangerous chemical category is the dangerous chemical category which cannot be contacted with the high-risk area, and the risk level reflects the risk bearing capacity of the high-risk area.
In step S208, determining overlapping track information according to the track segment information and the spatial parameter, including: judging whether the track segment information and the space parameters are overlapped in space; and under the condition that the track segment information and the space parameters are overlapped, determining overlapped track information according to the track segment information and the space parameters.
And for each electronic fence, judging whether the track segment information is overlapped with the space parameters of the electronic fence or not, and determining whether the hazardous chemical substance vehicle enters or approaches to a high-risk area or not. When the track segment information and the space parameters are overlapped, determining overlapped track information according to the track segment information and the space parameters; and when the track section information is not overlapped with the space parameters, continuously acquiring the track section information of the next electronic fence or other dangerous chemical vehicle, further judging whether the track section information is overlapped with the space parameters, and judging whether an alarm should be sent or not until the track section information is overlapped with the space parameters.
In step S208, sending a danger alarm according to the overlapping track information and the risk parameter, including: judging whether a danger alarm condition is met or not according to the overlapping track information and the risk parameter; and recording the vehicle information of the dangerous chemical vehicle under the condition of meeting the danger alarm condition, and sending out the danger alarm according to the vehicle information.
Judging whether a danger alarm condition is met according to the overlapping track information and the risk parameter, and recording vehicle information of the dangerous chemical vehicle when the danger alarm condition is met, wherein the vehicle information can comprise: license plate number, electronic fence number, vehicle track in the electronic fence, dangerous chemical vehicle entering high-risk area and the like. And sending the danger alarm according to the vehicle information, wherein the danger alarm can be sent out and carries the vehicle information. And when the danger alarm condition is not met, continuing to acquire track segment information of the next electronic fence or other dangerous chemical vehicles, and further judging whether the track segment information and the space parameters are overlapped or not, and judging whether an alarm should be sent or not until the track segment information and the space parameters are overlapped.
In order to better understand the technical solutions, the embodiments of the present disclosure also provide an alternative embodiment for explaining the technical solutions.
Fig. 3 schematically illustrates a flowchart of a method for danger warning according to an embodiment of the present disclosure, as shown in fig. 3:
s302: collecting dangerous chemical substance vehicle GPS data (namely positioning information);
s304: carrying out GPS track processing (namely track processing) on the GPS data of the dangerous chemical vehicle, wherein the track processing comprises the following steps: matching the points with a map network and performing track segmentation operation to obtain a vehicle GPS track segment;
s306: set up the regional electronic fence that corresponds of high risk, wherein, set up electronic fence and include: setting space parameters of the electronic fence and setting risk parameters of the electronic fence;
s308: extracting single electronic fence data, wherein the electronic fence data comprises an electronic fence space range;
s310: judging whether the space ranges of the track section and the electronic fence are overlapped or not;
s312: the track section is overlapped with the space range of the electronic fence, whether high-risk early warning is met or not is judged, track information of the electronic fence and the vehicle is recorded, early warning when the vehicle enters a high-risk area is sent, and an early warning disposal process is carried out;
s314: and (4) continuously extracting other electronic fence data without overlapping the track segment with the space range of the electronic fence.
Fig. 4 schematically illustrates a schematic diagram of a tracing process of positioning information according to an embodiment of the disclosure, as shown in fig. 4:
the track processing of the positioning information comprises the following processes:
vehicle-mounted GPS: the method comprises the following steps that GPS equipment loaded by a hazardous chemical substance vehicle generates a GPS data packet and reports the data, namely, the positioning information;
data storage: storing the positioning information passing the data verification in a GPS data time space database;
and (3) GPS point processing: extracting GPS point data in batches, and performing point aggregation operation and coordinate system projection conversion operation on the GPS point data;
and (3) track point map road network matching: obtaining map road network space-time data, mapping track points to road network road segments, and performing matching operation of positioning points and the map road network, wherein the map road network space-time data can be map road network information about required road segments obtained through networking;
track processing: combining the continuous points into tracks, namely combining the continuous points into track sections, and performing track segmentation operation and track section denoising treatment, wherein the track section denoising treatment is to remove interference and redundant data in the track sections;
matching the track map road network: matching the track section with the map road network;
track interpolation and storage: and performing data interpolation operation, and storing the result in a time-space database.
Fig. 5 is a schematic diagram schematically illustrating a setup method of an electronic fence according to an embodiment of the present disclosure, as shown in fig. 5:
the setting of the electronic fence comprises the following processes:
administrative district base map: calling map network data service to display the base map of the administrative area;
electronic fence selection: selecting a fence type, a fence setting operation, comprising: new/modified/deleted;
newly building an electronic fence: newly building an electronic fence to outline an electronic fence area meeting the conditions on a road network;
modifying the electronic fence: adjusting the range of the original electronic fence on a map road network;
deleting the electronic fence: selecting an electronic fence to be deleted, and executing the logical deletion operation of the electronic fence;
setting a risk threshold of the electronic fence: setting electronic fence attributes and risk parameters, wherein the risk parameters comprise: vehicle sojourn time, safety distance, vehicle entry distance, hazardous chemical category and risk level;
storing electronic fence data: and storing the electronic fence space data in an electronic fence space-time database, and storing the electronic fence risk parameters in an electronic fence risk parameter model database.
Fig. 6 schematically illustrates a schematic diagram of an analysis method for a hazard alarm according to an embodiment of the present disclosure, as shown in fig. 6:
the analysis of the danger alarm comprises the following processes:
preparing data: preparing the current-day driving track data, electronic fence space data (namely space parameters) and map network space-time data of the vehicle;
data storage: and (3) inquiring a spatial range: inquiring road segments within the range of the effective electronic fence, and inquiring the similarity of the track and the road segments: inquiring all vehicle track sections in a track section electronic fence range overlapped with the vehicle track in the electronic fence range;
high-risk judgment and preparation: calling an electronic fence high-risk parameter model from an electronic fence risk parameter model library, inquiring high-risk parameters of associated electronic fences, and extracting a certain vehicle track and the associated electronic fences;
and (4) judging high-risk risks: according to the vehicle track in the electronic fence range, whether the dangerous chemical vehicle is: the stay time is more than 20m, the running distance is more than 10km and is less than the safe distance;
recording high-risk information: recording violation vehicles, recording time of the vehicles entering and leaving a high-risk area, recording violation information of an electronic fence in combination with risk parameters, and continuously inquiring other vehicles;
the high-risk area early warning processing system comprises the following systems: monitoring and early warning system, linkage command system and 12306;
analyzing and displaying early warning evidence chains in high-risk areas: early warning basic information: license plate number, occurrence time, time of entering a high-risk area, time of leaving the high-risk area, early warning description information, early warning handling event linkage details, and display of driving tracks of vehicles in the high-risk area within the electronic fence limited range by combining a map road network.
According to the method, the positioning information of the dangerous chemical vehicle is collected; carrying out track processing on the positioning information, and determining track segment information according to the positioning information after the track processing; set up the regional electronic fence that corresponds of high risk, wherein, electronic fence includes: spatial parameters and risk parameters; and determining overlapped track information according to the track segment information and the space parameters, and sending out a danger alarm according to the overlapped track information and the risk parameters. Because the track section information is determined according to the positioning information after the track processing, the electronic fence corresponding to the high-risk area is set, the overlapped track information is determined according to the track section information and the electronic fence, and the danger alarm is sent out, the technical means can solve the problems that long-term labor input is needed, the manual inspection efficiency is low, and the phenomena of missing inspection, misjudgment and the like are inevitable for some road sections with large traffic flow in the prior art, and further provide a method for automatically monitoring and alarming dangerous chemical vehicles.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present disclosure or portions contributing to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk), and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a component server, or a network device) to execute the methods of the embodiments of the present disclosure.
In this embodiment, a danger warning device is further provided, and the danger warning device is used to implement the foregoing embodiments and preferred embodiments, which have already been described and are not described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 7 is a block diagram schematically illustrating a hazard warning apparatus according to an alternative embodiment of the present disclosure, and as shown in fig. 7, the apparatus includes:
an acquisition module 702, configured to acquire positioning information of a hazardous chemical substance vehicle;
a processing module 704, configured to perform tracing processing on the positioning information, and determine track segment information according to the positioning information after the tracing processing;
a setting module 706, configured to set an electronic fence corresponding to the high-risk area, where the electronic fence includes: spatial parameters and risk parameters;
a determining module 708, configured to determine overlapping trajectory information according to the trajectory segment information and the spatial parameter, and send a danger alarm according to the overlapping trajectory information and the risk parameter.
According to the method, the positioning information of the dangerous chemical vehicle is collected; carrying out track processing on the positioning information, and determining track segment information according to the positioning information after the track processing; set up the regional electronic fence that corresponds of high risk, wherein, electronic fence includes: spatial parameters and risk parameters; and determining overlapped track information according to the track segment information and the space parameters, and sending out a danger alarm according to the overlapped track information and the risk parameters. Because the track section information is determined according to the positioning information after the track processing, the electronic fence corresponding to the high-risk area is set, the overlapped track information is determined according to the track section information and the electronic fence, and the danger alarm is sent out, the technical means can solve the problems that long-term labor input is needed, the manual inspection efficiency is low, and the phenomena of missing inspection, misjudgment and the like are inevitable for some road sections with large traffic flow in the prior art, and further provide a method for automatically monitoring and alarming dangerous chemical vehicles.
Optionally, the processing module 704 is further configured to perform a point aggregation operation on the positioning information according to a time sequence, so as to aggregate a plurality of positioning points with a short distance in the positioning information into one positioning point; performing coordinate system projection conversion operation on the positioning information subjected to the point aggregation operation to obtain projection coordinate points under a projection coordinate system; matching the projection coordinate points with a map network so as to correct the projection coordinate points according to the map network; and determining the track segment information according to the projection coordinate points after the point and map network matching operation.
In addition, the point aggregation is to aggregate a plurality of closely spaced points into one point. The reason why point aggregation is needed is that in actual operation, dangerous chemical vehicles can continuously report GPS points, namely positioning points, under certain conditions, the positions of the points are close to each other and can be represented by one point, all the points do not need to be considered, for example, when the vehicles stay, GPS data of a plurality of similar positions can be received, and under the condition, only one accurate GPS point is needed to represent the position. Point polymerization: on one hand, the position can be more accurately represented, and on the other hand, the redundancy of data is reduced.
The coordinate transformation is to convert the longitude and latitude into a projection coordinate point, wherein the coordinate system corresponding to the projection coordinate point may be WGS84, CGCS2000, or the like. Role of coordinate transformation: in the time-space analysis, each time-space analysis function corresponds to a specific projection coordinate point, GPS data, namely positioning information, is converted into the specific projection coordinate point in the early stage, and the corresponding function can be used in the subsequent processes of space analysis and map network matching. For example, when map road network matching is performed, the road network data is already data under a specific projection coordinate point, and if coordinate conversion is not performed, both the GPS data and the road network data are not matched positively.
The points are matched with a map road network, namely GPS points are matched with data of the map road network actually, the map road network is strip data, GPS tracks are linear data, and the matching operation is to move the points of the GPS tracks to the nearest road network, so that the points on the GPS tracks are all on the road network, and the natural GPS tracks are matched to the road network. The essence of matching is data correction, because a vehicle is certainly driven on a road network, but the GPS data has drift probability, and not every point is an actual position, so that the road network correction needs to be carried out on the GPS points, and the accuracy of subsequent spatial analysis is convenient.
Optionally, the processing module 704 is further configured to perform a track segmentation operation on the projection coordinate points after the point and map network matching operation is performed, so as to obtain a plurality of track segments; performing a track segment and map network matching operation on the plurality of track segments to correct each track segment of the plurality of track segments according to the map network; and determining the track segment information according to the plurality of track segments after the track segments are matched with the map road network.
The track segmentation operation is to merge a plurality of continuous points into one track segment, and a plurality of track segments can be obtained through the track segmentation operation. The continuous points are GPS points, all the GPS points have time sequences (the time is reported when the GPS reports the time), the continuity is continuous in time, the continuity of the point positions is determined by the continuity in time, and a section of continuous points is actually a section of track. The track segment and map network matching operation is similar to the process and action of the point and map network matching operation, and the track segment and map network matching operation can be understood as correcting the track segment according to the map network.
Optionally, the processing module 704 is further configured to perform a data interpolation operation on the plurality of track segments after the track segment is matched with the map road network, so as to insert a track correction point into each track segment according to the map road network; and determining the track segment information according to a plurality of track segments after the track segment and map network matching operation and the data interpolation operation.
And the step of data interpolation is to combine the road network to interpolate the track matched with the road network. According to the map road network matching process, the GPS points are moved to the corresponding road networks, but in this case, the corresponding straight line networks have no problem, if the road networks turn, corresponding GPS points may not exist at the track correction points, and then a point needs to be inserted at the track correction points to ensure the correct matching of the tracks and the road networks.
Optionally, the setting module 706 is further configured to obtain a plurality of areas on a map network, determine the high-risk area according to the plurality of areas, and set the electronic fence according to area information of the high-risk area; or receiving an electronic fence instruction sent by a target object, and setting the electronic fence corresponding to the high-risk area according to the setting instruction.
The electronic fence is a graphic area drawn on a map network, dangerous chemical vehicles enter the area to move, high-risk area early warning is triggered, a plurality of electronic fences often exist in an administrative area, the dangerous chemical sensitive characteristics of each electronic fence are different, and electronic fence setting and management can be achieved according to the embodiment of the disclosure. The risk parameter settings for the electronic fence can be set based on the fence characteristics, such as the length of time the hazardous chemical vehicle is allowed to stay within the fence, the distance allowed to travel within the fence, and the like. The high-risk area and the dangerous chemical substance vehicles are related, a plurality of areas on a map network are obtained, and the high-risk area is determined according to the areas and the dangerous chemical substance vehicles.
Optionally, the setting module 706 is further configured to create the electronic fence, delete the electronic fence, and modify the electronic fence; the spatial parameters include: a region name and a region scope; the risk parameters include: vehicle sojourn time, safety distance, vehicle entry distance, hazardous chemical classes, and risk level.
Modifying the electronic fence is to modify a spatial parameter and a risk parameter of the electronic fence. The execution subject of the disclosed embodiments may be an analytical model. The safety distance can be the distance between a dangerous chemical vehicle and a high-risk area when the dangerous chemical vehicle does not enter the high-risk area, the vehicle entering distance is the distance between the dangerous chemical vehicle and the high-risk area, the dangerous chemical category is the dangerous chemical category which cannot be contacted with the high-risk area, and the risk level reflects the risk bearing capacity of the high-risk area.
Optionally, the determining module 708 is further configured to determine whether the track segment information and the spatial parameter are spatially overlapped; and under the condition that the track segment information and the space parameters are overlapped, determining overlapped track information according to the track segment information and the space parameters.
And for each electronic fence, judging whether the track segment information is overlapped with the space parameters of the electronic fence or not, and determining whether the hazardous chemical substance vehicle enters or approaches to a high-risk area or not. When the track segment information and the space parameters are overlapped, determining overlapped track information according to the track segment information and the space parameters; and when the track section information is not overlapped with the space parameters, continuously acquiring the track section information of the next electronic fence or other dangerous chemical vehicle, further judging whether the track section information is overlapped with the space parameters, and judging whether an alarm should be sent or not until the track section information is overlapped with the space parameters.
Optionally, the determining module 708 is further configured to determine whether a danger warning condition is met according to the overlapping track information and the risk parameter; and recording the vehicle information of the dangerous chemical vehicle under the condition of meeting the danger alarm condition, and sending out the danger alarm according to the vehicle information.
Judging whether a danger alarm condition is met according to the overlapping track information and the risk parameter, and recording vehicle information of the dangerous chemical vehicle when the danger alarm condition is met, wherein the vehicle information can comprise: license plate number, electronic fence number, vehicle track in the electronic fence, dangerous chemical vehicle entering high-risk area and the like. And sending the danger alarm according to the vehicle information, wherein the danger alarm can be sent out and carries the vehicle information. And when the danger alarm condition is not met, continuing to acquire track segment information of the next electronic fence or other dangerous chemical vehicles, and further judging whether the track segment information and the space parameters are overlapped or not, and judging whether an alarm should be sent or not until the track segment information and the space parameters are overlapped.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present disclosure provide an electronic device.
Fig. 8 schematically shows a block diagram of an electronic device provided in an embodiment of the present disclosure.
Referring to fig. 8, an electronic device 800 provided in the embodiment of the present disclosure includes a processor 801, a communication interface 802, a memory 803, and a communication bus 804, where the processor 801, the communication interface 802, and the memory 803 complete communication with each other through the communication bus 804; a memory 803 for storing a computer program; the processor 801 is configured to implement the steps of any of the above method embodiments when executing the program stored in the memory.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, collecting the positioning information of the dangerous chemical vehicle;
s2, carrying out tracing processing on the positioning information, and determining track segment information according to the positioning information after the tracing processing;
s3, setting an electronic fence corresponding to the high-risk area, wherein the electronic fence comprises: spatial parameters and risk parameters;
and S4, determining overlapping track information according to the track segment information and the space parameters, and sending out a danger alarm according to the overlapping track information and the risk parameters.
Embodiments of the present disclosure also provide a computer-readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of any of the method embodiments described above.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, collecting the positioning information of the dangerous chemical vehicle;
s2, carrying out tracing processing on the positioning information, and determining track segment information according to the positioning information after the tracing processing;
s3, setting an electronic fence corresponding to the high-risk area, wherein the electronic fence comprises: spatial parameters and risk parameters;
and S4, determining overlapping track information according to the track segment information and the space parameters, and sending out a danger alarm according to the overlapping track information and the risk parameters.
The computer-readable storage medium may be contained in the apparatus/device described in the above embodiments; or may be present alone without being assembled into the device/apparatus. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present disclosure described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. As such, the present disclosure is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure, and various modifications and changes may be made to the present disclosure by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the principle of the present disclosure should be included in the protection scope of the present disclosure.