Road traffic signal lamp fault detection method

By capturing video images of traffic lights through monitoring equipment and using fault detection models, the faults of traffic lights can be detected in real time, which solves the problem of inability to detect all faults in time in the existing technology, achieves comprehensive monitoring and timely alarming of traffic light faults, and reduces costs. Traffic accident risk.

CN118762546APending Publication Date: 2024-10-11TRAFFIC MANAGEMENT RES INST OF THE MIN OF PUBLIC SECURITY
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411187368.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

In the existing technology, the traffic light fault detection method cannot detect all types of faults in time, especially color errors caused by lamp body hardware problems, which cannot be reflected by current and voltage values, resulting in some faults not being discovered in time.

Method used

Monitoring equipment is used to capture video images of traffic lights in real time. Based on the trained fault detection model, the integrity, color range, state retention time and color change timing of the signal lights are detected, the fault type is determined, and the fault is reported to the traffic management platform in real time.

Benefits of technology

It realizes real-time monitoring of traffic lights, detects various types of faults in a timely manner, and reduces the risk of traffic accidents caused by signal light failures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762546A_ABST
    Figure CN118762546A_ABST
Patent Text Reader

Abstract

According to the road traffic signal lamp fault detection method provided by the invention, the video image of the to-be-monitored signal lamp is captured based on the monitoring equipment, the state of the signal lamp is monitored based on the image recognition technology, and the signal lamp fault is detected through the signal lamp fault detection model. According to the method, faults such as signal lamp shielding, signal lamp color abnormity, signal lamp non-lighting, signal lamp constant lighting, signal lamp phase abnormity, inconsistency between signal lamp indication and road marking and the like are detected in real time, and compared with an existing signal lamp fault self-checking mode, various types of signal lamp faults causing signal lamp failure can be found based on the angle of a signal lamp user; the probability of the risk of traffic accidents caused by signal lamp faults is effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of intelligent traffic control, in particular to a method for detecting road traffic signal lamp faults. Background Art

[0002] Road traffic lights are an important part of urban traffic management. They have the functions of directing the traffic flow of vehicles and pedestrians through intersections, ensuring orderly and smooth traffic, reducing congestion, improving traffic efficiency, and reducing the probability of traffic accidents. Failure of traffic lights will cause traffic signals to fail and increase the risk of traffic accidents. In the prior art, many traffic light control systems will be equipped with fault monitoring mechanisms, such as the patent with publication number CN108320533A, which discloses a traffic light control method and system, which is equipped with a detection module for detecting the current and voltage values ​​of multiple groups of LED lights on the lamp head 2041, and returning the detection values ​​to the main controller 205. The control device determines the fault state of the target signal light according to the status information. However, in actual applications, it is found that this method of self-checking faults based on signal light parameters cannot obtain all types of obstacles. For example, some signal lights have problems with the hardware of the lamp body, resulting in errors in the actual displayed color, but can receive signals and feedback signals normally. However, this kind of fault cannot be reflected by the current and voltage values. Therefore, the signal light fault monitoring in the prior art still requires two methods, namely, signal light self-checking and manual repair reporting, which results in some types of faults not being discovered in time. Summary of the invention

[0003] In order to solve the problem that the signal light self-checking method in the prior art cannot detect all types of signal light faults in time, the present invention provides a road traffic signal light fault detection method, which can monitor the signal light status in real time to ensure timely detection of various types of signal light faults.

