Traffic detector real-time detection data compensation method, device, equipment and medium

文档序号:9594 发布日期:2021-09-17 浏览:47次 中文

1. A method for compensating real-time detection data of a traffic detector is characterized by comprising the following steps:

acquiring compensation reference data under the condition that the target traffic detector is determined to have a fault; the compensation reference data comprises preset compensation configuration parameters or historical detection data;

generating target compensation data in real time according to the compensation reference data, and determining the target compensation data as real-time detection data of the target traffic detector;

and sending the real-time detection data to a target traffic control machine so that the target traffic control machine controls target traffic guidance equipment according to the real-time detection data.

2. The method of claim 1, wherein the generating target compensation data in real time according to the preset compensation configuration parameters comprises:

determining target compensation cycle time and target compensation associated data according to the preset compensation configuration parameters;

and generating the target compensation data according to the target compensation cycle time and the target compensation associated data.

3. The method of claim 2, wherein the target compensation correlation data comprises: the number of single compensation targets, the target duration and the target compensation interval;

the generating the target compensation data according to the target compensation cycle time and the target compensation correlation data includes:

under the condition that the current time reaches the target compensation cycle time, triggering a target existence signal every other target compensation interval until the target existence signal reaches the single compensation target number;

wherein one of the target present signals corresponds to one of the target durations.

4. The method of claim 1, wherein generating target compensation data in real-time from the historical detection data comprises:

generating detection characteristic data of the target traffic detector according to the historical detection data; wherein the detection characteristic data is used for representing the change characteristic of the historical detection data along with the historical time;

and predicting detection data of the current time according to the detection characteristic data, and determining the prediction detection data as the target compensation data.

5. The method of claim 1, wherein sending the real-time detection data to a target traffic control machine comprises:

determining a data compatible format of the target traffic control machine;

mapping the real-time detection data into target output interface data according to the data compatible format;

and sending the target output interface data to the target traffic control machine.

6. The method of claim 1, further comprising, prior to said sending said real-time sensed data to a target traffic control machine:

determining at least one reference traffic detector of the target traffic detectors;

acquiring reference detection data of each reference traffic detector; and performing fusion updating processing on the real-time detection data according to the reference detection data.

7. The method according to claim 6, wherein the performing a fusion update process on the real-time detection data according to each of the reference detection data comprises:

acquiring each reference detection data under the target detection time;

and mapping the target presence data to the real-time detection data when it is determined that any one of the reference detection data is the target presence data.

8. A traffic detector real-time detection data compensation apparatus, comprising:

the reference data acquisition module is used for acquiring compensation reference data under the condition that the target traffic detector is determined to be in fault; the compensation reference data comprises preset compensation configuration parameters or historical detection data;

the compensation data generation module is used for generating target compensation data in real time according to the compensation reference data and determining the target compensation data as real-time detection data of the target traffic detector;

and the detection data sending module is used for sending the real-time detection data to a target traffic control machine so that the target traffic control machine controls the target traffic guidance equipment according to the real-time detection data.

9. A traffic detector real-time detection data compensation device is characterized by comprising a microprocessor, an input interface, an output interface and a storage module; wherein:

the microprocessor is used for implementing the real-time detection data compensation method of the traffic detector as claimed in any one of claims 1 to 7;

the input interface is in communication connection with the microprocessor and the target traffic detector respectively, and is used for receiving real-time detection data sent by the target traffic detector and sending the real-time detection data to the microprocessor;

the output interface is in communication connection with the microprocessor and the target traffic controller, and is used for receiving the real-time detection data sent by the microprocessor and sending the real-time detection data to the target traffic controller;

and the storage module is used for storing the compensation reference data.

10. A computer storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements a method of compensating real-time detection data of a traffic detector according to any one of claims 1-7.

Background

In the traffic signal control technology, traffic detection data is an important basis for realizing traffic signal optimization control and traffic control effect evaluation. Therefore, when the traffic detector fails to detect the data failure, the control effect of the traffic signal is seriously affected, and even a traffic accident is caused. Common detection data failures include the following two cases: the detector state is often "0", i.e. the output is always "no target" regardless of whether a detected target appears on the detector; the detector state is often "1", i.e., the output is always "targeted" regardless of whether a detected target is present on the detector.

In the prior art, usually, by setting a detector group, a plurality of traffic detectors in the same group can be used for reflecting the traffic condition of the same place, for example, a plurality of detectors can be deployed for the same place, or a plurality of detectors of a plurality of lanes at the same intersection and adjacent intersections of the same lane can be set to be the same group, so that when any detector fails, the state of the failed detector can automatically follow the state of the normal detector in the same group.

However, the above-mentioned methods provided in the prior art still have the following problems: there are certain geographical situations that can lead to the inclusion of only one traffic detector within the same detector group, and when the detector fails, detection data compensation cannot be performed; when all detectors in a detector group fail, detection data compensation is also not possible. In addition, the resource cost is wasted due to the arrangement of a plurality of detectors at the same place, and the traffic condition of a fault section of the detector cannot be accurately reflected by the detection data of a nearby place.

Disclosure of Invention

The embodiment of the invention provides a method, a device, equipment and a medium for compensating real-time detection data of a traffic detector, which are used for improving the reliability and accuracy of compensating failure detection data of a fault traffic detector and saving the resource deployment cost of the detector.

In a first aspect, an embodiment of the present invention provides a method for compensating real-time detection data of a traffic detector, including:

acquiring compensation reference data under the condition that the target traffic detector is determined to have a fault; the compensation reference data comprises preset compensation configuration parameters or historical detection data;

generating target compensation data in real time according to the compensation reference data, and determining the target compensation data as real-time detection data of the target traffic detector;

and sending the real-time detection data to a target traffic control machine so that the target traffic control machine controls target traffic guidance equipment according to the real-time detection data.

In a second aspect, an embodiment of the present invention further provides a device for compensating real-time detection data of a traffic detector, including:

