Display method, device and storage medium

By differentiating gray levels and adjusting RGB values to simulate a paper book's diffuse reflection, the display method and device address visual fatigue and enhance visual comfort in electronic devices.

JP7723791B2Active Publication Date: 2025-08-14BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2024072036
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-05-22
Filing Date
2024-04-26
Publication Date
2025-08-14
Estimated Expiration
2040-11-26

AI Technical Summary

Technical Problem

Electronic devices with display modules experience poor visual effects and cause visual fatigue during prolonged use, particularly in reading scenarios due to specular reflection, leading to potential visual acuity deterioration.

Method used

A display method and device that differentiate the gray levels of background pixels to simulate a diffuse reflection effect, adjusting RGB values to enhance the display to resemble a paper book's appearance, thereby reducing visual fatigue.

Benefits of technology

The method improves the reading experience by simulating a paper book's diffuse reflection, reducing visual fatigue and vision loss, and enhancing the visual comfort of electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007723791000001
    Figure 0007723791000001
  • Figure 0007723791000002
    Figure 0007723791000002
  • Figure 0007723791000003
    Figure 0007723791000003
Patent Text Reader

Abstract

SOLUTION: The present disclosure relates to a display method, a device, and a storage medium. The method is applied to an electronic apparatus including a display module. A display content of the display module includes a background and a reading object located on the background. The method includes: differentiating grayscales of background pixels in the background; and displaying the background and the reading object on the basis of the differentiated background pixels.EFFECT: In the present disclosure, grayscales of background pixels in a background are differentiated, thereby the grayscales of the respective background pixels are made different, a diffuse reflection effect of a paper book is simulated, and the display module of an electronic apparatus can simulate a feeling similar to that of the paper book, but by the differentiated background pixels, problems of visual fatigue and decreased vision caused by specular reflection can be reduced, and further improve reading experience.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] [CROSS-REFERENCE TO RELATED APPLICATIONS] This application claims priority from Chinese Patent Application No. 2020104403350, filed on May 22, 2020, the entire contents of which are hereby incorporated by reference into this application.

[0002] The present disclosure relates to the field of computer communications, and more particularly to a display method, device, and storage medium. [Background technology]

[0003] With the rapid development of information technology, various electronic devices have come to provide convenience to people's lives and facilitate man-machine interaction, and currently, most electronic devices are equipped with display modules for displaying various types of multimedia information, such as pictures, text, and other information.

[0004] Taking the electronic device as an example, a mobile phone, when the mobile phone is in a reading scene, the display included in the mobile phone can display a background and a reading object on the background. However, when a user looks at the reading object through the display, not only is the visual effect poor, but looking at the display for a long period of time will cause visual fatigue to the user, and even cause visual acuity deterioration. Summary of the Invention [Problem to be solved by the invention]

[0005] The present disclosure provides a display method, an apparatus, and a storage medium. [Means for solving the problem]

[0006] A display method according to a first aspect of an embodiment of the present disclosure, which is applied to an electronic device including a display module, wherein display content of the display module includes a background and a reading object located on the background, and the method includes: differentiating the gray levels of background pixels in the background; and displaying the background based on the background pixels after the gray scale differentiation, and displaying the reading object.

[0007] Optionally, differentiating the grey levels of background pixels in the background may include: Increasing or decreasing the grey level of each of the background pixels based on a random value within a predetermined range.

[0008] Optionally, differentiating the grey levels of the background pixels comprises: Dividing the background into one or more patches of a predetermined size and differentiating the gradation of the background pixels in each patch until the differentiating of the gradation of all the background pixels in the background is completed.

[0009] Optionally, increasing or decreasing the grey level of each background pixel of the background based on a random value within a predetermined range may include: determining a set number of random values from the predetermined range; and varying the gray level of the background pixels of the current patch based on the random value until the gray level of the background pixels of all of the patches has been varied.

[0010] Optionally, increasing the grey level of the background pixel of the current patch based on the random value; or To reduce is to According to the current RGB values of the background pixels in the current patch, obtain a target RGB value corresponding to the reading scene according to the set mapping relationship; and changing the numerical value of each component included in the target RGB value based on the random value.

[0011] As an option, the sum of the set number of random values is zero.

[0012] Optionally, the method may further comprise: determining a grayscale distribution section in which each pixel included in the display content is located; determining that the electronic device is in a reading scene when the number of the gray level distribution sections is less than a number threshold; Differentiating the grayscale of background pixels in the background includes: When the electronic device is in the reading scene, differentiating the grayscale of background pixels in the background.

[0013] Optionally, the method further comprises: When the electronic device is in the reading scene, determining the gray scale distribution section corresponding to the most numerous pixels in the display content as the gray scale distribution section in which background pixels in the display content are located.

[0014] Optionally, the method further comprises: The method includes adjusting the RGB values of the reading pixels of the reading object.

[0015] Optionally, adjusting the RGB values of the reading pixels of the reading object includes: and adjusting the RGB values of the reading pixels based on the differentiated background pixels to adjust the contrast between the background and the reading object.

[0016] Optionally, the method further comprises: Obtaining lighting parameters of an environment where the display module is located, the lighting parameters including at least a color temperature and a brightness value; and converting the content displayed by the display module to a color adaptation state based on the light parameter by using a color conversion mechanism.

[0017] A display device according to a second aspect of an embodiment of the present disclosure, which is applied to an electronic device having a display module, wherein the display content of the display module includes a background and a reading object located on the background, and the device: a differentiation processing module configured to differentiate gray levels of background pixels in the background; and a display module configured to display the background based on the differentiated background pixels and display the reading object.

[0018] Optionally, the differential processing module further comprises: The gray level of each of the background pixels is configured to increase or decrease based on a random value within a predetermined range.

[0019] Optionally, the differential processing module further comprises: The background is divided into one or more patches of a predetermined size, and the background pixels of each patch are differentiated in tone until differentiation of the tone of all the background pixels in the background is completed.

[0020] Optionally, the differential processing module further comprises: determining a set number of random values from the predetermined range; The method is configured to change the gray level of the background pixels of the current patch based on the random value until the gray level of the background pixels of all the patches has been changed.

[0021] Optionally, the differential processing module further comprises: According to the current RGB values of the background pixels in the current patch, obtain a target RGB value corresponding to the reading scene according to the set mapping relationship; The numerical value of each component included in the target RGB value is changed based on the random value.

[0022] As an option, the sum of the set number of random values is zero.

[0023] Optionally, the apparatus further comprises: a first determination module configured to determine a grayscale distribution section in which each pixel included in the display content is located; a second determination module configured to determine that the electronic device is in a reading scene when the number of the gray scale distribution sections is less than a number threshold; The differentiation processing module further comprises: The electronic device is configured to differentiate gray levels of background pixels in the background when the electronic device is in the reading scene.

[0024] Optionally, the apparatus further comprises: The electronic device further includes a third determination module configured to determine, when the electronic device is in the reading scene, the gray scale distribution section corresponding to the most numerous pixels in the display content as the gray scale distribution section in which background pixels in the display content are located.

