Method and system for solving automatic brightness swing of sensor and medium

By configuring the data acquisition period and frequency of the brightness sensor, and using cache and mean calculation to generate correction values, the problem of unstable LED screen brightness caused by fluctuations in the brightness sensor is solved, and the smooth change in brightness is achieved.

CN120580946APending Publication Date: 2025-09-02SHENZHEN HUIDU TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510852622.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-24
Publication Date
2025-09-02

AI Technical Summary

Technical Problem

Frequent fluctuations in the brightness sensor when acquiring data lead to unstable brightness of the LED screen, especially when the brightness difference is significant, there is obvious alternation of light and darkness.

Method used

By configuring the data acquisition period and frequency of the brightness sensor, the lower computer collects the brightness value regularly and stores it in the cache, uses the mode or the latest value to perform mean calculation, generates the current correction value and updates it to the LED module, and combines cache clearing and smoothing processing to avoid brightness fluctuations.

Benefits of technology

It effectively solves the brightness swing problem when the brightness sensor data is updated, ensures the brightness of the LED screen, avoids the alternation of light and darkness, and achieves smooth brightness changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120580946A_ABST
    Figure CN120580946A_ABST
Patent Text Reader

Abstract

The invention discloses a method and system for solving automatic brightness swing of a sensor and a medium, and the method comprises the following steps: an upper computer configures the data collection period and frequency of a brightness sensor, and transmits the configuration information to a lower computer; the lower computer acquires a brightness value of a brightness sensor at regular time according to the data acquisition period and frequency, stores the acquired brightness value into a cache, and acquires a brightness adjustment value according to a preset strategy; the lower computer performs mean value calculation according to the brightness adjustment value and the previous correction value to obtain a current correction value; and the lower computer updates the current correction value to the LED module. The method can effectively solve the problem that the brightness sensor frequently changes between two values under a certain condition, so that the brightness sensor jumps back and forth when the brightness is updated when the latest sensor data is obtained, and avoids the problem that the brightness of the display module swings when the brightness sensor data is updated, so that the display module is bright at any time and dark at any time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of brightness updating of a brightness sensor, and in particular to a solution method, system and medium for automatic brightness swing of a sensor. Background Art

[0002] In some cases, the brightness sensor frequently fluctuates between two values, causing the brightness to jump back and forth when the latest sensor data is obtained and the brightness is updated. This back-and-forth fluctuation is not a problem for most modules, but on some modules with significant brightness differences, such as the brightness difference between 1% and 3%, the brightness can fluctuate greatly, causing the display to alternate between bright and dim.

[0003] The current solution is to obtain the current brightness value of the brightness sensor through the LED control card and update this brightness value to the LED module, so that the brightness of the LED module is the ambient brightness obtained by the current brightness sensor. This solution has the following drawbacks:

[0004] Because the value obtained by the brightness sensor depends on the accuracy of the brightness sensor, when the brightness sensor fluctuates, the device also obtains this fluctuating value at this time, and the brightness of the LED screen will change. For example, if the brightness obtained is 10%, 10%, 14%, 10%, 10%, 14%, 10%, in this case, the brightness change on the indoor module may not change much, but for the outdoor module with high brightness, a slight change in percentage will cause a large change in brightness. Summary of the Invention

[0005] The main purpose of the present invention is to propose a solution, system and medium for automatic brightness swing of sensors, aiming to avoid the problem of intermittent brightness caused by brightness swing of the display module when updating brightness sensor data.

[0006] To achieve the above object, the present invention provides a solution to automatic brightness swing of a sensor, the method comprising the following steps:

[0007] Step S10: The host computer configures the data acquisition period and frequency of the brightness sensor and sends the configuration information to the slave computer;

[0008] Step S20: The lower computer collects brightness values ​​of the brightness sensor according to the data collection period and frequency, stores the collected brightness values ​​in a cache, and obtains a brightness adjustment value according to a preset strategy;

[0009] Step S30: The lower computer calculates the average of the brightness adjustment value and the last correction value to obtain the current correction value;

[0010] In step S40 , the lower computer updates the current correction value to the LED module.

