Image processing method and device, electronic equipment and storage medium

By detecting and adjusting the display data of overlapping layers in the display screen, the problem of low visibility caused by similar wallpaper colors to the system text colors is solved, and the clarity and visual effect of the display screen are improved.

CN120259093APending Publication Date: 2025-07-04BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410015617.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-04
Publication Date
2025-07-04

AI Technical Summary

Technical Problem

When the user-defined wallpaper colors are similar or the text colors of the mobile phone system, the visibility of the display screen is low and it is difficult for users to distinguish the text content of the system.

Method used

By detecting the overlap of layers in the display screen, determining and adjusting the display data of the overlapping layers, so that the similarity is reduced or the contrast is increased. The specific method includes adjusting the display color and brightness of the layer to improve the color difference or contrast between layers.

Benefits of technology

It improves the subjective visibility and clarity of the display screen, improves the harmony of visual effects, and ensures the clear and visible content of the display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120259093A_ABST
    Figure CN120259093A_ABST
Patent Text Reader

Abstract

The invention relates to an image processing method and device, electronic equipment and a storage medium. The image processing method comprises the steps of judging whether at least two different layers of a display picture are overlapped or not in response to detection of change of the layers in the display picture; when it is determined that at least two different layers are overlapped, according to the display data of the different overlapped layers, whether the display data of the different overlapped layers meet a preset condition is determined, and the preset condition is used for indicating that the similarity of the display data is larger than a similarity threshold value or the contrast ratio of the display data is smaller than a contrast ratio threshold value; if the display data meets the preset condition, adjusting the display data of different overlapped layers; and performing display based on a display picture formed by the adjusted layers, so that the similarity between different overlapped layers is reduced or the contrast ratio is increased. By adjusting the display data of different overlapped layers in the display picture, the visibility of the display picture is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of image processing, and in particular, to an image processing method, an apparatus, an electronic device, and a storage medium. Background Art

[0002] With the rapid development of technology, many electronic devices are equipped with a display function to meet the viewing needs of users. For electronic devices with a display function, customizing themes and wallpapers is a commonly used function on mobile phones.

[0003] However, when the color of the user-customized wallpaper is similar to or the same as the color of the system text on the mobile phone, the user often has difficulty distinguishing the system text content due to the high similarity of colors, the visibility of the display screen is low, and the user experience deteriorates. Summary of the Invention

[0004] To overcome the problems in the related art, the present disclosure provides an image processing method, an apparatus, an electronic device, and a storage medium. The present disclosure effectively improves the visibility of the display screen by adjusting the display data of different overlapping layers in the display screen.

[0005] An embodiment of the present disclosure provides an image processing method, including:

[0006] In response to detecting a change in the layers in the display screen, determining whether there are at least two different overlapping layers in the display screen;

[0007] When it is determined that there are at least two different overlapping layers, determining whether the display data of the different overlapping layers satisfies a preset condition according to the display data of the different overlapping layers, where the preset condition is used to indicate that the similarity of the display data is greater than a similarity threshold or the contrast of the display data is less than a contrast threshold;

[0008] If the display data satisfies the preset condition, adjusting the display data of the different overlapping layers;

[0009] Displaying the display screen formed based on the adjusted layers, so that the similarity between the different overlapping layers is reduced or the contrast between the different overlapping layers is increased.

[0010] In some embodiments, the different overlapping layers include: a first initial layer located at the bottom layer and at least one group of second initial layers; at least one group of the second initial layers are respectively superimposed on the first initial layer;

[0011] The determining whether the display data of the different overlapping layers satisfies a preset condition according to the display data of the different overlapping layers includes:

[0012] Superimpose at least one group of the second initial layers and the first initial layers according to the display colors of the second initial layers and the display colors of the first initial layers to obtain at least one superimposed layer; one group of the second initial layers corresponds to one superimposed layer;

[0013] Based on the difference between the display brightness of at least one of the superimposed layers and the display brightness of the first initial layer, obtain at least one brightness difference; one of the superimposed layers corresponds to one brightness difference;

[0014] Determine whether the at least one brightness difference meets a preset condition.

[0015] In some embodiments, if the display data meets the preset condition, adjusting the display data of different overlapping layers includes:

[0016] When at least one of the brightness differences meets a first preset condition, adjust the display color of the first initial layer;

[0017] When at least one of the brightness differences meets a second preset condition, adjust the display color of at least one of the second initial layers in at least one group of the second initial layers.

[0018] In some embodiments, at least one of the brightness differences includes a first brightness difference corresponding to one group of the second initial layers. When at least one of the brightness differences meets the first preset condition, adjusting the display color of the first initial layer includes:

[0019] When the absolute value of the first brightness difference is less than a first preset brightness threshold and the first brightness difference is greater than zero, adjust the display color of the first initial layer based on the ratio between the absolute value of the first brightness difference and the first preset brightness threshold.

[0020] In some embodiments, at least one of the brightness differences includes multiple second brightness differences corresponding to multiple groups of the second initial layers. When at least one of the brightness differences meets the first preset condition, adjusting the display color of the first initial layer includes:

[0021] When there is a second brightness difference whose absolute value is less than a second preset brightness threshold among the multiple second brightness differences, obtain a first target quantity of the second brightness differences whose absolute values are less than the second preset brightness threshold;

[0022] If the ratio of the number of the second brightness differences that are greater than zero and less than the second preset brightness threshold to the first target number exceeds a first preset ratio, determine a target brightness difference from at least one of the second brightness differences that are greater than zero and less than the second preset brightness threshold;

[0023] Based on the ratio between the absolute value of the target brightness difference and the second preset brightness threshold, adjust the display color of the first initial layer.

[0024] In some embodiments, at least one of the brightness differences includes a third brightness difference corresponding to a set of the second initial layers. When at least one of the brightness differences meets a second preset condition, adjusting the display color of at least one of the second initial layers in at least one set of the second initial layers includes:

[0025] When the absolute value of the third brightness difference is less than a third preset brightness threshold and the third brightness difference is less than or equal to zero, based on the ratio between the absolute value of the third brightness difference and the third preset brightness threshold, adjust the display color of at least one of the second initial layers in a set of the second initial layers.

[0026] In some embodiments, at least one of the brightness differences includes multiple fourth brightness differences corresponding to multiple sets of the second initial layers. When at least one of the brightness differences meets a second preset condition, adjusting the display color of at least one of the second initial layers in at least one set of the second initial layers includes:

[0027] When there is a fourth brightness difference whose absolute value is less than a fourth preset brightness threshold among the multiple fourth brightness differences, obtain a second target number of the fourth brightness differences whose absolute values are less than the fourth preset brightness threshold;

[0028] If the ratio of the number of the fourth brightness differences that are less than or equal to zero among the fourth brightness differences whose absolute values are less than the fourth preset brightness threshold to the second target number exceeds a second preset ratio, obtain at least one target ratio between the absolute value of at least one of the fourth brightness differences that are less than or equal to zero and the fourth preset brightness threshold; one target ratio corresponds to a set of the second initial layers;

[0029] Based on at least one of the target ratios, correspondingly adjust the display colors of at least one set of the second initial layers.

[0030] In some embodiments, a set of the second initial layers includes N second initial layers, where N is an integer greater than 1; adjusting the display color of at least one of the second initial layers in at least one set of the second initial layers includes:

[0031] Perform the following processing on each group of the second initial layers respectively:

[0032] Superimpose the i second initial layers to obtain the i-th superimposed layer; i is an integer greater than 1 and less than or equal to N;

[0033] Determine the i-th brightness difference between the display brightness of the i-th superimposed layer and the display brightness of the i-th second initial layer;

[0034] Based on the i-th brightness difference, determine whether to adjust the i-th second initial layer or the i - 1 second initial layers that make up the (i - 1)-th superimposed layer;

[0035] When it is determined to adjust the i - 1 second initial layers that make up the (i - 1)-th superimposed layer, if i is 2, adjust the first second initial layer; if i is greater than 2, adjust one of the i - 1 second initial layers.

[0036] In some embodiments, the determining whether to adjust the i-th second initial layer or the i - 1 second initial layers that make up the (i - 1)-th superimposed layer based on the i-th brightness difference includes:

[0037] When the i-th brightness difference satisfies the first adjustment condition, adjust the i - 1 second initial layers that make up the (i - 1)-th superimposed layer;

[0038] When the i-th brightness difference satisfies the second adjustment condition, adjust the i-th second initial layer;

[0039] Wherein, the i-th brightness difference satisfying the first adjustment condition includes:

[0040] The absolute value of the i-th brightness difference is greater than or equal to the fifth preset brightness threshold; or,

[0041] The absolute value of the i-th brightness difference is less than the fifth preset brightness threshold, and the i-th brightness difference is less than zero; or,

[0042] The i-th brightness difference is equal to zero, and the number of pixels of the i-th superimposed layer is less than or equal to the number of pixels of the i-th second initial layer;

[0043] The i-th brightness difference satisfying the second adjustment condition includes:

[0044] The absolute value of the i-th brightness difference is less than the fifth preset brightness threshold, and the i-th brightness difference is greater than zero; or,

[0045] The i-th brightness difference is equal to zero, and the number of pixels of the i-th superimposed layer is greater than the number of pixels of the i-th second initial layer.

[0046] An embodiment of the present disclosure also provides an image processing apparatus, including:

[0047] A judgment module, configured to judge whether there are at least two different layers overlapping in the display screen in response to detecting a change in the layer in the display screen;

[0048] A determination module, configured to determine whether the display data of the different overlapping layers meets a preset condition according to the display data of the different overlapping layers when it is determined that there are at least two different layers overlapping, where the preset condition is used to indicate that the similarity of the display data is greater than a similarity threshold or the contrast of the display data is less than a contrast threshold;

[0049] An adjustment module, configured to adjust the display data of the different overlapping layers if the display data meets the preset condition;