[0025] Optionally, the apparatus further comprises: The reading object further includes an adjusting module configured to adjust RGB values of the reading pixels of the reading object.

[0026] Optionally, the adjustment module further comprises: The contrast between the background and the reading object is adjusted by adjusting the RGB values of the reading pixels based on the differentiated background pixels.

[0027] Optionally, the apparatus further comprises: an acquisition module configured to acquire lighting parameters of an environment where the display module is located, the lighting parameters including at least a color temperature and a luminance value; and a conversion module configured to perform chromatic adaptation conversion of the content displayed by the display module using a color conversion mechanism based on the light parameter.

[0028] A display device according to a third aspect of the present disclosure, a processor; a memory configured to store processor-executable instructions; The processor is configured to, when executed, implement the steps of the display method of any one of the first aspects above.

[0029] A non-transitory computer-readable storage medium according to a fourth aspect of the present disclosure, wherein instructions in the storage medium, when executed by a processor of a display device, cause the device to The steps in any one of the display methods of the aspects can be performed. [Effects of the Invention]

[0030] The technical solutions according to the embodiments of the present disclosure may have the following beneficial effects.

[0031] According to the above embodiment, when the electronic device of the present disclosure is in a reading scene, the grayscale of the background pixels in the background can be differentiated, and then the background can be displayed based on the differentiated background pixels to display the reading object on the background. By differentiating the grayscale of each background pixel in the present disclosure, the diffuse reflection effect of a paper book can be simulated, and the display module of the electronic device can simulate a similar feeling to a paper book. The differentiated grayscale can reduce the problems of visual fatigue and vision loss caused by specular reflection, further improving the reading experience.

[0032] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not intended to be restrictive of the present disclosure. [Brief explanation of the drawings]

[0033] [Figure 1] FIG. 1 is a flowchart of a display method according to an exemplary embodiment. [Figure 2] FIG. 2 is a calculation diagram of differentiating target RGB values according to an exemplary embodiment. [Figure 3] FIG. 3 is a color schematic diagram of the background after differentiating the target RGB values according to an exemplary embodiment. [Figure 4] FIG. 4 is a schematic diagram of a display interface according to an exemplary embodiment. [Figure 5] FIG. 5 is a schematic diagram of a display effect of a reading object according to an exemplary embodiment. [Figure 6A] FIG. 6A is a schematic diagram of a display interface of a first scene according to an exemplary embodiment. [Figure 6B] FIG. 6B is a schematic diagram of a display interface of the second scene according to an exemplary embodiment. [Figure 6C] FIG. 6C is a schematic diagram of a display interface of the third scene according to an exemplary embodiment. [Figure 6D] FIG. 6D is a schematic diagram of a display interface of the fourth scene according to an exemplary embodiment. [Figure 7] FIG. 7 is a comparative schematic diagram of a display interface according to an exemplary embodiment. [Figure 8A] FIG. 8A is a schematic diagram of a first display interface according to an exemplary embodiment. [Figure 8B] FIG. 8B is a schematic diagram of a second display interface according to an exemplary embodiment. [Figure 8C] FIG. 8C is a schematic diagram of a third display interface according to an exemplary embodiment. [Figure 9] FIG. 9 is a block diagram of a display device according to an exemplary embodiment. [Figure 10] FIG. 10 is a block diagram of the hardware of a display device according to an exemplary embodiment. DETAILED DESCRIPTION OF THE INVENTION

[0034] The drawings herein are incorporated into and constitute a part of this specification, illustrate embodiments consistent with the present disclosure, and together with the specification, serve to explain the principles of the present disclosure.

[0035] Illustrative embodiments will now be described in detail, examples of which are illustrated in the drawings. When the following description refers to the drawings, like numerals in different drawings refer to like or similar elements unless otherwise indicated. The embodiments described in the following illustrative examples do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as set forth in the appended claims.

[0036] FIG. 1 is a flowchart of a display method according to an exemplary embodiment. As shown in FIG. 1, the method is applied to an electronic device equipped with a display module, and the display content of the display module includes a background and a reading object located on the background, and mainly includes: Step 101 of differentiating the gray levels of background pixels in the background; and step 102 of displaying the background based on the differentiated background pixels and displaying the reading object.

[0037] The display method of the embodiments of the present disclosure may be applied to an electronic device equipped with a display module, and the electronic device includes a mobile terminal and a fixed terminal, where the mobile terminal includes a mobile phone, a laptop, a tablet computer, a wearable electronic device, a smart speaker, etc., and the fixed terminal includes a personal computer, a television, etc. The display module includes a display of the electronic device.

[0038] In an embodiment of the present disclosure, a setting screen can be displayed by a display module of an electronic device, for example, a reading object can be displayed by the display module of the electronic device, and the reading object includes a picture and / or text. When the reading object is displayed on the display module, it can be determined that the electronic device is in a reading scene.

[0039] In another alternative embodiment, a deep learning network model can be used to analyze the screen displayed by the display module to determine the background and the reading object, respectively, and the deep learning network model can include a neural network model, etc. If it is determined that the reading object is text, an optical character recognition (OCR) model can be used to recognize the reading object and separate the background and the reading object from the screen displayed by the display module.

[0040] When the electronic device determines that it is in a reading scene, it can determine the background and the reading object located on the background based on the screen currently displayed by the display module. In embodiments of the present disclosure, the gray levels of background pixels in the background can be differentiated. In one alternative embodiment, the gray levels (gray levels) of background pixels can be obtained based on the RGB values of the background pixels. The RGB values are values provided by the processor of the electronic device when the background pixels in the background are digitized, and the RGB values represent average brightness information or average reflection (transmission) density information of the background pixels in the background. For example, when a pixel is represented by 8 bits, the pixel has a total of 256 gray levels (gray levels ranging from 0 to 255); when a pixel is represented by 12 bits, the pixel has a total of 4096 gray levels; and when a pixel is represented by 16 bits, the pixel has a total of 65536 gray levels. Here, the number of bits indicates the number of binary bits used to represent the color of each pixel point in the bitmap. In embodiments of the present disclosure, a pixel may be represented by 8 bits.

[0041] In another alternative embodiment, the diffuse reflection display effect of the background can be determined based on the current gray level of the background pixel. For example, if the current gray levels of the background pixels in the background are the same, it is determined that the background currently does not have a diffuse reflection display effect; if the difference value between the current gray levels of the background pixels is smaller than a set difference value, it is determined that the current display effect of the background is a weak diffuse reflection display effect; and if the difference value between the current gray levels of the background pixels is equal to or greater than the set difference value, it is determined that the current display effect of the background is a strong diffuse reflection display effect.

[0042] In one embodiment, if the background does not currently have a diffuse reflection display effect, when differentiating the gray levels, the difference value between each gray level may be set as the first preset gray level threshold.

[0043] In another embodiment, when the current display effect in the background is a weak diffuse reflection display effect, when differentiating the gray levels, the difference value between each gray level may be used as the second set gray level threshold, and the second set gray level threshold is smaller than the first set gray level threshold.

