WO2020034135A1 - Traffic monitoring and alerting method and apparatus, terminal device, and storage medium - Google Patents

Traffic monitoring and alerting method and apparatus, terminal device, and storage medium Download PDF

Info

Publication number
WO2020034135A1
WO2020034135A1 PCT/CN2018/100791 CN2018100791W WO2020034135A1 WO 2020034135 A1 WO2020034135 A1 WO 2020034135A1 CN 2018100791 W CN2018100791 W CN 2018100791W WO 2020034135 A1 WO2020034135 A1 WO 2020034135A1
Authority
WO
WIPO (PCT)
Prior art keywords
preset
vehicle
vehicles
duration
gps data
Prior art date
Application number
PCT/CN2018/100791
Other languages
French (fr)
Chinese (zh)
Inventor
李恒
刘光军
Original Assignee
深圳市锐明技术股份有限公司
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 深圳市锐明技术股份有限公司 filed Critical 深圳市锐明技术股份有限公司
Priority to PCT/CN2018/100791 priority Critical patent/WO2020034135A1/en
Priority to CN201880001061.6A priority patent/CN109219838B/en
Publication of WO2020034135A1 publication Critical patent/WO2020034135A1/en

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/0104Measuring and analyzing of parameters relative to traffic conditions
    • G08G1/0125Traffic data processing
    • G08G1/0133Traffic data processing for classifying traffic situation
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/065Traffic control systems for road vehicles by counting the vehicles in a section of the road or in a parking area, i.e. comparing incoming count with outgoing count