[0004] The technical solution of the present invention is as follows: a method for detecting a road traffic signal light fault, characterized in that it comprises the following steps: S1: Setting monitoring equipment for the signal light group to be monitored, capturing video images of the signal light group to be monitored in real time, recorded as monitoring images; S2: Build a signal light fault detection model; S3: Using the monitoring image, based on the trained signal light fault detection model, perform preset fault monitoring, and report the fault to the traffic control platform in real time; the fault monitoring content specifically includes: a1: Detect whether there is a signal light in the video image; If the signal light is not detected in the video image, or the detected signal light is incomplete, the fault is determined to be: the signal light is blocked, and the detection is terminated; Otherwise, if the signal light is not blocked, execute step a2; a2: Determine the position of the corresponding light groups of red, yellow and green according to the installation method of the signal light, and judge whether the color of each light group is within the specified range. If it exceeds the specified color range, the fault is judged as: the color of the signal light is abnormal, and the test ends; Otherwise, it is determined that the color of the signal light is normal, and step a3 is executed; a3: reading the continuous monitoring images, recorded as continuous time-series video images; Determine the maximum duration of each preset signal light's on or off state, recorded as: state retention time; Based on the continuous time-series video images, confirm whether any light group state exceeds the state retention time; If it exists, the fault is judged as: the signal light changes abnormally, and this test ends; Otherwise, it is determined that the change of the signal light group is normal, and step a4 is executed; a4: Read the color change time series data of the signal light group to be monitored, recorded as: comparison time series data; Based on the continuous time-series video images, determining whether the light color change timing of the signal light group is consistent with the comparison time-series data; If they are inconsistent, the fault is judged to be: abnormal phase of the signal light, and this test is terminated; Otherwise, if there is no abnormality in the phase of the signal light, go to step a5; a5: Connect to the signal light control system and read the light group status data, recorded as: comparison light group status; Based on the continuous time-series video images, determining whether the state of the light group detected in the continuous time-series video images is consistent with the state of the comparison light group; If they are inconsistent, the fault is judged to be: abnormal phase of the signal light, and this test is terminated; Otherwise, the signal light phase is normal, and step a6 is executed; a6: Capture images of road markings and identify the directions indicated by the road markings; Based on the monitoring image, determine whether the current signal light group is consistent with the direction indicated by the road marking; If the directions indicated are inconsistent or the status of the light groups in the same direction are inconsistent, the fault is judged to be abnormal signal light status, and the test is terminated; Otherwise, the signal light is judged to be in normal state and the test ends.

[0005] It is further characterized by: The signal light group to be monitored includes: a disc light and an arrow light; In step a1, when the signal light group to be monitored is a disc light, the method for judging the integrity specifically comprises the following steps: b1: grayscale the detected signal light group area, and perform adaptive binarization based on the color difference to find the signal light emitting area; b2: Take out any signal light in the signal light group and record it as the signal light to be confirmed; Finding the minimum circumscribed circle for the signal light emitting area of ​​the signal light to be confirmed after binarization; b3: Take the pixel intersection of the minimum circumscribed circle and the binary signal light emitting area; Comparing the pixel intersection with a preset occlusion threshold, if the pixel intersection is greater than the occlusion threshold, it is considered that the light-emitting area of ​​the signal light is complete; Otherwise, the signal light’s luminous area is incomplete; b4: Repeat steps b2 to b3 until the completeness of the luminous areas of the three signal lights in one light group is confirmed, and then the judgment ends; In step a1, when the signal light group to be monitored is an arrow light, the method for determining the completeness specifically includes the following steps: c1: Grayscale the detected signal light group area, and perform adaptive binarization based on the color difference to find the signal light emitting area; c2: Take out any signal light in the signal light group and record it as the signal light to be confirmed; c3: Match the shape of the light-emitting area of ​​the signal light to be confirmed with the set standard arrow light; If the matching difference is less than 0.01, the signal light emitting area is considered complete; Otherwise, the signal light’s luminous area is incomplete; c4: Repeat steps c2 to c3 until the completeness of the luminous areas of the three signal lights in one light group is confirmed, and then the judgment ends; In step a2, the method for determining whether the color of the signal light group to be monitored is within a limited range comprises the following steps: d1: grayscale the detected signal light group area; d2: Take out any signal light in the signal light group and record it as the signal light to be confirmed; D3: Adaptively binarize the color difference to find the light-emitting area of ​​the signal light to be confirmed, and calculate the RGB average value in the area, which is recorded as: the RGB value to be confirmed; d4: Determine the color of the light group in the luminous area of ​​the signal light to be confirmed according to the overall installation method of the light group, recorded as: color limit range; The signal light installation methods include horizontal installation and vertical installation; When the installation method is horizontal, the colors of the light groups from left to right are red, yellow, and green; When the installation method is vertical, the colors of the light groups from top to bottom are red, yellow, and green; d5: comparing the RGB value to be confirmed with the color limit range; If the RGB value to be confirmed is within the color limit range, it is determined that the color of the signal light to be confirmed belongs to the limit range; Otherwise, it is determined that the set color value range is exceeded, and the color of the signal light to be confirmed is distorted; Step a4 specifically includes the following steps: e1: Based on the continuous time-series video image, grayscale the detected signal light group area, and adaptively binarize the signal light emitting area according to the color difference; e2: Take out each signal light in the signal light group one by one and record them as: signal lights to be confirmed; e3: Determine the color of the light group in the light-emitting area of ​​the signal light to be confirmed according to the overall installation method of the light group, and record the status of the signal light group in the light group in the order of red, yellow and blue into the array: [red, yellow, blue], the lit state is marked as 1; the off state is marked as 0; e4: Acquire a complete cycle of changes in the signal lights corresponding to the signal light group to be monitored based on the continuous time-series video images; e5: Read the color change time series data of the signal light group to be monitored according to the installation method of the light group, and record it as: comparison time series data; e6: Compare the color sequence of the signal light group to be monitored in the complete cycle of the signal light change with the comparison sequence data to see whether they are consistent; If they are inconsistent, the fault is judged to be: abnormal phase of the signal light, and this test is terminated; Otherwise, there is no abnormality in the phase of the signal light; Step a5 specifically includes the following steps: f1: connect to the signal light control system, read the light group status data, recorded as: the comparison light group status; The comparison light group status includes: the lighting time of each color signal light; f2: Based on the continuous time-series video image, grayscale the detected signal light group area, and perform adaptive binarization according to the color difference to find the signal light emitting area; f3: based on the continuous time-series video images, obtain the lighting time of each color light in the complete cycle of the signal light change corresponding to the signal light group to be monitored, recorded as: actual lighting time; f4: Based on the color, compare the lighting time in the comparison light group state of each color signal light with the actual lighting time; If they are completely consistent, it is determined that there is no abnormality in the signal light phase, and step a6 is executed; Otherwise, the fault is determined to be: abnormal phase of the signal lamp, and the wrong countermeasure is executed; The error countermeasure is any one of the following countermeasures: Countermeasure 1: Notify the signal light control system of the phase abnormality, and have the signal light control system re-issue the phase configuration to the signal light group to be monitored; Countermeasure 2: Based on the actual status of the signal light group to be monitored, notify the signal light control system to modify the status setting in the system; In step a6, the following operation steps are specifically included: g1: Detect the road lane guide markings and determine the current lane direction; Find the signal light group corresponding to the current lane driving direction, recorded as: current lane light group; g2: Find the lane with the same direction as the current lane, recorded as: same-direction lane; Find the signal light group corresponding to the same-direction lane, recorded as: same-direction light group; g3: Collect video images of the current lane light group and the same-direction light group within the same start and end time, and record them as: current lane monitoring image and same-direction comparison monitoring image respectively; g4: Compare whether the changes of the light groups in the current lane monitoring image and the same-direction comparison monitoring image are consistent; If they are inconsistent, the fault is judged to be: abnormal status of the signal light; Otherwise, it is determined that the signal light status is normal.