[0044] In another embodiment, when the current display effect of the background is a strong diffuse reflection effect, the difference value between each gray level may be the third set gray level threshold, and the third set gray level threshold is smaller than the second set gray level threshold.

[0045] After the gray scale differentiation, the background can be displayed based on the differentiated background pixels to display the reading object located on the background. For example, if the background currently has no diffuse reflection display effect, the gray scale of the background pixels can be differentiated to simulate a diffuse reflection display effect; if the current diffuse reflection display effect of the background is lower, the gray scale of the background pixels can be differentiated to enhance the current diffuse reflection display effect.

[0046] In the embodiment of the present disclosure, when the electronic device is in a reading scene, the grayscale of the background pixels in the background can be differentiated, and then the background can be displayed based on the differentiated background pixels to display the reading object on the background. By differentiating the grayscale of each background pixel in the present disclosure, the diffuse reflection effect of a paper book can be simulated, and the display module of the electronic device can simulate a similar feeling to a paper book. The differentiated grayscale can reduce the problems of visual fatigue and vision loss caused by specular reflection, and further improve the reading experience.

[0047] In another alternative embodiment, the method further includes simultaneously differentiating gray levels of background pixels in the background and gray levels of reading pixels of a reading object located on the background.

[0048] In other optional embodiments, the gray scale of the background pixels may be differentiated first, and then the gray scale of the reading pixels may be differentiated, or the gray scale of the reading pixels may be differentiated first, and then the gray scale of the background pixels may be differentiated, as long as the background and the reading object can exhibit a diffuse reflection display effect, and there are no restrictions on the specific steps to be performed.

[0049] In another alternative embodiment, differentiating the gray levels of the reading pixels comprises randomly processing the reading pixels having the same gray level to obtain differentiated gray levels. In the embodiment of the present disclosure, the background and the reading object can be differentiated simultaneously, so that the image consisting of the background and the reading object can exhibit a diffuse reflection effect, and the final image can be more realistic and natural than when only the background or the reading object is differentiated. Furthermore, when compared with processing the background and the reading object separately, the simultaneous differentiation of the background and the reading object improves processing efficiency.

[0050] In another alternative embodiment, differentiating the gray levels of background pixels in the background comprises: The method includes randomly processing background pixels having the same gray level to obtain differentiated background pixels.

[0051] Here, before randomly processing the background pixels having the same gray level, the method further includes: determining the number of background pixels having the same gray level; determining whether the number of background pixels having the same gray level is equal to or greater than a set number threshold; and if the number of background pixels having the same gray level is equal to or greater than the set number threshold, randomly processing the background pixels having the same gray level to obtain differentiated background pixels.

[0052] For example, if a single white or single black background pixel is used as the color of the background pixel, when the image is displayed directly, the displayed background color appears to be single, and the visual effect is similar to that of regular reflection. However, the visual effect that is beneficial to eyesight protection is different degrees of white background or different degrees of black background. In the embodiment of the present application, the differentiated gray scale is obtained by randomly differentiating the background pixels, and the gray scale of the background pixels can be made different, thereby realizing the diffuse reflection display effect.

[0053] In another alternative embodiment, if the number of background pixels with the same gray level is less than a set number threshold, the gray levels of the background pixels in the background are maintained unchanged. If the number of background pixels with the same gray level is smaller, the diffuse reflection display effect will not be significantly affected. For example, if there are two background pixels with the same gray level, the diffuse reflection display effect will not be affected, and in this case, there is no need to randomly process the two background pixels.

[0054] In the embodiments of the present disclosure, when background pixels having the same gray level are differentiated, the resulting diffuse reflection display effect is closer to the real display effect than when the background pixels are differentiated randomly or in a fixed manner, resulting in a better reading experience.

[0055] In another embodiment, the diffuse reflection effect is realized by differentiating the gradation, and a diffuse reflection model that simulates the diffuse reflection effect under different lighting conditions is predetermined, and the gradation of the background pixels can be adjusted based on the diffuse reflection model, such as the diffuse reflection model illuminated by a ceiling lamp, the diffuse reflection model illuminated by a table lamp, and the diffuse reflection model under sunlight, thereby obtaining differentiated background pixels.The electronic device does not perform differentiation randomly, but instead selects an appropriate diffuse reflection model according to the current lighting environment to achieve a diffuse reflection effect similar to that of a real paper page under different scenes, improving the reading experience and protecting the user's eyesight.

[0056] In another alternative embodiment, differentiating the gray levels of background pixels in the background comprises: Increasing or decreasing the grey level of each of the background pixels based on a random value within a predetermined range.

[0057] In the embodiment of the present disclosure, a random value within a predetermined range can be randomly selected, and the gray level of each background pixel can be increased or decreased based on the random value to obtain the differentiated background pixel.

[0058] Here, multiple random values within a predetermined range can be set, and a predetermined random sequence can be formed based on the multiple random values. In an embodiment of the present disclosure, the predetermined range can be a range between a second threshold and a first threshold. When differentiating gradations, if the random value is greater than the first threshold or less than the second threshold, the resulting diffuse reflection effect will be unnatural. Therefore, the random value must be set within a predetermined range. The first threshold can be 6, and the second threshold can be -6. In other optional embodiments, the first threshold and the second threshold can be set as needed. For example, the first threshold can be 13, and the second threshold can be 0, etc., and no specific limitations are imposed here.

[0059] In another optional embodiment, the predetermined range may be (-a, a), where a is a positive number between 6 and 13, and in the embodiment of the present disclosure, a better diffuse reflection effect can be achieved when the random value is within the predetermined range.

[0060] When the gray level of a background pixel in the background is differentiated, a random value can be randomly selected from a predetermined random sequence to process the gray level, and then the differentiated gray level can be obtained. In the implementation process, the differentiated gray level can be obtained by calculating the sum of the gray level and the randomly determined random value. For example, if there are M background pixels in the background, the M gray levels of the M background pixels and the randomly determined M gray levels can be calculated. The sum of the random values can be calculated to obtain M differentiated gray levels, where M is a positive integer.

[0061] For example, if the background has a first background pixel, a second background pixel, ..., and an Mth background pixel, the first gradation of the first background pixel is 206, the second gradation of the second background pixel is 188, ..., and the Mth gradation of the Mth pixel is 160, but the first random value randomly determined for the first background pixel is -1, the second random value randomly determined for the second background pixel is -2, ..., and the Mth random value randomly determined for the Mth background pixel is 1. When differentiating the gradations, the first sum value of the first gradation and the first random value is 205, the second sum value of the second gradation and the second random value is 186, ..., and the Mth sum value of the Mth gradation and the Mth random value is 161, and the determined first sum value, second sum value, ..., Mth sum value are the gradations after differentiation.

[0062] In the embodiment of the present disclosure, by setting the random value within a predetermined numerical range, the possibility that the difference between the differentiated gradations will be too large and the diffuse reflection effect will be unnatural can be reduced, and the generated diffuse reflection display effect can be made closer to the real display effect, resulting in a better reading experience.

