A method for determining display parameters and related equipment

By obtaining the intensity value of the eye protection mode of the application layer and correcting it according to the ambient color temperature parameters, the problem of fixed eye protection mode intensity in the prior art is solved, and the matching of the eye protection mode and environmental conditions is achieved, improving the user experience.

CN115002435BActive Publication Date: 2024-11-05SPREADTRUM SEMICON (NANJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210586488.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-26
Publication Date
2024-11-05
Estimated Expiration
2042-05-26

AI Technical Summary

Technical Problem

In the prior art, the intensity of the eye protection mode is a fixed value and cannot be adjusted according to different environmental conditions, resulting in poor user experience in different environments.

Method used

By obtaining the intensity value of the eye protection mode sent by the application layer, and correcting it according to the ambient color temperature parameters collected by the light sensor, the corrected color matrix is ​​generated, and the display parameters of the display screen are adjusted to match the current external conditions.

Benefits of technology

The intensity of the eye protection mode is matched with environmental conditions, improving the user experience and ensuring the comfort of the eye protection mode in different environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115002435B_ABST
    Figure CN115002435B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of display technology, and in particular to a method for determining display parameters and related equipment. The method is applied to the service layer of a terminal device, and includes: obtaining an eye protection mode intensity value sent by an application layer; generating a corresponding color matrix according to the eye protection mode intensity value; obtaining an ambient color temperature parameter collected by a light sensor; correcting the value of the color matrix according to the ambient color temperature parameter to obtain a corrected color matrix; and adjusting the display parameters of a display screen according to the corrected color matrix. In an embodiment of the present invention, by setting the eye protection mode intensity value, the effect of the eye protection mode can be adjusted, and the eye protection mode intensity value is adjusted accordingly according to the obtained ambient color temperature parameter, thereby achieving the technical effect of adjusting the intensity of the eye protection mode according to the environmental conditions, and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to the field of display technology, and in particular to a display parameter determination method and related equipment. [Background technology]

[0002] With the gradual popularization of portable mobile terminals such as mobile phones and tablets, users are becoming more and more dependent on mobile terminals. As the functions carried by mobile terminals continue to increase, mobile terminals can replace some of the functions of terminals such as cameras, televisions, and e-books. This causes some users to use mobile terminals for a long time every day, resulting in decreased vision. In the prior art, the original display color of the image is often changed to prevent blue light from damaging the user's vision. In the prior art, the intensity of the eye protection mode is a fixed value, but the most comfortable eye protection intensity for users in different environments is different. Therefore, how to adjust the intensity of the eye protection mode according to different environmental conditions is a problem that needs to be solved urgently. [Summary of the invention]

[0003] In order to solve the above problems, an embodiment of the present invention provides a display parameter determination method and related devices, which can improve the user experience.

[0004] In a first aspect, an embodiment of the present invention provides a method for determining a display parameter, the method being applied to a service layer of a terminal device, comprising:

[0005] Get the eye protection mode intensity value sent by the application layer;

[0006] Generate a corresponding color matrix according to the eye protection mode intensity value;

[0007] Get the ambient color temperature parameters collected by the light sensor;

[0008] Correcting the value of the color matrix according to the ambient color temperature parameter to obtain a corrected color matrix;

[0009] According to the corrected color matrix, display parameters of the display screen are adjusted.

[0010] In an embodiment of the present invention, the eye protection mode intensity value is obtained and corrected according to the obtained ambient color temperature parameter, so that the final eye protection mode intensity matches the current external conditions, thereby improving the user experience.

[0011] In a possible implementation, the color matrix includes a plurality of matrix parameters, and the value of the color matrix is ​​corrected according to the ambient color temperature parameter, including:

[0012] Determining a value range of each matrix parameter in the color matrix according to the eye protection mode intensity value;

[0013] According to the ambient color temperature parameter, the values ​​of the matrix parameters are respectively determined from the value ranges corresponding to the matrix parameters.

[0014] In a possible implementation, the eye protection mode intensity value is a value in an acceptable value range, the acceptable value range is divided into a plurality of value sub-intervals, each of the value sub-intervals has the same interval size, and a plurality of value sub-intervals with the same interval size constitute a class of value interval sets, and determining the value range of each matrix parameter in the color matrix according to the eye protection mode intensity value includes:

[0015] Determining a plurality of corresponding target value sub-intervals from a plurality of value interval sets according to the eye protection mode intensity value, wherein the plurality of value interval sets correspond to the plurality of matrix parameters one by one, and the value sub-intervals included in each value interval set are different in size;

[0016] The value ranges of the corresponding multiple matrix parameters are determined according to the multiple target value sub-intervals.

[0017] In a possible implementation, according to the ambient color temperature parameter, respectively determining the values ​​of the matrix parameters from the value ranges corresponding to the matrix parameters includes:

[0018] When the color temperature indicated by the ambient color temperature parameter is biased toward warm colors, the specific values ​​of the matrix parameters are biased toward the larger side of the corresponding value range, and the corresponding eye protection mode intensity is relatively high;

[0019] When the color temperature indicated by the ambient color temperature parameter tends to be cold, the specific values ​​of the matrix parameters tend to be on the smaller side of the corresponding value range, and the corresponding eye protection mode intensity is low.

[0020] In a possible implementation, before generating a corresponding color matrix according to the eye protection mode intensity value, the method further includes:

[0021] Determining whether the eye protection mode intensity value is within an acceptable value range;

[0022] If the eye protection mode intensity value is not within the allowable value range, the eye protection mode intensity value is determined to be an invalid value.

[0023] In a possible implementation, the display parameters at least include values ​​of each color component in a red, green, and blue (RGB) color space, and adjusting the display parameters of the display screen according to the corrected color matrix includes:

[0024] Determine the value of each color component in the RGB color space according to the modified color matrix;

[0025] Get the image to be displayed;

[0026] Performing color conversion on the image to be displayed according to the values ​​of each color component;

[0027] The image to be displayed after color conversion is displayed.

[0028] In a second aspect, an embodiment of the present invention provides a terminal device, including:

[0029] An acquisition module is used to obtain the eye protection mode intensity value sent by the application layer;

[0030] A processing module, used for generating a corresponding color matrix according to the eye protection mode intensity value;

[0031] The acquisition module is also used to acquire the ambient color temperature parameters collected by the light sensor;

[0032] The processing module is further used to correct the value of the color matrix according to the ambient color temperature parameter to obtain a corrected color matrix;

[0033] An execution module is used to adjust display parameters of the display screen according to the corrected color matrix.

[0034] In a possible implementation, the color matrix includes a plurality of matrix parameters, and the processing module is specifically used for:

[0035] Determining a value range of each matrix parameter in the color matrix according to the eye protection mode intensity value;

[0036] According to the ambient color temperature parameter, the values ​​of the matrix parameters are respectively determined from the value ranges corresponding to the matrix parameters.

[0037] In a third aspect, an embodiment of the present invention provides an electronic device, including:

[0038] at least one processor; and

[0039] at least one memory in communication with the processor, wherein:

[0040] The memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the methods described in the first to fourth aspects.

[0041] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the methods described in the first to second aspects.

[0042] It should be understood that the method described in the fourth aspect of the embodiment of the present invention is consistent with the technical solutions of the first to second aspects of the embodiments of the present invention, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here.

Brief Description of the Drawings

[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0044] Figure 1 A flow chart of a method for determining display parameters provided by an embodiment of the present invention;

[0045] Figure 2 A flowchart of another method for determining display parameters provided by an embodiment of the present invention;

[0046] Figure 3 A schematic diagram of a color matrix provided by an embodiment of the present invention;

[0047] Figure 4 A schematic diagram of a division result of a possible value range provided in an embodiment of the present invention;

[0048] Figure 5 A schematic diagram of the structure of a terminal device provided by an embodiment of the present invention;

[0049] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. [Specific implementation method]

[0050] In order to better understand the technical solution of this specification, the embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0051] It should be clear that the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0052] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit this specification. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0053] In the embodiment of the present invention, the intensity value of the eye protection mode is adjusted by obtaining the ambient color temperature parameter, so that the intensity of the eye protection mode is maintained at a comfortable level, thereby improving the user experience.