[0011] A further technical solution of the present invention is that the step of obtaining the brightness adjustment value according to the preset strategy in step S20 includes:

[0012] Step S201, determining whether the brightness values ​​collected and stored in the cache have a mode;

[0013] Step S202: If a mode exists, the latest mode is used as the brightness adjustment value;

[0014] Step S203: If there is no mode, the brightness value acquired last by the brightness sensor is used as the brightness adjustment value.

[0015] A further technical solution of the present invention is that in the step S30 in which the lower computer calculates the mean of the brightness adjustment value and the last correction value to obtain the current correction value, the obtained correction value is rounded to an integer by removing decimals.

[0016] A further technical solution of the present invention is that, after step S30, the following steps are further included:

[0017] Step S301: Clear the cache and wait for the next round of collecting brightness values ​​from the brightness sensor.

[0018] A further technical solution of the present invention is that, after step S40, the following steps are further included:

[0019] Step S401: The LED module periodically compares the latest correction value among the current correction values ​​with the current brightness;

[0020] Step S402: If the latest correction value in the current correction value is consistent with the current brightness, the current brightness is updated to the current correction value.

[0021] To achieve the above objectives, the present invention further provides a system for resolving automatic brightness swing of a sensor. The system includes a memory, a processor, and a program for resolving automatic brightness swing of a sensor stored on the processor. When the program is executed by the processor, the program performs the following steps:

[0022] Step S10: The host computer configures the data acquisition period and frequency of the brightness sensor and sends the configuration information to the slave computer;

[0023] Step S20: The lower computer collects brightness values ​​of the brightness sensor according to the data collection period and frequency, stores the collected brightness values ​​in a cache, and obtains a brightness adjustment value according to a preset strategy;

[0024] Step S30: The lower computer calculates the average of the brightness adjustment value and the last correction value to obtain the current correction value;

[0025] In step S40 , the lower computer updates the current correction value to the LED module.

[0026] A further technical solution of the present invention is that when the sensor automatic brightness swing solution program is executed by the processor, the following steps are further performed:

[0027] Step S201, determining whether the brightness values ​​collected and stored in the cache have a mode;

[0028] Step S202: If a mode exists, the latest mode is used as the brightness adjustment value;

[0029] Step S203: If there is no mode, the brightness value acquired last by the brightness sensor is used as the brightness adjustment value.

[0030] A further technical solution of the present invention is that in the step S30 in which the lower computer calculates the mean of the brightness adjustment value and the last correction value to obtain the current correction value, the obtained correction value is rounded to an integer by removing decimals.

[0031] A further technical solution of the present invention is that when the sensor automatic brightness swing solution program is executed by the processor, the following steps are further performed:

[0032] Step S301: Clear the cache and wait for the next round of collecting brightness values ​​from the brightness sensor.

[0033] To achieve the above object, the present invention further provides a computer-readable storage medium storing a sensor automatic brightness swing solution program. When the sensor automatic brightness swing solution program is executed by a processor, the steps of the above method are executed.

[0034] The beneficial effects of the automatic brightness swing solution, system and medium of the present invention are:

[0035] Through the above technical solution, the present invention configures the data collection period and frequency of the brightness sensor on the upper computer and sends the configuration information to the lower computer; the lower computer regularly collects the brightness value of the brightness sensor according to the data collection period and frequency, stores the collected brightness value in a cache, and obtains the brightness adjustment value according to a preset strategy; the lower computer calculates the average value of the brightness adjustment value and the last correction value to obtain the current correction value; the lower computer updates the current correction value to the LED module, which can effectively solve the problem that the brightness sensor often changes between two values ​​under certain circumstances, resulting in the brightness jumping back and forth when the latest sensor data is obtained and updated, and avoids the problem of the display module appearing bright or dim due to brightness swing when the brightness sensor data is updated. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.

[0037] Figure 1 This is a flow chart of a preferred embodiment of the automatic brightness swing solution of the sensor of the present invention;

[0038] Figure 2 is a detailed flow chart of step S20;

