CN115101002A - Display screen brightness adjusting method and device, terminal equipment and medium - Google Patents

Display screen brightness adjusting method and device, terminal equipment and medium Download PDF

Info

Publication number
CN115101002A
CN115101002A CN202210766205.5A CN202210766205A CN115101002A CN 115101002 A CN115101002 A CN 115101002A CN 202210766205 A CN202210766205 A CN 202210766205A CN 115101002 A CN115101002 A CN 115101002A
Authority
CN
China
Prior art keywords
frequency range
light intensity
ratio
determining
display screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210766205.5A
Other languages
Chinese (zh)
Inventor
战磊
刘新军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN202210766205.5A priority Critical patent/CN115101002A/en
Publication of CN115101002A publication Critical patent/CN115101002A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • G09G3/30Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
    • G09G3/32Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/34Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
    • G09G3/36Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using liquid crystals
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the application provides a display screen brightness adjusting method, a display screen brightness adjusting device, a terminal device and a medium, wherein in the embodiment of the application, the terminal device performs time domain frequency domain conversion according to original light intensity data collected by a light sensor, determines a current target frequency range according to a frequency domain graph obtained by conversion and a corresponding relation between a pre-stored frequency range and a weight coefficient, namely determines a current collection scene and determines a target weight coefficient corresponding to the scene, and the terminal device adjusts a 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 an actual light intensity value. The terminal equipment can adjust the brightness of the display screen based on the adjusted light intensity value, and the accuracy of adjusting the brightness of the display screen is improved.

Description