the reference data acquisition module is used for acquiring compensation reference data under the condition that the target traffic detector is determined to be in fault; the compensation reference data comprises preset compensation configuration parameters or historical detection data;

the compensation data generation module is used for generating target compensation data in real time according to the compensation reference data and determining the target compensation data as real-time detection data of the target traffic detector;

and the detection data sending module is used for sending the real-time detection data to a target traffic control machine so that the target traffic control machine controls the target traffic guidance equipment according to the real-time detection data.

In a third aspect, an embodiment of the present invention further provides a traffic detector real-time detection data compensation device, which is characterized by including a microprocessor, an input interface, an output interface, and a storage module; wherein:

the microprocessor is used for realizing the real-time detection data compensation method of the traffic detector provided by any embodiment of the invention;

the input interface is in communication connection with the microprocessor and the target traffic detector respectively, and is used for receiving real-time detection data sent by the target traffic detector and sending the real-time detection data to the microprocessor;

the output interface is in communication connection with the microprocessor and the target traffic controller, and is used for receiving the real-time detection data sent by the microprocessor and sending the real-time detection data to the target traffic controller;

and the storage module is used for storing the compensation reference data.

In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for compensating real-time detection data of a traffic detector according to any embodiment of the present invention.

According to the embodiment of the invention, when the target traffic detector fails, the preset compensation configuration parameters or historical detection data serving as compensation reference data are acquired, and the target compensation data are generated in real time and are sent to the target traffic controller as the real-time detection data of the target traffic detector, so that the target traffic controller can control the target traffic guidance equipment according to the real-time detection data, and the detection data compensation of the fault traffic detector is realized according to the preset compensation configuration parameters or the historical detection data.

Drawings

Fig. 1 is a flowchart of a method for compensating real-time detection data of a traffic detector according to an embodiment of the present invention.

Fig. 2 is a schematic view of a pedestrian crossing scene according to an embodiment of the present invention.

Fig. 3 is a schematic diagram of a scenario in which a motor vehicle passes through an intersection according to an embodiment of the present invention.

Fig. 4 is a flowchart of a method for compensating real-time detection data of a traffic detector according to a second embodiment of the present invention.

Fig. 5 is a schematic diagram of traffic detection data generated when a target traffic detector fails according to a second embodiment of the present invention.

Fig. 6 is a schematic diagram of target compensation data according to a second embodiment of the present invention.

Fig. 7 is a schematic diagram of a multi-traffic detector for an intersection scene according to a second embodiment of the present invention.

Fig. 8 is a schematic diagram of a data mapping method according to a second embodiment of the present invention.

Fig. 9 is a schematic structural diagram of a real-time detection data compensation device of a traffic detector according to a third embodiment of the present invention.

Fig. 10 is a schematic structural diagram of a real-time detection data compensation device of a traffic detector according to a fourth embodiment of the present invention.

Fig. 11 is a schematic diagram of a traffic detection data interface device according to a second embodiment of the present invention.

Fig. 12 is a circuit schematic diagram of a switching value input interface according to a second embodiment of the present invention.

Fig. 13 is a circuit diagram of an ethernet interface according to a second embodiment of the present invention.

Fig. 14 is a circuit schematic diagram of a serial interface according to a second embodiment of the present invention.

Detailed Description

The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.

It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.

Example one

Fig. 1 is a flowchart of a method for compensating real-time detection data of a traffic detector according to an embodiment of the present invention, where the embodiment is applicable to a case of compensating failure detection data of a failed traffic detector, and the method can be executed by a device for compensating real-time detection data of a traffic detector according to an embodiment of the present invention, where the device can be implemented by software and/or hardware, and can be generally integrated in a computer device. Accordingly, as shown in fig. 1, the method comprises the following operations:

and S110, acquiring compensation reference data under the condition that the target traffic detector is determined to have a fault.

The target traffic detector can be any type of traffic detector deployed at any place, and can be used for detecting the traffic condition of a detected object in the detection range of the detected object in real time and generating corresponding detection data. The type of the traffic detector can distinguish the detection object, for example, the traffic detector can comprise a vehicle detector, a pedestrian detector, a bus detector and the like; it is also possible to distinguish the detection forms thereof, and for example, a coil vehicle detector, a geomagnetic vehicle detector, a video vehicle detector, and the like may be included.

Further, the compensation reference data includes preset compensation configuration parameters or historical detection data. Specifically, the compensation reference data may be data on which the detection data of the target traffic detector is compensated. The preset compensation configuration parameter may be data describing a specific form of detection data generated by the target traffic detector, and the specific form of detection data may reflect a specific traffic condition and may be preset as needed. The historical detection data may be detection data generated by the target traffic detector operating normally at various historical times.

Correspondingly, the target traffic detector can generate time domain detection data according to the traffic condition detected at each time under the normal working state, so that the detection data can reflect the real-time traffic condition of the detection object of the target traffic detector in the detection range of the detection object. For example, the target traffic detector may be a pedestrian detector disposed at the intersection a, the detection range of the target traffic detector may be a pedestrian passage of the intersection a, the detection object may be a pedestrian passing therethrough, and the target traffic detector may be configured to detect whether there is a pedestrian at the location in real time, continuously output a high level signal if it is determined that there is a pedestrian, and continuously output a low level signal if it is determined that there is no pedestrian, thereby generating time domain detection data; the target traffic detector can also be a vehicle detector disposed at the intersection a, the detection range of the target traffic detector can be a motor vehicle channel of the intersection a, the detection object can be a motor vehicle passing through the target traffic detector, the number of vehicles at each time can be identified, the target traffic detector can be used for detecting the real-time traffic flow at the position, and the data of the number of vehicles changing along with time can be output as detection data.