[0050] A display module, configured to display the display screen formed by the adjusted layers, so as to reduce the similarity between the different overlapping layers or increase the contrast between the different overlapping layers.

[0051] An embodiment of the present disclosure also provides an electronic device, including:

[0052] A processor;

[0053] A memory for storing instructions executable by the processor;

[0054] Wherein, the processor is configured to execute the image processing method proposed in the above embodiment of the present disclosure.

[0055] An embodiment of the present disclosure also provides a non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enabling the electronic device to execute the image processing method proposed in the above embodiment of the present disclosure.

[0056] The technical solution provided by the embodiment of the present disclosure may include the following beneficial effects:

[0057] The image processing method proposed in the embodiments of the present disclosure can determine whether there are overlapping different layers in the display screen, and analyze the display data of the overlapping different layers; when the display data meets the preset conditions, adjust the display data of the different layers that overlap; thus, the present disclosure can change the color difference or contrast between different layers with an overlapping relationship by adjusting the display data of the overlapping different layers, and when the color similarity is too high or the contrast is too low between the overlapping layers, affecting the clarity of the display screen, increase the color difference or contrast between different layers to improve the subjective visibility of the display screen, thereby improving the clarity and visual effect harmony of the display screen.

[0058] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.

[0060] Figure 1 is a flowchart showing an image processing method according to an exemplary embodiment;

[0061] Figure 2 is an interface diagram of a display screen according to an exemplary embodiment Figure 1 ;

[0062] Figure 3 is an interface diagram of a display screen according to an exemplary embodiment Figure 2 ;

[0063] Figure 4 is a schematic structural diagram of an image processing device according to an exemplary embodiment;

[0064] Figure 5 is a structural block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0065] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0066] Figure 1 is a flowchart showing an image processing method according to an exemplary embodiment; asFigure 1 As shown, an image processing method proposed by the present disclosure can be implemented through the following steps:

[0067] Step S101: In response to detecting a change in the layers in the display screen, determine whether there are at least two different overlapping layers in the display screen;

[0068] Step S102: When it is determined that there are at least two different overlapping layers, determine whether the display data of the different overlapping layers meets a preset condition according to the display data of the overlapping different layers;

[0069] The preset condition is used to indicate that the similarity of the display data is greater than the similarity threshold or the contrast of the display data is less than the contrast threshold;

[0070] Step S103: If the display data meets the preset condition, adjust the display data of the different overlapping layers;

[0071] Step S104: Display the display screen formed based on the adjusted layers, so as to reduce the similarity between the different overlapping layers or increase the contrast between the different overlapping layers.

[0072] Here, the image processing method proposed by the present disclosure is applied to an electronic device with a display function and is applied to the scenario of displaying a picture on the display screen of the electronic device. Here, when there is a change in the layers in the display screen, there is a situation where different layers in the display screen overlap. The present disclosure processes at least two different overlapping layers to determine whether it is necessary to adjust the display data of the different overlapping layers; in this way, when color adjustment is required for the different overlapping layers, the color similarity between the different overlapping layers can be reduced or the contrast between the different layers can be increased by adjusting the display data, thereby improving the subjective visibility of the display screen.

[0073] In the present disclosure, the electronic device to which the above image processing method is applied can be a fixed terminal, a mobile terminal or a portable electronic device. The mobile terminal includes but is not limited to mobile phones, tablet computers, etc.; the fixed terminal includes but is not limited to vehicle-mounted terminals, televisions, etc.; the portable electronic device includes but is not limited to smart watches, etc. The embodiments of the present disclosure do not further limit this.

[0074] In step S101, in the embodiments of the present disclosure, the electronic device may detect whether the layers in the display screen have changed; here, detecting that the layers have changed can be determined by the following detection results; for example, it is detected that a new pop-up window layer appears in the display screen, where the pop-up window layer may be a message layer, a notification bar layer, or a bullet screen layer, etc.; for another example, it is detected that at least one layer in the display screen is replaced or added; exemplarily, it is detected that the user performs an operation to replace the wallpaper layer, or it is detected that at least one plug-in component is downloaded, such as detecting a download event for the time plug-in corresponding to the time layer. When the image processing component of the electronic device determines that the layers in the display screen have changed based on the above detection results, it acquires the layers forming the display screen and determines whether there are at least two different layers overlapping in the display screen.

[0075] Here, the image processing component of the electronic device acquires the original layers forming the display screen. Here, the display content of the original layers is adapted to the screen resolution. Exemplarily, when the screen resolution of the electronic device display screen is 1088x2400 and there is a full-screen wallpaper layer, the image size of the wallpaper layer is 1088x2400.

[0076] Here, different other original layers may be overlapped and distributed on the wallpaper layer. Refer to Figure 2 , Figure 2 is an interface schematic diagram of a display screen shown according to an exemplary embodiment Figure 1 ; as Figure 2 shown, there is a wallpaper layer 201 in the display screen, and a time layer 202, a status bar layer 203, a notification bar layer 204, a fingerprint recognition layer 205, and a quick function layer 206 are superimposed on the wallpaper layer 201.

[0077] In the embodiments of the present disclosure, the overlapping different layers may also be a subtitle layer or a bullet screen layer superimposed on a video screen.

[0078] In the present disclosure, when determining whether there are at least two different layers overlapping in the display screen, it may analyze the original layers adapted to the screen resolution; it may also analyze the scaled layers obtained by further scaling all the original layers forming the display screen. Here, after acquiring multiple original layers, all the acquired original layers are synchronously scaled based on parameters such as the position, pixel number, and size of the original layers. In the present disclosure, the image scaling algorithm may be used to scale all the original layers, such as an interpolation algorithm, a subsampling algorithm, or a bilinear interpolation algorithm, etc., and the present disclosure does not limit this.

[0079] In some examples, the present disclosure reduces the length and width of all the original layers by half respectively to obtain the scaled layers. Combining the above, the size of the initial layer after scaling the wallpaper layer is 544x1200.

[0080] In the embodiments of the present disclosure, based on the scaled layers, it is determined whether there are at least two overlapping layers, so that in steps S102 and S103, when it is determined that there are at least two different overlapping layers, it is analyzed whether to adjust the display data of the layers.

[0081] In the embodiments of the present disclosure, when two layers (which can be the scaled layers or the original layers) satisfy the following superimposed relationship, it can be determined that there are overlapping different layers. The satisfaction of the overlapping relationship is manifested as: one layer is completely stacked on top of another layer; or, one layer completely covers another layer; or, one layer partially overlaps with another layer.

[0082] Here, the present disclosure obtains the positions and sizes of multiple layers (which can be the scaled layers or the original layers); the position of the layer includes the position of the layer contour, the coordinate data of each pixel point in the layer, etc.; whether there are overlapping different layers can be determined through the position and size of the layer; exemplarily, when all the pixel points of one layer are aligned with the pixel points of another layer, and the contour range and size of the upper layer are smaller than the contour range and size of the lower layer, it can be determined that one layer is completely stacked on top of another layer, that is, there is an overlap between two different layers.

[0083] In the present disclosure, if there are at least two different layers that satisfy the overlapping relationship, further judgment is made on the at least two overlapping different layers; if there are no at least two layers that satisfy the overlapping relationship, that is, the obtained multiple different layers are distributed at intervals, no processing is performed. Exemplarily, if two different layers corresponding to the above wallpaper layers for split-screen display are obtained; there is no overlap between the two different layers, and no further processing and subsequent color adjustment are performed at this time.

[0084] In step S102, based on the display data of the overlapping different layers, it is determined whether the display data of the overlapping different layers satisfies a preset condition. The preset condition is used to indicate that the similarity of the display data is greater than the similarity threshold or the contrast of the display data is less than the contrast threshold.

[0085] In the present disclosure, the display data may include display color, display brightness, display area, etc. Here, the similarity may include color similarity; thus, the present disclosure can determine whether the color similarity corresponding to the display color between different overlapping layers meets a preset condition based on the display color and display area of different layers; the contrast may include brightness contrast, so the present disclosure can determine the display brightness through the display color of different layers, and then determine whether the brightness contrast between different layers meets the preset condition based on the display brightness.

[0086] In the present disclosure, the display brightness difference between the display brightnesses of different layers can be used as the brightness contrast. When the brightness contrast is less than the contrast threshold, it can be determined that the brightness difference between the compared layers is insufficient, so there is a problem that the layers cannot be clearly seen; thus, it meets the preset conditions for adjusting the display data; the display color difference between the display colors of different layers can be used as the color similarity. When the color similarity is less than the similarity threshold, it can be determined that the color differences between the compared layers are similar, so there is a problem of color confusion between the layers; thus, it meets the preset conditions for adjusting the display data.

[0087] Here, taking the display color as an example, the RGB values of multiple pixels of different overlapping layers are obtained, and the average value of each of the multiple pixel points in the red channel (R channel), green channel (G channel), and blue channel (B channel) is determined; for different layers, when the difference between the average values corresponding to at least one channel is less than the preset color difference, it is determined that the color similarity of the display colors of different said layers is greater than the similarity threshold.

[0088] In step S103, when the display brightness meets the preset condition, the adjustment data is determined based on the relationship between the contrast and the contrast threshold. After adjusting the display brightness or display color of the layer according to the adjustment data, the contrast between different overlapping layers is increased.

[0089] When the display color meets the preset condition, since the display brightness can be obtained by calculating the brightness component from the display color, the adjustment data can be determined based on the relationship between the contrast and the contrast threshold, or directly determined based on the relationship between the color similarity and the similarity threshold. Then, the display color in the display data of the layer is adjusted according to the adjustment data, so that the color similarity between different overlapping layers is reduced.

[0090] Exemplarily, when the display brightness meets the preset condition, the display colors of at least two different overlapping layers are adjusted. Specifically:

