Display method, device and storage medium
By differentially processing the gray scale of background pixels and the RGB values of reading objects, combined with color conversion of ambient light parameters, the problem of visual fatigue and vision loss in electronic device reading scenarios is solved, and the reading experience and display effect are improved.
Patent Information
- Application Number
- CN202010440335.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-22
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-05-22
AI Technical Summary
In reading scenarios of electronic devices, the visual effect of the display is poor and long-term viewing will cause visual fatigue and vision loss for users, mainly due to visual fatigue caused by specular reflection.
By differentially processing the gray scale of the background pixels in the display module, the diffuse reflection effect of paper books is simulated, the RGB value of the reading object is adjusted to improve the contrast, and color conversion is performed according to the ambient light parameters to achieve color adaptation.
It reduces visual fatigue and vision loss caused by specular reflection, improves the reading experience, makes the display effect more realistic and natural, and reduces the system burden.
Smart Images

Figure CN113703881B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer communications, and in particular to a display method, device and storage medium. Background Art
[0002] With the rapid development of information technology, various electronic devices have provided a lot of convenience for people's lives. In order to facilitate human-computer interaction, most electronic devices are currently equipped with display modules for displaying various multimedia information. For example, pictures, texts and other information can be displayed based on the display modules of electronic devices.
[0003] For example, when the electronic device is a mobile phone, the background and the reading object on the background can be displayed through the display screen included in the mobile phone when the mobile phone is in a reading scene. However, when the user views the reading object based on the display screen, not only is the visual effect poor, but also in the case of long-term viewing of the display screen, it will cause visual fatigue to the user, and even cause vision loss. Summary of the invention
[0004] The present disclosure provides a display method, device and storage medium.
[0005] According to a first aspect of an embodiment of the present disclosure, a display method is provided, 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 above the background, and the method includes:
[0006] Differentiating the grayscale of background pixels of the background;
[0007] The background is displayed based on the background pixels after grayscale differentiation, and the reading object is displayed.
[0008] Optionally, the step of differentiating the grayscale of background pixels of the background includes:
[0009] Based on the random value within a preset range, the grayscale of each of the background pixels is increased or decreased.
[0010] Optionally, the differentiating the grayscale of the background pixel includes:
[0011] The background is divided into one or more blocks of preset sizes, and the grayscale of the background pixels of each block is differentiated until the grayscale differentiation of all the background pixels in the background is completed.
[0012] Optionally, increasing or decreasing the grayscale of each background pixel of the background based on a random value within a preset range includes:
[0013] Determining a set number of random values from the preset range;
[0014] Based on the random value, the grayscale of the background pixels of the current block is changed until the grayscale of the background pixels of all the blocks is changed.
[0015] Optionally, increasing or decreasing the grayscale of the background pixel of the current image block based on the random value includes:
[0016] Based on the current RGB value of the background pixel in the current image block, according to the set mapping relationship, a target RGB value corresponding to the reading scene is obtained;
[0017] Based on the random value, the values of the components included in the target RGB value are changed.
[0018] Optionally, the sum of the number of random values is set to 0.
[0019] Optionally, the method further includes:
[0020] Determining the grayscale distribution interval of each pixel included in the display content;
[0021] When the number of the grayscale distribution intervals is less than the number threshold, determining that the electronic device is in a reading scene;
[0022] The step of differentiating the grayscale of the background pixel of the background comprises:
[0023] When the electronic device is in the reading scene, the grayscales of the background pixels of the background are differentiated.
[0024] Optionally, the method further includes:
[0025] When the electronic device is in the reading scene, the grayscale distribution interval corresponding to the most pixels in the displayed content is determined as the grayscale distribution interval where the background pixels in the displayed content are located.
[0026] Optionally, the method further includes:
[0027] The RGB values of the reading pixels of the reading object are adjusted.
[0028] Optionally, adjusting the RGB value of the reading pixel of the reading object includes:
[0029] Based on the differentiated background pixels, the RGB values of the reading pixels are adjusted, thereby adjusting the contrast between the background and the reading object.
[0030] Optionally, the method further includes:
[0031] Acquire light parameters of the environment where the display module is located; wherein the light parameters at least include: color temperature and brightness value;
[0032] Based on the light parameters, a color conversion mechanism is used to perform color adaptation conversion on the content displayed by the display module.
[0033] According to a second aspect of an embodiment of the present disclosure, a display device is provided, 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 above the background, and the device includes:
[0034] A differentiation processing module configured to differentiate the grayscale of background pixels of the background;
[0035] The display module is configured to display the background based on the differentiated background pixels and display the reading object.
[0036] Optionally, the differentiation processing module is further configured as:
[0037] Based on the random value within a preset range, the grayscale of each of the background pixels is increased or decreased.
[0038] Optionally, the differentiation processing module is further configured as:
[0039] The background is divided into one or more blocks of preset sizes, and the grayscale of the background pixels of each block is differentiated until the grayscale differentiation of all the background pixels in the background is completed.
[0040] Optionally, the differentiation processing module is further configured as:
[0041] Determining a set number of random values from the preset range;
[0042] Based on the random value, the grayscale of the background pixels of the current block is changed until the grayscale of the background pixels of all the blocks is changed.
[0043] Optionally, the differentiation processing module is further configured as:
[0044] Based on the current RGB value of the background pixel in the current image block, according to the set mapping relationship, a target RGB value corresponding to the reading scene is obtained;
[0045] Based on the random value, the values of the components included in the target RGB value are changed.
[0046] Optionally, the sum of the number of random values is set to 0.
[0047] Optionally, the device further comprises:
[0048] A first determination module is configured to determine the grayscale distribution interval of each pixel included in the display content;
[0049] A second determination module is configured to determine that the electronic device is in a reading scene when the number of the grayscale distribution intervals is less than a number threshold;
[0050] The differentiation processing module is further configured as follows:
[0051] When the electronic device is in the reading scene, the grayscales of the background pixels of the background are differentiated.
[0052] Optionally, the device further comprises:
[0053] The third determination module is configured to determine, when the electronic device is in the reading scene, the grayscale distribution interval corresponding to the most pixels in the displayed content as the grayscale distribution interval where the background pixels in the displayed content are located.
[0054] Optionally, the device further comprises:
[0055] The adjustment module is configured to adjust the RGB value of the reading pixel of the reading object.
[0056] Optionally, the adjustment module is further configured to:
[0057] Based on the differentiated background pixels, the RGB values of the reading pixels are adjusted, thereby adjusting the contrast between the background and the reading object.
[0058] Optionally, the device further comprises:
[0059] An acquisition module is configured to acquire light parameters of the environment where the display module is located; wherein the light parameters at least include: color temperature and brightness value;
[0060] The conversion module is configured to perform color adaptation conversion on the content displayed by the display module based on the light parameters using a color conversion mechanism.
[0061] According to a third aspect of an embodiment of the present disclosure, there is provided a display device, including:
[0062] processor;
[0063] a memory configured to store processor-executable instructions;
[0064] Wherein, the processor is configured to: implement the steps in any one of the display methods in the first aspect when executed.
[0065] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of a display device, the device is enabled to perform the steps of any one of the display methods in the first aspect above.
[0066] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0067] It can be seen from the above embodiments that when the electronic device of the present disclosure is in a reading scene, it can differentiate the grayscale of the background pixels of the background, and then display the background based on the differentiated background pixels, and display the reading object on the background. By making the grayscale of each background pixel different, the present disclosure can simulate the diffuse reflection effect of a paper book, and simulate a feeling similar to a paper book based on the display module of the electronic device; through differentiated grayscale, it can reduce the problems of visual fatigue and decreased vision caused by specular reflection, thereby improving the reading experience.
[0068] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0070] Figure 1 The figure is a flow chart of a display method according to an exemplary embodiment.
[0071] Figure 2 is a schematic diagram showing calculation of differentiated target RGB values according to an exemplary embodiment.
[0072] Figure 3 FIG. 4 is a schematic diagram showing the color of a background after differentiating target RGB values according to an exemplary embodiment.
[0073] Figure 4 is a schematic diagram of a display interface according to an exemplary embodiment.
[0074] Figure 5 It is a schematic diagram showing the display effect of a reading object according to an exemplary embodiment.
[0075] Fig. 6A is a schematic diagram of a display interface of a first scene according to an exemplary embodiment.
[0076] Figure 6B is a schematic diagram of a display interface of a second scenario according to an exemplary embodiment.
[0077] Figure 6Cis a schematic diagram of a display interface of a third scenario according to an exemplary embodiment.
[0078] Fig.6D is a schematic diagram of a display interface of a fourth scenario according to an exemplary embodiment.
[0079] Figure 7 is a comparative schematic diagram of a display interface according to an exemplary embodiment.
[0080] Fig. 8A is a schematic diagram of a first display interface according to an exemplary embodiment.
[0081] Figure 8B is a schematic diagram of a second display interface according to an exemplary embodiment.
[0082] Figure 8C is a schematic diagram of a third display interface according to an exemplary embodiment.
[0083] Fig. 9 is a block diagram of a display device according to an exemplary embodiment.
[0084] Fig.10 The figure is a hardware structure block diagram of a display device according to an exemplary embodiment. DETAILED DESCRIPTION
[0085] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0086] Figure 1 is a flow chart of a display method according to an exemplary embodiment. Figure 1 As shown, the method is applied to an electronic device including a display module, wherein the display content of the display module includes: a background and a reading object located above the background, and mainly includes the following steps:
[0087] In step 101, the grayscale of background pixels of the background is differentiated;
[0088] In step 102, the background is displayed based on the differentiated background pixels, and the reading object is displayed.
[0089] The display method in the embodiment of the present disclosure can be applied to an electronic device including a display module, wherein the electronic device includes a mobile terminal and a fixed terminal. Here, the mobile terminal includes a mobile phone, a laptop computer, 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 screen of the electronic device.
[0090] In the disclosed embodiment, a setting screen can be displayed by a display module on an electronic device. For example, a reading object can be displayed based on the display module of the electronic device, wherein the reading object includes a picture and / or text. When a reading object is displayed on the display module, it can be determined that the electronic device is in a reading scene.
[0091] In other optional embodiments, a deep learning network model may be used to analyze the image displayed by the display module to determine the background and the reading object, respectively, wherein the deep learning network model includes a neural network model, etc. When the reading object is determined to be text, the reading object may be identified based on an optical character recognition model (OCR), and the background and the reading object may be segmented from the image displayed by the display module.
[0092] When it is determined that the electronic device is in a reading scene, the background and the reading object located above the background can be determined based on the screen currently displayed by the display module. In the embodiment of the present disclosure, the grayscale of the background pixel of the background can be differentiated. In an optional embodiment, the grayscale level (grayscale) of the background pixel can be obtained according to the RGB value of the background pixel, wherein the RGB value is the value assigned by the processor of the electronic device when the background pixel of the background is digitized, and the RGB value represents the average brightness information of the background pixel of the background, or the average reflection (transmission) density information of the background pixel. For example, when 8 bits are used to represent a pixel, the pixel has a total of 256 grayscale levels (grayscale is between 0 and 255); when 12 bits are used to represent a pixel, the pixel has a total of 4096 grayscale levels; when 16 bits are used to represent a pixel, the pixel has a total of 65536 grayscale levels, where the number of bits indicates how many binary bits are used in the bitmap to represent the color of each pixel. In the embodiment of the present disclosure, 8 bits can be used to represent a pixel.
[0093] In other optional embodiments, the diffuse reflection display effect of the background can be determined according to the current grayscale of the background pixels. For example, if the current grayscales of the background pixels in the background are the same, it is determined that the background currently has no diffuse reflection display effect; if the difference between the current grayscales of the background pixels in the background pixels is less than the set difference, it is determined that the current display effect of the background is a weak diffuse reflection display effect; if the difference between the current grayscales of the background pixels in the background pixels is greater than or equal to the set difference, it is determined that the current display effect of the background is a strong diffuse reflection display effect.
[0094] In one embodiment, when the background currently does not have a diffuse reflection display effect, in the process of differentiating grayscales, the difference between the grayscales can be made the first set grayscale threshold.
[0095] In another embodiment, when the current display effect of the background is a weak diffuse reflection display effect, in the process of differentiating grayscales, the difference between each grayscale can be made a second set grayscale threshold, wherein the second set grayscale threshold is smaller than the first set grayscale threshold.
[0096] In another embodiment, when the current display effect of the background is a strong diffuse reflection effect, the difference between the grayscales can be set to a third set grayscale threshold, wherein the third set grayscale threshold is smaller than the second set grayscale threshold.
[0097] After the grayscale is differentiated, the background can be displayed based on the differentiated background pixels, and the reading object located on the background can be displayed. For example, when the background currently has no diffuse reflection display effect, the diffuse reflection display effect can be simulated by differentiating the grayscale of the background pixels; when the current diffuse reflection display effect of the background is weak, the current diffuse reflection display effect can be enhanced by differentiating the grayscale of the background pixels.
[0098] In the embodiment of the present disclosure, when the electronic device is in a reading scene, the grayscale of the background pixels of the background can be differentiated, and then the background is displayed based on the differentiated background pixels, and the reading object on the background is displayed. The present disclosure can simulate the diffuse reflection effect of a paper book by making the grayscale of each background pixel different, and simulate a feeling similar to a paper book based on the display module of the electronic device; through differentiated grayscale, the problem of visual fatigue and vision loss caused by specular reflection can be reduced, thereby improving the reading experience.
[0099] In other optional embodiments, the method further includes: simultaneously differentiating the grayscale of background pixels of the background and the grayscale of reading pixels of the reading object located above the background.
[0100] In other optional embodiments, the grayscale of the background pixels may be differentiated first, and then the grayscale of the reading pixels may be differentiated; or, the grayscale of the reading pixels may be differentiated first, and then the grayscale of the background pixels may be differentiated. As long as the background and the reading object can present a diffuse reflection display effect, the specific execution steps are not limited.
[0101] In other optional embodiments, the grayscale of the differentiated reading pixel includes: performing random processing on the reading pixels with the same grayscale to obtain differentiated grayscale. In the disclosed embodiment, the background and the reading object can be processed differentially at the same time, so that the picture composed of the background and the reading object can present a diffuse reflection effect, and compared with only performing differential processing on the background or the reading object, the final picture can be made more real and natural; and the background and the reading object are processed differentially at the same time, which improves the processing efficiency compared with processing the background and the reading object separately.
[0102] In other optional embodiments, the step of differentiating the grayscale of background pixels of the background includes:
[0103] Background pixels with the same grayscale are randomized to obtain differentiated background pixels.
[0104] Here, before randomizing the background pixels with the same gray scale, the method further includes: determining the number of background pixels with the same gray scale; determining whether the number of background pixels with the same gray scale is greater than or equal to a set number threshold; when the number of background pixels with the same gray scale is greater than or equal to the set number threshold, randomizing the background pixels with the same gray scale to obtain differentiated background pixels.
[0105] For example, if a single white background pixel is used as the color, or a single black background pixel is used as the color, if it is directly displayed, the displayed background color will be single, and a visual effect similar to mirror reflection will appear. The visual effect that is beneficial to vision protection is: different degrees of white background or different degrees of black background. In the embodiment of the present application, the gray scale after differentiation can be obtained by randomly differentiating the background pixels, so that the gray scale of the background pixels is different, thereby achieving a diffuse reflection display effect.
[0106] In other optional embodiments, when the number of background pixels with the same gray scale is less than the set number threshold, the gray scale of the background pixels is maintained unchanged. When the number of background pixels with the same gray scale is small, there will be no significant impact on the diffuse reflection display effect. For example, when there are two background pixels with the same gray scale, there will be basically no impact on the diffuse reflection display effect, and in this case, there is no need to perform randomization processing on the two background pixels.
[0107] In the embodiment of the present disclosure, in the process of performing differentiation processing on background pixels with the same gray scale, the differentiation processing is performed in a random manner. Compared with the differentiation processing performed in a fixed manner, the generated diffuse reflection display effect can be closer to the real display effect and the reading experience is better.
[0108] In some other embodiments, diffuse reflection effects are obtained by differentiating grayscales, and a diffuse reflection model that simulates diffuse reflection effects under different lighting environments can be obtained in advance, and the grayscale of background pixels is adjusted according to the diffuse reflection model to obtain differentiated background pixels. For example, a diffuse reflection model for ceiling light, a diffuse reflection model for desk light, and a diffuse reflection model under sunlight. The electronic device can select a suitable diffuse reflection model according to the current lighting environment, rather than random differentiation processing, to obtain a diffuse reflection effect that is similar to a real paper page in different scenarios, thereby improving the reading experience and protecting the user's eyesight.
[0109] In other optional embodiments, the step of differentiating the grayscale of background pixels of the background includes:
[0110] Based on the random value within a preset range, the grayscale of each of the background pixels is increased or decreased.
[0111] In the embodiment of the present disclosure, a random value may be randomly selected within a preset range, and the grayscale of each background pixel may be increased or decreased based on the random value to obtain differentiated background pixels.
[0112] Here, multiple random values within a preset range can be set, and a preset random sequence can be formed based on multiple random values. In the embodiment of the present disclosure, the preset range can be a range greater than or equal to the second set threshold and less than or equal to the first set threshold. Since in the process of performing differentiated grayscale, if the random value is greater than the first set threshold or less than the second set threshold, the diffuse reflection effect produced will be unnatural, so it is necessary to standardize the random value within the preset range, wherein the first set threshold can be 6 and the second set threshold can be -6. In other optional embodiments, the first set threshold and the second set threshold can be set as needed, for example, the first set threshold can be 13, the second set threshold can be 0, etc., which are not specifically limited here.
[0113] In other optional embodiments, the preset range is (-a, a), where a can be a positive number greater than or equal to 6 and less than or equal to 13. In the embodiment of the present disclosure, when the random value is within the preset range, a better diffuse reflection effect can be achieved.
[0114] In the process of performing differential processing on the grayscale of a background pixel in the background, a random value can be randomly selected from a preset random sequence to process the grayscale, thereby obtaining a differentiated grayscale. In the implementation process, the differentiated grayscale can be obtained by calculating the sum between the grayscale and the randomly determined random value. For example, if there are M background pixels in the background, the sum between the M grayscales of the M background pixels and the M randomly determined random values can be calculated respectively to obtain M differentiated grayscales, where M is a positive integer.
[0115] For example, when there are a first background pixel, a second background pixel, ..., and an Mth background pixel in the background, if the first grayscale of the first background pixel is 206, the second grayscale of the second background pixel is 188, ..., and the Mth grayscale of the Mth pixel is 160; and 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 the process of differentiating the grayscale, the first sum value between the first grayscale and the first random value can be determined to be 205, the second sum value between the second grayscale and the second random value can be determined to be 186, ..., and the Mth sum value between the Mth grayscale and the Mth random value can be determined to be 161, and the determined first sum value, second sum value, ..., and Mth sum value are the differentiated grayscales.
[0116] In the disclosed embodiment, by standardizing the random value within a preset numerical range, the possibility of unnatural diffuse reflection effect caused by excessive deviation between grayscales after differentiation can be reduced, thereby making the generated diffuse reflection display effect closer to the real display effect and providing a better reading experience.
[0117] In other optional embodiments, the differentiating the grayscale of the background pixel includes:
[0118] The background is divided into one or more blocks of preset sizes, and the grayscale of the background pixels of each block is differentiated until the grayscale differentiation of all the background pixels in the background is completed.
[0119] For example, the background can be divided into one or more blocks of size 64x64. After obtaining each block, the grayscale of the background pixels of each block can be differentiated until the grayscale differentiation of all the background pixels in the background is completed. Here, in the process of performing differentiation processing on each block, each pixel can be scanned in turn to determine whether each pixel is a background pixel. When the pixel is a background pixel, the grayscale of the pixel is differentiated; when the pixel is not a background pixel, the grayscale of the pixel is maintained unchanged.
[0120] In an optional implementation, when the pixel is not a background pixel, it can be determined whether the pixel is a reading pixel of the reading object; when 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 maintained unchanged.
[0121] In other optional embodiments, increasing or decreasing the grayscale of each background pixel of the background based on a random value within a preset range includes:
[0122] Determining a set number of random values from the preset range;
[0123] Based on the random value, the grayscale of the background pixels of the current block is changed until the grayscale of the background pixels of all the blocks is changed.
[0124] Here, a random value can be set for each background pixel. For example, when there are a first background pixel, a second background pixel, ..., and an Mth background pixel in the background, 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, each background pixel corresponds to a random value, and in this way, the grayscale of each background pixel of the current block can be changed based on each random value until the grayscale of all background pixels is changed. In the disclosed embodiment, by dividing the background into one or more blocks of preset sizes, and performing differentiated processing on the grayscale of each background pixel in each block, compared to processing all background pixels in the entire picture at the same time, the amount of data that needs to be processed at the same time can be reduced, thereby reducing the burden on the system.
[0125] In other optional embodiments, increasing or decreasing the grayscale of the background pixel of the current image block based on the random value includes:
[0126] Based on the current RGB value of the background pixel in the current image block, according to the set mapping relationship, a target RGB value corresponding to the reading scene is obtained;
[0127] Based on the random value, the values of the components included in the target RGB value are changed.
[0128] In other optional embodiments, the target RGB value corresponding to the reading scene is obtained based on the current RGB value of the background pixel in the current block according to the set mapping relationship, including: determining whether the current RGB value of the background pixel of the background corresponds to the preset RGB value of the reading scene; when the current RGB value of the background pixel of the background does not correspond to the preset RGB value of the reading scene, then obtaining the target RGB value corresponding to the reading scene according to the set mapping relationship. For example, the obtained target RGB value may be lower or higher than the current RGB value. Here, the RGB value may contain component values of different colors. That is, the current RGB value contains multiple current component values, the target current RGB value contains multiple target component values, and the preset RGB value contains multiple preset component values.
[0129] Here, the preset RGB values corresponding to the reading scene can be preset. For example, when each background pixel in the background contains current component values of three colors, it can be determined whether each current component value corresponds to the preset component value, and when each current component value does not correspond to the preset component value, each target component value can be obtained.
[0130] For example, the target component value of the first color obtained is lower than the current component value of the first color; the target component value of the second color obtained is lower than the target component value of the first color; the target component value of the third color obtained is lower than the target component value of the second color. When the first color is red, the second color is green, and the third color is blue, the solution in the embodiment of the present disclosure can be used to reduce the component of blue light and make the background color yellowish, so that the current background corresponds to the reading scene.
[0131] For another example, when the current RGB values of all background pixels in the background are (255, 255, 255), that is, the current component values of the first color, the second color, and the third color of the background pixel are all 255, then the background is pure white. Since the pure white color does not correspond to the reading scene, the target RGB value of each background pixel is obtained according to the preset mapping relationship. For example, the obtained target RGB value may be (206, 200, 190), that is, the target component value of the first color is 206, the target component value of the second color is 200, and the target component value of the third color is 190.
[0132] In other optional embodiments, the background pixel may include a fourth color component value on the basis of including the first color component value, the second color component value and the third color component value, wherein 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. In the case where the background pixel has four color component values, the target component value of the first color, the target component value of the second color, the target component value of the third color, and the target component value of the fourth color may be obtained respectively.
[0133] After obtaining the target RGB value corresponding to the reading scene, the target RGB value can be differentiated to make the background produce a diffuse reflection effect corresponding to the current reading scene. In the embodiment of the present disclosure, before differentiating the grayscale of the background pixel, the target RGB value is first obtained, so that the reading experience can be better based on the diffuse reflection effect.
[0134] Here, after the target RGB value corresponding to the reading scene is obtained, the values of the components included in the target RGB value may be changed based on the random value, wherein the random values corresponding to the component values of the same background pixel are the same.
[0135] Here, taking the example that the target component values of different colors contained in a single background pixel are respectively the target component value of the first color, the target component value of the second color and the target component value of the third color, in the process of differentiating the grayscale of the background pixel, the target component value of the first color, the target component value of the second color and the target component value of the third color can be randomized respectively to obtain differentiated target component values.
[0136] Still taking the first background pixel in the background as an example, when the first background pixel includes the first color channel, the second color channel and the third color channel, the first target component value of the first color, the second target component value of the second color and the third target component value of the third color can be determined respectively. Then, a first random value for the first background pixel is randomly selected within the preset range. After determining the first random value, the first sub-sum value between the first target component value and the first random value, the second sub-sum value between the second target component value and the first random value, and the third sub-sum value between the third target component value and the first random value can be calculated, and the first sub-sum value, the second sub-sum value and the third sub-sum value determined are used to obtain the differentiated target RGB value. For example, when 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, if the first random value is -1, the differentiated first target component value is 205, the second target component value is 199, and the third target component value is 189, and the differentiated target RGB value is (205, 199, 189).
[0137] In the embodiment of the present disclosure, in the process of differentiating the background pixels, the target component value of the target RGB value of each background pixel can be determined, and each target component value can be randomized to obtain a differentiated target RGB value. By refining the differentiation process to the RGB value, the generated diffuse reflection display effect can be made more delicate and the reading experience can be better.
[0138] In other optional embodiments, the sum of the set number of random values is 0. Here, the number of background pixels that can be changed by each random number is the same, and in order to make the obtained target RGB value equal to the average value of the RGB values of each background pixel in the current block after differential processing, the sum of the set number of random values is determined to be 0.
[0139] Here, take changing one background pixel for each random number as an example. Still take the first background pixel and the target RGB value as (206, 200, 190) as an example, if the first random value is -1, the first differentiated RBG value after differentiation is (205, 199, 189), if the second random value is 1, the second differentiated RBG value after differentiation is (207, 201, 191), wherein the sum of the first random value and the second random value is 0, and the average of the first differentiated RBG value and the second differentiated RBG value is equal to the target RGB value.
[0140] Here, taking each random number changing N background pixels as an example, each random number can simultaneously change N target RGB values, where N is a positive integer. Still taking the first background pixel, the target RGB value is (206, 200, 190) as an example, if the first random value is -1, the first random value corresponds to N first differentiated RBG values after differentiation processing, and the N first differentiated RBG values are all (205, 199, 189); if the second random value is 1, the second random value corresponds to N second differentiated RBG values after differentiation processing, and the N second differentiated RBG values are all (207, 201, 191), where the sum of the first random value and the second random value is 0, and the average value of the N first differentiated RBG values and the N second differentiated RBG values is equal to the target RGB value.
[0141] In the disclosed embodiment, by making the sum of a set number of random values 0, the obtained target RGB value can be equal to the average value of the differentiated RGB values of each background pixel in the current block, which can make the generated diffuse reflection display effect more delicate and provide a better reading experience.
[0142] In other optional embodiments, the method further includes:
[0143] Determining the grayscale distribution interval of each pixel included in the display content;
[0144] When the number of the grayscale distribution intervals is less than the number threshold, determining that the electronic device is in a reading scene;
[0145] The step of differentiating the grayscale of the background pixel of the background comprises:
[0146] When the electronic device is in the reading scene, the grayscales of the background pixels of the background are differentiated.
[0147] Here, because the grayscale distribution intervals of each pixel contained in the displayed content are different in different scenarios, for example, when the displayed content includes pictures, texts and various types of information boxes at the same time, the grayscale of each part of the pixels in the displayed content is relatively not very simple, and there will be multiple corresponding grayscale distribution intervals. In an optional embodiment, the number threshold can be 4, that is, when the number of grayscale distribution intervals is less than 4, it is determined that the electronic device is in a reading scenario.
[0148] For example, the grayscale of each pixel included in the displayed content can be determined, and the grayscale of each pixel can be partitioned to determine the grayscale distribution interval of each pixel, thereby obtaining different grayscale distribution intervals. In other words, the fewer the number of grayscale distribution intervals, the more concentrated the grayscale distribution of each pixel, the fewer the types of content included in the displayed content, and the closer it is to the reading scene; the more the number of grayscale distribution intervals, the more dispersed the grayscale distribution of each pixel, the more types of content included in the displayed content, and the greater the difference from the reading scene.
[0149] In other optional embodiments, the method further includes:
[0150] When the electronic device is in the reading scene, the grayscale distribution interval corresponding to the most pixels in the displayed content is determined as the grayscale distribution interval where the background pixels in the displayed content are located.
[0151] Here, after determining that the electronic device is in a reading scene, it is necessary to determine the background pixels. Since the area occupied by the background pixels in the reading scene is relatively large, the grayscale distribution interval corresponding to the most pixels in the displayed content can be determined as the grayscale distribution interval where the background pixels are located. In other optional embodiments, the grayscale distribution interval corresponding to the second most pixels in the displayed content can be determined as the grayscale distribution interval where the reading pixels in the displayed content are located. In the disclosed embodiment, whether the current scene is a reading scene is determined by the number of grayscale distribution intervals, and the background pixels are determined from the displayed content. Based on the cluster analysis method, the scene and the displayed content are identified, thereby improving the intelligence of the background pixel processing.
[0152] In other optional embodiments, the method further includes:
[0153] The RGB values of the reading pixels of the reading object are adjusted.
[0154] Here, the reading object includes pictures and / or texts. Taking the case where the reading object is text as an example, in the process of differentiating the background pixels, since the grayscale of the background changes, it is also necessary to adjust the RGB values of the reading pixels of the reading object displayed on the background so that the adjusted RGB values correspond to the differentiated background pixels. For example, before differentiating the background pixels, the RGB value of the reading object is (80, 75, 70). After differentiating the background pixels, the RGB value of the reading object can be changed from (80, 75, 70) to a random value (58, 64, 64).
[0155] In the disclosed embodiment, after differentiating the background pixels, the RGB values of the reading pixels of the reading object can be adaptively adjusted to make the color of the reading object more closely match the background after differentiation, thereby making the entire display screen of the electronic device more realistic and natural, thereby improving the user's reading experience.
[0156] In other optional embodiments, after adjusting the RGB value of the reading pixel of the reading object, the adjusted RGB value and the grayscale of the background pixel of the background are subjected to the same differentiation process to obtain the background and the reading object after the differentiation process. In this way, not only can the color of the reading object be closer to the ink color on the paper page, but also the background and the reading object can both present a diffuse reflection display effect.
[0157] In other optional embodiments, the adjusting the RGB value of the reading pixel of the reading object includes: simultaneously differentiating the grayscale of the background pixel of the background and the grayscale of the reading pixel of the reading object located above the background; and adjusting the color value of the differentiated reading pixel. In the embodiment of the present disclosure, after the background and the reading object are uniformly differentiated, the color value of the reading object is adjusted. Compared with performing differentiation processing on the background separately and then performing color adjustment and differentiation processing on the reading object, the pixel processing steps can be reduced, thereby improving the processing efficiency.
[0158] In other optional embodiments, the method further includes:
[0159] Based on the differentiated background pixels, the RGB values of the reading pixels are adjusted to adjust the contrast between the background and the reading object.
[0160] In the embodiment of the present disclosure, after the background is differentiated, the background can present a diffuse reflection display effect. In the embodiment of the present disclosure, after the diffuse reflection display effect has been generated, the contrast between the background and the reading object can be adjusted by adjusting the RGB value of the reading pixel. Here, the contrast between the background and the reading object can be calculated based on the ratio between the differentiated grayscale and the grayscale of the reading object. For example, the grayscale of the differentiated background pixel is 160, and the grayscale of the reading object is 64, then the contrast between the differentiated background and the reading object is 5:1. In other optional embodiments, when the background and the reading object are differentiated at the same time, the method further includes: adjusting the contrast between the background and the reading object by adjusting the grayscale of the differentiated reading pixel and / or the grayscale of the differentiated background pixel.
[0161] In the disclosed embodiment, after differentiating the background to produce a diffuse reflection effect, the contrast between the differentiated background and the reading object can be adjusted by adjusting the RGB value of the reading pixel, so that the color brightness between the background and the reading object can be more coordinated.
[0162] In other optional embodiments, the method further includes:
[0163] Acquire light parameters of the environment where the display module is located; wherein the light parameters at least include: color temperature and brightness value;
[0164] Based on the light parameters, a color conversion mechanism is used to perform chromatic adaptation conversion on the colors of the background and the reading object.
[0165] Here, the color conversion mechanism includes: vonKries conversion model, linear Bradford conversion model. Taking the vonKries conversion model as an example, in the implementation process, the tristimulus values of the background and the reading object in the current environment can be obtained; the tristimulus values of the background and the reading object are converted into cone response tristimulus values based on the preset conversion matrix; the cone response tristimulus values are adjusted according to the light parameters, and the adjusted cone response tristimulus values are converted into the tristimulus values of the background and the reading object in the target environment, thereby realizing the color adaptation conversion of the background and the reading object. In color matching, the three colors used for color mixing to produce any color are called three primary colors, and the number of three primary colors required when achieving color matching with the color to be measured is called tristimulus value.
[0166] In the disclosed embodiment, under different ambient lights (mainly color temperature and brightness), based on light parameters, a color conversion mechanism is used to perform color adaptation conversion on the colors of the background and reading object, so that the final displayed background and reading object can be made more natural.
[0167] In the related art, the color of the background displayed on the display module of the electronic device is uniform, that is, the RGB values of the background pixels at different positions in the background are the same, so that the display module will produce a mirror reflection feeling, and the reading experience is poor. In the embodiment of the present disclosure, the background can be differentiated so that each background pixel in the background looks roughly the same, but slightly biased towards the light yellow of paper, and the RGB values of adjacent background pixels are slightly different, imitating the effect of diffuse reflection.
[0168] In the implementation process, the target RGB value corresponding to the reading scene can be first obtained, wherein the target RGB value can be a value within a random preset range. For example, when the current RGB values of the background pixels in the background are all (255, 255, 255), that is, the current component value 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, then the background is pure white. Since the pure white color does not correspond to the reading scene, the target RGB value corresponding to the reading scene is obtained according to the set mapping relationship. For example, the obtained target RGB value can be (206, 200, 190).
[0169] After the target RGB value corresponding to the reading scene is obtained, the target RGB value can be processed differentially to make the background produce a diffuse reflection effect corresponding to the current reading scene. For example, a random value can be randomly selected within a preset range, and the differentiated target RGB value can be obtained by calculating the sum of the target RGB value and the randomly determined random value, wherein the preset range can be a data range greater than or equal to -6 and less than or equal to 6. In other optional embodiments, the random values corresponding to the component values of the same background pixel are the same.
[0170] In other optional embodiments, different color ratios can be selected according to different display components to achieve a more comfortable color range, where different colors include: red, green and blue. For example, if the RGB value of the background pixel is (206, 200, 190), when the background pixel is displayed on a display screen with a color temperature of 7300 Kelvin (K), the displayed color temperature is about 6500K, which is a white point visual range that is more comfortable for human eyes.
[0171] In other optional embodiments, multiple random values within a preset range can be set, and a preset random sequence can be formed based on the multiple random values, wherein the number of random values can be set as needed. For example, if the screen background size is 64x64, that is, there are 4096 background pixels, taking the first 22 background pixels in the 64x64 background as an example, the original current RGB values of each background pixel are (255, 255, 255), then the target RGB value (206, 200, 190) can be obtained, and then the target RGB value can be adjusted according to the random value.
[0172] Figure 2 is a schematic diagram showing the calculation of differentiated target RGB values according to an exemplary embodiment. Figure 2 As shown, the target RGB value is (206, 200, 190). In the first column, the target RGB value adjusted based on the random value -1 is (205, 199, 189); the random values in the third and fourth columns are 0, maintaining the target RGB value unchanged; ...; in the 22nd column, the target RGB value adjusted based on the random value 4 is (210, 204, 194). Figure 3 FIG. 4 is a schematic diagram showing the color of a background after differentiating target RGB values according to an exemplary embodiment.
[0173] In other optional embodiments, the target RGB value can also be differentiated based on a dither algorithm. In the process of differentiating the target RGB value based on the dither algorithm, the picture displayed on the display module can be first divided into 64x64 blocks. In each block, each pixel is scanned in turn to determine whether each pixel is a background pixel. When the pixel is a background pixel, the target RGB value of the pixel is differentiated into an RGB value calculated based on the dither algorithm; when the pixel is not a background pixel, it is determined whether the pixel is a reading pixel. If the pixel is a reading pixel, the color value of the pixel is adjusted; if the pixel is neither a background pixel nor a reading pixel, the RGB value and color value of the pixel are maintained unchanged.
[0174] For example, if the RGB values of all background pixels in the 64x64 block are (255, 255, 255), the RGB value of the reading pixel of the reading object is (0, 0, 0), and there are red pixels in the range of coordinates (45, 40) to (64, 64). Then, in the differentiation process, the RGB value of the background pixel can be differentiated into the RGB value calculated based on the dither algorithm, and the color value of the reading pixel of the reading object can be adjusted, while the red part remains unchanged. In the implementation process, the reading object can be adjusted to the ink color. Compared with differentiating RGB values based on the dither algorithm, differentiating RGB values through random values is simpler. Figure 4 is a schematic diagram of a display interface according to an exemplary embodiment. Figure 4 As shown, the display interface 402 after the background pixels are differentiated is compared with the display interface 401 before the background pixels are differentiated, and the red part 403 remains unchanged.
[0175] In the process of differentiating background pixels, since the target RGB value of the background has changed, it is also necessary to adjust the color value of the reading pixel of the reading object displayed on the background so that the adjusted color value corresponds to the differentiated background pixel. For example, for color prints, during the printing process, due to the use of the CMYK color system, the color of the ink is not pure black, but closer to dark brown, where CMYK stands for cyan, magenta, yellow, and black. When processing the reading pixels on the display module of an electronic device, the color value of the font can be adjusted. For example, the RGB value of the reading object can be adjusted from (80, 75, 70) to (58, 64, 64), so that it has a better ink feel. Figure 5 is a schematic diagram showing a display effect of a reading object according to an exemplary embodiment. Figure 5 As shown, Figure 5 The color on the left side of the middle is dark brown, and the color on the right side is pure black. Among them, the dark brown is closer to the feeling of ink.
[0176] In other optional embodiments, based on the principle of the application corresponding to the application interface currently displayed on the electronic device, the surfaceflinger layer of the processor can be used to identify the background from the application interface, and the background can be differentiated, and then subsequent layer synthesis can be performed on the differentiated background and reading object.
[0177] In another embodiment, since the color of the background is relatively simple in the reading scene, the pixel corresponding to the grayscale with the most occurrences can be determined as the background pixel of the background, and the pixel corresponding to the grayscale with the second most occurrences can be determined as the reading pixel. Here, the display content can be analyzed based on the processor of the electronic device and the integrated circuit of the display screen to obtain the background of the current display content and the grayscale of the reading object, and then identify the reading scene.
[0178] Fig. 6A is a schematic diagram of a display interface of a first scene according to an exemplary embodiment. Figure 6B is a schematic diagram of a display interface of a second scene according to an exemplary embodiment. Figure 6C is a schematic diagram of a display interface of a third scenario according to an exemplary embodiment. Fig.6D is a schematic diagram of a display interface of a fourth scenario according to an exemplary embodiment. Figures 6A to 6DAs shown, in the first to fourth scenes, there is a grayscale distribution histogram of each display interface obtained by the processor of the electronic device below each display interface (that is, a statistical table of the number of occurrences of each grayscale), wherein the grayscales of the first display interface 601 and the third display interface 603 are relatively simple, so it can be determined that the first display interface 601 and the third display interface 603 are typical reading scenes. The second display interface 602 and the fourth display interface 604 do not have such features, so it can be determined that the second display interface 602 and the fourth display interface 604 are not reading scenes.
[0179] In practical applications, since the human eye sees reflected light, the color seen changes according to the changes in ambient light. In color science, the definition of color appearance is that when the CIE tristimulus values of two colors are the same, the retinal visual perception of the human eye is the same. However, two identical colors are visually perceived the same only under the same observation conditions, background, sample size, sample shape, surface characteristics and lighting conditions. The hue, lightness and chroma of the sample will change with different environmental factors such as lighting conditions.
[0180] Therefore, under different ambient light conditions (mainly color temperature and brightness), the displayed color needs to be matched in color appearance, which is called color adaptation change. Figure 7 is a comparative schematic diagram of a display interface according to an exemplary embodiment. Figure 7 As shown, display interface 701 is a picture in which only the color temperature of the display screen is changed, and no other color adaptation changes are made. Display interface 702 is a picture that has undergone color adaptation changes. Display interface 702 is more natural than display interface 701, which conforms to the visual effect of reflected light from printed matter when the ambient light becomes warm. In the disclosed embodiment, under different ambient lights (for example, different color temperatures and / or brightness), based on light parameters, the color conversion mechanism is used to perform color adaptation conversion on the colors of the background and reading object, so that the final displayed background and reading object can be made more natural.
[0181] Fig. 8A is a schematic diagram of a first display interface according to an exemplary embodiment. Figure 8B is a schematic diagram of a second display interface according to an exemplary embodiment. Figure 8C is a schematic diagram of a third display interface according to an exemplary embodiment. Figures 8A to 8CAs shown, the background display color of the display interface 802 in the eye protection mode in the related art is darker than that of the original image display interface 801, but the background presents a mirror reflection effect. After the differential processing involved in the technical solution of the present disclosure, the background display color in the display interface 803 is more natural and can achieve a diffuse reflection display effect. In the embodiment of the present disclosure, the background can be differentiated so that each background pixel in the background looks roughly the same, but slightly biased towards the light yellow of paper, and the RGB values of adjacent background pixels are slightly different, imitating the effect of diffuse reflection.
[0182] Fig. 9 FIG. 1 is a block diagram of a display device according to an exemplary embodiment. Fig. 9 As shown, the device is applied to an electronic device including 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:
[0183] A differentiation processing module 901 is configured to differentiate the grayscale of background pixels of the background;
[0184] The display module 902 is configured to display the background based on the differentiated background pixels and display the reading object.
[0185] In other optional embodiments, the differentiation processing module 901 is further configured as follows:
[0186] Based on the random value within a preset range, the grayscale of each of the background pixels is increased or decreased.
[0187] In other optional embodiments, the differentiation processing module 901 is further configured as follows:
[0188] The background is divided into one or more blocks of preset sizes, and the grayscale of the background pixels of each block is differentiated until the grayscale differentiation of all the background pixels in the background is completed.
[0189] In other optional embodiments, the differentiation processing module 901 is further configured as follows:
[0190] Determine a set number of random numbers from the preset range;
[0191] Based on the random number, the grayscale of the background pixel of the current block is changed until the grayscale value of the background pixel of all the blocks is changed.
[0192] In other optional embodiments, the differentiation processing module 901 is further configured as follows:
[0193] Based on the current RGB value of the background pixel in the current image block, according to the set mapping relationship, a target RGB value corresponding to the reading scene is obtained;
[0194] Based on the random number, the values of the components included in the target RGB value are changed.
[0195] In other optional embodiments, the sum of the random numbers is set to 0.
[0196] In other optional embodiments, the device 900 further includes:
[0197] A first determination module is configured to determine the grayscale distribution interval of each pixel included in the display content;
[0198] A second determination module is configured to determine that the electronic device is in a reading scene when the number of the grayscale distribution intervals is less than a number threshold;
[0199] The differentiation processing module 901 is further configured as follows:
[0200] When the electronic device is in the reading scene, the grayscales of the background pixels of the background are differentiated.
[0201] In other optional embodiments, the device 900 further includes:
[0202] The third determination module is configured to determine, when the electronic device is in the reading scene, the grayscale distribution interval corresponding to the most pixels in the displayed content as the grayscale distribution interval where the background pixels in the displayed content are located.
[0203] In other optional embodiments, the device 900 further includes:
[0204] The adjustment module is configured to adjust the RGB value of the reading pixel of the reading object.
[0205] In other optional embodiments, the adjustment module is further configured to:
[0206] Based on the differentiated background pixels, the RGB values of the reading pixels are adjusted, thereby adjusting the contrast between the background and the reading object.
[0207] In other optional embodiments, the device 900 further includes:
[0208] An acquisition module is configured to acquire light parameters of the environment where the display module is located; wherein the light parameters at least include: color temperature and brightness value;
[0209] The conversion module is configured to perform color adaptation conversion on the content displayed by the display module based on the light parameters using a color conversion mechanism.
[0210] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0211] Fig.10 5 is a hardware structure 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 message transceiver device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0212] Reference Fig.10 , the device 500 may include one or more of the following components: 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 .
[0213] The processing component 502 generally controls the overall operation of the device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.
[0214] The memory 504 is configured to store various types of data to support operations on the device 500. Examples of such data include instructions for any application or method operating on the device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 can 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, magnetic disk or optical disk.
[0215] Power component 506 provides power to various components of device 500. Power component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 500.
[0216] The multimedia component 508 includes a screen that provides an output interface between the device 500 and the 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 the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0217] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the device 500 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.
[0218] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0219] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 can detect the open / closed state of the device 500, the relative positioning of components, such as the display and keypad of the device 500, the sensor assembly 514 can also detect the position change of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration / deceleration of the device 500, and the temperature change of the device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 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 assembly 514 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0220] 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 an exemplary embodiment, the communication component 516 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 516 also 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.
[0221] 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 components to perform the above methods.
[0222] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, and the instructions can be executed by the processor 520 of the device 500 to perform the above method. 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, an optical data storage device, etc.
[0223] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a display device, enables the display device to execute a display method, the method is applied to an electronic device including a display module, the display content of the display module includes: a background and a reading object located on the background, including:
[0224] Differentiating the grayscale of background pixels of the background;
[0225] The background is displayed based on the background pixels after grayscale differentiation, and the reading object is displayed.
[0226] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing 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 common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0227] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A display method, characterized in that: Applied to an electronic device including a display module, the display content of the display module includes: a background and a reading object located above the background, the method includes: Differentiating the grayscale of background pixels of the background; Displaying the background based on the background pixels after grayscale differentiation, and displaying the reading object; The step of differentiating the grayscale of the background pixel of the background comprises: Determine whether the number of background pixels having the same grayscale is greater than or equal to a set number threshold; When the number of background pixels with the same gray scale is greater than or equal to the set number threshold, the background pixels with the same gray scale are randomized to obtain differentiated background pixels.
2. The method according to claim 1, characterized in that The step of differentiating the grayscale of the background pixel of the background comprises: Based on the random value within a preset range, the grayscale of each of the background pixels is increased or decreased.
3. The method according to claim 2, characterized in that The differentiating the grayscale of the background pixel comprises: The background is divided into one or more blocks of preset sizes, and the grayscale of the background pixels of each block is differentiated until the grayscale differentiation of all the background pixels in the background is completed.
4. The method according to claim 3, characterized in that The increasing or decreasing the grayscale of each background pixel of the background based on the random value within a preset range includes: Determining a set number of random values from the preset range; Based on the random value, the grayscale of the background pixels of the current block is changed until the grayscale of the background pixels of all the blocks is changed.
5. The method according to claim 4, characterized in that The increasing or decreasing the grayscale of the background pixel of the current image block based on the random value includes: Based on the current RGB value of the background pixel in the current image block, according to the set mapping relationship, a target RGB value corresponding to the reading scene is obtained; Based on the random value, the values of the components included in the target RGB value are changed.
6. The method according to claim 4, characterized in that The sum of the random values of the set number is 0.
7. The method according to claim 1, characterized in that The method further comprises: Determining the grayscale distribution interval of each pixel included in the display content; When the number of the grayscale distribution intervals is less than the number threshold, determining that the electronic device is in a reading scene; The step of differentiating the grayscale of the background pixel of the background comprises: When the electronic device is in the reading scene, the grayscales of the background pixels of the background are differentiated.
8. The method according to claim 7, characterized in that The method further comprises: When the electronic device is in the reading scene, the grayscale distribution interval corresponding to the most pixels in the displayed content is determined as the grayscale distribution interval where the background pixels in the displayed content are located.
9. The method according to claim 1, characterized in that: The method further comprises: The RGB values of the reading pixels of the reading object are adjusted.
10. The method according to claim 9, characterized in that The adjusting the RGB value of the reading pixel of the reading object includes: Based on the differentiated background pixels, the RGB values of the reading pixels are adjusted, thereby adjusting the contrast between the background and the reading object.
11. The method according to claim 1, characterized in that: The method further comprises: Acquire light parameters of the environment where the display module is located; wherein the light parameters at least include: color temperature and brightness value; Based on the light parameters, a color conversion mechanism is used to perform color adaptation conversion on the content displayed by the display module.
12. A display device, characterized in that: 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 above the background, the device includes: A differentiation processing module configured to differentiate the grayscale of background pixels of the background; A display module, configured to display the background based on the differentiated background pixels and display the reading object; The difference processing module is configured to determine whether the number of background pixels having the same gray scale is greater than or equal to a set number threshold; When the number of background pixels with the same gray scale is greater than or equal to the set number threshold, the background pixels with the same gray scale are randomized to obtain differentiated background pixels.
13. The device according to claim 12, characterized in that The differentiation processing module is further configured as follows: Based on the random value within a preset range, the grayscale of each of the background pixels is increased or decreased.
14. The device according to claim 13, characterized in that The differentiation processing module is further configured as follows: The background is divided into one or more blocks of preset sizes, and the grayscale of the background pixels of each block is differentiated until the grayscale differentiation of all the background pixels in the background is completed.
15. The device according to claim 14, characterized in that The differentiation processing module is further configured as follows: Determining a set number of random values from the preset range; Based on the random value, the grayscale of the background pixels of the current block is changed until the grayscale of the background pixels of all the blocks is changed.
16. The device according to claim 15, characterized in that The differentiation processing module is further configured as follows: Based on the current RGB value of the background pixel in the current image block, according to the set mapping relationship, a target RGB value corresponding to the reading scene is obtained; Based on the random value, the values of the components included in the target RGB value are changed.
17. The device according to claim 16, characterized in that The sum of the random values of the set number is 0.
18. The device according to claim 12, characterized in that The device also includes: A first determination module is configured to determine the grayscale distribution interval of each pixel included in the display content; A second determination module is configured to determine that the electronic device is in a reading scene when the number of the grayscale distribution intervals is less than a number threshold; The differentiation processing module is further configured as follows: When the electronic device is in the reading scene, the grayscales of the background pixels of the background are differentiated.
19. The device according to claim 18, characterized in that The device also includes: The third determination module is configured to determine, when the electronic device is in the reading scene, the grayscale distribution interval corresponding to the most pixels in the displayed content as the grayscale distribution interval where the background pixels in the displayed content are located.
20. The device according to claim 12, characterized in that The device also includes: The adjustment module is configured to adjust the RGB value of the reading pixel of the reading object.
21. The device according to claim 20, characterized in that The adjustment module is further configured as: Based on the differentiated background pixels, the RGB values of the reading pixels are adjusted, thereby adjusting the contrast between the background and the reading object.
22. The device according to claim 12, characterized in that The device also includes: An acquisition module is configured to acquire light parameters of the environment where the display module is located; wherein the light parameters at least include: color temperature and brightness value; The conversion module is configured to perform color adaptation conversion on the content displayed by the display module based on the light parameters using a color conversion mechanism.
23. A display device, characterized in that: include: processor; a memory configured to store processor-executable instructions; Wherein, the processor is configured to: implement the steps in any one of the display methods in claims 1 to 11 when executed.
24. A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a display device, the device is enabled to perform the steps in any one of the display methods of claims 1 to 11.