However, when the target traffic detector fails, the generated detection data is also invalid, for example, the detection data generated by the target traffic detector is constantly a high-level signal or a low-level signal, and the detection data cannot be generated, and at this time, the detection data cannot correctly reflect the real-time traffic condition of the detection object of the target traffic detector within the detection range.

Further, under the condition that the target traffic detector is determined to have a fault, compensation reference data can be obtained to compensate the failure detection data according to the compensation reference data, so that the compensated detection data can reflect a specific traffic condition. Specifically, the compensation reference data may include preset compensation configuration parameters or historical detection data. The detection data in a specific form described by the preset compensation configuration parameters can be determined according to the preset compensation configuration parameters, and the detection data can reflect the specific traffic condition required when the preset compensation configuration parameters are set; the traffic condition of the detection object of the target traffic detector at each historical time within the detection range thereof can be determined from the historical detection data.

And S120, generating target compensation data in real time according to the compensation reference data, and determining the target compensation data as real-time detection data of the target traffic detector.

The target compensation data may be data for compensating for failed detection data during a failure of the target traffic detector, and may be used to describe a specific traffic situation determined from the compensation reference data. The real-time detection data may be data for reflecting a real-time traffic situation of the detection object of the target traffic detector within the detection range thereof.

Accordingly, a particular traffic condition may be determined from the compensation reference data, and target compensation data may be generated to describe the traffic condition. The target compensation data is used as the real-time detection data of the target traffic detector, so that the real-time detection data can reflect the specific traffic condition determined according to the compensation reference data, and the specific traffic condition can be used as the real-time traffic condition of the detection object in the detection range of the target traffic detector during the fault period of the target traffic detector.

Further, in one case, if the compensation reference data includes the preset compensation configuration parameter, the detection data described by the preset compensation configuration parameter may be generated as the target compensation data and determined as the real-time detection data, so that the real-time traffic condition reflected by the real-time detection data may meet the requirement when the preset compensation configuration parameter is set during the fault period of the target traffic detector.

In another case, if the compensation reference data includes historical detection data, the real-time traffic condition during the fault period of the target traffic detector can be estimated according to the reflected traffic conditions at various historical times, so that target compensation data describing the real-time traffic condition can be generated and determined as real-time detection data, so that the real-time traffic condition reflected by the real-time detection data can meet the characteristic that the historical traffic condition detected by the target traffic detector changes along with time during the fault period of the target traffic detector.

And S130, sending the real-time detection data to a target traffic control machine so that the target traffic control machine controls target traffic guidance equipment according to the real-time detection data.

The target traffic controller may be a device for receiving the real-time detection data sent by the target traffic detector and controlling the target traffic guidance device according to the received real-time detection data. The target traffic guidance device may be a device for guiding pedestrians and/or vehicles to pass within the detection range of the target traffic detector, and may be, for example, a traffic light, a voice traffic guidance device, and the like.

Correspondingly, the real-time detection data is sent to the target traffic control machine, and the target traffic control machine can determine the traffic condition of the detection object of the target traffic detector within the detection range according to the received real-time detection data, so that the target traffic guidance equipment is automatically controlled according to the traffic condition, and the guidance of the target traffic guidance equipment on pedestrians and/or vehicles within the detection range can meet the requirement of the traffic condition.

Fig. 2 is a schematic diagram of a pedestrian crossing scene according to an embodiment of the present invention. In a specific example, as shown in fig. 2, the road section is normal, the motor vehicle has the right of road traffic, the signal lamp of the motor vehicle is green, and the signal lamp of the pedestrian crossing street is red. When a pedestrian needs to cross the street, the pedestrian crossing request button can be pressed, and the pedestrian crossing request button can be used as a target traffic detector and keeps low-level output when not pressed, so that the traffic condition that no pedestrian requests to pass is reflected; when the pedestrian is pressed down, a high level pulse is triggered to reflect the traffic condition that the pedestrian requests to pass at the moment. When the target traffic controller obtains a pedestrian request, the motor vehicle road right of passage is ended, the motor vehicle signal lamp is lightened, then the pedestrian lamp is released with the green lamp for a fixed time for the pedestrian to pass, the road right of passage is returned to the motor vehicle after the pedestrian lamp is ended, namely the motor vehicle signal lamp is restored to be lightened with the green lamp, and the pedestrian street-crossing signal lamp is lightened with the red lamp.

However, in this scenario, once the pedestrian street crossing request button fails, the high-level pulse output cannot be triggered, and the pedestrian can never request the right of way. At this time, the compensation reference data of the pedestrian crossing request button can be acquired, and the target compensation data can be generated according to the compensation reference data and used as the real-time detection data of the pedestrian crossing request button. The target compensation data may be, for example, a high level pulse generated at a certain specific time, and the target traffic controller may end the motor vehicle road right of way at a specific time according to the target compensation data to release the pedestrian.

Fig. 3 is a schematic diagram of a scenario in which a motor vehicle passes through an intersection according to an embodiment of the present invention. As shown in fig. 3, in a specific example, the east-west road of the intersection is a main road, the north-south road is a secondary road, and in a normal state, the motor vehicle of the main road has a right of road passage, and when the detection data of the vehicle detector of the secondary road reflects the presence of the vehicle, the right of road passage is handed to the motor vehicle in the north-south direction. However, when the vehicle detector on the secondary road fails and the vehicle on the secondary road cannot request the right of way, the failed detection data can be compensated by generating the target compensation data from the compensation reference data.

The embodiment of the invention provides a real-time detection data compensation method of a traffic detector, which comprises the steps of acquiring preset compensation configuration parameters or historical detection data serving as compensation reference data when a target traffic detector fails, generating target compensation data in real time according to the preset compensation configuration parameters or the historical detection data, enabling the target compensation data to be sent to a target traffic controller as real-time detection data of the target traffic detector, controlling target traffic guidance equipment by the target traffic controller according to the real-time detection data, realizing detection data compensation of the failed traffic detector according to the preset compensation configuration parameters or the historical detection data, solving the problems of low reliability of detector grouping and detector resource waste caused by data compensation of the failed detector by detector grouping in the prior art, improving the reliability and accuracy of compensation of failure detection data of the failed traffic detector, and detector resource deployment cost is saved.