Definitions

  • the present application relates to the field of transportation technology, and in particular, to a method, a device, a terminal device, and a storage medium for traffic monitoring and alarming.
  • the embodiments of the present application provide a traffic monitoring and alarming method, device, terminal device and storage medium, which can realize real-time monitoring of traffic conditions and promptly send out alarm messages, which can greatly improve the efficiency of traffic monitoring and ensure the timeliness of alarms.
  • a first aspect of the embodiments of the present application provides a traffic monitoring and alarm method, including:
  • first number of vehicles is greater than the first preset number threshold, obtaining a duration of time when the first number of vehicles is greater than the first preset number threshold;
  • the method before receiving GPS data sent by a GPS device in a vehicle and counting the number of first vehicles in a preset electronic fence according to the received GPS data, the method includes:
  • Collect historical GPS data of each vehicle perform big data analysis on the historical GPS data to determine a traffic section where the preset number of accidents is greater than a preset number of thresholds, and set an electronic fence for the traffic section as the preliminary Set up electronic fences.
  • the receiving GPS data sent by a GPS device in a vehicle and counting the number of first vehicles in a preset electronic fence according to the received GPS data includes:
  • GPS data sent by a GPS device in a vehicle where the GPS data includes model identification information and geographic location information of the vehicle;
  • the first vehicle number of the same vehicle type in the preset electronic fence is counted according to the received vehicle type identification information and the geographic location information of the vehicle.
  • the method further includes:
  • the alarm message further includes:
  • the alarm message is cancelled.
  • a traffic monitoring and alarm device including:
  • the vehicle number counting module is configured to receive GPS data sent by a GPS device in the vehicle, and count the first number of vehicles in a preset electronic fence according to the received GPS data;
  • a vehicle number determining module configured to determine whether the first number of vehicles is greater than a first preset number threshold
  • a duration obtaining module configured to obtain a duration when the number of the first vehicles is greater than the threshold of the first preset number if the number of the first vehicles is greater than the threshold of the first preset number;
  • a duration determination module for determining whether the duration is greater than a first preset duration
  • An alarm message sending module is configured to send an alarm message if the duration is greater than the first preset duration.
  • the traffic monitoring and alarm device further includes:
  • the electronic fence setting module is used for collecting historical GPS data of each vehicle, and performing big data analysis on the historical GPS data to determine a traffic section with a preset number of accidents greater than a preset number of thresholds, and electronically setting the traffic section
  • the fence is used as the preset electronic fence.
  • the vehicle quantity statistics module includes:
  • a GPS data receiving unit configured to receive GPS data sent by a GPS device in a vehicle, where the GPS data includes vehicle identification information and geographic location information of the vehicle;
  • the number-of-vehicles counting unit is configured to count the number of first vehicles of the same type in the preset electronic fence according to the received model identification information and geographic location information of the vehicles.
  • a terminal device including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program Realize the steps of the traffic monitoring and alarming method as described in the first aspect.
  • a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the traffic monitoring according to the foregoing first aspect is implemented. Steps of the alarm method.
  • the number of vehicles in the preset electronic fence is counted by acquiring GPS data sent by the GPS device in the vehicle, and the duration of the number of vehicles exceeding the preset number threshold and the number of vehicles exceeding the preset number threshold is longer than the preset duration.
  • the duration is set, it is considered that there is a traffic jam or an illegal gathering of vehicles, etc., and a corresponding alarm message is issued in time to facilitate people to understand the situation early and to respond accordingly.
  • the setting of the electronic fence is adopted.
  • Car monitoring is simple, convenient, efficient and fast. It can greatly improve the efficiency of traffic monitoring and ensure the real-time and timeliness of alarms.
  • FIG. 1 is a method flowchart of a traffic monitoring and alarm method according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a traffic monitoring and alarm method in an application scenario according to an embodiment of the present application
  • FIG. 3 is a schematic flowchart of querying an alarm message in an application scenario of a traffic monitoring alarm method according to an embodiment of the present application
  • FIG. 4 is a schematic structural diagram of a traffic monitoring and alarm device according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a terminal device according to an embodiment of the present application.
  • the embodiments of the present application provide a traffic monitoring alarm method, device, terminal device, and storage medium, which are used to implement real-time monitoring of traffic conditions and send alarm messages in time, which can greatly improve the efficiency of traffic monitoring and ensure the timeliness of alarms .
  • the traffic monitoring and alarm method includes:
  • Step S101 Receive GPS data sent by a GPS device in a vehicle, and count the number of first vehicles in a preset electronic fence according to the received GPS data;
  • the execution subject of the embodiment of the present application may be a terminal device or a server.
  • the execution subject of the embodiment of the present application is a server, such as a cloud server platform.
  • a vehicle is equipped with a corresponding GPS device, and each GPS device is communicatively connected to the server to send the current GPS data of each vehicle to the server in real time, so that the server can receive the GPS of each vehicle according to the received GPS.
  • Data to determine the current state of each vehicle such as determining the current location information of each vehicle, and then counting the number of vehicles in the preset electronic fence according to the current location information of each vehicle.
  • the method before receiving GPS data sent by a GPS device in a vehicle and counting the number of first vehicles in a preset electronic fence according to the received GPS data, the method may include:
  • Collect historical GPS data of each vehicle perform big data analysis on the historical GPS data to determine a traffic section where the preset number of accidents is greater than a preset number of thresholds, and set an electronic fence for the traffic section as the preliminary Set up electronic fences.
  • historical data of GPS data sent by the GPS device of each vehicle may be analyzed by big data, so as to determine a traffic section where a preset accident often occurs, such as a traffic section where a traffic jam often occurs. Or there are often similar traffic accidents such as illegal gathering of vehicles, etc., and corresponding electronic fences are set up for these traffic sections to define the detection area through electronic fences to achieve simple, efficient, convenient and fast detection purposes.
  • the electronic fence can also be flexibly adjusted according to the specific road conditions to adjust the detection area, so as to reasonably set the detection area, reduce the consumption of resources for unnecessary area detection, and achieve efficient and rational use of resources.
  • Step S102 Determine whether the number of the first vehicles is greater than a first preset number threshold
  • the first preset number threshold refers to the maximum number of vehicles that the preset electronic fence can ensure normal and smooth traffic, or it is determined that the smallest vehicle in the electronic fence has illegally gathered vehicles.
  • the threshold value of the first preset number can be set according to the specific conditions of the preset electronic fence, such as the size of the preset electronic fence, and the alarm accidents to be detected in the preset electronic fence. .
  • the obtained number of first vehicles may be compared with the first preset number threshold to determine the Whether there is a preset accident in the preset electronic fence, such as whether there is a traffic jam, or if there is an illegal gathering of vehicles.
  • Step S103 If the number of the first vehicles is greater than the first preset number threshold, obtain a duration of the first vehicle number greater than the first preset number threshold;
  • the present application after determining that the number of the first vehicles is greater than the first preset number threshold, it may be further obtained that the number of the first vehicles is greater than the The duration of the first preset number of thresholds is used to further determine the condition of the vehicle in the preset electronic fence according to the duration of the duration.
  • Step S104 Determine whether the duration is greater than a first preset duration
  • the first preset duration may be determined when a specific preset electronic fence is set, such as setting the first preset duration according to a duration of a traffic light in or near the preset electronic fence.
  • a preset duration for example, the first preset duration is set to be greater than a duration value of a red light having the longest duration in or near the preset electronic fence, or the first preset duration is set to be greater than or A duration value equal to the sum of the durations of all the red lights in or near the preset electronic fence. Therefore, after obtaining the duration of the first number of vehicles in the preset electronic fence that is greater than the first preset number threshold, it can be determined whether the duration of the duration is greater than the first preset duration.
  • step S105 If it is less than or equal to the first preset duration, it can be considered that the preset electronic fence is only a red light condition, and there is no traffic jam or illegal gathering of vehicles that requires an alarm; and if the persistence If the duration is greater than the first preset duration, the following step S105 is performed.
  • Step S105 If the duration is greater than the first preset duration, an alarm message is issued.
  • the duration of time greater than the first preset number threshold exceeds the set first
  • the situation of the traffic section is convenient for the user to plan other travel routes in time, thereby avoiding inconvenience to the user's travel.
  • FIG. 2 shows a schematic flow chart of an illegal vehicle gathering alarm performed by a traffic monitoring alarm method in an embodiment of the present application.
  • the traffic monitoring alarm method includes steps S201, S202, S203, and S204. Step S205 and step S206.
  • step S203 determining whether the number of first vehicles is greater than a first preset number threshold is similar to the above step S102; step S204, if the number of first vehicles is greater than the first preset number threshold, obtaining the The duration of the first vehicle number greater than the first preset number threshold is similar to the above step S103; step S205, determining whether the duration is greater than the first preset duration is similar to the above step S104; step S206, if the duration If the duration is longer than the first preset duration, the alarm message is similar to the above-mentioned step S105, and for the sake of brevity, it will not be repeated here.
  • the first preset number threshold in step S204 may be the maximum number allowed for the same type of vehicle in the preset electronic fence, such as that permitted by a taxi in the preset electronic fence.
  • the maximum number is 30, or the maximum number of buses allowed is 40, and so on.
  • Step S201 Receive GPS data sent by a GPS device in a vehicle, where the GPS data includes model identification information and geographic location information of the vehicle;
  • Step S202 Count the first number of vehicles of the same type in the preset electronic fence according to the received model identification information and geographic location information of the vehicle.
  • model identification information corresponding to the installed vehicle may be set in the GPS device.
  • the vehicle's GPS device sets the vehicle identification information T corresponding to the taxi.
  • the GPS device installed on the bus can set the vehicle identification information B corresponding to the bus, etc., so when the GPS device is sending this to the server,
  • the GPS data can include the vehicle's model identification information, and the GPS data can also include the current geographic location information of the vehicle, so that the server can And the model identification information of each vehicle, the number of vehicles of each model in the preset electronic fence is counted, and then the number of vehicles of the same model in the preset electronic fence is obtained, and if the preset electronic fence is rented out The number of vehicles of the vehicle, or the number of vehicles of the bus in the preset electronic fence.
  • the server can determine whether the number of vehicles of the same type in the preset electronic fence is greater than a preset number threshold, such as determining the preset Whether the number of taxis in the electronic fence is greater than 30. If the number of taxis in the preset electronic fence is greater than 30, it is further judged whether the number of taxis greater than 30 is greater than the preset duration. For example, if the number of taxis exceeds 30 minutes and the duration exceeds 5 minutes, if the number of taxis exceeds 30 minutes and the duration exceeds 5 minutes, it can be determined that there are illegally gathered vehicles in the preset electronic fence.
  • a preset number threshold such as determining the preset Whether the number of taxis in the electronic fence is greater than 30. If the number of taxis in the preset electronic fence is greater than 30, it is further judged whether the number of taxis greater than 30 is greater than the preset duration. For example, if the number of taxis exceeds 30 minutes and the duration exceeds 5 minutes, if the number of taxis exceeds 30 minutes and the
  • the server can promptly send to the relevant departments, such as the relevant government departments, an alert message that an illegal vehicle gathering behavior has occurred in the area corresponding to the preset electronic fence, so that the relevant government departments can timely illegally gather vehicles in the area Behavior management, control, etc.
  • the server can also send the preset electronic fence to other relevant users Early warning messages of illegal gathering of vehicles appeared in the corresponding area. For example, early warning messages were sent to vehicles going through the area to facilitate users on vehicles to learn about illegal gathering of vehicles early, and to plan other driving routes in time to avoid giving people Inconvenience.
  • the alarm message after the alarm message is sent, it further includes:
  • Step S301 Associate the alarm message and the preset electronic fence to a specified alarm list
  • Step S302 When a request for querying an alarm message is received, acquiring a query position corresponding to the request;
  • Step S303 Query the alarm message required for the request from the alarm list according to the query position, and feed back the alarm message required for the request to the requester.
  • the server may use the generated alarm message with the preset electronic fence.
  • the server may use the generated alarm message with the preset electronic fence.
  • Associated storage to the specified alarm list and you can choose to sort and arrange the alarm messages in the alarm list according to time, place or according to the type of alarm for easy query.
  • the server may first obtain the query location to be queried by the request, and then search the alarm list for the alarm message that occurred in the query location according to the query location, and query the The alarm message is fed back to the requester, so that users can query and understand the existence of other similar behaviors such as traffic jams or illegal vehicle gathering in a specific area and / or within a specific time.
  • the alarm message may further include: detecting the number of the second vehicles in the preset electronic fence; when the number of the second vehicles is less than a second preset number threshold, and the number of the second vehicles is less than When the duration of the second preset number threshold is greater than the second preset duration, the alarm message is cancelled.
  • the number of vehicles in the preset electronic fence or The number of vehicles of the same model to determine whether the alarm condition in the preset electronic fence is processed or disappears specifically, when the number of vehicles in the preset electronic fence is less than the second preset number threshold That is, when the number of vehicles in the preset electronic fence is restored to a normal number, it can be considered that other similar situations such as traffic jams or illegal vehicle gathering in the preset electronic fence have been dealt with, that is, at this time There are no other similar situations such as traffic jams or illegal gathering of vehicles in the preset electronic fence. Therefore, the alarm message for the preset electronic fence has expired. At this time, the alarm message for the preset electronic fence can be cancelled. The alarm message is cancelled by sending a notification of the alarm message cancellation, so as to release the alarm message to the preset electronic fence. Police.
  • the number of vehicles in the preset electronic fence is counted by acquiring GPS data sent by the GPS device in the vehicle, and the duration of the number of vehicles exceeding the preset number threshold and the number of vehicles exceeding the preset number threshold is longer than the preset duration.
  • the duration is set, it is considered that there is a traffic jam or illegally gathered vehicles, etc., and a corresponding alarm message is issued in time to facilitate people to understand the situation early and to respond accordingly.
  • the setting of the electronic fence is used to Car monitoring is simple, convenient, efficient and fast, which can greatly improve the efficiency of traffic monitoring and ensure the real-time and timeliness of alarms.
  • the above mainly describes a traffic monitoring alarm method, and a traffic monitoring alarm device will be described in detail below.
  • the traffic monitoring alarm device includes:
  • the vehicle number counting module 401 is configured to receive GPS data sent by a GPS device in the vehicle, and count the first number of vehicles in the preset electronic fence according to the received GPS data;
  • a vehicle number determining module 402 configured to determine whether the first number of vehicles is greater than a first preset number threshold
  • a duration obtaining module 403, configured to obtain a duration when the number of the first vehicles is greater than the threshold of the first preset number if the number of the first vehicles is greater than the threshold of the first preset number;
  • a duration determination module 404 configured to determine whether the duration is greater than a first preset duration
  • An alarm message sending module 405 is configured to send an alarm message if the duration is greater than the first preset duration.
  • the traffic monitoring and alarm device further includes:
  • the electronic fence setting module is used for collecting historical GPS data of each vehicle, and performing big data analysis on the historical GPS data to determine a traffic section with a preset number of accidents greater than a preset number of thresholds, and electronically setting the traffic section
  • the fence is used as the preset electronic fence.
  • the vehicle quantity statistics module 401 includes:
  • a GPS data receiving unit configured to receive GPS data sent by a GPS device in a vehicle, where the GPS data includes vehicle identification information and geographic location information of the vehicle;
  • the number-of-vehicles counting unit is configured to count the number of first vehicles of the same type in the preset electronic fence according to the received model identification information and geographic location information of the vehicles.
  • the traffic monitoring and alarm device further includes:
  • An alarm message storage module configured to associate the alarm message with the preset electronic fence to a specified alarm list
  • a query request receiving module configured to obtain a query position corresponding to the request when a query alarm message request is received
  • the query result feedback module is configured to query the alarm message required for the request from the alarm list according to the query position, and feedback the alarm message required for the request to the requester.
  • the traffic monitoring and alarm device further includes:
  • a vehicle number detection module configured to detect the number of second vehicles in the preset electronic fence
  • An alarm message canceling module is configured to cancel when the number of the second vehicles is less than a second preset number threshold and the duration of the second vehicle number is less than the second preset number threshold is greater than a second preset duration. The alarm message.
  • FIG. 5 is a schematic diagram of a terminal device according to an embodiment of the present application.
  • the terminal device 5 of this embodiment includes a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50, such as a traffic monitoring alarm program.
  • the processor 50 executes the computer program 52, the steps in the embodiments of the foregoing traffic monitoring alarm methods are implemented, for example, steps S101 to S105 shown in FIG. 1.
  • the processor 50 executes the computer program 52
  • the functions of each module / unit in the foregoing device embodiments are implemented, for example, the functions of modules 401 to 405 shown in FIG. 4.
  • the computer program 52 may be divided into one or more modules / units, and the one or more modules / units are stored in the memory 51 and executed by the processor 50 to complete This application.
  • the one or more modules / units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program 52 in the terminal device 5.
  • the computer program 52 may be divided into a vehicle number statistics module, a vehicle number judgment module, a duration acquisition module, a duration judgment module, and an alarm message sending module.
  • the specific functions of each module are as follows:
  • the vehicle number counting module is configured to receive GPS data sent by a GPS device in the vehicle, and count the first number of vehicles in a preset electronic fence according to the received GPS data;
  • a vehicle number determining module configured to determine whether the first number of vehicles is greater than a first preset number threshold
  • a duration obtaining module configured to obtain a duration when the number of the first vehicles is greater than the threshold of the first preset number if the number of the first vehicles is greater than the threshold of the first preset number;
  • a duration determination module for determining whether the duration is greater than a first preset duration
  • An alarm message sending module is configured to send an alarm message if the duration is greater than the first preset duration.
  • the terminal device 5 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the terminal device may include, but is not limited to, a processor 50 and a memory 51.
  • FIG. 5 is only an example of the terminal device 5, and does not constitute a limitation on the terminal device 5. It may include more or fewer components than shown in the figure, or combine some components or different components.
  • the terminal device may further include an input / output device, a network access device, a bus, and the like.
  • the processor 50 may be a central processing unit (Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), and application-specific integrated circuits (Applications) Specific Integrated Circuit (ASIC), off-the-shelf Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • CPU Central Processing Unit
  • DSP digital signal processor
  • ASIC application-specific integrated circuits
  • FPGA off-the-shelf Programmable Gate Array
  • a general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the memory 51 may be an internal storage unit of the terminal device 5, such as a hard disk or a memory of the terminal device 5.
  • the memory 51 may also be an external storage device of the terminal device 5, such as a plug-in hard disk, a smart media card (SMC), and a secure digital (SD) provided on the terminal device 5.
  • SMC smart media card
  • SD secure digital
  • the memory 51 may also include both an internal storage unit of the terminal device 5 and an external storage device.
  • the memory 51 is configured to store the computer program and other programs and data required by the terminal device.
  • the memory 51 may also be used to temporarily store data that has been output or is to be output.
  • modules, units, and / or method steps of the embodiments described in connection with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, which may be electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
  • the integrated unit When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, this application implements all or part of the processes in the method of the above embodiment, and can also be completed by a computer program instructing related hardware.
  • the computer program can be stored in a computer-readable storage medium.
  • the computer When the program is executed by a processor, the steps of the foregoing method embodiments can be implemented.
  • the computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file, or some intermediate form.
  • the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signals, telecommunication signals, and software distribution media.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • electric carrier signals telecommunication signals
  • software distribution media any entity or device capable of carrying the computer program code
  • a recording medium a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signals, telecommunication signals, and software distribution media.