[0006] The present application provides a method for detecting road traffic signal light faults. The method is based on capturing video images of signal lights to be monitored by monitoring equipment, and monitoring the status of signal lights based on image recognition technology. Through a signal light fault detection model, the method can detect in real time faults such as signal light obstruction, abnormal signal light color, signal light not lighting, signal light always lighting, abnormal signal light phase, and signal light indication not being consistent with road markings. Compared with the existing signal light fault self-checking method, the method can timely discover various types of signal light faults that cause signal light failure based on the perspective of signal light users, and effectively reduce the probability of the risk of traffic accidents caused by signal light faults. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] Figure 1 A logical flow chart of a road traffic signal light fault detection method in this application; Figure 2 It is a schematic diagram of the system structure of the monitoring equipment; Figure 3 This is the completeness judgment diagram of the disk signal light; Figure 4 This is a diagram for judging the completeness of arrow signal lights. DETAILED DESCRIPTION

[0008] like Figure 1 As shown, the present application includes a road traffic signal light fault detection method, which includes the following steps.

[0009] S1: A monitoring device is set for the signal light group to be monitored, and a video image of the signal light group to be monitored is captured in real time, which is recorded as a monitoring image.

[0010] S2: Build a traffic light fault detection model. The trained traffic light fault detection model is also stored in the monitoring device.

[0011] like Figure 2 As shown, the monitoring device includes a video or image acquisition device, a storage device and a control chip with computing capabilities, wherein the video acquisition device or the image acquisition device is installed in the following manner: at least one monitoring device is installed in the same direction at the intersection to be monitored, ensuring that all traffic light groups in the same direction can acquire video data or image data. The acquisition device can be implemented based on a monitoring camera with computing capabilities in the prior art. After acquiring the video image of the traffic light, the video image can be decomposed into video frames, and then the specific position of the traffic light group in the image can be identified based on the existing image recognition technology.