[0063] In another alternative embodiment, differentiating the gray levels of the background pixels comprises: Dividing the background into one or more patches of a predetermined size and differentiating the gradation of the background pixels in each patch until the differentiating of the gradation of all the background pixels in the background is completed.

[0064] For example, the background can be divided into one or more 64x64 size patches, and after obtaining each patch, the gray scale of the background pixel of each patch can be differentiated until the gray scale of all the background pixels in the background is differentiated. Here, when differentiating each patch, each pixel can be scanned in turn to determine whether each pixel is a background pixel, and if the pixel is a background pixel, the gray scale of the pixel is differentiated, and if the pixel is not a background pixel, the gray scale of the pixel is kept unchanged.

[0065] In one alternative embodiment, if the pixel is not a background pixel, it can be determined whether the pixel is a reading pixel of a reading object, and if the pixel is a reading pixel, the color value of the pixel can be adjusted; if the pixel is neither a background pixel nor a reading pixel, the grayscale and color value of the pixel are kept unchanged.

[0066] In another alternative embodiment, increasing or decreasing the grey level of each background pixel of the background based on a random value within a predetermined range can include: determining a set number of random values from the predetermined range; and varying the gray level of the background pixels of the current patch based on the random value until the gray level of the background pixels of all of the patches has been varied.

[0067] Here, one random value may be set for each background pixel. For example, if the background has a first background pixel, a second background pixel, ..., and an Mth background pixel, the first random value randomly determined for the first background pixel is -1, the second random value randomly determined for the second background pixel is -2, ..., and the Mth random value randomly determined for the Mth background pixel is 1. In this way, one random value corresponds to each background pixel, and the gradation of each background pixel in the current patch can be changed based on each random value until the gradation of all background pixels has been changed. In the embodiment of the present disclosure, compared to processing all background pixels on the entire screen simultaneously, the background is divided into one or more patches of a predetermined size, and the gradation of each background pixel in each patch is differentiated and processed simultaneously. This reduces the amount of data to be transmitted and further reduces the system load.

[0068] In another alternative embodiment, increasing or decreasing the gray level of the background pixel of the current patch based on the random value comprises: According to the current RGB values of the background pixels in the current patch, obtain a target RGB value corresponding to the reading scene according to the set mapping relationship; and changing the numerical value of each component included in the target RGB value based on the random value.

[0069] In another alternative embodiment, obtaining a target RGB value corresponding to a reading scene according to a set mapping relationship based on the current RGB values of background pixels in the current patch includes determining whether the current RGB values of background pixels in the background correspond to predetermined RGB values of the reading scene, and if the current RGB values of background pixels in the background do not correspond to the predetermined RGB values of the reading scene, obtaining a target RGB value corresponding to the reading scene according to the set mapping relationship. For example, the obtained target RGB value may be smaller than or larger than the current RGB value. Here, the RGB value may include different color component values. That is, the current RGB value may include multiple current component values, the target RGB value may include multiple target component values, and the predetermined RGB value may include multiple predetermined component values.

[0070] Here, a predetermined RGB value corresponding to the reading scene may be preset. For example, if each background pixel in the background includes three current component values of colors, it can be determined whether each current component value corresponds to a predetermined component value, and if each current component value does not correspond to a predetermined component value, each target component value can be obtained.

[0071] For example, the acquired target component value of the first color is smaller than the current component value of the first color, the acquired target component value of the second color is smaller than the target component value of the first color, and the acquired target component value of the third color is smaller than the target component value of the second color. If the first color is red, the second color is green, and the third color is blue, by using the solution of the embodiment of the present disclosure, the blue light component can be reduced and the background color can be made closer to yellow, so that the current background corresponds to the reading scene.

[0072] Furthermore, for example, if the current RGB values of each background pixel in the background are all (255,255,255), that is, the current component values of the first color, the current component values of the second color, and the current component values of the third color of the background pixel are all 255, the background is pure white, which does not correspond to a reading scene, so the target RGB values of each background pixel are obtained according to a predetermined mapping relationship. For example, the obtained target RGB values may be (206,200,190), that is, the target component value of the first color may be 206, the target component value of the second color may be 200, and the target component value of the third color may be 190.

[0073] In another alternative embodiment, the background pixel not only includes a first color component value, a second color component value, and a third color component value, but also may include a fourth color component value, where the first color may be red, the second color may be green, the third color may be blue, and the fourth color may be white. When the background pixel has four color component values, the first color target component value, the second color target component value, the third color target component value, and the fourth color target component value can be obtained respectively.

[0074] After obtaining the target RGB values corresponding to the reading scene, the target RGB values can be differentiated to generate a diffuse reflection effect corresponding to the current reading scene in the background. In the embodiment of the present disclosure, the target RGB values are obtained before differentiating the grayscale of the background pixels, thus generating a diffuse reflection effect and optimizing the reading experience.

[0075] Here, after obtaining the target RGB value corresponding to the reading scene, the numerical values of each component contained in the target RGB value may be changed based on a random value, and the random value corresponding to each component value of the same background pixel is the same.

[0076] Here, taking the case where the target component values of different colors contained in a single background pixel are a first color target component value, a second color target component value, and a third color target component value, respectively, when differentiating the gradations of the background pixel, the first color target component value, the second color target component value, and the third color target component value can be randomly processed to obtain the differentiated target component value.

[0077] Still taking a first background pixel in the background as an example, if the first background pixel includes a first color channel, a second color channel, and a third color channel, a first target component value for the first color, a second target component value for the second color, and a third target component value for the third color can be determined, respectively. Next, a first random value for one first background pixel within a predetermined range is randomly selected. After the first random value is determined, a first sub-sum value between the first target component value and the first random value, a second sub-sum value between the second target component value and the first random value, and a third sub-sum value between the third target component value and the first random value are calculated, thereby determining the first sub-sum value, the second sub-sum value, and the third sub-sum value, and obtaining the differentiated target RGB value. For example, if the first target component value of the first color is 206, the second target component value of the second color is 200, and the third target component value of the third color is 190, and the first random value is -1, the first target component value after differentiation will be 205, the second target component value will be 199, the third target component value will be 189, and the target RGB values after differentiation will be (205, 199, 189).

[0078] In the embodiments of the present disclosure, when differentiating background pixels, target component values of the target RGB values of each background pixel are determined, and each target component value is randomly processed to obtain the differentiated target RGB value. By subdividing the differentiation process into RGB values, the resulting diffuse reflection display effect is more detailed and the reading experience is optimized.

[0079] In another alternative embodiment, the sum of the set number of random values is 0. Here, the number of background pixels that can be changed by each random value is the same, and the sum of the determined set number of random values is set to 0 so that the obtained target RGB value is equal to the average value of the RGB values of each background pixel in the current patch after differentiation processing.

[0080] Here, take the case where one background pixel is changed by each random number as an example. Assuming that the first background pixel is still the target RGB value (206, 200, 190), when the first random value is -1, the first differential RGB value after differentiation is (205, 199, 189), when the second random value is 1, the second differential RGB value after differentiation is (207, 201, 191), the sum of the first random value and the second random value is 0, and the average value of the first differential RGB value and the second differential RGB value is equal to the target RGB value.