[0054] Figure 1 A flow chart of a method for determining display parameters provided by an embodiment of the present invention. Figure 1 As shown, the method is applied to the service layer of the terminal device, including:

[0055] Step 101, obtain the eye protection mode intensity value sent by the application layer. Among them, when the operating system of the terminal device is the Android architecture, the display parameter determination method provided by the embodiment of the present invention can be executed by the surfaceflinger in the Android architecture. The role of surfaceflinger in Android is to receive graphic display data from multiple sources, synthesize these graphic display data and send them to the display screen of the hardware layer for specific image display. After the user manually sets the eye protection mode intensity value for the terminal device, surfaceflinger can obtain the eye protection mode intensity value through the WindowManager Server in the Android architecture. Specifically, an interface can be added to surfaceflinger to receive the eye protection mode intensity value passed in by the WindowManager Server. When the WindowManager Server monitors the eye protection mode intensity value set by the user, it sends the eye protection mode intensity value to surfaceflinger.

[0056] Step 102, generating a corresponding color matrix according to the eye protection mode intensity value. The color matrix may be a color matrix in the Android architecture. The color matrix is ​​used to determine the display parameters of the display screen. Therefore, the display parameters may be calculated by converting the eye protection mode intensity value into a corresponding color matrix.

[0057] Step 103, obtain the ambient color temperature parameter collected by the light sensor. The ambient color temperature parameter is the color temperature value of the current environment collected by the light sensor. The color temperature value is used to describe the color components contained in the light, and the unit is Kelvin. Therefore, by obtaining the ambient color temperature parameter, it can be determined whether the ambient light color of the current terminal device is a cold light environment or a warm light environment. Specifically, surfaceflinger can obtain the ambient color temperature value from the RGB sensor.