[0012] At the same time, the monitoring equipment also needs to store basic information such as the location and type of road traffic lights. The control chip uses the trained signal light fault detection model based on the video data or image data collected by the acquisition device to determine in real time whether there is a fault in the signal light group to be monitored. Once a fault is detected, it will be reported to the traffic control platform immediately; when reporting a fault, the fault information, the video data or image data associated with the fault, and the location and type of the signal light will be packaged and uploaded to the traffic control platform at the same time, providing sufficient information for technicians to handle the fault in a timely manner. Common types of signal light faults include: Traffic light faults are divided into signal light obstruction, abnormal signal light color, signal light not on, signal light always on, abnormal signal light phase, signal light indication inconsistent with road markings, etc.

[0013] S3: Using the monitoring images, based on the trained traffic light fault detection model, perform preset fault monitoring, and report the fault to the traffic control platform in real time; in the traffic light fault detection model, the specific fault monitoring steps include the following.

[0014] a1: Detect whether there is a signal light in the video image; If the signal light is not detected in the video image, or the detected signal light is incomplete, the fault is determined to be: the signal light is blocked, and the detection is terminated; Otherwise, if the signal light is not blocked, execute step a2.

[0015] Common types of signal light sets include: disc lights and arrow lights. Regardless of the type of signal light set, it can be identified based on existing image recognition technology.

[0016] like Figure 3 As shown, when the signal light group to be monitored is a disc light, the method for judging the completeness specifically includes the following steps: b1: Find the area where the signal light group is located in the video image, grayscale the detected signal light group area, and perform adaptive binarization based on the color difference to find the signal light emitting area; b2: Take out any signal light in the signal light group and record it as the signal light to be confirmed; Find the minimum circumscribed circle for the signal light emitting area of ​​the signal light to be confirmed after binarization; b3: Take the pixel intersection of the minimum circumscribed circle and the binary signal light emitting area; The pixel intersection is compared with a preset occlusion threshold. If the pixel intersection is greater than the occlusion threshold, it is considered that the light-emitting area of ​​the signal light is complete. In this embodiment, the occlusion threshold is set to: 90% of the minimum circumscribed circle pixels; That is, if the pixel intersection is greater than 90% of the pixels of the smallest circumscribed circle, the light emitting area of ​​the signal light is considered complete; Otherwise, the signal light’s luminous area is incomplete; b4: Repeat steps b2 to b3 until the completeness of the luminous areas of the three signal lights in one light group is confirmed, and then end the judgment.

[0017] The occlusion threshold can be set according to the actual situation. Because a certain degree of occlusion of the luminous area, such as debris stuck on the signal light due to accidental, does not affect the actual use of the signal light. Because the detection in this method is real-time detection, there must be a luminous signal light in the video image, and the luminous signal light is judged to ensure that any occlusion or damage that affects the actual signal transmission of the signal light and causes an incomplete luminous area of ​​the signal light can be discovered in time.

[0018] When the signal light group to be monitored is an arrow light, because signal lights are standard workpieces, each arrow light has a reference to standard shape and size. Therefore, use the shape and size of your arrow light to compare with the signal light group to be monitored to determine the completeness of the luminous area. Figure 4 As shown, the judgment method specifically includes the following steps: c1: Grayscale the detected signal light group area, and perform adaptive binarization based on the color difference to find the signal light emitting area; c2: Take out any signal light in the signal light group and record it as the signal light to be confirmed; c3: Match the shape of the light-emitting area of ​​the signal light to be confirmed with the set standard arrow light; If the matching difference is less than 0.01, the signal light emitting area is considered complete; Otherwise, the signal light’s luminous area is incomplete; c4: Repeat steps c2 to c3 until the completeness of the luminous areas of the three signal lights in one light group is confirmed, and then end the judgment.

[0019] a2: Determine the position of the corresponding light groups of red, yellow and green according to the installation method of the signal light, and judge whether the color of each light group is within the specified range. If it exceeds the specified color range, the fault is judged as: the color of the signal light is abnormal, and the test ends; Otherwise, it is determined that the color of the signal light is normal, and step a3 is executed.

[0020] Common installation methods of signal light groups include horizontal installation and vertical installation; When the installation method is horizontal, the colors of the light groups from left to right are red, yellow, and green; When installed vertically, the colors of the light groups from top to bottom are red, yellow, and green.

[0021] After the image acquisition device captures the image of the traffic light group, the color of each traffic light in the light group is identified based on the existing traffic light color recognition method, and then the installation method of the light group can be determined according to the position of each color in the signal light group in the picture.