Display screen brightness adjusting method and device, terminal equipment and medium
Technical Field
The present application relates to the field of display screen technologies, and in particular, to a method and an apparatus for adjusting brightness of a display screen, a terminal device, and a medium.
Background
With the development of technology, terminal devices are widely used in production and life, and become an indispensable tool in people's production and life. The terminal device includes at least one display screen, and the display screen can be used for displaying, for example, a user can read a document, refer to an image, and the like through the display screen.
In order to better meet the display requirements of users, the terminal device can adjust the brightness of the display screen according to external light, so that the brightness of the display screen can be matched with the current external light. Specifically, the terminal equipment comprises at least one light sensor, the light sensor collects original light intensity data of external light, and light energy is converted into an electric signal to obtain a light intensity value of the external light. And the terminal equipment determines a brightness adjustment value of the display screen according to the light intensity value acquired by the light sensor, and adjusts the brightness adjustment value based on the brightness adjustment value.
However, there are differences between different lights, such as the light emitted from a street lamp, the light emitted from a fluorescent lamp, and the light emitted from an incandescent lamp. Therefore, even if the brightness of different lights is the same, that is, the light intensity data of the lights are the same, the light intensity values acquired by the light sensors are different, which causes inaccuracy in adjusting the brightness of the display screen depending on the light intensity values acquired by the light sensors, and affects user experience.
Disclosure of Invention
The application provides a display screen brightness adjusting method, a display screen brightness adjusting device, terminal equipment and a display screen brightness adjusting medium, and aims to solve the problems that in the prior art, when a light intensity value is collected by a light ray sensor, the accuracy is low, when the brightness of a display screen is adjusted depending on the light intensity value collected by the light ray sensor, the inaccuracy is caused, and user experience is influenced.
In a first aspect, an embodiment of the present application provides a method for adjusting brightness of a display screen, which is applied to a terminal device, and the method includes:
acquiring a light intensity value and original light intensity data acquired by a light sensor;
performing time domain and frequency domain conversion on the original light intensity data to determine a frequency domain graph corresponding to the original light intensity data; determining the ratio corresponding to the frequency range in the frequency domain diagram aiming at each preset frequency range, and if the ratio is larger than the ratio threshold corresponding to the frequency range, taking the ratio as a candidate ratio;
determining a target frequency range corresponding to the current light according to a preset threshold range and each candidate ratio;
and determining a target weight coefficient corresponding to the target frequency range according to a corresponding relation between a pre-stored frequency range and the weight coefficient, and adjusting the brightness of the display screen according to the target weight coefficient and the light intensity value.
In a second aspect, an embodiment of the present application further provides a display screen brightness adjusting apparatus, which is applied to a terminal device, and the apparatus includes:
the acquisition module is used for acquiring the light intensity value and the original light intensity data acquired by the light sensor;
the processing module is used for carrying out time domain and frequency domain conversion on the original light intensity data and determining a frequency domain graph corresponding to the original light intensity data; determining the ratio corresponding to the frequency range in the frequency domain diagram aiming at each preset frequency range, and if the ratio is larger than the ratio threshold corresponding to the frequency range, taking the ratio as a candidate ratio; determining a target frequency range corresponding to the current light according to a preset threshold range and each candidate ratio; determining a target weight coefficient corresponding to the target frequency range according to a corresponding relation between a pre-stored frequency range and the weight coefficient;
and the brightness adjusting module is used for adjusting the brightness of the display screen according to the target weight coefficient and the light intensity value.
In a third aspect, an embodiment of the present application further provides a terminal device, where the terminal device includes:
a display, a processor, and a memory;
the display is used for displaying a screen display area;
the memory 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 the above.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the method for adjusting brightness of a display screen according to any one of the foregoing embodiments is implemented.
In the embodiment of the application, the light intensity value and the original light intensity data acquired by the light sensor are acquired, the original light intensity data is subjected to time domain and frequency domain conversion, and a frequency domain graph corresponding to the original light intensity data is determined; and determining the proportion corresponding to the frequency range in the frequency domain diagram aiming at each preset frequency range, if the proportion is larger than the proportion threshold corresponding to the frequency range, taking the proportion as a candidate proportion, determining a target frequency range corresponding to the current light according to the preset threshold range and each candidate proportion, determining a target weight coefficient corresponding to the target frequency range according to the corresponding relation between the pre-stored frequency range and the weight coefficient, and adjusting the brightness of the display screen according to the target weight coefficient and the light intensity value. In the embodiment of the application, the terminal device performs time-domain frequency-domain conversion according to the original light intensity data acquired by the light sensor, determines a current target frequency range according to the frequency-domain diagram obtained by the conversion and the corresponding relationship between the pre-stored frequency range and the weight coefficient, that is, determines a current acquisition scene and determines a target weight coefficient corresponding to the scene, and the terminal device adjusts the light intensity value acquired by the light sensor based on the target weight coefficient, so that the light intensity value acquired by the light sensor is closer to an actual light intensity value. The terminal equipment can adjust the brightness of the display screen based on the adjusted light intensity value, and the accuracy of adjusting the brightness of the display screen is improved.
Drawings
In order to more clearly explain the technical solutions of the present application, the drawings required for the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 shows a schematic structural diagram of a terminal device 100;
fig. 2 is a block diagram of a software structure of a terminal device 100 according to an embodiment of the present application;
fig. 3 is a schematic process diagram of a method for adjusting brightness of a display screen according to an embodiment of the present disclosure;
FIG. 4 is a prior art process for adjusting the brightness of a display screen;
FIG. 5 is a diagram illustrating a prior art process for adjusting the brightness of a display screen;
FIG. 6 is a time domain diagram of a fluorescent lamp and ambient light in the morning provided by the embodiment of the present application;
FIG. 7 is a frequency domain diagram of a fluorescent lamp and ambient light in the morning provided by an embodiment of the present application;
fig. 8 is a schematic diagram illustrating calculation of a ratio corresponding to a frequency range when the frequency range is a frequency interval according to an embodiment of the present application;
fig. 9 is a schematic diagram illustrating calculation of the ratio corresponding to the frequency range when the frequency range is a frequency value according to the embodiment of the present application;
fig. 10 is a schematic flowchart of adjusting brightness of a display screen according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a display screen brightness adjustment apparatus according to an embodiment of the present application;
fig. 12 is another schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to improve the accuracy of display screen brightness adjustment, the embodiment of the application provides a display screen brightness adjustment method, a display screen brightness adjustment device, a terminal device and a medium, wherein the method comprises the following steps: acquiring a light intensity value and original light intensity data acquired by a light sensor; performing time domain and frequency domain conversion on the original light intensity data to determine a frequency domain graph corresponding to the original light intensity data; determining the ratio corresponding to the frequency range in the frequency domain diagram aiming at each preset frequency range, and if the ratio is larger than the ratio threshold corresponding to the frequency range, taking the ratio as a candidate ratio; determining a target frequency range corresponding to the current light according to a preset threshold range and each candidate ratio; and determining a target weight coefficient corresponding to the target frequency range according to a corresponding relation between a pre-stored frequency range and the weight coefficient, and adjusting the brightness of the display screen according to the target weight coefficient and the light intensity value.
Fig. 1 shows a schematic structural diagram of a terminal device 100. It should be understood that the terminal device 100 shown in fig. 1 is only an example, and the terminal device 100 may have more or less components than those shown in fig. 1, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
A block diagram of a hardware configuration of a terminal device 100 according to an exemplary embodiment is exemplarily shown in fig. 1. As shown in fig. 1, the terminal device 100 includes: 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.
The RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and may receive downlink data of a base station and then send the downlink data to the processor 180 for processing; the uplink data may be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
The memory 120 may be used to store software programs and data. The processor 180 performs various functions of the terminal device 100 and data processing by executing 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 magnetic 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 operate. The memory 120 in the present application may store an operating system and various application programs, and may also store program codes for executing the method for adjusting brightness of a display screen according to the embodiment of the present application.
The display unit 130 may be used to receive input numeric or character information and generate signal input related to user settings and function control of the terminal device 100, and specifically, the display unit 130 may include a touch screen 131 disposed on the front surface of the terminal device 100 and capable of collecting touch operations, such as button clicking, by the user thereon or nearby.
The display unit 130 may also be used to display a Graphical User Interface (GUI) of information input by or provided to the user and various menus of the terminal apparatus 100. Specifically, the display unit 130 may include a display screen 132 disposed on the front surface of the terminal device 100. The display 132 may be configured in the form of a liquid crystal display, a light emitting diode, or the like. The display unit 130 may be used to display a display area of a display screen of the terminal device in the present application.
The touch screen 131 may cover the display screen 132, or the touch screen 131 and the display screen 132 may be integrated to implement the input and output functions of the terminal device 100, and after the integration, the touch screen may be referred to as a touch display screen for short. In the present application, the display unit 130 may display the application programs and the corresponding operation steps.
The camera 140 may be used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing elements convert the light signals into electrical signals which are then passed to the processor 180 for conversion into digital image signals.
The terminal device 100 may further comprise at least one sensor 150, such as an acceleration sensor 151, a distance sensor 152, a fingerprint sensor 153, a temperature sensor 154. The terminal device 100 may also be configured with other sensors such as a gyroscope, barometer, hygrometer, thermometer, infrared sensor, light sensor, motion sensor, and the like.
The audio circuitry 160, speaker 161, microphone 162 may provide an audio interface between the user and the terminal device 100. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161. The terminal device 100 may further be configured with a volume button for adjusting the volume of the sound signal, and may be configured to combine other buttons to adjust the closed area. On the other hand, the microphone 162 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 160, and outputs the audio data to the RF circuit 110 to be transmitted to, for example, another terminal device, or outputs the audio data to the memory 120 for further processing.
Wi-Fi belongs to a short-distance wireless transmission technology, and the terminal device 100 can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the Wi-Fi module 170, and provides wireless broadband internet access for the user.
The processor 180 is a control center of the terminal device 100, connects various parts of the entire terminal device using various interfaces and lines, and performs various functions of the terminal device 100 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, processor 180 may include one or more processing units; the processor 180 may also integrate an application processor, which mainly handles operating systems, user interfaces, applications, etc., and a baseband processor, which mainly handles wireless communications. It will be appreciated that the baseband processor described above may not be integrated into the processor 180. In the present application, the processor 180 may operate an operating system, an application program, a user interface display, and a touch response, and the display screen brightness adjustment method according to the embodiment of the present application. Further, the processor 180 is coupled with the display unit 130.
And the bluetooth module 181 is configured to perform information interaction with other bluetooth devices having a bluetooth module through a bluetooth protocol. For example, the terminal device 100 may establish a bluetooth connection with a wearable electronic device (e.g., a smart watch) having a bluetooth module via the bluetooth module 181, so as to perform data interaction.
The terminal device 100 also includes a power supply 190 (such as a battery) for powering the various components. The power supply may be logically connected to the processor 180 through a power management system to manage charging, discharging, power consumption, etc. through the power management system. The terminal device 100 may further be configured with a power button for powering on and off the terminal device, and locking the screen.
Fig. 2 is a block diagram of a software structure of a terminal device 100 according to an embodiment of the present application.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system may be divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer, from top to bottom, respectively.
The application layer may include a series of application packages.
As shown in fig. 2, the application package may include phone, mms, Wi-Fi, wechat, information, alarm, gallery, calendar, WLAN, etc. applications.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the display screen, intercept the display screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, dialed and received calls, browsing history and bookmarks, phone books, short messages, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display screen may be composed of one or more views. For example, the display screen including the short message notification icon may include a view for displaying text and a view for displaying a picture.
The phone manager is used to provide the communication function of the terminal device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources, such as localized strings, icons, pictures, layout files, video files, etc., to the application.
The notification manager allows the application to display notification information (e.g., the message content of a short message) in the status bar, can be used to convey notification-type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears in the form of a dialog window on the display. For example, text information is prompted in the status bar, a prompt tone is given, the terminal device vibrates, an indicator light flickers, and the like.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
A 2D (an animation mode) graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The terminal device 100 in the embodiment of the present application may be an electronic device including, but not limited to, a smart phone, a tablet computer, a wearable electronic device (e.g., a smart watch), a notebook computer, and the like.
In this embodiment of the present application, the terminal device shown in fig. 1 or fig. 2 may further obtain a light intensity value and original light intensity data collected by the light sensor, perform time-domain and frequency-domain conversion on the original light intensity data, and determine a frequency-domain diagram corresponding to the original light intensity data; and determining the ratio corresponding to the frequency range in the frequency domain diagram aiming at each preset frequency range, if the ratio is larger than the ratio threshold corresponding to the frequency range, taking the ratio as a candidate ratio, determining a target frequency range corresponding to the current light according to the preset threshold range and each candidate ratio, determining a target weight coefficient corresponding to the target frequency range according to the corresponding relation between the pre-stored frequency range and the weight coefficient, and adjusting the brightness of the display screen according to the target weight coefficient and the light intensity value.
In order to improve the accuracy of display screen brightness adjustment, the embodiment of the application provides a display screen brightness adjustment method, a display screen brightness adjustment device, terminal equipment and a medium.
Fig. 3 is a schematic process diagram of a method for adjusting brightness of a display screen according to an embodiment of the present application, where the process includes the following steps:
s301: and acquiring a light intensity value and original light intensity data acquired by the light sensor.
The method for adjusting the brightness of the display screen provided by the embodiment of the application is applied to the terminal device, and the terminal device can be the terminal device shown in fig. 1 or fig. 2.
Fig. 4 is a display screen brightness adjustment process provided in the prior art, and as shown in fig. 4, in the prior art, a light sensor collects external light, a terminal device collects a light intensity value according to the light sensor, the terminal device determines a brightness adjustment value for a display screen according to the obtained light intensity value, and adjusts the brightness of the display screen based on the brightness adjustment value. Due to the fact that different light rays exist, for example, light rays emitted by a street lamp, light rays emitted by a fluorescent lamp, light rays emitted by an incandescent lamp and the like are different, the method causes inaccuracy in adjusting the brightness of the display screen depending on the light intensity value acquired by the light sensor, and user experience is affected.
Fig. 5 provides an improved display screen brightness adjustment process for the prior art, as shown in fig. 5, in the improved prior art, a plurality of light sensors are installed in a terminal device, wherein each light sensor is used for collecting light intensity values of different scenes, such as an infrared sensitive sensor, a green light sensitive sensor, and the like. The terminal equipment judges the current scene of the terminal equipment according to the light intensity values collected by the light sensors, and adjusts the brightness of the display screen based on the light intensity values corresponding to the scene. However, with this method, a plurality of light sensors need to be installed in the terminal device, increasing the load pressure of the terminal device.
In the embodiment of the application, a light sensor is installed in the terminal device, and the light sensor is used for collecting light intensity data of external light and generating a light intensity value based on the collected light intensity data. In the embodiment of the present application, the terminal device is generally a terminal device using an Android system. In the embodiment of the present application, the light intensity data collected by the terminal device is referred to as original light intensity data.
In the embodiment of the present application, before the terminal device leaves a factory, a technician configures, for the light sensor, a collection frequency of the original light intensity data according to a plurality of experimental results, and a reporting frequency at which the light sensor reports the collected original light intensity data to a processor in the terminal device.
In addition, in order to improve the accuracy of adjusting the brightness of the display screen, in the embodiment of the present application, the terminal device performs time-domain frequency-domain conversion on the original light intensity data acquired by the light sensor, which requires that the original light intensity data acquired by the light sensor is continuous and uniform in time, and also requires that the light sensor supports a First-in First-out (FIFO) function. The optical line sensor support FIFO function may be a hardware support FIFO function of the optical line sensor, or may be a code support FIFO function stored in the optical line sensor.
Generally, in the embodiment of the present application, the reporting period of the light sensor reporting the raw light intensity data to the processor is twice the ratio of the sampling period to the short integration time of the light sensor. For example, if the maximum sampling frequency of the light intensity data detected by the light sensor is 200Hz, the corresponding detection period is 2500us, and the short integration time of the light sensor is 384us, it may be determined that the period reported to the processor by the light sensor is 2 × 2500us/384us, which is 14 sampling periods, that is, the reporting period for reporting the raw light intensity data to the processor by the light sensor is 35ms, and the reporting frequency is 29 Hz.
It should be noted that, when the light sensor collects raw light intensity data, the light sensor collects one piece of raw light intensity data in each short integration time. For example, if the reporting frequency of the light sensor is 20Hz, the reporting period of the light sensor is determined to be 50 ms. Based on this, if the short integration time of the terminal device is 384us, the light sensor can collect 130 original light intensity data at most 50ms/384 μ s in one reporting period.
If the light sensor supports the FIFO, technicians can pre-configure the storage quantity of the FIFO as a preset storage quantity, wherein the preset storage quantity does not exceed the quantity of the original light intensity data which can be collected by the light sensor at most in a reporting period; if the codes stored in the optical line sensor support the FIFO function, a technician can customize an array at a preset storage position for storing the original light intensity data, wherein the size of the array is the preset storage quantity.
S302: performing time domain and frequency domain conversion on the original light intensity data to determine a frequency domain graph corresponding to the original light intensity data; and determining the ratio corresponding to the frequency range in the frequency domain diagram aiming at each preset frequency range, and if the ratio is greater than the ratio threshold corresponding to the frequency range, taking the ratio as a candidate ratio.
In the embodiment of the application, the terminal device performs time domain and frequency domain conversion on original light intensity data acquired by the light sensor to obtain frequency domain data corresponding to the original light intensity data, and draws a spectrogram corresponding to the original light intensity data based on the frequency domain data, and the terminal device analyzes the current environment based on the spectrogram. When the terminal equipment performs time domain and frequency domain conversion on the original light intensity data, various time domain and frequency domain conversion tools or functions such as Fourier, fast Fourier and the like can be flexibly adopted for conversion according to the effect.
In order to improve the time domain and frequency domain conversion effect of the original light intensity data, the selection of the time domain and frequency domain data conversion tool includes, but is not limited to, satisfying the following requirements:
the method requires one: the time domain and frequency domain data conversion tool can complete the conversion of original light intensity data from a time domain to a frequency domain, and the frequency domain data obtained by conversion can clearly reflect frequency data corresponding to external light;
the second requirement is that: the terminal equipment can support the time domain and frequency domain data conversion tool;
the requirements are three: the time domain and frequency domain data conversion tool has the advantages that the resource cost is low as much as possible in the conversion process, for example, the memory occupation is small, the CPU resource occupation is small, and the like.
Specifically, in the embodiment of the present application, the frequencies of the light rays in different scenes are different, for example, the frequency of the light rays in the scene of a fluorescent lamp is mainly 120Hz, the frequency of the light rays in the scene of an incandescent lamp is mainly 200Hz, and the like. For each scene, a preset frequency range corresponding to the scene is pre-stored in the terminal device, and when the terminal device is in a test environment of the scene, an occupation ratio threshold of the frequency range corresponding to the scene is pre-stored. The terminal device may determine the scene where the terminal device is located according to the ratio of the frequency range corresponding to each scene in the spectrogram and the ratio threshold corresponding to each scene.
Specifically, in this embodiment of the application, for each preset frequency range, the terminal device determines a ratio corresponding to the frequency range in a spectrogram, and if the ratio is greater than a ratio threshold corresponding to the frequency range, it is considered that a scene where the terminal device is currently located may be a scene corresponding to the frequency range, the terminal device determines the ratio as a candidate ratio, and then further verifies the scene where the terminal device is currently located based on the candidate ratio.
It should be noted that, in the embodiment of the present application, for a frequency range, the frequency range may be a frequency value of a light ray in a scene corresponding to the frequency range, and may further include a frequency interval of the frequency value, which is not limited herein.
Fig. 6 is a time domain diagram of a fluorescent lamp and an external light in the morning provided in the embodiment of the present application, and as shown in fig. 6, an upper curve is the time domain diagram of light intensity data of the fluorescent lamp, and a lower curve is the time domain diagram of light intensity data of the external light in the morning.
Fig. 7 is a frequency domain diagram of the fluorescent lamp and the external light in the morning provided in the embodiment of the present application, as shown in fig. 7, an upper curve is a frequency domain diagram of light intensity data of the fluorescent lamp, a lower curve is a frequency domain diagram of light intensity data of the external light in the morning, and it can be known from the frequency domain diagram that the corresponding frequency range of the fluorescent lamp is 100Hz to 200 Hz.
S303: and determining a target frequency range corresponding to the current light according to a preset threshold range and each candidate ratio.
In the embodiment of the application, after the terminal device determines the candidate proportion, the terminal device may further verify the current scene according to the candidate proportion.
Specifically, in the embodiment of the present application, a threshold range is stored in the terminal device, and if one candidate proportion exists in the threshold range, it is determined that a frequency range corresponding to the candidate proportion is a target frequency range corresponding to the current light, that is, it is determined that a scene where the terminal device is currently located is a scene corresponding to the target frequency range.
S304: and determining 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 adjusting the brightness of the display screen according to the target weight coefficient and the light intensity value.
In this embodiment, the terminal device further stores a corresponding relationship between each frequency range and a weight coefficient, where the weight coefficient is a weighted value obtained by a technician according to a large amount of acquired original light intensity data and actual feelings of human eyes, and the influence of different light rays on the light sensor is different. The light sensor is an energy sensing device, and the stronger the energy of the light, the greater the light intensity value collected by the light sensor, so the smaller the corresponding weight coefficient needs to be configured to reduce the interference of the energy. For example, in the scenes of incandescent lamps and fluorescent lamps, when the light sensor reports the same value, the brightness actually perceived by the human eye may be inconsistent, and therefore different weighting coefficients are required to be weighted.
Technicians can test the light intensity values collected by the light sensors under different brightness and the actual brightness values collected by the illuminometer (an instrument capable of sensing the actual brightness values of light) under different pure light (such as fluorescent light rays and incandescent light rays), and the technicians calculate the weight coefficients according to the difference between the light intensity values and the actual brightness values. Of course, the skilled person may also obtain the difference between the light intensity value collected by the light sensor and the brightness sensed by the human eye by other methods. The technician can store the determined corresponding relation between the frequency range of the scene and the weight coefficient to a preset storage position of the terminal device in an array or table form, so that the terminal device can conveniently search in the future.
Specifically, in the embodiment of the present application, after the terminal device determines the current scene, that is, the target frequency range corresponding to the current light, the terminal device may determine the target weight coefficient corresponding to the target frequency range according to the corresponding relationship. And the terminal equipment adjusts the light intensity value acquired 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.
In the embodiment of the application, the terminal device adjusts the brightness of the display screen according to the light intensity value to be a display screen brightness adjustment mechanism of the Android system, and the adjustment is not repeated here.
In the embodiment of the application, the terminal device performs time-domain frequency-domain conversion according to the original light intensity data acquired by the light sensor, and determines the current target frequency range, that is, determines the current acquisition scene, and determines the target weight coefficient corresponding to the scene according to the time-domain image obtained by the conversion and the corresponding relationship between the pre-stored frequency range and the weight coefficient. The terminal equipment adjusts the light intensity value acquired by the light sensor based on the target weight coefficient, adjusts the brightness of the display screen based on the adjusted light intensity value, and improves the accuracy of brightness adjustment of the display screen.
In order to more accurately determine the current scene where the terminal device is located, on the basis of the foregoing embodiment, in this embodiment of the present application, the determining the occupation ratio corresponding to the frequency range in the frequency domain map includes:
determining the total area of the waveform in the frequency domain graph and the X axis, and the sub-area of the waveform in the frequency range and the X axis;
determining the ratio of the sub-area to the total area as the ratio of the frequency range.
In this embodiment, for each frequency range, when determining the occupation ratio corresponding to the frequency range, the electronic device determines a total area enclosed by the waveform in the spectrogram and the X axis, and determines a sub-area enclosed by the waveform and the X axis in the frequency range, and the terminal device determines a ratio of the sub-area to the total area as the occupation ratio corresponding to the frequency range.
It should be noted that, if the frequency range is a frequency value of the light in the corresponding scene, a sub-area of the waveform in the frequency range and surrounded by the X axis can be understood as a value corresponding to the frequency value in the waveform.
Fig. 8 is a schematic diagram illustrating calculation of a ratio corresponding to a frequency range when the frequency range is a frequency interval according to an embodiment of the present application, and as shown in fig. 8, if a total area of a waveform and an X axis is S, and a sub-area of the frequency range and the X axis is S, it is determined that the ratio corresponding to the frequency range is S/S.
Fig. 9 is a schematic diagram illustrating calculation of a ratio corresponding to a frequency range when the frequency range is a frequency value according to an embodiment of the present application, and as shown in fig. 9, a total area enclosed by a waveform and an X axis is S, and a value corresponding to the frequency value in the waveform is a, it is determined that the ratio corresponding to the frequency range is a/S.
In order to accurately determine the current scene of the terminal device, on the basis of the foregoing embodiments, in the embodiment of the present application, the determining, according to a preset threshold range and each candidate ratio, a target frequency range corresponding to the current light includes:
and if the first candidate ratio is determined to be not lower than the maximum value of the boundary value of the preset threshold range, determining the frequency range corresponding to the first candidate ratio as the target frequency range.
In the embodiment of the present application, a preset threshold range is stored in the terminal device, and the terminal device may further determine a current scene according to the threshold range.
Specifically, in this embodiment of the present application, if one of the candidate ratios has a first candidate ratio that is not lower than the maximum value of the boundary value of the threshold range, the terminal device determines that the value of the first candidate ratio is far higher than that of the other candidate ratios, and the terminal device determines that the frequency range corresponding to the first candidate ratio 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 current scene.
For example, in this embodiment of the present application, the threshold range saved in the terminal device is 50% to 80%, and if the terminal device determines that there is a first candidate occupancy 90% that is not lower than the maximum value 80% of the boundary value of the threshold range, the terminal device determines that the frequency range corresponding to the first candidate occupancy is the target frequency range corresponding to the current light.
In order to accurately determine the current scene where the terminal device is located, on the basis of the foregoing embodiments, in the embodiment of the present application, the determining, according to the preset threshold range and each candidate proportion, the target frequency range corresponding to the current light includes:
if it is determined that at least two second candidate ratios are located within the preset threshold range, acquiring the priority of the stored frequency range corresponding to the at least two second candidate ratios;
and determining the frequency range with the highest priority as the target frequency range.
In the embodiment of the application, a preset threshold range is stored in the terminal device, and the terminal device may further determine the current scene based on the threshold range. And the terminal device also stores the priority corresponding to the pre-configured frequency range of each scene, wherein the priority is determined by the technician according to the influence of the light in each frequency range on the light sensor. For example, if the light from an incandescent lamp affects the light sensor more than a fluorescent lamp does, then the technician will prioritize the fluorescent lamp over the incandescent lamp.
Specifically, in this embodiment of the application, if at least two second candidate ratios among the candidate ratios are located within a preset threshold range, the terminal device determines the priority of the frequency range corresponding to the at least two second candidate ratios according to the priority corresponding to each frequency range that is 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 that the scene corresponding to the target frequency range is the current scene.
For example, in this embodiment of the present application, the threshold range saved in the terminal device is 40% to 80%, and if the terminal device determines that there are a second candidate ratio a1 and a second candidate ratio a2 located within the threshold range, where the second candidate ratio a1 is 45%, the second candidate ratio a2 is 50%, and the priority of the frequency range corresponding to the second candidate ratio a1 is higher than the priority of the frequency range corresponding to the second candidate ratio a2, the terminal device determines that the frequency range corresponding to the second candidate ratio a1 is the target frequency range.
In order to accurately determine the current scene of the terminal device, on the basis of the foregoing embodiments, in the embodiment of the present application, the determining, according to a preset threshold range and each candidate ratio, a target frequency range corresponding to the current light includes:
and if determining that a third candidate ratio is located in the preset threshold range, determining that the frequency range corresponding to the third candidate ratio is the target frequency range.
In the embodiment of the application, a preset threshold range is stored in the terminal device, and the terminal device may further determine the current scene based on the threshold range.
Specifically, in this embodiment of the application, if only one third candidate ratio exists in the candidate ratios, the terminal device determines that the frequency range corresponding to the third candidate ratio 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 current scene.
For example, in this embodiment of the present application, the threshold range saved in the terminal device is 50% to 80%, and if the terminal device determines that only one third candidate occupancy 70% is located in the threshold range, the terminal device determines that the frequency range corresponding to the third candidate occupancy is the target frequency range corresponding to the current light.
In addition, in the embodiment of the present application, if the terminal device determines that there is no candidate proportion located in the threshold range or exceeding the maximum value of the boundary of the threshold range, the terminal device will adjust the light intensity value by using a default weighting factor.
In order to better adjust the brightness of the display screen, on the basis of the foregoing embodiments, in this application embodiment, the adjusting the brightness of the display screen according to the target weight coefficient and the light intensity value includes:
determining the product of the target weight coefficient and the light intensity value, and updating the light intensity value by adopting the product;
and adjusting the brightness of the display screen according to the updated light intensity value.
In the embodiment of the present application, after the terminal device determines the target weight coefficient, the terminal device calculates a 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. And the terminal equipment adjusts the brightness of the display screen according to the updated light intensity value.
In order to adjust the brightness of the display screen, on the basis of the foregoing embodiments, in an embodiment of the present application, before the obtaining the light intensity value and the original light intensity data collected by the light sensor, the method further includes:
receiving input operation for configuring parameters of the light sensor, wherein the operation carries short integration time parameters to be configured;
and configuring the light ray sensor according to the short integration time parameter.
In the embodiment of the present application, the terminal device generally uses fourier transform for time domain to frequency domain conversion, which has a certain requirement on the sampling frequency of the data of the light sensor, and generally, the sampling frequency of the light sensor is at least 2 times greater than the frequency value of the light, for example, if fourier transform needs to be performed on 120Hz artificial light, the sampling frequency corresponding to the light sensor at least reaches 240Hz, and the higher the sampling frequency is, the better the sampling frequency is. The sampling frequency is a ratio of unit time to short integration time of the light sensor, and on the basis, a technician can set the short integration time of the light sensor before the terminal device leaves a factory.
Specifically, the technician confirms the frequency values of the light corresponding to each scene, such as 200Hz light, 120Hz light, and 60Hz light, and determines the short integration time required by the light sensor according to 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 at least 400Hz, and the conversion is carried out so that the short integration time is 1/400-2.5 ms.
After determining the short integration time required by the light sensor, the technician determines the short integration time parameters of the light sensor, such as 192us, 384us, 1920us, 3125us supported by the terminal device; the technician can confirm that the light sensor can use the short integration time parameter configuration according to the required short integration time, such as 192us, 384us and 1920us as optional, and 3125us as not optional.
If the technician determines that at least two short integration time parameters exist in the light sensor and can be used, the technician can further screen out the short integration time parameters to be configured according to the sampling effect of the original light intensity data corresponding to each short integration time.
Specifically, for each available short integration time parameter, a technician configures the light sensor with the short integration time parameter, then, in the environment of the whole machine, the light sensor detects the standard light box to obtain a light intensity value, and the technician calculates a standard light box conversion ratio corresponding to the short integration time parameter according to the original light intensity value of the standard light box and the light intensity value acquired by the light sensor. If the standard light box conversion ratio exceeds a preset standard light box conversion ratio threshold value, the sensitivity of the light sensor is low under the configuration of the short integration time parameter, and the configuration needs to be abandoned. The threshold value of the standard light box conversion ratio is generally 1, if the short integration time parameter is 192us, and the standard light box conversion ratio of the light sensor is 1.2, the configuration is abandoned, and the available configurations are reduced to 384us and 1920 us.
If the conversion ratio of the standard light box corresponding to at least two short integration time parameters is lower than the threshold value of the conversion ratio of the standard light box, the technician configures the light sensor by using the short integration time parameter with short integration time. If the standard light box conversion ratio corresponding to 384us and 1920us is lower than the standard light box conversion ratio threshold, the technician selects the short integration time parameter with short integration time to configure the light sensor, namely, selects 384us to configure the light sensor.
Specifically, a technician inputs an operation of configuring parameters of the light sensor, wherein the operation carries a short integration time parameter to be configured, and the terminal device configures the light sensor according to the short integration time parameter.
Fig. 10 is a schematic flowchart of adjusting brightness of a display screen according to an embodiment of the present application, and as shown in fig. 10, the process includes:
s1001: the short integration time parameter of the photosensor is configured.
In the embodiment of the present application, the terminal device generally uses fourier transform for time domain to frequency domain conversion, which has a certain requirement on the sampling frequency of the data of the light sensor, and generally, the sampling frequency of the light sensor is at least 2 times greater than the frequency value of the light, for example, if fourier transform needs to be performed on 120Hz artificial light, the sampling frequency corresponding to the light sensor at least reaches 240Hz, and the higher the sampling frequency is, the better the sampling frequency is. Wherein, sampling frequency is the ratio of unit time and light sensor's short integration time, and based on this, before terminal equipment leaves the factory, the technical staff can set up light sensor's short integration time.
S1002: and acquiring a light intensity value and original light intensity data acquired by the light sensor.
In the embodiment of the application, a light sensor is installed in the terminal device, and the light sensor is used for collecting original light intensity data of external light and generating a light intensity value based on the collected light intensity data.
S1003: and performing time domain and frequency domain conversion on the original light intensity data to determine a frequency domain graph corresponding to the original light intensity data.
In the embodiment of the application, the terminal device performs time domain and frequency domain conversion on original light intensity data acquired by the light sensor to obtain frequency domain data corresponding to the original light intensity data, and draws a spectrogram corresponding to the original light intensity data based on the frequency domain data, and the terminal device analyzes the current environment based on the spectrogram.
S1004: and determining a target frequency range corresponding to the current light according to the frequency domain graph.
In the embodiment of the application, the terminal device determines, for each preset frequency range, an occupation ratio corresponding to the frequency range in the frequency domain graph, and if the occupation ratio is greater than a occupation ratio threshold corresponding to the frequency range, the occupation ratio is used as a candidate occupation ratio; and determining a target frequency range corresponding to the current light according to a preset threshold range and each candidate ratio.
S1005: and determining a target weight coefficient corresponding to the target frequency range according to the corresponding relation between the pre-stored frequency range and the weight coefficient.
In the embodiment of the present application, after the terminal device determines the current scene, that is, the target frequency range corresponding to the current light, the terminal device determines the target weight coefficient corresponding to the target frequency range according to the corresponding relationship.
S1006: and adjusting the brightness of the display screen according to the target weight coefficient and the light intensity value.
And the terminal equipment adjusts the light intensity value acquired 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.
Fig. 11 is a schematic structural diagram of a display screen brightness adjusting apparatus according to an embodiment of the present application, and as shown in fig. 11, the apparatus includes:
an obtaining module 1101, configured to obtain a light intensity value and original light intensity data acquired by the light sensor;
a processing module 1102, configured to perform time-domain and frequency-domain conversion on the original light intensity data, and determine a frequency-domain map corresponding to the original light intensity data; determining the ratio corresponding to the frequency range in the frequency domain diagram aiming at each preset frequency range, and if the ratio is larger than the ratio threshold corresponding to the frequency range, taking the ratio as a candidate ratio; determining a target frequency range corresponding to the current light according to a preset threshold range and each candidate ratio; determining a target weight coefficient corresponding to the target frequency range according to a corresponding relation between a pre-stored frequency range and the weight coefficient;
and a brightness adjusting module 1103, configured to adjust the brightness of the display screen according to the target weight coefficient and the light intensity value.
In a possible implementation, the processing module 1102 is specifically configured to determine a total area of the waveforms in the frequency domain map around the X axis and sub-areas of the waveforms around the X axis in the frequency domain; determining the ratio of the sub-area to the total area as the ratio of the frequency range.
In a possible implementation manner, the processing module 1102 is specifically configured to determine that a frequency range corresponding to a first candidate ratio is the target frequency range if it is determined that there is a maximum value of the first candidate ratio that is not lower than the boundary value of the preset threshold range.
In a possible implementation manner, the processing module 1102 is specifically configured to, if it is determined that at least two second candidate ratios are located within the preset threshold range, obtain priorities of frequency ranges corresponding to the at least two stored second candidate ratios; and determining the frequency range with the highest priority as the target frequency range.
In a possible implementation manner, the processing module 1102 is specifically configured to determine that a frequency range corresponding to a third candidate ratio is the target frequency range if it is determined that there is a third candidate ratio located within the preset threshold range.
In a possible embodiment, the obtaining module 1101 is further configured to receive an input operation of configuring a parameter of a photosensor, where the operation carries a short integration time parameter to be configured;
the processing module 1102 is further configured to configure the light sensor according to the short integration time parameter.
In a possible implementation, the brightness adjustment module 1103 is specifically configured to determine a product of the target weight coefficient and the light intensity value, and update the light intensity value by using the product; and adjusting the brightness of the display screen according to the updated light intensity value.
Based on the same inventive concept, fig. 12 is another schematic structural diagram of the terminal device provided in the embodiment of the present application, as shown in fig. 12, including: one or more (including two) processors 1201 and a communication interface 1202.
The processor 1101 stores therein a computer program, which, when executed by the processor 1101, causes the processor 1101 to execute the steps of the display screen brightness adjustment method in any one of the embodiments described above.
Optionally, the terminal device further comprises a memory 1203, and the memory 1203 may comprise a read-only memory and a random access memory and provide the processor with operating instructions and data. The portion of memory may also include non-volatile random access memory (NVRAM).
In some embodiments, as shown in FIG. 12, memory 1203 stores elements of an execution module or data structure, or a subset or expanded set thereof.
As shown in fig. 12, in some embodiments of the present application, the corresponding operation is performed by calling an operation instruction stored in the memory 1203 (the operation instruction may be stored in an operating system).
As shown in fig. 12, a processor 1201, which may also be referred to as a Central Processing Unit (CPU), controls the processing operations of the head-end device.
As shown in fig. 12, the memory 1203 may include both read-only memory and random access memory and provides instructions and data to the processor. A portion of the memory 1203 may also include NVRAM. Such as an in-application communication interface and a memory, are coupled together by a bus system 1204, where the bus system 1204 may include a power bus, a control bus, a status signal bus, etc., in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 1204 in fig. 12.
On the basis of the foregoing embodiments, an embodiment of the present application further provides a computer-readable storage medium, where a computer program executable by a terminal device is stored in the computer-readable storage medium, and when the program runs on the terminal device, the terminal device is caused to implement the method disclosed in some embodiments of the present application when the program is executed.
Because the principle of solving the problem of the computer-readable storage medium is similar to that of the display screen brightness adjustment method, the implementation of the computer-readable storage medium can refer to the embodiment of the method, and repeated parts are not described again.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may 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, and the like) having computer-usable program code embodied therein.
Each flow and/or block in the flow charts and/or block diagrams, and combinations of flows and/or blocks in the flow charts and/or block diagrams, may be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A display screen brightness adjusting method is applied to terminal equipment and is characterized by comprising the following steps:
acquiring a light intensity value and original light intensity data acquired by a light sensor;
performing time domain and frequency domain conversion on the original light intensity data, and determining a frequency domain graph corresponding to the original light intensity data; determining the ratio corresponding to the frequency range in the frequency domain diagram aiming at each preset frequency range, and if the ratio is larger than the ratio threshold corresponding to the frequency range, taking the ratio as a candidate ratio;
determining a target frequency range corresponding to the current light according to a preset threshold range and each candidate ratio;
and determining 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 adjusting the brightness of the display screen according to the target weight coefficient and the light intensity value.
2. The method of claim 1, wherein determining the duty ratio corresponding to the frequency range in the frequency domain map comprises:
determining the total area of the waveform in the frequency domain graph and the X axis, and the sub-area of the waveform in the frequency range and the X axis;
determining the ratio of the sub-area to the total area as the ratio of the frequency range.
3. The method according to claim 1, wherein the determining the target frequency range corresponding to the current light according to the preset threshold range and each candidate ratio comprises:
and if the first candidate ratio is determined to exist in the maximum value of the boundary value of which the first candidate ratio is not lower than the preset threshold range, determining the frequency range corresponding to the first candidate ratio as the target frequency range.
4. The method according to claim 1, wherein the determining the target frequency range corresponding to the current light according to the preset threshold range and each candidate ratio comprises:
if it is determined that at least two second candidate ratios are located in the preset threshold range, acquiring the priority of the stored frequency range corresponding to the at least two second candidate ratios;
and determining the frequency range with the highest priority as the target frequency range.
5. The method according to claim 1, wherein the determining the target frequency range corresponding to the current light according to the preset threshold range and each candidate ratio comprises:
and if determining that a third candidate ratio is located in the preset threshold range, determining that the frequency range corresponding to the third candidate ratio is the target frequency range.
6. The method of claim 1, wherein prior to obtaining the light intensity values and raw light intensity data collected by the light sensor, the method further comprises:
receiving input operation for configuring parameters of the light sensor, wherein the operation carries short integration time parameters to be configured;
and configuring the light ray sensor according to the short integration time parameter.
7. The method of claim 1, wherein adjusting the brightness of the display screen based on the target weight coefficient and the light intensity value comprises:
determining the product of the target weight coefficient and the light intensity value, and updating the light intensity value by adopting the product;
and adjusting the brightness of the display screen according to the updated light intensity value.
8. A display screen brightness adjusting device is applied to terminal equipment and is characterized by comprising:
the acquisition module is used for acquiring the light intensity value and the original light intensity data acquired by the light sensor;
the processing module is used for carrying out time domain and frequency domain conversion on the original light intensity data and determining a frequency domain graph corresponding to the original light intensity data; determining the ratio corresponding to the frequency range in the frequency domain diagram aiming at each preset frequency range, and if the ratio is larger than the ratio threshold corresponding to the frequency range, taking the ratio as a candidate ratio; determining a target frequency range corresponding to the current light according to a preset threshold range and each candidate ratio; determining a target weight coefficient corresponding to the target frequency range according to a corresponding relation between a pre-stored frequency range and the weight coefficient;
and the brightness adjusting module is used for adjusting the brightness of the display screen according to the target weight coefficient and the light intensity value.
9. A terminal device, characterized in that the terminal device comprises:
a display, a processor, and a memory;
the display is used for displaying a screen display area;
the memory to store the processor-executable instructions;
the processor is configured to execute the instructions to implement the display screen brightness adjustment method of any one of claims 1-7.
10. A computer-readable storage medium, characterized in that it stores a computer program which, when being executed by a processor, carries out the steps of the display screen brightness adjustment method according to any one of claims 1 to 7.
CN202210766205.5A 2022-06-30 2022-06-30 Display screen brightness adjusting method and device, terminal equipment and medium Pending CN115101002A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210766205.5A CN115101002A (en) 2022-06-30 2022-06-30 Display screen brightness adjusting method and device, terminal equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210766205.5A CN115101002A (en) 2022-06-30 2022-06-30 Display screen brightness adjusting method and device, terminal equipment and medium