[0091] When the display brightness of the lower layer reaches the maximum value, obtain a first brightness adjustment value for reducing the display brightness of the upper layer; adjust the display color of the upper layer according to the first brightness adjustment value, so that the adjusted upper layer is darker than the lower layer, so the brightness contrast between the layers is higher and the color similarity is lower;

[0092] When the display brightness of the upper layer reaches the maximum value, obtain a second brightness adjustment value for reducing the display brightness of the lower layer; adjust the display color of the lower layer according to the second brightness adjustment value, so that the adjusted lower layer is darker than the upper layer, so the brightness contrast between the layers is higher and the color similarity is lower.

[0093] When the initial display brightness of the lower layer and the display brightness of the upper layer neither reach the maximum value or both reach the maximum value, determine a third brightness adjustment value; here, the display color of the layer corresponding to the lower brightness can be adjusted according to the third brightness adjustment value to make its displayed brightness lower; and / or, adjust the display color of the layer corresponding to the higher brightness according to the third brightness adjustment value to make its displayed brightness higher; in this way, the brightness contrast between the adjusted lower layer and the upper layer is higher, so the color similarity is lower. In the embodiments of the present disclosure, when comparing the layer brightness of different layers, the influence brought by layer overlap can be taken into account. Therefore, the overlapping layers are superimposed to obtain a superimposed layer after superimposition, and then whether the brightness contrast between the display brightness of the superimposed layer and the layer brightness of the lower layer meets the contrast threshold is compared. In this way, the contrast difference between the overlapping layers can be more vividly reflected. That is, in the above steps, when comparing the display brightness of the upper layer and the display brightness of the lower layer, the display brightness of the upper layer can be replaced by the display brightness of the superimposed layer after the upper layer and the lower layer are superimposed for discussion. Moreover, when determining to adjust the upper layer, the first brightness adjustment value or the third brightness adjustment value for adjusting the superimposed layer can be further processed, and the display color of the upper layer is adjusted based on the processed result.

[0094] In step S104, after the image processing component adjusts the display data of at least one layer in the overlapping layers, layer composition is performed according to the position, size, display data, etc. of the adjusted layers to obtain an updated display screen, and the updated display screen is transmitted to the display screen for display.

[0095] It should be noted that when the adjusted layer is a scaled layer of the original layer, the present disclosure can magnify each adjusted layer by the same ratio and then perform layer composition to obtain the above display screen.

[0096] The image processing method proposed in the embodiments of the present disclosure can determine whether there are overlapping different layers in the display screen and analyze the display data of the overlapping different layers; when the display data meets the preset conditions, adjust the display data of the overlapping different layers; thus, the present disclosure can change the color difference or contrast between the overlapping different layers by adjusting the display data of the overlapping different layers, and when the clarity of the display screen is affected due to too high color similarity or too low contrast between the overlapping different layers, improve the subjective visibility of the display screen by increasing the color difference or contrast between the different layers, thereby improving the clarity and visual effect harmony of the display screen. In some embodiments, the overlapping different layers include: a first initial layer located at the bottom layer and at least one group of second initial layers; at least one group of second initial layers are respectively superimposed on the first initial layer;

[0097] Determining whether the display data of the overlapping different layers meets the preset conditions according to the display data of the overlapping different layers includes:

[0098] According to the display color of the second initial layer and the display color of the first initial layer, perform a superimposing process on at least one group of second initial layers and the first initial layer to obtain at least one superimposed layer; one group of second initial layers corresponds to one superimposed layer;

[0099] Based on the difference between the display brightness of at least one superimposed layer and the display brightness of the first initial layer, obtain at least one brightness difference; one superimposed layer corresponds to one brightness difference;

[0100] Judge whether at least one brightness difference meets the preset conditions.

[0101] It should be noted that when there are multiple groups in the at least one group of second initial layers proposed in the present disclosure, there is no superimposition between the second initial layers in different groups; here, one group of second initial layers includes one second initial layer or multiple second initial layers; when one group of second initial layers includes multiple second initial layers, from top to bottom, each second initial layer is completely stacked on the next second initial layer; or, each second initial layer completely covers the next second initial layer.

[0102] In the present disclosure, performing a superimposing process on at least one group of second initial layers and the first initial layer to obtain at least one superimposed layer can be implemented through the following steps:

[0103] Perform the following processing on each group of second initial layers:

[0104] When one group of second initial layers includes one second initial layer, superimpose the second initial layer and the first initial layer to obtain a superimposed layer;

[0105] When a set of second initial layers includes multiple second initial layers, the multiple second initial layers are stacked and processed in sequence from top to bottom. After stacking to the bottommost second initial layer in a set of second initial layers, it is then stacked and processed with the first initial layer to obtain a stacked layer.

[0106] Here, taking a set of second initial layers including one second initial layer as an example, the specific method of the stacking process proposed in this disclosure is described. Specifically:

[0107] Obtain the display color of the second initial layer (such as the RGBA data of multiple pixels in it); specifically, the RGBA data of multiple pixels in the second initial layer includes R1, G1, B1, and A1; here, R1, G1, B1 respectively represent the red channel color value, green channel color value, and blue channel color value of the second initial layer; the A1 value corresponds to the color space of the second initial layer, and this color space reflects the overall transparency of the second initial layer.

[0108] Obtain the display color of the first initial layer (such as the RGBA data of multiple pixels in it); specifically, the RGBA data of multiple pixels in the first initial layer includes R2, G2, B2, and A2 values; here, R2, G2, B2 respectively represent the red channel color value, green channel color value, and blue channel color value of the first initial layer; the A2 value corresponds to the color space of the first initial layer, and this color space reflects the overall transparency of the first initial layer.

[0109] Based on the obtained RGBA data of multiple pixels of the first initial layer and the second initial layer, a stacked layer is obtained.

[0110] In the embodiments of this disclosure, based on the obtained RGBA data of multiple pixels of the first initial layer and the second initial layer, obtaining a stacked layer includes:

[0111] Here, determine the RGB data of the stacked layer according to the following formula (1):

[0112]

[0113] Here, R 10 、G 10 、B 10 、are the RGB data of the stacked layer respectively.

[0114] It should be noted that for the stacking process of multiple second initial layers in this disclosure, the topmost second initial layer is stacked with a second initial layer located in the next layer below it respectively, and the processing as in the above formula (1) is performed to obtain an intermediate stacked layer; then based on the stacked intermediate stacked layer, the processing as in the above formula (1) is performed with a second initial layer in the next layer until the stacking process of all layers is completed.

[0115] In the embodiments of the present disclosure, after obtaining the RGB data of the superimposed layer corresponding to each group of second initial layers, the display brightness of multiple superimposed layers is determined respectively. To determine the display brightness of the superimposed layer, the brightness component of each pixel can be determined according to the above RGB data of the superimposed layer; based on the brightness components of multiple pixel points of the superimposed layer and the number of multiple pixel points, the average brightness value of the superimposed layer is determined, and the average brightness value is used as the display brightness of the superimposed layer.

[0116] Combined with the above example, taking a group of second initial layers including one second initial layer as an example, determine the RGB data R of the superimposed layer 10 、G 10 、B 10 After that, the display brightness of the superimposed layer is determined according to the following formulas (2) and (3).

[0117] Y 10 =0.3·R 10 +0.6·G 10 +0.1·B 10 (2)

[0118]

[0119] Here, Y 10 is the brightness component of a pixel in the superimposed layer; Y 10.i is the pixel component of the i-th pixel in the superimposed layer; n is the pixel data of the pixel points in the superimposed layer; Y a is the display brightness of the superimposed layer.

[0120] In the embodiments of the present disclosure, when determining the display brightness of the first initial layer, first convert the display color (such as RGBA data) of the first initial layer into RGB data; then determine the brightness component of each pixel based on the RGB data of the first initial layer; based on the brightness components of multiple pixel points of the first initial layer and the number of multiple pixel points, determine the average brightness value of the first initial layer, and use the average brightness value as the display brightness of the first initial layer.

[0121] Combined with the above example, the RGB data R of the first initial layer 20 、G 20 、B 20 can be determined according to the following formula (4). According to the RGB data R of the first initial layer 20 、G 20 、B 20 , the display brightness of the first initial layer is determined by the following formulas (5) and (6).

[0122]

[0123] Y 20 = 0.3·R 20 + 0.6·G 20 + 0.1·B 20 (5)

[0124]

[0125] Here, Y 20 is the luminance component of a pixel in the first initial layer; Y 20.i is the pixel component of the i-th pixel in the first initial layer; m is the pixel data of the pixel points in the first initial layer; Y b is the display luminance of the first initial layer.

[0126] In the present disclosure, for each superimposed layer, the difference in display luminance between each superimposed layer and the first initial layer can be determined to obtain at least one luminance difference; here, one superimposed layer corresponds to one luminance difference.

[0127] Combined with the above example, the luminance difference △Y can be obtained through the following formula (7).

[0128] △Y = Y a - Y b (7)

[0129] It should be noted that each of the above luminance differences reflects the luminance contrast between the superimposed layer corresponding to a set of second initial layers and the first initial layer located at the bottom layer. Correspondingly, the contrast threshold can be the threshold corresponding to the luminance value. When the above luminance difference meets the preset condition, the display data of one of the overlapping layers (such as a first initial layer or a second initial layer) can be adjusted.

[0130] In the embodiments of the present disclosure, the display luminance of the superimposed layer and the display luminance of the first initial layer located at the bottom layer can be compared to obtain at least one luminance difference corresponding to at least one set of second initial layers. The luminance difference reflects the luminance difference between each set of second initial layers and the first initial layer at the bottom layer. Since the luminance component is obtained through the display color, the luminance difference can effectively reflect the color difference between different overlapping layers, and thus can effectively and reasonably adjust the display colors of different overlapping layers.

[0131] In some embodiments, if the display data meets the preset condition, adjusting the display data of different overlapping layers includes:

[0132] When at least one luminance difference meets the first preset condition, adjusting the display color of the first initial layer;

[0133] When at least one brightness difference satisfies a second preset condition, adjust the display color of at least one second initial layer in at least one group of second initial layers.

[0134] Here, the contrast thresholds corresponding to the first preset condition and the second preset condition can be distinguished by the brightness range; for example, when at least one brightness difference falls within the first brightness range, adjust the display color of the first initial layer; when at least one brightness difference falls within the second brightness range, adjust the display color of at least one second initial layer in at least one group of second initial layers.

[0135] In the present disclosure, different adjustment values can be determined according to different brightness ranges (such as the above-mentioned first brightness range and second brightness range), and the adjustment method for different initial layers can be determined according to different adjustment values.

[0136] Here, when the brightness difference satisfies different conditions, at least one group of second initial layers can be adjusted, or the display color of the first initial layer can be adjusted to ensure the rationality of color adjustment and further improve the visibility of the finally formed display screen.

[0137] In some embodiments, at least one brightness difference includes a first brightness difference corresponding to a group of second initial layers. When at least one brightness difference satisfies the first preset condition, adjusting the display color of the first initial layer includes:

[0138] When the absolute value of the first brightness difference is less than the first preset brightness threshold and the first brightness difference is greater than zero, adjust the display color of the first initial layer based on the ratio between the absolute value of the first brightness difference and the first preset brightness threshold.

[0139] In the present disclosure, the first preset brightness threshold is an example of the contrast threshold described above, and is used to measure the difference in display brightness between the superimposed layer corresponding to a group of second initial layers and the display brightness of the first initial layer located at the bottom layer; when the absolute value of the first brightness difference is greater than or equal to the first preset brightness threshold, it indicates that the brightness difference between the superimposed layer and the first initial layer is large. Since the brightness component is obtained through the display color, the overall color of the group of second initial layers forming the superimposed layer has a low color similarity with the overall color of the first initial layer. Therefore, at this time, the first brightness difference does not satisfy the preset condition, and the display color of the initial layer is not adjusted; when the absolute value of the first brightness difference is less than the first preset brightness threshold, it indicates that the brightness difference between the superimposed layer and the first initial layer is small, that is, the overall color of the group of second initial layers forming the superimposed layer has a high color similarity with the overall color of the first initial layer. Therefore, the brightness difference satisfies the preset condition, and the display color of the initial layer needs to be adjusted. For example, the first preset brightness threshold can be 125.

[0140] In the embodiments of the present disclosure, the brightness of the initial layer with a smaller overall brightness can be adjusted to be even smaller, so as to increase the contrast between different overlapping layers. Here, when the first brightness difference is greater than zero, it can be determined that the brightness of the superimposed layer corresponding to a set of second initial layers is greater. Therefore, the display color of the first initial layer located at the bottom layer should be adjusted.

[0141] In the present disclosure, when the absolute value of the first brightness difference is less than the first preset brightness threshold and the first brightness difference is greater than zero, the first adjustment coefficient for reducing the brightness component of each pixel point of the first initial layer can be determined according to the ratio between the absolute value of the first brightness difference and the second preset brightness threshold; and the adjusted display color of the first initial layer can be determined according to the first adjustment coefficient.

[0142] Exemplarily, in combination with the above examples of the present disclosure, when the first brightness difference △Y is greater than zero, that is, Y a is greater than Y b , |△Y| / Y th is used as the first adjustment coefficient; here, Y th is the first preset brightness threshold.

[0143] In the present disclosure, first, based on the first adjustment coefficient, the adjustment of the display brightness of the first initial layer is determined to obtain the display brightness to be adjusted; according to the display brightness to be adjusted, the RGB data of the adjusted first initial layer is determined; the RGB data is converted to obtain the converted RGBA data, that is, the adjusted display color of the first initial layer is determined.

[0144] In combination with the above examples, the following formula (8) is obtained through formulas (4) to (7); and the RGBA data R 21 G 21 、B 21 and A 21 of the adjusted first initial layer are obtained according to formula (8).

[0145]

[0146] Here, in the embodiments of the present disclosure, when the brightness difference meets the first preset condition, the display color of the first initial layer can be reasonably adjusted, the color visibility between the first initial layer and the second initial layer can be improved, and the visual effect harmony of the display screen can be improved.

[0147] In some embodiments, at least one brightness difference includes a third brightness difference corresponding to a set of second initial layers. When at least one brightness difference meets the second preset condition, adjusting the display color of at least one second initial layer in at least one set of second initial layers includes:

[0148] When the absolute value of the third brightness difference is less than the third preset brightness threshold and the third brightness difference is less than zero or equal to zero, the display color of at least one second initial layer in a group of second initial layers is adjusted based on the ratio between the absolute value of the third brightness difference and the third preset brightness threshold.

[0149] In the embodiment of the present disclosure, the third preset brightness threshold is an example of the contrast threshold described above in the present disclosure, and is used to measure the difference between the display brightness of the overlay layer corresponding to a group of second initial layers and the display brightness of the first initial layer located at the bottom layer. The third preset brightness threshold and the above-mentioned first preset brightness threshold are both preset, and the third preset brightness threshold and the first preset brightness threshold have the same value; illustratively, the third preset brightness threshold can be 125. Here, the third brightness difference and the above-mentioned first brightness difference are both the brightness difference between the display brightness of the overlay layer corresponding to a group of second initial layers and the display brightness of the first initial layer.

[0150] In the disclosed embodiment, the contrast between different overlapping layers can be increased by adjusting the brightness of the initial layer with smaller overall brightness to be smaller; here, when the third brightness difference is less than zero, it can be determined that the brightness of the first initial layer is larger, so the display color of a group of second initial layers should be adjusted. In the disclosed embodiment, when the third brightness difference is equal to zero, since the size of the first initial layer of the bottom layer is generally relatively large and the number of pixels is relatively large, the display color of at least one second initial layer of a group of second initial layers can be adjusted.

[0151] Here, in combination with the above disclosure, taking a group of second initial layers including only one second initial layer as an example, when the first brightness difference △Y is less than or equal to zero, that is, Y a Less than or equal to Y b When the absolute value of the third brightness difference △Y and the third preset brightness threshold Y th The ratio between |△Y| / Y th as the second adjustment factor.

[0152] In the disclosed embodiment, the adjustment of the display brightness of the second initial layer is first determined based on the second adjustment coefficient to obtain the display brightness to be adjusted; according to the display brightness to be adjusted, the RGB data of the adjusted second initial layer is determined; the RGB data is converted to obtain the converted RGBA data, that is, the display color of the second initial layer after adjustment is obtained.

[0153] The following formula (9) is obtained by using the above formula (1) and formula (2). The present disclosure can use the following formula (9) to obtain the adjusted second initial layer RGBA data R 11 G 11 , B 11and A 11 。

[0154]

[0155] When there are multiple second initial layers included in a group of second initial layers, the display colors of all the second initial layers in the group of second initial layers can be adjusted; alternatively, each second initial layer can be judged from bottom to top to determine one second initial layer that needs to be adjusted.

[0156] Here, judging each second initial layer from bottom to top to determine one second initial layer that needs to be adjusted includes: judging the number of pixels of each second initial layer from bottom to top; selecting one second initial layer with the smallest number of pixels for color adjustment; or judging from top to bottom which second initial layer has the smallest brightness difference from the first initial layer, and adjusting the display color of the second initial layer corresponding to the smallest brightness difference.

[0157] In the present disclosure, when adjusting one or more of the multiple second initial layers, the R value, B value, and G value in the initial RGBA data of each pixel can be multiplied by the second adjustment coefficient or the target adjustment coefficient respectively to obtain the R value, B value, and G value in the adjusted RGBA data; here, the target adjustment coefficient can be preset, such as 1 / 2 or 1 / 3. Exemplarily, when the above third brightness difference is equal to zero, the RGBA data of each pixel in the second initial layer can be adjusted using the target adjustment coefficient.

[0158] Here, the embodiments of the present disclosure can reasonably adjust the display colors of at least one second initial layer when the brightness difference meets the second preset condition, improve the color visibility between the first initial layer and the second initial layer, and improve the visual effect harmony of the display screen.

[0159] In some embodiments, at least one brightness difference includes multiple second brightness differences corresponding to multiple groups of second initial layers. When at least one brightness difference meets the first preset condition, adjusting the display color of the first initial layer includes:

[0160] When there is a second brightness difference whose absolute value is less than the second preset brightness threshold among the multiple second brightness differences, obtaining the first target quantity of the second brightness differences whose absolute values are less than the second preset brightness threshold;

[0161] If the ratio of the number of second brightness differences greater than zero and less than the second preset brightness threshold to the first target quantity exceeds the first preset ratio, determining the target brightness difference from at least one second brightness difference greater than zero and less than the second preset brightness threshold;

[0162] Adjust the display color of the first initial layer based on the ratio between the absolute value of the target brightness difference and the second preset brightness threshold.

[0163] In the embodiments of the present disclosure, the second preset brightness threshold is an example of the contrast threshold described above in the present disclosure, and is used to measure the difference in display brightness between the superimposed layer corresponding to a group of second initial layers and the display brightness of the first initial layer located at the bottom layer. Both the second preset brightness threshold and the above-mentioned first preset brightness threshold are preset, and the numerical values of the second preset brightness threshold and the first preset brightness threshold are the same; exemplarily, the second preset brightness threshold may be 125.