[0022] In step a2, the method for determining whether the color of the signal light group to be monitored is within a limited range comprises the following steps: d1: grayscale the detected signal light group area; d2: Take out any signal light in the signal light group and record it as the signal light to be confirmed; D3: Adaptively binarize the color difference to find the light-emitting area of ​​the signal light to be confirmed, and calculate the RGB average value in the area, which is recorded as: the RGB value to be confirmed; d4: Determine the color of the light group in the luminous area of ​​the signal light to be confirmed according to the overall installation method of the light group, recorded as: color limit range; D5: Compare the RGB value to be confirmed with the color limit range; If the RGB value to be confirmed is within the color limit range, then it is determined that the color of the signal light to be confirmed is within the limit range; Otherwise, it is determined that the set color value range is exceeded, and the color of the signal light to be confirmed is distorted.

[0023] The color limit range is set according to the actual situation. In this embodiment, the color limit range is set as follows: If it is a red light group, the RGB color value is between (172, 0,0) and (255,36,36), and the color is judged to be within the limited range; If it is a yellow light group, the RGB color value is between (210,210,0) and (255,255,140), and the color is judged to be within the limited range; If it is a green light group, the RGB color value is between (82,164,0) and (182,255,108), and the color is determined to be within the limited range.

[0024] a3: read continuous monitoring images, recorded as: continuous time-series video images; Determine the maximum duration of each preset signal light's on or off state, recorded as: state retention time; Based on the continuous time-series video images, confirm whether any light group state exceeds the state retention time; If it exists, the fault is judged as: the signal light changes abnormally, and this test ends; Otherwise, it is determined that the change of the signal light group is normal, and step a4 is executed.

[0025] a4: Read the color change time series data of the signal light group to be monitored, recorded as: comparison time series data; Based on the continuous time-series video images, determine whether the light color change sequence of the signal light group is consistent with the comparison time-series data; If they are inconsistent, the fault is judged to be: abnormal phase of the signal light, and this test is terminated; Otherwise, if there is no abnormality in the phase of the signal light, go to step a5.

[0026] Generally speaking, the color change sequence in the traffic light group is clearly defined. In actual applications, perhaps because of an error in the phase data in the traffic light control system or an error in the phase data during the transmission process, the order in which the traffic lights change may be wrong. Regardless of the reason for the error in the color change sequence, it is a phase abnormality fault. This type of fault is difficult to detect through self-inspection of the traffic light group. The present application can detect this type of fault in a timely manner by comparing the timing data with the standard. Step a4 specifically includes the following steps: e1: Based on the continuous time-series video image, the detected signal light group area is grayed out, and the signal light emitting area is found out by adaptive binarization according to the color difference; in the specific implementation, the video data including a whole signal cycle is collected according to the preset loop length, and a continuous video image is obtained after processing; e2: Take out each signal light in the signal light group one by one and record them as: signal lights to be confirmed; e3: Determine the color of the light group in the light-emitting area of ​​the signal light to be confirmed according to the overall installation method of the light group, and record the status of the signal light group in the light group in the order of red, yellow and blue into the array: [red, yellow, blue], the lit state is marked as 1; the off state is marked as 0; e4: Acquire the complete cycle of the signal light change corresponding to the signal light group to be monitored based on the continuous time-series video image; e5: Read the color change time series data of the signal light group to be monitored according to the installation method of the light group, and record it as: comparison time series data; The comparison time series data of the disk signal light group is: [1,0,0]->[0,0,1]->[0,1,0]->[1,0,0]; The comparison time series data of the arrow signal light group is: [1,0,0]->[0,0,1]->[0,1,0]->[1,0,0] or [1,0,0]->[0,0,0]->[0,1,0]->[1,0,0]; e6: Compare the color timing and comparison timing data of the signal light group to be monitored in the complete cycle of the signal light change to see if they are consistent; If they are inconsistent, the fault is judged to be: abnormal phase of the signal light, and this test is terminated; Otherwise, there is no abnormality in the signal light phase.

[0027] In some sections of the road, the length of time that the traffic lights are turned on or off will be adjusted for some reason. For example, during the morning and evening rush hours, the length of the green light in a certain direction can be adjusted to alleviate the traffic jams during the morning and evening rush hours. In this case, the traffic light control system will adjust the traffic light control data according to the pre-set rules. However, due to some reasons, such as errors in the traffic light's own processor and the traffic light control system, although the traffic light receives the control signal sent by the traffic light control system and can accurately return the received information, it cannot be correctly implemented according to the control signal. In this method, this type of fault can be accurately detected by comparing the control signal in the control system with the timing diagram actually displayed by the traffic light group.