Example two

Fig. 4 is a flowchart of a method for compensating real-time detection data of a traffic detector according to a second embodiment of the present invention. The embodiment of the invention is embodied on the basis of the above embodiment, and in the embodiment of the invention, a specific optional implementation mode for sending the real-time detection data to the target traffic control machine is provided.

As shown in fig. 4, the method of the embodiment of the present invention specifically includes:

s210, acquiring compensation reference data under the condition that the target traffic detector is determined to be in fault.

Wherein the compensation reference data comprises preset compensation configuration parameters or historical detection data.

In an optional embodiment of the present invention, the determining that the target traffic detector is out of order may include: receiving traffic detection data sent by the target traffic detector; determining that the target traffic detector is malfunctioning if it is determined that the current data state duration of the traffic detection data exceeds a preset time threshold.

Specifically, the traffic detection data may be detection data generated by the target traffic detector. The current data state duration may be the time during which the traffic conditions reflected by the traffic detection data remain unchanged. The preset time threshold may be a maximum time for which an actual traffic condition of the inspection object of the target traffic detector within a detection range thereof remains unchanged.

Correspondingly, the target traffic detector can generate traffic detection data in real time according to the detected traffic condition in the working process so as to reflect the detected traffic condition. Under normal operating conditions of the target traffic detector, the traffic detection data generated by the target traffic detector will also change due to changes in traffic conditions. When the target traffic detector fails, situations that the traffic condition cannot be detected or new detection data cannot be generated according to the detected traffic condition occur, and the transmitted traffic detection data continuously reflect the fixed and unchangeable traffic condition. Accordingly, in the case where it is determined that the current data state duration of the traffic detection data exceeds the preset time threshold, it may be determined that the target traffic detector is out of order.

Fig. 5 is a schematic diagram of traffic detection data generated by a failure of a target traffic detector according to an embodiment of the present invention. As shown in fig. 5, if the traffic detection data sent by the target traffic detector is kept as a low level signal for a duration exceeding a preset time threshold, that is, it is continuously reflected that no detection object exists in the detection range of the target traffic detector, it may be determined that a normal "0" fault occurs in the target traffic detector; the traffic detection data sent by the target traffic detector is kept as a high-level signal within the time length exceeding the preset time threshold, namely, the detection object of the target traffic detector exists within the detection range of the target traffic detector, and then the target traffic detector can be determined to have a frequent 1 fault.

And S220, generating target compensation data in real time according to the compensation reference data, and determining the target compensation data as real-time detection data of the target traffic detector.

In an optional embodiment of the present invention, the generating target compensation data in real time according to the preset compensation configuration parameter may include: determining target compensation cycle time and target compensation associated data according to the preset compensation configuration parameters; and generating the target compensation data according to the target compensation cycle time and the target compensation associated data.

The target compensation cycle time may be used to determine a time for generating data that may reflect the presence of the detection object passing through the detection range each time the generation is triggered in the process of generating the target compensation data. The target compensation associated data may be used to describe data reflecting the presence of the detected object passing in the detection range, which is generated each time the trigger is generated in the process of generating the target compensation data.

Correspondingly, in the process of generating the target compensation data, the data reflecting the passing of the detection object in the detection range can be triggered and generated in the target compensation period time, and the data can be generated according to the target compensation related data, so that the target compensation data can reflect the passing traffic condition of the detection object in the detection range in some time.

In an optional embodiment of the present invention, the target compensation correlation data may include: the number of single compensation targets, the target duration and the target compensation interval; the generating the target compensation data according to the target compensation cycle time and the target compensation related data may include: and under the condition that the current time reaches the target compensation period time, triggering a target existence signal every other target compensation interval until the target existence signal reaches the single compensation target number.

Wherein one of the target present signals corresponds to one of the target durations.

Specifically, the number of the single compensation targets may be the number of the detection objects reflected by the data generated by each trigger and reflecting the presence of the passage of the detection objects in the detection range. The target duration may be a time of existence of each detection object reflected by data that triggers generation of a pass reflecting the existence of the detection object within the detection range. The target compensation interval may be a time interval of occurrence of a detection object that adjacently occurs as reflected by data that triggers generation of a data reflecting the presence of a passage of the detection object within the detection range. The target presence signal may be signal data for indicating that a single detection object exists within the detection range.

Correspondingly, after the target traffic detector is determined to be in fault, if the current time reaches the target compensation cycle time, data reflecting that the detected object passes in the detection range can be generated in a triggering mode. According to the number of single compensation targets, the target duration and the target compensation interval in the target compensation associated data, the data may specifically include at least one target presence signal, the number of the target presence signals is consistent with the number of the single compensation targets, each target presence signal may indicate that the presence time of a single detection object in the detection range is the target duration, and the time interval in which adjacent detection objects appear is the target compensation interval.

For example, fig. 6 is a schematic diagram of target compensation data according to an embodiment of the present invention. As shown in fig. 6, upon determining that the low level signal may reflect that the current time does not have any detection object within the detection range, and the high level signal can reflect that under the condition that the current time has a detection object in the detection range, the target existence signal is a high level pulse with a certain duration, the duration t-hold of a single high level pulse is the target duration, the trigger interval time t-gap of adjacent high level pulses is the target compensation interval, the number of single compensation targets is 4, each compensation time interval t-interval can be determined by the target compensation period time, the correspondingly generated target compensation data can be used to reflect the time length of each interval t-interval, four detection objects appear in the detection range in sequence, the time interval of the appearance of the adjacent detection objects is t-gap, and the time length of the passing of each detection object in the detection range is t-hold.