[0039] Figure 3 Schematic diagram of the hardware architecture of the automatic brightness swing solution system for sensors of the present invention.

[0040] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION

[0041] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0042] The present invention proposes a solution to the automatic brightness swing of the sensor, such as Figure 1 As shown, the preferred embodiment of the automatic brightness swing solution of the sensor of the present invention includes the following steps:

[0043] Step S10: The upper computer configures the data collection period and frequency of the brightness sensor and sends the configuration information to the lower computer.

[0044] In this embodiment, the data collection period is divided into collection cycles according to the data of each brightness update, and is divided into fast, medium and slow collection. For example, it is determined by a multiple of 3, fast means 3s as a cycle, medium means 6s as a cycle, and slow means 9s as a cycle. Each cycle collects values ​​according to the number of collection times. For example, for medium-speed collection, a value is updated every 6s. The number of collections is set to 3, then the data collection will divide 6s into 3 times, and collect once every two seconds, and store the collected values ​​in an array. When the collection reaches the set value, it will be determined whether there is a mode. If so, the mode is used, otherwise the last value is used to use this value as the brightness adjustment value.

[0045] In step S20 , the lower computer collects the brightness value of the brightness sensor according to the data collection period and frequency, stores the collected brightness value in a cache, and obtains a brightness adjustment value according to a preset strategy.

[0046] like Figure 2 As shown, the step S20 specifically includes the following steps:

[0047] Step S201: Determine whether there is a mode among the brightness values ​​collected and stored in the buffer. In this embodiment, the mode refers to a data value that appears the most times among the brightness values ​​collected.

[0048] Step S202: If a mode exists, the latest mode is used as the brightness adjustment value.

[0049] Step S203: If there is no mode, the brightness value acquired last by the brightness sensor is used as the brightness adjustment value.

[0050] For example, the brightness value of the brightness sensor collected according to the data collection period and frequency is 111210121013. In this case, there are multiple pairs of identical modes 10 and 12. The value updated by the last mode is used as the brightness adjustment value, that is, the last 10 is obtained later than the last 12, so 10 is used.

[0051] If the brightness value of the brightness sensor collected according to the data collection period and frequency is 1011121314, in this case, there is no mode, and the last obtained value, that is, 14, is used.

[0052] In step S30, the lower computer calculates the average value of the brightness adjustment value and the last correction value to obtain the current correction value.

[0053] In this embodiment, after the brightness adjustment value is obtained, the current correction value is obtained by performing an average calculation with the last correction value, which can eliminate small fluctuations in data while ensuring that changes can be processed quickly and smoothly.

[0054] In the step S30, in which the lower computer calculates the average of the brightness adjustment value and the last correction value to obtain the current correction value, the obtained correction value is rounded to an integer without decimals.

[0055] In this embodiment, during the process of averaging and smoothing based on the brightness adjustment value and the last correction value, if the value obtained in the last judgment is 10 and the value obtained in this judgment is 11, the average of these two results is (10+11) / 2=10, then the decimal is removed to obtain the correction value of this time as 10.

[0056] In step S40 , the lower computer updates the current correction value to the LED module.

[0057] The LED module will periodically compare the latest correction value among the current correction values ​​with the current brightness. If the latest correction value among the current correction values ​​is consistent with the current brightness, the current brightness will be updated to the current correction value. The brightness sensor will continuously update the correction value according to the values ​​collected according to the data collection period and frequency.

[0058] The solution to the automatic brightness swing of the sensor in this embodiment is mainly divided into two parts:

[0059] The first part is the data collection period. Under normal circumstances, it will be converted into a specific brightness after each collection, and then updated to the screen brightness at a specified time. In this case, the brightness will display different brightness due to the sensor value. At this time, using the solution of this embodiment requires adding fast collection to the original collection period. For example, if the original data is acquired once every 6 seconds, it will now be acquired every 2 seconds, but it will not be set, but cached. Then, the mode is taken from the cache and the cache is cleared until the next collection cycle. This is to avoid oscillating data. When the data has no mode, that is, all are different, then the value is changing, and the last value can be used.

