Display method, display screen, and related apparatus

By adjusting the grayscale value of the target sub-pixels on the display screen of electronic devices, a defocusing effect is achieved in the image, which solves the problem of myopia aggravation caused by prolonged use of electronic devices and slows down the risk of myopia progression.

WO2026045332A1PCT designated stage Publication Date: 2026-03-05HONOR DEVICE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/090832
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-08-30
Filing Date
2025-04-24
Publication Date
2026-03-05

AI Technical Summary

Technical Problem

Prolonged use of electronic devices can worsen myopia, especially due to eye strain and increased myopia caused by continuous close-range eye use.

Method used

By adjusting the grayscale value of the target sub-pixels on the display screen in the myopia prevention mode to create a fogging effect, the image is defocused when it is projected onto the retina, reducing the sensitivity of the human eye and slowing down the progression of myopia.

Benefits of technology

By making the image appear defocused when it is projected onto the retina, it reduces eye strain for users and lowers the risk of myopia progression.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025090832_05032026_PF_FP_ABST
    Figure CN2025090832_05032026_PF_FP_ABST
Patent Text Reader

Abstract

A display method, a display screen, and a related apparatus. The method is applied to an electronic device. Upon acquiring content to be displayed, an electronic device can perform defocusing processing on some parts of the content to be displayed and then display said content on a display screen, so that said content displayed on the display screen comprises content having a defocusing effect, so as to achieve the effect that the displayed content and an image formed on human eyes are in a defocused state when forming the image on a retina, and thus mitigating the problem of myopia deepening.
Need to check novelty before this filing date? Find Prior Art

Description

A display method, display screen and related device

[0001] This application claims priority to Chinese Patent Application No. 202411214680.7, filed on August 30, 2024, entitled “A display method, display screen and related device”, the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of electronic technology, and in particular to a display method, display screen and related devices. Background Technology

[0003] Myopia has become a significant health problem, defined as blurred vision of distant objects. The use of electronic devices (such as mobile phones, computers, and tablets) is considered close-range visual activity, a major contributing factor to the worsening of myopia. As users increasingly utilize electronic devices, continuous close-range visual activity leads to chronic eye strain, further exacerbating myopia. Therefore, addressing the issue of myopia progression caused by electronic device use is a pressing technical challenge. Summary of the Invention

[0004] The present application provides a display method, display screen, and related device that can improve the myopia aggravation caused by prolonged use of electronic devices.

[0005] In a first aspect, this application provides an interface display method applied to an electronic device, the method comprising:

[0006] When the electronic device is in myopia prevention mode, a first user interface is displayed using a first method. The color clarity of the first user interface displayed using the first method is a first color clarity, wherein the first color clarity is determined by the first display brightness corresponding to L pixels in the first user interface. The first display brightness of the first pixel is determined by the second gray value of the target sub-pixel and the first gray value of the non-target sub-pixel in the first pixel. The first pixel is any one of the L pixels, the target sub-pixel is any one or more of red, green and blue sub-pixels, and the non-target sub-pixels are sub-pixels other than the target sub-pixel whose second gray value is less than the first gray value. L is a positive integer.

[0007] In this embodiment, in the myopia prevention mode, the target sub-pixel has a second grayscale value. A target sub-pixel with a second grayscale value can exhibit a fogging effect. Therefore, the image displayed on the screen based on the target sub-pixel with the second grayscale value also exhibits a fogging effect. That is, the first color clarity can be considered as low color clarity, and the corresponding content appears blurry. Therefore, when a user sees the displayed content presented by this target sub-pixel, that is, when the displayed content corresponding to this target sub-pixel is imaged on the retina, the color clarity of the image of the displayed content on the retina is also insufficient. This causes the displayed content and the human eye's image to be in a defocused state, thus improving the myopia problem caused by prolonged screen viewing.

[0008] In one implementation, the target sub-pixel is the blue sub-pixel, and the non-target sub-pixels include the red sub-pixel and the green sub-pixel shown.

[0009] In this embodiment of the application, since the human eye is less sensitive to the target sub-pixel (B) than to the red sub-pixel (R) and the green sub-pixel (G), and all colors can be composed of the three primary colors RGB, changing only the brightness of the target sub-pixel (B) will not affect the user's overall perception.

[0010] In one possible implementation of the first aspect, the method further includes:

[0011] When the electronic device is not in the myopia prevention mode, the first user interface is displayed using a second method. The color clarity of the first user interface displayed using the second method is the second color clarity. The second color clarity is determined by the second display brightness corresponding to the L pixels respectively. The second display brightness of the first pixel is determined by the first gray value of the red sub-pixel, the first gray value of the green sub-pixel, and the first gray value of the blue sub-pixel of the first pixel. The first color clarity is less than the second color clarity.

[0012] In this embodiment, in non-myopia prevention mode, the blue, green, and red sub-pixels have a first grayscale value, which is a normal grayscale value. Based on the blue, green, and red sub-pixels with the first grayscale value, the image displayed on the screen has normal color clarity. Therefore, this application can provide different user interfaces for users to switch between based on their actual needs.

[0013] In one possible implementation of the first aspect, the second grayscale value of the target sub-pixel is determined based on the defocus algorithm and the first grayscale value of the target sub-pixel.

[0014] Among them, the defocus algorithm can provide a fogging effect for the target sub-pixels, thereby enabling the user interface to have the first color clarity and ensuring that the displayed content on the user interface is in a defocused state from the human eye's image, which can improve the myopia problem caused by prolonged screen viewing.

[0015] In one possible implementation of the first aspect, the defocusing algorithm is an averaging algorithm, and the second gray value of the target sub-pixel is obtained by averaging the first gray values ​​of a preset number of the target sub-pixels.

[0016] It is understandable that the first grayscale value is the grayscale value that allows the target sub-pixel to be clearly displayed. When the first grayscale value is averaged, the resulting second grayscale value is smaller than the first grayscale value, so the second grayscale value will not allow the target sub-pixel to be clearly displayed. Therefore, when the display content corresponding to this target sub-pixel is imaged on the retina, the color clarity of the image of the display content on the retina is not high enough, which can cause the display content and the human eye image to be in a defocused state, thus improving the myopia problem caused by prolonged screen viewing.

[0017] In one possible implementation of the first aspect, the L pixels correspond to a first pixel matrix, and the preset number of target sub-pixels includes target sub-pixels obtained in the first pixel matrix in the form of an N*N matrix or an N*M matrix, wherein the preset number is equal to N*N or N*M, and N and M are positive integers.

[0018] It is understood that a pixel refers to the smallest controllable light point on an electronic device, and is the basic constituent element of the smallest unit in an image. The image displayed on an electronic device is stored in matrix form, where each element of the matrix is ​​a pixel value. By illuminating pixels based on their values, an image can be displayed on the electronic device. Therefore, this embodiment uses a matrix format to obtain the storage format of the target sub-pixels that need to be processed, which is simple to implement and can improve operational efficiency.

[0019] In one possible implementation of the first aspect, the step of displaying a first user interface using a first method when the electronic device is in anti-myopia mode includes:

[0020] When the electronic device is in anti-myopia mode, the preset number of target sub-pixels are obtained from the first pixel matrix in the form of the N*N matrix or the N*M matrix using a first method;

[0021] The second gray value is obtained by averaging the first gray values ​​corresponding to the preset number of target sub-pixels.

[0022] The first user interface is displayed based on the second gray value of the target sub-pixel, the first gray value of the red sub-pixel, and the first gray value of the green sub-pixel.

[0023] In this embodiment of the application, the gray value of a target sub-pixel is determined by the gray values ​​corresponding to a preset number of target sub-pixels, thereby reducing the gray value of the target sub-pixel and making the area displayed by the target sub-pixel exhibit a defocus effect, which can improve the myopia problem caused by prolonged viewing of the display screen.

[0024] In one possible implementation of the first aspect, the step of averaging the first gray values ​​corresponding to the preset number of target sub-pixels to obtain the second gray value includes:

[0025] The total gray value is obtained by summing the first gray values ​​corresponding to the preset number of target sub-pixels.

[0026] The second gray value is obtained by averaging the total gray values ​​according to the preset quantity.

[0027] It can be seen that the second gray value obtained by summing and averaging the first gray value is smaller than the first gray value. Therefore, the area displayed based on the target sub-pixel with the second gray value exhibits a defocus effect, which can improve the myopia problem caused by prolonged viewing of the screen.

[0028] In one possible implementation of the first aspect, the N*N matrix is ​​a 3*3 matrix, and the preset quantity is 9.

[0029] Understandably, in existing display driving methods, the display panel is driven to illuminate pixels directly based on the grayscale value corresponding to a target sub-pixel. In this embodiment, the grayscale value of a target sub-pixel is determined based on the grayscale values ​​corresponding to nine target sub-pixels, thereby giving the determined target sub-pixel a defocus effect.

[0030] In a second aspect, this application provides a display screen applied to an electronic device, the display screen including a display driving module and a display panel, the display driving module including a first circuit;

[0031] When the electronic device is in anti-myopia mode, the first circuit is used to drive the display panel to display a first user interface using a first method. The color clarity of the first user interface displayed using the first method is a first color clarity, wherein the first color clarity is determined by the first display brightness corresponding to L pixels in the first user interface. The first display brightness of the first pixel is determined by the second gray value of the target sub-pixel and the first gray value of the non-target sub-pixel in the first pixel. The first pixel is any one of the L pixels, the target sub-pixel is any one or more of red, green and blue sub-pixels, and the non-target sub-pixels are sub-pixels other than the target sub-pixel among the red, green and blue sub-pixels. The second gray value is less than the first gray value, and L is a positive integer.

[0032] In this embodiment, in the myopia prevention mode, the target sub-pixel can be directly processed by the circuit in the display screen to determine the second grayscale value of the target sub-pixel. Based on the target sub-pixel with the second grayscale value, the display panel is directly driven to display the first user interface. Because the circuit can achieve fast and accurate image processing, a user interface with first color clarity can be quickly displayed on the display screen.

[0033] In one possible implementation of the second aspect, the display driver module further includes a second circuit;

[0034] When the electronic device is not in the myopia prevention mode, the second circuit is used to drive the display panel to display a first user interface using a second method. The color clarity of the first user interface displayed using the second method is a second color clarity, wherein the second color clarity is determined by the second display brightness corresponding to the L pixels respectively. The second display brightness of the first pixel is determined by the first gray value of the red sub-pixel, the first gray value of the green sub-pixel, and the first gray value of the blue sub-pixel of the first pixel. The first color clarity is less than the second color clarity.

[0035] In this embodiment, in the myopia prevention mode, the circuitry in the display screen can directly process the pixels, directly driving the display panel to display the first user interface. Because the circuitry can achieve fast and accurate image processing, it can quickly switch the colors of the interface, displaying a user interface with a second color clarity on the display screen.

[0036] In one implementation, the target sub-pixel is the blue sub-pixel, and the non-target sub-pixels include the red sub-pixel and the green sub-pixel shown.

[0037] Thirdly, an electronic device is provided in the embodiments of this application, the electronic device comprising: one or more processors; a memory; wherein the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code including computer instructions, and the one or more processors call the computer instructions to cause the electronic device to execute the interface display method described in the first aspect or any possible implementation of the first aspect.

[0038] Fourthly, this application provides a chip or chip system including at least one processor and a communication interface. The communication interface and the at least one processor are interconnected via a circuit. The at least one processor is used to run computer programs or instructions to execute the interface display method described in the first aspect or any possible implementation of the first aspect. The communication interface in the chip can be an input / output interface, pins, or circuits, etc.

[0039] In one possible implementation, the chip or chip system described above in the embodiments of this application further includes at least one memory, which stores instructions. The memory can be an internal storage unit of the chip, such as a register or cache, or it can be a storage unit of the chip itself (e.g., read-only memory, random access memory, etc.).

[0040] Fifthly, embodiments of this application provide a computer storage medium storing a computer program that, when executed by a processor, causes the computer to perform the interface display method as described in the first aspect or any possible implementation thereof.

[0041] Sixthly, embodiments of this application provide a computer program product that, when run on a communication device, causes the communication device to execute the interface display method described in the first aspect or any possible implementation thereof.

[0042] It should be understood that the descriptions of technical features, technical solutions, beneficial effects, or similar language in this application do not imply that all features and advantages can be achieved in any single embodiment. Rather, it is understood that the description of a feature or beneficial effect means that a specific technical feature, technical solution, or beneficial effect is included in at least one embodiment. Therefore, the descriptions of technical features, technical solutions, or beneficial effects in this specification do not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions, and beneficial effects described in this embodiment can be combined in any suitable manner. Those skilled in the art will understand that embodiments can be implemented without one or more specific technical features, technical solutions, or beneficial effects of a particular embodiment. In other embodiments, additional technical features and beneficial effects may be identified in specific embodiments that do not embody all embodiments. Attached Figure Description

[0043] The accompanying drawings used in the embodiments of this application are described below.

[0044] Figure 1A illustrates, for example, the arrangement of sub-pixels in an LCD screen;

[0045] Figure 1B illustrates, for example, the arrangement of sub-pixels in an OLED screen;

[0046] Figure 2A is an example diagram of a frontal view provided in an embodiment of this application;

[0047] Figure 2B is a schematic diagram of a myopia phenomenon provided in an embodiment of this application;

[0048] Figure 2C is a schematic diagram of a myopia correction lens provided in an embodiment of this application;

[0049] Figure 2D is a schematic diagram of an embodiment of this application for inhibiting the progression of myopia;

[0050] Figures 3A to 3D are user interfaces provided in a myopia prevention mode according to an embodiment of this application;

[0051] Figure 4 is a schematic diagram of the hardware structure of a display screen 194 provided in an embodiment of this application;

[0052] Figure 5A is a schematic diagram of a first pixel matrix and a defocus matrix of blue sub-pixels provided in an embodiment of this application;

[0053] Figure 5B is a schematic diagram of determining blue sub-pixels based on a defocus algorithm according to an embodiment of this application;

[0054] Figure 6A is a schematic diagram of the hardware structure of a display driver integrated circuit provided in an embodiment of this application;

[0055] Figure 6B is a schematic diagram of the hardware structure of another display driver integrated circuit provided in an embodiment of this application;

[0056] Figure 7 is a schematic diagram of a gamma curve provided in an embodiment of this application;

[0057] Figure 8 is a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of this application;

[0058] Figure 9 is a schematic diagram of the software structure of an electronic device 100 provided in an embodiment of this application. Detailed Implementation

[0059] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in this application refers to and includes any or all possible combinations of one or more of the listed items.

[0060] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.

[0061] To facilitate understanding, the relevant principles and probabilities involved in the embodiments of this application will first be introduced by way of example, as follows:

[0062] (1) Types of display screens

[0063] The smallest unit of image on a display screen is a pixel, and each pixel can be composed of three sub-pixels: red, green, and blue (RGB). The principle is that the three primary colors (RGB) can create any color. When different colors need to be displayed, the three sub-pixels emit light at different brightness levels, which visually mix to form the desired color. Therefore, it can be understood that different colors can be displayed when the three sub-pixels correspond to different brightness levels. The arrangement of sub-pixels also differs on different types of displays.

[0064] a. Liquid crystal display (LCD)

[0065] LCD screens primarily rely on their backlight layer for illumination. Since the backlight layer only uses white light, a color filter is needed to project the three primary colors. Simultaneously, to control the proportions of red, green, and blue, a liquid crystal layer exists between the backlight layer and the color filter, regulating its voltage. The droplets in this liquid crystal layer are enclosed in tiny cell structures, with one or more cells forming a pixel on the screen.

[0066] In an LCD screen, a single pixel consists of three cells, which respectively display red, blue, and green on the screen. These three cells can be called the red subpixel, green subpixel, and blue subpixel of each pixel. Figure 1A illustrates the arrangement of subpixels in an LCD screen. Here, G represents a green subpixel, B represents a blue subpixel, and R represents a red subpixel. A green subpixel G, a blue subpixel B, and a red subpixel R form a group, constituting one pixel; that is, each pixel contains one R, one G, and one B. The order of the three color subpixels is not restricted.

[0067] b. Organic light-emitting diode (OLED)

[0068] OLED screens are displays made using organic light-emitting diodes (OLEDs). In an OLED screen, the smallest light-emitting unit can be considered a subpixel, and each subpixel can only emit monochromatic light (red, blue, or green). Subpixels emitting red light are called red subpixels, those emitting blue light are called blue subpixels, and those emitting green light are called green subpixels. There are various arrangements of subpixels in an OLED screen, as shown in Figure 1B. Figure 1B exemplarily illustrates an RGBG arrangement of subpixels in an OLED screen, where each pixel contains two subpixels. Exemplarily, each pixel alternates between red-green (RG) combinations or blue-green (BG) combinations, meaning each pixel contains one green subpixel and one red (or blue) subpixel. In one implementation, pixels containing red and blue subpixels are arranged alternately in the horizontal and vertical directions.

[0069] Since only the three primary colors RGB can constitute all colors, and two colors cannot constitute all colors, in the actual display of an image, each pixel in the arrangement shown in Figure 1B will borrow the sub-pixels of its surrounding pixels to constitute the three primary colors RGB.

[0070] (2) Display principle

[0071] The content displayed on the screen of an electronic device includes text, images, etc., and the display data corresponding to this content is stored in the electronic device in the form of vector graphics. Therefore, after acquiring the content to be displayed, the electronic device can render the vector graphics corresponding to the content. The rendering process includes rasterization, which converts the vector graphics into bitmaps. A bitmap is composed of multiple pixels, which can be arranged and colored differently to form a pattern. For example, if the content to be displayed is a color image, the bitmap of the image includes grayscale data of the RGB channels for each pixel. The red grayscale values ​​of each pixel form a red vector matrix, the blue grayscale values ​​form a blue vector matrix, and the green grayscale values ​​form a green vector matrix. Next, the electronic device blends and overlays the rendered bitmaps. Finally, the electronic device sends the overlaid display content to the screen, which illuminates the light-emitting points (i.e., sub-pixels) on the screen based on a sub-pixel rendering algorithm, and the display content is then displayed.

[0072] Among them, the subpixel rendering algorithm can define how the display screen lights up subpixels of different colors according to the input data.

[0073] (3) Gray value

[0074] Grayscale values ​​describe the color depth of each pixel in an image, typically used to represent the brightness of a black and white image. Grayscale values ​​generally range from 0 to 255. In the RGB model, if a pixel has the same red (R), green (G), and blue (B) components (R = G = B), then the pixel's color is called grayscale; if these components are not equal (R ≠ G ≠ B), then the pixel's color is called color. Grayscale values ​​can also be called intensity or brightness values, and can be used to represent the brightness of a pixel.

[0075] (4) Screen brightness (luminance)

[0076] Screen brightness refers to the physical quantity of light emitted from the surface of a light-emitting object, measured in nits (nits). Screen brightness is an important indicator for measuring the luminous intensity of a display screen. Screen brightness is adjusted by regulating the display brightness, which is determined based on the grayscale values ​​of the input data. Therefore, adjusting the grayscale values ​​allows for the control of screen brightness.

[0077] (5) The imaging principle of the eye

[0078] The eye's imaging principle involves the refraction of light reflected from external objects onto the retina through the refractive system, including the cornea, lens, and vitreous humor, forming a clear image. The light signals from the photoreceptor cells on the retina are then converted into nerve signals and transmitted to the brain, thus enabling visual perception.

[0079] Please refer to Figure 2A, which is an example of emmetropia provided in an embodiment of this application. Emmetropia refers to the phenomenon where, when the axial length of the eye (i.e., the anteroposterior axis of the eyeball) is in a normal state, parallel light rays entering the eye are focused on the retina by the eye's refractive system (such as the cornea and lens), forming a clear image. As shown in Figure 2A, when parallel light rays are projected onto a distant object, they can form a clear image on the retina after passing through the eye's refractive system, that is, a focal point is formed on the retina, thus allowing distant objects to be seen clearly. Here, "emmetropia" can also be called "positive focus".

[0080] Please refer to Figure 2B, which is a schematic diagram of a myopia phenomenon provided in an embodiment of this application. Myopia refers to the phenomenon where, as the axial length of the eye increases, the eye may be unable to maintain focus, resulting in blurred vision. As shown in Figure 2B, when parallel light rays are projected onto a distant object, the parallel light rays cannot form a clear image on the retina after passing through the eye's refractive system, but instead form a focal point in front of the retina, thus causing visual distortion and resulting in blurred vision of distant objects. Here, "myopia" can also be referred to as "defocus."

[0081] As can be seen from Figures 2A and 2B, the image seen by a myopic eye falls in front of the retina and is blurry; the image seen by a normal eye falls on the retina and is clear.

[0082] Please refer to Figure 2C, which is a schematic diagram of a myopia correction lens provided in an embodiment of this application. As shown in Figure 2C, when parallel light rays are projected onto a distant object, because the eyeball is ellipsoidal and the myopia lens is a single-focus lens, after the parallel light rays pass through the myopia lens and the eye's refractive system, the central light rays fall on the retina, while the peripheral light rays fall behind the retina. This phenomenon is called peripheral hyperopic defocus. Because the human eye has a self-regulating mechanism to "see objects clearly," in order to eliminate peripheral hyperopic defocus and achieve peripheral imaging on the retina, the axial length of the eye may increase, thereby causing myopia to worsen.

[0083] Please refer to Figure 2D, which is a schematic diagram of an embodiment of this application for inhibiting myopia progression. To inhibit myopia progression, a myopia defocusing technique is proposed. This technique utilizes the concept of peripheral retinal defocusing, that is, by adjusting the focusing position of light in the peripheral visual field to slow down the elongation of the eye axis. Myopia defocusing lenses are a means based on this technique. As shown in Figure 2D, when parallel light rays are projected onto a distant object, because the eyeball is ellipsoidal and the myopia defocusing lens is a multifocal lens, after the parallel light rays pass through the myopia defocusing lens and the eye's refractive system, the peripheral light rays are focused in front of the retina, while the intermediate light rays are focused on the retina. This phenomenon is called focusing or peripheral myopia defocusing. This phenomenon can cut off the driving force of eyeball elongation, eliminate the stimulus signal that promotes eye axis elongation, and achieve the purpose of inhibiting myopia progression.

[0084] In summary, when light reflected from a distant object focuses in front of the retina, the image of the distant object is blurry; when light reflected from a distant object focuses on the retina, the image of the distant object is clear. Using myopia lenses may lead to a worsening of myopia, while defocusing myopia lenses can mitigate this worsening. The imaging effect achieved by using defocusing myopia lenses is that when a portion of the light reflected from a distant object focuses on the retina and another portion focuses in front of the retina, some parts of the image of the distant object may be clear while others are blurry, thus achieving the purpose of defocusing myopia and inhibiting the worsening of myopia.

[0085] Therefore, this application proposes a content interface display method based on the imaging effect of myopia defocus lenses, which is applied to electronic devices. After the electronic device obtains the content to be displayed, it can defocus the corresponding pixels of the content to be displayed on the display screen before displaying it on the display screen. In this way, the content displayed on the display screen contains content with a defocus effect, so that when imaging on the retina, the displayed content and the human eye image can be in a defocus state, thereby improving the problem of myopia progression.

[0086] For example, in the myopia prevention mode, the color clarity of the content to be displayed on the first user interface of the electronic device is a first color clarity, which is L pixels in the first user interface. The first display content of the first pixel among the L pixels is determined by the second gray value of the target sub-pixel and the first gray value of the non-target sub-pixel. The target sub-pixel is any one or more of red sub-pixels, green sub-pixels and blue sub-pixels. The non-target sub-pixels are sub-pixels other than the target sub-pixels whose second gray value is less than the first gray value. L is a positive integer.

[0087] For example, an electronic device uses an RGB three-channel sub-pixel arrangement based on the Red-Green-Blue (RGB) color space for display. Different color sub-pixels have different degrees of influence on display brightness; for instance, the R sub-pixel influences brightness by 20%, the G sub-pixel by 70%, and the B sub-pixel by 10%. Since the B sub-pixels have a relatively small influence on brightness, the electronic device can defocus the B sub-pixels in the RGB image during processing, resulting in B sub-pixels with a defocused effect. Finally, the image to be displayed is shown on the screen based on the defocused B sub-pixels. Because the defocused blue sub-pixels can create a fogging effect, the image displayed on the screen can also exhibit a fogging effect.

[0088] As can be seen, when the brightness of the blue sub-pixel after defocusing is low, the color clarity of the displayed content corresponding to that blue sub-pixel is not high, appearing blurry. Therefore, when a user sees the displayed content presented by that blue sub-pixel, that is, when the image of the displayed content corresponding to that blue sub-pixel is projected onto the retina, the color clarity of the image of the displayed content on the retina is also not high enough. This keeps the displayed content and the image projected onto the human eye in a defocused state, thus improving the myopia problem caused by prolonged screen viewing. Because the human eye is less sensitive to blue sub-pixels (B) than to red sub-pixels (R) and green sub-pixels (G), and all colors can be composed of the three primary colors RGB, simply changing the brightness of the blue sub-pixel (B) will not affect the user's overall viewing experience.

[0089] The electronic device in this application embodiment can be a smart screen device, a smart TV, a mobile phone, a tablet computer, an ultra-mobile personal computer (UMPC), a netbook, as well as a cellular phone, a personal digital assistant (PDA), a wearable device (such as a smartwatch, a smart bracelet), and other devices with display functions. This application embodiment does not impose any special restrictions on the specific form of the electronic device.

[0090] The following describes the application scenarios involved in the embodiments of this application and examples of user interfaces in those scenarios.

[0091] Figures 3A to 3D are user interfaces for a myopia prevention mode provided in an embodiment of this application. Wherein:

[0092] Figure 3A shows the main interface of an electronic device 100 provided in an embodiment of this application. As shown in Figure 3A, the main interface 101 may include a status bar 111, a page indicator 121, and multiple application icons.

[0093] The status bar 111 may include one or more signal strength indicators for mobile communication signals (also known as cellular signals), wireless fidelity (Wi-Fi) signal strength indicators, battery status indicators, time indicators, etc.

[0094] Page indicator 121 can be used to indicate the positional relationship between the currently displayed page and other pages.

[0095] Multiple application icons may include an app store icon 113A, a gallery icon 113B, a browser icon 113C, a calendar icon 113D, a settings icon 113E, a camera icon, a contacts icon, a phone icon, and a messaging icon, etc. The main interface 101 may also include other application icons, which are not listed here. These application icons can be distributed across multiple pages. A page indicator 121 can be used to indicate which of the multiple pages hosting the applications the user is currently viewing. Users can browse other pages using left and right swipe gestures.

[0096] The main interface 101 is the first user interface, which is a standard interface, i.e., the interface when the electronic device 100 has not activated other color adjustment modes. The screen color saturation displayed on the main interface 101 is normal color saturation, and the second color clarity presented by the user interface corresponding to normal color saturation is clear. Normal color saturation can be understood as the saturation that the electronic device 100 adaptively adjusts according to the brightness of the ambient light or the current time to adapt to the current environment or time.

[0097] For example, the "HONOR" displayed by the application icon 113A in the application market shown in Figure 3A is a color image. Taking "HONOR" as an example, the color clarity of the main interface 101 is explained. The color image "HONOR" is composed of individual pixels (a total of L pixels, where L is a positive integer). Therefore, the color clarity of the main interface 101 is determined by the first display brightness corresponding to each of the L pixels. The display brightness of each pixel is represented by three RGB values ​​(i.e., the first grayscale value of the red sub-pixel, the first grayscale value of the green sub-pixel, and the first grayscale value of the blue sub-pixel).

[0098] First, the electronic device 100 acquires the display data (such as a vector graphic) of "HONOR", renders the vector graphic to generate a bitmap composed of individual pixels, overlays this bitmap with other display content to obtain the image to be displayed, and finally sends the image to be displayed to the display screen. The display screen illuminates the light-emitting points on the display panel based on the corresponding driving display technology and the first grayscale value on the bitmap, thereby displaying the colored "HONOR". The brightness of the light-emitting points illuminated based on the first grayscale value on the bitmap can be considered as the color clarity of the main interface 101.

[0099] It is understandable that bitmaps are used to represent the RGB grayscale values ​​of pixels. The display driver algorithm built into the display defines how the display illuminates pixels of different colors based on input data (such as bitmaps), thereby presenting the corresponding color clarity. Therefore, it can be considered that the display brightness of a pixel is determined by its RGB grayscale values. Taking the "H" character in "HONOR" as an example, assuming that different parts of the "H" character have different color brightness, then the RGB grayscale values ​​corresponding to different parts are different; assuming that the area surrounding the "H" character has no color brightness, then the RGB grayscale value corresponding to that area may be zero. Therefore, the pixels in bitmap 1131 corresponding to the "H" character shown in Figure 3A have different grayscale values. Different grayscale values ​​are used to reflect different brightness, thus the "H" character displayed based on these grayscale values ​​has a clear color. Among them, pixels of different shades in bitmap 1131 represent different grayscale values.

[0100] For pixel 1132 in the character "H" shown in Figure 3A, the display brightness of pixel 1132 is represented by three values: RGB (e.g., grayscale value). Taking the blue sub-pixel 1133 of pixel 1132 as an example, we can illustrate the impact of the grayscale value of a sub-pixel on sharpness. Assume that the first grayscale value of the blue sub-pixel 1133 in bitmap 1131 is 255. The surrounding area 1134 of the blue sub-pixel 1133 (including but not limited to the top, bottom, left, right, upper left, upper right, lower left, and lower right) includes the blue sub-pixel 1133 and eight other blue sub-pixels, all of which have a grayscale value of 0 in bitmap 1131. For example, to ensure a clear image of pixel 1132 on the eye, a pixel 1132 with a clear color needs to be displayed on the screen. In other words, to highlight pixel 1132, the target sub-pixel (e.g., blue sub-pixel 1133) within pixel 1132 can have a certain grayscale value (e.g., 255), while the eight blue sub-pixels in the surrounding area 1134 of the target sub-pixel (e.g., blue sub-pixel 1133) do not have grayscale values. Therefore, when the electronic device 100 illuminates the light-emitting point (i.e., pixel) corresponding to the "H" character on the display panel, a clearly colored "H" character can be displayed on the screen based on the grayscale values ​​corresponding to different sub-pixels in bitmap 1131.

[0101] The color clarity of other elements in the main interface 101 can be referenced to the character "H", and will not be elaborated further here. When the colors of other elements in the main interface 101 are also clear, the main interface 101 can also present a second color clarity, that is, the colors presented by the main interface 101 are clear.

[0102] As shown in Figures 2A-2D, because the eyeball is ellipsoidal, when part of the light reflected from the "H" character shown in Figure 3A is focused on the retina, another part is focused outside the retina. Since the human eye has a self-regulating mechanism for "seeing objects clearly," in order to eliminate peripheral hyperopic defocus and achieve peripheral imaging on the retina, the axial length of the eye may increase, thus causing myopia. To improve myopia, the electronic device 100 provides a myopia prevention mode, which the user can activate. In some embodiments of this application, the electronic device 100 displays the user interface 102 shown in Figure 3B in response to the user clicking the settings application icon 113E in the main interface 101 shown in Figure 3A.

[0103] The user interface 102 shown in Figure 3B is the main interface for setting up the application, including but not limited to login account controls, wireless and network controls, device connection controls, application and notification controls, user and account controls, display controls 112, sound controls, storage controls, etc. In response to a user accessing the display controls 112, the electronic device 100 displays the user interface 103 shown in Figure 3C.

[0104] The user interface 103 shown in Figure 3C is the page corresponding to the display function. This page provides various display settings, including but not limited to myopia prevention mode, brightness adjustment, and True Tone display in brightness settings, and light, dark, automatic, optional, and automatic lock settings in appearance settings. The electronic device 100 can activate the myopia prevention mode in response to the user's operation of the myopia prevention mode control 113 in the brightness settings.

[0105] In the myopia prevention mode, when the display screen of the electronic device 100 illuminates the light-emitting points (i.e., pixels) on the display panel to display the user interface, it can first defocus the target sub-pixel (e.g., the blue sub-pixel) in the pixel according to the defocusing algorithm, so that the blue sub-pixel has a second grayscale value. Then, according to the display driving algorithm, the pixel is illuminated based on the first grayscale value of the non-target sub-pixel (e.g., the first grayscale value of the red sub-pixel and the first grayscale value of the green sub-pixel) and the second grayscale value of the blue sub-pixel. For example, the user interface 104 shown in Figure 3D is displayed in the myopia prevention mode. The user interface 104 is still the main interface 101 shown in Figure 3A. The difference between the user interface 104 and the main interface 101 shown in Figure 3A is that the user interface 104 has a first color clarity, while the main interface 101 has a second color clarity. The first color clarity is less than the second color clarity.

[0106] It should be noted that the first color sharpness being less than the second color sharpness means that, under the same conditions (such as the same ambient lighting, the same screen size, the same screen resolution, and the same viewing distance), the color saturation reflected by the first color sharpness is less than that reflected by the second color sharpness.

[0107] It is understandable that the user interface 104 is a non-standard interface, that is, the interface displayed after the electronic device 100 activates the myopia prevention mode. The screen color saturation displayed by the user interface 104 is an abnormal color saturation under the myopia prevention mode. Abnormal color saturation can be understood as the saturation that the electronic device 100 adaptively adjusts according to the brightness of the ambient light or the current time, superimposed with the saturation corresponding to other color adjustment modes (such as the myopia prevention mode). Among them, the user interface corresponding to abnormal color saturation, compared with the user interface corresponding to normal color saturation (such as the user interface shown in Figure 3A), presents a hazy effect on the screen color, so the clarity of the second color is less than that of the first color.

[0108] In the user interface 104 shown in Figure 3D, the "H" character in "HONOR" is still used as an example to illustrate the first color clarity corresponding to abnormal color saturation. As can be seen from Figure 3D, for pixel 1132 in the "H" character, the display brightness of pixel 1132 is represented by the three values ​​of RGB (for example, grayscale value). Taking the target sub-pixel in pixel 1132 (for example, blue sub-pixel 1133) as an example, the influence of the grayscale value of the sub-pixel on the clarity is illustrated. Assuming that the first grayscale value of the blue sub-pixel 1133 in bitmap 1131 is 255, the surrounding area 1134 of the blue sub-pixel 1133 (including but not limited to the top, bottom, left, right, upper left, upper right, lower left, and lower right) includes the blue sub-pixel 1133 and its surrounding 8 blue sub-pixels. The first grayscale value of these 8 blue sub-pixels in bitmap 1131 is 0. The grayscale value of blue sub-pixel 1133 can be reduced to less than 255, and the grayscale values ​​of the eight blue sub-pixels surrounding blue sub-pixel 1133 can be increased to greater than 0. For example, to make the image of pixel 1132 less clear on the eye, pixel 1132 needs to be displayed on the screen with less clear image, that is, pixel 1132 has abnormal color saturation. Therefore, the display screen of the electronic device 100 can defocus the blue sub-pixel 1133 in pixel 1132 (for detailed description, please refer to the description in Figures 4 to 6B), that is, the first gray value 255 of the blue sub-pixel 1133 in the bitmap is distributed to other blue sub-pixels, so that the second gray value of the blue sub-pixel 1133 in the user interface 104 is less than the first gray value in the main interface 101, and the eight blue sub-pixels around the blue sub-pixel 1133 have a gray value ranging from 0 in the main interface 101 to a first value in the user interface 104.

[0109] It is understandable that in the main interface 101 shown in Figure 3A, in order to clearly display pixel 1132, the grayscale value of the blue sub-pixel 1133 is 255, and the grayscale value of the eight pixels surrounding the blue sub-pixel 1133 is 0. Therefore, in the user interface 104 shown in Figure 3D, after the grayscale value of the blue sub-pixel 1133 is distributed to the other surrounding blue sub-pixels, the grayscale value of the blue sub-pixel 1133 is no longer 255, and the grayscale value of the other surrounding blue sub-pixels is no longer 0. That is, for pixel 1132 in the character "H", pixel 1132 no longer meets the condition of being clearly colored, so pixel 1132 displayed on the screen is no longer clearly colored. Therefore, when the character "H" also includes other clear parts, when some of the light reflected from the character "H" in the user interface 104 is focused on the retina and another part is focused in front of the retina, some images of distant objects are clear and some are unclear, thereby achieving the purpose of myopia defocus and inhibiting the progression of myopia.

[0110] The color clarity of other elements in user interface 104 can be referenced to the character "H", and will not be elaborated further here. When other elements in user interface 104 are no longer color clear, user interface 104 presents the first color clarity, that is, the color presented by user interface 104 is not clear.

[0111] It should be noted that in some embodiments of this application, the myopia prevention mode can be activated in other ways, such as through a shortcut control in the swipe-down interface. This application does not impose any restrictions on the method of activating the myopia prevention mode.

[0112] Please refer to Figure 4, which is a schematic diagram of the hardware structure of a display screen 194 provided in an embodiment of this application. The display screen 194 can be integrated into an electronic device, such as the electronic device 100 shown in Figure 8. As shown in Figure 4, the display screen 194 includes, but is not limited to, components such as a display driver module 301 and a display panel 302.

[0113] The display driver module 301 is a semiconductor integrated circuit used to drive letters, pictures, or other image information to be displayed on the display panel 302. The display panel 302 can be an OLED screen, an LCD screen, etc., and different display panels correspond to different arrangements of sub-pixels.

[0114] For example, the display driver module 301 includes, but is not limited to, the display driver integrated circuit (DDIC), timing controller (TCON), and Touch and Display Driver Integration (TDDI) chip shown in FIG. 6A or FIG. 6B. The DDIC is used to control the display panel (such as an OLED display and an LCD display), activating pixels on the panel by providing analog voltage and current to achieve content display. The TCON, in conjunction with the driver chip, manages the refresh rate and image processing of the display panel to ensure the stability of the displayed content. The TDDI chip integrates a touch controller and a display driver for touch and display driving functions.

[0115] In one possible implementation, the display driver module 301 drives the display panel 302 and illuminates the light-emitting points (sub-pixels) on the display panel 302 based on an internally integrated rendering algorithm. The rendering algorithm includes, but is not limited to: a blue sub-pixel defocusing algorithm corresponding to the first method and a driving display algorithm corresponding to the second method. The blue sub-pixel defocusing algorithm is used to defocus the blue sub-pixels in the RGB data to obtain blue sub-pixels with a defocused effect. The driving display algorithm is used to convert the input RGB data into signals suitable for display on the display panel 302; different display driver modules correspond to different display driver algorithms.

[0116] In one implementation, as shown in Figure 4, the processor 110 typeset, renders, and overlays the interface content (including text, images, etc.) into a bitmap, and then sends it to the display driver module 301. The display driver module 301 filters and samples the received bitmap, obtaining first RGB data after filtering and sampling. Each sub-pixel (i.e., red sub-pixel, green sub-pixel, and blue sub-pixel) in the first RGB data has a first grayscale value. Specifically, the processor 110 can be a system-on-a-chip (SoC), a graphics processing unit (GPU), an application processor (AP), etc.

[0117] In non-myopia prevention mode, the display driver module 301 does not perform defocus processing on the target sub-pixels (such as blue sub-pixels) in the RGB image. Instead, it directly uses the second method based on the display driver algorithm to transform the first grayscale value of the red sub-pixel, the first grayscale value of the green sub-pixel, and the first grayscale value of the blue sub-pixel into voltage or current, etc., and drives the display panel 302 to light up the light-emitting points (sub-pixels) on the display panel 302 with the corresponding voltage or current.

[0118] In the myopia prevention mode (e.g., the myopia prevention mode in Figure 3C or Figure 3D), the display driver module 301 first uses a first method to defocus the target sub-pixel (e.g., the blue sub-pixel) in the first RGB data according to a defocusing algorithm. That is, it determines the second grayscale value of the target sub-pixel (e.g., the blue sub-pixel) based on the defocusing algorithm and the first grayscale value of the target sub-pixel (e.g., the blue sub-pixel). The purpose of the defocusing process is to make the second grayscale value smaller than the first grayscale value, which is carried in the bitmap sent by the processor 110 to the display driver module 301. Then, the display driver module 301 transforms the first grayscale value of the non-target sub-pixel (e.g., the first grayscale value of the red sub-pixel and the first grayscale value of the green sub-pixel) and the second grayscale value of the target sub-pixel (e.g., the blue sub-pixel) into voltage or current forms according to the display driving algorithm, and drives the display panel 302 to light up the light-emitting points (pixels) on the display panel 302 with the corresponding voltage or current.

[0119] In one possible implementation, taking a blue sub-pixel as an example, to determine the second grayscale value of the blue sub-pixel, the first grayscale values ​​of a preset number of blue sub-pixels can be averaged. For example, the first grayscale values ​​of the preset number of blue sub-pixels can be summed to obtain a total grayscale value, and then the total grayscale value can be averaged according to the preset number to obtain the second grayscale value of the blue sub-pixel. Assuming the preset number is 9, the second grayscale value = (first grayscale value 1 + first grayscale value 2 + first grayscale value 3 + first grayscale value 4 + first grayscale value 5 + first grayscale value 6 + first grayscale value 7 + first grayscale value 8 + first grayscale value 9) / 9.

[0120] In one implementation, the electronic device determines a preset number of blue sub-pixels in the first pixel matrix 400 in the form of an N*N matrix or an N*M matrix (also known as a defocus matrix). For example, using an N*N matrix, the electronic device determines a first starting coordinate in the first pixel matrix (e.g., starting coordinate = (N-1) / 2)*X + (N-1) / 2 + 1), and then finds all blue sub-pixels (B) in the N*N matrix with the starting coordinate as the center point. During the search, the value of the starting coordinate is first assigned to i. For the first row of the N*N matrix, the starting coordinate of the first row is i - (N-1) / 2*X - (N-1) / 2), and the ending coordinate of the first row is i - (N-1) / 2*X + (N-1) / 2, where N is the column number in the N*N matrix. For the nth row of an N*N matrix, the starting coordinate of the nth row is i - (N-1) / 2*X - (N-1) / 2 + (n-1)*X, and the ending coordinate of the nth row is i - (N-1) / 2*X + (N-1) / 2 + (n-1)*X. The value of n is less than or equal to the number of rows in the N*N matrix. Finally, the electronic device can determine the coordinates of all blue sub-pixels in the N*N matrix based on the starting and ending coordinates of each row. The first pixel matrix is ​​a Y*X matrix, where Y represents the value of the first pixel matrix in the vertical direction (i.e., the number of rows), and X represents the value of the first pixel matrix in the horizontal direction (i.e., the number of columns).

[0121] For example, let's take the target sub-pixel as the blue sub-pixel. Please refer to Figure 5A. Figure 5A is a schematic diagram of a first pixel matrix and a defocus matrix of the blue sub-pixel provided in an embodiment of this application. The first pixel matrix shown in Figure 5A is a 6*10 matrix, that is, Y*X=6*10. The first pixel matrix includes 6 rows and 10 columns, with a total of 60 pixels. Each pixel is composed of three sub-pixels: RGB. The defocus matrix of the blue sub-pixel shown in Figure 5A is a 3*3 matrix, that is, N*N=3*3. Therefore, the first starting coordinate in the first pixel matrix shown in Figure 5A is (N-1) / 2)*X+(N-1) / 2+1=(3-1) / 2)*10+(3-1) / 2+1=12. The first 3*3 matrix can be formed with pixel (12) as the center. For the first row of the first 3*3 matrix, the starting coordinate of the first row of the first 3*3 matrix is ​​i-(N-1) / 2*X-(N-1) / 2)=12-(3-1) / 2*10-(3-1) / 2=1, and the ending coordinate of the first row is i-(N-1) / 2*X+(N-1) / 2=12-(3-1) / 2*10+(3-1) / 2=3. There is also a pixel (2) between pixel (1) and pixel (3). Therefore, the first row of the first 3*3 matrix includes three pixels: pixel (1), pixel (2) and pixel (3). For the second row of the first 3*3 matrix, the starting coordinate of the second row is i-(N-1) / 2*X-(N-1) / 2)+X=1+10=11, and the ending coordinate of the second row is i-(N-1) / 2*X+(N-1) / 2+X=12-(3-1) / 2*10+(3-1) / 2+10=3+10=13. There is also a pixel (12) between pixel (11) and pixel (13). Therefore, the second row of the first 3*3 matrix includes three pixels: pixel (11), pixel (12), and pixel (13). For the third row of the first 3x3 matrix, the starting coordinate of the third row is i - (N-1) / 2 * X - (N-1) / 2 + X * 2 = 1 + 20 = 21, and the ending coordinate of the third row is i - (N-1) / 2 * X + (N-1) / 2 + X * 2 = 12 - (3-1) / 2 * 10 + (3-1) / 2 + 10 = 3 + 20 = 23. There is also a pixel (22) between pixel (21) and pixel (23). Therefore, the third row of the first 3x3 matrix includes three pixels: pixel (21), pixel (22), and pixel (23). Thus, with pixel (12) as the center, the eight pixels surrounding pixel (12) can be determined.

[0122] Please refer to Figure 5B, which is a schematic diagram of determining blue sub-pixels based on a defocusing algorithm according to an embodiment of this application. As shown in Figure 5B, assume that the first pixel matrix 400 includes Y rows and X columns, and the Y rows and X columns can determine a total of L pixels. Each pixel is composed of red sub-pixels, blue sub-pixels, and green sub-pixels. As can be seen from Figure 5B, the first pixel matrix 400 includes red sub-pixels, blue sub-pixels, and green sub-pixels, and each row of the first pixel matrix 400 includes these three sub-pixels. Each sub-pixel in the first pixel matrix 400 (for example, the red sub-pixel R′) i-11 Green subpixel G′ i-11 and blue sub-pixel B′ i-11 There is a first gray value, which is the gray value of the brightness domain.

[0123] The blue sub-pixel B′ shown in Figure 5B i-5 For example, in order to determine the blue sub-pixel B′ i-5 In one implementation, the second grayscale value can be determined as shown in Figure 5A in the form of an N*N (3*3) matrix, including the blue sub-pixel B′. i-5 There are 9 blue sub-pixels, including a 3x3 matrix 401 that corresponds to the blue sub-pixels in rows 3 and columns 3. As can be seen from Figure 5B, among these 9 blue sub-pixels, excluding blue sub-pixel B′... i-5 Besides, the other 8 blue sub-pixels are located at B′ i-5 The blue sub-pixel B′ directly above i-10 The blue sub-pixel B′ directly below i The blue sub-pixel B′ on the right i-6 The blue sub-pixel B′ on the right i-4 The blue sub-pixel B′ in the upper left corner i-11 The blue sub-pixel B′ in the upper right corner i-9 The blue sub-pixel B′ in the lower left corner i-1 And the blue sub-pixel B′ in the lower right corner i+1 .

[0124] In another implementation, the blue sub-pixel B′ can be determined in the form of an N*M (4*3) matrix. i-5 There are 12 blue sub-pixels, including a 4*3 matrix 402 that corresponds to 4 rows and 3 columns of blue sub-pixels. As can be seen from Figure 5B, these 12 blue sub-pixels, excluding blue sub-pixel B′... i-5 Besides, the other 11 blue sub-pixels are located at B′ i-5 The blue sub-pixel B′ directly above i-10 The blue sub-pixel B′ directly below i and blue sub-pixel B′i+5 The blue sub-pixel B′ on the right i-6 The blue sub-pixel B′ on the right i-4 The blue sub-pixel B′ in the upper left corner i-11 The blue sub-pixel B′ in the upper right corner i-9 The blue sub-pixel B′ in the lower left corner i-1 and blue sub-pixel B′ i+1 And, the blue sub-pixel B′ in the lower right corner. i+1 and blue sub-pixel B′ i+6 .

[0125] Therefore, provided that the blue sub-pixel satisfies an N*N matrix or an N*M matrix, that is, provided that the blue sub-pixel is located in the middle region of an N*N matrix or an N*M matrix, the second grayscale value of the aforementioned blue sub-pixel can be determined in the form of an N*N matrix or an N*M matrix in the first pixel matrix 400 shown in Figure 5B. Let the N*N matrix be a 3*3 matrix and the blue sub-pixel B′... i-5 For example, in the first pixel matrix 400 shown in Figure 5B, the second grayscale values ​​of 9 blue sub-pixels can be determined. These 9 blue sub-pixels are B′ i B′ i-5 B′ i-4 B′ i-3 B′ i+1 B′ i+2 B′ i+5 B′ i+6 and B′ i+7 Each of the nine blue sub-pixels satisfies a 3x3 matrix, meaning that a 3x3 matrix can be determined in the first pixel matrix with each of these nine blue sub-pixels as the center.

[0126] The second grayscale value of these 9 blue sub-pixels can be referenced from Formula 1, where B in Formula 1... j_data This is represented as the value of the blue sub-pixel in the first RGB data (for example, the first grayscale value). Formula 1 is shown below:

[0127] Please refer to Figure 6A, which is a schematic diagram of the hardware structure of a display driver integrated circuit provided in an embodiment of this application. As shown in Figure 6A, the display driver integrated circuit DDIC500 includes a first circuit 501, a second circuit 502, and a mixer 503.

[0128] The first circuit 501 is used to perform defocus processing on the blue sub-pixel (B) in the first RGB data to obtain a blue sub-pixel with defocus effect (i.e., a blue sub-pixel B′ with a second grayscale value). The first circuit 501 includes, but is not limited to, the following modules: a data matrix detect module and a defocus processing module.

[0129] The second circuit 502 is used to process the sub-pixels in the first RGB data input to the DDIC 500 based on the Sub-pixel Rendering (SPR) algorithm, for example, changing the sub-pixel arrangement of the first RGB data from RGB to RGBG. The first RGB data includes red sub-pixels with a first grayscale value, green sub-pixels with a first grayscale value, and blue sub-pixels with a first grayscale value. The second circuit 502 includes, but is not limited to, the following modules: a buffer, a gray-to-luminous conversion module, an SPR processing module, and a luminous-to-grayscale conversion module.

[0130] Mixer 503 is used to superimpose blue sub-pixels with a second gray value, red sub-pixels with a first gray value, and green sub-pixels with a first gray value together based on the SPR algorithm.

[0131] In one possible implementation, as shown in Figure 6A, after the first RGB data is input to the DDIC 500, the DDIC 500 can first cache the first RGB data in an internal buffer. The first RGB data includes a pixel matrix (for example, the first pixel matrix 400 shown in Figure 5B), and this buffer can be a line buffer. In the myopia prevention mode (for example, the myopia prevention mode shown in Figure 3C or Figure 3D), the DDIC 500 activates the first circuit 501, so both the second circuit 502 and the first circuit 501 are in a conducting state. In the non-myopia prevention mode, the first circuit 501 is not activated, so only the second circuit is in a conducting state. The second circuit can use a second method based on a display driving algorithm to transform the first grayscale value of the red sub-pixel, the first grayscale value of the green sub-pixel, and the first grayscale value of the blue sub-pixel into voltage or current, etc., to drive the display panel 302, illuminating the light-emitting points (sub-pixels) on the display panel 302 with the corresponding voltage or current. For example, the main interface 101 shown in Figure 3A can be displayed on the screen.

[0132] For example, after the first RGB data is transmitted to the second circuit 502, the second circuit 502 can first convert the first RGB data with grayscale values ​​into first RGB data with luminance values ​​through a grayscale-to-luminance domain module. It should be noted that in the formulas of this application embodiment (for example, formula three), the luminance value corresponding to the first grayscale value of the red sub-pixel can be represented as R, the luminance value corresponding to the first grayscale value of the green sub-pixel can be represented as G, and the luminance value corresponding to the first grayscale value of the blue sub-pixel can be represented as B.

[0133] For example, please refer to Figure 7, which is a schematic diagram of a gamma curve provided in an embodiment of this application. The gamma curve is a non-linear correction method used to adjust image brightness and contrast, its main purpose being to match the colors on the display device with the natural colors seen by the human eye. When the gamma value is equal to 1, the curve is a straight line at 45 degrees to the coordinate axis, indicating that the input and output values ​​are the same; when the gamma value is greater than 1, the gamma value can make the output brighter; when the gamma value is less than 1, the gamma value can make the output darker. As shown in Figure 7, the gamma curve includes: gamma2.2 curve -f(2.2), gamma1 curve -f(1), and gamma0.45 curve -f(0.45). The gamma2.2 curve is used to brighten the output of the first RGB data, the gamma1 curve is used to make the input and output of the first RGB data the same, and the gamma0.45 curve is used to darken the output of the first RGB data. Therefore, by converting the first RGB data from the gamma2.2 curve to the gamma1 curve, the grayscale value of the first RGB data can be converted into a linear brightness value.

[0134] Next, as shown in Figure 6A, in the second circuit 502, the SPR processing module processes the brightness value of the first RGB data based on the SPR algorithm. It is understood that in the traditional RGB arrangement, each pixel consists of sub-pixels of red, green, and blue colors. However, in some new display technologies such as OLED or LCD, due to manufacturing processes or design requirements, the arrangement of sub-pixels may differ. Therefore, it is necessary to rearrange the sub-pixels in the first RGB data according to the corresponding sub-pixel arrangement in the brightness domain. It is understood that the first RGB data may include the pixel matrix shown in Figure 5B. For example, taking the pixel matrix shown in Figure 5B as an example, the sub-pixels processed based on the SPR algorithm (for example, the red sub-pixel R″)... i Green subpixel G″ i and blue sub-pixel B″ i As shown in Formula 2 below:

[0135] Formula 2:

[0136] In Formula 2, the red sub-pixel R′ i Green subpixel G′ i and blue sub-pixel B′ i This can be represented as a sub-pixel after processing by the first circuit 501. A description of the "first circuit 501" is provided below and will not be repeated here.

[0137] For example, after the first RGB data is transmitted to the first circuit 501, the first circuit 501 can first use a detection module to detect whether the grayscale values ​​of each blue sub-pixel in the first RGB data are the same. If they are the same, it means that even if the blue sub-pixel is defocused by the defocusing processing module, the grayscale value of the processed blue sub-pixel will not change. Therefore, the first RGB data can be transmitted to the second circuit 502. If they are not the same, the first RGB data is transmitted to the defocusing processing module. In the defocusing processing module, the second grayscale value (B′) of the blue sub-pixel is determined based on the defocusing algorithm and the first grayscale value (B) of the blue sub-pixel. For example, when determining the second grayscale value of the blue sub-pixel, the first RGB data can first be converted from the gamma2.2 curve to the gamma1 curve as shown in Figure 7, thereby converting the first RGB data from the grayscale domain to the luminance domain. Then, in the luminance domain, defocusing processing is performed on the first grayscale value of the blue sub-pixel in the first RGB data to obtain the second grayscale value of the blue sub-pixel. For example, the defocus processing module can determine a preset number of blue sub-pixels in the pixel matrix in the form of a defocus matrix, and then average the brightness values ​​corresponding to the first grayscale values ​​of the preset number of blue sub-pixels to obtain the second grayscale value of the blue sub-pixels. The method of "determining the second grayscale value of the blue sub-pixels" can be referred to Figure 5A or Figure 5B above, and will not be repeated here.

[0138] It is understandable that the second circuit 502 and the first circuit 501 can process the first RGB data simultaneously.

[0139] Next, the mixer 503 shown in Figure 6A superimposes the sub-pixels input from the defocus processing module (including the blue sub-pixels after defocus processing, the red sub-pixels without defocus processing, and the green sub-pixels without defocus processing) and the sub-pixels output from the SPR processing module, that is, combining Equations 1 and 2 yields Equation 3. It can be understood that because the defocus processing module does not perform defocus processing on the red and green sub-pixels, the red and green sub-pixels output by the defocus processing module are consistent with the sub-pixels output by the SPR processing module in the second circuit 502, that is, the red sub-pixel R′=R and the green sub-pixel G′=G in Equation 2. Therefore, Equation 3 is as follows:

[0140] As can be seen from Formulas 1, 2, and 3, Formula 3 can be obtained by replacing the blue sub-pixel in Formula 2 with the blue sub-pixel in Formula 1. That is, replacing the blue sub-pixel after SPR processing with the blue sub-pixel after defocus processing yields the second RGB data. The second RGB data includes the luminance value corresponding to the second grayscale value of the blue sub-pixel, the luminance value corresponding to the first grayscale value of the chromatic sub-pixel, and the luminance value corresponding to the first grayscale value of the green sub-pixel. In Formulas 2 and 3, k1, k2, k3, k4, k5, k6, k7, k8, and k9 are the weights corresponding to each sub-pixel in the SPR algorithm.

[0141] Next, because the blue sub-pixel undergoes defocusing processing in the luminance domain and the color sub-pixel undergoes SPR processing, the second RGB data output by mixer 503 is luminance domain data. Therefore, in the second circuit 502, the color sub-pixel with luminance value is converted to a color sub-pixel with grayscale value through the luminance domain to grayscale domain module. For example, the gamma0.45 curve shown in Figure 7 can be used to convert the luminance domain sub-pixel data to grayscale domain sub-pixel data. Therefore, the second RGB data output by the second circuit 502 includes red sub-pixels with first grayscale values, green sub-pixels with first grayscale values, and blue sub-pixels with second grayscale values ​​arranged in RGBG format.

[0142] Finally, the DDIC500 transmits the second RGB data pixel by pixel to the corresponding display area to display the user interface, such as user interface 330 shown in Figure 3D, which has the second color clarity.

[0143] Please refer to Figure 6B, which is a schematic diagram of the hardware structure of another display driver integrated circuit provided in an embodiment of this application. As shown in Figure 6B, the display driver integrated circuit DDIC600 includes a first circuit 601 and a second circuit 602.

[0144] The first circuit 601 is used to defocus the blue sub-pixel (B) in the first RGB data to obtain a blue sub-pixel with a defocus effect (i.e., a blue sub-pixel B′ with a second grayscale value). Then, the first circuit 601 inputs the first RGB data including the blue sub-pixel B′ with the second grayscale value into the second circuit 602. The first circuit 601 includes, but is not limited to, the following modules: a first buffer, a detection module, a grayscale-to-luminance domain module, a defocus processing module, and a luminance-to-grayscale domain module.

[0145] In one implementation, in the myopia prevention mode (such as the myopia prevention mode shown in Figure 3C or Figure 3D), DDIC600 activates the first circuit 601, which is in a conducting state. In the non-myopia prevention mode, the first circuit 601 is not activated, so only the second circuit 602 is in a conducting state. The second circuit 602 can use a second method based on a display driving algorithm to transform the first grayscale value of the red sub-pixel, the first grayscale value of the green sub-pixel, and the first grayscale value of the blue sub-pixel stored in the second buffer into voltage or current, etc., to drive the display panel 302, so as to light up the light-emitting points (sub-pixels) on the display panel 302 with the corresponding voltage or current. For example, the main interface 101 shown in Figure 3A can be displayed on the screen.

[0146] For example, when the first circuit 601 is in the ON state, after the detection module in the first circuit 601 obtains the first RGB data from the first buffer, it can first detect whether the grayscale value of each blue sub-pixel in the first RGB data is the same. If they are the same, it means that even if the blue sub-pixel is defocused by the defocusing processing module, the grayscale value of the processed blue sub-pixel will not change. Therefore, the first RGB data can be transmitted to the second circuit 602. If they are not the same, the first RGB data is transmitted to the grayscale-to-luminance domain module in the first circuit 601. In the grayscale-to-luminance domain module in the first circuit 601, the grayscale value of each sub-pixel in the first RGB data can be converted into a luminance value. That is, the grayscale data (e.g., R) of the input is converted into a luminance value by using the gamma 2.2 curve and the gamma 1 curve shown in Figure 7. i G i B i Convert to linear luminance data (e.g., f(R)). i )f(G i )f(B i Then, f(R) i )f(G i )f(B i The input is sent to the defocus processing module. The defocus module processes f(R)... i )f(G i )f(B i The blue sub-pixels in the image are defocused (for example, the defocusing process shown in Figure 5B), and the final defocused data is shown in Formula 4 below:

[0147] Next, the defocus module in the first circuit 601 will use the defocus data (R′) shown in Formula 4. i G′ i B′ iThe input data (R′) is fed into the luminance-to-grayscale module in the first circuit 601. In the luminance-to-grayscale module, the input defocus data (R′) can be converted using the gamma (0.45) curve shown in Figure 7. i G′ i B′ i The data is converted from the luminance domain to the grayscale domain, resulting in the first output data as shown in Formula 5 below:

[0148] Finally, the first circuit 601 inputs the first output data shown in Formula 5 into the second circuit 602.

[0149] For example, the second circuit 602 first stores the first input data shown in Formula 5 into the second buffer. Then, the second circuit 602 processes the sub-pixels in the first RGB data, which includes the blue sub-pixel B′ with a second grayscale value, based on the Sub-pixel Rendering (SPR) algorithm. For example, it processes the sub-pixel arrangement of the first RGB data from RGB to RGBG. The first RGB data includes red sub-pixels with a first grayscale value, green sub-pixels with a first grayscale value, and blue sub-pixels with a second grayscale value. The second circuit 602 includes, but is not limited to, the following modules: a grayscale-to-luminance domain module, an SPR processing module, and a luminance-to-grayscale domain module.

[0150] In one implementation, the second circuit 602 can first convert the first input data with grayscale values ​​into first input data with luminance values ​​through a grayscale-to-luminance domain conversion module. For example, when the first input data is converted from the gamma2.2 curve shown in Figure 7 to the gamma1 curve shown in Figure 7, the grayscale value of the first input data can be converted into a linear luminance value. Next, in the second circuit 602, the first input data shown in Formula 5 is processed based on the SPR algorithm in the SPR processing module, resulting in second RGB data (for example, including the red sub-pixel R″). i Green subpixel G″ i and blue sub-pixel B″ i The expression for ) is shown in Formula Six below:

[0151] Next, in the second circuit 602, the second RGB data with brightness values ​​is converted into second RGB data with grayscale values ​​through the brightness domain to grayscale domain module.

[0152] For example, the luminance domain to grayscale domain module in the second circuit 602 can use the gamma0.45 curve shown in Figure 7 to convert the sub-pixel data in the luminance domain into sub-pixel data in the grayscale domain. Therefore, the second RGB data output by the second circuit 502 includes red sub-pixels with first grayscale values, green sub-pixels with first grayscale values, and blue sub-pixels with second grayscale values ​​arranged in RGBG manner.

[0153] Finally, the DDIC600 transmits the second RGB data pixel by pixel to the corresponding display area to display the user interface, such as user interface 330 shown in Figure 3D, which has second color clarity.

[0154] It should be noted that in Formulas 4, 5, and 6, B is represented by the figure in Figure 5B. i Let's take an example to illustrate.

[0155] It should be noted that the target sub-pixel in this application embodiment is a color sub-pixel pre-set by the electronic device 100. If the target sub-pixel is not a blue sub-pixel, the method for confirming the second grayscale value of other color sub-pixels (such as red sub-pixels and / or green sub-pixels) can refer to the method for confirming the second grayscale value of blue sub-pixels in this application embodiment, and this application will not elaborate on it further.

[0156] The hardware and software structures of the electronic devices according to embodiments of this application are described below.

[0157] As shown in Figure 8, Figure 8 is a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of this application. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 221, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, an angle sensor 180M, etc.

[0158] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0159] Processor 110 may include one or more processing units, such as application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.

[0160] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.

[0161] The processor 110 may also include a memory for storing instructions and data. In one embodiment, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0162] In one embodiment, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and / or a universal serial bus (USB) interface, etc.

[0163] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0164] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel (for example, display panel 302 shown in Figure 4). The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In one embodiment, electronic device 100 may include N displays 194, where N is a positive integer greater than 1.

[0165] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0166] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, converting it into an image visible to the naked eye. The ISP can also perform algorithmic optimization on image noise, brightness, etc. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In one embodiment, the ISP can be set in the camera 193.

[0167] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In one embodiment, electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0168] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.

[0169] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0170] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0171] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0172] Internal memory 121 can be used to store computer executable program code, which includes instructions. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 110 executes various functional applications and data processing of electronic device 100 by running instructions stored in internal memory 121 and / or instructions stored in memory located in the processor.

[0173] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. For example, a layered architecture software system can be the Android system, the Harmony operating system (OS), or other software systems. This application embodiment uses the layered architecture Android system as an example to illustrate the software structure of electronic device 100.

[0174] Figure 9 is a schematic diagram of the software architecture of an electronic device 100 provided in an embodiment of this application.

[0175] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In one implementation, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.

[0176] The application layer can include a series of application packages.

[0177] As shown in Figure 9, the application package may include applications such as camera, gallery, calendar, call, map, navigation, Bluetooth, music, video, and settings. The applications in this application can also be replaced with other software such as mini-programs or atomic services. The applications in the embodiments of this application can also be replaced with other software such as mini-programs or atomic services.

[0178] The settings app includes various functions and options that can be used to adjust the appearance and behavior of electronic devices, including network options, notification settings, sound and vibration settings, screen brightness and backlight settings, application settings, user and account settings, privacy assistant settings, and more.

[0179] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0180] As shown in Figure 9, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0181] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.

[0182] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0183] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0184] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).

[0185] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0186] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of download completion or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting alert sounds, vibrating electronic devices, and flashing indicator lights.

[0187] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.

[0188] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0189] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0190] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0191] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0192] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0193] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0194] A 2D graphics engine is a graphics engine for 2D drawing.

[0195] The kernel layer is the layer between hardware and software. The kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver. Specifically, the display driver may include the display driver module 301 shown in Figure 4.

[0196] The following example, using a user interface display scenario, illustrates the workflow of the software and hardware of electronic device 100.

[0197] When the touch sensor 180K receives a touch operation, a corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, touch operation timestamp, etc.). The raw input event is stored in the kernel layer. The application framework layer retrieves the raw input event from the kernel layer and identifies the control corresponding to the input event. Taking a touch click as an example, and the control corresponding to the click as an anti-myopia mode control in the settings application interface, the settings application calls the interface of the application framework layer to retrieve the user interface resources (such as RGB data) from the resource manager, calls the display driver in the kernel layer, and the display driver defocuses the blue sub-pixels in the RGB data, giving the blue sub-pixels a second grayscale value. The user interface including the blue sub-pixels with the second grayscale value is then displayed on the display screen 194, and this user interface has a first color clarity.

[0198] The term "user interface (UI)" used in the specification, claims, and drawings of this application refers to the medium through which an application or operating system interacts and exchanges information with the user. It converts information from its internal form to a form acceptable to the user. The user interface of an application is source code written in a specific computer language such as Java or Extensible Markup Language (XML). This source code is parsed and rendered on the terminal device, ultimately presenting user-recognizable content such as images, text, and buttons. Controls, also known as widgets, are the basic elements of the user interface. Typical controls include toolbars, menu bars, text boxes, buttons, scroll bars, images, and text. The attributes and content of controls in the interface are defined using tags or nodes, such as XML tags. <textview> 、 <imgview> 、 <videoview>Nodes define the controls contained in the interface. A node corresponds to a control or property in the interface, and after parsing and rendering, the node is presented as the content visible to the user. In addition, many applications, such as hybrid applications, often contain web pages within their interfaces. A web page, also known as a webpage, can be understood as a special control embedded in the application interface. Web pages are source code written in a specific computer language, such as Hypertext Markup Language (HTML), Cascading Style Sheets (CSS), JavaScript (JS), etc. Web page source code can be loaded and displayed as user-readable content by a browser or a web page display component with browser-like functionality. The specific content contained in a webpage is also defined through tags or nodes in the webpage source code; for example, HTML uses tags or nodes to define the content. 、 、 <video> 、 <canvas>Used to define the elements and attributes of a webpage.

[0199] The most common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be an icon, window, control, or other interface element displayed on the screen of an electronic device. Controls can include visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.

[0200] It should be understood that the steps in the above-described method embodiments provided in this application can be implemented by integrated logic circuits in the processor hardware or by instructions in software form. The method steps disclosed in the embodiments of this application can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.

[0201] This application also provides an electronic device that may include a memory and a processor. The memory may be used to store a computer program; the processor may be used to invoke the computer program in the memory to cause the electronic device to perform the methods in any of the above embodiments.

[0202] This application also provides a chip system including at least one processor for implementing the functions involved in the methods performed by the electronic device in any of the above embodiments.

[0203] In one possible design, the chip system also includes a memory for storing program instructions and data, which may be located within or outside the processor.

[0204] The chip system can consist of chips or include chips and other discrete components.

[0205] Optionally, the chip system may contain one or more processors. These processors can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor, implemented by reading software code stored in memory.

[0206] Optionally, the chip system may contain one or more memories. The memory may be integrated with the processor or disposed separately from it; this application embodiment does not limit this. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or disposed separately on different chips. This application embodiment does not specifically limit the type of memory or the arrangement of the memory and processor.

[0207] For example, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD), or other integrated chips.

[0208] This application also provides a computer program product comprising: a computer program (also referred to as code or instructions) that, when run, causes a computer to perform the method executed by the electronic device in any of the above embodiments.

[0209] This application also provides a computer-readable storage medium storing a computer program (also referred to as code or instructions). When the computer program is run, it causes the computer to perform the method executed by the electronic device in any of the above embodiments.

[0210] The various embodiments of this application can be combined arbitrarily to achieve different technical effects.

[0211] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk).

[0212] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

[0213] In summary, the above description is merely an embodiment of the technical solution of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made according to the disclosure of the present invention should be included within the scope of protection of the present invention.< / canvas> < / video> < / videoview> < / imgview> < / textview>

Claims

1. A display method, characterized in that, Applied to electronic devices, the method includes: When the electronic device is in myopia prevention mode, a first user interface is displayed using a first method. The color clarity of the first user interface displayed using the first method is a first color clarity, wherein the first color clarity is determined by the first display brightness corresponding to L pixels in the first user interface. The first display brightness of the first pixel is determined by the second gray value of the target sub-pixel and the first gray value of the non-target sub-pixel in the first pixel. The first pixel is any one of the L pixels, the target sub-pixel is any one or more of red, green and blue sub-pixels, and the non-target sub-pixels are sub-pixels other than the target sub-pixel whose second gray value is less than the first gray value. L is a positive integer.

2. The method according to claim 1, characterized in that, The method further includes: When the electronic device is not in the myopia prevention mode, the first user interface is displayed using a second method. The color clarity of the first user interface displayed using the second method is the second color clarity. The second color clarity is determined by the second display brightness corresponding to the L pixels respectively. The second display brightness of the first pixel is determined by the first gray value of the red sub-pixel, the first gray value of the green sub-pixel, and the first gray value of the blue sub-pixel of the first pixel. The first color clarity is less than the second color clarity.

3. The method according to claim 1 or 2, characterized in that, The second grayscale value of the target sub-pixel is determined based on the defocus algorithm and the first grayscale value of the target sub-pixel.

4. The method according to claim 3, characterized in that, The defocusing algorithm is an averaging algorithm, and the second gray value of the target sub-pixel is obtained by averaging the first gray values ​​of a preset number of target sub-pixels.

5. The method according to claim 4, characterized in that, The L pixels correspond to the first pixel matrix, and the preset number of target sub-pixels includes target sub-pixels obtained in the first pixel matrix in the form of an N*N matrix or an N*M matrix, wherein the preset number is equal to N*N or N*M, and N and M are positive integers.

6. The method according to claim 5, characterized in that, When the electronic device is in myopia prevention mode, displaying the first user interface using a first method includes: When the electronic device is in anti-myopia mode, the preset number of target sub-pixels are obtained from the first pixel matrix in the form of the N*N matrix or the N*M matrix using a first method; The second gray value is obtained by averaging the first gray values ​​corresponding to the preset number of target sub-pixels. The first user interface is displayed based on the second gray value of the target sub-pixel, the first gray value of the red sub-pixel, and the first gray value of the green sub-pixel.

7. The method according to claim 6, characterized in that, The step of averaging the first gray values ​​corresponding to the preset number of target sub-pixels to obtain the second gray value includes: The total gray value is obtained by summing the first gray values ​​corresponding to the preset number of target sub-pixels. The second gray value is obtained by averaging the total gray values ​​according to the preset quantity.

8. The method according to claim 6 or 7, characterized in that, The N*N matrix is ​​a 3*3 matrix, and the preset quantity is 9.

9. The method according to any one of claims 1 to 8, characterized in that, The target sub-pixel is the blue sub-pixel, and the non-target sub-pixels include the red sub-pixel and the green sub-pixel.

10. A display screen, characterized in that, The display screen is used in an electronic device. The display screen includes a display driving module and a display panel. The display driving module includes a first circuit. When the electronic device is in anti-myopia mode, the first circuit is used to drive the display panel to display a first user interface using a first method. The color clarity of the first user interface displayed using the first method is a first color clarity, wherein the first color clarity is determined by the first display brightness corresponding to L pixels in the first user interface. The first display brightness of the first pixel is determined by the second gray value of the target sub-pixel and the first gray value of the non-target sub-pixel in the first pixel. The first pixel is any one of the L pixels, the target sub-pixel is any one or more of red, green and blue sub-pixels, and the non-target sub-pixels are sub-pixels other than the target sub-pixel among the red, green and blue sub-pixels. The second gray value is less than the first gray value, and L is a positive integer.

11. The display screen according to claim 10, characterized in that, The display driver module also includes a second circuit; When the electronic device is not in the myopia prevention mode, the second circuit is used to drive the display panel to display a first user interface using a second method. The color clarity of the first user interface displayed using the second method is a second color clarity, wherein the second color clarity is determined by the second display brightness corresponding to the L pixels respectively. The second display brightness of the first pixel is determined by the first gray value of the red sub-pixel, the first gray value of the green sub-pixel, and the first gray value of the blue sub-pixel of the first pixel. The first color clarity is less than the second color clarity.

12. The display screen according to claim 10 or 11, characterized in that, The target sub-pixel is the blue sub-pixel, and the non-target sub-pixels include the red sub-pixel and the green sub-pixel shown.

13. An electronic device, characterized in that, The electronic device includes: one or more processors; a memory; wherein the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code including computer instructions, and the one or more processors call the computer instructions to cause the electronic device to perform the method as described in any one of claims 1-9.

14. A chip system, characterized in that, The chip system is applied to an electronic device, the chip system including one or more processors, the processors being used to invoke computer instructions to cause the electronic device to perform the method as described in any one of claims 1-9.

15. A computer program product containing instructions, characterized in that, When the computer program product is run on an electronic device, it causes the electronic device to perform the method as described in any one of claims 1-9.

16. A computer-readable storage medium comprising instructions, characterized in that, When the instructions are executed on an electronic device, the electronic device causes the electronic device to perform the method as described in any one of claims 1-9.

Citation Information

Patent Citations

  • Image display method and mobile terminal

    CN107800868A

  • Display control method, terminal, and computer readable storage medium

    CN109672780A

  • Image processing system

    CN118284902A

  • Vision correction system and method, light field display and light field shaping layer and alignment therefor

    US20210033859A1

  • An Anti-myopia visual display therapy using simulated myopic blur

    WO2023172449A2