A display screen brightness adjustment method and device, a terminal device, and a medium
By performing time-domain and frequency-domain transformation and adjusting the weighting coefficients on the light intensity data collected by the light sensor, the problem of inaccurate light intensity values collected by the light sensor was solved, thereby improving the accuracy of display brightness adjustment and user experience.
Patent Information
- Application Number
- CN202210766205.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-30
- Publication Date
- 2026-02-03
- Estimated Expiration
- 2042-06-30
AI Technical Summary
In existing technologies, light sensors have low accuracy in collecting light intensity values, resulting in inaccurate brightness adjustment of the display screen and affecting the user experience.
By performing time-domain and frequency-domain conversion on the raw light intensity data collected by the light sensor, a frequency domain diagram is determined, and the brightness of the display screen is adjusted according to the correspondence between the preset frequency range and the weighting coefficient.
It improves the accuracy of display brightness adjustment and enhances the user experience.
Smart Images

Figure CN115101002B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of display screens, and in particular to a display screen brightness adjustment method and device, a terminal device, and a medium. BACKGROUND
[0002] With the development of technology, terminal devices are widely used in production and life and have become indispensable tools in people's production and life. Among them, the terminal device includes at least one display screen, which can be used for display, such as users can read documents, view images, etc. through the display screen.
[0003] In order to better meet the display needs of users, the terminal device can adjust the brightness of the display screen according to the external light, so that the brightness of the display screen can match the current external light. Specifically, the terminal device includes at least one light sensor, which collects the original light intensity data of the external light, converts the light energy into an electrical signal, and obtains the light intensity value of the external light. The terminal device determines the brightness adjustment value of the display screen according to the light intensity value obtained by the light sensor, and adjusts based on the brightness adjustment value.
[0004] However, different lights are different, such as the light emitted by street lamps, the light emitted by fluorescent lamps, the light emitted by incandescent lamps, etc. Therefore, even if the brightness of different lights is the same, that is, the light intensity data of the light is the same, but the light intensity value obtained by the light sensor is different, which leads to inaccurate adjustment of the brightness of the display screen depending on the light intensity value collected by the light sensor, affecting the user experience. SUMMARY
[0005] The present application provides a display screen brightness adjustment method, device, terminal device and medium to solve the problem of low accuracy of the light intensity value collected by the light sensor in the prior art, inaccurate adjustment of the brightness of the display screen depending on the light intensity value collected by the light sensor, and affecting the user experience.
[0006] In a first aspect, the present application provides a display screen brightness adjustment method applied to a terminal device, the method comprising:
[0007] obtaining the light intensity value and the original light intensity data collected by the light sensor;
[0008] performing time-frequency conversion on the original light intensity data to determine a frequency domain graph corresponding to the original light intensity data; for each preset frequency range, determining a proportion corresponding to the frequency range in the frequency domain graph, and if the proportion is greater than a proportion threshold value corresponding to the frequency range, regarding the proportion as a candidate proportion;
[0009] determine a target frequency range corresponding to the current light according to the preset threshold range and each candidate proportion;
[0010] determine a target weight coefficient corresponding to the target frequency range according to a pre-stored corresponding relationship between the frequency range and the weight coefficient, and adjust the brightness of the display screen according to the target weight coefficient and the light intensity value.
[0011] In a second aspect, the embodiments of the present application further provide a display screen brightness adjustment device applied to a terminal device, the device comprising:
[0012] an acquisition module configured to acquire a light intensity value and original light intensity data collected by a light sensor;
[0013] a processing module configured to perform time domain frequency domain conversion on the original light intensity data, determine a frequency domain graph corresponding to the original light intensity data, determine, for each preset frequency range, a proportion corresponding to the frequency range in the frequency domain graph, and if the proportion is greater than a proportion threshold corresponding to the frequency range, take the proportion as a candidate proportion, determine a target frequency range corresponding to the current light according to the preset threshold range and each candidate proportion, and determine a target weight coefficient corresponding to the target frequency range according to a pre-stored corresponding relationship between the frequency range and the weight coefficient;
[0014] a brightness adjustment module configured to adjust the brightness of the display screen according to the target weight coefficient and the light intensity value.
[0015] In a third aspect, the embodiments of the present application further provide a terminal device, the terminal device comprising:
[0016] a display, a processor and a memory;
[0017] the display is configured to display a screen display area;
[0018] the memory is configured to store instructions executable by the processor;
[0019] the processor is configured to execute the instructions to implement the display screen brightness adjustment method according to any one of the above.
[0020] In a fourth aspect, the embodiments of the present application further provide a computer readable storage medium storing a computer program, the computer program being executed by a processor to implement the steps of the display screen brightness adjustment method according to any one of the above.
[0021] In the embodiment of the present application, the light intensity value and the original light intensity data collected by the light sensor are acquired, the original light intensity data is converted in time domain and frequency domain to determine the frequency domain graph corresponding to the original light intensity data; for each preset frequency range, the proportion corresponding to the frequency range in the frequency domain graph is determined, if the proportion is greater than the proportion threshold corresponding to the frequency range, the proportion is taken as a candidate proportion, the target frequency range corresponding to the current light is determined according to the preset threshold range and each candidate proportion, the target weight coefficient corresponding to the target frequency range is determined according to the pre-stored corresponding relationship between the frequency range and the weight coefficient, and the brightness of the display screen is adjusted according to the target weight coefficient and the light intensity value. In the embodiment of the present application, the terminal device converts the original light intensity data collected by the light sensor in time domain and frequency domain, determines the target frequency range corresponding to the current light according to the frequency domain graph obtained by conversion and the pre-stored corresponding relationship between the frequency range and the weight coefficient, that is, determines the current collection scene, and determines the target weight coefficient corresponding to the scene. The terminal device adjusts the light intensity value collected by the light sensor based on the target weight coefficient, so that the light intensity value collected by the light sensor is closer to the actual light intensity value. The terminal device can adjust the brightness of the display screen based on the adjusted light intensity value, and the accuracy of the display screen brightness adjustment is improved. BRIEF DESCRIPTION OF DRAWINGS
[0022] In order to more clearly illustrate the technical solutions of the present application, the following will briefly introduce the drawings needed in the embodiment description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.
[0023] Figure 1 A structural schematic diagram of a terminal device 100 is shown;
[0024] Figure 2 A software structure block diagram of a terminal device 100 according to an embodiment of the present application is shown;
[0025] Figure 3 A process schematic diagram of a display screen brightness adjustment method provided in an embodiment of the present application is shown;
[0026] Figure 4 A display screen brightness adjustment process provided by the prior art is shown;
[0027] Figure 5 An improved display screen brightness adjustment process provided by the prior art is shown;
[0028] Figure 6 A time domain graph of a fluorescent lamp and morning external light is shown;
[0029] Figure 7 A frequency domain diagram of a fluorescent lamp and morning ambient light provided by an embodiment of the present application;
[0030] Figure 8 A calculation diagram of a proportion corresponding to a frequency range when the frequency range is a frequency interval provided by an embodiment of the present application;
[0031] Figure 9 A calculation diagram of a proportion corresponding to a frequency range when the frequency range is a frequency value provided by an embodiment of the present application;
[0032] Figure 10 A flow diagram of display screen brightness adjustment provided by an embodiment of the present application;
[0033] Figure 11 A structural diagram of a display screen brightness adjustment device provided by an embodiment of the present application;
[0034] Figure 12 Another structural diagram of a terminal device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the scope of protection of the present application.
[0036] In order to improve the accuracy of display screen brightness adjustment, an embodiment of the present application provides a display screen brightness adjustment method, device, terminal device and medium. The method comprises: acquiring light intensity values and original light intensity data collected by a light sensor; performing time domain frequency domain conversion on the original light intensity data to determine a frequency domain diagram corresponding to the original light intensity data; for each preset frequency range, determining a proportion corresponding to the frequency range in the frequency domain diagram, and if the proportion is greater than a proportion threshold value corresponding to the frequency range, taking the proportion as a candidate proportion; determining a target frequency range corresponding to the current light according to a preset threshold range and each candidate proportion; determining a target weight coefficient corresponding to the target frequency range according to a pre-stored corresponding relationship between frequency ranges and weight coefficients, and adjusting the brightness of the display screen according to the target weight coefficient and the light intensity value.
[0037] Figure 1 A structural diagram of a terminal device 100 is shown. It should be understood that, Figure 1 The terminal device 100 shown is only an example, and the terminal device 100 can have more or fewer components than those shown in Figure 1The more or fewer components shown can be combined into two or more components, or they can have different component configurations. The various components shown in the figure can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.
[0038] Figure 1 The diagram illustrates a hardware configuration block diagram of a terminal device 100 according to an exemplary embodiment. Figure 1 As shown, the terminal device 100 includes components such as a radio frequency (RF) circuit 110, a memory 120, a display unit 130, a camera 140, a sensor 150, an audio circuit 160, a wireless Fidelity (Wi-Fi) module 170, a processor 180, a Bluetooth module 181, and a power supply 190.
[0039] RF circuit 110 can be used to receive and transmit signals during information transmission or calls. It can receive downlink data from the base station and hand it over to processor 180 for processing; it can also send uplink data to the base station. Typically, RF circuits include, but are not limited to, devices such as antennas, at least one amplifier, transceivers, couplers, low-noise amplifiers, and duplexers.
[0040] The memory 120 can be used to store software programs and data. The processor 180 executes various functions of the terminal device 100 and performs data processing by running the software programs or data stored in the memory 120. The memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. The memory 120 stores an operating system that enables the terminal device 100 to run. In this application, the memory 120 may store the operating system and various application programs, and may also store program code that executes the display brightness adjustment method of the embodiments of this application.
[0041] The display unit 130 can be used to receive input digital or character information and generate signal inputs related to user settings and function control of the terminal device 100. Specifically, the display unit 130 may include a touch screen 131 disposed on the front of the terminal device 100, which can collect touch operations on or near the user, such as clicking a button.
[0042] The display unit 130 can also be used to display information input by the user or information provided to the user, as well as a graphical user interface (GUI) of various menus of the terminal device 100. Specifically, the display unit 130 may include a display screen 132 disposed on the front of the terminal device 100. The display screen 132 may be configured as a liquid crystal display, a light-emitting diode, or the like. The display unit 130 can be used to display the display area of the terminal device in this application.
[0043] The touchscreen 131 can be placed over the display screen 132, or the touchscreen 131 and the display screen 132 can be integrated to realize the input and output functions of the terminal device 100. After integration, it can be referred to as a touch display screen. In this application, the display unit 130 can display the application program and the corresponding operation steps.
[0044] Camera 140 can be used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then transmitted to processor 180 to be converted into a digital image signal.
[0045] The terminal device 100 may also include at least one sensor 150, such as an accelerometer 151, a proximity sensor 152, a fingerprint sensor 153, and a temperature sensor 154. The terminal device 100 may also be equipped with other sensors such as a gyroscope, barometer, hygrometer, thermometer, infrared sensor, light sensor, and motion sensor.
[0046] Audio circuitry 160, speaker 161, and microphone 162 provide an audio interface between the user and terminal device 100. Audio circuitry 160 converts received audio data into electrical signals, which are then transmitted to speaker 161, where they are converted into sound signals for output. Terminal device 100 may also be equipped with volume buttons for adjusting the volume of the sound signal, and these buttons can be combined with other buttons to adjust the enclosed area. On the other hand, microphone 162 converts collected sound signals into electrical signals, which are then received by audio circuitry 160, converted into audio data, and output to RF circuitry 110 for transmission to, for example, another terminal device, or to memory 120 for further processing.
[0047] Wi-Fi is a short-range wireless transmission technology. Terminal device 100 can use Wi-Fi module 170 to help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access.
[0048] The processor 180 is the control center of the terminal device 100. It connects various parts of the terminal device via various interfaces and lines, and performs various functions and processes data by running or executing software programs stored in the memory 120 and calling data stored in the memory 120. In some embodiments, the processor 180 may include one or more processing units; the processor 180 may also integrate an application processor and a baseband processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the baseband processor mainly handles wireless communication. It is understood that the baseband processor may not be integrated into the processor 180. In this application, the processor 180 can run the operating system, applications, user interface display and touch response, and the display screen brightness adjustment method of this embodiment. Furthermore, the processor 180 is coupled to the display unit 130.
[0049] Bluetooth module 181 is used to interact with other Bluetooth devices that also have Bluetooth modules via the Bluetooth protocol. For example, terminal device 100 can establish a Bluetooth connection with wearable electronic devices (such as smartwatches) that also have Bluetooth modules through Bluetooth module 181, thereby exchanging data.
[0050] The terminal device 100 also includes a power supply 190 (such as a battery) that supplies power to various components. The power supply can be logically connected to the processor 180 via a power management system, thereby enabling the management of charging, discharging, and power consumption. The terminal device 100 may also be equipped with a power button for powering on and off the terminal device, as well as for screen locking.
[0051] Figure 2 This is a software structure block diagram of a terminal device 100 according to an embodiment of this application.
[0052] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system can be divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0053] The application layer can include a series of application packages.
[0054] like Figure 2As shown, the application package can include applications such as phone, MMS, Wi-Fi, WeChat, messaging, alarm clock, gallery, calendar, and WLAN.
[0055] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0056] like Figure 2 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
[0057] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture the screen, among other things.
[0058] Content providers are used to store and retrieve data, making that data accessible to applications. This data can include video, images, audio, phone calls made and received, browsing history and bookmarks, phone books, text messages, etc.
[0059] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display screen can consist of one or more views. For example, a display screen including a text message notification icon can include views for displaying text and views for displaying images.
[0060] The phone manager is used to provide communication functions for terminal device 100. For example, it manages call status (including connection, hang-up, etc.).
[0061] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, etc.
[0062] The notification manager allows applications to display notification information (such as SMS message content) in the status bar. It can be used to convey informational messages and can disappear automatically after a short pause without user interaction. For example, the notification manager can be used to notify of download completion or message alerts. The notification manager can also display notifications as icons or scrolling text in the system's top status bar, such as notifications from background applications, or as dialog windows on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating the device, and flashing indicator lights.
[0063] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
[0064] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.
[0065] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0066] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.
[0067] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
[0068] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
[0069] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0070] A 2D (an animation method) graphics engine is a graphics engine for 2D drawing.
[0071] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.
[0072] The terminal device 100 in this application embodiment can be an electronic device including but not limited to smartphones, tablets, wearable electronic devices (such as smartwatches), laptops, etc.
[0073] In the embodiments of this application, the above Figure 1 or Figure 2The terminal device shown can also acquire light intensity values and raw light intensity data collected by the light sensor, perform time-domain and frequency-domain conversion on the raw light intensity data, and determine the frequency domain map corresponding to the raw light intensity data; for each preset frequency range, determine the proportion of the frequency range in the frequency domain map; if the proportion is greater than the proportion threshold corresponding to the frequency range, then the proportion is used as a candidate proportion; based on the preset threshold range and each candidate proportion, determine the target frequency range corresponding to the current light; based on the pre-saved correspondence between frequency range and weight coefficient, determine the target weight coefficient corresponding to the target frequency range; and adjust the brightness of the display screen based on the target weight coefficient and the light intensity value.
[0074] To improve the accuracy of display screen brightness adjustment, embodiments of this application provide a display screen brightness adjustment method, apparatus, terminal device, and medium.
[0075] Figure 3 This application provides a schematic diagram of a display screen brightness adjustment method, which includes the following steps:
[0076] S301: Acquire the light intensity value and raw light intensity data collected by the light sensor.
[0077] This application provides a display screen brightness adjustment method applied to a terminal device, which can be... Figure 1 or Figure 2 The terminal device shown.
[0078] Figure 4 The display brightness adjustment process provided by the prior art, such as... Figure 4 As shown, in existing technology, a light sensor collects ambient light, and the terminal device determines the brightness adjustment value of the display screen based on the light intensity value collected by the light sensor, and then adjusts the brightness of the display screen accordingly. However, because different types of light differ—such as the light emitted by streetlights, fluorescent lamps, and incandescent lamps—the above method leads to inaccurate brightness adjustment of the display screen based on the light intensity value collected by the light sensor, affecting the user experience.
[0079] Figure 5 This provides an improved display brightness adjustment process for existing technologies, such as... Figure 5As shown, in the improved prior art, multiple light sensors are installed in the terminal device, each used to collect light intensity values for different scenes, such as infrared sensors and green light sensors. The terminal device determines its current scene based on the light intensity values collected by each sensor and adjusts the display brightness accordingly. However, this method requires installing multiple light sensors in the terminal device, increasing its workload.
[0080] In this embodiment, a light sensor is installed in the terminal device. This light sensor is used to collect light intensity data of external light and generate a light intensity value based on the collected light intensity data. In this embodiment, the terminal device is generally a terminal device using the Android system. In this embodiment, the light intensity data collected by the terminal device is referred to as raw light intensity data.
[0081] In this embodiment of the application, before the terminal device leaves the factory, the technicians configure the light sensor with the acquisition frequency of raw light intensity data and the reporting frequency of the raw light intensity data acquired by the light sensor to the processor in the terminal device based on the results of multiple experiments.
[0082] Furthermore, to improve the accuracy of brightness adjustment of the display screen, in this embodiment, the terminal device performs time-domain and frequency-domain conversion on the raw light intensity data collected by the light sensor. This requires that the raw light intensity data collected by the light sensor be continuous and uniform in time, and also requires the light sensor to support First-In-First-Out (FIFO) functionality. The light sensor's support for FIFO functionality can be either hardware-supported or code stored within the light sensor supports FIFO functionality.
[0083] Generally, in the embodiments of this application, the reporting period for the light sensor to report the raw light intensity data to the processor is twice the ratio of the light sensor's sampling period to its short integration time. For example, if the maximum sampling frequency of the light sensor for detecting light intensity data is 200Hz, the corresponding detection period is 2500µs, and the short integration time of the light sensor is 384µs, then the reporting period for the light sensor to the processor can be determined to be 2*2500µs / 384µs = 14 sampling periods, that is, the reporting period for the light sensor to report the raw light intensity data to the processor is 35ms, and the reporting frequency is 29Hz.
[0084] It should be noted that when collecting raw light intensity data, the light sensor collects one raw light intensity data point within each short integration time. For example, if the light sensor's reporting frequency is 20Hz, then the reporting period is determined to be 50ms. Based on this, if the terminal device's short integration time is 384µs, then the light sensor can collect a maximum of 50ms / 384µs = 130 raw light intensity data points in one reporting period.
[0085] If the light sensor itself supports FIFO, the technician can pre-configure the storage quantity of the FIFO to a preset storage quantity, which does not exceed the maximum amount of raw light intensity data that the light sensor can collect in a reporting cycle; if the code stored in the light sensor supports the FIFO function, the technician can define a custom array in a preset storage location to store the raw light intensity data, and the size of the array is the preset storage quantity.
[0086] S302: Perform time-domain and frequency-domain transformation on the original light intensity data to determine the frequency domain map corresponding to the original light intensity data; for each preset frequency range, determine the proportion corresponding to the frequency range in the frequency domain map; if the proportion is greater than the proportion threshold corresponding to the frequency range, then the proportion is taken as a candidate proportion.
[0087] In this embodiment, the terminal device performs time-domain to frequency-domain conversion on the raw light intensity data collected by the light sensor to obtain the corresponding frequency-domain data. Based on this frequency-domain data, it plots a spectrum of the raw light intensity data and analyzes the current environment using this spectrum. When performing time-domain to frequency-domain conversion on the raw light intensity data, the terminal device can flexibly employ various time-domain to frequency-domain conversion tools or functions, such as Fourier transform or Fast Fourier transform, depending on the desired effect.
[0088] To improve the time-domain to frequency-domain conversion effect of the original light intensity data, the selection of time-domain to frequency-domain data conversion tools should, but is not limited to, meet the following requirements:
[0089] Requirement 1: This time-domain to frequency-domain data conversion tool should be able to convert the original light intensity data from the time domain to the frequency domain, and the converted frequency domain data should clearly reflect the frequency data corresponding to the external light.
[0090] Requirement 2: The terminal device must be able to support the use of this time-domain to frequency-domain data conversion tool;
[0091] Requirement 3: The conversion process of this time-domain and frequency-domain data conversion tool should have a low resource cost, such as low memory usage and low CPU resource usage.
[0092] Specifically, in this embodiment, the frequency of light differs in different scenarios. For example, the frequency of light in a fluorescent lamp scenario is primarily 120Hz, while the frequency of light in an incandescent lamp scenario is primarily 200Hz, and so on. For each scenario, the terminal device pre-stores a preset frequency range corresponding to that scenario, as well as a threshold percentage of that frequency range when the terminal device is in the test environment of that scenario. The terminal device can determine the scenario it is in based on the percentage of the frequency range corresponding to each scenario in the spectrum and the threshold percentage for each scenario.
[0093] Specifically, in this embodiment of the application, for each preset frequency range, the terminal device determines the proportion corresponding to that frequency range in the spectrum. If the proportion is greater than the proportion threshold corresponding to that frequency range, it is considered that the current scenario of the terminal device may be the scenario corresponding to that frequency range. The terminal device then determines the proportion as a candidate proportion, and subsequently further verifies the current scenario of the terminal device based on the candidate proportion.
[0094] It should be noted that, in the embodiments of this application, the frequency range can be the frequency value of the light in the scene corresponding to the frequency range, or it can include the frequency interval of the frequency value, which is not limited here.
[0095] Figure 6 The time-domain diagram of fluorescent lamps and morning ambient light provided in the embodiments of this application is as follows. Figure 6 As shown, the upper curve is a time-domain plot of the light intensity data of fluorescent lamps, and the lower curve is a time-domain plot of the light intensity data of ambient light in the morning.
[0096] Figure 7 The frequency domain diagrams of fluorescent lamps and morning ambient light provided in the embodiments of this application are as follows. Figure 7 As shown, the upper curve is the frequency domain graph of the light intensity data of the fluorescent lamp, and the lower curve is the frequency domain graph of the light intensity data of the ambient light in the morning. Furthermore, it can be seen from the frequency domain graph that the frequency range corresponding to the fluorescent lamp is 100Hz-200Hz.
[0097] S303: Determine the target frequency range corresponding to the current light beam based on the preset threshold range and the proportion of each candidate.
[0098] In this embodiment of the application, after determining the candidate proportion, the terminal device can further verify the current scenario based on the candidate proportion.
[0099] Specifically, in this embodiment of the application, the terminal device stores a threshold range. If there is a candidate proportion within the threshold range, the frequency range corresponding to the candidate proportion is determined to be the target frequency range corresponding to the current light, that is, the scene where the terminal device is currently located is determined to be the scene corresponding to the target frequency range.
[0100] S304: Based on the pre-saved correspondence between frequency ranges and weighting coefficients, determine the target weighting coefficient corresponding to the target frequency range, and adjust the brightness of the display screen according to the target weighting coefficient and the light intensity value.
[0101] In this embodiment, the terminal device also stores the correspondence between each frequency range and a weighting coefficient. This weighting coefficient is a weighted value derived by technicians based on a large amount of raw light intensity data and the actual perception of the human eye. Different types of light have different effects on the light sensor. The light sensor is an energy-sensing device; the stronger the light energy, the greater the light intensity value collected by the light sensor. Therefore, the corresponding weighting coefficient needs to be configured to be smaller to reduce energy interference. For example, in incandescent and fluorescent lamp scenarios, when the light sensor reports the same value, the actual brightness perceived by the human eye will be inconsistent, thus requiring different weighting coefficients.
[0102] Technicians can test the light intensity values collected by the light sensor and the actual brightness values collected by the illuminance meter (an instrument that can sense the actual brightness of light) under different simple lighting conditions (such as fluorescent light and incandescent light). Technicians can then calculate weighting coefficients based on the difference between the light intensity values and the actual brightness values. Alternatively, technicians can use other methods to obtain the difference between the light intensity values collected by the light sensor and the brightness perceived by the human eye. Technicians can save the correspondence between the determined frequency range of the scene and the weighting coefficients in the form of an array or table to a preset storage location on the terminal device for easy retrieval later.
[0103] Specifically, in this embodiment, after determining the current scene, i.e., the target frequency range corresponding to the current light, the terminal device determines the target weight coefficient corresponding to the target frequency range based on this correspondence. The terminal device then adjusts the light intensity value collected by the light sensor based on this target weight coefficient, and adjusts the brightness of the display screen based on the adjusted light intensity value.
[0104] In this embodiment, the terminal device adjusts the brightness of the display screen according to the light intensity value using the built-in display screen brightness adjustment mechanism of Android, which will not be described in detail here.
[0105] In this embodiment, the terminal device performs time-domain to frequency-domain conversion on the raw light intensity data collected by the light sensor. Based on the converted time-domain graph and the pre-saved correspondence between frequency ranges and weighting coefficients, it determines the current target frequency range, which is equivalent to determining the current acquisition scene, and also determines the target weighting coefficient corresponding to that scene. The terminal device then adjusts the light intensity value collected by the light sensor based on this target weighting coefficient, and adjusts the display brightness based on the adjusted light intensity value, thereby improving the accuracy of the display brightness adjustment.
[0106] To more accurately determine the current scenario of the terminal device, based on the above embodiments, in this embodiment, determining the proportion corresponding to the frequency range in the frequency domain diagram includes:
[0107] Determine the total area enclosed by the waveform and the X-axis in the frequency domain graph, and the sub-area enclosed by the waveform and the X-axis within the frequency range;
[0108] The ratio of the sub-area to the total area is determined as the proportion of the frequency range.
[0109] In this embodiment of the application, for each frequency range, when determining the proportion corresponding to the frequency range, the electronic device determines the total area enclosed by the waveform in the spectrum and the X-axis, and determines the sub-area enclosed by the waveform and the X-axis in the frequency range. The terminal device determines the ratio of the sub-area to the total area as the proportion corresponding to the frequency range.
[0110] It should be noted that if the frequency range corresponds to the frequency value of the light in the scene, then the sub-area enclosed by the waveform within the frequency range and the X-axis can be understood as the numerical value corresponding to that frequency value in the waveform.
[0111] Figure 8 This is a schematic diagram illustrating the calculation of the proportion corresponding to a frequency range when the frequency range is a frequency interval, as provided in the embodiments of this application. Figure 8 As shown, the total area enclosed by the waveform and the X-axis is S, and the sub-area enclosed by the waveform and the X-axis within this frequency range is s. Therefore, the proportion corresponding to this frequency range is determined to be s / S.
[0112] Figure 9 This is a schematic diagram illustrating the calculation of the percentage corresponding to a frequency range when the frequency range is a frequency value, as provided in the embodiments of this application. Figure 9 As shown, the total area enclosed by the waveform and the X-axis is S, and the value corresponding to this frequency value in the waveform is A. Then, the proportion corresponding to this frequency range is determined to be A / S.
[0113] To accurately determine the current scene of the terminal device, based on the above embodiments, in this embodiment, determining the target frequency range corresponding to the current light source according to a preset threshold range and the proportion of each candidate includes:
[0114] If it is determined that there exists a maximum value of a boundary value for a first candidate proportion that is not lower than the preset threshold range, then the frequency range corresponding to the first candidate proportion is determined as the target frequency range.
[0115] In this embodiment of the application, the terminal device stores a preset threshold range, and the terminal device can further determine the current scene based on the threshold range.
[0116] Specifically, in this embodiment of the application, if there is a first candidate percentage among the candidate percentages that is not lower than the maximum value of the boundary value of the threshold range, the terminal device considers the value of the first candidate percentage to be far greater than the other candidate percentages. The terminal device then determines that the frequency range corresponding to the first candidate percentage is the target frequency range corresponding to the current light, that is, the terminal device determines that the scene corresponding to the target frequency range is the scene it is currently in.
[0117] For example, in this embodiment of the application, the threshold range stored in the terminal device is 50%-80%. If the terminal device determines that there is a first candidate with a proportion of 90% that is not lower than the maximum value of the boundary value of the threshold range of 80%, then the terminal device determines that the frequency range corresponding to the first candidate proportion is the target frequency range corresponding to the current light.
[0118] To accurately determine the current scene of the terminal device, based on the above embodiments, in this embodiment, determining the target frequency range corresponding to the current light source according to a preset threshold range and the proportion of each candidate includes:
[0119] If it is determined that at least two second candidate percentages are within the preset threshold range, then the priority of the frequency range corresponding to the saved at least two second candidate percentages is obtained;
[0120] The frequency range with the highest priority is determined as the target frequency range.
[0121] In this embodiment, the terminal device stores a preset threshold range, which allows it to further determine the current scene. Furthermore, the terminal device stores a pre-configured priority for each scene's frequency range. This priority is determined by a technician based on the magnitude of the impact of light from each frequency range on the light sensor. For example, if the impact of incandescent light on the light sensor is greater than that of fluorescent light, the technician would set the priority of fluorescent light lower than that of incandescent light.
[0122] Specifically, in this embodiment of the application, if at least two second candidate proportions are within a preset threshold range, the terminal device determines the priority of the frequency range corresponding to the at least two second candidate proportions according to the priority of each frequency range saved in advance, and determines the frequency range with the highest priority as the target frequency range corresponding to the current light, that is, the terminal device determines the scene corresponding to the target frequency range as the current scene.
[0123] For example, in this embodiment of the application, the threshold range stored in the terminal device is 40%-80%. If the terminal device determines that there are second candidate percentages a1 and second candidate percentages a2 within the threshold range, wherein the second candidate percentage a1 is 45% and the second candidate percentage a2 is 50%, and the priority of the frequency range corresponding to the second candidate percentage a1 is higher than the priority of the frequency range corresponding to the second candidate percentage a2, then the terminal device determines the frequency range corresponding to the second candidate percentage a1 as the target frequency range.
[0124] To accurately determine the current scene of the terminal device, based on the above embodiments, in this embodiment, determining the target frequency range corresponding to the current light source according to a preset threshold range and the proportion of each candidate includes:
[0125] If it is determined that there exists a third candidate percentage within the preset threshold range, then the frequency range corresponding to the third candidate percentage is determined as the target frequency range.
[0126] In this embodiment of the application, the terminal device stores a preset threshold range, and the terminal device can further determine the current scene based on the threshold range.
[0127] Specifically, in this embodiment of the application, if there is only one third candidate percentage among the candidate percentages that is within the threshold range, the terminal device determines that the frequency range corresponding to the third candidate percentage is the target frequency range corresponding to the current light, that is, the terminal device determines that the scene corresponding to the target frequency range is the scene it is currently in.
[0128] For example, in this embodiment of the application, the threshold range stored in the terminal device is 50%-80%. If the terminal device determines that there is only one third candidate with a proportion of 70% within the threshold range, then the terminal device determines that the frequency range corresponding to the proportion of the third candidate is the target frequency range corresponding to the current light.
[0129] Furthermore, in this embodiment, if the terminal device determines that there is no candidate proportion that is within the threshold range or exceeds the maximum value of the threshold range boundary, the terminal device will adjust the light intensity value using the default weighting coefficient.
[0130] To better adjust the brightness of the display screen, based on the above embodiments, in this embodiment, adjusting the brightness of the display screen according to the target weighting coefficient and the light intensity value includes:
[0131] Determine the product of the target weight coefficient and the light intensity value, and update the light intensity value using the product;
[0132] The brightness of the display screen is adjusted based on the updated light intensity value.
[0133] In this embodiment, after determining the target weight coefficient, the terminal device calculates the product of the target weight coefficient and the light intensity value collected by the light sensor, and determines the product as the updated light intensity value. The terminal device then adjusts the brightness of the display screen based on the updated light intensity value.
[0134] To adjust the brightness of the display screen, based on the above embodiments, in this embodiment, before acquiring the light intensity value and raw light intensity data collected by the light sensor, the method further includes:
[0135] The operation of receiving input to configure parameters of a light sensor, wherein the operation carries a short integration time parameter to be configured;
[0136] The light sensor is configured according to the short integration time parameter.
[0137] In this embodiment, the terminal device typically uses Fourier transform for the conversion from the time domain to the frequency domain. This places certain requirements on the sampling frequency of the light sensor. Generally, the sampling frequency of the light sensor should be at least twice the frequency of the light. For example, if a Fourier transform is required for 120Hz artificial light, the corresponding sampling frequency of the light sensor should be at least 240Hz, and the higher the sampling frequency, the better. The sampling frequency is the ratio of unit time to the short integration time of the light sensor. Based on this, technicians will set the short integration time of the light sensor before the terminal device leaves the factory.
[0138] Specifically, technicians confirm the frequency value of the light corresponding to each scene, such as 200Hz light, 120Hz light, and 60Hz light, and determine the short integration time required by the light sensor based on the maximum frequency of the light. For example, if 200Hz is the maximum frequency of the light, the short integration sampling frequency of the terminal device needs to be at least 400Hz, which translates to a short integration time of 1 / 400 = 2.5ms.
[0139] After determining the required short integration time for the light sensor, the technicians determine the short integration time parameters for the light sensor, such as 192us, 384us, 1920us, and 3125us supported by the terminal device. Based on the required short integration time, the technicians can confirm the short integration time parameter configuration that the light sensor can use, such as 192us, 384us, and 1920us being optional, while 3125us is not optional.
[0140] If the technician determines that there are at least two short integration time parameters available in the light sensor, the technician will further filter out the short integration time parameters to be configured based on the sampling effect of the raw light intensity data corresponding to each short integration time.
[0141] Specifically, for each available short integration time parameter, technicians configure the light sensor accordingly. Then, in a fully automated environment, the light sensor detects a standard light box to obtain light intensity values. Based on the original light intensity value of the standard light box and the light intensity value acquired by the light sensor, technicians calculate the standard light box conversion ratio corresponding to that short integration time parameter. If the standard light box conversion ratio exceeds a preset threshold, it indicates that the sensitivity of the light sensor is too low under that short integration time parameter configuration, and this configuration needs to be discarded. The standard light box conversion ratio threshold is typically 1. For example, with a short integration time parameter of 192µs, the standard light box conversion ratio of the light sensor is 1.2, so this configuration is discarded, and the available configurations are reduced to 384µs and 1920µs.
[0142] If at least two short integration time parameters correspond to standard optical box conversion ratios lower than the standard optical box conversion ratio threshold, the technician will configure the light sensor using a short integration time parameter with a smaller integration time. For example, if the standard optical box conversion ratios corresponding to 384us and 1920us are lower than the standard optical box conversion ratio threshold, the technician will select a short integration time parameter with a smaller integration time to configure the light sensor, i.e., select 384us to configure the light sensor.
[0143] Specifically, the technician inputs the parameters of the light sensor to configure it, including the short integration time parameter to be configured. The terminal device then configures the light sensor based on this short integration time parameter.
[0144] Figure 10 This is a schematic diagram of the display screen brightness adjustment process provided in the embodiments of this application. Figure 10 As shown, the process includes:
[0145] S1001: Configure the short integration time parameter of the light sensor.
[0146] In this embodiment, the terminal device typically uses Fourier transform for the conversion from the time domain to the frequency domain. This places certain requirements on the sampling frequency of the light sensor. Generally, the sampling frequency of the light sensor should be at least twice the frequency of the light. For example, if a Fourier transform is required for 120Hz artificial light, the corresponding sampling frequency of the light sensor should be at least 240Hz, and the higher the sampling frequency, the better. The sampling frequency is the ratio of unit time to the short integration time of the light sensor. Based on this, technicians will set the short integration time of the light sensor before the terminal device leaves the factory.
[0147] S1002: Acquire the light intensity value and raw light intensity data collected by the light sensor.
[0148] In this embodiment of the application, a light sensor is installed in the terminal device. The light sensor is used to collect raw light intensity data of the external light and generate light intensity values based on the collected light intensity data.
[0149] S1003: Perform time-domain and frequency-domain transformation on the original light intensity data to determine the frequency domain map corresponding to the original light intensity data.
[0150] In this embodiment, the terminal device performs time-domain to frequency-domain conversion on the raw light intensity data collected by the light sensor to obtain frequency domain data corresponding to the raw light intensity data, and draws a spectrum diagram corresponding to the raw light intensity data based on the frequency domain data. The terminal device then analyzes the current environment based on the spectrum diagram.
[0151] S1004: Based on this frequency domain diagram, determine the target frequency range corresponding to the current light beam.
[0152] In this embodiment of the application, the terminal device determines the proportion of the frequency range in the frequency domain graph for each preset frequency range. If the proportion is greater than the proportion threshold corresponding to the frequency range, the proportion is taken as a candidate proportion. Based on the preset threshold range and each candidate proportion, the target frequency range corresponding to the current light is determined.
[0153] S1005: Determine the target weight coefficient corresponding to the target frequency range based on the pre-saved correspondence between frequency range and weight coefficient.
[0154] In this embodiment of the application, after the terminal device determines the current scene, that is, the target frequency range corresponding to the current light, the terminal device will determine the target weight coefficient corresponding to the target frequency range according to the correspondence.
[0155] S1006: Adjust the brightness of the display screen according to the target weighting coefficient and the light intensity value.
[0156] The terminal device adjusts the light intensity value collected by the light sensor according to the target weight coefficient, and adjusts the brightness of the display screen based on the adjusted light intensity value.
[0157] Figure 11 This is a schematic diagram of the structure of the display screen brightness adjustment device provided in the embodiments of this application. Figure 11 As shown, the device includes:
[0158] The acquisition module 1101 is used to acquire the light intensity value and raw light intensity data collected by the light sensor;
[0159] Processing module 1102 is used to perform time-domain and frequency-domain transformation on the original light intensity data to determine the frequency domain map corresponding to the original light intensity data; for each preset frequency range, determine the proportion corresponding to the frequency range in the frequency domain map; if the proportion is greater than the proportion threshold corresponding to the frequency range, then the proportion is used as a candidate proportion; determine the target frequency range corresponding to the current light ray according to the preset threshold range and each candidate proportion; determine the target weight coefficient corresponding to the target frequency range according to the pre-saved correspondence between frequency range and weight coefficient;
[0160] The brightness adjustment module 1103 is used to adjust the brightness of the display screen according to the target weight coefficient and the light intensity value.
[0161] In one possible implementation, the processing module 1102 is specifically used to determine the total area enclosed by the waveform and the X-axis in the frequency domain graph, and the sub-area enclosed by the waveform and the X-axis within the frequency range; and to determine the ratio of the sub-area to the total area as the proportion of the frequency range.
[0162] In one possible implementation, the processing module 1102 is specifically configured to determine the frequency range corresponding to the first candidate percentage as the target frequency range if it is determined that there exists a maximum value of a boundary value of a first candidate percentage that is not lower than the preset threshold range.
[0163] In one possible implementation, the processing module 1102 is specifically configured to, if it is determined that at least two second candidate percentages are within the preset threshold range, obtain the priority of the frequency range corresponding to the saved at least two second candidate percentages; and determine the frequency range with the highest priority as the target frequency range.
[0164] In one possible implementation, the processing module 1102 is specifically configured to determine the frequency range corresponding to the third candidate percentage as the target frequency range if it is determined that there is a third candidate percentage within the preset threshold range.
[0165] In one possible implementation, the acquisition module 1101 is further configured to receive an input operation for configuring parameters of the light sensor, wherein the operation carries a short integration time parameter to be configured.
[0166] The processing module 1102 is also used to configure the light sensor according to the short integration time parameter.
[0167] In one possible implementation, the brightness adjustment module 1103 is specifically used to determine the product of the target weight coefficient and the light intensity value, update the light intensity value using the product, and adjust the brightness of the display screen according to the updated light intensity value.
[0168] Based on the same inventive concept Figure 12 This is another schematic diagram of the terminal device provided in the embodiments of this application, such as... Figure 12 As shown, it includes: one or more processors 1201 (including two) and a communication interface 1202.
[0169] The processor 1101 stores a computer program, which, when executed by the processor 1101, causes the processor 1101 to perform the steps of the display screen brightness adjustment method in any of the above embodiments.
[0170] Optionally, the terminal device also includes a memory 1203, which may include read-only memory and random access memory, and provides operation instructions and data to the processor. A portion of the memory may also include non-volatile random access memory (NVRAM).
[0171] In some implementations, such as Figure 12 As shown, memory 1203 stores the following elements: execution modules or data structures, or subsets thereof, or extended sets thereof.
[0172] like Figure 12 As shown, in some embodiments of this application, corresponding operations are performed by calling operation instructions stored in memory 1203 (which may be stored in the operating system).
[0173] like Figure 12 As shown, the processor 1201 controls the processing operations of the head-end device. The processor can also be called a central processing unit (CPU).
[0174] like Figure 12As shown, memory 1203 may include read-only memory and random access memory, and provides instructions and data to the processor. A portion of memory 1203 may also include NVRAM. For example, in an application, the communication interface and memory are coupled together via bus system 1204, which may include, in addition to a data bus, a power bus, a control bus, and a status signal bus, etc. However, for clarity, in... Figure 12 The general labeled all buses as Bus System 1204.
[0175] Based on the above embodiments, this application also provides a computer-readable storage medium storing a computer program executable by a terminal device. When the program is run on the terminal device, the terminal device executes the methods disclosed in some embodiments of this application.
[0176] Since the principle of the computer-readable storage medium in solving the problem is similar to that of the display screen brightness adjustment method, the implementation of the computer-readable storage medium can be found in the embodiments of the method, and repeated details will not be described again.
[0177] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0178] This application allows each block of a flowchart and / or block diagram, and combinations of blocks in a flowchart and / or block diagram, to be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing device, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0179] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means.
[0180] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce computer-implemented processing.
[0181] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A method for adjusting the brightness of a display screen, applied to a terminal device, characterized in that, The method includes: Acquire the light intensity value and raw light intensity data collected by the light sensor; The original light intensity data is transformed from the time domain to the frequency domain to determine the frequency domain map corresponding to the original light intensity data; for each preset frequency range, the proportion corresponding to that frequency range in the frequency domain map is determined; if the proportion is greater than the proportion threshold corresponding to that frequency range, then the proportion is taken as a candidate proportion. Based on the preset threshold range and the proportion of each candidate, determine the target frequency range corresponding to the current light. Based on the pre-saved correspondence between frequency ranges and weighting coefficients, the target weighting coefficient corresponding to the target frequency range is determined, and the brightness of the display screen is adjusted according to the target weighting coefficient and the light intensity value. The step of adjusting the brightness of the display screen based on the target weighting coefficient and the light intensity value includes: Determine the product of the target weight coefficient and the light intensity value, and update the light intensity value using the product; The brightness of the display screen is adjusted based on the updated light intensity value; Among them, the stronger the energy of the light, the greater the light intensity value collected by the light sensor, and the smaller the corresponding target weight coefficient; For each scenario, the terminal device pre-stores the preset frequency range corresponding to that scenario, as well as the percentage threshold of the frequency range corresponding to that scenario when the terminal device is in the test environment of that scenario. Wherein, the frequency range is the frequency value of light in the scene corresponding to the frequency range, or, a frequency interval containing the frequency value.
2. The method according to claim 1, characterized in that, Determining the proportion corresponding to the frequency range in the frequency domain diagram includes: Determine the total area enclosed by the waveform and the X-axis in the frequency domain graph, and the sub-area enclosed by the waveform and the X-axis within the frequency range; The ratio of the sub-area to the total area is determined as the proportion of the frequency range.
3. The method according to claim 1, characterized in that, The step of determining the target frequency range corresponding to the current light beam based on a preset threshold range and the proportion of each candidate includes: If it is determined that there exists a maximum value of a boundary value for a first candidate proportion that is not lower than the preset threshold range, then the frequency range corresponding to the first candidate proportion is determined as the target frequency range.
4. The method according to claim 1, characterized in that, The step of determining the target frequency range corresponding to the current light beam based on a preset threshold range and the proportion of each candidate includes: If it is determined that at least two second candidate percentages are within the preset threshold range, then the priority of the frequency range corresponding to the saved at least two second candidate percentages is obtained; The frequency range with the highest priority is determined as the target frequency range.
5. The method according to claim 1, characterized in that, The step of determining the target frequency range corresponding to the current light beam based on a preset threshold range and the proportion of each candidate includes: If it is determined that there exists a third candidate percentage within the preset threshold range, then the frequency range corresponding to the third candidate percentage is determined as the target frequency range.
6. The method according to claim 1, characterized in that, Before acquiring the light intensity value and raw light intensity data collected by the light sensor, the method further includes: The operation of receiving input to configure parameters of a light sensor, wherein the operation carries a short integration time parameter to be configured; The light sensor is configured according to the short integration time parameter.
7. A display screen brightness adjustment device, applied to a terminal device, characterized in that, The device includes: The acquisition module is used to acquire the light intensity value and raw light intensity data collected by the light sensor; The processing module is used to perform time-domain and frequency-domain transformation on the original light intensity data to determine the frequency domain map corresponding to the original light intensity data; for each preset frequency range, determine the proportion of the frequency range in the frequency domain map; if the proportion is greater than the proportion threshold corresponding to the frequency range, then the proportion is used as a candidate proportion; determine the target frequency range corresponding to the current light ray according to the preset threshold range and each candidate proportion; and determine the target weight coefficient corresponding to the target frequency range according to the pre-saved correspondence between frequency range and weight coefficient. A brightness adjustment module is used to adjust the brightness of the display screen according to the target weighting coefficient and the light intensity value; Specifically, the brightness adjustment module is used to determine the product of the target weight coefficient and the light intensity value, update the light intensity value using the product, and adjust the brightness of the display screen based on the updated light intensity value. Among them, the stronger the energy of the light, the greater the light intensity value collected by the light sensor, and the smaller the corresponding target weight coefficient; For each scenario, the terminal device pre-stores the preset frequency range corresponding to that scenario, as well as the percentage threshold of the frequency range corresponding to that scenario when the terminal device is in the test environment of that scenario. Wherein, the frequency range is the frequency value of light in the scene corresponding to the frequency range, or, a frequency interval containing the frequency value.
8. A terminal device, characterized in that, The terminal device includes: Display, processor, and memory; The display is used to show the screen display area; The memory is used to store the processor-executable instructions; The processor is configured to execute the instructions to implement the display screen brightness adjustment method as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by a processor, implements the steps of the display screen brightness adjustment method as described in any one of claims 1-6.
Citation Information
Patent Citations
Method and apparatus for adjusting backlight brightness of display terminal and television set
CN105741787A