[0081] Here, for example, when N background pixels are changed by each random number, N target RGB values may be changed simultaneously by each random number, where N is a positive integer. For example, when the first background pixel and the target RGB value are (206, 200, 190), if the first random value is -1, the N first differentiated RGB values after differentiation process correspond to the first random value, and the N first differentiated RGB values are all (205, 199, 189). If the second random value is 1, the N second differentiated RGB values after differentiation process correspond to the second random value, and the N second differentiated RGB values are all (207, 201, 191). The sum of the first random value and the second random value is 0, and the average value of the N first differentiated RGB values and the N second differentiated RGB values is equal to the target RGB value.

[0082] In the embodiment of the present disclosure, the sum of the set number of random values is set to 0, so that the acquired target RGB value is equal to the average value of the RGB values of each background pixel in the current patch after differentiation processing. This reduces the amount of light, creating a more detailed diffuse reflection display effect and optimizing the reading experience.

[0083] In another alternative embodiment, the method further comprises: determining a grayscale distribution section in which each pixel included in the display content is located; determining that the electronic device is in a reading scene when the number of the gray level distribution sections is less than a number threshold; Differentiating the grayscale of background pixels in the background includes: When the electronic device is in the reading scene, differentiating the grayscale of background pixels in the background.

[0084] For example, when the display content includes pictures, characters, and various types of information boxes, the grayscale of each pixel in the display content is not simple, and there are multiple corresponding grayscale distribution sections. In one alternative embodiment, the number threshold may be 4, that is, if the number of grayscale distribution sections is less than 4, it is determined that the electronic device is in a reading scene.

[0085] For example, the gray scale of each pixel included in the display content can be determined, and the gray scale of each pixel can be partitioned to determine the gray scale distribution section in which the gray scale of each pixel is located, and different gray scale distribution sections can be obtained. That is, the fewer the gray scale distribution sections, the more concentrated the gray scale distribution of each pixel, and the fewer the content types included in the display content, the closer it is to a reading scene. The more the gray scale distribution sections, the more dispersed the gray scale distribution of each pixel, and the more the content types included in the display content, the greater the difference from a reading scene.

[0086] In another alternative embodiment, the method further comprises: When the electronic device is in the reading scene, determining the gray scale distribution section corresponding to the most numerous pixels in the display content as the gray scale distribution section in which background pixels in the display content are located.

[0087] Here, after determining that the electronic device is in a reading scene, it is necessary to determine background pixels. In a reading scene, the area occupied by background pixels in the background is larger, so in this case, the grayscale distribution section corresponding to the most numerous pixels in the display content can be determined as the grayscale distribution section in which the background pixels are located. In another optional embodiment, the grayscale distribution section corresponding to the second most numerous pixels in the display content can be determined as the grayscale distribution section in which the reading pixels in the display content are located. In an embodiment of the present disclosure, it is determined whether the current scene is a reading scene based on the number of grayscale distribution sections, and background pixels are determined from the display content. The scene and display content are recognized based on a clustering analysis method, thereby improving the intelligence of background pixel processing.

[0088] In another alternative embodiment, the method further comprises: The method includes adjusting the RGB values of the reading pixels of the reading object.

[0089] Here, the reading object may include a picture and / or text. For example, when the reading object is text, when the background pixel is differentiated, the gradation of the background changes, so the RGB value of the reading pixel of the reading object displayed in the background needs to be adjusted so that the adjusted RGB value corresponds to the differentiated background pixel. For example, before the background pixel is differentiated, the RGB value of the reading object is (80,75,70). After the background pixel is differentiated, the RGB value of the reading object can be changed from (80,75,70) to a random value (58,64,64).

[0090] In the embodiments of the present disclosure, after differentiating the background pixels, the RGB values of the reading pixels of the reading object are adaptively adjusted so that the color of the reading object matches the background after differentiation processing, making the entire display screen of the electronic device more realistic and natural, and further improving the user's reading experience.

[0091] In another alternative embodiment, after adjusting the RGB values of the reading pixels of the reading object, the adjusted RGB values are differentiated with the gradation of the background pixels in the background to obtain the differentiated background and reading object. In this way, the color of the reading object can be made closer to the ink color of the paper page, and both the background and the reading object can exhibit a diffuse reflection display effect.

[0092] In another alternative embodiment, adjusting the RGB values of the reading pixels of the reading object includes simultaneously differentiating the grayscale of the background pixels in the background and the grayscale of the reading pixels of the reading object located on the background, and adjusting the color values of the reading pixels after differentiation.In the embodiment of the present disclosure, compared with differentiating the background separately and then color adjusting and differentiating the reading object, differentiating the background and the reading object together and then adjusting the color values of the reading object can reduce pixel processing steps and further improve processing efficiency.

[0093] In another alternative embodiment, the method further comprises: The method further comprises adjusting the RGB values of the reading pixels based on the differentiated background pixels to adjust the contrast between the background and the reading object.

[0094] In an embodiment of the present disclosure, after the background is differentiated, the background can exhibit a diffuse reflection display effect. In an embodiment of the present disclosure, after the diffuse reflection display effect is generated, the contrast between the background and the reading object can be adjusted by adjusting the RGB values of the reading pixels. Here, the contrast between the background and the reading object can be calculated based on the ratio of the differentiated grayscale to the reading object grayscale. For example, if the differentiated background pixel grayscale is 160 and the reading object grayscale is 64, the differentiated contrast between the differentiated background and the reading object is 5:1. In another optional embodiment, if the background and the reading object are differentiated simultaneously, the method further includes adjusting the contrast between the background and the reading object by adjusting the differentiated grayscale of the reading pixels and / or the differentiated background pixel grayscale.

[0095] In the embodiments of the present disclosure, after differentiating the background to generate a diffuse reflection effect, the RGB values of the reading pixels can be further adjusted to adjust the contrast between the differentiated background and the reading object, and the color brightness between the background and the reading object can be more coordinated.

[0096] In another alternative embodiment, the method further comprises: Obtaining lighting parameters of an environment where the display module is located, the lighting parameters including at least a color temperature and a brightness value; and converting the colors of the background and the reading object to chromatic adaptation using a color conversion mechanism based on the light parameters.

[0097] Here, the color transformation mechanism includes von Kries transformation model and linear Bradford transformation model. Take the case where the color transformation is von Kries transformation model as an example, in the implementation process, obtain the tristimulus values of the background and the object under the current environment, and convert the tristimulus values of the background and the object under the current environment into the tristimulus values of the cone response according to a predetermined transformation matrix; The tristimulus values of the cone response are adjusted based on the light parameters, and the adjusted tristimulus values of the cone response are converted into the tristimulus values of the background and the reading object in the target environment, thereby realizing the chromatic adaptation conversion of the background and the reading object. In color matching, the three colors used to mix colors to generate any color are called primary colors, and the number of the three primary colors required to match the color to be detected is called tristimulus values.