[0060] The second part is the smoothing period. Here, the smoothing adopts the mean value. The new value is averaged with the current value. This is to deal with the problem of small value jumps. The final value of the acquisition period and the current value are averaged. This ensures that the brightness curve is smoothly upward or downward instead of jumping directly. At the same time, it does not affect the overall brightness. That is, the brightness and normal mode brightness changes can also quickly reach the final brightness.

[0061] Furthermore, in this embodiment, after step S30, the following steps are further included:

[0062] Step S301: Clear the cache and wait for the next round of collecting brightness values ​​from the brightness sensor.

[0063] In this embodiment, after the lower computer calculates the average value based on the brightness adjustment value and the last correction value to obtain the current correction value, it clears the cache and waits for the next round of brightness value acquisition of the brightness sensor.

[0064] In this embodiment, after step S40, the following steps are further included:

[0065] Step S401: The LED module periodically compares the latest correction value among the current correction values ​​with the current brightness;

[0066] Step S402: If the latest correction value in the current correction value is consistent with the current brightness, the current brightness is updated to the current correction value.

[0067] The beneficial effects of the automatic brightness swing solution of the sensor of the present invention are:

[0068] Through the above technical solution, the present invention configures the data collection period and frequency of the brightness sensor on the upper computer and sends the configuration information to the lower computer; the lower computer regularly collects the brightness value of the brightness sensor according to the data collection period and frequency, stores the collected brightness value in a cache, and obtains the brightness adjustment value according to a preset strategy; the lower computer calculates the average value of the brightness adjustment value and the last correction value to obtain the current correction value; the lower computer updates the current correction value to the LED module, which can effectively solve the problem that the brightness sensor often changes between two values ​​under certain circumstances, resulting in the brightness jumping back and forth when the latest sensor data is obtained and updated, and avoids the problem of the display module appearing bright or dim due to brightness swing when the brightness sensor data is updated.

[0069] To achieve the above object, the present invention also proposes a sensor automatic brightness swing solution system, such as Figure 3 As shown, the system includes a processor 1001, a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002, and a sensor automatic brightness swing solution program stored on the processor, wherein the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0070] Those skilled in the art will understand that Figure 3 The system structure shown in the figure does not constitute a limitation of the system, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0071] like Figure 3 As shown, the memory 1005 as a computer storage medium may include an operating device, a network communication module, a user interface module, and a sensor automatic brightness swing solution program.

[0072] exist Figure 3 In the system shown, the network interface 1004 is mainly used to connect to the network server and communicate data with the network server; the user interface 1003 is mainly used to interact with the user terminal and receive instructions input by the user; and the processor 1001 can be used to call the sensor automatic brightness swing solution program stored in the memory 1005.

[0073] The sensor automatic brightness swing solution program is executed by the processor to perform the following steps:

[0074] Step S10: The upper computer configures the data collection period and frequency of the brightness sensor and sends the configuration information to the lower computer.

[0075] The data collection period is divided into collection cycles according to the data of each updated brightness, and is divided into fast, medium and slow collection. For example, it is determined by a multiple of 3. Fast means 3s as a cycle, medium means 6s as a cycle, and slow means 9s as a cycle. Each cycle collects values ​​according to the number of collections. For example, medium-speed collection updates a value every 6s. If the number of collections is set to 3, the data collection will divide 6s into 3 times, and collect once every two seconds. The collected values ​​are stored in an array. When the collection reaches the set value, it will be determined whether there is a mode. If so, the mode is used, otherwise the last value is used to adjust the brightness.

[0076] In step S20 , the lower computer collects the brightness value of the brightness sensor according to the data collection period and frequency, stores the collected brightness value in a cache, and obtains a brightness adjustment value according to a preset strategy.

[0077] The step S20 specifically includes the following steps:

[0078] Step S201: Determine whether there is a mode among the brightness values ​​collected and stored in the buffer. In this embodiment, the mode refers to a data value that appears the most times among the brightness values ​​collected.

[0079] Step S202: If a mode exists, the latest mode is used as the brightness adjustment value.