[0164] Here, the second brightness difference is the brightness difference between the display brightness of the superimposed layer corresponding to each group in multiple groups of second initial layers and the display brightness of the first initial layer. Among the multiple second brightness differences, if all the second brightness differences are greater than the second preset brightness threshold, it means that the brightness difference between each superimposed layer and the first initial layer is large. Since the brightness component is obtained through the display color, the overall color similarity between the overall color of each group of second initial layers forming multiple superimposed layers and the overall color of the first initial layer is very low. Therefore, at this time, the second brightness difference does not meet the preset condition, and the display color of the initial layer is not adjusted. When the absolute value of at least one second brightness difference is less than the second preset brightness threshold, it means that the brightness difference between at least one superimposed layer and the first initial layer is small, that is, the overall color of a group of second initial layers forming the superimposed layer is highly similar to the overall color of the first initial layer. Therefore, the brightness difference meets the preset condition, and the display color of the initial layer needs to be adjusted.

[0165] Here, in the case where there is a second brightness difference whose absolute value is less than the second preset brightness threshold among the multiple second brightness differences, obtain the first target number T0 of the second brightness differences whose absolute values are less than the second preset brightness threshold; if the ratio of the number T1 of the second brightness differences greater than zero and less than the second preset brightness threshold to the first target number T0 exceeds the first preset ratio, determine the target brightness difference from at least one second brightness difference greater than zero and less than the second preset brightness threshold.

[0166] Here, the first preset ratio is used to reflect the difference between the number of second luminance values greater than zero and the number of second luminance values less than or equal to zero among the second luminance differences whose absolute values are less than the second preset luminance threshold; here, the first preset ratio is preset. Optionally, the first preset ratio is 1 / 2. When the number of second luminance differences greater than zero exceeds the first preset ratio, the display color of the first initial layer with relatively lower luminance is selected for adjustment. Here, in order to increase the adjusted luminance difference or reduce the color similarity, therefore, the present disclosure determines the smallest second luminance difference among at least one second luminance difference greater than zero and less than the second preset luminance threshold as the target luminance difference;

[0167] Here, the present disclosure determines a third adjustment coefficient for reducing the luminance component of each pixel point of the first initial layer based on the ratio between the absolute value of the target luminance difference and the second preset luminance threshold; and determines the adjustment of the display luminance of the first initial layer based on the third adjustment coefficient to obtain the display luminance to be adjusted; according to the display luminance to be adjusted, determines the RGB data of the adjusted first initial layer; performs conversion on the RGB data to obtain the converted RGBA data, that is, obtains the display color of the adjusted first initial layer.

[0168] Here, the third adjustment coefficient can also be Here, Y th is the second preset luminance threshold. The embodiments of the present disclosure can obtain the converted RGBA data R 21 G 21 、B 21 and A 21 .

[0169] Here, the embodiments of the present disclosure can reasonably adjust the display color of the first initial layer when the luminance difference satisfies the first preset condition, improve the color visibility between the first initial layer and the second initial layer, and improve the visual effect harmony of the display screen.

[0170] In some embodiments, at least one luminance difference includes multiple fourth luminance differences corresponding to multiple second initial layers. When at least one luminance difference satisfies the second preset condition, adjusting the display color of at least one second initial layer in at least one group of second initial layers includes:

[0171] When there is a fourth luminance difference whose absolute value is less than the fourth preset luminance threshold among the multiple fourth luminance differences, obtain the second target number of fourth luminance differences whose absolute values are less than the fourth preset luminance threshold;

[0172] If the ratio of the number of fourth luminance differences that are less than or equal to zero among the fourth luminance differences whose absolute values are less than the fourth preset luminance threshold to the second target number exceeds the second preset ratio, then obtain at least one target ratio between the absolute value of at least one fourth luminance difference that is less than or equal to zero and the fourth preset luminance threshold; one target ratio corresponds to a group of second initial layers.

[0173] Based on at least one target ratio, correspondingly adjust the display colors of at least one group of second initial layers.

[0174] In the embodiments of the present disclosure, the fourth preset luminance threshold is an example of the contrast threshold described above in the present disclosure, and is used to measure the difference in display luminance between the superimposed layer corresponding to a group of second initial layers and the display luminance of the first initial layer located at the bottom layer. Both the fourth preset luminance threshold and the above-mentioned third preset luminance threshold are preset, and the numerical values of the fourth preset luminance threshold and the third preset luminance threshold are the same. Exemplarily, the fourth preset luminance threshold may be 125.

[0175] Here, both the fourth luminance difference and the above-mentioned second luminance difference are the luminance differences between the display luminance of the superimposed layer corresponding to each group in multiple groups of second initial layers and the display luminance of the first initial layer. Among multiple fourth luminance differences, if all fourth luminance differences are greater than the second preset luminance threshold, it indicates that the luminance difference between each superimposed layer and the first initial layer is large. Since the luminance component is obtained through the display color, the overall color of each group of second initial layers forming multiple superimposed layers has a very low color similarity with the overall color of the first initial layer. Therefore, at this time, the fourth luminance difference does not meet the preset conditions, and the display colors of the initial layers are not adjusted. When the absolute value of at least one fourth luminance difference is less than the fourth preset luminance threshold, it indicates that the luminance difference between at least one superimposed layer and the first initial layer is small, that is, the difference between the overall color of a group of second initial layers forming the superimposed layer and the overall color of the first initial layer is very small. Therefore, the fourth luminance difference meets the preset conditions, and the display colors of the initial layers need to be adjusted.

[0176] Here, in the case where there are fourth luminance differences with absolute values less than the fourth preset luminance threshold among multiple fourth luminance differences, obtain the second target number T2 of the fourth luminance differences with absolute values less than the fourth preset luminance threshold; if the ratio of the number T3 of fourth luminance differences that are less than or equal to zero among the fourth luminance differences less than the fourth preset luminance threshold to the second target number T2 exceeds the second preset ratio, then obtain at least one target ratio between the absolute value of at least one fourth luminance difference that is less than or equal to zero and the fourth preset luminance threshold.

[0177] Here, the second preset ratio is used to reflect the difference between the number of fourth luminance values that are less than or equal to zero and the number of fourth luminance values that are greater than zero among the fourth luminance differences whose absolute values are less than the fourth preset luminance threshold; here, the second preset ratio is preset, and optionally, the second preset ratio is 1 / 2. When the number of fourth luminance differences that are less than or equal to zero exceeds the second preset ratio, color adjustment is selected for those groups of second initial layers with relatively lower luminance.

[0178] Here, the present disclosure takes each target ratio as the fourth adjustment coefficient for reducing the luminance component of each pixel point of the corresponding group of second initial layers; and based on each fourth adjustment coefficient, the RGBA data of the corresponding group of second initial layers is adjusted respectively.

[0179] Here, in combination with the above text of the present disclosure, taking the example that a group of second initial layers includes only one second initial layer, the adjusted second initial layer RGBA data R can be obtained by using the above formula (9). 11 G 11 、B 11 and A 11 . At this time, △Y in the formula is the fourth luminance difference, and |△Y| / Y th is used as the fourth adjustment coefficient.

[0180] When a group of second initial layers includes multiple second initial layers, color adjustment can be performed on all the second initial layers of a group of second initial layers; it can also be to judge each second initial layer from bottom to top respectively to determine a second initial layer that needs to be adjusted.

[0181] In the present disclosure, when adjusting one or more of the multiple second initial layers, the R value, B value, and G value in the initial RGBA data of each pixel point can be multiplied by the above fourth adjustment coefficient or target adjustment coefficient respectively to obtain the R value, B value, and G value in the adjusted RGBA data; exemplarily, when the above fourth luminance difference is equal to zero, the RGBA data of each pixel point in the second initial layer can be adjusted by using the target adjustment coefficient.

[0182] Here, the embodiments of the present disclosure can reasonably adjust the display color of at least one second initial layer when the luminance difference meets the second preset condition, improve the color visibility between the first initial layer and the second initial layer, and improve the visual effect harmony of the display screen.

[0183] In some embodiments, a group of second initial layers includes N second initial layers, where N is an integer greater than 1; adjusting the display color of at least one second initial layer in at least one group of second initial layers includes:

[0184] Each group of second initial layers is processed as follows:

[0185] Overlaying i second initial layers to obtain an i-th overlay layer, where i is an integer greater than 1 and less than or equal to N;

[0186] Determine an i-th brightness difference between the display brightness of the i-th overlay layer and the display brightness of the i-th second initial layer;

[0187] Based on the i-th brightness difference, the i-th second initial layer is adjusted or the i-1 second initial layer constituting the i-1-th superimposed layer is adjusted;

[0188] When determining to adjust the i-1 second initial layers constituting the i-1th superimposed layer, if i is 2, the first second initial layer is adjusted; if i is greater than 2, one second initial layer among the i-1 second initial layers is adjusted.

[0189] Here, for a group of second initial layers including N second initial layers, we can start from the bottom-level second initial layer (i.e., i=N) and sequentially obtain the i-th superimposed layer obtained by superimposing the i second initial layers; here, obtaining the i-th superimposed layer can refer to the superimposed processing method described above in the present disclosure, and the present disclosure will not elaborate on it here.

[0190] In the present disclosure, after determining the i-th brightness difference between the display brightness of the i-th overlay layer and the display brightness of the i-th second initial layer, the i-th brightness difference is analyzed to decide whether to adjust the i-th second initial layer or to adjust the i-1 second initial layers constituting the i-1-th overlay layer.

[0191] In the present disclosure, the method for adjusting the display color of the i-th initial layer is:

[0192] When the i-th layer is the 2-n layer, the adjusted second initial layer RGBA data R can be obtained by using the following formula (10): 11 G 11 , B 11 and A 11 .

[0193]

[0194] Here, K1 may be the second adjustment coefficient or the target ratio described above in the present disclosure, or the target adjustment coefficient. A0 may be the initial color space value of the i-th second initial layer, or a preset color space value; for example, A0 may be 0.5; R i , G i , B i is the initial display color of the i-th initial layer; R i1, G i1 , B i1 is the initial display color of the i-th initial layer after adjustment.

[0195] When the i-th layer is the first layer, the adjusted RGBA data R of the second initial layer can be obtained by using the following formula (11) 11 G 11 , B 11 and A 11 .