[0098] In the embodiments of the present disclosure, the color of the background and the reading object can be chromatically adapted by using a color conversion mechanism based on light parameters under different ambient light conditions (mainly color temperature and brightness), thereby making the final displayed background and the reading object more natural.

[0099] In the related art, the background color displayed on the display module of an electronic device is a uniform color, that is, the RGB values of background pixels at different positions in the background are the same, which causes the display module to have a sense of specular reflection and a poor reading experience.In the embodiments of the present disclosure, the background is differentiated so that each background pixel in the background looks almost the same, but is slightly closer to the pale yellow of paper, and the RGB values of adjacent background pixels are different, thereby imitating a diffuse reflection effect.

[0100] In the implementation process, a target RGB value corresponding to a reading scene may be first obtained, and the target RGB value may be a random value within a predetermined range. For example, if the current RGB values of each background pixel in the background are all (255,255,255), that is, the current component values of the first color, the current component value of the second color, and the current component value of the third color of the background pixel are all 255, the background is pure white, which does not correspond to a reading scene, so a target RGB value corresponding to the reading scene is obtained according to the set mapping relationship, and the obtained target RGB value may be, for example, (206,200,190).

[0101] After obtaining the target RGB values corresponding to the reading scene, the target RGB values may be differentiated to generate a diffuse reflection effect corresponding to the current reading scene in the background. For example, a random value may be randomly selected from a predetermined range, and the differentiated target RGB values may be obtained by summing the target RGB values and the randomly determined random value, and the predetermined range may be a data range between -6 and 6. In another alternative embodiment, the random values corresponding to each component value of the same background pixel are the same.

[0102] In another alternative embodiment, different color mixing ratios may be selected by different display components to achieve a more comfortable color range, and the different colors may include red, green, and blue. For example, if the RGB value of a background pixel is (206, 200, 190), when the background pixel is displayed on a display with a color temperature of 7300 Kelvin (K), the displayed color temperature will be around 6500 K, which is a white point visual range that is comfortable for the human eye.

[0103] In another alternative embodiment, a plurality of random values within a predetermined range may be set, and a predetermined random sequence may be formed based on the plurality of random values, and the number of random values may be set as needed. For example, if the size of the screen background is 64x64, that is, corresponding to 4096 background pixels, taking the previous 22 background pixels in this 64x64 background as an example, and the current RGB values of each original background pixel are all (255,255,255), in this case, the target RGB value (206,200,190) may be obtained and then adjusted based on the random values.

[0104] FIG. 2 is a calculation diagram of differentiating the target RGB values according to an exemplary embodiment. As shown in FIG. 2, the target RGB value is (206, 200, 190). In the first column, the target RGB value after adjustment based on the random value -1 is (205, 199, 189). In the third column, The random values in columns 1 and 4 are 0, and the target RGB values are kept unchanged, and in column 22, the target RGB values after adjustment based on the random value 4 are (210, 204, 194). Figure 3 is a color diagram of the background after differentiating the target RGB values according to an exemplary embodiment.

[0105] In another alternative embodiment, the target RGB values are differentiated based on a dither algorithm. When differentiating the target RGB values based on the dither algorithm, first, the screen displayed on the display module is divided into patches of 64x64 size. In each patch, each pixel is scanned in turn to determine whether it is a background pixel. If it is a background pixel, the target RGB value of the pixel is differentiated to the RGB value calculated based on the dither algorithm. If it is not a background pixel, it is determined whether it is a reading pixel. If it is a reading pixel, the color value of the pixel is adjusted. If it is neither a background pixel nor a reading pixel, the RGB value and color value of the pixel are maintained unchanged.

[0106] For example, if the RGB values of each background pixel in the 64x64 block are all (255,255,255), the RGB value of the reading pixel of the reading object is (0,0,0), and there is a red pixel within the coordinate range from (45,40) to (64,64). Then, in the differentiation process, the RGB values of the background pixels are differentiated to the RGB values obtained by calculating using a dither algorithm, and the color values of the reading pixels of the reading object are adjusted while maintaining the red portion unchanged. In the implementation process, the reading object may be adjusted to the ink color. Differentiating the RGB values using random values is simpler than differentiating the RGB values using a dither algorithm. Figure 4 is a schematic diagram of a display interface according to an exemplary embodiment. As shown in Figure 4, compared to a display interface 401 before differentiating the background pixels, a display interface 402 after differentiating the background pixels maintains the red portion 403 unchanged.

[0107] When differentiating background pixels, the target RGB values of the background change. Therefore, the color values of the reading pixels of the reading object displayed on the background must also be adjusted so that the adjusted color values correspond to the differentiated background pixels. For example, in the case of color printing, the CMYK color system is used in the printing process, so the ink color is not pure black but closer to dark brown, with CMYK representing cyan, magenta, yellow, and black. When processing the reading pixels on the display module of the electronic device, the color value of the font can be adjusted, for example, the RGB values of the reading object can be adjusted from (80,75,70) to (58,64,64), thus creating a more ink-like appearance. Figure 5 is a schematic diagram of the display effect of a reading object according to an exemplary embodiment. As shown in Figure 5, the color on the left side of Figure 5 is dark brown, and the color on the right side is pure black, with dark brown being closer to the ink-like appearance.

[0108] In another alternative embodiment, based on the principle of the application program corresponding to the application interface currently displayed on the electronic device, the surfaceflinger layer of the processor can be used to recognize the background from the application interface, differentiate the background, and then perform subsequent layer compositing on the differentiated background and the reading object.

[0109] In another embodiment, since the background color in a reading scene is relatively uniform, the pixel corresponding to the most frequently occurring gray scale may be determined as the background pixel in the background, and the pixel corresponding to the second most frequently occurring gray scale may be determined as the reading pixel. Here, the gray scales of the background and the reading object in the currently displayed content may be obtained, and the display content may be analyzed based on the integrated circuit of the processor and the display screen of the electronic device to further recognize the reading scene.

[0110] Figure 6A is a schematic diagram of a display interface for a first scene according to an exemplary embodiment, Figure 6B is a schematic diagram of a display interface for a second scene according to an exemplary embodiment, Figure 6C is a schematic diagram of a display interface for a third scene according to an exemplary embodiment, and Figure 6D is a schematic diagram of a display interface for a fourth scene according to an exemplary embodiment. As shown in Figures 6A-6D, in the first through fourth scenes, below each display interface is a grayscale distribution histogram (i.e., a statistical table of the number of times each grayscale appears) for each display interface acquired by the processor of the electronic device. The grayscales of the first display interface 601 and the third display interface 603 are relatively uniform, and therefore, the first display interface 601 and the third display interface 603 can be determined to be representative reading scenes. The second display interface 602 and the fourth display interface 604 do not have this characteristic, and therefore, the second display interface 602 and the fourth display interface 604 can be determined to be non-reading scenes.