[0080] Step S203: If there is no mode, the brightness value acquired last by the brightness sensor is used as the brightness adjustment value.

[0081] For example, the brightness value of the brightness sensor collected according to the data collection period and frequency is 111210121013. In this case, there are multiple pairs of identical modes 10 and 12. The value updated by the last mode is used as the brightness adjustment value, that is, the last 10 is obtained later than the last 12, so 10 is used.

[0082] If the brightness value of the brightness sensor collected according to the data collection period and frequency is 1011121314, in this case, there is no mode, and the last obtained value, that is, 14, is used.

[0083] In step S30, the lower computer calculates the average value of the brightness adjustment value and the last correction value to obtain the current correction value.

[0084] After obtaining the brightness adjustment value, the current correction value is obtained by averaging it with the last correction value. This can eliminate small fluctuations in data while ensuring that changes can be made quickly and smoothly.

[0085] In the step S30, in which the lower computer calculates the average of the brightness adjustment value and the last correction value to obtain the current correction value, the obtained correction value is rounded to an integer without decimals.

[0086] In this embodiment, during the process of averaging and smoothing based on the brightness adjustment value and the last correction value, if the value obtained in the last judgment is 10 and the value obtained in this judgment is 11, the average of these two results is (10+11) / 2=10, then the decimal is removed to obtain the correction value of this time as 10.

[0087] In step S40 , the lower computer updates the current correction value to the LED module.

[0088] The LED module will periodically compare the latest correction value among the current correction values ​​with the current brightness. If the latest correction value among the current correction values ​​is consistent with the current brightness, the current brightness will be updated to the current correction value. The brightness sensor will continuously update the correction value according to the values ​​collected according to the data collection period and frequency.

[0089] When the processor is running the automatic brightness swing solution program, the processor further performs the following steps:

[0090] Step S301: Clear the cache and wait for the next round of collecting brightness values ​​from the brightness sensor.

[0091] When the processor is running the automatic brightness swing solution program, the processor further performs the following steps:

[0092] Step S401: The LED module periodically compares the latest correction value among the current correction values ​​with the current brightness;

[0093] Step S402: If the latest correction value in the current correction value is consistent with the current brightness, the current brightness is updated to the current correction value.

[0094] The automatic brightness swing solution system of the sensor of the present invention is mainly divided into two parts:

[0095] The first part is the data collection period. Under normal circumstances, it will be converted into a specific brightness after each collection, and then updated to the screen brightness at a specified time. In this case, the brightness will display different brightness due to the sensor value. At this time, using the solution of this embodiment requires adding fast collection to the original collection period. For example, if the original data is acquired once every 6 seconds, it will now be acquired every 2 seconds, but it will not be set, but cached. Then, the mode is taken from the cache and the cache is cleared until the next collection cycle. This is to avoid oscillating data. When the data has no mode, that is, all are different, then the value is changing, and the last value can be used.

[0096] The second part is the smoothing period. Here, the smoothing adopts the mean value. The new value is averaged with the current value. This is to deal with the problem of small value jumps. The final value of the acquisition period and the current value are averaged. This ensures that the brightness curve is smoothly upward or downward instead of jumping directly. At the same time, it does not affect the overall brightness. That is, the brightness and normal mode brightness changes can also quickly reach the final brightness.

[0097] The beneficial effects of the automatic brightness swing solution system of the sensor of the present invention are:

[0098] Through the above technical solution, the present invention configures the data collection period and frequency of the brightness sensor on the upper computer and sends the configuration information to the lower computer; the lower computer regularly collects the brightness value of the brightness sensor according to the data collection period and frequency, stores the collected brightness value in a cache, and obtains the brightness adjustment value according to a preset strategy; the lower computer calculates the average value of the brightness adjustment value and the last correction value to obtain the current correction value; the lower computer updates the current correction value to the LED module, which can effectively solve the problem that the brightness sensor often changes between two values ​​under certain circumstances, resulting in the brightness jumping back and forth when the latest sensor data is obtained and updated, and avoids the problem of the display module appearing bright or dim due to brightness swing when the brightness sensor data is updated.