[0028] a5: Connect to the signal light control system and read the light group status data, recorded as: comparison light group status; Based on the continuous time-series video images, determining whether the state of the light group detected in the continuous time-series video images is consistent with the state of the comparison light group; If they are inconsistent, the fault is judged to be: abnormal phase of the signal light, and this test is terminated; Otherwise, the signal light phase is normal, and step a6 is executed.

[0029] Step a5 specifically includes the following steps: f1: Connect to the signal light control system and read the light group status data, recorded as: comparison light group status; The comparison light group status includes: the lighting time of each color signal light; f2: Based on the continuous time-series video image, the detected signal light group area is grayed out, and the signal light emitting area is found out by adaptive binarization according to the color difference; f3: Based on the continuous time-series video image, the lighting time of each color light in the complete cycle of the signal light change corresponding to the signal light group to be monitored is obtained, which is recorded as: actual lighting time; in specific implementation, in the video image including a whole signal cycle, a video image frame set is obtained according to a preset acquisition frequency; according to the number of image frames of the lighting state of each color light included in the video image frame and the acquisition frequency, the actual lighting time of each color light can be calculated; f4: Based on the color, the lighting time in the comparison light group state of each color signal light is compared with the actual lighting time; when actually comparing, a threshold is set, and the values ​​within the threshold range can be judged as consistent; If they are completely consistent, it is determined that there is no abnormality in the signal light phase, and step a6 is executed; Otherwise, the fault is determined to be: abnormal phase of the signal lamp, and the wrong countermeasure is executed; The error countermeasure is any of the following: Countermeasure 1: Notify the signal light control system of the phase abnormality, and have the signal light control system re-issue the phase configuration to the signal light group to be monitored; Countermeasure 2: Based on the actual status of the signal light group to be monitored, notify the signal light control system to modify the status settings in the system.

[0030] If there is no problem with the line between the signal light itself and the signal light control system, the signal light control system is notified to send the phase configuration data again. If the signal light cannot be implemented after sending the phase configuration data multiple times, it is possible that there is a problem with the controller of the signal light itself, then the signal light control system is notified to stop sending and to modify its own state.

[0031] On some roads, there are settings such as tidal lanes. That is, according to the actual changes in traffic conditions, the running direction of some lanes will be adjusted to correspond to the peak traffic period of the road section. At this time, the signal light group of this lane also needs to be adjusted synchronously. In this method, the driving direction of the lane is determined by identifying the direction indicated by the road markings, and then the signal of the signal light group is identified to determine whether the changes of the signal light group and the lane are consistent.

[0032] a6: Capture images of road markings and identify the directions indicated by the road markings; Based on the monitoring image, determine whether the current signal light group is consistent with the direction indicated by the road marking; If the directions indicated are inconsistent or the status of the light groups in the same direction are inconsistent, the fault is judged to be abnormal signal light status, and the test is terminated; Otherwise, the signal light is judged to be in normal state and the test ends.

[0033] In step a6, the following operation steps are specifically included: g1: Detect the road lane guide markings and determine the current lane direction; Find the signal light group corresponding to the current lane driving direction, recorded as: current lane light group; g2: Find the lane with the same direction as the current lane, recorded as: same-direction lane; Find the signal light group corresponding to the same-direction lane, recorded as: same-direction light group; g3: Collect video images of the current lane light group and the same direction light group within the same start and end time, and record them as: current lane monitoring image and same direction comparison monitoring image respectively; g4: Compare the changes of the light groups in the current lane monitoring image and the same-direction comparison monitoring image to see if they are consistent; If they are inconsistent, the fault is judged to be: abnormal status of the signal light; Otherwise, it is determined that the signal light status is normal.

[0034] For example, two straight lanes in the same direction correspond to two groups of traffic lights respectively. At a certain moment, one group of straight traffic lights is red and the other group of straight traffic lights is green, then the phase of the traffic lights is abnormal.

[0035] After using the technical solution of the present invention, by capturing the video image of the traffic light group, the target detection algorithm is used to detect the traffic lights in the video image, confirm whether the traffic lights are blocked, have abnormal colors, abnormal phases, etc., compare with the road markings to confirm whether there is a conflict between the markings and the traffic lights, compare with the light group status set in the system to confirm whether there is an inconsistency between the light groups, and input the continuous signal light group changes into the signal light phase change judgment model to confirm whether there are situations such as no light, always light, etc. First, detect the types of faults that directly affect traffic, such as signal light blocking, abnormal signal light color, signal light not light, signal light always light; after confirming that the signal light group does not have such a fault type that obviously affects traffic, then compare with the standard timing to detect the abnormal color change timing, compare with the data of the signal light control system to find out the inability to accurately receive the phase configuration signal of the signal light control system, and compare with the road markings to find out the obstacles that the signal light group cannot synchronize with the road markings on the road, so as to ensure that various types of faults can be accurately identified and ensure that the method is applicable to various types of roads and traffic intersections.