[0111] In practical applications, the human eye reads books using reflected light, so the perceived color changes with changes in ambient light. In color theory, color appearance is defined as the retina of the human eye visually perceiving two colors as identical when their CIE tristimulus values are the same. However, two identical colors are visually perceived as identical only under viewing conditions where the ambient conditions, background, sample size, sample shape, surface characteristics, and lighting conditions are all the same. The hue, luminance, and saturation of a sample all change with differences in environmental factors such as lighting conditions.

[0112] Therefore, under different ambient lighting conditions (e.g., different color temperatures and brightnesses), the displayed colors must be further adapted to match the color appearance, i.e., chromatic adaptation. Figure 7 is a comparative schematic diagram of display interfaces according to an exemplary embodiment. As shown in Figure 7, display interface 701 only changes the display color temperature, and no other color images undergo chromatic adaptation. Display interface 702 is a chromatically adapted image, which is more natural than display interface 701 and matches the visual effect of printed matter reflecting light when the ambient lighting is warm. In embodiments of the present disclosure, under different ambient lighting conditions (e.g., different color temperatures and / or brightnesses), a color conversion mechanism can be used to convert the colors of the background and reading objects to a more natural appearance based on lighting parameters, ultimately resulting in a more natural-looking background and reading object.

[0113] 8A is a schematic diagram of a first display interface according to an exemplary embodiment, FIG. 8B is a schematic diagram of a second display interface according to an exemplary embodiment, and FIG. 8C is a schematic diagram of a third display interface according to an exemplary embodiment. As shown in FIGS. 8A-8C, the background of display interface 802 in eye-friendly mode in the related art is darker than the background of display interface 801 in the original image, but the background exhibits a specular reflection effect, which is more natural than the background color of display interface 803 after differentiation processing according to the technical solution of the present disclosure, and can also achieve a diffuse reflection display effect. In the embodiment of the present disclosure, the background is differentiated so that each background pixel in the background appears to be approximately the same, but is slightly closer to the pale yellow of paper, and the RGB values of adjacent background pixels are slightly different to simulate a diffuse reflection effect.

[0114] 9 is a block diagram of a display device according to an exemplary embodiment. As shown in FIG. 9, the device is applied to an electronic device equipped with a display module, and the display content of the display module includes a background and a reading object located on the background. The display device 900 mainly includes: a differentiation processing module 901 configured to differentiate gray levels of background pixels in the background; and a display module 902 configured to display the background based on the differentiated background pixels and display the reading object.

[0115] In another alternative embodiment, the differential processing module 901 further comprises: The gray level of each of the background pixels is configured to increase or decrease based on a random value within a predetermined range.

[0116] In another alternative embodiment, the differential processing module 901 further comprises: The background is divided into one or more patches of a predetermined size, and the background pixels of each patch are differentiated in tone until differentiation of the tone of all the background pixels in the background is completed.

[0117] In another alternative embodiment, the differential processing module 901 further comprises: determining a set number of random numbers from the predetermined range; The grayscale of the background pixel of the current patch is changed based on the random number until the grayscale value of the background pixel in all of the patches is changed.

[0118] In another alternative embodiment, the differential processing module 901 further comprises: According to the current RGB values of the background pixels in the current patch, obtain a target RGB value corresponding to the reading scene according to the set mapping relationship; The numerical value of each component included in the target RGB value is changed based on the random number.

[0119] In another alternative embodiment, the sum of the set number of random numbers is zero.

[0120] In another alternative embodiment, the device 900 further comprises: a first determination module configured to determine a grayscale distribution section in which each pixel included in the display content is located; a second determination module configured to determine that the electronic device is in a reading scene when the number of the gray scale distribution sections is less than a number threshold; The differentiation processing module 901 further The electronic device is configured to differentiate gray levels of background pixels in the background when the electronic device is in the reading scene.

[0121] In another alternative embodiment, the device 900 further comprises: The electronic device further includes a third determination module configured to determine, when the electronic device is in the reading scene, the gray scale distribution section corresponding to the most numerous pixels in the display content as the gray scale distribution section in which background pixels in the display content are located.

[0122] In another alternative embodiment, the device 900 further comprises: The reading object further includes an adjusting module configured to adjust RGB values of the reading pixels of the reading object.

[0123] In another alternative embodiment, the adjustment module further comprises: The contrast between the background and the reading object is adjusted by adjusting the RGB values of the reading pixels based on the differentiated background pixels.

[0124] In another alternative embodiment, the device 900 further comprises: an acquisition module configured to acquire lighting parameters of an environment where the display module is located, the lighting parameters including at least a color temperature and a luminance value; and a conversion module configured to perform chromatic adaptation conversion of the content displayed by the display module using a color conversion mechanism based on the light parameter.

[0125] Regarding the apparatus of the above embodiment, the specific manner in which each module performs the operation has already been described in detail in the embodiment relating to the method, and therefore a detailed description thereof will be omitted here.

[0126] 10 is a hardware block diagram of a display device according to an exemplary embodiment. For example, the device 500 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.

[0127] As shown in FIG. 10 , the device 500 may include one or more of a processing component 502, a memory 504, a power component 506, a multimedia component 508, an audio component 510, an input / output (I / O) interface 512, a sensor component 514, and a communication component 516.

[0128] The processing component 502 generally controls the overall operation of the device 500, such as operations related to display, phone calls, data communications, camera operation, and recording operations. The processing component 502 may include one or more processors 520 that execute instructions to complete all or some of the steps of the above methods. The processing component 502 may also include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module that facilitates interaction between the processing component 502 and the multimedia component 508.

[0129] Memory 504 is configured to store various types of data to support operation on device 500. Examples of this data include instructions for any application programs or methods for operating on device 500, contact data, phone book data, messages, pictures, videos, etc. Memory 504 may be implemented with any type of volatile or non-volatile storage, 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, magnetic or optical disk, or combinations thereof.

[0130] The power component 506 provides power to the various components of the device 500. The power component 506 may include a power management system, one or more power sources, and other components associated with the generation, management, and distribution of power to the device 500.

[0131] The multimedia component 508 includes a screen that provides an output interface between the device 500 and a user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to detect touches, swipes, and gestures on the touch panel. The touch sensors can detect not only the boundaries of a touch or swipe motion, but also the duration and pressure associated with the touch or swipe motion. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the device 500 is in an operational mode, such as a photo mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and / or the rear camera may be a fixed optical lens system or may have focusing and optical zoom capabilities.

[0132] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC) configured to receive external audio signals when the device 500 is in an operation mode, such as a call mode, a record mode, or a voice recognition mode. The received audio signals may then be stored in the memory 504 or transmitted by the communication component 516. In some embodiments, the audio component 510 further includes a loudspeaker for outputting audio signals.

[0133] The I / O interface 512 provides an interface between the processing component 502 and a peripheral interface module, which may be a keyboard, a click wheel, buttons, etc. These buttons may include, but are not limited to, a home page button, volume buttons, a start button, and a lock button.