[0196]

[0197] Here, K2 can be the second adjustment coefficient described above in the present disclosure or one of the above target ratios corresponding to the set of second initial layers, or the above target adjustment coefficient. A1 is the initial color space value of the first second initial layer; R 11 , G 11 and B 11 are the display colors of the adjusted second initial layer; R3, G3, and B3 are the initial display colors of the second initial layer; R 10 , G 10 and B 10 are the display colors of the layer obtained by superimposing the first initial layer on the second initial layer, respectively.

[0198] When determining the i - 1 second initial layers that make up the i - 1 superimposed layer, if i is 2, then adjust the first second initial layer according to the above formula (11); if i is greater than 2, then adjust one of the i - 1 second initial layers. Here, adjusting one of the i - 1 second initial layers can be analyzed again by referring to the above method, and analyze upward in turn until the layer to be adjusted is found.

[0199] In some embodiments, based on the i-th brightness difference, determining to adjust the i-th second initial layer or the i - 1 second initial layers that make up the i - 1 superimposed layer includes:

[0200] When the i-th brightness difference satisfies the first adjustment condition, adjust the i - 1 second initial layers that make up the i - 1 superimposed layer;

[0201] When the i-th brightness difference satisfies the second adjustment condition, adjust the i-th second initial layer;

[0202] Among them, the i-th brightness difference satisfies the first adjustment condition, including:

[0203] The absolute value of the i-th brightness difference is greater than or equal to the fifth preset brightness threshold; or,

[0204] The absolute value of the i-th brightness difference is less than the fifth preset brightness threshold, and the i-th brightness difference is less than zero; or,

[0205] The ith brightness difference is equal to zero, and the number of pixels of the ith superimposed layer is less than or equal to the number of pixels of the ith second initial layer;

[0206] The i-th brightness difference satisfies the second adjustment condition, including:

[0207] The absolute value of the i-th brightness difference is less than the fifth preset brightness threshold, and the i-th brightness difference is greater than zero; or,

[0208] The i-th brightness difference is equal to zero, and the number of pixels of the i-th superimposed layer is greater than the number of pixels of the i-th second initial layer.

[0209] Here, the fifth preset brightness threshold is an example of the contrast threshold described above in the present disclosure, which is used to measure the difference between the display brightness of the i-th overlay layer in a group of second initial layers and the display brightness of the i-th second initial layer; the fifth preset brightness threshold and the above-mentioned first preset brightness threshold are both pre-set, and the values ​​of the fifth preset brightness threshold and the first preset brightness threshold are the same; exemplarily, the fifth preset brightness threshold can be 125.

[0210] For the i-th brightness difference, if the absolute value of the i-th brightness difference is greater than or equal to the fifth preset brightness threshold, it is determined that the difference between the display brightness of the i-th overlay layer and the display brightness of the i-th second initial layer is large, and the color difference between the i-th second initial layer and other second initial layers is large, so the i-th second initial layer does not need to be adjusted, and the i-1 second initial layers constituting the i-1-th overlay layer should be adjusted.

[0211] If the absolute value of the i-th brightness difference is less than the fifth preset brightness threshold, and the i-th brightness difference is greater than zero, the brightness of the i-th second initial layer with smaller overall brightness is adjusted to be smaller, so the display color of the i-th second initial layer is adjusted, thereby increasing the color difference between the group of second initial layers and the first initial layer.

[0212] If the absolute value of the i-th brightness difference is less than the fifth preset brightness threshold, and the i-th brightness difference is less than zero, the brightness of one of the first i-1 second initial layers with smaller overall brightness is adjusted to be smaller, so the display color of one of the i-1 second initial layers constituting the i-1th overlay layer is adjusted.

[0213] If the absolute value of the i-th brightness difference is less than the fifth preset brightness threshold and the i-th brightness difference is equal to zero, then by comparing the number of pixels of the i-th superimposed layer and the pixel data of the i-th second initial layer, the layer with a relatively smaller number of pixels is selected for color adjustment.

[0214] Here, the color adjustment of a second initial layer is referred to as described above in the present disclosure, and the present disclosure will not elaborate further here.

[0215] In the embodiments of the present disclosure, when adjusting the colors of a group of second initial layers, appropriate layers to be adjusted can be determined through layer-by-layer analysis for color adjustment, so as to enhance the color difference between a group of second initial layers and the underlying first initial layer, thereby enhancing the visibility of the augmented reality screen.

[0216] In some other embodiments, the different overlapping layers include:

[0217] The first initial layer located at the bottommost layer and at least one group of third initial layers; at least one group of the third initial layers is superimposed on the first initial layer and includes a plurality of third initial layers; here, one third initial layer overlaps with another third initial layer, and one third initial layer can simultaneously overlap with multiple other third initial layers.

[0218] At this time, first, determine whether the display brightness of the first initial layer exceeds the maximum value; if the display brightness of the first initial layer exceeds the maximum value, no adjustment is made; if the average brightness of the first initial layer does not exceed the maximum value, adjust the color data of the first initial layer so that the display brightness of the first initial layer reaches the maximum value; exemplarily, the maximum value is 255.

[0219] Secondly, the following processing is performed on each of the third initial layers from bottom to top:

[0220] Superimpose each third initial layer with the layer of the next lower layer to obtain a corresponding candidate superimposed layer, and determine the candidate brightness difference between the display brightness of the candidate superimposed layer and the display brightness of the layer of the next lower layer.

[0221] Here, the superimposition processing is referred to as described above in the present disclosure and will not be elaborated here. In the case where the currently processed third initial layer is the penultimate initial layer, the layer of the next lower layer is the adjusted first initial layer; in the case where the currently processed third initial layer is not the penultimate initial layer, the initial layer of the next lower layer is the third processed layer obtained after the previous processing (which can be the adjusted third initial layer or the unadjusted third initial layer);

[0222] When the absolute value of the candidate brightness difference is greater than the target brightness threshold (the target brightness threshold can be any one of the contrast thresholds proposed above in the present disclosure. Exemplarily, the target brightness threshold can be 125), no color adjustment is performed on this third initial layer. When the absolute value of the candidate brightness difference is less than the preset brightness threshold, the processing result meets the preset condition, and at this time, the display color of the third initial layer is adjusted correspondingly based on the target adjustment coefficient. Here, the target adjustment coefficient can be 1 / 2.

[0223] Here, adjusting the display color of the third initial layer based on the target adjustment coefficient includes multiplying the initial display color (RGBA data) of the third initial layer by the target adjustment coefficient.

[0224] In some other embodiments, the different overlapping layers include:

[0225] The first initial layer located at the bottom layer, at least one group of second initial layers, and at least one group of third initial layers; adjusting the brightness of at least one group of second initial layers and adjusting the brightness of at least one group of third initial layers;

[0226] At this time, first, determine whether the display brightness of the first initial layer exceeds the maximum value; if the display brightness of the first initial layer exceeds the maximum value, no adjustment is made; if the average brightness of the first initial layer does not exceed the maximum value, adjust the color data of the first initial layer so that the display brightness of the first initial layer reaches the maximum value; Exemplarily, the maximum value is 255.

[0227] Secondly, perform an overlay process on at least one group of the second initial layers and the adjusted first initial layer to obtain at least one overlay layer; if the processing result obtained during the overlay process (such as at least one brightness value described above in the present disclosure) does not meet the second preset condition described above in the present disclosure, no further adjustment is made to at least one group of second initial layers. If the processing result meets the above second preset condition, adjust the display color of at least one second initial layer in at least one group of second initial layers according to the adjustment method described above in the present disclosure.

[0228] Perform the same overlay process and adjustment analysis on at least one group of third initial layers as described above in the present disclosure, and the present disclosure will not elaborate further here.

[0229] Next, taking the wallpaper layer and the time layer having an overlapping relationship as an example, an exemplary application of the above image processing method proposed by the present disclosure in a mobile phone is described.

[0230] Step 1: In response to detecting a change in the layers in the display screen, determine whether there are at least two different overlapping layers in the display screen;

[0231] Here, when the mobile phone system detects a change in the layers in the display screen, it will read the content of the current screen display. Since the display screen is formed by overlapping different layers, the system will extract the state of each layer before synthesis, that is, the attributes of each layer include position, size, color space, etc.

[0232] Here, the display content of the original layer that forms the display screen is adapted to the screen resolution. Exemplarily, when the screen resolution of the mobile phone is 1088x2400 and there is a wallpaper layer with full-screen display, the image size of the wallpaper layer is 1088x2400. Since excessive computing power will lead to slow operation and low efficiency, the obtained initial layer is scaled.

[0233] Specifically, after obtaining all the original layers, the present disclosure performs a scaling process. Here, the scaling process is to reduce the length and width of each original layer by half. After scaling, the size of the wallpaper is 544x1200.

[0234] Here, it is determined whether there is an overlapping relationship between the layers after the scaling process of the present disclosure; if there is only a single layer in the corresponding area of the display screen position, no further adjustment is required. If it is determined that at least two layers overlap according to the positions of the layers after the scaling process, the different overlapping layers are analyzed.

[0235] Step 3: Determine the first initial layer corresponding to the wallpaper layer and the second initial layer corresponding to the time layer;

[0236] Here, refer to Figure 3 , Figure 3 which is an interface schematic diagram of a display screen shown according to an exemplary embodiment Figure 2 ; here, the wallpaper layer 201 and the time layer 202 have an overlapping relationship of being stacked one above the other. Thus, it is determined that the scaled first initial layer corresponding to the wallpaper layer and the scaled second initial layer corresponding to the time layer also overlap.

[0237] Step 4: Determine the overlapping layer between the first initial layer and the second initial layer;

[0238] First, obtain the RGBA values (Rp, Gp, Bp, Ap) of the first initial layer and the RGBA values (Rt, Gt, Bt, At) of the second initial layer;