In an optional embodiment of the present invention, the generating target compensation data in real time according to the historical detection data may include: generating detection characteristic data of the target traffic detector according to the historical detection data; and predicting detection data of the current time according to the detection characteristic data, and determining the prediction detection data as the target compensation data.

Wherein the detection characteristic data is used for representing the change characteristic of the historical detection data along with the historical time. The predictive detection data may be used to describe predicted traffic conditions at the current time based on characteristics of historical detection data as a function of historical time.

Accordingly, the traffic condition of the detection object of the target traffic detector within the detection range thereof may have some characteristics that change with time, for example, the traffic flow and the pedestrian flow of the section of road near the school may be relatively high in the time period of the school and the school, and low in other time periods; also, for example, traffic conditions within a certain road section during holidays have different laws of variation than during workdays. Therefore, the detection characteristic data of the target traffic detector can be generated according to the historical detection data, so that the prediction detection data of the current time can be predicted and used as target compensation data; and the longer the historical time length corresponding to the historical detection data is, the closer the obtained target compensation data can be to the real-time detection data corresponding to the actual traffic condition at the current time.

Optionally, different types of dates of the target traffic detector, including working days, weekends, holidays, and variation trends in different periods, may be obtained as the detection feature data according to a regression algorithm, a support vector machine algorithm, a K-NN algorithm (a Neighbor algorithm), a naive bayesian algorithm, a neural network algorithm, or a decision tree/decision forest algorithm, according to historical detection data.

And S230, sending the real-time detection data to a target traffic control machine so that the target traffic control machine controls target traffic guidance equipment according to the real-time detection data.

In an optional embodiment of the present invention, S230 may specifically include:

and S231, determining a data compatible format of the target traffic control machine.

Wherein the data compatible format may be a format of the detection data that the target traffic control machine may receive and recognize.

Accordingly, the data compatible formats for different target traffic control machines may be different, and the data compatible format for each target traffic control machine may include the format of one or more sensed data. Different types of communication protocols may be employed by target traffic control machines having different data compatible formats.

Optionally, the target traffic controller may receive the detection data through the interface, and the data compatible format may include at least one of a switching value interface format, an ethernet interface format, and a serial interface format according to different interface types.

S232, mapping the real-time detection data into target output interface data according to the data compatible format.

The target output interface data may be data obtained by mapping real-time detection data into a data compatible format, and the target traffic controller may receive and identify the data.

Accordingly, since the target traffic controller is required to receive and recognize the real-time detection data to control the target traffic guidance device according to the real-time detection data, and the real-time detection data may have different formats according to different formats of the detection data generated by the target traffic detector, the real-time detection data needs to be mapped to target output interface data that can be received and recognized by the target traffic controller according to a data compatible format.

And S233, sending the target output interface data to the target traffic controller.

Correspondingly, the target output interface data are sent to the target traffic controller, and then the target traffic controller can receive and identify the target output interface data, so that the target traffic guidance equipment is controlled according to the real-time detection data.

For example, because of the difference of construction times of traffic signal control engineering projects, an early-mounted road traffic signal controller generally only supports detection data generated by a switching value type traffic detector, but with the update iteration of technologies adopted in traffic signal control, the currently widely-used novel traffic detectors such as video vehicle detectors, geomagnetic vehicle detectors, video pedestrian detectors and the like are generally output by ethernet or a serial port protocol, and the generated detection data cannot be received and identified by the early-mounted traffic controller, so that the real-time detection data in the embodiment of the invention also can not meet the condition of a data compatible format of a target traffic controller. Therefore, the real-time detection data may be mapped to the target output interface data and transmitted, for example, the real-time detection data may be video data output by an ethernet interface, and the data compatible format of the target traffic control machine is the switching value interface format, so that the content of the video data may be mapped to "on" type data or "off" type data, which may respectively indicate the presence or absence of the detection object within the detection range.

In an optional embodiment of the present invention, before the sending the real-time detection data to the target traffic control machine, the method may further include: determining at least one reference traffic detector of the target traffic detectors; acquiring reference detection data of each reference traffic detector; and performing fusion updating processing on the real-time detection data according to the reference detection data.

The reference traffic detector may be a traffic detector that detects an object and a detection range of which coincides with the target traffic detector. The reference detection data may be detection data generated by the reference traffic detector according to a traffic situation of the detected detection object within the detection range. The fusion update process may be an operation of updating the real-time detection data according to the traffic condition reflected by the reference detection data.

Accordingly, for a traffic situation in which the same detection object is within the same detection range, a plurality of traffic detectors may be generally deployed, and then at least one reference traffic detector of the target traffic detector may be determined. Each reference traffic detector and each target traffic detector can generate reference detection data according to the traffic condition of the detected object in the detection range. Specifically, each reference detection data and the real-time detection data may have the same data format or different data formats.

Therefore, the reference detection data can reflect the traffic condition detected by the reference traffic detector, so that the reference detection data can be obtained, and the real-time detection data is subjected to fusion updating processing according to the reference detection data, so that the traffic condition reflected by the real-time detection data can be combined with the traffic condition reflected by the reference detection data, and the actual traffic condition of the detection object in the detection range is closer to the actual traffic condition. Specifically, the fusion update processing may be performed on the real-time detection data according to each reference detection data, for example, according to a preset algorithm or a preset rule, the fusion update processing may be performed on the real-time detection data according to each reference monitoring data, for example, the fusion update processing may be performed on the real-time detection data according to reference traffic data of one or more reference traffic detectors with a larger preset weight, and the like.

In an optional embodiment of the present invention, the performing, according to each piece of reference detection data, fusion update processing on the real-time detection data may include: acquiring each reference detection data under the target detection time; and mapping the target presence data to the real-time detection data when it is determined that any one of the reference detection data is the target presence data.

The target detection time may be a detection time corresponding to a traffic condition reflected by the real-time detection data. The target presence data may be data indicating that the detection object exists within the detection range at the current time.