[0134] The sensor component 514 includes one or more sensors for providing status assessments of various aspects of the device 500. For example, the sensor component 514 can detect the on / off state of the device 500, the relative positioning of components, such as the display and keypad of the device 500, and can further detect changes in the position of the device 500 or a component of the device 500, whether a user is touching the device 500, the orientation or acceleration / deceleration of the device 500, and temperature changes of the device 500. The sensor component 514 may also include a proximity sensor configured to detect the presence of a nearby object without physical contact. The sensor component 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0135] The communication component 516 is configured to facilitate wired or wireless communication between the device 500 and other devices. The device 500 can access a wireless network based on a communication standard, such as Wi-Fi, 2G, or 6G, or a combination thereof. In one exemplary embodiment, the communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 516 further includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented using radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth® (BT) technology, and other technologies.

[0136] In an exemplary embodiment, the apparatus 500 may 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 elements to perform the above methods.

[0137] In an exemplary embodiment, a non-transitory computer-readable storage medium containing instructions, such as a memory 504 containing instructions, may be provided, which may be executed by the processor 520 of the device 500 to complete the method. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0138] A non-transitory computer-readable storage medium, the instructions of which, when executed by a processor of a display device, enable the display device to perform a display method, the method being applicable to an electronic device having a display module, the display content of the display module including a background and a reading object located on the background, the method comprising: differentiating the gray levels of background pixels in the background; and displaying the background based on the background pixels after the gray scale differentiation, and displaying the reading object.

[0139] Other embodiments of the present disclosure will be readily apparent to those skilled in the art after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any modifications, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include means known in the art or commonly employed in the art that are not disclosed herein. The specification and examples are considered to be exemplary only, with the true scope and spirit of the present disclosure being indicated in the following claims.

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

Claims

1. A display method comprising: The present invention is applicable to an electronic device including a display module, wherein the display content of the display module includes a background and a reading object located on the background, and the method includes: determining a grayscale distribution section in which each pixel included in the display content is located; If the number of the gray scale distribution sections is less than a number threshold, determining that the electronic device is in a reading scene; differentiating gray levels between background pixels in the background when the electronic device is in the reading scene; and displaying the background based on the background pixels after gray-scale differentiation, and displaying the reading object.

2. differentiating gray levels between background pixels in the background includes: and increasing or decreasing the gradation between each of the background pixels based on a random value within a predetermined range. The method of claim 1.

3. differentiating the gray levels between the background pixels and dividing the background into a plurality of patches of a predetermined size and differentiating the gradation between the background pixels of each patch until the differentiation of gradation between all the background pixels in the background is completed. The method of claim 2.

4. Increasing or decreasing the gradient between each background pixel of the background based on a random value within a predetermined range may include: determining a set number of random values from the predetermined range; and varying the gradation between the background pixels of the current patch based on the random value until the gradation between the background pixels of all the patches is completely varied. The method of claim 3.

5. Increasing or decreasing the gradation between the background pixels of the current patch based on the random value According to the current RGB values of the background pixels in the current patch, obtain a target RGB value corresponding to the reading scene according to the set mapping relationship; and changing the numerical values of each component included in the target RGB value based on the random value. The method of claim 4.

6. The sum of the set number of random values is 0. The method of claim 4.

7. The method further comprises: When the electronic device is in the reading scene, the grayscale distribution section corresponding to the most numerous pixels in the display content is determined as the grayscale distribution section in which background pixels in the display content are located, thereby determining background pixels in the background. The method of claim 1.

8. The method further comprises: and adjusting the RGB values of the reading pixels of the reading object. The method of claim 1.

9. Adjusting the RGB values of the reading pixels of the reading object includes: and adjusting the RGB values of the reading pixels based on the differentiated background pixels to adjust the contrast between the background and the reading object. The method of claim 8.

10. The method further comprises: Obtaining lighting parameters of an environment where the display module is located, the lighting parameters including at least a color temperature and a brightness value; and converting the display content of the display module to a chromatic adaptation state by using a color conversion mechanism based on the light parameter. The method of claim 1.

11. A display device, The present invention is applicable to an electronic device including a display module, wherein the display content of the display module includes a background and a reading object located on the background, and the device: a first determination module configured to determine a grayscale distribution section in which each pixel included in the display content is located; a second determination module configured to determine that the electronic device is in a reading scene when the number of sections of the gray level distribution section is less than a number threshold; a differentiation processing module configured to differentiate grayscales between background pixels in the background when the electronic device is in the reading scene; a display module configured to display the background based on the differentiated background pixels and to display the reading object.

12. The differentiation processing module further comprises: The method is characterized in that the method is configured to increase or decrease the gradation between each of the background pixels based on a random value within a predetermined range.

12. The apparatus of claim 11.

13. The differentiation processing module further comprises: The method is configured to divide the background into a plurality of patches of a predetermined size and differentiate the gradations between the background pixels of each patch until differentiation of gradations between all the background pixels in the background is completed.

13. The apparatus of claim 12.

14. The differentiation processing module further comprises: determining a set number of random values from the predetermined range; and changing the gradation between the background pixels of the current patch based on the random value until the gradation between the background pixels of all the patches is completed.

14. The apparatus of claim 13.

15. The differentiation processing module further comprises: According to the current RGB values of the background pixels in the current patch, obtain a target RGB value corresponding to the reading scene according to the set mapping relationship; The device according to claim 14, wherein the device is configured to change the numerical value of each component included in the target RGB value based on the random value.

16. The sum of the set number of random values is 0.

16. The apparatus of claim 15.

17. The device further comprises: and a third determination module configured to determine, when the electronic device is in the reading scene, the grayscale distribution section corresponding to the most numerous pixels in the display content as the grayscale distribution section in which background pixels in the display content are located, thereby determining background pixels in the background.

12. The apparatus of claim 11.

18. The device further comprises: and an adjustment module configured to adjust the RGB values of the reading pixels of the reading object.

12. The apparatus of claim 11.

19. The adjustment module further comprises: The method is configured to adjust the contrast between the background and the reading object by adjusting the RGB values of the reading pixels based on the differentiated background pixels.

20. The apparatus of claim 18.

20. The device further comprises: an acquisition module configured to acquire lighting parameters of an environment where the display module is located, the lighting parameters including at least a color temperature and a luminance value; and a conversion module configured to convert the display content of the display module to a chromatic adaptation state by utilizing a color conversion mechanism based on the light parameter.

12. The apparatus of claim 11.

21. A display device, a processor; a memory configured to store processor-executable instructions; A display device, characterized in that the processor is configured to implement the steps of the display method according to any one of claims 1 to 10 when executed.

22. 1. A non-transitory computer-readable storage medium, comprising: A non-transitory computer-readable storage medium, the instructions of which, when executed by a processor of a display device, enable the device to perform the steps of the display method of any one of claims 1 to 10.

Citation Information

Patent Citations

  • Video signal processing apparatus

    JP2010160338A

  • Content-based image adjustment

    JP2010541009A

  • Ambient light adaptive displays with paper-like appearance

    JP2016118756A

  • Image processing apparatus, image processing system, and program

    JP2017162153A

  • Display device and display control program

    JP2017182497A