LED adaptive control method, system and readable storage medium
By setting the LED light intensity and illumination range, detecting the license plate reflection and obtaining the moving speed, adaptive control is achieved, which solves the problem of difficult license plate recognition in low-light environments and realizes real-time tracking and continuous lighting of the license plate.
Patent Information
- Application Number
- CN202211191777.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-28
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2042-09-28
AI Technical Summary
When a car is driving, especially under conditions of weak ambient light, the license plate recognition effect is poor and it is difficult to achieve effective recognition.
By setting the LED's light intensity and illumination range based on the ambient brightness, detecting the license plate's reflection, obtaining the license plate's real-time movement speed, and performing adaptive control, the LED can continue to illuminate as the license plate moves.
When the vehicle is driving, it can effectively identify the license plate when the ambient light is weak, reduce errors, and achieve real-time tracking and continuous lighting of the license plate.
Smart Images

Figure CN115968082B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of LED control, and in particular to an LED adaptive control method, system, and readable storage medium. Background Art
[0002] LED (Lingt Emitting Diode) is the abbreviation of light-emitting diode. It is a commonly used light-emitting device that emits light through the release of energy by electrons and holes. Because its luminous efficiency is higher than that of traditional incandescent lamps and fluorescent lamps, and it has the advantages of energy saving, environmental protection, long life and easy modulation, it is widely used in lighting in various fields.
[0003] When LED light sources are used in fill lights, they can be used in areas such as videography, plant growth monitoring, and automatic license plate recognition. When performing photography fill light, the main function of a video fill light is to provide auxiliary light when shooting in low-light conditions, so as to obtain reasonable image material.
[0004] Usually, when a car stops at an intersection, the car's license plate will be recognized through monitoring to identify the driver's identity. However, sometimes it is also necessary to recognize the license plate while the car is driving to determine the vehicle's direction. When the ambient light is weak, the recognition effect of the license plate of a car in motion is poor. Summary of the Invention
[0005] In order to facilitate the recognition of a car license plate while the car is driving, the present application provides an LED adaptive control method, system and readable storage medium.
[0006] The present application provides an LED adaptive control method, system, and readable storage medium using the following technical solutions:
[0007] An LED adaptive control method, system, and readable storage medium, comprising:
[0008] Set the LED light intensity and road illumination range based on ambient brightness;
[0009] controlling the LED to illuminate the road surface based on the light intensity and the illumination range, and detecting whether there is reflection from the license plate;
[0010] When the detection result is yes, the license plate is located based on the reflection to obtain the real-time moving speed of the license plate;
[0011] The LED is adaptively controlled based on the real-time moving speed of the license plate, so that the LED continuously illuminates the license plate until the recognition of the license plate is completed.
[0012] By adopting the above technical solution, when a vehicle is traveling on the road, the illumination intensity of the LED and the illumination range of the road are set based on the ambient brightness, so that the illumination of the LED is increased and the illumination range of the road is increased in a targeted manner. When the movement of the license plate is detected, the LED is adaptively controlled. When the vehicle is traveling, when the vehicle travels to the section where the LED is located and the ambient light is weak, the LED can continue to illuminate the license plate as the vehicle moves, so as to facilitate the recognition of the license plate while the vehicle is traveling.
[0013] Optionally, setting the illumination intensity of the LED and the illumination range of the road surface based on the ambient brightness includes:
[0014] Detecting ambient brightness using a plurality of ambient light sensors to obtain ambient brightness corresponding to the plurality of LEDs, and obtaining an average ambient brightness based on the plurality of ambient brightnesses;
[0015] Setting the illumination range of the LED on the road surface based on the average ambient brightness;
[0016] The illumination intensity of the LED is set based on the average ambient brightness.
[0017] By adopting the above technical solution, the average ambient brightness is obtained by obtaining the ambient brightness corresponding to the multiple LEDs according to the multiple ambient light sensors, so that the error caused by the ambient light sensors being blocked is reduced in the measurement of the ambient brightness.
[0018] Optionally, setting the illumination range of the LED on the road surface based on the average ambient brightness includes:
[0019] Get the number of lanes on the current road and divide each lane separately;
[0020] The illumination range of the road surface by the LED is set based on the divided lanes and the number of traffic flows.
[0021] Optionally, illuminating the road surface based on the light intensity and the illumination range to detect whether there is reflection of the license plate includes:
[0022] Illuminating the road surface based on the light intensity and the illumination range; detecting whether there is a flashing object with a brightness different from that of the surrounding environment in the current illumination environment;
[0023] The shape of the flashing object is recognized to determine whether it is the reflection of the license plate.
[0024] By adopting the above technical solution, the road surface is illuminated, and when a flash appears, it is identified whether the flash appears. When the flash appears, the flash is identified to determine whether it is the reflection of the license plate.
[0025] Optionally, locating the license plate based on the reflection to obtain the moving speed and real-time position of the license plate includes:
[0026] Positioning the license plate based on the flashing body at a first time to obtain a first area of the license plate, and obtaining a first distance between the license plate and the LED within the first time;
[0027] During the driving time of the vehicle, the license plate is located in real time based on the flashing body to obtain the real-time area of the license plate and the real-time distance between the license plate and the LED;
[0028] Acquire the real-time position of the license plate based on the first distance and the real-time distance;
[0029] The real-time moving speed of the license plate is obtained based on the vehicle travel time and the real-time position of the license plate.
[0030] By adopting the above technical solution, the first time, first distance, real-time time and real-time distance can be obtained according to the reflector of the license plate, and the real-time moving speed of the license plate can be obtained according to the first time, first distance, real-time time and real-time distance respectively.
[0031] Optionally, the adaptively controlling the LED based on the real-time moving speed of the license plate so that the LED continuously illuminates the license plate includes:
[0032] Setting the rotation speed of the LED based on the movement speed of the license plate;
[0033] The LED is controlled to rotate according to the rotation speed to track the license plate, so that the LED continuously illuminates the license plate.
[0034] By adopting the above technical solution, the LED can be adaptively controlled and the license plate can be automatically tracked, thereby achieving real-time illumination of the license plate.
[0035] Optionally, controlling the LED to rotate according to the rotation speed to track the license plate includes:
[0036] Performing a first prediction on the movement of the license plate according to the real-time moving speed of the license plate;
[0037] Based on the first prediction, the LED is controlled to rotate according to the first predicted rotation speed to track the license plate.
[0038] By adopting the above technical solution, a first prediction of the movement of the license plate is made according to the real-time moving speed of the license plate, so that the license plate can be tracked according to the first prediction.
[0039] Optionally, controlling the LED to rotate according to the rotation speed to track the license plate further includes:
[0040] Performing a second prediction on the movement of the license plate according to current road conditions;
[0041] The LED is controlled to track the license plate based on the second prediction.
[0042] By adopting the above technical solution, it is possible to make a second prediction of the current road condition, and thus control the LED to track the license plate according to the second prediction.
[0043] In a third aspect, the present application provides a terminal device that adopts the following technical solution:
[0044] A terminal device includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor loads and executes the computer program, the above-mentioned LED adaptive control method is adopted.
[0045] By adopting the above technical solution, the above LED adaptive control method is generated into a computer program and stored in a memory so as to be loaded and executed by a processor, thereby making a terminal device based on the memory and the processor for easy use.
[0046] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution:
[0047] A computer-readable storage medium stores a computer program. When the computer program is loaded and executed by a processor, the above-mentioned LED adaptive control method is adopted.
[0048] By adopting the above technical solution, the above-mentioned LED adaptive control method is generated into a computer program and stored in a computer-readable storage medium so that it can be loaded and executed by a processor. The computer-readable storage medium facilitates the readability and storage of the computer program.
[0049] In summary, this application includes at least one of the following beneficial technical effects:
[0050] 1. When a vehicle drives to the road section where the LED is located and the ambient light is weak, the LED can continuously illuminate the license plate as the vehicle moves, so that the license plate can be identified while the vehicle is moving;
[0051] 2. It can determine whether there is real-time movement of a vehicle by detecting the presence of reflections from license plates;
[0052] 3. The first prediction and the second prediction can be memorized separately to predict the movement trajectory of the vehicle, thereby controlling the LED to move along with the movement of the license plate. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 This is a flowchart of an LED adaptive control method according to an embodiment of the present application;
[0054] Figure 2 This is a flowchart of one implementation of an LED adaptive control method according to an embodiment of the present application;
[0055] Figure 3 This is a flowchart of one implementation of an LED adaptive control method according to an embodiment of the present application;
[0056] Figure 4 This is a flowchart of one implementation of an LED adaptive control method according to an embodiment of the present application;
[0057] Figure 5 This is a flowchart of one implementation of an LED adaptive control method according to an embodiment of the present application;
[0058] Figure 6 This is a flowchart of one implementation of an LED adaptive control method according to an embodiment of the present application;
[0059] Figure 7 This is a flowchart of one implementation of an LED adaptive control method according to an embodiment of the present application;
[0060] Figure 8 This is a flowchart of one implementation of an LED adaptive control method according to an embodiment of the present application;
[0061] Figure 9 This is a control schematic diagram of one implementation of an LED adaptive control system according to an embodiment of the present application;
[0062] Figure 10 This is a control schematic diagram of one implementation of an LED adaptive control system in an embodiment of the present application. DETAILED DESCRIPTION
[0063] The present application is further described in detail below with reference to the accompanying drawings.
[0064] In order to facilitate the recognition of the license plate of a car during driving, the embodiment of the present application discloses an LED adaptive control method, system and readable storage medium. Figure 1 and Figure 9 ,include:
[0065] S110 : Setting the illumination intensity of the LED and the illumination range of the road surface based on the ambient brightness.
[0066] Among them, the ambient brightness is different in different time periods and different weather conditions. For example, the ambient brightness is different when it is in a daytime environment and in a nighttime environment, and the ambient brightness is different when it is cloudy and when it is sunny. When the ambient brightness is low, LEDs need to be used for fill-in lighting. At the same time, the LEDs also need to be set based on the illumination range of the road surface. For example, when the illumination range of the road surface is large, if the number of LEDs is small, the illumination range is large and the illumination effect is poor. Therefore, a corresponding number of LEDs need to be set for fill-in lighting according to the illumination range of the road surface. At the same time, in the embodiment of the present application, the illumination angle and brightness of the LED, as well as the distance between the lens and the LED lamp body can be adjusted accordingly to facilitate adaptive control of the LED.
[0067] S120 , controlling the LED to illuminate the road surface based on the light intensity and illumination range, and detecting whether there is reflection of the license plate.
[0068] The term "license plate" also refers to the vehicle number plate, which is a plate hung on the front and rear of a vehicle. It is typically made of aluminum, iron, plastic, or paper, and is engraved with the vehicle's registration number, registration region, or other relevant information. The license plate can be used to determine the region to which the vehicle belongs, and the owner and registration information of the vehicle can also be found based on the license plate. License plates do not reflect light under direct sunlight, but do reflect light under direct light. Therefore, the LED is controlled to illuminate the entire road surface based on the light intensity and illumination range, and the presence of a vehicle is detected by detecting the presence of a reflection from the license plate. In this embodiment, since the headlights are also turned on if the ambient light is relatively dim while the vehicle is driving, it is necessary to distinguish between the headlights and the reflection from the license plate.
[0069] S130: When the detection result is yes, locate the license plate based on the reflection and obtain the real-time moving speed of the license plate.
[0070] Among them, because the shape of the license plate is different from the shape of light-emitting bodies such as vehicle lights, and because the natural installation position of the license plate is different from the position of the headlights, etc., the license plate can be located based on its shape and position to obtain the real-time movement speed of the license plate. The movement speed of the license plate is the same as the movement speed of the vehicle. Before the license plate is recognized by the LED, the LED is controlled to increase the light-emitting range, that is, the luminous flux of the LED within the road surface is increased to cover all lanes on the road surface. In this embodiment, when detecting whether there is a reflection of the license plate, if the detection result is negative, the detection is continued until the detection result is positive, and the license plate is repeatedly located to obtain the real-time movement speed of the license plate.
[0071] S140 , adaptively controlling the LED based on the real-time moving speed of the license plate, so that the LED continuously illuminates the license plate until the license plate is recognized.
[0072] The present embodiment detects a vehicle during normal driving. For example, on a highway, there are sections with poor lighting. When detecting a vehicle's whereabouts, the license plate is located near the bottom of the vehicle and is illuminated by the headlights, making it difficult to identify the license plate. Adaptive control involves positioning the LED's illumination direction so that it moves with the movement of the license plate, ensuring that the license plate remains illuminated as long as the vehicle reaches the recognition area, facilitating license plate recognition while the vehicle is in motion.
[0073] The implementation principle of an LED adaptive control method in an embodiment of the present application is: when a vehicle is traveling on a road, the illumination intensity of the LED and the illumination range of the road are set based on the ambient brightness, so that the illumination of the LED is increased and the illumination range of the road is increased in a targeted manner, and when the movement of the license plate is detected, the LED is adaptively controlled. When the LED is adaptively controlled while the vehicle is traveling, when the vehicle travels to this section of road, when the ambient light is weak, the LED can continue to illuminate the license plate as the vehicle moves, so as to facilitate the recognition of the license plate while the vehicle is traveling.
[0074] Since the lighting environment will change with the occlusion of obstacles, in order to make the measurement of the ambient brightness more accurate, refer to Figure 2 , based on the ambient brightness, set the LED light intensity and the road illumination range, including:
[0075] S210 , detecting ambient brightness using multiple ambient light sensors to obtain ambient brightness corresponding to multiple LEDs, and obtaining an average ambient brightness based on the multiple ambient brightnesses.
[0076] Among them, the environment is continuously read by multiple ambient light sensors, and the average ambient brightness is obtained based on multiple ambient brightness levels. When one of the ambient light sensors is blocked by flying obstructions such as leaves or plastic bags, the ambient brightness detected by this ambient light sensor fluctuates more than that of other ambient light sensors. In this case, the ambient brightness collected by this ambient light sensor is not used, and an alarm operation is performed to warn that the ambient light sensor is blocked or malfunctions. For example, in this embodiment, three ambient light sensors facing different angles can be used, and the photosensitive devices of the three ambient light sensors will not be directly exposed to sunlight. The light corresponding to the ambient brightness sensed is all reflected light in the environment, thereby increasing the accuracy of the measurement.
[0077] S220: Setting the illumination range of the LED on the road surface based on the average ambient brightness.
[0078] Among them, when the average ambient brightness is greater, the range of LEDs that need to be controlled for fill light is smaller, so a larger illumination range can be set to provide overall fill light for the road surface. When the average ambient brightness is smaller, if the overall fill light form is adopted, since the number of LEDs is relatively limited, in order to make the LED setting more reasonable, it is necessary to illuminate different lanes on the road surface to increase the illumination efficiency.
[0079] S230: Set the illumination intensity of the LED based on the average ambient brightness.
[0080] Similarly, when the average ambient brightness is smaller, the corresponding degree of LED fill light is greater to make the license plate recognition clearer. When the average ambient brightness is larger, the corresponding degree of LED fill light is smaller.
[0081] Reference Figure 3 and Figure 9 To further illustrate the effect of average ambient brightness on the road surface illumination range of LEDs, in this embodiment, the road surface illumination range of LEDs is set based on the average ambient brightness, including:
[0082] S310: Obtain the number of lanes on the current road surface and divide each lane separately.
[0083] In this embodiment, lanes are divided by identifying traffic markings on the road. Because the color of traffic markings is different from the rest of the road, lanes are divided by traffic markings, and the range and number of corresponding lanes are distinguished. For example, if a road has a traffic marking dividing the lanes, the road can be considered to have two lanes.
[0084] S320: Setting the illumination range of the road surface by the LED based on the divided lanes and the number of vehicles.
[0085] In this embodiment, when there are a large number of lanes, corresponding illumination ranges are set for each lane to minimize the possibility of delayed LED illumination when there are a large number of lanes. For example, if there are four lanes and the number of LED light sources is set to one, if multiple vehicles are traveling side by side, a single LED light source may not be able to illuminate multiple license plates in time during license plate recognition. Therefore, corresponding LEDs are set for each lane to illuminate each license plate separately during license plate recognition. In other embodiments, lane division can also be based on traffic volume. Because vehicles in different lanes travel in different directions, such as U-turn lanes and through lanes, different lanes lead to different locations. For example, during rush hour, the through lane will have more vehicles and the U-turn lane will have fewer vehicles. During work hours, the U-turn lane will have more vehicles and the through lane will have fewer vehicles. Therefore, the LED illumination range of the road surface needs to be set according to the number of vehicles in the corresponding lane. For example, during rush hour, the number of LEDs used to fill in the straight lane with more vehicles is set to multiple, such as two or three, and the number of LEDs used to fill in the U-turn lane with fewer vehicles is set to one. The settings are made according to the actual traffic flow.
[0086] Reference Figure 4 , based on the light intensity and illumination range, the road surface is illuminated to detect whether there is reflection from the license plate, including:
[0087] S410: Illuminate the road surface based on the light intensity and illumination range, and detect whether there is a flashing object with a brightness different from that of the surrounding environment in the current illumination environment.
[0088] S420: Perform shape recognition on the flashing object to determine whether it is a reflection of a license plate.
[0089] In this embodiment, all judgments and identifications are performed under conditions of relatively low ambient lighting, such as at night, in the early morning, or in the evening. The presence of a flashing object with a brightness different from the surrounding environment is detected to detect the presence of a vehicle. When illuminating the vehicle's license plate, reflections will occur, and the vehicle's headlights will also turn on when the road environment is low brightness. Therefore, it is necessary to distinguish between the headlight illumination and the reflections from the license plate. In this embodiment, the shape of the flashing object is recognized to determine whether it is a reflection of the license plate. The shape of the flashing object can be used to determine whether it is a license plate. Since the shape of the license plate must be based on national standards, the shape of the flashing object is used to determine whether it is a license plate.
[0090] After the luminous body is identified as a license plate, since the license plate moves in real time with the vehicle, in order to illuminate the license plate and make it easier to identify, it is also necessary to obtain the position of the license plate in real time. Figure 5 , obtain the license plate movement speed and real-time license plate location, including:
[0091] S510: Position the license plate based on the flashing body at a first time to obtain a first area of the license plate.
[0092] Among them, the first time is the time when the flash is identified as a license plate. When shooting and identifying, the entire viewfinder is made into a plane to establish a plane rectangular coordinate system. The first area of the license plate is obtained by analyzing the ratio of the area occupied by the flash to the overall area through the coordinate system.
[0093] S520: During the driving time of the vehicle, the license plate is positioned in real time based on the flashing body to obtain the real-time area of the license plate, so as to obtain the real-time distance between the license plate and the LED.
[0094] S530: Acquire the real-time location of the license plate based on the first distance and the real-time distance.
[0095] S540: Obtain the real-time moving speed of the license plate based on the vehicle travel time and the real-time position of the license plate.
[0096] According to national traffic regulations, the license plate size of vehicles of the same specification is constant. The license plate is located to obtain its real-time area, i.e., its real-time area in the coordinate system. For example, if the area of a vehicle's license plate is 480mm*140mm, the first area of the license plate captured within the viewfinder is 24mm*7mm. The area of the license plate within the viewfinder is continuously measured over a period of time to obtain its area transformation. The real-time movement distance of the license plate is calculated based on the area transformation per unit time. The real-time movement speed of the license plate is calculated based on the real-time movement distance and movement time. In this embodiment, the calculation of the real-time movement speed of the license plate is performed without considering other light sources such as headlights. Therefore, in other embodiments, the calculation can be performed based on a combination of headlights and the license plate. For example, a triangle is formed between the headlights and the license plate, and the real-time area transformation of the triangle is calculated to calculate the real-time movement speed. Because the area of the triangle is larger than that of the license plate, the calculation of the real-time movement speed is more accurate.
[0097] Reference Figure 6 and Figure 9 After obtaining the real-time moving speed of the license plate, the license plate needs to be illuminated in a follow-up manner according to the moving speed of the license plate to facilitate license plate recognition. The LED is adaptively controlled based on the real-time moving speed of the license plate to ensure continuous illumination of the license plate by the LED, including:
[0098] S610: Set the rotation speed of the LED based on the moving speed of the license plate.
[0099] Among them, the base part of the LED is equipped with a stepper motor or servo motor, and the driving signal is output to the stepper motor through the real-time moving speed and real-time position of the license plate. Since the size of the light spot irradiated by the LED on the license plate is usually larger than the license plate, a certain irradiation error can be allowed. It is preferred to select a lower-priced stepper motor to control the rotation of the LED to save usage costs.
[0100] S620: Control the LED to rotate according to the rotation speed to track the license plate, so that the LED continuously illuminates the license plate.
[0101] Among them, when the presence of the license plate is recognized, the rotation speed of the LED is set based on the moving speed of the license plate to track the license plate, so that the light spot irradiated on the license plate moves with the movement of the license plate. In other embodiments, the license plate also moves according to the movement of the vehicle, and the distance between the license plate and the LED also moves accordingly. The convex lens in front of the LED, the distance between the lamp head and the lamp beads inside the LED are adjusted in real time to adjust the light path in real time, so that the light emitted from the LED is parallel light, and the LED is adaptively controlled to reduce the scattering of light in the LED and increase the luminous flux irradiated on the license plate, thereby increasing the brightness of the license plate and increasing the fill light effect on the license plate.
[0102] In this application, the license plate at the front of the vehicle is usually identified. In order to make the identified license plate more accurate, the license plate at the rear of the vehicle can also be identified to compare and determine whether there is any inconsistency between the front and rear license plates. Therefore, when the vehicle passes through the lower end of the LED, the license plate at the rear of the vehicle needs to be illuminated by the LED.
[0103] When an LED is used to illuminate a license plate to assist in identifying a vehicle's license plate while it is in motion, if the vehicle changes lanes, it is necessary to determine whether the lane change occurred to track the license plate. Referring to the figure, the LED is controlled to rotate according to the rotation speed to track the license plate, including:
[0104] S710: Perform a first prediction of the movement of the license plate according to the real-time moving speed of the license plate.
[0105] S720 , based on the first prediction, controlling the LED to rotate according to the first predicted rotation speed to track the license plate.
[0106] In this embodiment, the deep learning model is used to predict the vehicle's moving speed at the next moment based on the vehicle's real-time moving speed. This prediction process is the first prediction, which is also a prediction of the vehicle during driving.
[0107] The first prediction based on the real-time moving speed also needs to consider the specific road conditions. Therefore, in this embodiment, referring to Figure 8 and Figure 10 , controlling the LED to rotate according to the rotation speed to track the license plate also includes:
[0108] S810, performing a second prediction of the movement of the license plate according to the current road conditions;
[0109] S820: Control the LED to track the license plate based on the second prediction.
[0110] Among them, the second prediction in the embodiment of this application is performed by combining the real-time moving speed with the road conditions. In step S710, the first prediction is performed in combination with the real-time moving speed. In step S810 of this embodiment, the second prediction is performed in combination with the road conditions. The second prediction also predicts the vehicle trajectory of the vehicle. Combining the first prediction with the second prediction makes the operation of the vehicle more accurate, predicts the vehicle's direction trajectory, and facilitates the LED to track the license plate.
[0111] An embodiment of the present application further discloses a terminal device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein when the processor executes the computer program, an LED adaptive control method in the above embodiment is adopted.
[0112] Among them, the terminal device can be a computer device such as a desktop computer, a laptop computer or a cloud server, and the terminal device includes but is not limited to a processor and a memory. For example, the terminal device can also include input and output devices, network access devices and buses, etc.
[0113] Among them, the processor can adopt a central processing unit (CPU). Of course, according to actual usage, other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. can also be adopted. The general-purpose processor can adopt a microprocessor or any conventional processor, etc., and this application does not impose any restrictions on this.
[0114] Among them, the memory can be an internal storage unit of the terminal device, such as the hard disk or memory of the terminal device, or it can be an external storage device of the terminal device, such as a plug-in hard disk, smart memory card (SMC), secure digital card (SD) or flash memory card (FC) equipped on the terminal device, etc., and the memory can also be a combination of the internal storage unit and the external storage device of the terminal device. The memory is used to store computer programs and other programs and data required by the terminal device. The memory can also be used to temporarily store data that has been output or is to be output. This application does not impose any restrictions on this.
[0115] Among them, through this terminal device, an LED adaptive control method in the above embodiment is stored in the memory of the terminal device, and is loaded and executed on the processor of the terminal device for easy use.
[0116] An embodiment of the present application further discloses a computer-readable storage medium, and the computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, an LED adaptive control method in the above embodiment is adopted.
[0117] Among them, the computer program can be stored in a computer-readable medium, the computer program includes computer program code, the computer program code can be in the form of source code, object code, executable file or certain middleware, etc. The computer-readable medium includes any entity or device that can carry computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that computer-readable medium includes but is not limited to the above-mentioned components.
[0118] Among them, through this computer-readable storage medium, an LED adaptive control method in the above embodiment is stored in the computer-readable storage medium, and is loaded and executed on the processor to facilitate the storage and application of the above method.
[0119] The above are all preferred embodiments of the present application, and are not intended to limit the scope of protection of the present application. Therefore, any equivalent changes made based on the structure, shape, and principle of the present application should be included in the scope of protection of the present application.
Claims
1. A LED adaptive control method, characterized in that: include: Set the LED light intensity and road illumination range based on ambient brightness; controlling the LED to illuminate the road surface based on the light intensity and the illumination range, and detecting whether there is reflection from the license plate; When the detection result is yes, the license plate is located based on the reflection to obtain the real-time moving speed of the license plate; Adaptively controlling the LED based on the real-time moving speed of the license plate so that the LED continuously illuminates the license plate until the license plate is recognized; The step of illuminating the road surface based on the light intensity and the illumination range to detect whether there is reflection of the license plate includes: Illuminating the road surface based on the light intensity and the illumination range; detecting whether there is a flashing object with a brightness different from that of the surrounding environment in the current illumination environment; Performing shape recognition on the flashing object to determine whether it is a reflection of a license plate; The method of locating the license plate based on the reflection and obtaining the moving speed and real-time position of the license plate includes: Positioning the license plate based on the flashing body at a first time to obtain a first area of the license plate, and obtaining a first distance between the license plate and the LED within the first time; During the driving time of the vehicle, the license plate is located in real time based on the flashing body to obtain the real-time area of the license plate and the real-time distance between the license plate and the LED; Acquire the real-time position of the license plate based on the first distance and the real-time distance; Acquire the real-time moving speed of the license plate based on the vehicle travel time and the real-time position of the license plate; Specifically, the entire viewfinder is a plane to establish a rectangular coordinate system, and the first area of the license plate is obtained by analyzing the ratio of the area occupied by the flash body to the overall area through the coordinate system. The area of the license plate in the viewfinder is continuously measured over a period of time to obtain the area transformation of the license plate. The real-time moving distance of the license plate is calculated based on the area transformation of the license plate per unit time, and the real-time moving speed of the license plate is obtained based on the real-time moving distance and the moving time.
2. The LED adaptive control method according to claim 1, characterized in that: The step of setting the illumination intensity of the LED and the illumination range of the road surface based on the ambient brightness includes: Detecting ambient brightness using a plurality of ambient light sensors to obtain ambient brightness corresponding to the plurality of LEDs, and obtaining an average ambient brightness based on the plurality of ambient brightnesses; Setting the illumination range of the LED on the road surface based on the average ambient brightness; The illumination intensity of the LED is set based on the average ambient brightness.
3. The LED adaptive control method according to claim 2, characterized in that: The step of setting the illumination range of the LED on the road surface based on the average ambient brightness includes: Get the number of lanes on the current road and divide each lane separately; The illumination range of the road surface by the LED is set based on the divided lanes and the number of traffic flows.
4. The LED adaptive control method according to claim 1, characterized in that: The adaptively controlling the LED based on the real-time moving speed of the license plate so that the LED continuously illuminates the license plate includes: Setting the rotation speed of the LED based on the movement speed of the license plate; The LED is controlled to rotate according to the rotation speed to track the license plate, so that the LED continuously illuminates the license plate.
5. The LED adaptive control method according to claim 4, characterized in that: The controlling the LED to rotate according to the rotation speed to track the license plate includes: Performing a first prediction on the movement of the license plate according to the real-time moving speed of the license plate; Based on the first prediction, the LED is controlled to rotate according to the first predicted rotation speed to track the license plate.
6. The LED adaptive control method according to claim 4, characterized in that: The controlling the LED to rotate according to the rotation speed to track the license plate further includes: Performing a second prediction on the movement of the license plate according to current road conditions; The LED is controlled to track the license plate based on the second prediction.
7. An LED adaptive control system, comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that: When the processor loads and executes the computer program, the method according to any one of claims 1 to 6 is adopted.
8. A computer-readable storage medium storing a computer program, wherein: When the computer program is loaded and executed by a processor, the method according to any one of claims 1 to 6 is adopted.
Citation Information
Patent Citations
Automatic light supplement method and system for number plate identification
CN107284348A
License plate recognition method, license plate recognition device, license plate recognition system and storage medium
CN113177550A
Vehicle license plate number identification method and device, electronic equipment and storage medium
CN113221894A