Accordingly, each reference detection data at the target detection time can reflect the traffic condition detected by the reference traffic detector at the target detection time. If any reference detection data exists as target existence data in the target detection time, which can indicate that the reference traffic detector detects a detection object in the detection range, the target existence data can be mapped to the real-time detection data. Specifically, if the data format of the target existence data is the same as that of the real-time detection data, the target existence data can be directly determined as the real-time detection data corresponding to the target detection time; if the target existence data and the real-time detection data have different data formats, the target existence data may be mapped to data having the same data format as the real-time detection data, and the mapped data is determined as the real-time detection data corresponding to the target detection time.

The above embodiment may perform fusion update processing on the real-time detection data according to the reference detection data, specifically includes updating the real-time detection data when any reference detection data reflects that the detection object exists in the detection range, so as to reflect the traffic condition of the detection object existing in the detection range, and avoid missing detection of the detection object caused by a possible error between the traffic condition reflected by the target compensation data generated according to the compensation reference data and the actual traffic condition.

For example, fig. 7 is a schematic diagram of a multiple traffic detector for an intersection scene according to an embodiment of the present invention. As shown in fig. 7, the signal lamp sets corresponding to the information and the detection data requirements of the vehicle detectors D1, D2 and D3 in the north-south direction are shown in table 1.

TABLE 1

Traffic detector Type (B) Output interface Corresponding signal lamp group
D1 Coil vehicle detector Switching value Motor vehicle lamp 1
D2 Video vehicle detector Ethernet, protocol A Motor vehicle lamp 1
D3 Radar vehicle detector RS485, protocol B Motor vehicle lamp 1

Correspondingly, fig. 8 is a schematic diagram of a data mapping method according to an embodiment of the present invention. As shown in fig. 8, the input interface of the traffic detection data interface device includes a switching value interface, an ethernet interface, and an RS485 interface, which are respectively used for receiving the detection data sent by the traffic detectors D1, D2, and D3. In this scenario, D1, D2, and D3 may be connected to corresponding input interfaces of the traffic detection data interface device, and data of each detector is mapped to channel 1 of the output switching value interface, and the channel is connected to the switching value detection interface of the road traffic signal controller, so that when vehicle data exists in one or more detectors of D1, D2, and D3, all channels 1 of the output switching value interface are in a "vehicle present" state.

In an optional embodiment of the present invention, after the generating target compensation data in real time according to the compensation reference data and determining each target compensation data as real-time detection data of the target traffic detector, the method may further include: stopping generating the target compensation data under the condition that the target traffic detector is determined to be recovered to a normal working state; and receiving effective detection data sent by the target traffic detector, and determining the effective detection data as the real-time detection data.

The valid detection data may be data that can accurately reflect the traffic condition of the detection object of the target traffic detector within the detection range thereof.

Correspondingly, when the target traffic detector is determined to return to the normal working state, namely the target traffic detector can accurately detect the actual traffic condition of the detected object in the detection range of the target traffic detector and can accurately generate effective detection data capable of reflecting the traffic condition, the generation of the target compensation data can be stopped, and the effective detection data sent by the target traffic detector is used as real-time detection data again to be sent to the target traffic controller so as to control the target traffic guidance equipment according to the actual traffic condition.

The embodiment of the invention provides a real-time detection data compensation method of a traffic detector, which comprises the steps of acquiring preset compensation configuration parameters or historical detection data serving as compensation reference data when a target traffic detector fails, generating target compensation data in real time according to the preset compensation configuration parameters or the historical detection data, enabling the target compensation data to be sent to a target traffic controller as real-time detection data of the target traffic detector, controlling target traffic guidance equipment by the target traffic controller according to the real-time detection data, realizing detection data compensation of the failed traffic detector according to the preset compensation configuration parameters or the historical detection data, solving the problems of low reliability of detector grouping and detector resource waste caused by data compensation of the failed detector by detector grouping in the prior art, improving the reliability and accuracy of compensation of failure detection data of the failed traffic detector, and detector resource deployment cost is saved.

EXAMPLE III

Fig. 9 is a schematic structural diagram of a traffic detector real-time detection data compensation apparatus according to a third embodiment of the present invention, as shown in fig. 9, the apparatus includes: a reference data acquisition module 310, a compensation data generation module 320, and a detection data transmission module 330.

The reference data acquiring module 310 is configured to acquire compensation reference data when it is determined that the target traffic detector fails; wherein the compensation reference data comprises preset compensation configuration parameters or historical detection data.

And the compensation data generation module 320 is configured to generate target compensation data in real time according to the compensation reference data, and determine the target compensation data as real-time detection data of the target traffic detector.

The detection data sending module 330 is configured to send the real-time detection data to a target traffic controller, so that the target traffic controller controls a target traffic guidance device according to the real-time detection data.

In an optional implementation manner of the embodiment of the present invention, the compensation data generating module 320 may include: the compensation determining submodule is used for determining target compensation cycle time and target compensation associated data according to the preset compensation configuration parameters; and the compensation generation submodule is used for generating the target compensation data according to the target compensation cycle time and the target compensation associated data.

In an optional implementation manner of the embodiment of the present invention, the target compensation associated data includes: the number of single compensation targets, the target duration and the target compensation interval; the compensation generation submodule may be specifically configured to: under the condition that the current time reaches the target compensation cycle time, triggering a target existence signal every other target compensation interval until the target existence signal reaches the single compensation target number; wherein one of the target present signals corresponds to one of the target durations.

In an optional implementation manner of the embodiment of the present invention, the compensation data generating module 320 may be specifically configured to: generating detection characteristic data of the target traffic detector according to the historical detection data; wherein the detection characteristic data is used for representing the change characteristic of the historical detection data along with the historical time; and predicting detection data of the current time according to the detection characteristic data, and determining the prediction detection data as the target compensation data.