[0058] Step 104, correct the value of the color matrix according to the ambient color temperature parameter to obtain a corrected color matrix. The color matrix includes multiple matrix parameters, and the multiple matrix parameters correspond to the display parameters. When correcting the value of the color matrix, when the ambient color temperature parameter tends to be warm, the value of each matrix parameter can be adjusted higher to increase the intensity of the eye protection mode. When the ambient color temperature parameter tends to be cold, the value of each matrix parameter can be adjusted lower to reduce the intensity of the eye protection mode.

[0059] Step 105, adjusting the display parameters of the display screen according to the corrected color matrix. The display parameters of the display screen may be specifically the values ​​of each color component in the red, green, blue (RGB) color space, and the values ​​of each color component in the RGB color space may be determined according to the corrected color matrix. After the surfaceflinger obtains the image to be displayed, the color conversion may be performed on the image to be displayed according to the values ​​of each color component. The image to be displayed after the color conversion is then displayed.

[0060] In some embodiments, before generating the corresponding color matrix according to the eye protection mode intensity value, it is also possible to determine whether the eye protection mode intensity value is within the acceptable value range. If the eye protection mode intensity value is not within the acceptable value range, the eye protection mode intensity value is determined to be an invalid value. For example, the acceptable value range of the eye protection mode intensity value is 0-1024. When the acquired eye protection mode intensity value is between 0-1024, the eye protection mode intensity value is a valid value, indicating that the eye protection mode is turned on. When the acquired eye protection mode intensity value is less than 0, the eye protection mode intensity value is an invalid value, indicating that the eye protection mode is not turned on, and the steps of generating the color matrix and subsequent steps are not performed.

[0061] In some embodiments, the step of determining the values ​​of each matrix parameter in the color matrix is ​​as follows: Figure 2 As shown:

[0062] Step 201, determine the value range of each matrix parameter in the color matrix according to the eye protection mode intensity value. The color matrix can be a four-dimensional symmetric matrix, such as Figure 3As shown. Then the matrix parameters of the color matrix are a, b, c, d, e and f. The eye protection mode intensity value is a value in the available value range, and the available value range is divided into multiple value sub-intervals, each value sub-interval has the same interval size, and multiple value sub-intervals with the same interval size constitute a type of value interval set. For example, if the available value range is 0-1024, the available value range can be divided into value sub-intervals 0 to 512 and value sub-intervals 512 to 1024. Then 0 to 512 and 512 to 1024 constitute the same type of value interval set. The available value range can also be divided into value sub-intervals 0 to 256, value sub-intervals 256 to 512, value sub-intervals 512 to 768, and value sub-intervals 768 to 1024. Then 0 to 256, 256 to 512, 512 to 768, and 768 to 1024 constitute another type of value sub-interval set.

[0063] Then, multiple corresponding target value sub-intervals can be determined from multiple value interval sets according to the eye protection mode intensity value. Multiple value interval sets correspond to multiple matrix parameters one by one, and the value sub-intervals contained in each value interval set are different in size. For example, the eye protection mode intensity value is 1, and the matrix parameter a corresponds to the first value interval set, which includes value sub-intervals 0 to 512 and value sub-intervals 512 to 1024. The matrix parameter b corresponds to the second value interval set, which includes value sub-intervals 0 to 256, value sub-intervals 256 to 512, value sub-intervals 512 to 768, and value sub-intervals 768 to 1024. Then, according to the eye protection mode intensity value 1, the interval in the first value interval set where the eye protection mode intensity value 1 is located is determined as the target value sub-interval, that is, 0 to 512. Then the target value sub-interval in the second value interval set is 0 to 256.

[0064] Afterwards, the value ranges of the corresponding multiple matrix parameters can be determined according to the multiple target value sub-intervals. For example, the matrix parameter a corresponds to the first value interval set, and the matrix parameter b corresponds to the second value interval set, then the value range of the matrix parameter a is 0 to 512, and the value range of the matrix parameter b is 0 to 256.

[0065] In a specific example, the possible value range can be divided by binary division. Figure 4 As shown in the figure, the value range 0 to 1024 is divided into two parts to obtain the value sub-intervals corresponding to the matrix parameter a: 0 to 512 and 512 to 1024. Then, the two value sub-intervals corresponding to a are further divided into two parts to obtain the four value sub-intervals corresponding to b: 0 to 256, 256 to 512, 512 to 768, and 768 to 1024. In this way, all the value sub-intervals corresponding to the matrix parameters a to f are obtained.

[0066] Step 202, according to the ambient color temperature parameter, determine the value of each matrix parameter from the value range corresponding to each matrix parameter. Among them, when the color temperature indicated by the ambient color temperature parameter tends to be warm, the specific value of each matrix parameter tends to be on the larger side of the corresponding value range, and the corresponding eye protection mode intensity is high. When the color temperature indicated by the ambient color temperature parameter tends to be cold, the specific value of each matrix parameter tends to be on the smaller side of the corresponding value range, and the corresponding eye protection mode intensity is low. For example, when the eye protection mode intensity value is 1 and the ambient color temperature parameter is 2000K, it indicates that the current ambient light is warm, then the value of the matrix parameter a can be 100 in 0 to 512, the value of the matrix parameter b can be 53 in 0 to 256, the value of the matrix parameter c can be 22 in 0 to 128, the value of the matrix parameter d can be 14 in 0 to 64, the matrix parameter e can be 7 in 0 to 32, and the matrix parameter f can be 3 in 0 to 16.

[0067] In some embodiments, when the change in the ambient color temperature parameters obtained by surfaceflinger is greater than a preset threshold, the values ​​of each matrix parameter in the color matrix can be readjusted according to the new ambient color temperature parameters after the change, so that the intensity of the eye protection mode can be dynamically adjusted with the change of ambient light.

[0068] Corresponding to the above display parameter determination method, an embodiment of the present invention provides a terminal device, such as Figure 5 As shown, the terminal device includes: an acquisition module 501, a processing module 502 and an execution module 503.

[0069] The acquisition module 501 is used to obtain the eye protection mode intensity value sent by the application layer.

[0070] The processing module 502 is further configured to generate a corresponding color matrix according to the eye protection mode intensity value.