Claims

1. A method for detecting a road traffic signal fault, characterized in that: It includes the following steps: S1: Setting monitoring equipment for the signal light group to be monitored, capturing video images of the signal light group to be monitored in real time, recorded as monitoring images; S2: Build a signal light fault detection model; S3: Using the monitoring image, based on the trained signal light fault detection model, perform preset fault monitoring, and report the fault to the traffic control platform in real time; the fault monitoring content specifically includes: a1: Detect whether there is a signal light in the video image; If the signal light is not detected in the video image, or the detected signal light is incomplete, the fault is determined to be: the signal light is blocked, and the detection is terminated; Otherwise, if the signal light is not blocked, execute step a2; a2: Determine the position of the corresponding light groups of red, yellow and green according to the installation method of the signal light, and judge whether the color of each light group is within the specified range. If it exceeds the specified color range, the fault is judged as: the color of the signal light is abnormal, and the test ends; Otherwise, it is determined that the color of the signal light is normal, and step a3 is executed; a3: reading the continuous monitoring images, recorded as continuous time-series video images; Determine the maximum duration of each preset signal light's on or off state, recorded as: state retention time; Based on the continuous time-series video images, confirm whether any light group state exceeds the state retention time; If it exists, the fault is judged as: the signal light changes abnormally, and this test ends; Otherwise, it is determined that the change of the signal light group is normal, and step a4 is executed; a4: Read the color change time series data of the signal light group to be monitored, recorded as: comparison time series data; Based on the continuous time-series video images, determining whether the light color change timing of the signal light group is consistent with the comparison time-series data; If they are inconsistent, the fault is judged to be: abnormal phase of the signal light, and this test is terminated; Otherwise, if there is no abnormality in the phase of the signal light, go to step a5; a5: Connect to the signal light control system and read the light group status data, recorded as: comparison light group status; Based on the continuous time-series video images, determining whether the state of the light group detected in the continuous time-series video images is consistent with the state of the comparison light group; If they are inconsistent, the fault is judged to be: abnormal phase of the signal light, and this test is terminated; Otherwise, the signal light phase is normal, and step a6 is executed; a6: Capture images of road markings and identify the directions indicated by the road markings; Based on the monitoring image, determine whether the current signal light group is consistent with the direction indicated by the road marking; If the directions indicated are inconsistent or the status of the light groups in the same direction are inconsistent, the fault is judged to be abnormal signal light status, and the test is terminated; Otherwise, the signal light is judged to be in normal state and the test ends.

2. A method for detecting a road traffic signal fault according to claim 1, characterized in that: The signal light group to be monitored includes: a disc light and an arrow light.

3. A method for detecting a road traffic signal fault according to claim 2, characterized in that: In step a1, when the signal light group to be monitored is a disc light, the method for judging the integrity specifically comprises the following steps: b1: grayscale the detected signal light group area, and perform adaptive binarization based on the color difference to find the signal light emitting area; b2: Take out any signal light in the signal light group and record it as the signal light to be confirmed; Finding the minimum circumscribed circle for the signal light emitting area of ​​the signal light to be confirmed after binarization; b3: Take the pixel intersection of the minimum circumscribed circle and the binary signal light emitting area; Comparing the pixel intersection with a preset occlusion threshold, if the pixel intersection is greater than the occlusion threshold, it is considered that the light-emitting area of ​​the signal light is complete; Otherwise, the signal light’s luminous area is incomplete; b4: Repeat steps b2 to b3 until the completeness of the luminous areas of the three signal lights in one light group is confirmed, and then end the judgment.

4. A method for detecting a road traffic signal fault according to claim 2, characterized in that: In step a1, when the signal light group to be monitored is an arrow light, the method for determining the completeness specifically includes the following steps: c1: Grayscale the detected signal light group area, and perform adaptive binarization based on the color difference to find the signal light emitting area; c2: Take out any signal light in the signal light group and record it as the signal light to be confirmed; c3: Match the shape of the light-emitting area of ​​the signal light to be confirmed with the set standard arrow light; If the matching difference is less than 0.01, the signal light emitting area is considered complete; Otherwise, the signal light’s luminous area is incomplete; c4: Repeat steps c2 to c3 until the completeness of the luminous areas of the three signal lights in one light group is confirmed, and then end the judgment.