In an optional implementation manner of the embodiment of the present invention, the apparatus may further include: the effective data sending module is used for stopping generating the target compensation data under the condition that the target traffic detector is determined to be recovered to the normal working state; and receiving effective detection data sent by the target traffic detector, and determining the effective detection data as the real-time detection data.

In an optional implementation manner of the embodiment of the present invention, the detection data sending module 330 may be specifically configured to: determining a data compatible format of the target traffic control machine; mapping the real-time detection data into target output interface data according to the data compatible format; and sending the target output interface data to the target traffic control machine.

In an optional implementation manner of the embodiment of the present invention, the reference data obtaining module 310 may be further configured to: receiving traffic detection data sent by the target traffic detector; determining that the target traffic detector is malfunctioning if it is determined that the current data state duration of the traffic detection data exceeds a preset time threshold.

In an optional implementation manner of the embodiment of the present invention, the apparatus may further include: a data fusion update module to determine at least one reference traffic detector of the target traffic detectors; acquiring reference detection data of each reference traffic detector; and performing fusion updating processing on the real-time detection data according to the reference detection data.

In an optional implementation manner of the embodiment of the present invention, the data fusion update module may be specifically configured to: sequentially acquiring each reference detection data at each detection time; and mapping the target existence data to the real-time detection data under the condition that any reference detection data exists in the same detection time and is determined to be target existence data.

The device can execute the real-time detection data compensation method of the traffic detector provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the real-time detection data compensation method of the traffic detector.

The embodiment of the invention provides a real-time detection data compensation device of a traffic detector, which obtains preset compensation configuration parameters or historical detection data serving as compensation reference data when a target traffic detector fails, generates target compensation data in real time according to the preset compensation configuration parameters or the historical detection data, and sends the target compensation data serving as real-time detection data of the target traffic detector to a target traffic controller, so that the target traffic controller can control target traffic guide equipment according to the real-time detection data, realize detection data compensation on the failed traffic detector according to the preset compensation configuration parameters or the historical detection data, solve the problems of low reliability of detector grouping and detector resource waste which need to perform data compensation on the failed detector by detector grouping in the prior art, and improve the reliability and the accuracy of compensation on failure detection data of the failed traffic detector, and detector resource deployment cost is saved.

Example four

Fig. 10 is a schematic structural diagram of a real-time detection data compensation device of a traffic detector according to a fourth embodiment of the present invention. As shown in fig. 10, the apparatus may include a microprocessor 410, an input interface 420, an output interface 430, and a storage module 440.

The microprocessor 410 is used for implementing the traffic detector real-time detection data compensation method provided by any embodiment of the present invention, and is a core module for receiving input data, detecting data fusion, storing data, detecting data failure, compensating data, and outputting data, and may be processors such as arm (advanced RISC machines), PowerPC, X86, and a single chip microcomputer.

Specifically, the microprocessor 410 may be configured to obtain the compensation reference data in case of determining that the target traffic detector is faulty; the compensation reference data comprises preset compensation configuration parameters or historical detection data; generating target compensation data in real time according to the compensation reference data, and determining the target compensation data as real-time detection data of the target traffic detector; and sending the real-time detection data to a target traffic control machine so that the target traffic control machine controls target traffic guidance equipment according to the real-time detection data.

Optionally, the microprocessor 410 may be configured to generate target compensation data in real time according to the preset compensation configuration parameter, and specifically may include: determining target compensation cycle time and target compensation associated data according to the preset compensation configuration parameters; and generating the target compensation data according to the target compensation cycle time and the target compensation associated data.

Optionally, the target compensation associated data may include: the number of single compensation targets, the target duration and the target compensation interval; the microprocessor 410 may be configured to generate the target compensation data according to the target compensation cycle time and the target compensation related data, and specifically may include: under the condition that the current time reaches the target compensation cycle time, triggering a target existence signal every other target compensation interval until the target existence signal reaches the single compensation target number; wherein one of the target present signals corresponds to one of the target durations.

Optionally, the microprocessor 410 may be configured to generate target compensation data in real time according to the historical detection data, and specifically may include: generating detection characteristic data of the target traffic detector according to the historical detection data; wherein the detection characteristic data is used for representing the change characteristic of the historical detection data along with the historical time; and predicting detection data of the current time according to the detection characteristic data, and determining the prediction detection data as the target compensation data.

Optionally, the microprocessor 410 may be configured to send the real-time detection data to a target traffic control machine, and specifically may include: determining a data compatible format of the target traffic control machine; mapping the real-time detection data into target output interface data according to the data compatible format; and sending the target output interface data to the target traffic control machine.

Optionally, before sending the real-time detection data to the target traffic control machine, the microprocessor 410 may further be configured to: determining at least one reference traffic detector of the target traffic detectors; acquiring reference detection data of each reference traffic detector; and performing fusion updating processing on the real-time detection data according to the reference detection data.

Optionally, the microprocessor 410 may be configured to perform fusion update processing on the real-time detection data according to each piece of reference detection data, and specifically may include: sequentially acquiring each reference detection data at each detection time; and mapping the target existence data to the real-time detection data under the condition that any reference detection data exists in the same detection time and is determined to be target existence data.

Correspondingly, the input interface 420 is in communication connection with the microprocessor 410 and the target traffic detector, respectively, and is configured to receive the real-time detection data sent by the target traffic detector and send the real-time detection data to the microprocessor 410.

Specifically, the interface type of the input interface 420 may be matched with the interface type used by the target traffic detector to output real-time detection data. The real-time detection data may be transmitted to the microprocessor 410 through the input interface 420, so that the microprocessor 410 may determine whether the target traffic detector is out of order according to the received real-time detection data, and perform the traffic detector real-time detection data compensation method provided in any embodiment of the present invention in case that it is determined that the target traffic detector is out of order; and under the condition that the target traffic detector is determined to be in a normal working state, the received real-time detection data is sent to the target traffic controller through the output interface 430.