[0071] The acquisition module 501 is also used to acquire the ambient color temperature parameters collected by the light sensor.

[0072] The processing module 502 is further used to correct the value of the color matrix according to the ambient color temperature parameter to obtain a corrected color matrix.

[0073] The execution module 503 is used to adjust the display parameters of the display screen according to the corrected color matrix.

[0074] In some embodiments, the color matrix includes a plurality of matrix parameters, and the processing module 502 is specifically used to:

[0075] The value range of each matrix parameter in the color matrix is ​​determined according to the eye protection mode intensity value.

[0076] According to the ambient color temperature parameter, the value of each matrix parameter is determined from the value range corresponding to each matrix parameter.

[0077] Figure 5 The terminal device provided in the embodiment shown can be used to execute the present invention Figure 1-Figure 4 The technical solution of the method embodiment shown, its implementation principle and technical effects can be further referred to the relevant description in the method embodiment.

[0078] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention is shown in FIG. Figure 6 As shown, the electronic device may include at least one processor and at least one memory in communication with the processor, wherein the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the instructions of this specification. Figure 1-Figure 4 The illustrated embodiment provides a method for determining display parameters.

[0079] like Figure 6 As shown, the electronic device is in the form of a general computing device. The components of the electronic device may include but are not limited to: one or more processors 610, communication interface 620 and memory 630, and a communication bus 640 connecting different system components (including memory 630, communication interface 620 and processor 610).

[0080] The communication bus 640 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.

[0081] Electronic devices typically include a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, removable and non-removable media.

[0082] The memory 630 may include a computer system readable medium in the form of a volatile memory, such as a random access memory (RAM) and / or a cache memory. The electronic device may further include other removable / non-removable, volatile / non-volatile computer system storage media. The memory 630 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of each embodiment of the present specification.

[0083] A program / utility having a set (at least one) of program modules may be stored in memory 630, such program modules including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules generally perform the functions and / or methods of the embodiments described in this specification.

[0084] The processor 610 executes various functional applications and data processing by running the programs stored in the memory 630, such as implementing the Figure 1-Figure 4 The illustrated embodiment provides a method for determining display parameters.

[0085] The embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, wherein the computer instructions enable the computer to execute the present specification. Figure 1-Figure 4 The illustrated embodiment provides a method for determining display parameters.

[0086] The above-mentioned computer-readable storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ReadOnly Memory; hereinafter referred to as: ROM), an erasable programmable read-only memory (Erasable Programmable ReadOnly Memory; hereinafter referred to as: EPROM) or flash memory, optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0087] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0088] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of this specification. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0089] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this specification, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0090] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of this specification includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of this specification belong.

[0091] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0092] It should be noted that the devices involved in the embodiments of this specification may include but are not limited to personal computers (Personal Computer; hereinafter referred to as: PC), personal digital assistants (Personal Digital Assistant; hereinafter referred to as: PDA), wireless handheld devices, tablet computers (Tablet Computer), mobile phones, MP3 displays, MP4 displays, etc.

[0093] In the several embodiments provided in this specification, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0094] In addition, each functional unit in each embodiment of this specification may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0095] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a connector, or a network device, etc.) or a processor (Processor) to perform some steps of the method described in each embodiment of this specification. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as: ROM), random access memory (Random Access Memory; hereinafter referred to as: RAM), disk or optical disk and other media that can store program codes.

[0096] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.

Claims