[0099] To achieve the above objectives, the present invention also proposes a computer-readable storage medium, which stores a sensor automatic brightness swing solution program. When the sensor automatic brightness swing solution program is run by a processor, it executes the steps of the method described above, which will not be repeated here.

[0100] The above description is only a preferred embodiment of the present invention and does not limit the patent scope of the present invention. All equivalent structural transformations made by using the contents of the present invention description and drawings under the concept of the present invention, or direct / indirect application in other related technical fields are included in the patent protection scope of the present invention.

Claims

1. A solution to the automatic brightness swing of a sensor, characterized in that: The method comprises the following steps: Step S10: The host computer configures the data acquisition period and frequency of the brightness sensor and sends the configuration information to the slave computer; Step S20: The lower computer collects brightness values ​​of the brightness sensor according to the data collection period and frequency, stores the collected brightness values ​​in a cache, and obtains a brightness adjustment value according to a preset strategy; Step S30: The lower computer calculates the average of the brightness adjustment value and the last correction value to obtain the current correction value; In step S40 , the lower computer updates the current correction value to the LED module.

2. The automatic brightness swing solution of the sensor according to claim 1, characterized in that: The step of obtaining the brightness adjustment value according to the preset strategy in step S20 includes: Step S201, determining whether the brightness values ​​collected and stored in the cache have a mode; Step S202: If a mode exists, the latest mode is used as the brightness adjustment value; Step S203: If there is no mode, the brightness value acquired last by the brightness sensor is used as the brightness adjustment value.

3. The automatic brightness swing solution of the sensor according to claim 1, characterized in that: In the step S30 in which the lower computer calculates the mean of the brightness adjustment value and the last correction value to obtain the current correction value, the obtained correction value is rounded to an integer without decimals.

4. The automatic brightness swing solution of the sensor according to claim 1, characterized in that: After step S30, the following steps are further included: Step S301: Clear the cache and wait for the next round of collecting brightness values ​​from the brightness sensor.

5. The automatic brightness swing solution of the sensor according to claim 2, characterized in that: After step S40, the following steps are further included: Step S401: The LED module periodically compares the latest correction value among the current correction values ​​with the current brightness; Step S402: If the latest correction value in the current correction value is consistent with the current brightness, the current brightness is updated to the current correction value.

6. A sensor automatic brightness swing solution system, characterized in that: The system includes a memory, a processor, and a sensor automatic brightness swing solution program stored on the processor. When the sensor automatic brightness swing solution program is executed by the processor, the following steps are performed: Step S10: The host computer configures the data acquisition period and frequency of the brightness sensor and sends the configuration information to the slave computer; Step S20: The lower computer collects brightness values ​​of the brightness sensor according to the data collection period and frequency, stores the collected brightness values ​​in a cache, and obtains a brightness adjustment value according to a preset strategy; Step S30: The lower computer calculates the average of the brightness adjustment value and the last correction value to obtain the current correction value; In step S40 , the lower computer updates the current correction value to the LED module.

7. The automatic brightness swing solution of the sensor according to claim 6, characterized in that: When the processor is running the automatic brightness swing solution program, the processor further performs the following steps: Step S201, determining whether the brightness values ​​collected and stored in the cache have a mode; Step S202: If a mode exists, the latest mode is used as the brightness adjustment value; Step S203: If there is no mode, the brightness value acquired last by the brightness sensor is used as the brightness adjustment value.

8. The automatic brightness swing solution of the sensor according to claim 6, characterized in that: In the step S30 in which the lower computer calculates the mean of the brightness adjustment value and the last correction value to obtain the current correction value, the obtained correction value is rounded to an integer without decimals.

9. The automatic brightness swing solution of the sensor according to claim 6, characterized in that: When the processor is running the automatic brightness swing solution program, the processor further performs the following steps: Step S301: Clear the cache and wait for the next round of collecting brightness values ​​from the brightness sensor.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a sensor automatic brightness swing solution program, and the sensor automatic brightness swing solution program is executed by a processor to perform the steps of any one of the methods according to claims 1 to 5.