Correspondingly, the output interface 430 is in communication connection with the microprocessor 410 and the target traffic controller, and is configured to receive the real-time detection data sent by the microprocessor 410 and send the real-time detection data to the target traffic controller.

Specifically, the interface type of the output interface 430 may match the interface type used by the target traffic control machine to receive the real-time detection data. The real-time detection data may be transmitted to the target traffic control machine through the output interface 430 so that the target traffic control machine controls the target traffic guidance device according to the real-time detection data.

Accordingly, the storage module 440 is configured to store the compensation reference data, so that the microprocessor 410 can obtain the compensation reference data from the storage module 440 to generate the target compensation data according to the compensation reference data, thereby implementing the real-time detection data compensation method of the traffic detector according to any embodiment of the present invention.

Specifically, the storage module may be configured to store original detection data generated and sent by each detector, so as to obtain historical detection data through accumulation, and provide a basis for traffic detection data compensation according to a trend characteristic of the historical detection data. The storage module can also be used for storing configuration data, including the types of enabled traffic detectors, the fusion relationship of input data of the detectors, the switching value channels of detection data, the Ethernet protocol, the serial port protocol and other mapping output channels, and storing protocol drivers of various traffic detectors, and can be used for docking detection data of different interfaces and different protocols.

Fig. 11 is a schematic diagram of another traffic detector real-time detection data compensation device according to an embodiment of the present invention.

In an alternative embodiment of the present invention, as shown in fig. 11, the device may further include a power module for converting an input power into an operating voltage required by each module inside the traffic detection data interface device.

In an alternative embodiment of the invention, the apparatus may further comprise LED indicators for indicating the output status and fault warning of each detector output channel.

In an optional embodiment of the present invention, the device may further include a GPS/beidou module, configured to time service the traffic detection data interface device, that is, stamp the detection data with a timestamp, so as to record a specific time corresponding to a traffic condition reflected by the detection data. The GPS/Beidou module can also be used for recording the geographic position of the detection range corresponding to the detection data.

As shown in fig. 11, in a specific example, the input interface is connected to the detection data input layer, and is used for receiving the detection data generated and transmitted by each type of traffic detector. Optionally, the input interface may include one or more sets of switching value interfaces, ethernet interfaces, RS485 interfaces, and RS232 interfaces shown in fig. 7, and may further include serial communication interfaces such as RS422 and the like not shown in fig. 7. The output interface is used for outputting the received detection data or the compensated detection data to the road traffic signal controller, and the output interface and the input interface can also comprise at least one of the interfaces of the type mentioned above.

Fig. 12 is a schematic circuit diagram of a switching value input interface according to an embodiment of the present invention. As shown in fig. 12, pins Xin0, Xin1, Xin2 and Xin3 may be used for communication connection with the switching-value type traffic detector, and pins Kin0, Kin1, Kin2 and Kin3 may be used for communication connection with the microprocessor, corresponding to pins Xin0, Xin1, Xin2 and Xin3, respectively. The interface is an isolated input that can receive switching traffic detector data, such as: pedestrian buttons, coil vehicle detectors, geomagnetic vehicle detectors, and the like. When the switching value type traffic detector detects that the detection object exists, the pin which is in communication connection with the traffic detector is connected to the negative electrode of the +24V circuit to form a closed path, so that the pin which corresponds to the pin and is in communication connection with the microprocessor can have a +3.3V high level, and the microprocessor can receive a high level signal. Fig. 13 is a circuit schematic diagram of an ethernet interface according to an embodiment of the present invention. As shown in fig. 13, the pins 15, 16, 24 and 25 may be used to communicatively connect with an ethernet protocol type traffic detector, receiving real-time detection data transmitted by the traffic detector; pins 4, 5, 6 and 7 may be used for communication with the microprocessor for sending real-time detection data to the microprocessor; other pins of the interface may also be communicatively coupled to the microprocessor for transmitting other functional signals. The interface may receive ethernet protocol type traffic detector data, such as video vehicle detectors, geomagnetic vehicle detectors, and the like. Fig. 14 is a circuit schematic diagram of a serial interface according to an embodiment of the present invention. As shown in fig. 14, the circuit diagram at the top of fig. 14 is a circuit diagram of an alternative RS232 serial interface, wherein the DB9_ MALE connector can be used for being communicatively connected with an RS232 serial port protocol type traffic detector to receive real-time detection data sent by the traffic detector, and the pins 1_ UART 1_ TXD, 2_ UART 1_ TXD, 1_ UART 1_ RXD and 2_ UART 1_ RXD can be communicatively connected with a microprocessor to send the real-time detection data to the microprocessor. The circuit diagram shown below fig. 14 is a circuit diagram of an alternative RS485 serial interface, in which the pins 1_ UART4_485_ P and 1_ UART4_485_ N may be used to be in communication connection with an RS485 serial port protocol type traffic detector to receive real-time detection data sent by the RS485 serial port protocol type traffic detector, and the pins 1_ UART4_ TXD and 1_ UART4_ RXD may be in communication connection with a microprocessor to send the real-time detection data to the microprocessor. The interface may be used to receive serial protocol type traffic detector data, such as geomagnetic vehicle detectors, radar detectors, special vehicle detectors, and the like.

EXAMPLE five

The fifth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where when the computer program is executed by a processor, the method for compensating real-time detection data of a traffic detector provided in the fifth embodiment of the present invention is implemented: acquiring compensation reference data under the condition that the target traffic detector is determined to have a fault; the compensation reference data comprises preset compensation configuration parameters or historical detection data; generating target compensation data in real time according to the compensation reference data, and determining the target compensation data as real-time detection data of the target traffic detector; and sending the real-time detection data to a target traffic control machine so that the target traffic control machine controls target traffic guidance equipment according to the real-time detection data.

Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.

A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.

Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or computer device. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).

It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:交通信号灯的控制信号生成方法、装置、电子设备和介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!