1. A method for determining display parameters, characterized in that: The method is applied to the service layer of the terminal device, comprising: Get the eye protection mode intensity value sent by the application layer; Generate a corresponding color matrix according to the eye protection mode intensity value; Get the ambient color temperature parameters collected by the light sensor; Correcting the value of the color matrix according to the ambient color temperature parameter to obtain a corrected color matrix; Adjusting display parameters of the display screen according to the corrected color matrix; The color matrix includes a plurality of matrix parameters, and the value of the color matrix is ​​corrected according to the ambient color temperature parameter, including: Determining a value range of each matrix parameter in the color matrix according to the eye protection mode intensity value; According to the ambient color temperature parameter, respectively determine the values ​​of the matrix parameters from the value ranges corresponding to the matrix parameters; The eye protection mode intensity value is a value in an available value range, the available value range is divided into a plurality of value sub-intervals, each of the value sub-intervals has the same interval size, and a plurality of value sub-intervals with the same interval size constitute a class of value interval sets, and the value range of each matrix parameter in the color matrix is ​​determined according to the eye protection mode intensity value, including: Determining a plurality of corresponding target value sub-intervals from a plurality of value interval sets according to the eye protection mode intensity value, wherein the plurality of value interval sets correspond to the plurality of matrix parameters one by one, and the value sub-intervals included in each value interval set are different in size; Determining value ranges of corresponding multiple matrix parameters according to the multiple target value sub-intervals; Determining the values ​​of each matrix parameter from the value ranges corresponding to each matrix parameter according to the ambient color temperature parameter, including: When the color temperature indicated by the ambient color temperature parameter is biased toward warm colors, the specific values ​​of the matrix parameters are biased toward the larger side of the corresponding value range, and the corresponding eye protection mode intensity is relatively high; When the color temperature indicated by the ambient color temperature parameter tends to be cold, the specific values ​​of the matrix parameters tend to be on the smaller side of the corresponding value range, and the corresponding eye protection mode intensity is low.

2. The method according to claim 1, characterized in that Before generating a corresponding color matrix according to the eye protection mode intensity value, the method further includes: Determining whether the eye protection mode intensity value is within an acceptable value range; If the eye protection mode intensity value is not within the allowable value range, the eye protection mode intensity value is determined to be an invalid value.

3. The method according to claim 1, characterized in that The display parameters at least include the values ​​of each color component in the red, green, blue (RGB) color space, and adjusting the display parameters of the display screen according to the corrected color matrix includes: Determine the value of each color component in the RGB color space according to the modified color matrix; Get the image to be displayed; Performing color conversion on the image to be displayed according to the values ​​of each color component; The image to be displayed after color conversion is displayed.

4. A terminal device, characterized in that: include: An acquisition module is used to obtain the eye protection mode intensity value sent by the application layer; A processing module, used for generating a corresponding color matrix according to the eye protection mode intensity value; The acquisition module is also used to acquire the ambient color temperature parameters collected by the light sensor; The processing module is further used to correct the value of the color matrix according to the ambient color temperature parameter to obtain a corrected color matrix; An execution module, used for adjusting display parameters of a display screen according to the corrected color matrix; The color matrix includes a plurality of matrix parameters, and the processing module is specifically used for: Determining a value range of each matrix parameter in the color matrix according to the eye protection mode intensity value; According to the ambient color temperature parameter, respectively determine the values ​​of the matrix parameters from the value ranges corresponding to the matrix parameters; The eye protection mode intensity value is a value in a possible value range, the possible value range is divided into a plurality of value sub-intervals, each of the value sub-intervals has the same interval size, and a plurality of value sub-intervals with the same interval size constitute a class of value interval sets, and the processing module is specifically used for: Determining a plurality of corresponding target value sub-intervals from a plurality of value interval sets according to the eye protection mode intensity value, wherein the plurality of value interval sets correspond to the plurality of matrix parameters one by one, and the value sub-intervals included in each value interval set are different in size; Determining value ranges of corresponding multiple matrix parameters according to the multiple target value sub-intervals; When the color temperature indicated by the ambient color temperature parameter is biased toward warm colors, the specific values ​​of the matrix parameters are biased toward the larger side of the corresponding value range, and the corresponding eye protection mode intensity is relatively high; When the color temperature indicated by the ambient color temperature parameter tends to be cold, the specific values ​​of the matrix parameters tend to be on the smaller side of the corresponding value range, and the corresponding eye protection mode intensity is low.

5. An electronic device, characterized in that: include: at least one processor; as well as at least one memory in communication with the processor, wherein: The memory stores program instructions executable by the processor, and the processor can execute the method according to any one of claims 1 to 3 by calling the program instructions.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the method according to any one of claims 1 to 3.