[0239] Here, the first initial layer and the second initial layer are superimposed to obtain the RGB values (Rta, Gta, Bta) of the overlapping layer. Specifically, the superimposing process is performed with reference to the following formula (12).

[0240]

[0241] Step 5: Obtain the display brightness of the superimposed layer and the display brightness of the first initial layer;

[0242] Here, to ensure calculation consistency, convert Rp, Gp, Bp, and Ap of the first initial layer into RGB data (Rpa, Gpa, Bpa); and perform luminance component conversion on Rta, Gta, Bta of the superimposed layer and the converted Rpa, Gpa, Bpa of the first initial layer to obtain the luminance components Yt and Yp of each pixel point; specifically, refer to the following formula (13) to convert Rp, Gp, Bp, and Ap of the first initial layer into RGB data and complete the luminance component conversion process;

[0243]

[0244] It should be noted that since the wallpaper is the bottom layer, the RGBA values after superimposition remain unchanged and A = 1.

[0245] Here, determine the respective display brightnesses through the luminance components and pixel data of each pixel point of the first initial layer and the second initial layer.

[0246] Assume that there are a total of n pixels in the overlapping area of the two layers. Then the number of pixels of the second initial layer corresponding to the time layer is n, and the number of pixels of the first initial layer corresponding to the wallpaper layer is m; thus, determine the average brightness value of the superimposed layer according to the following formula (14) And use this average brightness value As the display brightness of the superimposed layer; determine the average brightness value of the first initial layer according to the following formula (15) And use this average brightness value As the display brightness of the first initial layer.

[0247]

[0248]

[0249] Step 6: Based on the display brightness of the superimposed layer and the display brightness of the first initial layer, determine whether color adjustment is required;

[0250] Here, obtain the brightness difference between the display brightness of the superimposed layer and the display brightness of the first initial layer;

[0251] When the absolute value of the brightness difference is less than the threshold Yth (125), it is necessary to dynamically change the RGBA values of the first initial layer or the second initial layer according to the algorithm. If the brightness difference is greater than or equal to the threshold, no additional operation is required.

[0252] Here, obtain the absolute value of the brightness difference according to the following formula (16)

[0253]

[0254] When determining the absolute value of the brightness difference is less than the threshold Yth (125), it is determined that and and adjust the display color of the initial layer corresponding to the lower display brightness.

[0255] Here, it can be first determined whether and there is a maximum value Y max ; if it exists, adjust the layer corresponding to the other display brightness; if both are the maximum value Y max or neither is the maximum value Y max , then adjust the initial layer with fewer pixels; here, the adjusted display brightness Y of the second initial layer is determined according to the following formula (17) tn or the adjusted display brightness Y of the first initial layer pn .

[0256]

[0257] Step 7: Adjust the display color of the first initial layer or the second initial layer;

[0258] Here, taking the adjustment of the display color of the second initial layer as an example: The RGB data of the transformed second initial layer can be determined according to the brightness component conversion formula, which are respectively R tan , G tan and B tan ; specifically, refer to the following formula (18).

[0259] Based on the above formulas (12), (13) and (18), convert the RGB values into RGBA values to obtain the RGBA values (R tn , G tn , B tn and A tn ) of the adjusted second initial layer. Specifically, refer to the following formula (19).

[0260] Step 8: Obtain the time layer with adjusted color based on the display color (R tn , G tn , B tn and A tn ) of the adjusted second initial layer.

[0261]

[0262]

[0263] In this way, the contrast between the time layer and the wallpaper layer is enhanced, and the color similarity is reduced, so that the overall subjective visibility of the display screen is effectively improved.

[0264] Through the above image processing method, the embodiments of the present disclosure can dynamically optimize the problem of reduced visibility caused by the approximate colors of the display content and the background wallpaper in the usage scenarios of custom wallpapers or themes on mobile phones. While ensuring the harmony of visual effects, the clarity of the content is quickly and accurately improved; moreover, by determining the adjustment of the display color through the luminance component, the present disclosure can dynamically improve the clarity and visibility of the screen while ensuring the consistency of color tone and saturation.

[0265] The embodiments of the present disclosure also propose an image processing device. Refer to Figure 4 , Figure 4 which is a schematic structural diagram of an image processing device shown according to an exemplary embodiment; as Figure 4 shown, the image processing device 400 includes:

[0266] A judgment module 401, configured to judge whether there are at least two different overlapping layers in the display screen in response to detecting a change in the layers in the display screen;

[0267] A determination module 402, configured to determine whether the display data of the different overlapping layers satisfies a preset condition according to the display data of the different overlapping layers when it is determined that there are at least two different overlapping layers, where the preset condition is used to indicate that the similarity of the display data is greater than a similarity threshold or the contrast of the display data is less than a contrast threshold;

[0268] An adjustment module 403, configured to adjust the display data of the different overlapping layers if the display data satisfies the preset condition;

[0269] A display module 404, which displays based on the display screen formed by the adjusted layers, so that the similarity between the different overlapping layers is reduced or the contrast between the different overlapping layers is increased.

[0270] In some embodiments, the different overlapping layers include: a first initial layer located at the bottom layer and at least one group of second initial layers; at least one group of the second initial layers are respectively superimposed on the first initial layer;

[0271] The determining module 402 is further configured to superimpose at least one set of the second initial layer and the first initial layer according to the display color of the second initial layer and the display color of the first initial layer to obtain at least one superimposed layer; one set of the second initial layers corresponds to one superimposed layer; based on the difference between the display brightness of at least one superimposed layer and the display brightness of the first initial layer, obtain at least one brightness difference; one superimposed layer corresponds to one brightness difference; and determine whether the at least one brightness difference meets a preset condition.

[0272] The adjusting module 403 is further configured to adjust the display color of the first initial layer when at least one of the brightness differences meets a first preset condition; and adjust the display color of at least one of the second initial layers in at least one set of the second initial layers when at least one of the brightness differences meets a second preset condition.

[0273] In some embodiments, at least one of the brightness differences includes a first brightness difference corresponding to one set of the second initial layers; the adjusting module 403 is further configured to adjust the display color of the first initial layer based on the ratio between the absolute value of the first brightness difference and the first preset brightness threshold when the absolute value of the first brightness difference is less than the first preset brightness threshold and the first brightness difference is greater than zero.

[0274] In some embodiments, at least one of the brightness differences includes multiple second brightness differences corresponding to multiple sets of the second initial layers; the adjusting module 403 is further configured to obtain a first target number of the second brightness differences whose absolute values are less than a second preset brightness threshold when there are second brightness differences whose absolute values are less than the second preset brightness threshold among the multiple second brightness differences; if the ratio of the number of the second brightness differences that are greater than zero and less than the second preset brightness threshold to the first target number exceeds a first preset ratio, determine a target brightness difference from at least one of the second brightness differences that are greater than zero and less than the second preset brightness threshold; and adjust the display color of the first initial layer based on the ratio between the absolute value of the target brightness difference and the second preset brightness threshold.

[0275] In some embodiments, at least one of the brightness differences includes a third brightness difference corresponding to one set of the second initial layers; the adjusting module 403 is further configured to adjust the display color of at least one of the second initial layers in one set of the second initial layers based on the ratio between the absolute value of the third brightness difference and the third preset brightness threshold when the absolute value of the third brightness difference is less than the third preset brightness threshold and the third brightness difference is less than or equal to zero.

[0276] In some embodiments, at least one of the luminance differences includes a plurality of fourth luminance differences corresponding to multiple groups of the second initial layers; the adjustment module 403 is further configured to, when there is a fourth luminance difference whose absolute value is less than a fourth preset luminance threshold among the multiple fourth luminance differences, obtain a second target quantity of the fourth luminance differences whose absolute values are less than the fourth preset luminance threshold; if the ratio of the number of the fourth luminance differences that are less than or equal to zero among the fourth luminance differences whose absolute values are less than the fourth preset luminance threshold to the second target quantity exceeds a second preset ratio, obtain at least one target ratio between the absolute value of at least one of the fourth luminance differences that are less than or equal to zero and the fourth preset luminance threshold; one target ratio corresponds to one group of the second initial layers; and based on at least one of the target ratios, correspondingly adjust the display colors of at least one group of the second initial layers.

[0277] In some embodiments, one group of the second initial layers includes N second initial layers, where N is an integer greater than 1; the adjustment module 403 is further configured to perform the following processing on each group of the second initial layers respectively: perform a superposition process on i second initial layers to obtain an i-th superposed layer; where i is an integer greater than 1 and less than or equal to N; determine an i-th luminance difference between the display luminance of the i-th superposed layer and the display luminance of the i-th second initial layer; based on the i-th luminance difference, determine whether to adjust the i-th second initial layer or the i - 1 second initial layers that constitute the (i - 1)-th superposed layer; when it is determined to adjust the i - 1 second initial layers that constitute the (i - 1)-th superposed layer, if i is 2, then adjust the first second initial layer; if i is greater than 2, then adjust one of the i - 1 second initial layers.

[0278] In some embodiments, the adjustment module 403 is further configured to, when the i-th luminance difference satisfies a first adjustment condition, adjust the i - 1 second initial layers that constitute the (i - 1)-th superposed layer; when the i-th luminance difference satisfies a second adjustment condition, adjust the i-th second initial layer; where the i-th luminance difference satisfies the first adjustment condition, including: the absolute value of the i-th luminance difference is greater than or equal to a fifth preset luminance threshold; or, the absolute value of the i-th luminance difference is less than the fifth preset luminance threshold and the i-th luminance difference is less than zero; or, the i-th luminance difference is equal to zero and the number of pixels of the i-th superposed layer is less than or equal to the number of pixels of the i-th second initial layer; the i-th luminance difference satisfies the second adjustment condition, including: the absolute value of the i-th luminance difference is less than the fifth preset luminance threshold and the i-th luminance difference is greater than zero; or, the i-th luminance difference is equal to zero and the number of pixels of the i-th superposed layer is greater than the number of pixels of the i-th second initial layer.

