An emergency control method and system for a traffic signal lamp, a terminal and a storage medium
Patent Information
- Application Number
- CN202511019738.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-23
- Publication Date
- 2026-08-18
- Estimated Expiration
- 2045-07-23
AI Technical Summary
[0004]针对上述中的相关技术,交通信号灯出现故障需要依赖维修人员到达故障现场维修,耗时较长,造成交通信号灯长时间处于不工作状态,容易造成交通拥堵,导致交通信号灯的应急能力差,还有改进的空间
[0077] 1. By comparing the status data of the LED beads with the normal status data of the LED beads, when the status data of the LED beads is inconsistent with the normal status data of the LED beads, the traffic signal adjustment device is controlled to adjust the traffic signal light according to the fault type of the LED beads. In this way, the traffic signal light can still guide pedestrians to cross normally during the maintenance of the traffic signal light by the operation and maintenance personnel, thereby improving the emergency response capability of the traffic signal light.
Smart Images

Figure CN120998052B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of intelligent transportation technology, and in particular to a traffic signal emergency control method, system, terminal and storage medium. Background Technology
[0002] Traffic lights are traffic facilities that use specific colored lights to direct and control the flow of traffic for vehicles, pedestrians, and other road users. Traffic lights typically consist of three colors: red, yellow, and green. Red indicates a prohibition on passage, yellow indicates a warning or transition period, and green indicates permission to proceed.
[0003] In related technologies, traffic signal light fault detection involves monitoring the voltage and current of the LED beads. When the voltage and current are found to be abnormal, it indicates that the traffic signal light has malfunctioned. At this time, the controller activates the fault reporting command and sends maintenance prompt information to the terminal of the maintenance personnel, thereby prompting the maintenance personnel to repair the malfunctioning traffic signal light.
[0004] Regarding the aforementioned technologies, traffic signal malfunctions require maintenance personnel to arrive at the scene for repairs, which is time-consuming and causes the traffic signals to remain inactive for extended periods, potentially leading to traffic congestion. This results in poor emergency response capabilities for traffic signals, indicating room for improvement. Summary of the Invention
[0005] To improve the emergency response capability of traffic lights, this application provides a traffic light emergency control method, system, terminal, and storage medium.
[0006] Firstly, this application provides a traffic signal light emergency control method, which adopts the following technical solution:
[0007] A traffic light emergency control method, comprising:
[0008] Obtain the status data of the LED beads of the preset traffic lights;
[0009] Determine whether the LED status data is consistent with the preset normal LED status data;
[0010] If they match, continue to acquire LED status data and perform loop checks.
[0011] If they are inconsistent, then obtain the LED fault type;
[0012] The traffic lights are adjusted by controlling the preset traffic light adjustment device according to the type of lamp failure.
[0013] By adopting the above technical solution, the status data of the LED beads is compared with the normal status data of the LED beads. When the status data of the LED beads is inconsistent with the normal status data of the LED beads, the traffic signal adjustment device is controlled to adjust the traffic signal according to the type of LED bead failure. In this way, the traffic signal can still guide pedestrians to cross normally during the maintenance of the traffic signal by the operation and maintenance personnel, thereby improving the emergency response capability of the traffic signal.
[0014] Optionally, the traffic light adjustment device includes an indicator replacement component and a lamp adjustment component. The step of controlling the preset traffic light adjustment device to adjust the traffic light according to the lamp failure type includes:
[0015] The lamp bead fault type is determined to be either a preset single-color lamp bead fault type or a preset lamp bead indicator fault type.
[0016] If the LED is a single-color abnormality, then obtain the LED's constant-on color.
[0017] Adjust the traffic lights by replacing components according to the constant-on color control indication of the LED beads;
[0018] If the LED indicator is abnormal, then obtain the normal LED position in the preset indicator area;
[0019] The traffic lights are adjusted by controlling the LED adjustment component based on the normal LED position.
[0020] By adopting the above technical solution, the types of LED chip failures are analyzed. When the LED chip failure type is determined to be a single-color abnormality, the constant-on color of the LED chip is detected, and the traffic signal light is adjusted by controlling the replacement component according to the constant-on color of the LED chip. When the LED chip failure type is determined to be an LED chip indicator abnormality, the position of the normal LED chip in the indicator area is detected, and the traffic signal light is adjusted by controlling the LED chip adjustment component according to the position of the normal LED chip. This realizes the self-diagnosis function of traffic signal light failures, which facilitates subsequent emergency handling of failures.
[0021] Optionally, the steps for adjusting the traffic lights by replacing components based on the constant-on color control indication of the LEDs include:
[0022] Analyze the colors that the LEDs are constantly lit to determine the colors that the LEDs should light up.
[0023] The replacement indicator number is determined based on the color that the LED should illuminate and the preset LED indicator relationship;
[0024] The replacement indicator holding time is determined based on the relationship between the color that the LED should illuminate and the preset color display time.
[0025] The replacement indicator reset time is determined based on the relationship between the constant light color of the LED and the color display time.
[0026] Get the LED display status;
[0027] Determine whether the LED display status is consistent with the preset complete LED display status;
[0028] If they are inconsistent, the control instruction will be flipped to cover the traffic lights according to the preset alternating adjustment method;
[0029] If they match, the replacement component is controlled to flip and cover the traffic light according to the replacement instruction sequence number, replacement instruction holding time, and replacement instruction reset time.
[0030] By adopting the above technical solution, when the display state of the LED bead is consistent with the complete state of the LED bead, the indicator replacement component is controlled to flip and cover the traffic light according to the replacement indicator sequence number, replacement indicator holding time, and replacement indicator reset time. If they are inconsistent, the indicator replacement component is controlled to flip and cover the traffic light according to the alternating adjustment method. Thus, when the LED bead has a constant lighting fault and the shape of the indicator area is complete, the indicator replacement component is controlled to flip the indicator replacement component corresponding to the color that should be lit and cover the traffic light, so that the traffic light can normally indicate pedestrians to cross.
[0031] Optionally, the step of controlling the replacement component to flip and cover the traffic light according to a preset alternating adjustment method includes:
[0032] The switching indicator sequence number is determined based on the constant light color of the LED and the indicator relationship of the LED;
[0033] The switching instruction number and the replacement instruction number are analyzed to determine the first replacement number and the second replacement number;
[0034] The control instruction for the replacement component to flip and cover the traffic light according to the first replacement sequence number is obtained, and the actual covering time is obtained.
[0035] The first replacement sequence number, replacement indication holding time, and replacement indication reset time are analyzed to determine the actual replacement time;
[0036] Determine whether the actual replacement time meets the requirements of the actual replacement time;
[0037] If it does not meet the requirements, continue to obtain the actual occlusion time for replacement and perform loop judgment;
[0038] If the conditions are met, the replacement component is reset according to the control instruction of the first replacement number, and the second replacement number is defined as the new first replacement number, and the first replacement number is defined as the new second replacement number;
[0039] The control instruction for the replacement component to flip and cover the traffic light is based on the new first replacement sequence number, and the actual covering time is obtained again for cyclic judgment.
[0040] By adopting the above technical solution, when the actual covering time meets the requirements of the actual replacement time, the indicator replacement component is reset according to the first replacement sequence number, and the second replacement sequence number is determined as the new first replacement sequence number. The indicator replacement component is then controlled to flip and cover the traffic light according to the new first replacement sequence number, so that the indicator replacement component can switch according to the normal color switching of the traffic light, thus ensuring the indicator function of the traffic light in the fault state.
[0041] Optionally, the steps for adjusting the traffic signal light by controlling the lamp adjustment assembly according to the normal lamp position include:
[0042] Determine whether the position of the normal LED bead meets the preset requirements for the normal display LED bead position;
[0043] If the conditions are met, the positions of the normal LED beads and the normal display LED beads will be analyzed to determine the positions of the LED beads to be used.
[0044] The traffic signal light is restarted by controlling the lamp adjustment component to illuminate the corresponding lamp in the indicator area according to the position of the lamp used.
[0045] If not, obtain the backup zone number and backup normal LED position of the preset backup zone;
[0046] The traffic lights are adjusted by controlling the lamp adjustment component according to the spare zone number and the position of the spare normal lamp.
[0047] By adopting the above technical solution, it is determined whether the position of the normal LED bead meets the requirements for the position of the normal display LED bead. When the requirements are met, the LED bead adjustment component is controlled to illuminate the corresponding LED bead in the indicator area according to the position of the LED bead used. The indicator formed by this LED bead is hollow. Compared with the indicator formed by directly scaling down proportionally, the hollow indicator has a larger indicator area and can make the most of the normal LED bead in the indicator area. When the requirements are not met, after determining the spare area number and the position of the spare normal LED bead, the LED bead adjustment component is controlled to form a new indicator according to the spare area number and the position of the spare normal LED bead. This indicator is obtained by translating the original indicator and does not affect the normal indicator function of the traffic signal light.
[0048] Optionally, the steps for adjusting the traffic lights by controlling the lamp adjustment assembly based on the spare zone number and the position of the spare normal lamps include:
[0049] The location of the backup area is determined based on the backup area number and the preset backup area location relationship;
[0050] The locations of the backup area and the preset indicator area are analyzed to determine the area translation parameters;
[0051] The location of the spare display LEDs is determined by analyzing the area translation parameters and the positions of the normal display LEDs.
[0052] Determine whether the position of the spare normal LED meets the requirements for the position of the spare display LED;
[0053] If the conditions are met, the positions of the spare normal LEDs and the spare display LEDs will be analyzed to determine the position of the spare LEDs.
[0054] The traffic signal light is restarted by controlling the lamp adjustment component to illuminate the corresponding lamp in the standby area based on the position of the standby lamp;
[0055] If it does not meet the requirements, the traffic lights will be adjusted by replacing the components according to the constant-on color control indication of the LED beads.
[0056] By adopting the above technical solution, the area translation parameters are obtained by analyzing the backup zone number, the backup zone position relationship, and the indicator zone position. The backup indicator light position is obtained by analyzing the area translation parameters and the normal indicator light position. It is then determined whether the backup normal indicator light position meets the requirements of the backup indicator light position. If it does, the indicator light adjustment component is controlled to light up the corresponding indicator light in the backup zone to restart the traffic light, thereby achieving the normal indicator effect of the traffic light. If it does not meet the requirements, the indicator replacement component is controlled to adjust the traffic light according to the constant light color of the indicator light. This allows the traffic light to be adjusted even when the normal light light of the traffic light cannot meet the indicator requirements. The indicator replacement component can cover the traffic light and flip the indicator replacement component corresponding to the color that should be lit to achieve the indicator function, thus not affecting pedestrians from crossing according to the instructions.
[0057] Optionally, the steps for obtaining the spare zone number and the position of the spare normal LED in the preset spare zone include:
[0058] The preset indicator zones and normal LED positions are analyzed to determine the number of normal LEDs in each indicator zone and the corresponding indicator zone number.
[0059] Obtain the number of normal LED beads in the preset background partition and the corresponding background partition number;
[0060] The number of normal LEDs in the indicator zone, the corresponding indicator zone number, the number of normal LEDs in the background zone, and the corresponding background zone number are analyzed to determine the number of LEDs in the joint zone and the corresponding joint zone number.
[0061] The number of LEDs in a joint partition and the corresponding joint partition number are sorted and analyzed to determine the partition number with the most LEDs.
[0062] The location of the spare normal LED is obtained based on the partition number of the most LED, and the partition number of the most LED is defined as the spare partition number.
[0063] By adopting the above technical solution, the number of normal LEDs in the indicator zone, the corresponding indicator zone number, the number of normal LEDs in the background zone, and the corresponding background zone number are analyzed to determine the number of LEDs in the joint zone and the corresponding joint zone number. The number of LEDs in the joint zone is sorted, and the joint zone number corresponding to the largest number of LEDs in the joint zone is defined as the spare zone number. This ensures that the number of usable LEDs in the spare zone is the largest, and increases the probability of restarting LEDs in the spare zone to provide indication.
[0064] Secondly, this application provides a traffic signal emergency control system, which adopts the following technical solution:
[0065] A traffic signal emergency control system, comprising:
[0066] The acquisition module is used to acquire LED status data and LED fault types;
[0067] A memory for storing a program for an emergency control method for traffic lights as described in any of the preceding claims;
[0068] The processor and the program in the memory can be loaded and executed by the processor to implement a traffic signal emergency control method as described in any of the above.
[0069] By adopting the above technical solution, the processor loads and executes a program for an emergency control method of traffic lights stored in the memory. The control acquisition module acquires a series of data related to the implementation of emergency control of traffic lights, and compares the lamp status data with the normal status data of the lamps. When the lamp status data is inconsistent with the normal status data, the traffic light adjustment device is controlled to adjust the traffic lights according to the lamp fault type. Thus, during the maintenance of the traffic lights by the operation and maintenance personnel, the traffic lights can still guide pedestrians to cross normally, thereby improving the emergency response capability of the traffic lights.
[0070] Thirdly, this application provides a smart terminal, which adopts the following technical solution:
[0071] A smart terminal includes a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executed as described in any of the preceding claims, a traffic signal emergency control method.
[0072] By adopting the above technical solution, and by operating a smart terminal, the processor loads and executes a computer program for an emergency control method of traffic lights stored in the memory. This program compares the status data of the LED beads with the normal status data of the LED beads. When the status data of the LED beads is inconsistent with the normal status data, the program controls the traffic light adjustment device to adjust the traffic lights according to the type of LED bead fault. This ensures that the traffic lights can still guide pedestrians to cross normally during the maintenance process, thereby improving the emergency response capability of the traffic lights.
[0073] Fourthly, this application provides a computer storage medium capable of storing corresponding programs, which facilitates the improvement of the emergency response capabilities of traffic lights, and adopts the following technical solution:
[0074] A computer-readable storage medium storing a computer program that can be loaded by a processor and executed any of the above-described traffic light emergency control methods.
[0075] By adopting the above technical solution, the processor loads and executes a computer program for an emergency control method of traffic lights stored in the storage medium by operating a computer-readable storage medium. This program compares the status data of the LED beads with the normal status data of the LED beads. When the status data of the LED beads is inconsistent with the normal status data, the traffic light adjustment device is controlled to adjust the traffic lights according to the type of LED bead failure. This ensures that the traffic lights can still guide pedestrians to cross normally during the maintenance process of the traffic lights, thereby improving the emergency response capability of the traffic lights.
[0076] In summary, this application includes at least one of the following beneficial technical effects:
[0077] 1. By comparing the status data of the LED beads with the normal status data of the LED beads, when the status data of the LED beads is inconsistent with the normal status data of the LED beads, the traffic signal adjustment device is controlled to adjust the traffic signal light according to the fault type of the LED beads. In this way, the traffic signal light can still guide pedestrians to cross normally during the maintenance of the traffic signal light by the operation and maintenance personnel, thereby improving the emergency response capability of the traffic signal light.
[0078] 2. When the LED display status matches the LED complete status, the indicator replacement component is controlled to flip and cover the traffic light according to the replacement indicator sequence number, replacement indicator holding time, and replacement indicator reset time. If they do not match, the indicator replacement component is controlled to flip and cover the traffic light according to the alternating adjustment method. Thus, when the LED has a constant lighting fault and the indicator area is complete, the indicator replacement component is controlled to flip and cover the indicator replacement component corresponding to the color that should be lit, thereby enabling the traffic light to normally indicate pedestrians to cross.
[0079] 3. By analyzing the number of normal LEDs in the indicator partition and the corresponding indicator partition number, as well as the number of normal LEDs in the background partition and the corresponding background partition number, the number of LEDs in the joint partition and the corresponding joint partition number are determined. The number of LEDs in the joint partition is then sorted, and the joint partition number with the most LEDs is defined as the spare partition number. This ensures that the number of usable LEDs in the spare partition is maximized, increasing the probability of restarting LEDs in the spare partition for indication. Attached Figure Description
[0080] Figure 1 This is a flowchart of a traffic light emergency control method according to an embodiment of this application.
[0081] Figure 2 This is a flowchart illustrating the steps in this application embodiment of controlling a preset traffic signal adjustment device to adjust the traffic signal according to the type of lamp failure.
[0082] Figure 3 This is a flowchart of the steps in this application embodiment to adjust the traffic signal light according to the replacement component of the constant-on color control indicator of the LED.
[0083] Figure 4 This is a flowchart of the steps in which the control instruction replacement component flips to cover the traffic light according to a preset alternating adjustment method in an embodiment of this application.
[0084] Figure 5 This is a flowchart illustrating the steps of adjusting traffic lights by controlling the LED bead adjustment component according to the normal LED bead position in this embodiment of the application.
[0085] Figure 6 This is a flowchart illustrating the steps in this application embodiment of controlling the lamp adjustment component to adjust the traffic signal light according to the spare zone number and the position of the spare normal lamp.
[0086] Figure 7 This is a flowchart of the steps for obtaining the spare zone number and the position of the spare normal LED in the preset spare zone in the embodiments of this application. Detailed Implementation
[0087] To make the purpose, technical solution, and advantages of this application clearer, the following description is provided in conjunction with the appendix. Figures 1 to 7 The present application will be further described in detail below with reference to embodiments. It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the application.
[0088] This application discloses an emergency control method for traffic lights, which mainly addresses traffic light malfunctions. Specifically, it discloses a traffic light, a lamp status monitoring device, a processing terminal, and a traffic light adjustment device. The processing terminal is communicatively connected to both the traffic light and the traffic light adjustment device to achieve data interaction and control. After the lamp status monitoring device sends lamp status data to the processing terminal, the processing terminal compares the lamp status data with the normal lamp status data. When the lamp status data is inconsistent with the normal lamp status data, the processing terminal controls the traffic light adjustment device to adjust the traffic light according to the lamp malfunction type. This aims to quickly and reasonably control the traffic light adjustment device to adjust the traffic light, ensuring that the traffic light can still normally indicate traffic in emergency situations.
[0089] Reference Figure 1 This application discloses an emergency control method for traffic lights, comprising the following steps:
[0090] Step S100: Obtain the status data of the preset traffic light bulbs.
[0091] Traffic lights are traffic facilities that use specific colored light signals to direct and control the passage of vehicles, pedestrians, and other road users.
[0092] LED status data refers to a set of parameters reflecting the working status, color status, and brightness status of LEDs. In one embodiment, all LEDs of the traffic light are divided into multiple regions, and the voltage and current status of each region is monitored in real time using voltage and current sensors to obtain the working status of LEDs in each region. In another embodiment, images of the traffic light are captured by a camera, and the color and brightness status of the LEDs are determined by image recognition technology.
[0093] By acquiring LED status data, LEDs can be monitored in real time, providing data support for subsequent identification of LED fault types.
[0094] Step S101: Determine whether the LED status data is consistent with the preset LED normal status data.
[0095] Among them, the normal status data of the LED beads refers to the set of various parameters reflecting the working status, color status, and brightness of the LED beads when the traffic lights are working normally. When the LED beads are working normally, the color of the LED beads follows the switching sequence of "green light-red light-green light" and the timing sequence of "on-off-flashing". When the LED beads are working normally, the brightness of the LED beads needs to reach 4000-8000 cd / m² during the day. 2 At night, the brightness needs to reach 30%-50% of the daytime brightness.
[0096] By processing the terminal to determine whether the LED status data and the normal LED status data are consistent, it can be determined whether the LED has malfunctioned.
[0097] Step S1011: If they match, continue to acquire LED status data and perform loop judgment.
[0098] If the processing terminal determines that the LED status data is consistent with the LED normal status data, it indicates that the LED display color is correct and there are no LEDs with abnormal brightness in the indicator area. Therefore, it continues to acquire LED status data and compare it with the LED normal status data to continuously monitor the LEDs.
[0099] The indicator area refers to the area where the original indicator is located in the traffic signal light. It is usually in the middle area of the traffic signal light. The indicator is a signal light symbol formed by the arrangement of light beads to form an arrow shape.
[0100] Step S1012: If there is a discrepancy, obtain the lamp bead fault type.
[0101] If the processing terminal determines that the LED status data is inconsistent with the normal LED status data, it indicates that the LED is faulty. This may be due to one or more of the following situations: abnormal brightness of LEDs in the indicator area, LEDs in the indicator area displaying a single color. Therefore, the fault type of the LED is detected to provide data support for subsequent adjustments to the traffic lights.
[0102] Lamp chip failure types refer to the classification of lamp chip failures based on different deviations in lamp chip status data. Lamp chip status data is detected by lamp chip status monitoring equipment and transmitted to a processing terminal via a communication module. The processing terminal compares the lamp chip status data with normal lamp chip status data. When a deviation in lamp chip brightness data or a lamp chip not lighting is detected, the terminal automatically classifies it as an lamp chip indicator anomaly; when a deviation in lamp chip color data is detected, the terminal automatically classifies it as a single-color lamp chip.
[0103] LED bead monitoring equipment refers to a device consisting of a camera, voltage and current sensors, a timer module, and a communication module, used to monitor the working status of LED beads and acquire LED bead status data in real time.
[0104] Step S10121: Adjust the traffic lights by controlling the preset traffic light adjustment device according to the type of lamp failure.
[0105] After the processing terminal determines the fault type, it controls the traffic light adjustment device to adjust the traffic lights. The specific method is as follows: Figure 2 These steps ensure that traffic lights can still function properly to direct traffic even when they malfunction.
[0106] A traffic signal adjustment device refers to a device that adjusts traffic signals according to the fault type after the processing terminal identifies the fault type in order to achieve the display function. It includes an indicator replacement component and a lamp bead adjustment component. The indicator replacement component is a component fixed to the back of the traffic signal, consisting of an indicator sign and a shaft that controls its switching display. The indicator sign includes two indicator signs, one red and one green. When the lamp bead is normally lit in red and the lamp bead should be lit in green, the shaft of the indicator replacement component is rotated so that the green plastic plate covers the original traffic signal, thereby realizing the function of displaying a green indicator.
[0107] A lamp adjustment component refers to a component that can perform movement or cutout display operations on the indicator area when the brightness of the lamps in the indicator area is abnormal. It includes a traffic light, a lamp status monitoring device, and a processing terminal. When some lamps in the indicator area are not lit, the lamp status monitoring device sends the lamp status data of the indicator area to the processing terminal. The processing terminal compares the lamp status data of the indicator area with the normal lamp status data and determines the number and location of the lamps that are not lit. Simultaneously, the processing terminal analyzes whether there is an area in the traffic light where movement or cutout display operations can be performed. If so, the lamps that are moved or cutout to form the indicator are lit. The lamp status monitoring device determines the actual color that the lamps should illuminate, and then transmits this data to the processing terminal via a communication module. The processing terminal controls the drive circuit according to the actual color that the lamps should illuminate, thereby causing the lamps to emit light according to the actual color they should illuminate.
[0108] Reference Figure 2 The steps for adjusting traffic lights according to the type of LED malfunction by controlling the preset traffic light adjustment device include:
[0109] Step S200: Determine whether the lamp bead fault type is a preset single-color lamp bead abnormality type or a preset lamp bead indicator abnormality type.
[0110] Among them, the single-color abnormality type of the LED refers to either the traffic signal light displaying a single color in the indicator area or the indicator area displaying a single color and the indicator area LEDs exhibiting abnormal brightness.
[0111] The "light bead indicator abnormality type" refers to a fault condition where the brightness of the light beads in the traffic signal indicator area is abnormal.
[0112] The processing terminal determines whether the lamp bead fault type is a single color abnormality or an indicator abnormality, thus providing a basis for the subsequent control of the traffic signal adjustment device to adjust the traffic signal according to the fault type.
[0113] Step S2001: If it is a single-color abnormality type of LED, then obtain the constant color of the LED.
[0114] If the processing terminal determines that the lamp bead fault type is a single color abnormality, it means that the lamp bead in the indicator area only displays a single color and does not operate in the switching sequence of "green light-red light-green light" and the timing sequence of "on-off-flashing".
[0115] The constant-on color of the LED refers to the color that remains unchanged when the traffic light malfunctions into a single-color anomaly type. The original image of the traffic light is captured by a camera, and then preprocessed to enhance the color characteristics of the traffic light. The preprocessed image is then spatially transformed to reduce the interference of ambient light intensity on color judgment. Finally, the color displayed by the traffic light is determined by color threshold segmentation, which is the constant-on color of the LED.
[0116] Step S20011: Adjust the traffic signal light according to the replacement component based on the constant-on color control indication of the LED.
[0117] After the LED status monitoring device determines the LED's constant-on color, the processing terminal controls the indicator replacement component to adjust the traffic light. The specific method is as follows: Figure 3 These steps ensure that traffic lights can still function properly even when they malfunction, allowing pedestrians to cross the road according to the instructions.
[0118] Step S2002: If the lamp indicator is abnormal, obtain the normal lamp position in the preset indicator area.
[0119] If the processing terminal determines that the LED fault type is an LED indicator malfunction, it indicates that the brightness of the LEDs in the indicator area is abnormal. This includes two situations: the LEDs in the indicator area are not lit or the brightness is too dim. Dim brightness includes LED brightness not reaching 4000-8000 cd / m² during the day. 2 Or the brightness at night may not reach 30%-50% of that during the day, so the normal position of the indicator lights is detected to provide data support for the subsequent adjustment of the traffic lights by the control light bead adjustment components.
[0120] The normal LED position refers to the coordinates of the LEDs that are working normally within the indicator area. The original image of the traffic light is captured by a camera, and then the original image is preprocessed to highlight the normal LED area. The outline of the normal LED is then detected, and the preset coordinate system is mapped onto the image through the processing terminal. This allows the identification of the specific coordinates of the center of each outline in the coordinate system, thus obtaining the normal LED position.
[0121] The indicator area in this step is the same as the indicator area in step S1011 above, and will not be described again here.
[0122] Step S20021: Adjust the traffic signal light by controlling the lamp bead adjustment component according to the normal lamp bead position.
[0123] After determining the correct LED position, the processing terminal controls the LED adjustment component to adjust the traffic light. The specific method is as follows: Figure 5 These steps ensure that traffic lights can still function properly even when they malfunction, allowing pedestrians to cross the road according to the instructions.
[0124] Reference Figure 3 The steps for adjusting traffic lights by replacing components based on the constant-on color control indicator of the LEDs include:
[0125] Step S300: Analyze the constant light color of the LED to determine the appropriate light color for the LED.
[0126] The light-up color refers to the color that the traffic signal light should illuminate, which is different from the light-up color that the light-up bulb is normally illuminated. The normally illuminated color of the light-up bulb is analyzed by the processing terminal to determine the light-up color that is different from the normally illuminated color of the light-up bulb. This color is the light-up color that the light-up bulb should illuminate. In one embodiment, taking green as an example, the light-up color that the light-up bulb should illuminate is red or yellow.
[0127] Step S301: Determine the replacement indicator number based on the color that the LED should light up and the preset LED indicator relationship.
[0128] The LED indicator relationship is the correspondence between the LED color and the serial number of the indicator replacement component that replaces that color. The operator forms a mapping table by matching the actual LED color with the serial number of the corresponding indicator replacement component. For example, if the actual LED color is green and the serial number of the green indicator component is 1, then green corresponds to number 1.
[0129] The replacement indicator number refers to the indicator number corresponding to the color that the LED should light up. It is obtained by the processing terminal by looking up the corresponding mapping table of LED indicator relationships based on the color that the LED should light up.
[0130] Step S302: Determine the replacement indicator holding time based on the relationship between the color that the LED should light up and the preset color display time.
[0131] Among them, the color display time relationship refers to the correspondence between different colors of traffic lights and the corresponding lighting time. Operators determine the corresponding lighting time for different colors of traffic lights based on the actual situation. For example, the red light should be on for 40 seconds, the green light should be on for 30 seconds, etc., and form a mapping table to match the traffic light colors with the corresponding lighting time.
[0132] The replacement indicator hold time refers to the hold time for the color that the LED should light up, which is also the waiting time for the LED to stay on. It is obtained by the processing terminal by looking up the corresponding mapping table of color display relationship based on the color that the LED should light up.
[0133] Step S303: Determine the replacement indicator reset time based on the relationship between the constant light color of the LED and the color display time.
[0134] The replacement indicator reset time refers to the duration of the LED's constantly lit color, which is also the waiting time for the LED to light up its intended color. This time is obtained by the processing terminal by looking up the LED's constantly lit color in the mapping table corresponding to the color display relationship.
[0135] Step S304: Obtain the display status of the LED beads.
[0136] The indicator's display status refers to the actual shape of the indicator. Voltage and current sensors acquire real-time voltage and current status data of the indicator area's LEDs. This data is then transmitted to a processing terminal via a communication module. The processing terminal analyzes this data to obtain the indicator area's LED working status data. This data is compared with the normal LED status data. If they match, the LED in the indicator area is working normally; otherwise, it indicates a malfunction. This process determines the actual shape of the indicator, i.e., the LED display status.
[0137] Step S305: Determine whether the LED display status is consistent with the preset LED complete display status.
[0138] The complete display state of the LED beads refers to the shape of the indicator when the indicator area is working normally. When the indicator area is working normally, the shape of the indicator is a complete arrow shape composed of multiple LED beads.
[0139] The processing terminal determines whether the LED bead display state is consistent with the complete LED bead display state, thereby determining whether the shape of the indicator area is complete.
[0140] Step S3051: If there is a discrepancy, control the replacement component to flip and cover the traffic light according to the preset alternating adjustment method.
[0141] If the processing terminal determines that the LED display state is inconsistent with the complete LED display state, it indicates that the indicator area is incomplete and the LED is displaying a single color. The processing terminal then controls the indicator replacement component to flip the corresponding sign and cover the traffic light. For specific methods, refer to [link to relevant documentation]. Figure 4 These steps ensure that traffic lights function correctly, allowing pedestrians to cross the road as directed.
[0142] The alternating adjustment method refers to the method of replacing components by switching the light bulb to the color that should be lit according to the control indication of the light bulb by the processing terminal, and thus covering the traffic signal light.
[0143] Step S3052: If they match, control the replacement component to flip and cover the traffic light according to the replacement instruction sequence number, replacement instruction holding time, and replacement instruction reset time.
[0144] If the processing terminal determines that the LED display state is consistent with the complete LED display state, it indicates that the shape of the indicator area is complete and the indicator area is only displaying a single color of the LED. The processing terminal determines whether the LED's constant light color has completed the indication based on the replacement indication reset time. If it has, the terminal controls the indicator replacement component to keep the corresponding sign and cover the traffic light according to the replacement indication sequence number and the replacement indication holding time, so as to realize the normal indication function of the traffic light.
[0145] Reference Figure 4 The steps for controlling the indicator replacement component to flip and cover the traffic light according to the preset alternating adjustment method include:
[0146] Step S400: Determine the switching indicator sequence number based on the constant light color of the LED and the LED indicator relationship.
[0147] The switching indicator number refers to the indicator number corresponding to the constantly lit color of the LED, which is obtained by the processing terminal by looking up the corresponding mapping table of LED indicator relationships based on the constantly lit color of the LED.
[0148] Step S401: Analyze the switching instruction number and the replacement instruction number to determine the first replacement number and the second replacement number.
[0149] The first replacement sequence number refers to the sequence number of the sign that should be flipped between the two signs; the second replacement sequence number is the sequence number of the sign that needs to be flipped next after the sign corresponding to the first replacement sequence number is flipped. The actual color that the traffic light should display is determined by the LED status monitoring device. The processing terminal compares the LED's constant light color with the actual color that the traffic light should display. If they match, it means that the LED's constant light color is the actual color that the traffic light should display, and the first replacement sequence number is determined to be the switching indicator sequence number, and the second replacement sequence number is determined to be the replacement indicator sequence number. If they do not match, it means that the LED's constant light color is not the actual color that the traffic light should display, and the first replacement sequence number is determined to be the replacement indicator sequence number, and the second replacement sequence number is determined to be the switching indicator sequence number.
[0150] Step S402: Control the replacement component to flip and cover the traffic light according to the first replacement sequence number, and obtain the actual replacement covering time.
[0151] Specifically, the processing terminal controls the replacement component to flip the corresponding sign and cover the traffic light according to the first replacement sequence number. At the same time, starting from the moment the sign flips and covers the traffic light, the timer in the lamp status monitoring device starts counting. Each time the timer terminal is triggered, the time increases by one second, thereby obtaining the actual covering time of the replacement.
[0152] The actual replacement coverage time refers to the time after the replacement component flips the corresponding sign according to the first replacement sequence number control instruction, and the sign has remained on display.
[0153] Step S403: Analyze the first replacement sequence number, the replacement indication holding time, and the replacement indication reset time to determine the actual replacement time.
[0154] Specifically, the processing terminal analyzes the first replacement sequence number. If the first replacement sequence number is equal to the replacement indication sequence number, the actual replacement time is the replacement indication holding time; if the first replacement sequence number is equal to the switching indication sequence number, the actual replacement time is the replacement indication reset time.
[0155] The actual replacement time refers to the time that the current indicator should be displayed. The actual replacement time is equal to the replacement indicator holding time or the replacement indicator reset time.
[0156] Step S404: Determine whether the actual covering time meets the requirements of the actual replacement time.
[0157] The requirement for actual replacement time means that the sign can only be switched when the actual replacement time equals the actual replacement time; the sign cannot be switched when the actual replacement time is less than the actual replacement time.
[0158] The processing terminal determines whether the actual covering time matches the actual replacement time, thereby determining whether the sign can be switched.
[0159] Step S4041: If it does not meet the requirements, continue to obtain the actual occlusion time for replacement and perform loop judgment.
[0160] If the processing terminal determines that the actual replacement covering time is less than the actual replacement covering time, it means that the sign corresponding to the first replacement sequence number has not completed the indication work. In this case, the actual replacement covering time needs to be timed and compared with the actual replacement time. When the two are equal, the next operation is immediately executed. In one embodiment, the actual replacement covering time is timed by a timer and the processing terminal compares the actual replacement covering time with the actual replacement time to determine whether the sign has completed the indication work.
[0161] Step S4042: If the condition is met, the replacement component is reset according to the first replacement sequence number, and the second replacement sequence number is defined as a new first replacement sequence number, and the first replacement sequence number is defined as a new second replacement sequence number.
[0162] If the processing terminal determines that the actual covering time is equal to the actual replacement time, it means that the sign corresponding to the first replacement number has completed its indication work. Then, the processing terminal controls the indication replacement component to reset the corresponding sign according to the first replacement number, and the processing terminal defines the second replacement number as the first replacement number and the first replacement number as the new second replacement number. In one embodiment, if the first replacement number is a switching indication number and the second replacement number is a replacement indication number, after the processing terminal determines that the sign corresponding to the first replacement number has completed its indication work, the control terminal determines the first replacement number as the replacement indication number and the second replacement number as the switching indication number.
[0163] Step S40421: Control the replacement component to flip and cover the traffic light according to the new first replacement sequence number, and obtain the actual covering time of the replacement again for cyclic judgment.
[0164] Specifically, the processing terminal controls the replacement component to flip the corresponding sign from the back of the traffic light according to the new first replacement sequence number, so as to achieve the functions of covering the traffic light and displaying traffic light indicators.
[0165] The actual replacement covering time is obtained by the timer module of the LED status monitoring device, and the data is transmitted to the processing terminal through the communication module. The processing terminal starts timing when the sign flips and displays the indicator, obtains the actual replacement covering time and compares it with the actual replacement time. When the two are equal, the next operation is immediately executed, thereby ensuring that the indicator replacement component switches cyclically, and thus ensuring that the traffic signal light can realize the indicator display function.
[0166] Reference Figure 5 The steps for adjusting traffic lights by controlling the LED adjustment assembly based on the normal LED position include:
[0167] Step 500: Determine whether the position of the normal LED bead meets the preset requirements for the position of the normal display LED bead.
[0168] The normal display lamp position refers to the position coordinates of the indicator lamp when the traffic light is working normally. If the indicator is considered to be composed of multiple indicator borders of different proportions nested together, then the normal display lamp position includes the position coordinates of the lamps contained in multiple indicator borders. The requirement for the normal display lamp position is that it is at least consistent with the position coordinates of a certain proportion of the lamps corresponding to the normal display lamp position.
[0169] The processing terminal determines whether the position of the normal LED bead is consistent with the coordinates of a certain proportion of the LED bead positions corresponding to the position of the normally displayed LED bead, thereby determining whether the traffic signal light can display an indicator through some LED beads.
[0170] Step 5001: If the conditions are met, analyze the positions of the normal LED beads and the normal display LED beads to determine the positions of the LED beads to be used.
[0171] If the processing terminal determines that the position of the normal LED bead is consistent with at least a certain proportion of the LED bead position coordinates corresponding to the position of the normal display LED bead, it indicates that the traffic signal light can present an indicator through some LED beads. Therefore, the position of the LED bead used is obtained after analyzing the positions of the normal LED bead and the normal display LED bead, which provides data support for the subsequent control of the LED bead adjustment component to adjust the traffic signal light.
[0172] The "used LED position" refers to the coordinates of the LEDs that can be displayed in the indicator area. The processing terminal compares the normal LED positions with the normal display LED positions, identifying those whose positions match the normal display LED positions and whose number is not less than a certain proportion. For example, if the indicator is composed of two nested indicator borders of different proportions, the inner border contains 6 normal display LEDs with positions (0,0), (0,1), (0,-1), (1,0), (-1,0), (0,-2); the outer border contains 16 normal display LEDs with positions (0,2), (-1,1), (-2,0), (-3,-1), (-2,-1), (-3 ... 1,-1), (-1,-2), (-1,-3), (0,-3), (1,-3), (1,-1), (1,-2), (2,-1), (3,-1), (2,0), (1,1); If the number of normal LED positions of the outer indicator frame and the normal display LED positions of the outer indicator frame are the same is required to be 13, and the normal LED positions are (0,0), (1,0), (-1,0), (0,2), (-1,1), (-2,0), (-3,-1), (-2,-1), (-1,-1), (-1,-2), (-1,-3), (0,-3), (1,-3), (1,-1), (1,-2), (3,-1), (2,0), then the normal LED position is redefined as the LED position in use.
[0173] Step 50011: Control the lamp adjustment component to light up the corresponding lamp in the indicator area according to the position of the lamp used to restart the traffic signal light.
[0174] The system determines a new indicator consisting of multiple nested indicator borders based on the position of the LED beads used. The processing terminal controls the LED bead adjustment component to illuminate the LED beads corresponding to the position of the LED beads used, thereby forming a new indicator within the indicator area and enabling the traffic signal light to display normally.
[0175] Step 5002: If not, obtain the spare zone number and the position of the spare normal LED in the preset spare zone.
[0176] If the processing terminal determines that the coordinates of a certain proportion of the LED positions corresponding to the normal LED positions and the normal display LED positions are inconsistent, it indicates that the normal working LEDs in the indicator area cannot perform the normal traffic signal indicator function. In this case, the processing terminal determines the location and number of the backup area, thereby providing data support for the subsequent LED adjustment component migration indicator.
[0177] The spare zone refers to the area on a traffic light that can be reconstructed into an indicator, excluding the indicator area. The traffic light indicator area and background area are divided into four regions: upper, lower, left, and right. A new region is formed by combining two adjacent indicator areas and background areas. The number of normally functioning LEDs in each region is ranked, and the region with the largest number is the spare zone.
[0178] The spare zone number refers to the label corresponding to the spare zone. The spare normal LED position refers to the position coordinates of the normally functioning LEDs within the spare zone after the spare zone has been determined. For specific methods of obtaining this information, please refer to [link / reference]. Figure 7 The steps.
[0179] Step 50021: Adjust the traffic lights by controlling the lamp adjustment component according to the spare zone number and the position of the spare normal lamp.
[0180] The process involves using a processing terminal to determine the area containing the new indicator based on the backup zone number, and analyzing the positions of the backup normal LEDs to determine if a new indicator can be formed within the traffic light. If it can be formed, the traffic light can be adjusted by controlling the LED adjustment assembly. The specific method is described in [reference needed]. Figure 6 These steps ensure that traffic lights function correctly.
[0181] Reference Figure 6 The steps for adjusting traffic lights by controlling the lamp adjustment assembly according to the spare zone number and the position of the spare normal lamps include:
[0182] Step 600: Determine the location of the spare area based on the spare area number and the preset spare area location relationship.
[0183] Among them, the backup area location relationship refers to the correspondence between the backup area number and the backup area center coordinates. The operator determines the backup area center position corresponding to different backup area numbers according to the actual situation. For example, if the backup area number is 1, the corresponding backup area center position is (1,0). A mapping table is formed by matching the backup area number with the backup center position one by one.
[0184] The location of the backup area refers to the coordinates of the center position of the backup area, which is obtained by the processing terminal by looking up the backup area number in the mapping table corresponding to the backup area location relationship.
[0185] Step 601: Analyze the location of the spare area and the preset indicator area to determine the area translation parameters.
[0186] The position of the indicator area refers to the coordinates of the center of the indicator area in the coordinate system. By mapping the coordinate system onto the image through the processing terminal, the specific coordinates of the center of the indicator area in the coordinate system can be identified, and thus the position of the indicator area can be obtained.
[0187] The region translation parameter refers to the movement parameters required to move the indicator area to the spare area in the coordinate system. The region translation parameter is obtained by calculating the position of the spare area and the position of the indicator light beads through the processing terminal. For example, if the position of the indicator area is (0,0) and the position of the spare area is (3,4), then the processing terminal will calculate that the indicator area will be translated three units to the right and then four units upward to the spare area.
[0188] Step 602: Analyze the area translation parameters and the normal display LED positions to determine the position of the spare display LED.
[0189] The position of the spare display LED refers to the position coordinates of the indicator LED after the indicator area is moved to the spare area. The control processing terminal moves the coordinates of each LED in the normal display LED position according to the area translation parameters and the normal display LED position to determine the position of the spare display LED. For example, if the area translation parameter is to move the indicator area three units to the right to the spare area, and the normal display LED positions are (0,0), (0,1), (0,-1), (1,0), (-1,0), (0,-2), then the spare display LED positions are (3,0), (3,1), (3,-1), (4,0), (2,0), (3,-2).
[0190] Step 603: Determine whether the position of the spare normal LED bead meets the requirements of the spare display LED bead position.
[0191] The requirement for the position of the spare display LEDs is that the position of the spare normal LEDs must be consistent with the coordinates of a certain proportion of the LED positions corresponding to the position of the spare display LEDs.
[0192] The processing terminal determines whether the position of the backup normal LED bead is consistent with the position coordinates of a certain proportion of LED beads corresponding to the position of the backup display LED bead, thereby determining whether the traffic signal can display an indicator through the backup LED bead.
[0193] Step 6031: If the conditions are met, analyze the positions of the spare normal LEDs and the spare display LEDs to determine the position of the spare LEDs.
[0194] If the processing terminal determines that the position of the backup normal LED bead is consistent with the coordinates of a certain proportion of LED bead positions corresponding to the position of the backup display LED bead, it indicates that the traffic signal light can present an indicator through the backup LED bead. The backup LED bead position can be obtained by analyzing the positions of the backup normal LED bead and the backup display LED bead, thus providing data support for the subsequent adjustment of the traffic signal light by the LED bead adjustment component.
[0195] The spare LED position refers to the coordinates of the LEDs that can display the indicator in the spare area. The processing terminal compares the positions of the spare normal LEDs and the spare display LEDs, and finds the LED positions that match the spare display LED positions in the spare normal LED positions and whose number is not less than a certain proportion. These are the spare LED positions. For example, if the indicator is composed of two nested indicator borders with different proportions, the inner indicator border contains 6 spare display LEDs, and the outer indicator border contains 16 spare display LEDs. The area translation parameter is that the indicator area is translated 3 units to the right. After the translation, the spare display LED positions in the inner indicator border are (3,0), (3,1), (3,-1), (4,0), (2,0), (3,-2); the normal display LED positions in the outer indicator border are (3,0), (3,1), (3,-1), (4,0), (2,0), (3,-2); and the normal display LED positions are (3,0), (3,1), (3,-1), (4,0), (2,0), (3,-2). ,2), (2,1), (1,0), (0,-1), (1,-1), (2,-1), (2,-2), (2,-3), (3,-3), (4,-3), (4,-1), (4,-2), (5,-1), (6,-1), (5,0), (4,1); If the number of spare normal LED positions on the outer indicator frame that are the same as the spare display LED positions on the outer indicator frame is required to be 13, and the spare normal LED positions are (3,0), (3,0), (2,0), (3,2), (2,1), (1,0), (0,-1), (1,-1), (2,-1), (2,-2), (2,-3), (3,-3), (4,-3), (4,-1), (4,-2), (6,-1), (5,0), then the spare normal LED position is defined as the spare LED position.
[0196] Step 60311: Control the lamp adjustment component to light up the corresponding lamp in the standby area according to the position of the standby lamp to restart the traffic signal.
[0197] The system determines a new indicator consisting of multiple nested indicator borders based on the position of the spare indicator beads. The processing terminal controls the indicator bead adjustment component to illuminate the indicator beads corresponding to the position of the spare indicator beads, thereby forming a new indicator bead in the spare area and enabling the traffic signal light to display normally.
[0198] Step 6032: If not, adjust the traffic signal light according to the replacement component based on the constant-on color control indicator of the LED.
[0199] If the processing terminal determines that the coordinates of a certain proportion of the backup normal LED beads and the backup display LED beads are inconsistent, it indicates that the normal operating LED beads in the backup area cannot perform the normal traffic signal indication function. Therefore, refer to... Figure 3 and Figure 4 The steps control the replacement component to implement the traffic signal indicator function.
[0200] Reference Figure 7 The steps for obtaining the spare zone number and the position of the spare normal LED in the preset spare zone include:
[0201] Step 700: Analyze the preset indicator zones and normal LED positions to determine the number of normal LEDs in each indicator zone and the corresponding indicator zone number.
[0202] Among them, the indicator area is divided into independent sub-areas by dividing the indicator area into four directions: up, down, left, and right.
[0203] The indicator partition number refers to the label corresponding to the spare partition. The normal LED count of the indicator partition refers to the normal LED count of each partition in the indicator area. The processing terminal maps the normal LED positions to the positions included in the indicator partition, thereby classifying the normal LED positions into different indicator partitions. Then, the normal LED positions in the indicator partitions are counted to determine the normal LED count of the indicator partition.
[0204] Step 701: Obtain the number of normal LED beads in the preset background partition and the corresponding background partition number.
[0205] The background area refers to the area on the traffic light excluding the indicator area. Background area zoning refers to dividing the background area into four independent sub-areas: top, bottom, left, and right.
[0206] The background zone number refers to the label corresponding to the background zone, and the normal LED count of the background zone refers to the number of normal LEDs in each zone of the background zone. The working status data of each LED in the traffic light is obtained by the LED status monitoring device and transmitted to the processing terminal through the communication module. The processing terminal compares the working status data of each LED with the normal status data of the LED. If the working status data of the LED matches the normal status data of the LED, it means that the LED is working normally. The LED status monitoring device obtains the location of the LEDs that are working normally in the traffic light. Then, the processing terminal maps the location of the LEDs that are working normally to the location of the background zone according to the background zone, so that the location of the LEDs that are working normally is classified into different background zones. Then, the location of the LEDs that are working normally is counted to determine the number of normal LEDs in the background zone.
[0207] Step 702: Analyze the number of normal LEDs in the indicator zone, the corresponding indicator zone number, the number of normal LEDs in the background zone, and the corresponding background zone number to determine the number of LEDs in the joint zone and the corresponding joint zone number.
[0208] Among them, a joint partition refers to a new region formed by combining two adjacent indicator partitions and background partitions. The processing terminal analyzes the indicator partition number and the background partition number. When the indicator partition number and the background partition number are the same, the corresponding indicator partition and background partition are merged. The merged region is the joint partition.
[0209] The joint partition number refers to the label corresponding to the joint partition, and the number of LEDs in the joint partition refers to the number of normal LEDs in each partition of the joint partition. The processing terminal determines the number of LEDs in the joint partition by adding the number of normal LEDs in the indicator partition and the number of normal LEDs in the background partition corresponding to the joint partition number.
[0210] Step 703: Obtain the location of the spare normal LEDs based on the maximum LED partition number, and define the maximum partition number as the spare partition number.
[0211] Among them, the spare zone number refers to the label corresponding to the spare zone. The processing terminal sorts the number of normally functioning LEDs in the joint partition to obtain the partition with the most normally functioning LEDs in the joint partition. This joint partition is the spare zone, and the joint partition number is the spare zone number.
[0212] The location of a spare normal LED refers to the coordinates of the LEDs that can work normally within the spare area after the spare area is determined. The processing terminal determines the corresponding joint partition number based on the spare area number, and then determines the location of the normally working LEDs in the corresponding joint partition based on the joint partition number. The location of the normally working LEDs in the joint partition is the location of the spare normal LED.
[0213] Based on the same inventive concept, embodiments of this application provide a traffic light emergency control method, including:
[0214] The acquisition module is used to acquire LED status data, LED fault type, LED constant light color, normal LED position, LED display status, actual replacement and covering time, spare area sequence number, and spare normal LED position.
[0215] A memory for storing a program for an emergency control method for traffic lights;
[0216] The processor can load and execute programs in memory to implement an emergency control method for traffic lights.
[0217] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0218] This application provides a computer-readable storage medium storing a computer program that can be loaded by a processor and executed as a traffic signal emergency control method.
[0219] Computer storage media include, for example, USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, optical disks, and other media that can store program code.
[0220] Based on the same inventive concept, this application provides a smart terminal, including a memory and a processor, wherein the memory stores a computer program that can be loaded and executed by the processor to provide a traffic light emergency control method.
[0221] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0222] The above are all preferred embodiments of this application and are not intended to limit the scope of protection of this application. Any feature disclosed in this specification (including the abstract and drawings) may be replaced by other equivalent or similar features unless specifically stated otherwise. That is, unless specifically stated otherwise, each feature is only one example of a series of equivalent or similar features.
Claims
1. A traffic signal light emergency control method, characterized in that, include: Obtain the status data of the LED beads of the preset traffic lights; Determine whether the LED status data is consistent with the preset normal LED status data; If they match, continue to acquire LED status data and perform loop checks. If they are inconsistent, then obtain the LED fault type; The traffic lights are adjusted by controlling the preset traffic light adjustment device according to the type of lamp failure. The traffic signal light adjustment device includes an indicator replacement component and a lamp adjustment component. The steps of controlling the preset traffic signal light adjustment device to adjust the traffic signal light according to the lamp fault type include: The lamp bead fault type is determined to be either a preset single-color lamp bead fault type or a preset lamp bead indicator fault type. If the LED is a single-color abnormality, then obtain the LED's constant-on color. Adjust the traffic lights by replacing components according to the constant-on color control indication of the LED beads; If the LED indicator is abnormal, then obtain the normal LED position in the preset indicator area; The traffic lights are adjusted by controlling the LED adjustment components according to the normal LED position. The steps for adjusting traffic lights by replacing components based on the constant-on color control indication of the LEDs include: Analyze the colors that the LEDs are constantly lit to determine the colors that the LEDs should light up. The replacement indicator number is determined based on the color that the LED should illuminate and the preset LED indicator relationship; The replacement indicator holding time is determined based on the relationship between the color that the LED should illuminate and the preset color display time. The replacement indicator reset time is determined based on the relationship between the constant light color of the LED and the color display time. Get the LED display status; Determine whether the LED display status is consistent with the preset complete LED display status; If they are inconsistent, the control instruction will be flipped to cover the traffic lights according to the preset alternating adjustment method; If they match, the replacement component is controlled to flip and cover the traffic light according to the replacement instruction sequence number, replacement instruction holding time, and replacement instruction reset time.
2. The traffic signal emergency control method according to claim 1, characterized in that, The steps for controlling the replacement component to flip and cover the traffic light according to the preset alternating adjustment method include: The switching indicator sequence number is determined based on the constant light color of the LED and the indicator relationship of the LED; The switching instruction number and the replacement instruction number are analyzed to determine the first replacement number and the second replacement number; The control instruction for the replacement component to flip and cover the traffic light according to the first replacement sequence number is obtained, and the actual covering time is obtained. The first replacement sequence number, replacement indication holding time, and replacement indication reset time are analyzed to determine the actual replacement time; Determine whether the actual replacement time meets the requirements of the actual replacement time; If it does not meet the requirements, continue to obtain the actual occlusion time for replacement and perform loop judgment; If the conditions are met, the replacement component is reset according to the control instruction of the first replacement number, and the second replacement number is defined as the new first replacement number, and the first replacement number is defined as the new second replacement number; The control instruction for the replacement component to flip and cover the traffic light is based on the new first replacement sequence number, and the actual covering time is obtained again for cyclic judgment.
3. The emergency control method for traffic lights according to claim 1, characterized in that, The steps for adjusting traffic lights by controlling the LED adjustment assembly based on the normal LED position include: Determine whether the position of the normal LED bead meets the preset requirements for the normal display LED bead position; If the conditions are met, the positions of the normal LED beads and the normal display LED beads will be analyzed to determine the positions of the LED beads to be used. The traffic signal light is restarted by controlling the lamp adjustment component to illuminate the corresponding lamp in the indicator area according to the position of the lamp used. If not, obtain the backup zone number and backup normal LED position of the preset backup zone; The traffic lights are adjusted by controlling the lamp adjustment component according to the spare zone number and the position of the spare normal lamp.
4. The emergency control method for traffic lights according to claim 3, characterized in that, The steps for adjusting traffic lights by controlling the lamp adjustment assembly based on the spare zone number and the position of the spare normal lamps include: The location of the backup area is determined based on the backup area number and the preset backup area location relationship; The locations of the backup area and the preset indicator area are analyzed to determine the area translation parameters; The location of the spare display LEDs is determined by analyzing the area translation parameters and the positions of the normal display LEDs. Determine whether the position of the spare normal LED meets the requirements for the position of the spare display LED; If the conditions are met, the positions of the spare normal LEDs and the spare display LEDs will be analyzed to determine the position of the spare LEDs. The traffic signal light is restarted by controlling the lamp adjustment component to illuminate the corresponding lamp in the standby area based on the position of the standby lamp; If it does not meet the requirements, the traffic lights will be adjusted by replacing the components according to the constant-on color control indication of the LED beads.
5. The emergency control method for traffic lights according to claim 3, characterized in that, The steps to obtain the spare zone number and the position of the spare normal LED in the preset spare zone include: The preset indicator zones and normal LED positions are analyzed to determine the number of normal LEDs in each indicator zone and the corresponding indicator zone number. Obtain the number of normal LED beads in the preset background partition and the corresponding background partition number; The number of normal LEDs in the indicator zone, the corresponding indicator zone number, the number of normal LEDs in the background zone, and the corresponding background zone number are analyzed to determine the number of LEDs in the joint zone and the corresponding joint zone number. The location of the spare normal LED is obtained based on the partition number of the most LED, and the partition number of the most LED is defined as the spare partition number.
6. A traffic signal emergency control system, characterized in that, include: The acquisition module is used to acquire LED status data and LED fault types; A memory for storing a program for a traffic signal emergency control method as described in any one of claims 1 to 5; The processor and the program in the memory can be loaded and executed by the processor to implement the traffic signal emergency control method as described in any one of claims 1 to 5.
7. A smart terminal, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executed as described in any one of claims 1 to 5 for an emergency control method of traffic lights.
8. A computer-readable storage medium, characterized in that, The computer program is stored and can be loaded by a processor and executed as described in any one of claims 1 to 5.
Citation Information
Patent Citations
LED traffic light fault control device
CN206194141U