5. A method for detecting a road traffic signal fault according to claim 1, characterized in that: In step a2, the method for determining whether the color of the signal light group to be monitored is within a limited range comprises the following steps: d1: grayscale the detected signal light group area; d2: Take out any signal light in the signal light group and record it as the signal light to be confirmed; D3: Adaptively binarize the color difference to find the light-emitting area of ​​the signal light to be confirmed, and calculate the RGB average value in the area, which is recorded as: the RGB value to be confirmed; d4: Determine the color of the light group in the luminous area of ​​the signal light to be confirmed according to the overall installation method of the light group, recorded as: color limit range; The signal light installation methods include horizontal installation and vertical installation; When the installation method is horizontal, the colors of the light groups from left to right are red, yellow, and green; When the installation method is vertical, the colors of the light groups from top to bottom are red, yellow, and green; d5: comparing the RGB value to be confirmed with the color limit range; If the RGB value to be confirmed is within the color limit range, it is determined that the color of the signal light to be confirmed belongs to the limit range; Otherwise, it is determined that the set color value range is exceeded, and the color of the signal light to be confirmed is distorted.

6. A method for detecting a road traffic signal fault according to claim 1, characterized in that: Step a4 specifically includes the following steps: e1: Based on the continuous time-series video image, grayscale the detected signal light group area, and adaptively binarize the signal light emitting area according to the color difference; e2: Take out each signal light in the signal light group one by one and record them as: signal lights to be confirmed; e3: Determine the color of the light group in the light-emitting area of ​​the signal light to be confirmed according to the overall installation method of the light group, and record the status of the signal light group in the light group in the order of red, yellow and blue into the array: [red, yellow, blue], the lit state is marked as 1; the off state is marked as 0; e4: Acquire a complete cycle of changes in the signal lights corresponding to the signal light group to be monitored based on the continuous time-series video images; e5: Read the color change time series data of the signal light group to be monitored according to the installation method of the light group, and record it as: comparison time series data; e6: Compare the color sequence of the signal light group to be monitored in the complete cycle of the signal light change with the comparison sequence data to see whether they are consistent; If they are inconsistent, the fault is judged to be: abnormal phase of the signal light, and this test is terminated; Otherwise, there is no abnormality in the signal light phase.

7. A method for detecting a road traffic signal fault according to claim 1, characterized in that: Step a5 specifically includes the following steps: f1: connect to the signal light control system, read the light group status data, recorded as: the comparison light group status; The comparison light group status includes: the lighting time of each color signal light; f2: Based on the continuous time-series video image, grayscale the detected signal light group area, and perform adaptive binarization according to the color difference to find the signal light emitting area; f3: based on the continuous time-series video images, obtain the lighting time of each color light in the complete cycle of the signal light change corresponding to the signal light group to be monitored, recorded as: actual lighting time; f4: Based on the color, compare the lighting time in the comparison light group state of each color signal light with the actual lighting time; If they are completely consistent, it is determined that there is no abnormality in the signal light phase, and step a6 is executed; Otherwise, the fault is determined to be: abnormal phase of the signal lamp, and the wrong countermeasure is executed; The error countermeasure is any one of the following countermeasures: Countermeasure 1: Notify the signal light control system of the phase abnormality, and have the signal light control system re-issue the phase configuration to the signal light group to be monitored; Countermeasure 2: Based on the actual status of the signal light group to be monitored, notify the signal light control system to modify the status setting in the system.

8. A method for detecting a road traffic signal fault according to claim 1, characterized in that: In step a6, the following operation steps are specifically included: g1: Detect the road lane guide markings and determine the current lane direction; Find the signal light group corresponding to the current lane driving direction, recorded as: current lane light group; g2: Find the lane with the same direction as the current lane, recorded as: same-direction lane; Find the signal light group corresponding to the same-direction lane, recorded as: same-direction light group; g3: Collect video images of the current lane light group and the same-direction light group within the same start and end time, and record them as: current lane monitoring image and same-direction comparison monitoring image respectively; g4: Compare whether the changes of the light groups in the current lane monitoring image and the same-direction comparison monitoring image are consistent; If they are inconsistent, the fault is judged to be: abnormal status of the signal light; Otherwise, it is determined that the signal light status is normal.

Citation Information

Cited By

  • Method and device for determining abnormal state of signal lamp, storage medium and electronic device

    CN119854656A