[0279] Figure 5 It is a block diagram of an electronic device shown according to an exemplary embodiment. For example, the electronic device 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0280] Referring to Figure 5 , the electronic device 900 may include one or more of the following components: a processing component 902, a memory 904, a power supply component 906, a multimedia component 908, an audio component 910, an input / output (I / O) interface 912, a sensor component 914, and a communication component 916.

[0281] The processing component 902 generally controls the overall operation of the electronic device 900, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above methods. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.

[0282] The memory 904 is configured to store various types of data to support the operation of the electronic device 900. Examples of these data include instructions for any application or method operating on the electronic device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.

[0283] The power supply component 906 provides power to various components of the electronic device 900. The power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 900.

[0284] The multimedia component 908 includes a screen that provides an output interface between the electronic device 900 and the user. The pixel circuit proposed in this disclosure is applied to the screen. In some embodiments, the screen may include an OLED display panel, such as an AMOLED display panel, and may also be a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the electronic device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.

[0285] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 904 or transmitted via the communication component 916. In some embodiments, the audio component 910 further includes a speaker for outputting audio signals.

[0286] The I / O interface 912 provides an interface between the processing component 902 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include but are not limited to: a home button, a volume button, a power button, and a lock button.

[0287] The sensor assembly 914 includes one or more sensors for providing an assessment of various aspects of the status of the electronic device 900. For example, the sensor assembly 914 can detect the on / off state of the electronic device 900, the relative positioning of components, such as the display and keypad of the electronic device 900. The sensor assembly 914 can also detect a change in the position of the electronic device 900 or a component of the electronic device 900, the presence or absence of user contact with the electronic device 900, the orientation or acceleration / deceleration of the electronic device 900, and a change in the temperature of the electronic device 900. The sensor assembly 914 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0288] The communication component 916 is configured to facilitate communication between the electronic device 900 and other devices in a wired or wireless manner. The electronic device 900 can access a wireless network based on communication standards, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0289] In an exemplary embodiment, the electronic device 900 can be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.

[0290] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as the memory 904 including instructions. When the instructions in the above storage medium are executed by the processor 920 of the electronic device 900, the electronic device is enabled to execute the image processing method proposed in the above embodiments of the present disclosure. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0291] Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known common general knowledge or conventional technical means in the technical field not disclosed herein. The specification and examples are only to be considered as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.

[0292] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.

Claims

1. An image processing method, characterized in that, Including: In response to detecting a change in the layers in the display screen, determining whether there are at least two different layers overlapping in the display screen; When it is determined that there are at least two different layers overlapping, determining whether the display data of the different overlapping layers meet a preset condition according to the display data of the different overlapping layers, where the preset condition is used to indicate that the similarity of the display data is greater than a similarity threshold or the contrast of the display data is less than a contrast threshold; If the display data meets the preset condition, adjusting the display data of the different overlapping layers; Displaying the display screen formed based on the adjusted layers, so that the similarity between the different overlapping layers is reduced or the contrast between the different overlapping layers is increased.

2. The method according to claim 1, characterized in that The different overlapping layers include: a first initial layer located at the bottom layer and at least one group of second initial layers; at least one group of the second initial layers are respectively superimposed on the first initial layer; The determining whether the display data of the different overlapping layers meet a preset condition according to the display data of the different overlapping layers includes: According to the display color of the second initial layer and the display color of the first initial layer, performing a superimposing process on at least one group of the second initial layers and the first initial layer to obtain at least one superimposed layer; one group of the second initial layers corresponds to one superimposed layer; Based on the difference between the display brightness of at least one superimposed layer and the display brightness of the first initial layer, obtaining at least one brightness difference; one superimposed layer corresponds to one brightness difference; Determining whether the at least one brightness difference meets a preset condition.

3. The method according to claim 2, wherein The adjusting the display data of the different overlapping layers if the display data meets the preset condition includes: When at least one of the brightness differences meets a first preset condition, adjusting the display color of the first initial layer; When at least one of the brightness differences meets a second preset condition, adjusting the display color of at least one of the second initial layers in at least one group of the second initial layers.

4. The method according to claim 3, wherein At least one of the brightness differences includes a first brightness difference corresponding to one group of the second initial layers. When at least one of the brightness differences meets a first preset condition, adjusting the display color of the first initial layer includes: When the absolute value of the first brightness difference is less than a first preset brightness threshold and the first brightness difference is greater than zero, adjusting the display color of the first initial layer based on the ratio between the absolute value of the first brightness difference and the first preset brightness threshold.

5. The method according to claim 3, wherein At least one of the brightness differences includes multiple second brightness differences corresponding to multiple groups of the second initial layers. When at least one of the brightness differences meets a first preset condition, adjusting the display color of the first initial layer includes: When there is a second brightness difference whose absolute value is less than a second preset brightness threshold among the multiple second brightness differences, obtaining a first target quantity of the second brightness differences whose absolute values are less than the second preset brightness threshold; If the ratio of the number of the second brightness differences greater than zero and less than the second preset brightness threshold to the first target number exceeds a first preset ratio, determine a target brightness difference from at least one of the second brightness differences greater than zero and less than the second preset brightness threshold; Based on the ratio between the absolute value of the target brightness difference and the second preset brightness threshold, adjust the display color of the first initial layer.

6. The method according to claim 3, characterized in that, At least one of the brightness differences includes a third brightness difference corresponding to one of a group of the second initial layers. When at least one of the brightness differences meets a second preset condition, adjusting the display color of at least one of the second initial layers in at least one group of the second initial layers includes: When the absolute value of the third brightness difference is less than a third preset brightness threshold and the third brightness difference is less than zero or equal to zero, based on the ratio between the absolute value of the third brightness difference and the third preset brightness threshold, adjust the display color of at least one of the second initial layers in a group of the second initial layers.

7. The method according to claim 3, characterized in that At least one of the brightness differences includes a plurality of fourth brightness differences corresponding to a plurality of groups of the second initial layers. When at least one of the brightness differences meets a second preset condition, adjusting the display color of at least one of the second initial layers in at least one group of the second initial layers includes: When there is a fourth brightness difference with an absolute value less than a fourth preset brightness threshold among the plurality of fourth brightness differences, obtain a second target number of the fourth brightness differences with an absolute value less than the fourth preset brightness threshold; If the ratio of the number of the fourth brightness differences less than zero or equal to zero among the fourth brightness differences with an absolute value less than the fourth preset brightness threshold to the second target number exceeds a second preset ratio, obtain at least one target ratio between the absolute value of at least one of the fourth brightness differences less than zero or equal to zero and the fourth preset brightness threshold; one target ratio corresponds to one group of the second initial layers; Based on at least one of the target ratios, correspondingly adjust the display color of at least one group of the second initial layers.

8. The method according to any one of claims 3 to 7, wherein One group of the second initial layers includes N second initial layers, and N is an integer greater than 1; adjusting the display color of at least one of the second initial layers in at least one group of the second initial layers includes: Perform the following processing on each group of the second initial layers respectively: Perform a superposition process on i second initial layers to obtain an i-th superposition layer; i is an integer greater than 1 and less than or equal to N; Determine an i-th brightness difference between the display brightness of the i-th superposition layer and the display brightness of the i-th second initial layer; Based on the i-th brightness difference, determine whether to adjust the i-th second initial layer or the i - 1 second initial layers constituting the (i - 1)-th superposition layer; When determining to adjust the i-1 second initial layers that constitute the (i-1)-th superimposed layer, if i is 2, then adjust the first second initial layer; if i is greater than 2, then adjust one of the i-1 second initial layers.

9. The method according to claim 8, wherein The determining to adjust the i-th second initial layer or the i-1 second initial layers that constitute the (i-1)-th superimposed layer based on the i-th brightness difference includes: When the i-th brightness difference meets the first adjustment condition, adjust the i-1 second initial layers that constitute the (i-1)-th superimposed layer; When the i-th brightness difference meets the second adjustment condition, adjust the i-th second initial layer; Wherein, the i-th brightness difference meeting the first adjustment condition includes: The absolute value of the i-th brightness difference is greater than or equal to the fifth preset brightness threshold; or, The absolute value of the i-th brightness difference is less than the fifth preset brightness threshold, and the i-th brightness difference is less than zero; or, The i-th brightness difference is equal to zero, and the number of pixels of the i-th superimposed layer is less than or equal to the number of pixels of the i-th second initial layer; The i-th brightness difference meeting the second adjustment condition includes: The absolute value of the i-th brightness difference is less than the fifth preset brightness threshold, and the i-th brightness difference is greater than zero; or, The i-th brightness difference is equal to zero, and the number of pixels of the i-th superimposed layer is greater than the number of pixels of the i-th second initial layer.

10. An image processing apparatus, characterized in that, Includes: A judgment module, configured to respond to detecting a change in the layers in the display screen and judge whether there are at least two different layers overlapping in the display screen; A determination module, configured to, when determining that there are at least two different layers overlapping, determine whether the display data of the overlapping different layers meets a preset condition according to the display data of the overlapping different layers, and the preset condition is used to indicate that the similarity of the display data is greater than the similarity threshold or the contrast of the display data is less than the contrast threshold; An adjustment module, configured to adjust the display data of the overlapping different layers if the display data meets the preset condition; A display module, displays based on the display screen formed by the adjusted layers, so that the similarity between the overlapping different layers is reduced or the contrast between the overlapping different layers is increased.

11. An electronic device, characterized in that, Includes: A processor; A memory for storing instructions executable by the processor; Wherein, the processor is configured to execute the image processing method according to any one of claims 1 to 9.

12. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the image processing method according to any one of claims 1 to 9.