CN113053332A - Backlight brightness adjusting method and related product - Google Patents

Backlight brightness adjusting method and related product Download PDF

Info

Publication number
CN113053332A
CN113053332A CN201911383860.7A CN201911383860A CN113053332A CN 113053332 A CN113053332 A CN 113053332A CN 201911383860 A CN201911383860 A CN 201911383860A CN 113053332 A CN113053332 A CN 113053332A
Authority
CN
China
Prior art keywords
light sensation
cluster center
value
historical
center points
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.)
Granted
Application number
CN201911383860.7A
Other languages
Chinese (zh)
Other versions
CN113053332B (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201911383860.7A priority Critical patent/CN113053332B/en
Publication of CN113053332A publication Critical patent/CN113053332A/en
Application granted granted Critical
Publication of CN113053332B publication Critical patent/CN113053332B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The embodiment of the application discloses a backlight brightness adjusting method and a related product, wherein the method comprises the following steps: the method comprises the steps of obtaining multiple groups of historical backlight brightness adjusting data in a preset time period, mapping the multiple groups of historical backlight brightness adjusting data to a preset coordinate system to obtain multiple coordinate points, and clustering the multiple coordinate points to obtain multiple cluster center points; screening out a plurality of target cluster center points from the plurality of cluster center points; fitting according to the center points of the target clusters and a preset backlight adjusting curve to obtain a first fitting curve; and automatically adjusting backlight according to the first fitting curve, so that the first fitting curve more fitting the habit of the user can be generated, and the automatic backlight adjustment is more accurate.

Description

Backlight brightness adjusting method and related product
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a backlight brightness adjusting method and a related product.
Background
Along with the continuous development of electronic technology, the functions of electronic equipment are more and more intelligent, the backlight brightness adjustment mode in the electronic equipment generally comprises automatic backlight adjustment and manual backlight adjustment, the backlight brightness can be adjusted to the brightness required by a user by the manual backlight adjustment mode, the requirements of the user are met, and the automatic backlight adjustment mode is more convenient and rapid without manual operation of the user.
At present, in the prior art, through machine learning, a brightness adjustment behavior of a user is learned to obtain habit data of manually adjusting backlight brightness of the user, and then the user automatically adjusts backlight according to the habit data, however, in the prior art, a strategy of performing backlight adjustment after machine learning returns a deviation in some scenes, and a result of automatic backlight brightness adjustment is inaccurate, which leads to poor user experience, for example, a manual brightness adjustment behavior of the user in some specific scenes is learned to become a brightness adjustment habit, so that an inaccurate automatic backlight brightness adjustment strategy is generated, and user experience is affected.
Disclosure of Invention
The embodiment of the application provides a backlight brightness adjusting method and a related product, which can enable automatic backlight adjustment to be more accurate.
In a first aspect, an embodiment of the present application provides a backlight brightness adjusting method, where the method includes:
acquiring multiple groups of historical backlight brightness adjusting data in a preset time period, wherein each group of the historical backlight brightness adjusting data comprises a historical light sensation value and a historical brightness value;
mapping the multiple groups of historical backlight brightness adjusting data to a preset coordinate system to obtain multiple coordinate points, wherein the horizontal axis of the coordinate system is used for representing a light sensation value, the vertical axis of the coordinate system is used for representing a brightness value, each coordinate point corresponds to one historical light sensation value and one historical brightness value, the multiple coordinate points are clustered to obtain multiple cluster center points, and each cluster center point corresponds to one light sensation value and one brightness value;
screening out a plurality of target cluster center points from the plurality of cluster center points;
fitting according to the center points of the plurality of target clusters and a preset backlight adjusting curve to obtain a first fitting curve, wherein the first fitting curve is used for representing the relation of the brightness value changing along with the light sensation value;
and carrying out automatic backlight adjustment according to the first fitted curve.
In a second aspect, an embodiment of the present application provides a backlight brightness adjusting apparatus, including:
the device comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring a plurality of groups of historical backlight brightness adjusting data in a preset time period, and each group of the historical backlight brightness adjusting data comprises a historical light sensation value and a historical brightness value;
the clustering unit is used for mapping the multiple groups of historical backlight brightness adjusting data to a preset coordinate system to obtain a plurality of coordinate points, wherein the horizontal axis of the coordinate system is used for representing a light sensation value, the vertical axis of the coordinate system is used for representing a brightness value, each coordinate point corresponds to one historical light sensation value and one historical brightness value, the plurality of coordinate points are clustered to obtain a plurality of cluster center points, and each cluster center point corresponds to one light sensation value and one brightness value;
the screening unit is used for screening out a plurality of target cluster center points from the plurality of cluster center points;
the processing unit is used for fitting according to the center points of the target clusters and a preset backlight adjusting curve to obtain a first fitting curve, wherein the first fitting curve is used for representing the relation of the brightness value along with the change of the light sensation value;
and the adjusting unit is used for carrying out automatic backlight adjustment according to the first fitted curve.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the first aspect of the embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program enables a computer to perform some or all of the steps described in the first aspect of the embodiment of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps as described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, according to the backlight brightness adjusting method and the related product provided in the embodiment of the application, multiple sets of historical backlight brightness adjusting data in a preset time period are obtained, the multiple sets of historical backlight brightness adjusting data are mapped into a preset coordinate system to obtain multiple coordinate points, the multiple coordinate points are clustered to obtain multiple cluster center points, and multiple target cluster center points are screened out from the multiple cluster center points; fitting according to the center points of the target clusters and a preset backlight adjusting curve to obtain a first fitting curve; according to the automatic backlight adjustment method, automatic backlight adjustment is carried out according to the first fitting curve, so that invalid behaviors in the backlight adjustment process of a user are filtered out by screening a plurality of cluster center points corresponding to historical backlight adjustment data, a plurality of target cluster center points which are more in line with habits of the user are obtained, the first fitting curve which is more in line with the habits of the user is generated, and the automatic backlight adjustment can be more accurate.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1A is a schematic view of a scene in which an electronic device performs brightness adjustment in a manual backlight brightness adjustment manner according to an embodiment of the present disclosure;
fig. 1B is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2A is a schematic flowchart of a backlight brightness adjusting method according to an embodiment of the present disclosure;
fig. 2B is a schematic diagram illustrating a demonstration of clustering a plurality of coordinate points according to an embodiment of the present disclosure;
fig. 2C is a schematic illustration showing a plurality of first cluster center points that are selected from a plurality of cluster center points and make a preset backlight adjustment curve have a function monotonicity according to an embodiment of the present application;
FIG. 2D is a schematic illustration of a demonstration of dividing a plurality of first cluster center points into a plurality of different photosensitive sections according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another backlight brightness adjusting method provided in the embodiment of the present application;
fig. 4 is a schematic flowchart of another backlight brightness adjusting method provided in the embodiment of the present application;
fig. 5 is a schematic structural diagram of another electronic device provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a backlight brightness adjusting device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the 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.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The embodiment of the application is applied to backlight brightness adjustment, and in the process of actually using electronic equipment by a user, the user can adjust the backlight brightness preferred by the user sometimes under different ambient light intensities according to the use requirement of the user because the environment is different from the application used by the user. Referring to fig. 1A, fig. 1A is a scene schematic diagram of an electronic device performing brightness adjustment through a manual backlight brightness adjustment manner according to an embodiment of the present disclosure, where, taking a game application scene as an example, in the game application scene, a user starts an automatic backlight adjustment mode of a control 1 to enter an interface of a game application. Meanwhile, the user has a specific behavior of adjusting the brightness in the game application, and the brightness bar of the control 2 is dragged frequently. If the user is just hanging the game interface for brushing activity, the requirement on the screen brightness is not so high, and the user can manually pull the brightness to the lowest. In the prior art, the specific brightness adjusting behavior under the specific scene is learned into the brightness adjusting habit of the user, so that an inaccurate automatic backlight brightness adjusting strategy is generated, and the user experience is influenced. Therefore, considering that the specific behaviors cannot be classified as a part of the behavior habits of the user, the invalid behaviors of adjusting the brightness of the user need to be avoided when the user behaviors are learned, or a corresponding brightness adjusting curve is specially set for different application scenes, so that the influence on the user experience caused by the influence on the backlight brightness adjusting accuracy of all the application scenes by a single brightness adjusting curve is prevented.
The electronic devices involved in the embodiments of the present application may include various handheld devices, computing devices or other processing devices connected to a wireless modem, as well as various forms of User Equipment (UE), Mobile Station (MS), terminal equipment (terminal device), and the like, which have wireless communication functions. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
Referring to fig. 1B, fig. 1B is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, where the electronic device includes a control circuit and an input-output circuit, and the input-output circuit is connected to the control circuit.
The control circuitry may include, among other things, storage and processing circuitry. The storage circuit in the storage and processing circuit may be a memory, such as a hard disk drive memory, a non-volatile memory (e.g., a flash memory or other electronically programmable read only memory used to form a solid state drive, etc.), a volatile memory (e.g., a static or dynamic random access memory, etc.), etc., and the embodiments of the present application are not limited thereto. Processing circuitry in the storage and processing circuitry may be used to control the operation of the electronic device. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage and processing circuitry may be used to run software in the electronic device, such as play incoming call alert ringing application, play short message alert ringing application, play alarm alert ringing application, play media file application, Voice Over Internet Protocol (VOIP) phone call application, operating system functions, and so forth. The software may be used to perform some control operations, such as playing an incoming alert ring, playing a short message alert ring, playing an alarm alert ring, playing a media file, making a voice phone call, and performing other functions in the electronic device, and the embodiments of the present application are not limited.
The input-output circuit can be used for enabling the electronic device to input and output data, namely allowing the electronic device to receive data from the external device and allowing the electronic device to output data from the electronic device to the external device.
The input-output circuit may further include a sensor. The sensors may include ambient light sensors, optical and capacitive based infrared proximity sensors, ultrasonic sensors, touch sensors (e.g., optical based touch sensors and/or capacitive touch sensors, where the touch sensors may be part of a touch display screen or may be used independently as a touch sensor structure), acceleration sensors, gravity sensors, and other sensors, etc. The input-output circuit may further include audio components that may be used to provide audio input and output functionality for the electronic device. The audio components may also include a tone generator and other components for generating and detecting sound.
The input-output circuitry may also include one or more display screens. The display screen can comprise one or a combination of a liquid crystal display screen, an organic light emitting diode display screen, an electronic ink display screen, a plasma display screen and a display screen using other display technologies. The display screen may include an array of touch sensors (i.e., the display screen may be a touch display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
The input-output circuitry may further include communications circuitry that may be used to provide the electronic device with the ability to communicate with external devices. The communication circuitry may include analog and digital input-output interface circuitry, and wireless communication circuitry based on radio frequency signals and/or optical signals. The wireless communication circuitry in the communication circuitry may include radio frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless communication circuitry in the communication circuitry may include circuitry to support Near Field Communication (NFC) by transmitting and receiving near field coupled electromagnetic signals. For example, the communication circuit may include a near field communication antenna and a near field communication transceiver. The communications circuitry may also include cellular telephone transceiver and antennas, wireless local area network transceiver circuitry and antennas, and so forth.
The input-output circuit may further include other input-output units. Input-output units may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes and other status indicators, and the like.
The electronic device may further include a battery (not shown) for supplying power to the electronic device.
Referring to fig. 2A, fig. 2A is a schematic flowchart of a backlight brightness adjusting method according to an embodiment of the present application, where the method includes:
201. acquiring multiple groups of historical backlight brightness adjusting data in a preset time period, wherein each group of the historical backlight brightness adjusting data comprises a historical light sensation value and a historical brightness value.
The preset time period may be set by default by the system or by the user, and may be the latest 3 months, the latest 1 month, and the like, which is not limited herein.
The plurality of sets of historical backlight brightness adjustment data are historical light sensation values and historical brightness values of each time recorded by the electronic equipment when the user performs backlight brightness adjustment for a plurality of times within a preset time period. In a specific implementation, the electronic device may be provided with an ambient light sensor, the ambient light sensor may be used to detect the ambient light intensity, and the electronic device may record the historical light sensation value detected by the ambient light sensor each time the user manually adjusts the brightness, and store the historical light sensation value and the corresponding historical brightness value, so as to obtain multiple sets of historical backlight brightness adjustment data within a preset time period, where each set of historical backlight brightness adjustment data includes the historical light sensation value and the historical brightness value when the backlight brightness is manually adjusted once.
202. Mapping the multiple groups of historical backlight brightness adjusting data to a preset coordinate system to obtain multiple coordinate points, wherein the horizontal axis of the coordinate system is used for representing a light sensation value, the vertical axis of the coordinate system is used for representing a brightness value, each coordinate point corresponds to one historical light sensation value and one historical brightness value, clustering the multiple coordinate points to obtain multiple cluster center points, and each cluster center point corresponds to one light sensation value and one brightness value.
In this embodiment of the present application, a rectangular coordinate system may be established in advance, a horizontal axis of the coordinate system is used to represent a photosensitive value, and a vertical axis of the coordinate system is used to represent a brightness value, so that a historical photosensitive value and a historical brightness value of each of the multiple sets of historical backlight brightness adjustment data are mapped into the preset coordinate system, and a coordinate point corresponding to each set of historical photosensitive value and historical brightness value is obtained, for example, any one coordinate point (x, y) is any one historical photosensitive value x, and is a historical brightness value corresponding to the historical photosensitive value x, so that multiple coordinate points corresponding to the multiple sets of historical backlight brightness adjustment data can be obtained.
The clustering of the coordinate points to obtain cluster center points may include:
clustering the plurality of coordinate points according to the plurality of clustering radiuses and the density threshold to obtain a plurality of clusters;
and calculating the cluster center point of each cluster in the plurality of clusters to obtain a plurality of cluster center points.
The clustering radius refers to the radius of the largest range where a cluster is located, namely the distance between two coordinate points which are farthest away in the cluster is not more than 2R, R is the clustering radius, and the density threshold refers to the fact that the cluster comprises a lower limit of the number of data, namely the number of the coordinate points in the cluster obtained through clustering is larger than or equal to the density threshold.
In the embodiment of the present application, clustering may be performed according to a density-based clustering algorithm (DBSCAN), and specifically, a clustering radius and a density threshold, for example, a plurality of coordinate points B1, B2, B3, B4, B5, etc., and a radius 100, and the density threshold is 5, as shown in fig. 2B, may be first set, and a point B2 may be found by drawing a circle with a radius of 100 at B1. And then drawing a circle by taking b2 as a center of the circle, finding b3, b4 and b5, and so on, thereby obtaining a cluster comprising b1, b2, b3, b4 and b5 in a circle with 100 as a radius, wherein the number of coordinate points of the cluster is 5 and is not less than the density threshold, which indicates that the cluster is effective.
In order to prevent the clustering result from being inaccurate due to too large clustering radius, the clustering radius can be sequentially reduced by a preset value, for example, after 100 is used as the radius for clustering, the clustering radius is sequentially reduced by 10 to obtain a plurality of clustering radii such as 90, 80, 70, 10 and the like, and then clustering is performed for multiple times according to each clustering radius in the plurality of clustering radii and a constant density threshold to obtain a minimum cluster.
After the clustering is performed according to the above manner to obtain the plurality of clusters, the cluster center point of each cluster of the plurality of clusters can be further calculated by using an euclidean distance calculation formula, specifically, a plurality of candidate coordinate points in each cluster can be selected, and then the euclidean distance between each candidate coordinate point and other coordinate points in the cluster can be calculated, wherein the calculation formula of the euclidean distance is as follows:
d(xi,yi)=(|xi1-yi1|2+|xi2-yi2|2+...+|xin-1-yin-1|2)1/2
and finally, determining the candidate coordinate point corresponding to the minimum Euclidean distance in the plurality of Euclidean distances as the cluster center point of the cluster.
203. And screening out a plurality of target cluster center points from the plurality of cluster center points.
The target cluster center points are screened out from the cluster center points, invalid behaviors in the brightness adjusting behaviors of the user can be deleted, and the target cluster center points which are more in line with the habit of adjusting backlight brightness of the user are selected.
Optionally, in step 203, the step of filtering out a plurality of target cluster center points from the plurality of cluster center points may include the following steps:
31. screening out a plurality of first cluster center points which enable the preset backlight adjusting curve to have function monotonicity from the plurality of cluster center points;
32. dividing the plurality of first cluster center points into a plurality of different light sensation intervals according to all light sensation values of the plurality of first cluster center points;
33. selecting a target cluster center point from each of the plurality of light sensation intervals, wherein a first light sensation difference absolute value between the first light sensation difference absolute value and the maximum light sensation value of the interval and a second light sensation difference absolute value between the second light sensation difference absolute value and the minimum light sensation value of the interval are less than or equal to a preset threshold value to obtain a plurality of target cluster center points, wherein the interval maximum light sensitivity value is the maximum light sensitivity value in each light sensing interval, the interval minimum light sensitivity value is the minimum light sensitivity value in each light sensing interval, the first photo sensation difference absolute value is the difference absolute value between the historical photo sensation value of the first cluster center point in each photo sensation interval and the interval maximum photo sensation value, and the second light sensation difference absolute value is the difference absolute value between the historical light sensation value of the first cluster center point in each light sensation interval and the minimum light sensation value of the interval.
In the embodiment of the application, the actual use condition of the user is considered, the larger the light sensation value detected by the ambient light sensor is, the larger the ambient light intensity is, the backlight brightness adjusted by the electronic equipment needs to be increased, so that the normal use experience of the user is ensured. That is, in the function f (x) regarding the light sensitivity value and the brightness value, the function f (x) should have monotonicity, that is, when the argument (light sensitivity value) of the function f (x) increases (or decreases) within its defined interval, the function value f (x) (brightness value) also increases (or decreases). Therefore, a plurality of first cluster center points which make the preset backlight adjusting curve have function monotonicity can be screened from the plurality of cluster center points.
Optionally, in the step 31, the step of selecting a plurality of first cluster center points from the plurality of cluster center points, where the preset backlight adjustment curve has a function monotonicity, may include the following steps:
aiming at a cluster center point i in the cluster center points and a cluster center point j on the preset backlight adjustment curve, if the distance between the cluster center point i and the cluster center point j is smaller than a preset distance, and the cluster center point i and the cluster center point j have a relationship that the historical brightness value corresponding to the cluster center point with a large historical light sensation value is larger, determining the cluster center point i and the cluster center point j as two first cluster center points which enable the preset backlight adjustment curve to have function monotonicity, wherein the cluster center point i is any one of the cluster center points, and the cluster center point j is any one of the cluster center points on the preset backlight adjustment curve.
In the embodiment of the application, when a plurality of cluster center points are screened, the selected first cluster center point needs to meet the requirement that the preset backlight adjusting curve has monotonicity. Specifically, it may be determined that each cluster center point of the plurality of cluster center points is on or outside a preset backlight adjustment curve, and then, for any cluster center point j on the preset backlight adjustment curve, a relationship between any cluster center point i of the plurality of cluster center points other than the cluster center point j and the cluster center point j may be determined, and if it is determined that a distance between the cluster center point i and the cluster center point j is less than a preset distance and a relationship that a historical brightness value corresponding to the cluster center point having a large historical light sensation value between the cluster center point i and the cluster center point j is larger, the cluster center point i and the cluster center point j may be determined as two first cluster center points that enable the preset backlight adjustment curve to have function monotonicity.
Optionally, if the historical light sensation value i of the cluster center point i is greater than the historical light sensation value j of the cluster center point j, the historical brightness value i of the cluster center point i is greater than the historical brightness value j of the cluster center point j, or if the historical light sensation value i is less than the historical light sensation value j, the historical brightness value i is less than the historical brightness value j, and it is determined that the relationship between the cluster center point i and the cluster center point j that has a cluster center point with a large historical light sensation value is larger than the historical brightness value corresponding to the cluster center point.
Referring to fig. 2C, fig. 2C is a schematic diagram illustrating a plurality of first cluster center points screened from a plurality of cluster center points to enable a preset backlight adjustment curve to have a function monotonicity, as shown in fig. 2C, a cluster center point P1 exists on the preset backlight adjustment curve, a cluster center point P2, a cluster center point P3 and a cluster center point P4 exist near the cluster center point P1, the distance between the cluster center point P1 and the cluster center point P1 is less than the preset distance, wherein a relationship that a second historical luminance value of the cluster center point P2 is greater than a first historical luminance value of the cluster center point P1 and a second historical luminance value of the cluster center point P2 is greater than a first historical luminance value of the cluster center point P1 is determined, such that a larger historical luminance value corresponding to the cluster center point having a larger historical luminance value is between the cluster center point P2 and the cluster center point P1, indicating that the cluster center point P1 and the cluster center point P2 are cluster center points that meet the brightness increase characteristic, and thus, the cluster center point P1 and the cluster center point P2 can be determined as two first cluster center points; the third historical light sensation value of the cluster center point P3 can be determined to be equal to the first historical light sensation value of the cluster center point P1, so that the relationship that the historical brightness value is larger when the cluster center point P3 and the cluster center point P1 do not have the cluster center point with the large historical light sensation value is determined, the fact that the backlight brightness is manually increased by a user in the brightness adjusting process is indicated, the user has a specific behavior of personal preference and is not the user use habit which should be shown by the brightness increasing characteristic, and therefore the P3 does not belong to the first cluster center point which enables the preset backlight adjusting curve to have function monotonicity; it may also be determined that the fourth historical light sensation value of the cluster center point P4 is greater than the first historical light sensation value of the cluster center point P1, but the fourth historical luminance value of the cluster center point P4 is equal to the first historical luminance value of the cluster center point P1, thus, it can be determined that the cluster center point P4 has no relationship with the cluster center point P1 that the historical brightness value is larger corresponding to the cluster center point with the large historical light sensation value, therefore, the P4 does not belong to the first cluster center point for making the preset backlight adjustment curve have the function monotonicity, considering that the two cluster center points P1 and P4 output the same brightness value under different light sensation values, indicating that the cluster center point P4 is the specific adjustment brightness behavior and the specific brightness preference of the user in the specific scene, therefore, the cluster center point P4 needs to be distinguished, and only the cluster center point satisfying monotonicity is selected to achieve the purpose of screening.
After the plurality of cluster center points are screened for the first time in the step 31 to obtain a plurality of first cluster center points, secondary screening can be performed based on the steps 32-33, and the range of the cluster center points is narrowed down through the secondary screening to obtain a plurality of target cluster center points which are more suitable for adjusting the brightness habit.
Optionally, in the step 32, the dividing the plurality of first cluster center points into a plurality of different light sensing sections according to all historical light sensing values of the plurality of first cluster center points may include:
determining the light sensation value ranges of all historical light sensation values included by the plurality of first cluster center points;
dividing the light sensation value range into a plurality of light sensation intervals;
and sequentially dividing the plurality of first cluster center points into a plurality of light sensing intervals according to the sequence of historical light sensing values from small to large.
Referring to fig. 2D, fig. 2D is a schematic diagram illustrating a plurality of light sensation intervals into which a plurality of first cluster center points are divided according to an embodiment of the present disclosure, as shown in fig. 2D, a light sensation value range [0, + ∞ ] of all historical light sensation values included in the plurality of first cluster center points may be determined, and then the light sensation value range may be divided into a plurality of light sensation intervals [0, 10 ], [10, 36 ], [36, 100 ], [100, 1000, [1000, 2000 ], [2000, (+ ∞) ] so that the plurality of first cluster center points may be sequentially divided into the plurality of light sensation intervals according to a sequence of the historical light sensation values from small to large, and each first cluster center point may be classified as one of the light sensation intervals.
Optionally, in step 33, the step of selecting, from each of the plurality of light sensing sections, target cluster center points at which the absolute value of the first light sensing difference between the absolute value of the first light sensing difference and the maximum light sensing value of the section and the absolute value of the second light sensing difference between the absolute value of the second light sensing difference and the minimum light sensing value of the section are less than or equal to a preset threshold value to obtain a plurality of target cluster center points may include the following steps:
determining a target light sensation subinterval of each light sensation interval in the plurality of light sensation intervals to obtain a plurality of target light sensation subintervals, wherein a first light sensation difference absolute value between a historical light sensation value of a first cluster central point in each target light sensation subinterval and a section maximum light sensation value in the light sensation interval corresponding to the target light sensation subinterval is smaller than or equal to a preset threshold corresponding to the light sensation interval, and a second light sensation difference absolute value between the historical light sensation value of the first cluster central point in each target light sensation subinterval and a section minimum light sensation value in the light sensation interval corresponding to the target light sensation subinterval is smaller than or equal to the preset threshold corresponding to the light sensation interval;
and screening out the target cluster center point of each target light sensation subinterval in the plurality of target light sensation subintervals to obtain the plurality of target cluster center points.
In a specific implementation, the electronic device may set a threshold in advance for each of the plurality of light sensation sections, for example, set preset thresholds 6, 20, 60, 150, 250, 350 for the plurality of light sensation sections [0, 10), [10, 36), [36, 100), [100, 1000), [1000, 2000, [2000, + ∞ ], respectively, and then determine the target light sensation sub-section in each light sensation section such that the sub-section distance between the upper limit value and the lower limit value of the target light sensation sub-section is smaller than the preset threshold corresponding to the light sensation section, for example, as shown in fig. 2D, for the light sensation section [36, 100 ], the preset threshold corresponding to the light sensation section is 60, the target light sensation sub-section is determined to be [38, 98), and thus the historical light sensation value of the center point of each first cluster in the target light sensation sub-section [38, 98) corresponds to the target light sensation section [36, 100) the absolute value of a first light sensation difference between the interval maximum light sensation value 99 in (1) is less than or equal to a preset threshold value 60 corresponding to a light sensation interval, and the absolute value of a second light sensation difference between the historical light sensation value of the first cluster center point in each target light sensation subinterval [38, 98) and the interval minimum light sensation value 36 in the light sensation interval [36, 100) corresponding to the target light sensation subinterval is less than or equal to the preset threshold value 60 corresponding to the light sensation interval, wherein the cluster center point where the difference between the maximum light sensation value and the minimum light sensation value in [36, 100) exceeds 60lux can be regarded as a specific brightness adjustment behavior of the user instead of the brightness adjustment habit of the user, thereby determining the target light sensation subinterval of each light sensation interval in the plurality of light sensation intervals, obtaining the plurality of target light sensation subintervals, and finally, screening the target cluster center point of each target light sensation subinterval in the plurality of target light sensation subintervals, and obtaining a plurality of target cluster center points. Therefore, the target cluster center points which are more fit for the brightness regulation habit of the user can be screened out.
204. And fitting according to the center points of the plurality of target clusters and a preset backlight adjusting curve to obtain a first fitting curve, wherein the first fitting curve is used for representing the relation of the brightness value changing along with the light sensation value.
The preset backlight adjustment curve is a preset initial backlight adjustment curve for backlight adjustment, after a plurality of target cluster center points are screened out from the plurality of cluster center points, fitting can be carried out according to the plurality of target cluster center points and the preset backlight adjustment curve, a first fitting curve is obtained, the relation between the brightness value reflected by the first fitting curve and the light sensation value is more fit for the brightness adjustment habit of a user, the change characteristic of the brightness value along with the light sensation value is also met, and the first fitting curve has monotonicity.
Optionally, in the step 204, fitting the plurality of target cluster center points and a preset backlight adjustment curve to obtain a first fit curve, which may include the following steps:
41. determining a plurality of off-line cluster center points which are not in the preset backlight adjusting curve in the plurality of target cluster center points;
42. determining a first on-line coordinate point on the preset backlight adjusting curve, wherein the first on-line coordinate point is the same as the historical light sensation value of each off-line cluster center point in the plurality of off-line cluster center points, and obtaining a plurality of first on-line coordinate points;
43. and fitting according to the plurality of off-line cluster center points and other on-line coordinate points on the preset backlight adjusting curve except the plurality of first on-line coordinate points to obtain the first fitting curve.
Wherein, each target cluster center point in the plurality of target cluster center points is determined to be on or outside a preset backlight adjusting curve, the plurality of target cluster center points are divided into a first cluster center point set on the preset backlight adjusting curve and a second center point set outside the preset backlight adjusting curve, then a first on-line coordinate point on the preset backlight adjusting curve, which has the same historical light sensing value as each off-line cluster center point in the second center point set, is determined to obtain a plurality of first on-line coordinate points, and finally a first fitting curve is obtained by fitting the plurality of off-line cluster center points and other on-line coordinate points on the preset backlight adjusting curve except the plurality of first on-line coordinate points, so that the cluster center points which are more suitable for the brightness adjusting habit of the user can be reserved, and the cluster center points of invalid brightness adjusting behavior of the user under a specific scene can be screened out, the first fitting curve can reflect the backlight brightness adjusting requirement of the user more accurately.
205. And carrying out automatic backlight adjustment according to the first fitted curve.
In the specific implementation, the current light sensitivity value can be detected through the ambient light sensor in the automatic backlight brightness mode, then the target brightness value corresponding to the current light sensitivity value is determined according to the first fitting curve, and the backlight brightness is adjusted to the target brightness value, so that the backlight brightness can be more accurately adjusted according to the first fitting curve, and the brightness adjusting effect can better meet the user requirements.
Optionally, in an embodiment of the present application, the method may further include the following steps:
2051. determining a current application scene;
2052. determining a target fitting curve corresponding to the current application scene according to a mapping relation between a preset scene and the fitting curve;
2053. and if the target fitting curve is the first fitting curve, executing the operation of automatic backlight adjustment according to the first fitting curve.
In the embodiment of the application, in order to meet different brightness requirements of a user in different application scenes, fitting curves corresponding to the application scenes can be generated according to different brightness adjustment behaviors of the user in different application scenes, for example, in order to meet individual requirements of the user on brightness in a game application scene, fitting curves corresponding to the game application scene can be set, in order to protect the eyesight of the user, fitting curves corresponding to the reading application scene can be set, in a video scene, fitting curves corresponding to the video application can be set in order to meet the brightness adjustment habit of the user in the video, or different fitting curves can be set respectively in the day and at night to meet the brightness requirements of the user in the day and at night, in the implementation, when backlight brightness adjustment is performed, the current application scene can be determined, and then determining a target fitting curve corresponding to the current application scene according to the mapping relation between the preset scene and the fitting curve, and if the target fitting curve is the first fitting curve, automatically adjusting backlight according to the first fitting curve. Therefore, according to different brightness requirements of a user in different application scenes, automatic backlight adjustment can be performed through the fitting curve corresponding to the application scenes, a more personalized adjusting mode is provided, and user experience is improved.
The backlight brightness adjusting method in the embodiment of the application can be seen, by obtaining multiple sets of historical backlight brightness adjusting data in a preset time period, mapping the multiple sets of historical backlight brightness adjusting data to a preset coordinate system to obtain multiple coordinate points, clustering the multiple coordinate points to obtain multiple cluster center points, and screening multiple target cluster center points from the multiple cluster center points; fitting according to the center points of the target clusters and a preset backlight adjusting curve to obtain a first fitting curve; according to the automatic backlight adjustment method, automatic backlight adjustment is carried out according to the first fitting curve, so that invalid behaviors in the backlight adjustment process of a user are filtered out by screening a plurality of cluster center points corresponding to historical backlight adjustment data, a plurality of target cluster center points which are more in line with habits of the user are obtained, the first fitting curve which is more in line with the habits of the user is generated, and the automatic backlight adjustment can be more accurate.
Referring to fig. 3, fig. 3 is a schematic flow chart of a backlight brightness adjusting method according to an embodiment of the present application, where the method includes:
301. acquiring multiple groups of historical backlight brightness adjusting data in a preset time period, wherein each group of the historical backlight brightness adjusting data comprises a historical light sensation value and a historical brightness value.
302. Mapping the multiple groups of historical backlight brightness adjusting data to a preset coordinate system to obtain multiple coordinate points, wherein the horizontal axis of the coordinate system is used for representing a light sensation value, the vertical axis of the coordinate system is used for representing a brightness value, each coordinate point corresponds to one historical light sensation value and one historical brightness value, clustering the multiple coordinate points to obtain multiple cluster center points, and each cluster center point corresponds to one light sensation value and one brightness value.
303. And screening a plurality of first cluster center points which enable a preset backlight adjusting curve to have function monotonicity from the plurality of cluster center points.
304. And dividing the plurality of first cluster center points into a plurality of different light sensation intervals according to all historical light sensation values of the plurality of first cluster center points.
305. Selecting a target cluster center point from each of the plurality of light sensation intervals, wherein a first light sensation difference absolute value between the first light sensation difference absolute value and the maximum light sensation value of the interval and a second light sensation difference absolute value between the second light sensation difference absolute value and the minimum light sensation value of the interval are less than or equal to a preset threshold value to obtain a plurality of target cluster center points, wherein the interval maximum light sensitivity value is the maximum light sensitivity value in each light sensing interval, the interval minimum light sensitivity value is the minimum light sensitivity value in each light sensing interval, the first photo sensation difference absolute value is the difference absolute value between the historical photo sensation value of the first cluster center point in each photo sensation interval and the interval maximum photo sensation value, and the second light sensation difference absolute value is the difference absolute value between the historical light sensation value of the first cluster center point in each light sensation interval and the minimum light sensation value of the interval.
306. And fitting according to the center points of the plurality of target clusters and a preset backlight adjusting curve to obtain a first fitting curve, wherein the first fitting curve is used for representing the relation of the brightness value changing along with the light sensation value.
307. And carrying out automatic backlight adjustment according to the first fitted curve.
The specific implementation process of steps 301-307 can refer to the corresponding description in steps 201-205, which is not described herein again.
It can be seen that, in the embodiment of the application, multiple sets of historical backlight brightness adjustment data in a preset time period are obtained, the multiple sets of historical backlight brightness adjustment data are mapped into a preset coordinate system to obtain multiple coordinate points, and the multiple coordinate points are clustered to obtain multiple cluster center points; screening a plurality of first cluster center points which enable a preset backlight adjusting curve to have function monotonicity from the plurality of cluster center points; dividing the plurality of first cluster center points into a plurality of different light sensing sections according to all historical light sensing values of the plurality of first cluster center points; screening target cluster center points, of which the absolute value of a first light sensation difference value between the absolute value of the first light sensation difference value and the maximum light sensation value of the interval and the absolute value of a second light sensation difference value between the absolute value of the second light sensation difference value and the minimum light sensation value of the interval are smaller than or equal to a preset threshold value, from each light sensation interval of the plurality of light sensation intervals to obtain a plurality of target cluster center points; fitting according to the center points of the target clusters and a preset backlight adjusting curve to obtain a first fitting curve; according to the automatic backlight adjustment method, automatic backlight adjustment is carried out according to the first fitting curve, so that invalid behaviors in the backlight adjustment process of a user are filtered out by screening a plurality of cluster center points corresponding to historical backlight adjustment data, a plurality of target cluster center points which are more in line with habits of the user are obtained, the first fitting curve which is more in line with the habits of the user is generated, and the automatic backlight adjustment can be more accurate.
Referring to fig. 4, fig. 4 is a schematic flow chart of a backlight brightness adjusting method according to an embodiment of the present application, where the method includes:
401. acquiring multiple groups of historical backlight brightness adjusting data in a preset time period, wherein each group of the historical backlight brightness adjusting data comprises a historical light sensation value and a historical brightness value.
402. Mapping the multiple groups of historical backlight brightness adjusting data to a preset coordinate system to obtain multiple coordinate points, wherein the horizontal axis of the coordinate system is used for representing a light sensation value, the vertical axis of the coordinate system is used for representing a brightness value, each coordinate point corresponds to one historical light sensation value and one historical brightness value, clustering the multiple coordinate points to obtain multiple cluster center points, and each cluster center point corresponds to one light sensation value and one brightness value.
403. And screening a plurality of first cluster center points which enable the preset backlight adjusting curve to have function monotonicity from the plurality of cluster center points.
404. And dividing the plurality of first cluster center points into a plurality of different light sensation intervals according to all historical light sensation values of the plurality of first cluster center points.
405. Determining a target light sensation subinterval of each light sensation interval in the plurality of light sensation intervals to obtain a plurality of target light sensation subintervals, wherein a first light sensation difference absolute value between a historical light sensation value of a first cluster central point in each target light sensation subinterval and a section maximum light sensation value in the light sensation interval corresponding to the target light sensation subinterval is smaller than or equal to a preset threshold corresponding to the light sensation interval, and a second light sensation difference absolute value between the historical light sensation value of the first cluster central point in each target light sensation subinterval and a section minimum light sensation value in the light sensation interval corresponding to the target light sensation subinterval is smaller than or equal to the preset threshold corresponding to the light sensation interval.
406. And screening out the target cluster center point of each target light sensation subinterval in the plurality of target light sensation subintervals to obtain the plurality of target cluster center points.
407. And fitting according to the center points of the plurality of target clusters and a preset backlight adjusting curve to obtain a first fitting curve, wherein the first fitting curve is used for representing the relation of the brightness value changing along with the light sensation value.
408. And carrying out automatic backlight adjustment according to the first fitted curve.
The specific implementation process of steps 401-408 can refer to the corresponding description in steps 201-205, which is not described herein again.
It can be seen that, in the embodiment of the application, multiple sets of historical backlight brightness adjustment data in a preset time period are obtained, the multiple sets of historical backlight brightness adjustment data are mapped into a preset coordinate system to obtain multiple coordinate points, and the multiple coordinate points are clustered to obtain multiple cluster center points; fitting the center points of the clusters to obtain a first fitting curve; screening a plurality of first cluster center points which enable a preset backlight adjusting curve to have function monotonicity from the plurality of cluster center points; dividing the plurality of first cluster center points into a plurality of different light sensing sections according to all historical light sensing values of the plurality of first cluster center points; determining a target light sensation subinterval of each light sensation interval in the plurality of light sensation intervals to obtain a plurality of target light sensation subintervals, and screening a target cluster central point of each target light sensation subinterval in the plurality of target light sensation subintervals to obtain a plurality of target cluster central points; fitting according to the center points of the target clusters and a preset backlight adjusting curve to obtain a second fitting curve; according to the automatic backlight adjustment method, automatic backlight adjustment is carried out according to the first fitting curve, so that invalid behaviors in the backlight adjustment process of a user are filtered out by screening a plurality of cluster center points corresponding to historical backlight adjustment data, a plurality of target cluster center points which are more in line with habits of the user are obtained, the first fitting curve which is more in line with the habits of the user is generated, and the automatic backlight adjustment can be more accurate.
The following is a device for implementing the backlight brightness adjusting method, specifically as follows:
in accordance with the above, please refer to fig. 5, fig. 5 is a schematic structural diagram of an electronic device 500 according to an embodiment of the present disclosure, where the electronic device 500 includes: processor 510, communication interface 530, and memory 520; the electronic device 500 further comprises one or more programs 521, the one or more programs 521 stored in the memory 520 and configured to be executed by the processor, the programs 521 including instructions for performing the steps of:
acquiring multiple groups of historical backlight brightness adjusting data in a preset time period, wherein each group of the historical backlight brightness adjusting data comprises a historical light sensation value and a historical brightness value;
mapping the multiple groups of historical backlight brightness adjusting data to a preset coordinate system to obtain multiple coordinate points, wherein the horizontal axis of the coordinate system is used for representing a light sensation value, the vertical axis of the coordinate system is used for representing a brightness value, each coordinate point corresponds to one historical light sensation value and one historical brightness value, the multiple coordinate points are clustered to obtain multiple cluster center points, and each cluster center point corresponds to one light sensation value and one brightness value;
screening out a plurality of target cluster center points from the plurality of cluster center points;
fitting according to the center points of the plurality of target clusters and a preset backlight adjusting curve to obtain a first fitting curve, wherein the first fitting curve is used for representing the relation of the brightness value changing along with the light sensation value;
and carrying out automatic backlight adjustment according to the first fitted curve.
In one possible example, in said filtering out a plurality of target cluster center points from said plurality of cluster center points, said program 521 includes instructions for:
screening out a plurality of first cluster center points which enable the preset backlight adjusting curve to have function monotonicity from the plurality of cluster center points;
dividing the plurality of first cluster center points into a plurality of different light sensation intervals according to all light sensation values of the plurality of first cluster center points;
and screening a target cluster center point, wherein a first light sensation difference absolute value between the first light sensation difference absolute value and a maximum light sensation value of the interval and a second light sensation difference absolute value between the second light sensation difference absolute value and a minimum light sensation value of the interval are both smaller than or equal to a preset threshold value, so as to obtain a plurality of target cluster center points, the maximum light sensation value of the interval is the maximum light sensation value of each light sensation interval, the minimum light sensation value of the interval is the minimum light sensation value of each light sensation interval, the first light sensation difference absolute value is the difference absolute value between the historical light sensation value of the first cluster center point of each light sensation interval and the maximum light sensation value of the interval, and the second light sensation difference absolute value is the difference absolute value between the historical light sensation value of the first cluster center point of each light sensation interval and the minimum light sensation value of the interval.
In one possible example, in said screening out a plurality of first cluster center points from said plurality of cluster center points that make said preset backlight adjustment curve functionally monotonous, said program 521 comprises instructions for performing the following steps:
aiming at a cluster center point i in the cluster center points and a cluster center point j on the preset backlight adjustment curve, if the distance between the cluster center point i and the cluster center point j is smaller than a preset distance, and the cluster center point i and the cluster center point j have a relationship that the historical brightness value corresponding to the cluster center point with a large historical light sensation value is larger, determining the cluster center point i and the cluster center point j as two first cluster center points which enable the preset backlight adjustment curve to have function monotonicity, wherein the cluster center point i is any one of the cluster center points, and the cluster center point j is any one of the cluster center points on the preset backlight adjustment curve.
In a possible example, if the historical light sensation value i of the cluster center point i is greater than the historical light sensation value j of the cluster center point j, the historical brightness value i of the cluster center point i is greater than the historical brightness value j of the cluster center point j, or if the historical brightness value i is less than the historical brightness value j when the historical light sensation value i is less than the historical light sensation value j, it is determined that the cluster center point i and the cluster center point j have a larger historical brightness value corresponding to the cluster center point with the larger historical light sensation value.
In one possible example, in the aspect of dividing the plurality of first cluster center points into different plurality of light sensation intervals according to all historical light sensation values of the plurality of first cluster center points, the program 521 includes instructions for performing the following steps:
determining the light sensation value ranges of all historical light sensation values included by the plurality of first cluster center points;
dividing the light sensation value range into a plurality of light sensation intervals;
and sequentially dividing the plurality of first cluster center points into a plurality of light sensing intervals according to the sequence of historical light sensing values from small to large.
In one possible example, in the selecting, from each of the plurality of photosensitive sections, a target cluster center point where a first photosensitive difference absolute value between the first photosensitive difference absolute value and the section maximum photosensitive value and a second photosensitive difference absolute value between the second photosensitive difference absolute value and the section minimum photosensitive value are less than or equal to a preset threshold value, the program 521 includes instructions for:
determining a target light sensation subinterval of each light sensation interval in the plurality of light sensation intervals to obtain a plurality of target light sensation subintervals, wherein a first light sensation difference absolute value between a historical light sensation value of a first cluster central point in each target light sensation subinterval and a section maximum light sensation value in the light sensation interval corresponding to the target light sensation subinterval is smaller than or equal to a preset threshold corresponding to the light sensation interval, and a second light sensation difference absolute value between the historical light sensation value of the first cluster central point in each target light sensation subinterval and a section minimum light sensation value in the light sensation interval corresponding to the target light sensation subinterval is smaller than or equal to the preset threshold corresponding to the light sensation interval;
and screening out the target cluster center point of each target light sensation subinterval in the plurality of target light sensation subintervals to obtain the plurality of target cluster center points.
In one possible example, in the fitting according to the center points of the plurality of target clusters and a preset backlight adjustment curve to obtain a first fitting curve, the program 521 includes instructions for performing the following steps:
determining a plurality of off-line cluster center points which are not in the preset backlight adjusting curve in the plurality of target cluster center points;
determining a first on-line coordinate point on the preset backlight adjusting curve, wherein the first on-line coordinate point is the same as the historical light sensation value of each off-line cluster center point in the plurality of off-line cluster center points, and obtaining a plurality of first on-line coordinate points;
and fitting according to the plurality of off-line cluster center points and other on-line coordinate points on the preset backlight adjusting curve except the plurality of first on-line coordinate points to obtain the first fitting curve.
In one possible example, the program 521 further includes instructions for performing the steps of:
determining a current application scene;
determining a target fitting curve corresponding to the current application scene according to a mapping relation between a preset scene and the fitting curve;
and if the target fitting curve is the first fitting curve, executing the operation of automatic backlight adjustment according to the first fitting curve.
It can be seen that, in the electronic device in the embodiment of the present application, multiple sets of historical backlight brightness adjustment data in a preset time period are obtained, the multiple sets of historical backlight brightness adjustment data are mapped into a preset coordinate system to obtain multiple coordinate points, the multiple coordinate points are clustered to obtain multiple cluster center points, and multiple target cluster center points are screened from the multiple cluster center points; fitting according to the center points of the target clusters and a preset backlight adjusting curve to obtain a first fitting curve; according to the automatic backlight adjustment method, automatic backlight adjustment is carried out according to the first fitting curve, so that invalid behaviors in the backlight adjustment process of a user are filtered out by screening a plurality of cluster center points corresponding to historical backlight adjustment data, a plurality of target cluster center points which are more in line with habits of the user are obtained, the first fitting curve which is more in line with the habits of the user is generated, and the automatic backlight adjustment can be more accurate.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a backlight brightness adjusting apparatus 600 provided in the present embodiment, the backlight brightness adjusting apparatus 600 includes an obtaining unit 601, a clustering unit 602, a processing unit 603, a screening unit 604, and an adjusting unit 605, wherein,
the obtaining unit 601 is configured to obtain multiple sets of historical backlight brightness adjustment data in a preset time period, where each set of the historical backlight brightness adjustment data includes a historical light sensation value and a historical brightness value;
the clustering unit 602 is configured to map the multiple sets of historical backlight brightness adjustment data into a preset coordinate system to obtain multiple coordinate points, where a horizontal axis of the coordinate system is used to represent a light sensation value, a vertical axis of the coordinate system is used to represent a brightness value, each coordinate point corresponds to one historical light sensation value and one historical brightness value, and the multiple coordinate points are clustered to obtain multiple cluster center points, and each cluster center point corresponds to one light sensation value and one brightness value;
the screening unit 604 is configured to screen out a plurality of target cluster center points from the plurality of cluster center points;
the processing unit 603 is configured to perform fitting according to the center points of the plurality of target clusters and a preset backlight adjustment curve to obtain a first fitting curve, where the first fitting curve is used to represent a relationship between a brightness value and a change in a light sensation value;
the adjusting unit 605 is configured to perform automatic backlight adjustment according to the first fitted curve.
Optionally, the screening unit 604 is specifically configured to:
screening out a plurality of first cluster center points which enable the preset backlight adjusting curve to have function monotonicity from the plurality of cluster center points;
dividing the plurality of first cluster center points into a plurality of different light sensation intervals according to all light sensation values of the plurality of first cluster center points;
and screening a target cluster center point, wherein a first light sensation difference absolute value between the first light sensation difference absolute value and a maximum light sensation value of the interval and a second light sensation difference absolute value between the second light sensation difference absolute value and a minimum light sensation value of the interval are both smaller than or equal to a preset threshold value, so as to obtain a plurality of target cluster center points, the maximum light sensation value of the interval is the maximum light sensation value of each light sensation interval, the minimum light sensation value of the interval is the minimum light sensation value of each light sensation interval, the first light sensation difference absolute value is the difference absolute value between the historical light sensation value of the first cluster center point of each light sensation interval and the maximum light sensation value of the interval, and the second light sensation difference absolute value is the difference absolute value between the historical light sensation value of the first cluster center point of each light sensation interval and the minimum light sensation value of the interval.
Optionally, in the aspect of screening out a plurality of first cluster center points from the plurality of cluster center points, where the preset backlight adjustment curve has a function monotonicity, the screening unit 604 is specifically configured to:
aiming at a cluster center point i in the cluster center points and a cluster center point j on the preset backlight adjustment curve, if the distance between the cluster center point i and the cluster center point j is smaller than a preset distance, and the cluster center point i and the cluster center point j have a relationship that the historical brightness value corresponding to the cluster center point with a large historical light sensation value is larger, determining the cluster center point i and the cluster center point j as two first cluster center points which enable the preset backlight adjustment curve to have function monotonicity, wherein the cluster center point i is any one of the cluster center points, and the cluster center point j is any one of the cluster center points on the preset backlight adjustment curve.
Optionally, if the historical light sensation value i of the cluster center point i is greater than the historical light sensation value j of the cluster center point j, the historical brightness value i of the cluster center point i is greater than the historical brightness value j of the cluster center point j, or if the historical light sensation value i is less than the historical light sensation value j, the historical brightness value i is less than the historical brightness value j, and it is determined that the relationship between the cluster center point i and the cluster center point j that has a cluster center point with a large historical light sensation value is larger than the historical brightness value corresponding to the cluster center point.
Optionally, in respect that the plurality of first cluster center points are divided into a plurality of different light sensation sections according to all historical light sensation values of the plurality of first cluster center points, the screening unit 604 is specifically configured to:
determining the light sensation value ranges of all historical light sensation values included by the plurality of first cluster center points;
dividing the light sensation value range into a plurality of light sensation intervals;
and sequentially dividing the plurality of first cluster center points into a plurality of light sensing intervals according to the sequence of historical light sensing values from small to large.
Optionally, in the aspect that a target cluster center point, where a first absolute value of a light sensation difference between the first absolute value of the light sensation difference and a maximum absolute value of a light sensation difference between the first absolute value of the light sensation difference and a minimum absolute value of the light sensation difference, of the plurality of light sensation intervals, is smaller than or equal to a preset threshold value is selected from each of the plurality of light sensation intervals, the selecting unit 604 is specifically configured to:
determining a target light sensation subinterval of each light sensation interval in the plurality of light sensation intervals to obtain a plurality of target light sensation subintervals, wherein a first light sensation difference absolute value between a historical light sensation value of a first cluster central point in each target light sensation subinterval and a section maximum light sensation value in the light sensation interval corresponding to the target light sensation subinterval is smaller than or equal to a preset threshold corresponding to the light sensation interval, and a second light sensation difference absolute value between the historical light sensation value of the first cluster central point in each target light sensation subinterval and a section minimum light sensation value in the light sensation interval corresponding to the target light sensation subinterval is smaller than or equal to the preset threshold corresponding to the light sensation interval;
and screening out the target cluster center point of each target light sensation subinterval in the plurality of target light sensation subintervals to obtain the plurality of target cluster center points.
Optionally, in the aspect that the fitting is performed according to the multiple target cluster center points and a preset backlight adjustment curve to obtain a first fitting curve, the processing unit 603 is specifically configured to:
determining a plurality of off-line cluster center points which are not in the preset backlight adjusting curve in the plurality of target cluster center points;
determining a first on-line coordinate point on the preset backlight adjusting curve, wherein the first on-line coordinate point is the same as the historical light sensation value of each off-line cluster center point in the plurality of off-line cluster center points, and obtaining a plurality of first on-line coordinate points;
and fitting according to the plurality of off-line cluster center points and other on-line coordinate points on the preset backlight adjusting curve except the plurality of first on-line coordinate points to obtain the first fitting curve.
Optionally, the processing unit 603 is further configured to:
determining a current application scene;
determining a target fitting curve corresponding to the current application scene according to a mapping relation between a preset scene and the fitting curve;
and if the target fitting curve is the first fitting curve, executing the operation of automatic backlight adjustment according to the first fitting curve.
It can be seen that, in the backlight brightness adjusting device described in the embodiment of the present application, multiple sets of historical backlight brightness adjusting data in a preset time period are obtained, the multiple sets of historical backlight brightness adjusting data are mapped into a preset coordinate system to obtain multiple coordinate points, the multiple coordinate points are clustered to obtain multiple cluster center points, and multiple target cluster center points are screened from the multiple cluster center points; fitting according to the center points of the target clusters and a preset backlight adjusting curve to obtain a first fitting curve; according to the automatic backlight adjustment method, automatic backlight adjustment is carried out according to the first fitting curve, so that invalid behaviors in the backlight adjustment process of a user are filtered out by screening a plurality of cluster center points corresponding to historical backlight adjustment data, a plurality of target cluster center points which are more in line with habits of the user are obtained, the first fitting curve which is more in line with the habits of the user is generated, and the automatic backlight adjustment can be more accurate.
It can be understood that the functions of each program module of the backlight brightness adjusting apparatus of this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Embodiments of the present application also provide a computer-readable storage medium storing a computer program for electronic data exchange, the computer program causing a computer to execute part or all of the steps of any one of the backlight brightness adjustment methods as described in the above method embodiments.
Embodiments of the present application also provide a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program causes a computer to execute some or all of the steps of any one of the backlight brightness adjusting methods as described in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. A method for adjusting backlight brightness, the method comprising:
acquiring multiple groups of historical backlight brightness adjusting data in a preset time period, wherein each group of the historical backlight brightness adjusting data comprises a historical light sensation value and a historical brightness value;
mapping the multiple groups of historical backlight brightness adjusting data to a preset coordinate system to obtain multiple coordinate points, wherein the horizontal axis of the coordinate system is used for representing a light sensation value, the vertical axis of the coordinate system is used for representing a brightness value, each coordinate point corresponds to one historical light sensation value and one historical brightness value, the multiple coordinate points are clustered to obtain multiple cluster center points, and each cluster center point corresponds to one light sensation value and one brightness value;
screening out a plurality of target cluster center points from the plurality of cluster center points;
fitting according to the center points of the plurality of target clusters and a preset backlight adjusting curve to obtain a first fitting curve, wherein the first fitting curve is used for representing the relation of the brightness value changing along with the light sensation value;
and carrying out automatic backlight adjustment according to the first fitted curve.
2. The method of claim 1, wherein said screening a plurality of target cluster center points from said plurality of cluster center points comprises:
screening out a plurality of first cluster center points which enable the preset backlight adjusting curve to have function monotonicity from the plurality of cluster center points;
dividing the plurality of first cluster center points into a plurality of different light sensation intervals according to all light sensation values of the plurality of first cluster center points;
and screening a target cluster center point, wherein a first light sensation difference absolute value between the first light sensation difference absolute value and a maximum light sensation value of the interval and a second light sensation difference absolute value between the second light sensation difference absolute value and a minimum light sensation value of the interval are both smaller than or equal to a preset threshold value, so as to obtain a plurality of target cluster center points, the maximum light sensation value of the interval is the maximum light sensation value of each light sensation interval, the minimum light sensation value of the interval is the minimum light sensation value of each light sensation interval, the first light sensation difference absolute value is the difference absolute value between the historical light sensation value of the first cluster center point of each light sensation interval and the maximum light sensation value of the interval, and the second light sensation difference absolute value is the difference absolute value between the historical light sensation value of the first cluster center point of each light sensation interval and the minimum light sensation value of the interval.
3. The method of claim 2, wherein the selecting a plurality of first cluster center points from the plurality of cluster center points that make the preset backlight adjustment curve have a function monotonicity comprises:
aiming at a cluster center point i in the cluster center points and a cluster center point j on the preset backlight adjustment curve, if the distance between the cluster center point i and the cluster center point j is smaller than a preset distance, and the cluster center point i and the cluster center point j have a relationship that the historical brightness value corresponding to the cluster center point with a large historical light sensation value is larger, determining the cluster center point i and the cluster center point j as two first cluster center points which enable the preset backlight adjustment curve to have function monotonicity, wherein the cluster center point i is any one of the cluster center points, and the cluster center point j is any one of the cluster center points on the preset backlight adjustment curve.
4. The method according to claim 3, wherein if the historical light sensation value i of the cluster center point i is greater than the historical light sensation value j of the cluster center point j, the historical brightness value i of the cluster center point i is greater than the historical brightness value j of the cluster center point j; or if the historical light sensation value i is smaller than the historical light sensation value j, the historical brightness value i is smaller than the historical brightness value j; determining that the relationship between the cluster center point i and the cluster center point j is larger in the historical brightness value corresponding to the cluster center point with the large historical light sensation value.
5. The method according to any one of claims 2 to 4, wherein the dividing the plurality of first cluster center points into different plurality of light sensation intervals according to all historical light sensation values of the plurality of first cluster center points comprises:
determining the light sensation value ranges of all historical light sensation values included by the plurality of first cluster center points;
dividing the light sensation value range into a plurality of light sensation intervals;
and sequentially dividing the plurality of first cluster center points into a plurality of light sensing intervals according to the sequence of historical light sensing values from small to large.
6. The method according to any one of claims 2 to 5, wherein the selecting, from each of the plurality of photosensitive sections, a target cluster center point at which an absolute value of a first photosensitive difference between the maximum photosensitive value and the minimum photosensitive value is less than or equal to a predetermined threshold value, to obtain a plurality of target cluster center points comprises:
determining a target light sensation subinterval of each light sensation interval in the plurality of light sensation intervals to obtain a plurality of target light sensation subintervals, wherein a first light sensation difference absolute value between a historical light sensation value of a first cluster central point in each target light sensation subinterval and a section maximum light sensation value in the light sensation interval corresponding to the target light sensation subinterval is smaller than or equal to a preset threshold corresponding to the light sensation interval, and a second light sensation difference absolute value between the historical light sensation value of the first cluster central point in each target light sensation subinterval and a section minimum light sensation value in the light sensation interval corresponding to the target light sensation subinterval is smaller than or equal to the preset threshold corresponding to the light sensation interval;
and screening out the target cluster center point of each target light sensation subinterval in the plurality of target light sensation subintervals to obtain the plurality of target cluster center points.
7. The method according to any one of claims 1 to 6, wherein the fitting according to the center points of the plurality of target clusters and a preset backlight adjustment curve to obtain a first fitting curve comprises:
determining a plurality of off-line cluster center points which are not in the preset backlight adjusting curve in the plurality of target cluster center points;
determining a first on-line coordinate point on the preset backlight adjusting curve, wherein the first on-line coordinate point is the same as the historical light sensation value of each off-line cluster center point in the plurality of off-line cluster center points, and obtaining a plurality of first on-line coordinate points;
and fitting according to the plurality of off-line cluster center points and other on-line coordinate points on the preset backlight adjusting curve except the plurality of first on-line coordinate points to obtain the first fitting curve.
8. The method according to any one of claims 1-7, further comprising:
determining a current application scene;
determining a target fitting curve corresponding to the current application scene according to a mapping relation between a preset scene and the fitting curve;
and if the target fitting curve is the first fitting curve, executing the operation of automatic backlight adjustment according to the first fitting curve.
9. A backlight luminance adjusting apparatus, comprising:
the device comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring a plurality of groups of historical backlight brightness adjusting data in a preset time period, and each group of the historical backlight brightness adjusting data comprises a historical light sensation value and a historical brightness value;
the clustering unit is used for mapping the multiple groups of historical backlight brightness adjusting data to a preset coordinate system to obtain a plurality of coordinate points, wherein the horizontal axis of the coordinate system is used for representing a light sensation value, the vertical axis of the coordinate system is used for representing a brightness value, each coordinate point corresponds to one historical light sensation value and one historical brightness value, the plurality of coordinate points are clustered to obtain a plurality of cluster center points, and each cluster center point corresponds to one light sensation value and one brightness value;
the screening unit is used for screening out a plurality of target cluster center points from the plurality of cluster center points;
the processing unit is used for fitting according to the center points of the target clusters and a preset backlight adjusting curve to obtain a first fitting curve, wherein the first fitting curve is used for representing the relation of the brightness value along with the change of the light sensation value;
and the adjusting unit is used for carrying out automatic backlight adjustment according to the first fitted curve.
10. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-8.
11. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-8.
CN201911383860.7A 2019-12-28 2019-12-28 Backlight brightness adjusting method and device, electronic equipment and readable storage medium Active CN113053332B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911383860.7A CN113053332B (en) 2019-12-28 2019-12-28 Backlight brightness adjusting method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911383860.7A CN113053332B (en) 2019-12-28 2019-12-28 Backlight brightness adjusting method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113053332A true CN113053332A (en) 2021-06-29
CN113053332B CN113053332B (en) 2022-04-22

Family

ID=76507415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911383860.7A Active CN113053332B (en) 2019-12-28 2019-12-28 Backlight brightness adjusting method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113053332B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070077268A (en) * 2006-01-23 2007-07-26 삼성전자주식회사 Backlight assembly and liquid crystal display device having the same
CN101043407A (en) * 2007-04-05 2007-09-26 华为技术有限公司 Method and system for enquiring data of sensor network and sensor node
US20080007509A1 (en) * 2006-07-10 2008-01-10 Philips Lumileds Lighting Company, Llc Multi-Colored LED Backlight with Color-Compensated Clusters Near Edge
CN101276374A (en) * 2007-03-30 2008-10-01 索尼株式会社 Content management apparatus, image display apparatus, image pickup apparatus and processing method
CN101467490A (en) * 2006-06-09 2009-06-24 飞利浦拉米尔德斯照明设备有限责任公司 Led backlight for LCD with color uniformity recalibration over lifetime
US20100271399A1 (en) * 2009-04-23 2010-10-28 Chi Mei Communication Systems, Inc. Electronic device and method for positioning of an image in the electronic device
CN109784424A (en) * 2019-03-26 2019-05-21 腾讯科技(深圳)有限公司 A kind of method of image classification model training, the method and device of image procossing

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070077268A (en) * 2006-01-23 2007-07-26 삼성전자주식회사 Backlight assembly and liquid crystal display device having the same
CN101467490A (en) * 2006-06-09 2009-06-24 飞利浦拉米尔德斯照明设备有限责任公司 Led backlight for LCD with color uniformity recalibration over lifetime
US20080007509A1 (en) * 2006-07-10 2008-01-10 Philips Lumileds Lighting Company, Llc Multi-Colored LED Backlight with Color-Compensated Clusters Near Edge
CN101276374A (en) * 2007-03-30 2008-10-01 索尼株式会社 Content management apparatus, image display apparatus, image pickup apparatus and processing method
CN101043407A (en) * 2007-04-05 2007-09-26 华为技术有限公司 Method and system for enquiring data of sensor network and sensor node
US20100271399A1 (en) * 2009-04-23 2010-10-28 Chi Mei Communication Systems, Inc. Electronic device and method for positioning of an image in the electronic device
CN109784424A (en) * 2019-03-26 2019-05-21 腾讯科技(深圳)有限公司 A kind of method of image classification model training, the method and device of image procossing

Also Published As

Publication number Publication date
CN113053332B (en) 2022-04-22

Similar Documents

Publication Publication Date Title
CN110139262B (en) Bluetooth communication control method and related product
CN108550353B (en) Brightness adjusting method and related product
CN111338725B (en) Interface layout method and related product
CN108322601B (en) Reminding method and terminal
CN111444425B (en) Information pushing method, electronic equipment and medium
CN108777741B (en) Antenna switching control method and related product
CN107317918B (en) Parameter setting method and related product
CN110475020B (en) Equipment control method and related product
CN110876184B (en) Carrier aggregation configuration method and related product
CN106293738A (en) The update method of a kind of facial expression image and device
US11082806B2 (en) Method of identifying user location, storage medium and electronic device
CN111312179B (en) Backlight brightness adjusting method and related product
CN108777735B (en) Display area adjusting method and related equipment
CN107797832B (en) Application cleaning method and device, storage medium and electronic equipment
CN111343321B (en) Backlight brightness adjusting method and related product
CN112400308A (en) Charging prompting method and related product
CN110827785B (en) Brightness adjusting method and related product
CN110958352B (en) Network signal display method, device, storage medium and mobile terminal
CN113053332B (en) Backlight brightness adjusting method and device, electronic equipment and readable storage medium
CN110278028B (en) Information transmission method and related product
CN108989555B (en) Image processing method and related product
CN110851014A (en) Touch identification method and device, storage medium and terminal equipment
CN107133010A (en) A kind of reminding sound volume of application program determines method, device and terminal
CN110753159B (en) Incoming call processing method and related product
CN110611347B (en) Charging control method and related product

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
GR01 Patent grant
GR01 Patent grant