Abstract

A traffic monitoring and alerting method, comprising: receiving GPS data sent by a GPS device in a vehicle, and calculating, according to the received GPS data, a first vehicle number inside a preset electric fence (S101); determining whether the first vehicle number is greater than a first preset number threshold (S102); if the first vehicle number is greater than the first preset number threshold, acquiring a duration during which the first vehicle number is greater than the first preset number threshold (S103); determining whether the duration is greater than a first preset duration (S104); if the duration is greater than the first preset duration, issuing an alert message (S105). The method can improve traffic monitoring efficiency and enable timely alerts.

Description

一种交通监测报警方法、装置、终端设备及存储介质Traffic monitoring alarm method, device, terminal equipment and storage medium 技术领域Technical field
本申请涉及交通技术领域,尤其涉及一种交通监测报警方法、装置、终端设备及存储介质。The present application relates to the field of transportation technology, and in particular, to a method, a device, a terminal device, and a storage medium for traffic monitoring and alarming.
背景技术Background technique
日常生活中,堵车、车辆非法聚集等事故的发生一直是让政府和市民非常头疼的事情,堵车、车辆非法聚集等事故的发生容易造成交通拥堵,从而给人们的出行带来了极大的不便,因此,如何监测交通状况以及时发出相应报警成为本领域技术人员亟待解决的问题。In daily life, the occurrence of accidents such as traffic jams and illegal gathering of vehicles has always been a headache for the government and citizens. The occurrence of accidents such as traffic jams and illegal gathering of vehicles is prone to cause traffic congestion, which has brought great inconvenience to people's travel. Therefore, how to monitor the traffic conditions and issue corresponding alarms in a timely manner has become an urgent problem for those skilled in the art.
技术问题technical problem
本申请实施例提供了一种交通监测报警方法、装置、终端设备及存储介质,能够实现交通状况的实时监测并及时发出报警消息,可以极大地提高交通监测效率,并确保报警的及时性。The embodiments of the present application provide a traffic monitoring and alarming method, device, terminal device and storage medium, which can realize real-time monitoring of traffic conditions and promptly send out alarm messages, which can greatly improve the efficiency of traffic monitoring and ensure the timeliness of alarms.
技术解决方案Technical solutions
本申请实施例的第一方面,提供了一种交通监测报警方法,包括:A first aspect of the embodiments of the present application provides a traffic monitoring and alarm method, including:
接收车辆中GPS装置发送的GPS数据,并根据所接收到的GPS数据统计预设电子围栏中的第一车辆数量;Receiving GPS data sent by a GPS device in a vehicle, and counting the number of first vehicles in a preset electronic fence according to the received GPS data;
判断所述第一车辆数量是否大于第一预设数量阈值;Determining whether the number of the first vehicles is greater than a first preset number threshold;
若所述第一车辆数量大于所述第一预设数量阈值,获取所述第一车辆数量大于所述第一预设数量阈值的存续时长;If the first number of vehicles is greater than the first preset number threshold, obtaining a duration of time when the first number of vehicles is greater than the first preset number threshold;
判断所述存续时长是否大于第一预设时长;Determining whether the duration is greater than a first preset duration;
若所述存续时长大于所述第一预设时长,则发出报警消息。If the duration is greater than the first preset duration, an alarm message is issued.
进一步地,在接收车辆中GPS装置发送的GPS数据,并根据所接收到的GPS数据统计预设电子围栏中的第一车辆数量之前,包括:Further, before receiving GPS data sent by a GPS device in a vehicle and counting the number of first vehicles in a preset electronic fence according to the received GPS data, the method includes:
采集各车辆的历史GPS数据,对所述历史GPS数据进行大数据分析,以确定预设事故发生次数大于预设次数阈值的交通路段,并为所述交通路段设置电子围栏,以作为所述预设电子围栏。Collect historical GPS data of each vehicle, perform big data analysis on the historical GPS data to determine a traffic section where the preset number of accidents is greater than a preset number of thresholds, and set an electronic fence for the traffic section as the preliminary Set up electronic fences.
优选地,所述接收车辆中GPS装置发送的GPS数据,并根据所接收到的GPS数据统计预设电子围栏中的第一车辆数量,包括:Preferably, the receiving GPS data sent by a GPS device in a vehicle and counting the number of first vehicles in a preset electronic fence according to the received GPS data includes:
接收车辆中GPS装置发送的GPS数据,所述GPS数据包括车型标识信息和车辆所在的地理位置信息;Receiving GPS data sent by a GPS device in a vehicle, where the GPS data includes model identification information and geographic location information of the vehicle;
根据所接收到的车型标识信息和车辆所在的地理位置信息统计所述预设电子围栏中同种车型的第一车辆数量。The first vehicle number of the same vehicle type in the preset electronic fence is counted according to the received vehicle type identification information and the geographic location information of the vehicle.
可选地,在发出报警消息之后,还包括:Optionally, after the alarm message is sent, the method further includes:
将所述报警消息和所述预设电子围栏关联存储至指定的报警列表;Associate the alarm message with the preset electronic fence to a specified alarm list;
当接收到查询报警消息的请求时,获取所述请求所对应的查询位置;When a request for querying the alarm message is received, obtaining a query position corresponding to the request;
根据所述查询位置从所述报警列表中查询所述请求所需的报警消息,并将所述请求所需的报警消息反馈给请求方。Query the alarm message required for the request from the alarm list according to the query location, and feed back the alarm message required for the request to the requester.
进一步地,在发出报警消息之后,还包括:Further, after the alarm message is issued, it further includes:
检测所述预设电子围栏中的第二车辆数量;Detecting the number of second vehicles in the preset electronic fence;
当所述第二车辆数量小于第二预设数量阈值,且所述第二车辆数量小于所述第二预设数量阈值的存续时长大于第二预设时长时,撤销所述报警消息。When the number of the second vehicles is less than a second preset number threshold and the duration of the second vehicle number is less than the second preset number threshold, the alarm message is cancelled.
本申请实施例的第二方面,提供了一种交通监测报警装置,包括:According to a second aspect of the embodiments of the present application, a traffic monitoring and alarm device is provided, including:
车辆数量统计模块,用于接收车辆中GPS装置发送的GPS数据,并根据所接收到的GPS数据统计预设电子围栏中的第一车辆数量;The vehicle number counting module is configured to receive GPS data sent by a GPS device in the vehicle, and count the first number of vehicles in a preset electronic fence according to the received GPS data;
车辆数量判断模块,用于判断所述第一车辆数量是否大于第一预设数量阈值;A vehicle number determining module, configured to determine whether the first number of vehicles is greater than a first preset number threshold;
存续时长获取模块,用于若所述第一车辆数量大于所述第一预设数量阈值,获取所述第一车辆数量大于所述第一预设数量阈值的存续时长;A duration obtaining module, configured to obtain a duration when the number of the first vehicles is greater than the threshold of the first preset number if the number of the first vehicles is greater than the threshold of the first preset number;
存续时长判断模块,用于判断所述存续时长是否大于第一预设时长;A duration determination module for determining whether the duration is greater than a first preset duration;
报警消息发送模块,用于若所述存续时长大于所述第一预设时长,则发出报警消息。An alarm message sending module is configured to send an alarm message if the duration is greater than the first preset duration.
进一步地,所述交通监测报警装置,还包括:Further, the traffic monitoring and alarm device further includes:
电子围栏设置模块,用于采集各车辆的历史GPS数据,对所述历史GPS数据进行大数据分析,以确定预设事故发生次数大于预设次数阈值的交通路段,并为所述交通路段设置电子围栏,以作为所述预设电子围栏。The electronic fence setting module is used for collecting historical GPS data of each vehicle, and performing big data analysis on the historical GPS data to determine a traffic section with a preset number of accidents greater than a preset number of thresholds, and electronically setting the traffic section The fence is used as the preset electronic fence.
优选地,所述车辆数量统计模块,包括:Preferably, the vehicle quantity statistics module includes:
GPS数据接收单元,用于接收车辆中GPS装置发送的GPS数据,所述GPS数据包括车型标识信息和车辆所在的地理位置信息;A GPS data receiving unit, configured to receive GPS data sent by a GPS device in a vehicle, where the GPS data includes vehicle identification information and geographic location information of the vehicle;
车辆数量统计单元,用于根据所接收到的车型标识信息和车辆所在的地理位置信息统计所述预设电子围栏中同种车型的第一车辆数量。The number-of-vehicles counting unit is configured to count the number of first vehicles of the same type in the preset electronic fence according to the received model identification information and geographic location information of the vehicles.
本申请实施例的第三方面,提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如前述第一方面所述交通监测报警方法的步骤。According to a third aspect of the embodiments of the present application, a terminal device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program Realize the steps of the traffic monitoring and alarming method as described in the first aspect.
本申请实施例的第四方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如前述第一方面所述交通监测报警方法的步骤。According to a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the traffic monitoring according to the foregoing first aspect is implemented. Steps of the alarm method.
有益效果Beneficial effect
从以上技术方案可以看出,本申请实施例具有以下优点:It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
本申请实施例中,通过获取车辆中GPS装置发送的GPS数据来统计预设电子围栏中的车辆数量,并在车辆数量超过预设数量阈值,且车辆数量超过预设数量阈值的存续时长大于预设时长时,则认为存在堵车或者车辆非法聚集等情况,并及时发出相应的报警消息,以方便人们及早了解情况,并及时做出对应处理,另外,本申请实施例中,通过电子围栏的设置来进行车辆监控,具有简单、方便、高效、快捷的特点,可极大地提高交通监测效率,并确保报警的实时性和及时性。In the embodiment of the present application, the number of vehicles in the preset electronic fence is counted by acquiring GPS data sent by the GPS device in the vehicle, and the duration of the number of vehicles exceeding the preset number threshold and the number of vehicles exceeding the preset number threshold is longer than the preset duration. When the duration is set, it is considered that there is a traffic jam or an illegal gathering of vehicles, etc., and a corresponding alarm message is issued in time to facilitate people to understand the situation early and to respond accordingly. In addition, in the embodiment of the present application, the setting of the electronic fence is adopted. Car monitoring is simple, convenient, efficient and fast. It can greatly improve the efficiency of traffic monitoring and ensure the real-time and timeliness of alarms.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only for the present application. For some embodiments, for those of ordinary skill in the art, other drawings can be obtained according to these drawings without paying creative labor.
图1为本申请实施例提供的一种交通监测报警方法的方法流程图;FIG. 1 is a method flowchart of a traffic monitoring and alarm method according to an embodiment of the present application;
图2为本申请实施例中交通监测报警方法在一个应用场景下的流程示意图;2 is a schematic flowchart of a traffic monitoring and alarm method in an application scenario according to an embodiment of the present application;
图3为本申请实施例中交通监测报警方法在一个应用场景下查询报警消息的流程示意图;FIG. 3 is a schematic flowchart of querying an alarm message in an application scenario of a traffic monitoring alarm method according to an embodiment of the present application; FIG.
图4为本申请实施例提供的一种交通监测报警装置的结构示意图;4 is a schematic structural diagram of a traffic monitoring and alarm device according to an embodiment of the present application;
图5为本申请实施例提供的一种终端设备的示意图。FIG. 5 is a schematic diagram of a terminal device according to an embodiment of the present application.
本发明的实施方式Embodiments of the invention
本申请实施例提供了一种交通监测报警方法、装置、终端设备及存储介质,用于实现交通状况的实时监测并及时发出报警消息,可以极大地提高交通监测效率,并确保了报警的及时性。The embodiments of the present application provide a traffic monitoring alarm method, device, terminal device, and storage medium, which are used to implement real-time monitoring of traffic conditions and send alarm messages in time, which can greatly improve the efficiency of traffic monitoring and ensure the timeliness of alarms .
为使得本申请的申请目的、特征、优点能够更加的明显和易懂,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,下面所描述的实施例仅仅是本申请一部分实施例,而非全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。In order to make the application purpose, features, and advantages of this application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present application. Obviously, the following The described embodiments are only a part of the embodiments of the application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
请参阅图1,本申请实施例提供了一种交通监测报警方法,所述交通监测报警方法,包括:Referring to FIG. 1, an embodiment of the present application provides a traffic monitoring and alarm method. The traffic monitoring and alarm method includes:
步骤S101、接收车辆中GPS装置发送的GPS数据,并根据所接收到的GPS数据统计预设电子围栏中的第一车辆数量;Step S101: Receive GPS data sent by a GPS device in a vehicle, and count the number of first vehicles in a preset electronic fence according to the received GPS data;
本申请实施例的执行主体可以是终端设备或者服务器,优选地,本申请实施例的执行主体为一服务器,如云端服务器平台。The execution subject of the embodiment of the present application may be a terminal device or a server. Preferably, the execution subject of the embodiment of the present application is a server, such as a cloud server platform.
本申请实施例中,车辆上均安装有相应的GPS装置,各GPS装置均与服务器通信连接,以实时向服务器发送各车辆当前的GPS数据,从而使得服务器可根据所接收到的各车辆的GPS数据来判断各车辆的当前状态,如确定各车辆当前所在的位置信息,进而可根据各车辆当前所在的位置信息统计出预设电子围栏中的车辆数量。In the embodiment of the present application, a vehicle is equipped with a corresponding GPS device, and each GPS device is communicatively connected to the server to send the current GPS data of each vehicle to the server in real time, so that the server can receive the GPS of each vehicle according to the received GPS. Data to determine the current state of each vehicle, such as determining the current location information of each vehicle, and then counting the number of vehicles in the preset electronic fence according to the current location information of each vehicle.
进一步地,本申请实施例中,在接收车辆中GPS装置发送的GPS数据,并根据所接收到的GPS数据统计预设电子围栏中的第一车辆数量之前,可以包括:Further, in the embodiment of the present application, before receiving GPS data sent by a GPS device in a vehicle and counting the number of first vehicles in a preset electronic fence according to the received GPS data, the method may include:
采集各车辆的历史GPS数据,对所述历史GPS数据进行大数据分析,以确定预设事故发生次数大于预设次数阈值的交通路段,并为所述交通路段设置电子围栏,以作为所述预设电子围栏。Collect historical GPS data of each vehicle, perform big data analysis on the historical GPS data to determine a traffic section where the preset number of accidents is greater than a preset number of thresholds, and set an electronic fence for the traffic section as the preliminary Set up electronic fences.
可以理解的是,本申请实施例中,可对各车辆的GPS装置发送的历史GPS数据进行大数据分析,以此确定出经常发生预设事故的交通路段,如经常发生堵车事故的交通路段,或者经常出现车辆非法聚集等其他类似事故的交通路段等等,并为这些交通路段设定相应的电子围栏,以通过电子围栏来划定检测区域,以达到简单、高效、方便、快捷的检测目的,同时在检测过程中还可根据具体路况灵活调整电子围栏,以调整检测区域,从而合理设置检测区域,减少不必要区域检测的资源消耗,实现资源利用的高效化、合理化。It can be understood that, in the embodiment of the present application, historical data of GPS data sent by the GPS device of each vehicle may be analyzed by big data, so as to determine a traffic section where a preset accident often occurs, such as a traffic section where a traffic jam often occurs. Or there are often similar traffic accidents such as illegal gathering of vehicles, etc., and corresponding electronic fences are set up for these traffic sections to define the detection area through electronic fences to achieve simple, efficient, convenient and fast detection purposes. At the same time, during the detection process, the electronic fence can also be flexibly adjusted according to the specific road conditions to adjust the detection area, so as to reasonably set the detection area, reduce the consumption of resources for unnecessary area detection, and achieve efficient and rational use of resources.
步骤S102、判断所述第一车辆数量是否大于第一预设数量阈值;Step S102: Determine whether the number of the first vehicles is greater than a first preset number threshold;
在此,所述第一预设数量阈值是指所述预设电子围栏中的车辆要保证正常、顺畅通行所能具有的最大车辆数,或者确定所述电子围栏中存在车辆非法聚集的最小车辆数,其中,所述第一预设数量阈值可根据所述预设电子围栏的具体状况,如所述预设电子围栏的大小,以及所述预设电子围栏中需检测的报警事故进行设定。Here, the first preset number threshold refers to the maximum number of vehicles that the preset electronic fence can ensure normal and smooth traffic, or it is determined that the smallest vehicle in the electronic fence has illegally gathered vehicles. The threshold value of the first preset number can be set according to the specific conditions of the preset electronic fence, such as the size of the preset electronic fence, and the alarm accidents to be detected in the preset electronic fence. .
本申请实施例中,在获取所述预设电子围栏中的第一车辆数量后,即可将所获取到的第一车辆数量与所述第一预设数量阈值进行比较,以确定出所述预设电子围栏中是否存在预设事故,如是否出现堵车情况,或者是否出现车辆非法聚集情况等。In the embodiment of the present application, after obtaining the first number of vehicles in the preset electronic fence, the obtained number of first vehicles may be compared with the first preset number threshold to determine the Whether there is a preset accident in the preset electronic fence, such as whether there is a traffic jam, or if there is an illegal gathering of vehicles.
步骤S103、若所述第一车辆数量大于所述第一预设数量阈值,则获取所述第一车辆数量大于所述第一预设数量阈值的存续时长;Step S103: If the number of the first vehicles is greater than the first preset number threshold, obtain a duration of the first vehicle number greater than the first preset number threshold;
需要说明的是,当某一交通路段中出现红绿灯情况时,易可能导致所述预设电子围栏中的第一车辆数量达到或者超过所述第一数量阈值,从而极可能被误认为是堵车或者车辆非法聚集,因而,为避免造成误判,本申请实施例中,在确定所述第一车辆数量大于所述第一预设数量阈值后,则可进一步获取所述第一车辆数量大于所述第一预设数量阈值的存续时长,以根据所述存续时长进一步判断所述预设电子围栏中的车辆状况。It should be noted that, when a traffic light situation occurs in a certain traffic section, it may easily cause the number of first vehicles in the preset electronic fence to reach or exceed the first number threshold, and is therefore likely to be mistaken for a traffic jam or Vehicles are illegally gathered. Therefore, in order to avoid misjudgment, in the embodiment of the present application, after determining that the number of the first vehicles is greater than the first preset number threshold, it may be further obtained that the number of the first vehicles is greater than the The duration of the first preset number of thresholds is used to further determine the condition of the vehicle in the preset electronic fence according to the duration of the duration.
步骤S104、判断所述存续时长是否大于第一预设时长;Step S104: Determine whether the duration is greater than a first preset duration;
可以理解的是,本申请实施例中,所述第一预设时长可在设定具体的预设电子围栏时确定,如根据所述预设电子围栏中或者附近的红绿灯时长,设置所述第一预设时长,例如将所述第一预设时长设置为大于所述预设电子围栏中或者附近具有最长时长的红灯的时长值,或者将所述第一预设时长设置为大于或者等于所述预设电子围栏中或者附近所有红灯的时长之和的时长值。因而,在获取所述预设电子围栏中的第一车辆数量大于所述第一预设数量阈值的存续时长后,即可判断所述存续时长是否大于第一预设时长,若所述存续时长小于或者等于所述第一预设时长的话,则可以认为所述预设电子围栏中仅仅只是出现的红灯情况,而并未出现需要报警的堵车或者车辆非法聚集等情况;而若所述存续时长大于所述第一预设时长的话,则执行下述步骤S105。It can be understood that, in the embodiment of the present application, the first preset duration may be determined when a specific preset electronic fence is set, such as setting the first preset duration according to a duration of a traffic light in or near the preset electronic fence. A preset duration, for example, the first preset duration is set to be greater than a duration value of a red light having the longest duration in or near the preset electronic fence, or the first preset duration is set to be greater than or A duration value equal to the sum of the durations of all the red lights in or near the preset electronic fence. Therefore, after obtaining the duration of the first number of vehicles in the preset electronic fence that is greater than the first preset number threshold, it can be determined whether the duration of the duration is greater than the first preset duration. If it is less than or equal to the first preset duration, it can be considered that the preset electronic fence is only a red light condition, and there is no traffic jam or illegal gathering of vehicles that requires an alarm; and if the persistence If the duration is greater than the first preset duration, the following step S105 is performed.
步骤S105、若所述存续时长大于所述第一预设时长,则发出报警消息。Step S105: If the duration is greater than the first preset duration, an alarm message is issued.
本申请实施例中,当检测到所述预设电子围栏中的第一车辆数量大于所述第一预设数量阈值,且大于所述第一预设数量阈值的存续时长超过了设定的第一预设时长时,则可直接认为所述预设电子围栏中出现了堵车或者车辆非法聚集等其他类似事故,而需要进行相应的报警,来提醒相关人员进行疏通或者处理,并需要告知相关用户该交通路段的情况,以方便用户及时规划其他出行路线,从而避免给用户的出行造成不便。In the embodiment of the present application, when it is detected that the number of the first vehicles in the preset electronic fence is greater than the first preset number threshold, and the duration of time greater than the first preset number threshold exceeds the set first For a preset duration, it can be directly considered that other similar accidents such as traffic jams or illegal vehicle gathering occurred in the preset electronic fence, and corresponding alarms need to be issued to remind relevant personnel to unblock or deal with, and to inform relevant users The situation of the traffic section is convenient for the user to plan other travel routes in time, thereby avoiding inconvenience to the user's travel.
为便于理解,根据图1所描述的实施例,下面以一个实际应用场景对本申请实施例中的一种交通监测报警方法进行描述:To facilitate understanding, according to the embodiment described in FIG. 1, a traffic monitoring and alarm method in an embodiment of the present application is described below with an actual application scenario:
请参阅图2,图2示出了本申请实施例中交通监测报警方法进行车辆非法聚集报警的流程示意图,该场景下,所述交通监测报警方法包括步骤S201、步骤S202、步骤S203、步骤S204、步骤S205和步骤S206。Please refer to FIG. 2. FIG. 2 shows a schematic flow chart of an illegal vehicle gathering alarm performed by a traffic monitoring alarm method in an embodiment of the present application. In this scenario, the traffic monitoring alarm method includes steps S201, S202, S203, and S204. Step S205 and step S206.
其中,步骤S203、判断所述第一车辆数量是否大于第一预设数量阈值与上述步骤S102相似;步骤S204、若所述第一车辆数量大于所述第一预设数量阈值,则获取所述第一车辆数量大于所述第一预设数量阈值的存续时长与上述步骤S103相似;步骤S205、判断所述存续时长是否大于第一预设时长与上述步骤S104相似;步骤S206、若所述存续时长大于所述第一预设时长,则发出报警消息与上述步骤S105相似,为简明起见,在此不再赘述。In step S203, determining whether the number of first vehicles is greater than a first preset number threshold is similar to the above step S102; step S204, if the number of first vehicles is greater than the first preset number threshold, obtaining the The duration of the first vehicle number greater than the first preset number threshold is similar to the above step S103; step S205, determining whether the duration is greater than the first preset duration is similar to the above step S104; step S206, if the duration If the duration is longer than the first preset duration, the alarm message is similar to the above-mentioned step S105, and for the sake of brevity, it will not be repeated here.
需要说明的是,因车辆非法聚集主要发生于同种车型之间,如发生于出租车之间,或者发生于公交车之间等等,因而,当所述交通监测报警方法应用于车辆非法聚集的报警时,步骤S204中的所述第一预设数量阈值可为所述预设电子围栏中同种车型所允许存在的最大数量值,如所述预设电子围栏中出租车所允许存在的最大数量值为30辆,或者公交车所允许存在的最大数量值为40辆等等。It should be noted that, because the illegal gathering of vehicles mainly occurs between the same types of vehicles, such as between taxis, or between buses, etc., when the traffic monitoring and alarm method is applied to illegal gathering of vehicles When the alarm is triggered, the first preset number threshold in step S204 may be the maximum number allowed for the same type of vehicle in the preset electronic fence, such as that permitted by a taxi in the preset electronic fence. The maximum number is 30, or the maximum number of buses allowed is 40, and so on.
步骤S201、接收车辆中GPS装置发送的GPS数据,所述GPS数据包括车型标识信息和车辆所在的地理位置信息;Step S201: Receive GPS data sent by a GPS device in a vehicle, where the GPS data includes model identification information and geographic location information of the vehicle;
步骤S202、根据所接收到的车型标识信息和车辆所在的地理位置信息统计所述预设电子围栏中同种车型的第一车辆数量。Step S202: Count the first number of vehicles of the same type in the preset electronic fence according to the received model identification information and geographic location information of the vehicle.
对于上述步骤S201和步骤S202,可以理解的是,本申请实施例中,在车辆上安装相应GPS装置时,可在GPS装置中设置与所安装车辆对应的车型标识信息,如可在安装于出租车上的GPS装置中设置与出租车对应的车型标识信息T,可在安装于公交车上的GPS装置中设置与公交车对应的车型标识信息B等等,因而当GPS装置在向服务器发送该车辆的GPS数据时,该GPS数据中即可包含该车辆的车型标识信息,同时该GPS数据中还可包含该车辆当前所在的地理位置信息,从而使得服务器可根据各车辆当前所在的地理位置信息以及各车辆的车型标识信息,统计出所述预设电子围栏中的各车型车辆的数量,进而得到所述预设电子围栏中同种车型的车辆数量,如得到所述预设电子围栏中出租车的车辆数量,或者得到所述预设电子围栏中公交车的车辆数量等等。With regard to the above steps S201 and S202, it can be understood that, in the embodiment of the present application, when a corresponding GPS device is installed on a vehicle, model identification information corresponding to the installed vehicle may be set in the GPS device. The vehicle's GPS device sets the vehicle identification information T corresponding to the taxi. The GPS device installed on the bus can set the vehicle identification information B corresponding to the bus, etc., so when the GPS device is sending this to the server, When the vehicle's GPS data, the GPS data can include the vehicle's model identification information, and the GPS data can also include the current geographic location information of the vehicle, so that the server can And the model identification information of each vehicle, the number of vehicles of each model in the preset electronic fence is counted, and then the number of vehicles of the same model in the preset electronic fence is obtained, and if the preset electronic fence is rented out The number of vehicles of the vehicle, or the number of vehicles of the bus in the preset electronic fence.
在此,服务器在得到所述预设电子围栏中同种车型的车辆数量后,则可判断所述预设电子围栏中同种车型的车辆数量是否大于预设数量阈值,如判断所述预设电子围栏中出租车的车辆数量是否大于30辆,若所述预设电子围栏中出租车的车辆数量大于30辆的话,则进一步判断出租车的车辆数量大于30辆的存续时长是否大于预设时长,如出租车的车辆数量大于30辆的存续时长是否超过5分钟,若出租车的车辆数量大于30辆的存续时长超过5分钟的话,则可以认定所述预设电子围栏中存在车辆非法聚集的行为,并可及时向相关部门,如向相关政府部门发送所述预设电子围栏所对应的区域中出现了车辆非法聚集行为的报警消息,以使得相关政府部门可及时对该区域中车辆非法聚集行为进行管理、控制等,同时,服务器还可向其他相关用户发送所述预设电子围栏所对应的区域中出现了车辆非法聚集情况的预警消息,如向将要行驶经过该区域的车辆发送预警消息,以方便车辆上的用户及早了解车辆非法聚集情况,并及时规划其他行驶路线,避免给人们的出行带来不便。Here, after obtaining the number of vehicles of the same type in the preset electronic fence, the server can determine whether the number of vehicles of the same type in the preset electronic fence is greater than a preset number threshold, such as determining the preset Whether the number of taxis in the electronic fence is greater than 30. If the number of taxis in the preset electronic fence is greater than 30, it is further judged whether the number of taxis greater than 30 is greater than the preset duration. For example, if the number of taxis exceeds 30 minutes and the duration exceeds 5 minutes, if the number of taxis exceeds 30 minutes and the duration exceeds 5 minutes, it can be determined that there are illegally gathered vehicles in the preset electronic fence. Behavior, and can promptly send to the relevant departments, such as the relevant government departments, an alert message that an illegal vehicle gathering behavior has occurred in the area corresponding to the preset electronic fence, so that the relevant government departments can timely illegally gather vehicles in the area Behavior management, control, etc. At the same time, the server can also send the preset electronic fence to other relevant users Early warning messages of illegal gathering of vehicles appeared in the corresponding area. For example, early warning messages were sent to vehicles going through the area to facilitate users on vehicles to learn about illegal gathering of vehicles early, and to plan other driving routes in time to avoid giving people Inconvenience.
进一步地,如图3所示,为了便于对报警消息的管理,本申请实施例中,在发出报警消息之后,还包括:Further, as shown in FIG. 3, in order to facilitate management of the alarm message, in the embodiment of the present application, after the alarm message is sent, it further includes:
步骤S301、将所述报警消息和所述预设电子围栏关联存储至指定的报警列表;Step S301: Associate the alarm message and the preset electronic fence to a specified alarm list;
步骤S302、当接收到查询报警消息的请求时,获取所述请求所对应的查询位置;Step S302: When a request for querying an alarm message is received, acquiring a query position corresponding to the request;
步骤S303、根据所述查询位置从所述报警列表中查询所述请求所需的报警消息,并将所述请求所需的报警消息反馈给请求方。Step S303: Query the alarm message required for the request from the alarm list according to the query position, and feed back the alarm message required for the request to the requester.
可以理解的是,本申请实施例中,若确定所述预设电子围栏中存在堵车或者车辆非法聚集等其他类似情况而需要报警时,服务器即可将生成的报警消息与所述预设电子围栏关联存储至指定的报警列表,并可以选择按照时间、地点或者按照报警类型对报警列表中的报警消息进行分类、排列,以方便查询。而在服务器接收到查询报警消息的请求时,服务器则可先获取该请求所要查询的查询位置,然后根据该查询位置从报警列表中查找该查询位置中所发生的报警消息,并将所查询到的报警消息反馈给请求方,从而方便用户查询、了解特定区域和/或特定时间内的堵车或者车辆非法聚集等其他类似行为的存在情况。It can be understood that, in the embodiment of the present application, if it is determined that there is a traffic jam or an illegal gathering of vehicles in the preset electronic fence and other similar situations need to be reported, the server may use the generated alarm message with the preset electronic fence. Associated storage to the specified alarm list, and you can choose to sort and arrange the alarm messages in the alarm list according to time, place or according to the type of alarm for easy query. When the server receives the request for querying the alarm message, the server may first obtain the query location to be queried by the request, and then search the alarm list for the alarm message that occurred in the query location according to the query location, and query the The alarm message is fed back to the requester, so that users can query and understand the existence of other similar behaviors such as traffic jams or illegal vehicle gathering in a specific area and / or within a specific time.
进一步地,在发出报警消息之后,还可以包括:检测所述预设电子围栏中的第二车辆数量;当所述第二车辆数量小于第二预设数量阈值,且所述第二车辆数量小于所述第二预设数量阈值的存续时长大于第二预设时长时,撤销所述报警消息。Further, after the alarm message is issued, it may further include: detecting the number of the second vehicles in the preset electronic fence; when the number of the second vehicles is less than a second preset number threshold, and the number of the second vehicles is less than When the duration of the second preset number threshold is greater than the second preset duration, the alarm message is cancelled.
可以理解的是,本申请实施例中,当确定所述预设电子围栏中存在堵车或者车辆非法聚集等其他类似情况而进行报警后,还可实时检测所述预设电子围栏中的车辆数量或者同种车型的车辆数量,以确定所述预设电子围栏中的报警情况是否处理完毕或者是否消失,具体地,当所述预设电子围栏中的车辆数量小于所述第二预设数量阈值时,即当所述预设电子围栏中的车辆数量恢复至正常数量时,即可以认为所述预设电子围栏中的堵车或者车辆非法聚集等其他类似情况已经处理完毕,也就是说,此时所述预设电子围栏中已经不存在堵车或者车辆非法聚集等其他类似情况,因此,针对所述预设电子围栏的报警消息已经失效,此时则可撤销针对所述预设电子围栏的报警消息,如通过发送报警消息解除的通知来撤销所述报警消息,以解除对所述预设电子围栏的报警。It can be understood that, in the embodiment of the present application, when it is determined that there is a traffic jam or illegal vehicle gathering in the preset electronic fence and other similar situations, and an alarm is issued, the number of vehicles in the preset electronic fence or The number of vehicles of the same model to determine whether the alarm condition in the preset electronic fence is processed or disappears, specifically, when the number of vehicles in the preset electronic fence is less than the second preset number threshold That is, when the number of vehicles in the preset electronic fence is restored to a normal number, it can be considered that other similar situations such as traffic jams or illegal vehicle gathering in the preset electronic fence have been dealt with, that is, at this time There are no other similar situations such as traffic jams or illegal gathering of vehicles in the preset electronic fence. Therefore, the alarm message for the preset electronic fence has expired. At this time, the alarm message for the preset electronic fence can be cancelled. The alarm message is cancelled by sending a notification of the alarm message cancellation, so as to release the alarm message to the preset electronic fence. Police.
本申请实施例中,通过获取车辆中GPS装置发送的GPS数据来统计预设电子围栏中的车辆数量,并在车辆数量超过预设数量阈值,且车辆数量超过预设数量阈值的存续时长大于预设时长时,则认为存在堵车或者车辆非法聚集等情况,并及时发出相应报警消息,以方便人们及早了解情况,并及时做出对应处理,另外,本申请实施例中,通过电子围栏的设置来进行车辆监控,具有简单、方便、高效、快捷的特点,可极大地提高交通监测效率,并确保报警的实时性和及时性。In the embodiment of the present application, the number of vehicles in the preset electronic fence is counted by acquiring GPS data sent by the GPS device in the vehicle, and the duration of the number of vehicles exceeding the preset number threshold and the number of vehicles exceeding the preset number threshold is longer than the preset duration. When the duration is set, it is considered that there is a traffic jam or illegally gathered vehicles, etc., and a corresponding alarm message is issued in time to facilitate people to understand the situation early and to respond accordingly. In addition, in the embodiment of the present application, the setting of the electronic fence is used to Car monitoring is simple, convenient, efficient and fast, which can greatly improve the efficiency of traffic monitoring and ensure the real-time and timeliness of alarms.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
上面主要描述了一种交通监测报警方法,下面将对一种交通监测报警装置进行详细描述。The above mainly describes a traffic monitoring alarm method, and a traffic monitoring alarm device will be described in detail below.
如图4所示,本申请实施例提供了一种交通监测报警装置,所述交通监测报警装置,包括:As shown in FIG. 4, an embodiment of the present application provides a traffic monitoring alarm device. The traffic monitoring alarm device includes:
车辆数量统计模块401,用于接收车辆中GPS装置发送的GPS数据,并根据所接收到的GPS数据统计预设电子围栏中的第一车辆数量;The vehicle number counting module 401 is configured to receive GPS data sent by a GPS device in the vehicle, and count the first number of vehicles in the preset electronic fence according to the received GPS data;
车辆数量判断模块402,用于判断所述第一车辆数量是否大于第一预设数量阈值;A vehicle number determining module 402, configured to determine whether the first number of vehicles is greater than a first preset number threshold;
存续时长获取模块403,用于若所述第一车辆数量大于所述第一预设数量阈值,获取所述第一车辆数量大于所述第一预设数量阈值的存续时长;A duration obtaining module 403, configured to obtain a duration when the number of the first vehicles is greater than the threshold of the first preset number if the number of the first vehicles is greater than the threshold of the first preset number;
存续时长判断模块404,用于判断所述存续时长是否大于第一预设时长;A duration determination module 404, configured to determine whether the duration is greater than a first preset duration;
报警消息发送模块405,用于若所述存续时长大于所述第一预设时长,则发出报警消息。An alarm message sending module 405 is configured to send an alarm message if the duration is greater than the first preset duration.
进一步地,所述交通监测报警装置,还包括:Further, the traffic monitoring and alarm device further includes:
电子围栏设置模块,用于采集各车辆的历史GPS数据,对所述历史GPS数据进行大数据分析,以确定预设事故发生次数大于预设次数阈值的交通路段,并为所述交通路段设置电子围栏,以作为所述预设电子围栏。The electronic fence setting module is used for collecting historical GPS data of each vehicle, and performing big data analysis on the historical GPS data to determine a traffic section with a preset number of accidents greater than a preset number of thresholds, and electronically setting the traffic section The fence is used as the preset electronic fence.
优选地,所述车辆数量统计模块401,包括:Preferably, the vehicle quantity statistics module 401 includes:
GPS数据接收单元,用于接收车辆中GPS装置发送的GPS数据,所述GPS数据包括车型标识信息和车辆所在的地理位置信息;A GPS data receiving unit, configured to receive GPS data sent by a GPS device in a vehicle, where the GPS data includes vehicle identification information and geographic location information of the vehicle;
车辆数量统计单元,用于根据所接收到的车型标识信息和车辆所在的地理位置信息统计所述预设电子围栏中同种车型的第一车辆数量。The number-of-vehicles counting unit is configured to count the number of first vehicles of the same type in the preset electronic fence according to the received model identification information and geographic location information of the vehicles.
可选地,所述交通监测报警装置,还包括:Optionally, the traffic monitoring and alarm device further includes:
报警消息存储模块,用于将所述报警消息和所述预设电子围栏关联存储至指定的报警列表;An alarm message storage module, configured to associate the alarm message with the preset electronic fence to a specified alarm list;
查询请求接收模块,用于当接收到查询报警消息的请求时,获取所述请求所对应的查询位置;A query request receiving module, configured to obtain a query position corresponding to the request when a query alarm message request is received;
查询结果反馈模块,用于根据所述查询位置从所述报警列表中查询所述请求所需的报警消息,并将所述请求所需的报警消息反馈给请求方。The query result feedback module is configured to query the alarm message required for the request from the alarm list according to the query position, and feedback the alarm message required for the request to the requester.
进一步地,所述交通监测报警装置,还包括:Further, the traffic monitoring and alarm device further includes:
车辆数量检测模块,用于检测所述预设电子围栏中的第二车辆数量;A vehicle number detection module, configured to detect the number of second vehicles in the preset electronic fence;
报警消息撤销模块,用于当所述第二车辆数量小于第二预设数量阈值,且所述第二车辆数量小于所述第二预设数量阈值的存续时长大于第二预设时长时,撤销所述报警消息。An alarm message canceling module is configured to cancel when the number of the second vehicles is less than a second preset number threshold and the duration of the second vehicle number is less than the second preset number threshold is greater than a second preset duration. The alarm message.
图5是本申请实施例提供的一种终端设备的示意图。如图5所示,该实施例的终端设备5包括:处理器50、存储器51以及存储在所述存储器51中并可在所述处理器50上运行的计算机程序52,例如交通监测报警程序。所述处理器50执行所述计算机程序52时实现上述各个交通监测报警方法实施例中的步骤,例如图1所示的步骤S101至步骤S105。或者,所述处理器50执行所述计算机程序52时实现上述各装置实施例中各模块/单元的功能,例如图4所示的模块401至模块405的功能。FIG. 5 is a schematic diagram of a terminal device according to an embodiment of the present application. As shown in FIG. 5, the terminal device 5 of this embodiment includes a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50, such as a traffic monitoring alarm program. When the processor 50 executes the computer program 52, the steps in the embodiments of the foregoing traffic monitoring alarm methods are implemented, for example, steps S101 to S105 shown in FIG. 1. Alternatively, when the processor 50 executes the computer program 52, the functions of each module / unit in the foregoing device embodiments are implemented, for example, the functions of modules 401 to 405 shown in FIG. 4.
示例性的,所述计算机程序52可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器51中,并由所述处理器50执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序52在所述终端设备5中的执行过程。例如,所述计算机程序52可以被分割成车辆数量统计模块、车辆数量判断模块、存续时长获取模块、存续时长判断模块、报警消息发送模块,各模块具体功能如下:Exemplarily, the computer program 52 may be divided into one or more modules / units, and the one or more modules / units are stored in the memory 51 and executed by the processor 50 to complete This application. The one or more modules / units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program 52 in the terminal device 5. For example, the computer program 52 may be divided into a vehicle number statistics module, a vehicle number judgment module, a duration acquisition module, a duration judgment module, and an alarm message sending module. The specific functions of each module are as follows:
车辆数量统计模块,用于接收车辆中GPS装置发送的GPS数据,并根据所接收到的GPS数据统计预设电子围栏中的第一车辆数量;The vehicle number counting module is configured to receive GPS data sent by a GPS device in the vehicle, and count the first number of vehicles in a preset electronic fence according to the received GPS data;
车辆数量判断模块,用于判断所述第一车辆数量是否大于第一预设数量阈值;A vehicle number determining module, configured to determine whether the first number of vehicles is greater than a first preset number threshold;
存续时长获取模块,用于若所述第一车辆数量大于所述第一预设数量阈值,则获取所述第一车辆数量大于所述第一预设数量阈值的存续时长;A duration obtaining module, configured to obtain a duration when the number of the first vehicles is greater than the threshold of the first preset number if the number of the first vehicles is greater than the threshold of the first preset number;
存续时长判断模块,用于判断所述存续时长是否大于第一预设时长;A duration determination module for determining whether the duration is greater than a first preset duration;
报警消息发送模块,用于若所述存续时长大于所述第一预设时长,则发出报警消息。An alarm message sending module is configured to send an alarm message if the duration is greater than the first preset duration.
所述终端设备5可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述终端设备可包括,但不仅限于,处理器50、存储器51。本领域技术人员可以理解,图5仅仅是终端设备5的示例,并不构成对终端设备5的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述终端设备还可以包括输入输出设备、网络接入设备、总线等。The terminal device 5 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The terminal device may include, but is not limited to, a processor 50 and a memory 51. Those skilled in the art can understand that FIG. 5 is only an example of the terminal device 5, and does not constitute a limitation on the terminal device 5. It may include more or fewer components than shown in the figure, or combine some components or different components. For example, the terminal device may further include an input / output device, a network access device, a bus, and the like.
所述处理器50可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器 (Digital Signal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现成可编程门阵列 (Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 50 may be a central processing unit (Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), and application-specific integrated circuits (Applications) Specific Integrated Circuit (ASIC), off-the-shelf Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
所述存储器51可以是所述终端设备5的内部存储单元,例如终端设备5的硬盘或内存。所述存储器51也可以是所述终端设备5的外部存储设备,例如所述终端设备5上配备的插接式硬盘,智能存储卡(Smart Media Card, SMC),安全数字(Secure Digital, SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器51还可以既包括所述终端设备5的内部存储单元也包括外部存储设备。所述存储器51用于存储所述计算机程序以及所述终端设备所需的其他程序和数据。所述存储器51还可以用于暂时地存储已经输出或者将要输出的数据。The memory 51 may be an internal storage unit of the terminal device 5, such as a hard disk or a memory of the terminal device 5. The memory 51 may also be an external storage device of the terminal device 5, such as a plug-in hard disk, a smart media card (SMC), and a secure digital (SD) provided on the terminal device 5. 1. flash card Card) and so on. Further, the memory 51 may also include both an internal storage unit of the terminal device 5 and an external storage device. The memory 51 is configured to store the computer program and other programs and data required by the terminal device. The memory 51 may also be used to temporarily store data that has been output or is to be output.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments, and are not repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For a part that is not detailed or recorded in an embodiment, reference may be made to related descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各实施例的模块、单元和/或方法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art may realize that the modules, units, and / or method steps of the embodiments described in connection with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, which may be electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, this application implements all or part of the processes in the method of the above embodiment, and can also be completed by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium. The computer When the program is executed by a processor, the steps of the foregoing method embodiments can be implemented. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signals, telecommunication signals, and software distribution media. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdictions. For example, in some jurisdictions, the computer-readable medium Excludes electric carrier signals and telecommunication signals.
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to describe the technical solution of the present application, rather than limiting them. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still apply the foregoing The technical solutions described in the embodiments are modified, or some technical features are equivalently replaced; and these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (10)

  1. 一种交通监测报警方法,其特征在于,包括:A traffic monitoring and alarming method, comprising:
    接收车辆中GPS装置发送的GPS数据,并根据所接收到的GPS数据统计预设电子围栏中的第一车辆数量;Receiving GPS data sent by a GPS device in a vehicle, and counting the number of first vehicles in a preset electronic fence according to the received GPS data;
    判断所述第一车辆数量是否大于第一预设数量阈值;Determining whether the number of the first vehicles is greater than a first preset number threshold;
    若所述第一车辆数量大于所述第一预设数量阈值,则获取所述第一车辆数量大于所述第一预设数量阈值的存续时长;If the first number of vehicles is greater than the first preset number threshold, obtaining a duration of time when the first number of vehicles is greater than the first preset number threshold;
    判断所述存续时长是否大于第一预设时长;Determining whether the duration is greater than a first preset duration;
    若所述存续时长大于所述第一预设时长,则发出报警消息。If the duration is greater than the first preset duration, an alarm message is issued.
  2. 根据权利要求1所述的交通监测报警方法,其特征在于,在接收车辆中GPS装置发送的GPS数据,并根据所接收到的GPS数据统计预设电子围栏中的第一车辆数量之前,包括:The method of claim 1, wherein before receiving GPS data sent by a GPS device in a vehicle and counting the number of first vehicles in a preset electronic fence according to the received GPS data, the method includes:
    采集各车辆的历史GPS数据,对所述历史GPS数据进行大数据分析,以确定预设事故发生次数大于预设次数阈值的交通路段,并为所述交通路段设置电子围栏,以作为所述预设电子围栏。Collect historical GPS data of each vehicle, perform big data analysis on the historical GPS data to determine a traffic section where the preset number of accidents is greater than a preset number of thresholds, and set an electronic fence for the traffic section as the preliminary Set up electronic fences.
  3. 根据权利要求1所述的交通监测报警方法,其特征在于,所述接收车辆中GPS装置发送的GPS数据,并根据所接收到的GPS数据统计预设电子围栏中的第一车辆数量,包括:The method of claim 1, wherein receiving GPS data sent by a GPS device in a vehicle, and counting the number of first vehicles in a preset electronic fence based on the received GPS data, comprising:
    接收车辆中GPS装置发送的GPS数据,所述GPS数据包括车型标识信息和车辆所在的地理位置信息;Receiving GPS data sent by a GPS device in a vehicle, where the GPS data includes model identification information and geographic location information of the vehicle;
    根据所接收到的车型标识信息和车辆所在的地理位置信息统计所述预设电子围栏中同种车型的第一车辆数量。The first vehicle number of the same vehicle type in the preset electronic fence is counted according to the received vehicle type identification information and the geographic location information of the vehicle.
  4. 根据权利要求1所述的交通监测报警方法,其特征在于,在发出报警消息之后,还包括:The traffic monitoring and alarm method according to claim 1, further comprising:
    将所述报警消息和所述预设电子围栏关联存储至指定的报警列表;Associate the alarm message with the preset electronic fence to a specified alarm list;
    当接收到查询报警消息的请求时,获取所述请求所对应的查询位置;When a request for querying the alarm message is received, obtaining a query position corresponding to the request;
    根据所述查询位置从所述报警列表中查询所述请求所需的报警消息,并将所述请求所需的报警消息反馈给请求方。Query the alarm message required for the request from the alarm list according to the query location, and feed back the alarm message required for the request to the requester.
  5. 根据权利要求1至4中任一项所述的交通监测报警方法,其特征在于,在发出报警消息之后,还包括:The traffic monitoring and alarming method according to any one of claims 1 to 4, further comprising:
    检测所述预设电子围栏中的第二车辆数量;Detecting the number of second vehicles in the preset electronic fence;
    当所述第二车辆数量小于第二预设数量阈值,且所述第二车辆数量小于所述第二预设数量阈值的存续时长大于第二预设时长时,撤销所述报警消息。When the number of the second vehicles is less than a second preset number threshold and the duration of the second vehicle number is less than the second preset number threshold, the alarm message is cancelled.
  6. 一种交通监测报警装置,其特征在于,包括:A traffic monitoring and alarming device, comprising:
    车辆数量统计模块,用于接收车辆中GPS装置发送的GPS数据,并根据所接收到的GPS数据统计预设电子围栏中的第一车辆数量;The vehicle number counting module is configured to receive GPS data sent by a GPS device in the vehicle, and count the first number of vehicles in a preset electronic fence according to the received GPS data;
    车辆数量判断模块,用于判断所述第一车辆数量是否大于第一预设数量阈值;A vehicle number determining module, configured to determine whether the first number of vehicles is greater than a first preset number threshold;
    存续时长获取模块,用于若所述第一车辆数量大于所述第一预设数量阈值,则获取所述第一车辆数量大于所述第一预设数量阈值的存续时长;A duration obtaining module, configured to obtain a duration when the number of the first vehicles is greater than the threshold of the first preset number if the number of the first vehicles is greater than the threshold of the first preset number;
    存续时长判断模块,用于判断所述存续时长是否大于第一预设时长;A duration determination module for determining whether the duration is greater than a first preset duration;
    报警消息发送模块,用于若所述存续时长大于所述第一预设时长,则发出报警消息。An alarm message sending module is configured to send an alarm message if the duration is greater than the first preset duration.
  7. 根据权利要求6所述的交通监测报警装置,其特征在于,所述交通监测报警装置,还包括:The traffic monitoring alarm device according to claim 6, wherein the traffic monitoring alarm device further comprises:
    电子围栏设置模块,用于采集各车辆的历史GPS数据,对所述历史GPS数据进行大数据分析,以确定预设事故发生次数大于预设次数阈值的交通路段,并为所述交通路段设置电子围栏,以作为所述预设电子围栏。The electronic fence setting module is used for collecting historical GPS data of each vehicle, and performing big data analysis on the historical GPS data to determine a traffic section with a preset number of accidents greater than a preset number of thresholds, and electronically setting the traffic section The fence is used as the preset electronic fence.
  8. 根据权利要求6所述的交通监测报警装置,其特征在于,所述车辆数量统计模块,包括:The traffic monitoring and alarm device according to claim 6, wherein the vehicle quantity statistics module comprises:
    GPS数据接收单元,用于接收车辆中GPS装置发送的GPS数据,所述GPS数据包括车型标识信息和车辆所在的地理位置信息;A GPS data receiving unit, configured to receive GPS data sent by a GPS device in a vehicle, where the GPS data includes vehicle identification information and geographic location information of the vehicle;
    车辆数量统计单元,用于根据所接收到的车型标识信息和车辆所在的地理位置信息统计所述预设电子围栏中同种车型的第一车辆数量。The number-of-vehicles counting unit is configured to count the number of first vehicles of the same type in the preset electronic fence according to the received model identification information and geographic location information of the vehicles.
  9. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至5中任一项所述交通监测报警方法的步骤。A terminal device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the computer program according to claims 1 to 1 when executing the computer program. The steps of the traffic monitoring alarm method according to any one of 5.
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至5中任一项所述交通监测报警方法的步骤。A computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the traffic monitoring and alarm method according to any one of claims 1 to 5. A step of.
PCT/CN2018/100791 2018-08-16 2018-08-16 Traffic monitoring and alerting method and apparatus, terminal device, and storage medium WO2020034135A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/100791 WO2020034135A1 (en) 2018-08-16 2018-08-16 Traffic monitoring and alerting method and apparatus, terminal device, and storage medium
CN201880001061.6A CN109219838B (en) 2018-08-16 2018-08-16 Traffic monitoring alarm method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/100791 WO2020034135A1 (en) 2018-08-16 2018-08-16 Traffic monitoring and alerting method and apparatus, terminal device, and storage medium

Publications (1)

Publication Number Publication Date
WO2020034135A1 true WO2020034135A1 (en) 2020-02-20

Family

ID=64994861

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/100791 WO2020034135A1 (en) 2018-08-16 2018-08-16 Traffic monitoring and alerting method and apparatus, terminal device, and storage medium

Country Status (2)

Country Link
CN (1) CN109219838B (en)
WO (1) WO2020034135A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112052773A (en) * 2020-08-31 2020-12-08 郑州工程技术学院 Unmanned aerial vehicle traffic dispersion intelligent broadcasting method and device based on image sensing
CN112815885A (en) * 2020-12-30 2021-05-18 广东百年基业水利水电建设有限公司 Method and system for monitoring house wall cracks
CN112907938A (en) * 2021-02-24 2021-06-04 华录智达科技股份有限公司 Urban intelligent bus management and control method and system based on electronic fence
CN113691457A (en) * 2021-08-10 2021-11-23 中国银联股份有限公司 Current limiting control method, device, equipment and storage medium
CN113960394A (en) * 2021-10-15 2022-01-21 北京聚利科技有限公司 Detection method and device for vehicle-mounted unit, detection equipment and readable storage medium
CN114419894A (en) * 2022-01-30 2022-04-29 公安部道路交通安全研究中心 Method and system for setting and monitoring use of parking space in road
CN114743384A (en) * 2022-03-25 2022-07-12 京东方科技集团股份有限公司 Alarm method and device
CN115032329A (en) * 2021-03-08 2022-09-09 博泰车联网科技(上海)股份有限公司 Method and device for monitoring air quality in vehicle, electronic equipment and medium

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111627203B (en) * 2019-02-27 2023-10-31 雄鹏资产管理(上海)有限公司 System management method for traffic trunk road congestion avoidance
US20210082208A1 (en) * 2019-09-13 2021-03-18 Honeywell International Inc. Systems and methods for detecting vehicle or environmental changes from data from automated vehicles
CN111444756B (en) * 2019-11-01 2020-11-20 合肥耀世同辉科技有限公司 Dangerous driving scene identification platform, method and storage medium
CN112530176B (en) * 2020-11-10 2022-03-25 浙江大华系统工程有限公司 Drunk driving early warning method, device, equipment and medium
CN113379989A (en) * 2021-04-20 2021-09-10 东阳市光明电力建设有限公司 Anti-intrusion vehicle monitoring system and method based on power transmission line external source breaking
CN114419907B (en) * 2021-12-29 2023-10-27 联通智网科技股份有限公司 Method, device, terminal equipment and medium for judging accident multiple road sections

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2323115A1 (en) * 2009-11-09 2011-05-18 Hitachi, Ltd. Method and apparatus for predicting traffic jam area
CN103903433A (en) * 2012-12-27 2014-07-02 中兴通讯股份有限公司 Real-time dynamic judgment method and device for road traffic state
CN106971576A (en) * 2017-05-27 2017-07-21 深圳市乃斯网络科技有限公司 Intelligent transportation congestion player method and system
CN107316471A (en) * 2017-07-27 2017-11-03 温州市鹿城区中津先进科技研究院 The traffic induction method analyzed based on urban road traffic monitoring big data
CN108153827A (en) * 2017-12-11 2018-06-12 北京小米移动软件有限公司 Traffic congestion area determination method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101799990A (en) * 2010-02-08 2010-08-11 深圳市同洲电子股份有限公司 Warning method and system for unusual aggregation of vehicles
CN104933860B (en) * 2015-05-20 2017-07-11 重庆大学 Bus traffic congestion delay time at stop Forecasting Methodology based on gps data
US9792814B2 (en) * 2015-12-29 2017-10-17 Ebay Inc. Traffic disruption detection using passive monitoring of vehicle occupant frustration level

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2323115A1 (en) * 2009-11-09 2011-05-18 Hitachi, Ltd. Method and apparatus for predicting traffic jam area
CN103903433A (en) * 2012-12-27 2014-07-02 中兴通讯股份有限公司 Real-time dynamic judgment method and device for road traffic state
CN106971576A (en) * 2017-05-27 2017-07-21 深圳市乃斯网络科技有限公司 Intelligent transportation congestion player method and system
CN107316471A (en) * 2017-07-27 2017-11-03 温州市鹿城区中津先进科技研究院 The traffic induction method analyzed based on urban road traffic monitoring big data
CN108153827A (en) * 2017-12-11 2018-06-12 北京小米移动软件有限公司 Traffic congestion area determination method and device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112052773A (en) * 2020-08-31 2020-12-08 郑州工程技术学院 Unmanned aerial vehicle traffic dispersion intelligent broadcasting method and device based on image sensing
CN112815885A (en) * 2020-12-30 2021-05-18 广东百年基业水利水电建设有限公司 Method and system for monitoring house wall cracks
CN112815885B (en) * 2020-12-30 2023-03-28 广东百年基业水利水电建设有限公司 Method and system for monitoring house wall cracks
CN112907938A (en) * 2021-02-24 2021-06-04 华录智达科技股份有限公司 Urban intelligent bus management and control method and system based on electronic fence
CN115032329A (en) * 2021-03-08 2022-09-09 博泰车联网科技(上海)股份有限公司 Method and device for monitoring air quality in vehicle, electronic equipment and medium
CN113691457A (en) * 2021-08-10 2021-11-23 中国银联股份有限公司 Current limiting control method, device, equipment and storage medium
CN113691457B (en) * 2021-08-10 2023-07-18 中国银联股份有限公司 Current limiting control method, device, equipment and storage medium
CN113960394A (en) * 2021-10-15 2022-01-21 北京聚利科技有限公司 Detection method and device for vehicle-mounted unit, detection equipment and readable storage medium
CN114419894A (en) * 2022-01-30 2022-04-29 公安部道路交通安全研究中心 Method and system for setting and monitoring use of parking space in road
CN114743384A (en) * 2022-03-25 2022-07-12 京东方科技集团股份有限公司 Alarm method and device
CN114743384B (en) * 2022-03-25 2024-03-08 京东方科技集团股份有限公司 Alarm method and device

Also Published As

Publication number Publication date
CN109219838A (en) 2019-01-15
CN109219838B (en) 2022-01-28

Similar Documents

Publication Publication Date Title
WO2020034135A1 (en) Traffic monitoring and alerting method and apparatus, terminal device, and storage medium
EP3965082B1 (en) Vehicle monitoring system and vehicle monitoring method
CN106662454B (en) Warning notice system and warning notice method
CN103077611A (en) Road vehicle recording system with face identification and safety belt detection functions
CN106023626A (en) Traffic congestion prompting method, server and vehicle-mounted device
CN103413438A (en) Vehicle-mounted mobile police service law enforcement platform
CN111064841B (en) Message sending method and device and server
WO2023274071A1 (en) Driving behavior monitoring method and apparatus, electronic device, and storage medium
CN107481528B (en) Vehicle snapshot method and device and terminal equipment
CN113380034B (en) Accident positioning method and apparatus, electronic device, and computer-readable storage medium
CN105235680A (en) Pedestrian avoiding method and system based on cloud computing
CN111462530A (en) Vehicle management method, vehicle management device and electronic equipment
CN113947892A (en) Abnormal parking monitoring method and device, server and readable storage medium
WO2016201867A1 (en) M2m car networking identification method and apparatus
WO2020103064A1 (en) Method, apparatus and terminal device for predicting transportation event
CN110473408A (en) A kind of alarm method and system based on motor-driven vehicle going data
CN107665577B (en) Traffic warning condition processing method and device
CN103325254A (en) Auxiliary traffic trouble causing and escaping monitoring system
CN205405901U (en) Traffic violation detects with monitoring appearance
CN104240510A (en) Urban traffic electronic card port system and detection method thereof
CN210743208U (en) Electronic intelligent traffic supervision system
CN203276573U (en) Traffic hit-and-run auxiliary monitoring system
JP2005293032A (en) Vehicle operation state monitoring system and vehicle operation state monitoring program for this system
CN110473401A (en) A kind of express lane accident alarming method and system based on vehicle-mounted parking warning sign
CN111080984A (en) Anti-cross-supply early warning method, device, equipment and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18930060

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18930060

Country of ref document: EP

Kind code of ref document: A1