Publications (1)

Publication Number Publication Date
CN115101002A true CN115101002A (en) 2022-09-23

Family

ID=83295513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210766205.5A Pending CN115101002A (en) 2022-06-30 2022-06-30 Display screen brightness adjusting method and device, terminal equipment and medium

Country Status (1)

Country Link
CN (1) CN115101002A (en)

Similar Documents

Publication Publication Date Title
CN113778574B (en) Card sharing method, electronic equipment and communication system
CN111597000B (en) Small window management method and terminal
CN112114733B (en) Screen capturing and recording method, mobile terminal and computer storage medium
JP7234379B2 (en) Methods and associated devices for accessing networks by smart home devices
CN117234398B (en) Screen brightness adjusting method and electronic equipment
CN112000408B (en) Mobile terminal and display method thereof
CN111193874B (en) Image display parameter adjusting method and mobile terminal
CN113055585B (en) Thumbnail display method of shooting interface and mobile terminal
CN115460355B (en) Image acquisition method and device
CN115101002A (en) Display screen brightness adjusting method and device, terminal equipment and medium
CN113838437A (en) Method, terminal device and medium for adjusting screen brightness
CN114063459B (en) Terminal and intelligent home control method
CN113641431A (en) Method and terminal equipment for enhancing display of two-dimensional code
CN113254132A (en) Application display method and related device
CN112004006A (en) Mobile medical terminal and brightness adjusting method thereof
CN111787157A (en) Mobile terminal and operation response method thereof
CN113179362B (en) Electronic device and image display method thereof
CN113542711A (en) Image display method and terminal
CN114383280B (en) Terminal and environment adjusting method
CN115933952B (en) Touch sampling rate adjusting method and related device
CN113255644B (en) Display device and image recognition method thereof
CN113918062B (en) Method and terminal for enabling shortcut function of application program
CN113741855B (en) Audio playing method and terminal
CN112929858B (en) Method and terminal for simulating access control card
CN115130062A (en) Light sensor data processing method and device, terminal equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination