Image display method and apparatus, display device, electronic device, and storage medium

By determining pixel position information in the OLED screen and converting the sub-pixel rendering method, the problem of color difference in the boundary area of ​​the OLED screen is solved, improving image clarity and display quality, and achieving the effect of simulating high resolution with low resolution.

CN115512654BActive Publication Date: 2026-03-20BEIJING ESWIN COMPUTING TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-29
Publication Date
2026-03-20

AI Technical Summary

Technical Problem

Existing OLED screens have color distortion issues in the boundary areas, resulting in color shift in the displayed image and reducing the user experience.

Method used

By determining the position information of pixels in the image, the corresponding sub-pixel rendering method is used to perform pixel conversion. Using at least two rendering methods in the preset sub-pixel rendering library, the first pixel is converted into the second pixel, driving the display panel to display the image.

Benefits of technology

It reduces the possibility of color distortion in boundary areas and color shift in image display, improves image clarity and display quality, reduces the number of pixels, achieves the effect of simulating high resolution with low resolution, and reduces the consumption of hardware or network resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115512654B_ABST
    Figure CN115512654B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure disclose an image display method and device, a display device, an electronic device and a storage medium. The method comprises: determining position information of a first pixel in the image; determining a target sub-pixel rendering mode from a preset sub-pixel rendering library based on the position information of the first pixel; converting the first pixel into a second pixel based on the target sub-pixel rendering mode; and driving a display panel using the second pixel to display the image in the display panel.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to, but is not limited to, the technical field of display, and particularly relates to an image display method and device, a display device, an electronic device and a storage medium. BACKGROUND

[0002] With the continuous pursuit of display effect, high PPI (Pixels Per Inch) display screens have become one of the necessary configurations of various display terminals, such as OLED (Organic Light-Emitting Diode) screens. In order to achieve the effect of simulating high resolution with low resolution, the OLED screen needs to use a sub-pixel rendering (SPR) method when displaying.

[0003] In the related art, most SPRs use color borrowing from the surrounding four pixels, which causes color difference problems in some boundary areas, resulting in color cast in the displayed image, and further reducing the user experience. SUMMARY

[0004] The present disclosure provides at least an image display method and device, a display device, an electronic device, a storage medium and a computer program product.

[0005] The technical solution of the present disclosure embodiment is implemented as follows:

[0006] The present disclosure provides an image display method, which comprises:

[0007] determining position information of a first pixel in the image;

[0008] determining a target sub-pixel rendering method from a preset sub-pixel rendering library based on the position information of the first pixel, the sub-pixel rendering library comprising at least two sub-pixel rendering methods;

[0009] converting the first pixel into a second pixel based on the target sub-pixel rendering method;

[0010] driving a display panel using the second pixel to display the image on the display panel.

[0011] The present disclosure provides an image display device, which comprises a detection module, a conversion module and a display module, wherein:

[0012] The detection module is configured to detect the position of a first pixel in an image to obtain position information of the first pixel.

[0013] The conversion module is electrically connected with the detection module, configured to determine a target sub-pixel rendering mode from a preset sub-pixel rendering library based on the position information of the first pixel, the sub-pixel rendering library including at least two sub-pixel rendering modes; convert the first pixel into a second pixel based on the target sub-pixel rendering mode; and output the second pixel to the display module electrically connected therewith.

[0014] The display module is configured to display the image.

[0015] The display device provided in the embodiments of the present disclosure includes a driving device and a display panel coupled with the driving device, wherein:

[0016] The driving device is configured to receive a target image, convert a first pixel in the target image into a second pixel by using the above method, and drive the display panel by using the second pixel to display the image on the display panel.

[0017] The display panel is configured to display the image.

[0018] The electronic device provided in the embodiments of the present disclosure includes a processor and a memory, the memory stores a computer program capable of running on the processor, and the processor implements the above method when executing the computer program.

[0019] The computer readable storage medium provided in the embodiments of the present disclosure stores a computer program, and the computer program is executed by a processor to implement the above method.

[0020] The computer program product provided in the embodiments of the present disclosure includes a non-transitory computer readable storage medium storing a computer program, and the computer program is read and executed by a computer to implement the above method.

[0021] In the embodiments of the present disclosure, the position information of a first pixel in an image is determined; a target sub-pixel rendering mode is determined from a preset sub-pixel rendering library based on the position information of the first pixel, the sub-pixel rendering library including at least two sub-pixel rendering modes; the first pixel is converted into a second pixel based on the target sub-pixel rendering mode; and the display panel is driven by using the second pixel to display the image on the display panel. In this way, on the one hand, the pixel conversion is performed by using the corresponding sub-pixel rendering mode according to the position information of the pixel in the image, which can reduce the possibility of color difference in the boundary area and color deviation in the image display, thereby achieving the purpose of improving the definition and display quality of the image, and further improving the user experience; on the other hand, the image is displayed by using the sub-pixel rendering mode, which can reduce the number of pixels, thereby not only achieving the effect of simulating high resolution with low resolution, but also reducing the occupation of hardware or network resources.

[0022] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF DRAWINGS

[0023] The drawings incorporated in and forming a part of the specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0024] Figure 1A An implementation flowchart of an image display method provided by an embodiment of the present disclosure is shown in the figure;

[0025] Figure 1B A composition diagram of a first pixel of an image provided by an embodiment of the present disclosure is shown in the figure;

[0026] Figure 1C A composition diagram of a second pixel of an image provided by an embodiment of the present disclosure is shown in the figure;

[0027] Figure 2 An implementation flowchart of an image display method provided by an embodiment of the present disclosure is shown in the figure;

[0028] Figure 3A A diagram of converting a first pixel of an image into a second pixel provided by an embodiment of the present disclosure is shown in the figure;

[0029] Figure 3B An implementation flowchart of an image display method provided by an embodiment of the present disclosure is shown in the figure;

[0030] Figure 4A A composition structure diagram of an image display device provided by an embodiment of the present disclosure is shown in the figure;

[0031] Figure 4B A composition structure diagram of an image display device provided by an embodiment of the present disclosure is shown in the figure;

[0032] Figure 5 A hardware entity diagram of an electronic device in an embodiment of the present disclosure is shown in the figure. DETAILED DESCRIPTION

[0033] In order to make the purposes, technical solutions and advantages of the present disclosure clearer, the present disclosure will be further described in detail below with reference to the drawings, and the described embodiments should not be regarded as limiting the present disclosure. All other embodiments obtained by those of ordinary skill in the art without creative labor fall within the scope of protection of the present disclosure.

[0034] In the following description, reference is made to "some embodiments", which describe only a subset of all possible embodiments, and which can be understood to be combined with each other unless otherwise indicated. It is understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other in non-conflicting manner.

[0035] In the following description, the terms "first", "second", "third" are merely used to distinguish similar objects, and do not represent a specific order of the objects. It is understood that "first", "second", "third" can be interchanged in a specific order or sequence as allowed, so that the embodiments of the present disclosure described herein can be implemented in an order other than that illustrated or described herein.

[0036] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present disclosure belongs. The terms used herein are only for the purpose of describing the embodiments of the present disclosure and are not intended to limit the present disclosure.

[0037] With the continuous pursuit of display effect, high PPI display screens have become one of the necessary configurations of various display terminals, for example, OLED screens.

[0038] Due to the limitation of evaporation process and precision metal mask plate during evaporation of light-emitting materials, a large distance needs to be maintained between red, green and blue pixels to avoid yield loss, which makes it difficult for OLED screens to achieve high-definition display.

[0039] In order to achieve the effect of simulating high resolution with low resolution, SPR needs to be used, which means using fewer sub-pixels to achieve the same resolution display. Due to different SPR arrangement methods, the actual display image is different in that one pixel point "borrows" another color from its adjacent pixel point to form three primary colors, and the display effect and performance of the screen will be quite different.

[0040] In related technologies, most SPRs borrow colors from the surrounding four pixels, but due to the particularity of the boundary position of the OLED screen, this will cause some boundary areas to have color problems, resulting in color deviation of the display image, and further reducing the user's experience.

[0041] The embodiment of the present disclosure provides an image display method, on the one hand, according to the position information of the pixels in the image, the corresponding sub-pixel rendering mode is used for pixel conversion, which can reduce the possibility of color difference in the boundary area and image display color deviation, so as to achieve the purpose of improving the definition and display quality of the image, and further improve the user experience; on the other hand, the image is displayed by using the sub-pixel rendering mode, which can reduce the number of pixels, so as to not only achieve the effect of simulating high resolution with low resolution, but also reduce the occupation of hardware or network resources. The image display method provided by the embodiment of the present disclosure can be executed by an electronic device, wherein the electronic device can be a notebook computer, a tablet computer, a desktop computer, a set-top box, a mobile device (for example, a mobile phone, a portable music player, a personal digital assistant, a dedicated message device, a portable game device) and various types of terminals, and can also be implemented as a server. The server can be a stand-alone physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content distribution networks (CDN), and basic cloud computing services such as big data and artificial intelligence platforms.

[0042] In the following, the technical solutions in the embodiments of the present disclosure will be described clearly and completely in combination with the drawings in the embodiments of the present disclosure.

[0043] Figure 1A The implementation flowchart of the image display method provided by the embodiment of the present disclosure is shown in FIG. 1, which includes steps S11-S14. Figure 1A As shown in the figure, the method includes steps S11-S14, wherein:

[0044] Step S11, determining the position information of the first pixel in the image.

[0045] Here, the image can be an image in any suitable scene. The image includes at least one first pixel. For example, the image includes 576 first pixels.

[0046] In some embodiments, the image can be acquired in various manners according to actual application scenarios. In practice, a person skilled in the art can determine the acquisition manner of the image according to actual needs, and the embodiments of the present disclosure are not limited. For example, the image can be an image captured by a camera module. The camera module can be a camera, a camera head, or a wide-angle module with an extreme wide-angle shooting function. For another example, the image can be an image received from another device. For another example, the image can also be an image uploaded or set by a user on an operation interface through an input component of an electronic device. The input component can include, but is not limited to, a keyboard, a mouse, a touch screen, a touchpad, an audio input device, etc. The operation interface includes an interactive interface for configuration operation and information display of the image. The operation interface can be displayed on any suitable electronic device with interface interaction function. In practice, the electronic device displaying the operation interface and the device executing the image display method can be the same or different, which is not limited herein. For example, the electronic device executing the image display method can be a notebook computer, the electronic device displaying the operation interface can also be the notebook computer, the operation interface can be an interactive interface of a client running on the notebook computer, or a webpage displayed in a browser running on the notebook computer. For another example, the electronic device executing the image display method can be a server, the electronic device displaying the operation interface can be a notebook computer, the operation interface can be an interactive interface of a client running on the notebook computer, or a webpage displayed in a browser running on the notebook computer, and the notebook computer can access the server through the client or the browser.

[0047] The color encoding manner of the image can include, but is not limited to, RGB (Red, Green, Blue), YUV (Luminance, Chrominance, Chroma), etc.

[0048] The first pixel can be any pixel in the image. In some embodiments, the first pixel has at least three sub-pixels. For example, for the RGB encoding manner, each first pixel has three sub-pixels, i.e., a first sub-pixel R, a second sub-pixel G, and a third sub-pixel B.

[0049] Figure 1B A composition diagram of a first pixel of an image provided by the embodiments of the present disclosure is shown in FIG. 1. As shown in FIG. 1, the image 100 includes 3 rows and 3 columns, i.e., 9 first pixels, i.e., the first pixel 101a to the first pixel 109a. At this time, the position information includes the first pixel 103a and the first pixel 106a. By using the first sub-pixel rendering manner, the first pixel 103a and the first pixel 106a are respectively converted into corresponding second pixels. Figure 1B ​

[0050] The position information can include, but is not limited to, coordinates, row and column values, etc. In some embodiments, the image is divided into rows and columns, and the coordinate information of each first pixel can be obtained and used as the position information of the first pixel. In some embodiments, a two-dimensional coordinate system is established based on a vertex of the image, and the row and column values of each first pixel can be obtained and used as the position information of the first pixel.

[0051] In step S12, a target sub-pixel rendering mode is determined from a preset sub-pixel rendering library based on the position information of the first pixel.

[0052] Here, the sub-pixel rendering library includes at least two sub-pixel rendering modes.

[0053] In some embodiments, each sub-pixel rendering mode corresponds to a different color borrowing mode. That is, the first pixel is converted into a second pixel using different color borrowing modes. The second pixel has at least two sub-pixels. For example, for an RGBG encoding mode, each second pixel can include two sub-pixels, such as a first sub-pixel R and a second sub-pixel G. For another example, a first sub-pixel B and a second sub-pixel G.

[0054] The color borrowing mode can include, but is not limited to, no color borrowing, single-side color borrowing, two-side color borrowing, multi-side color borrowing, etc. The single-side color borrowing can include, but is not limited to, left color borrowing, right color borrowing, up color borrowing, down color borrowing, left-up color borrowing, left-down color borrowing, right-up color borrowing, right-down color borrowing, etc. The two-side color borrowing can be any two single-side color borrowings. The multi-side color borrowing can be any three or more single-side color borrowings.

[0055] The left color borrowing refers to borrowing the color of the left pixel of the current first pixel. The right color borrowing refers to borrowing the color of the right pixel of the current first pixel. The up color borrowing refers to borrowing the color of the upper pixel of the current first pixel. The down color borrowing refers to borrowing the color of the lower pixel of the current first pixel. The left-up color borrowing refers to borrowing the color of the top-left pixel of the current first pixel. The right-up color borrowing refers to borrowing the color of the top-right pixel of the current first pixel. The left-down color borrowing refers to borrowing the color of the bottom-left pixel of the current first pixel. The right-down color borrowing refers to borrowing the color of the bottom-right pixel of the current first pixel.

[0056] For example, the sub-pixel rendering library includes a first sub-pixel rendering mode and a second sub-pixel rendering mode. In some embodiments, the first sub-pixel rendering mode and the second sub-pixel rendering mode each include two single-side borrowing. The two single-side borrowings of the first sub-pixel rendering mode are different from the two single-side borrowings of the second sub-pixel rendering mode. For example, the first sub-pixel rendering mode is left borrowing and upper borrowing, and the second sub-pixel rendering mode is left borrowing and right borrowing. For another example, the first sub-pixel rendering mode indicates that a first sub-pixel of a second pixel is upper borrowing and a second sub-pixel of the second pixel is left borrowing, and the second sub-pixel rendering mode indicates that the first sub-pixel of the second pixel is left borrowing and the second sub-pixel of the second pixel is upper borrowing. The second pixel includes at least two sub-pixels.

[0057] For another example, the sub-pixel rendering library includes a first sub-pixel rendering mode, a second sub-pixel rendering mode, and a third sub-pixel rendering mode. The first sub-pixel rendering mode includes single-side borrowing, and the second sub-pixel rendering mode can include, but is not limited to, two-side borrowing or multi-side borrowing, etc. For example, the second sub-pixel rendering mode can be that a first sub-pixel of a second pixel is three-side borrowing and a second sub-pixel of the second pixel is two-side borrowing. The third sub-pixel rendering mode can include, but is not limited to, multi-side borrowing or no borrowing, etc. For example, the third sub-pixel rendering mode can be that the first sub-pixel of the second pixel is three-side borrowing and the second sub-pixel of the second pixel is no borrowing.

[0058] In implementation, a person skilled in the art can independently determine the correspondence between the sub-pixel rendering mode and the borrowing mode according to actual needs, and the embodiments of the present disclosure are not limited.

[0059] In some embodiments, the correspondence between the sub-pixel rendering mode and the borrowing mode can be determined based on a preset rule. The preset rule can include, but is not limited to, a default configuration of an electronic device, user customization, user preference, use frequency, user operation information, etc. In implementation, a person skilled in the art can independently set the preset rule according to actual needs, and the embodiments of the present disclosure are not limited.

[0060] For example, the electronic device provides a configuration option, through which the user can customize the correspondence.

[0061] For another example, the correspondence can be determined based on attribute information of a user operation, where the attribute information can include, but is not limited to, the type, distance, speed, position, time length, number of operations, etc. In implementation, a person skilled in the art can independently set the relationship between the attribute information of the operation and the correspondence according to actual needs, and the embodiments of the present disclosure are not limited.

[0062] In some embodiments, the correspondence relationship can be determined based on the type of operation, i.e., different types correspond to different correspondence relationships. For example, in the case of the operation gesture being a sliding operation, the correspondence relationship is a first correspondence relationship, which includes that the first sub-pixel rendering manner corresponds to a first color borrowing scheme, the second sub-pixel rendering manner corresponds to a second color borrowing scheme, and the like; in the case of the operation gesture being a multiple-click operation, the correspondence relationship is a second correspondence relationship, which includes that the first sub-pixel rendering manner corresponds to the second color borrowing scheme, the second sub-pixel rendering manner corresponds to the first color borrowing scheme, and the like. The first color borrowing scheme can include single-side color borrowing, and the second color borrowing scheme can include two-side color borrowing.

[0063] In some embodiments, the correspondence relationship can be determined in real time based on the distance of the operation, i.e., different distances correspond to different correspondence relationships. For example, in the case of the sliding distance being a first distance interval, the correspondence relationship is a first correspondence relationship, which includes that the first sub-pixel rendering manner corresponds to a first color borrowing scheme, the second sub-pixel rendering manner corresponds to a second color borrowing scheme, and the like; in the case of the sliding distance being a second distance interval, the correspondence relationship is a second correspondence relationship, which includes that the first sub-pixel rendering manner corresponds to a second color borrowing scheme, the second sub-pixel rendering manner corresponds to a third color borrowing scheme, the third sub-pixel rendering manner corresponds to a fourth color borrowing scheme, and the like. The third color borrowing scheme can include no color borrowing, and the fourth color borrowing scheme can include multi-side color borrowing.

[0064] In some embodiments, a correspondence relationship between the position information and the target sub-pixel rendering manner can be established in advance and stored in the electronic device or other electronic devices. In the case of the correspondence relationship being stored in the electronic device, the electronic device determines the target sub-pixel rendering manner that matches the position information in the correspondence relationship according to the position information. In the case of the correspondence relationship being stored in other electronic devices, the electronic device sends the position information to the other electronic devices, so that the other electronic devices determine the target sub-pixel rendering manner that matches the position information in the correspondence relationship according to the position information, and return the target sub-pixel rendering manner to the electronic device. In practice, a person skilled in the art can independently determine the correspondence relationship between the position information and the target sub-pixel rendering manner according to actual needs, which is not limited in the embodiments of the present disclosure.

[0065] For example, the first image includes M*N pixels, where M and N are the number of rows and columns respectively, in the case that the position information of the first pixel is that the row value is less than M and the column value is equal to N, or the row value is equal to M and the column value is less than N, the first sub-pixel rendering mode is determined as the target SPR; in the case that the position information of the first pixel is that the row value is equal to M and the column value is equal to N, the second sub-pixel rendering mode is determined as the target SPR; in the case that the position information of the first pixel is other positions, the third sub-pixel rendering mode is determined as the target SPR.

[0066] In some embodiments, a default sub-pixel rendering mode can be preset, and based on the position information, the default sub-pixel rendering mode is switched to the corresponding target SPR. For example, the default sub-pixel rendering mode is the third sub-pixel rendering mode, and in the case that the position information is that the row value is equal to M and the column value is less than N, the third sub-pixel rendering mode is switched to the second sub-pixel rendering mode.

[0067] In step S13, the first pixel is converted into a second pixel based on the target sub-pixel rendering mode.

[0068] Here, the second pixel includes at least two sub-pixels. For example, for the RGBG encoding mode, each second pixel can include two sub-pixels. For example, the second pixel includes a first sub-pixel R and a second sub-pixel G. For example, the second pixel includes a first sub-pixel B and a second sub-pixel G.

[0069] Figure 1C A schematic diagram of the composition of a second pixel of an image provided by an embodiment of the present disclosure is shown in Figure 1C As shown in the figure, the image 100 includes 3 rows and 3 columns, a total of 9 second pixels, i.e. pixels 101b to 109b. At this time, the pixel 101b has a first sub-pixel R1 and a second sub-pixel G1, and the pixel 102b has a first sub-pixel B2 and a second sub-pixel G2.

[0070] In step S14, the display panel is driven using the second pixel to display the image in the display panel.

[0071] Here, the display panel can be an OLED panel, an OLED display, or any product or component with display function. In some embodiments, the display panel includes at least one display driving circuit, and each second pixel is used to drive the corresponding display driving circuit, so that the image is rendered and displayed in the display panel.

[0072] In the embodiments of the present disclosure, the position information of the first pixel in the image is determined; a target sub-pixel rendering mode is determined from a preset sub-pixel rendering library based on the position information of the first pixel; the first pixel is converted into a second pixel based on the target sub-pixel rendering mode; and the display panel is driven by using the second pixel to display the image in the display panel. In this way, on the one hand, according to the position information of the pixel in the image, the corresponding sub-pixel rendering mode is used for pixel conversion, which can reduce the possibility of color difference in the boundary area and color deviation in image display, so as to achieve the purpose of improving the definition and display quality of the image, and further improve the user experience; on the other hand, the image is displayed by using the sub-pixel rendering mode, which can reduce the number of pixels, so as to not only achieve the effect of simulating high resolution with low resolution, but also reduce the occupation of hardware or network resources.

[0073] In some embodiments, the step S12 includes steps S121 to S123, wherein:

[0074] In step S121, in a case where the position information belongs to a first region, it is determined that the target sub-pixel rendering mode includes a first sub-pixel rendering mode, and the first sub-pixel rendering mode includes single-side color borrowing.

[0075] Here, the first region can be a region in at least one row or at least one column including a boundary. For example, the last two columns, the last row, etc.

[0076] In some embodiments, the image includes M*N pixels, M is the number of rows, N is the number of columns, M and N are positive integers, and the first region includes a region with a row value less than M and a column value of N, or a region with a row value of M and a column value less than N.

[0077] Here, the first region represents that the first pixel is a right boundary and is not a right bottom corner, or a lower boundary and is not a right bottom corner. For example, as shown in FIG. 1, the first region includes the first pixel 103a, the first pixel 106a, the first pixel 107a and the first pixel 108a. By using the first sub-pixel rendering mode, the first pixel 103a, the first pixel 107a, the first pixel 108a and the first pixel 109a are respectively converted into corresponding second pixels. Figure 1B

[0078] In step S122, in a case where the position information belongs to a second region, it is determined that the target sub-pixel rendering mode includes a second sub-pixel rendering mode, and the second sub-pixel rendering mode includes two-side color borrowing or multi-side color borrowing.

[0079] Here, the second region can be a region including at least one vertex. For example, a right bottom corner, a left top corner, etc.

[0080] ​In some embodiments, the image includes M*N pixels, M is the number of rows, N is the number of columns, M and N are positive integers, and the second region includes a region with a row value of M and a column value of N.

[0081] Here, the second region represents that the first pixel is the lower right corner. As shown in Figure 1B The second region includes the first pixel 109a. By using the second sub-pixel rendering mode, the first pixel 109a is converted into the corresponding second pixel.

[0082] In step S123, in the case that the position information belongs to the third region, it is determined that the target sub-pixel rendering mode includes a third sub-pixel rendering mode, and the third sub-pixel rendering mode includes no color borrowing or multi-edge color borrowing.

[0083] Here, the third region can include a region of at least one row or at least one column. For example, the first L rows, L is a positive integer.

[0084] In some embodiments, the image includes M*N pixels, M is the number of rows, N is the number of columns, M and N are positive integers, and the third region includes a region with a row value less than M and a column value less than N.

[0085] Here, the third region represents that the first pixel is a non-right boundary or a non-lower boundary. As shown in Figure 1B The third region includes the first pixel 101a, the first pixel 102a, the first pixel 104a, and the first pixel 105a. By using the third sub-pixel rendering mode, the first pixel 101a, the first pixel 102a, the first pixel 104a, and the first pixel 105a are respectively converted into the corresponding second pixels.

[0086] In the embodiments of the present disclosure, by using different target sub-pixel rendering modes for pixel conversion of first pixels at different positions, the possibility of color difference in the boundary region and color deviation in image display can be reduced, so as to improve the clarity and display quality of the image, and further improve the user experience.

[0087] Figure 2 The implementation flowchart of the image display method provided by the embodiments of the present disclosure is shown in Figure 2 As shown in

[0088] In step S21, the position information of the first pixel in the image is determined.

[0089] In step S22, based on the position information of the first pixel, a target sub-pixel rendering mode is determined from a preset sub-pixel rendering library.

[0090] Here, the steps S21-S22 correspond to the steps S11-S12 respectively, and in implementation, the specific embodiments of the steps S11-S12 can be referred to.

[0091] The step S23 comprises determining a first target pixel associated with the first pixel based on the target sub-pixel rendering mode.

[0092] Here, the first target pixel associated with the first pixel is different for different sub-pixel rendering modes.

[0093] For example, for the first sub-pixel rendering mode, the first target pixel associated with the first pixel can include but is not limited to the first pixel, a fourth pixel adjacent to the upper side of the first pixel, and a third pixel adjacent to the left side of the first pixel. For example, in Figure 1B For the first pixel 103a, the first target pixel associated with the first pixel 103a includes the first pixel 103a and the first pixel 102a, since the pixel on the upper side of the first pixel 103a is empty. For the first pixel 106a, the first target pixel associated with the first pixel 106a includes the first pixel 106a, the first pixel 103a and the first pixel 105a.

[0094] For example, for the third sub-pixel rendering mode, the first target pixel associated with the first pixel can include but is not limited to the first pixel, a third pixel adjacent to the left side of the first pixel, a fourth pixel adjacent to the upper side of the first pixel, and a fifth pixel adjacent to the left side of the fourth pixel. For example, in Figure 1B For the first pixel 109a, the first target pixel associated with the first pixel 109a includes the first pixel 109a, the first pixel 105a, the first pixel 106a and the first pixel 108a.

[0095] In some embodiments, the step S23 comprises steps S231-S232, wherein:

[0096] The step S231 comprises, in the case that the target sub-pixel rendering mode is the first sub-pixel rendering mode, the first target pixel includes the first pixel, a third pixel adjacent to the left side of the first pixel, and a fourth pixel adjacent to the upper side of the first pixel.

[0097] Here, different sub-pixel rendering modes can correspond to the same or different first target pixels. For example, for the first pixel 107a in Figure 1B For the first pixel 107a, the first target pixel associated with the first pixel 107a includes the first pixel 107a and the first pixel 108a, since the pixel on the left side of the first pixel 107a is empty. By using the first sub-pixel rendering mode, the first pixel 107a is converted into a second pixel.

[0098] Step S232, in the case that the target sub-pixel rendering mode is the second sub-pixel rendering mode or the third sub-pixel rendering mode, the first target pixel includes the first pixel, the third pixel, the fourth pixel, and a fifth pixel adjacent to the left side of the fourth pixel.

[0099] Here, different sub-pixel rendering modes can correspond to the same or different first target pixels. For example, for the first pixel 102a in FIG. 1, since the upper side and the upper left corner of the first pixel 102a are both empty, the associated first target pixel includes the first pixel 102a and the first pixel 101a, and the first pixel 102a is converted into the second pixel by using the third sub-pixel rendering mode. Figure 1B

[0100] Step S24, determining second color information of the second pixel based on first color information of the first target pixel.

[0101] Here, the first color information can include at least two color values. For example, the first color information can include R, G, and B, etc. For another example, the first color information includes a first color value and a second color value, and in this case, for RGB, the first color value can be R or B, and the second color value can be G.

[0102] The second color information can include at least two color values. For example, the second color information can include R, G, and B, or R and G, or B and G, etc. For another example, the second color information includes a third color value and a fourth color value. In this case, for RGBG, the third color value can be R or B, and the fourth color value can be G. For example, as shown in FIG. 1, the second pixel 101b has a third color value R1 and a fourth color value G1, and the second pixel 102b has a third color value B2 and a fourth color value G2. Figure 1C

[0103] Step S25, converting the first pixel into the second pixel.

[0104] Here, by conversion, the first pixel with first color information is converted into the second pixel with second color information. For example, the first pixel with RGB is converted into the second pixel with RGBG. For another example, the first pixel with RGB is converted into the second pixel with RGBW.

[0105] Step S26, driving the display panel by using the second pixel to display the image in the display panel.

[0106] Here, the above step S25 corresponds to the aforementioned step S14, and in implementation, the specific embodiments of the aforementioned step S14 can be referred to.

[0107] ​​In the embodiments of the present disclosure, the position information of the first pixel in the image is determined; based on the position information of the first pixel, a target sub-pixel rendering mode is determined from a preset sub-pixel rendering library; based on the target sub-pixel rendering mode, a first target pixel associated with the first pixel is determined; based on the first color information of the first target pixel, second color information of the second pixel is determined; the first pixel is converted into the second pixel; and the second pixel is used to drive the display panel to display the image in the display panel. In this way, the color information of the second pixel is determined through the target sub-pixel rendering mode, which can improve the accuracy of the color information of the pixel, thereby reducing the possibility of color difference in the display area and color deviation in the image display, and further improving the user experience.

[0108] In some embodiments, the first color information includes at least a first color value and a second color value, the second color information includes a third color value and a fourth color value, and the step S24 includes steps S241-S242, in which:

[0109] In step S241, the third color value of the second pixel is determined based on the first color value of the first target pixel.

[0110] Here, the first color value can be the color of one sub-pixel in the first target pixel. For example, for RGB, the first color value can be R, or B.

[0111] The third color value can be the color of one sub-pixel in the second pixel. For example, for RGBG, the third color value can be R, or B. For example, in Figure 1C In the embodiment, the second pixel 103b has a third color value R3, and the second pixel 104b has a third color value B4.

[0112] The manner of determining the third color value can include, but is not limited to, a certain first color value, the mean / variance / mean square deviation of each first color value, the mean / variance / mean square deviation of each first color value after being weighted respectively, the mean / variance / mean square deviation of the luminance value corresponding to each first color value, the mean / variance / mean square deviation of the luminance value corresponding to each first color value after being weighted respectively, etc. In practice, a person skilled in the art can determine the manner of determining the third color value according to actual needs, and the embodiments of the present disclosure are not limited.

[0113] For example, the mean of each first color value is taken as the third color value. For example, for RGBG, the third color value is R. Figure 1CFor the second pixel 105b in the second sub-pixel rendering mode, the first sub-pixel of the second pixel can be upper borrowing, left borrowing and upper left borrowing, and the second sub-pixel of the second pixel can be no borrowing. In this case, the average of the first color values of the first pixel 101a, the first pixel 102a, the first pixel 104a and the first pixel 105a can be used as the third color value R5 of the second pixel 105b.

[0114] In step S242, the fourth color value of the second pixel is determined based on the second color value of the first target pixel.

[0115] Here, the second color value can be the color of one sub-pixel in the first target pixel. For example, for RGB, the second color value can be G.

[0116] The fourth color value can be the color of one sub-pixel in the second pixel. For example, for RGBG, the fourth color value can be G. For example, in the second sub-pixel rendering mode, the first sub-pixel of the second pixel can be upper borrowing, and the second sub-pixel of the second pixel can be left borrowing. In this case, the average of the second color values of the first pixel 106a and the first pixel 105a can be used as the fourth color value G6 of the second pixel 106b. Figure 1C In the second sub-pixel rendering mode, the second pixel 105b has the fourth color value G5.

[0117] The manner of determining the fourth color value can include but is not limited to a certain second color value, the average / variance / mean square deviation of each second color value, the average / variance / mean square deviation of each second color value after being weighted respectively, the average / variance / mean square deviation of the luminance value corresponding to each second color value, the average / variance / mean square deviation of the luminance value corresponding to each second color value after being weighted respectively, etc. In practice, those skilled in the art can determine the manner of determining the fourth color value according to actual needs, which is not limited in the embodiments of the present disclosure.

[0118] For example, the average of each second color value is used as the fourth color value. For example, for RGBG, the average of each second color value is used as the fourth color value. Figure 1C For the second pixel 106b in the second sub-pixel rendering mode, the first sub-pixel of the second pixel can be upper borrowing, and the second sub-pixel of the second pixel can be left borrowing. In this case, the average of the luminance values corresponding to the second color values of the first pixel 106a and the first pixel 105a can be used as the fourth color value G6 of the second pixel 106b.

[0119] In the embodiments of the present disclosure, the third color value of the second pixel is determined based on the first color value of the first target pixel, and the fourth color value of the second pixel is determined based on the second color value of the first target pixel. In this way, the color values of the second pixel are determined by different color values of the first target pixel, which can improve the accuracy of the color values of the second pixel, thereby reducing the possibility of color difference in the display area and color deviation in image display.

[0120] In some embodiments, the step S241 includes steps S251 to S253, wherein:

[0121] Step S251, determining a third target pixel from the first target pixel.

[0122] Here, the third target pixel can include at least one pixel in the first target pixel.

[0123] For example, the first target pixel can include the first pixel, a third pixel adjacent to the left side of the first pixel, and a fourth pixel adjacent to the upper side of the first pixel. At this time, the third target pixel can include the first pixel and the fourth pixel adjacent to the upper side of the first pixel. For example, in the case of the first pixel 106a, the associated first target pixel includes the first pixel 106a, the first pixel 103a, and the first pixel 105a, and at this time, the third target pixel can include the first pixel 106a and the first pixel 103a. Figure 1B

[0124] In some embodiments, the third target pixel can be determined based on a preset rule. The preset rule can include, but is not limited to, a sub-pixel rendering mode, a default configuration, a custom, user operation information, etc. In practice, those skilled in the art can independently set the preset rule according to actual needs, and the embodiments of the present disclosure are not limited.

[0125] In some embodiments, the step S251 includes steps S2511 to S2512, wherein:

[0126] Step S2511, in the case where the target sub-pixel rendering mode is a first sub-pixel rendering mode, the third target pixel includes the first pixel, and a fourth pixel adjacent to the upper side of the first pixel or a third pixel adjacent to the left side of the first pixel.

[0127] Here, the first sub-pixel rendering mode can include that the first sub-pixel of the second pixel is up-borrowing or left-borrowing, and the second sub-pixel is left-borrowing or up-borrowing.

[0128] For example, in the case of the first pixel 103a, since the upper side of the first pixel 103a is empty, the associated first target pixel includes the first pixel 103a and the first pixel 102a, and at this time, the third target pixel can include the first pixel 103a. Figure 1B For example, in the case of the first pixel 103a, since the upper side of the first pixel 103a is empty, the associated first target pixel includes the first pixel 103a and the first pixel 102a, and at this time, the third target pixel can include the first pixel 103a.

[0129] Figure 1B For example, in the case of the first pixel 103a, since the upper side of the first pixel 103a is empty, the associated first target pixel includes the first pixel 103a and the first pixel 102a, and at this time, the third target pixel can include the first pixel 103a.

[0130] ​​Step S2512, in the case that the target sub-pixel rendering mode is the second sub-pixel rendering mode or the third sub-pixel rendering mode, the third target pixel includes the first pixel, the third pixel, the fourth pixel and a fifth pixel adjacent to the left side of the fourth pixel.

[0131] Here, the second sub-pixel rendering mode includes that the first sub-pixel of the second pixel is left borrowing, upper borrowing and left upper borrowing, and the second sub-pixel is upper borrowing and left borrowing. The third sub-pixel rendering mode includes that the first sub-pixel of the second pixel is left borrowing, upper borrowing and left upper borrowing, and the second sub-pixel is no borrowing.

[0132] For example, in the case that the first pixel 102a is adjacent to the first pixel 101a and the second pixel 102b, the first target pixel associated with the first pixel 102a includes the first pixel 102a and the first pixel 101a, and the third target pixel includes the first pixel 102a and the first pixel 101a. Figure 1B

[0133] Step S252, determining a conversion mode based on the number of the third target pixels.

[0134] Here, different numbers of the third target pixels correspond to different conversion modes, wherein the conversion mode can include but is not limited to a first conversion mode, a second conversion mode, etc., and the first conversion mode and the second conversion mode correspond to different conversion formulas. Each conversion formula is used to represent the mean value, variance, mean square error, etc. between the first color value of the corresponding number of the third target pixels or the luminance value corresponding to the first color value. In practice, those skilled in the art can independently determine the corresponding relationship between the number of the third target pixels and the conversion mode according to actual needs, which is not limited by the embodiments of the present disclosure. For example, in the case that the number of the third target pixels is two, the conversion mode is the first conversion mode, that is, the conversion formula is the first conversion formula f1; in the case that the number of the third target pixels is multiple, the conversion mode is the second conversion mode, that is, the conversion formula is the second conversion formula f2.

[0135] In some embodiments, the following formula (1-1) can be defined as the first conversion formula f1:

[0136] z = f1(m, n) (1-1);

[0137] Wherein z represents the third color value of the second pixel, m represents the first color value of the first third target pixel, n represents the first color value of the second third target pixel, and f1 represents the average function of m and n.

[0138] For example, in the case that the first pixel 102a is adjacent to the first pixel 101a and the second pixel 102b, the first target pixel associated with the first pixel 102a includes the first pixel 102a and the first pixel 101a, and the third target pixel includes the first pixel 102a and the first pixel 101a. Figure 1C ​For example, in the third color value of the second pixel 103b is R3, since the third target pixel includes the first pixel 103a, at this time, R3 is f1(0, r3). For the third color value of the second pixel 106b is B6, since the third target pixel includes the first pixel 103a and the first pixel 106a, at this time, B6 is f1(b3, b6).

[0139] In some embodiments, the following formula (1-2) can be defined as the first conversion formula f2:

[0140] z = f2(m, n, p, q) (1-2);

[0141] Wherein, z represents the third color value of the second pixel, m represents the first color value of the first third target pixel, n represents the first color value of the second third target pixel, p represents the first color value of the third third target pixel, q represents the first color value of the fourth third target pixel, and f2 represents the average function of m, n, p and q.

[0142] For example, in the third color value of the second pixel 102b is B2, since the third target pixel includes the first pixel 101a and the first pixel 102a, at this time, B2 is f2(0, 0, b1, b2). For the third color value of the second pixel 109b is R9, since the third target pixel includes the first pixel 105a, the first pixel 106a, the first pixel 108a and the first pixel 109a, at this time, R9 is f2(r5, r6, r8, r9). Figure 1C In some embodiments, the correspondence between the number of third target pixels and the conversion mode can be determined based on a preset rule. Wherein, the preset rule can include but is not limited to the default mode of the electronic device, customization, user operation information, etc. In practice, those skilled in the art can independently set the preset rule according to actual needs, and the embodiments of the present disclosure are not limited.

[0143] For example, the default mode includes: in the case of two third target pixels, the conversion mode is the first conversion mode; in the case of multiple third target pixels, the conversion mode is the second conversion mode.

[0144] Step S253, converting the first color value of the third target pixel into the third color value of the second pixel by using the conversion mode.

[0145] Here, the third color value of the second pixel can be obtained by the above formula (1-1) or (1-2).

[0146] For example, in the third color value of the second pixel 102b is B2, since the third target pixel includes the first pixel 101a and the first pixel 102a, at this time, B2 is f2(0, 0, b1, b2). For the third color value of the second pixel 109b is R9, since the third target pixel includes the first pixel 105a, the first pixel 106a, the first pixel 108a and the first pixel 109a, at this time, R9 is f2(r5, r6, r8, r9).

[0147] Figure 1C ​For the third color value R5 in the second pixel 105b, since the third target pixel includes the first pixel 101a, the first pixel 102a, the first pixel 104a and the first pixel 105a, R5 is f2(r1, r2, r4, r5) at this time.

[0148] In the embodiments of the present disclosure, the third target pixel is determined from the first target pixel; a conversion mode is determined based on the number of the third target pixel; and the first color value of the third target pixel is converted into the third color value of the second pixel by using the conversion mode. In this way, on the one hand, the third target pixel is determined from the first target pixel, which can improve the accuracy of the target pixel, thereby improving the accuracy of the third color value of the second pixel, and further reducing the possibility of color difference in the display area and color deviation in image display; on the other hand, by corresponding different conversion modes to different numbers of third target pixels, the interference of the first color value of a part of the first target pixel can be reduced, thereby further improving the accuracy of the third color value of the second pixel.

[0149] In some embodiments, the step S241 includes steps S261-S262, wherein:

[0150] The step S261 includes determining a target weight value based on the second color value of the first target pixel.

[0151] Here, the target weight value is a value not greater than 1.

[0152] In some embodiments, the manner of determining the target weight value can include but is not limited to a first ratio between a sixth color value and a fifth color value, a second ratio obtained by weighting the first ratio, etc., wherein the sixth color value can be the second color value or the luminance value of the first pixel, and the fifth color value can be the sum of the second color values or the corresponding luminance values of the at least two first target pixels. In practice, those skilled in the art can independently determine the manner of determining the target weight value according to actual needs, and the embodiments of the present disclosure are not limited.

[0153] The step S262 includes determining the fourth color value of the second pixel based on the second color value of the first pixel and the target weight value.

[0154] Here, the manner of determining the fourth color value can include but is not limited to the product of the second color value and the target weight value, the product obtained by weighting the second color value and the target weight value respectively, etc. In practice, those skilled in the art can independently determine the manner of determining the fourth color value according to actual needs, and the embodiments of the present disclosure are not limited.

[0155] In some embodiments, the fourth color value W of the second pixel can be obtained by the following formula (1-3):

[0156] W = p * a (1-3);

[0157] wherein p represents the second color value of the first pixel, and a represents the target weight value.

[0158] For example, in the case of FIG. 1, for the second pixel 108b, the fourth color value G8 is obtained based on the second color value g5 of the first pixel 105a and the second color value g8 of the first pixel 108a. Figure 1C

[0159] In the embodiments of the present disclosure, the target weight value is determined based on the second color value of the first target pixel, and the fourth color value of the second pixel is determined based on the second color value of the first pixel and the target weight value. In this way, on the one hand, the target weight value is determined based on the second color value of the first target pixel, which can improve the accuracy of the target weight value and thus improve the accuracy of the fourth color value of the second pixel; on the other hand, the fourth color value of the second pixel is obtained based on the second color value of the first target pixel and the target weight value, which can improve the accuracy of the fourth color value of the second pixel and thus reduce the possibility of color difference in the display area and color deviation in image display.

[0160] In some embodiments, the step S261 comprises steps S271-S273, wherein:

[0161] In step S271, the second target pixel is determined from the first target pixel.

[0162] Here, the second target pixel can include at least one pixel in the first target pixel.

[0163] For example, the first target pixel can include the first pixel, a third pixel adjacent to the left side of the first pixel, and a fourth pixel adjacent to the upper side of the first pixel. In this case, the second target pixel can include the first pixel and the third pixel adjacent to the left side of the first pixel. For example, in the case of FIG. 1, for the first pixel 106a, the associated first target pixel includes the first pixel 106a, the first pixel 103a, and the first pixel 105a, and in this case, the second target pixel can include the first pixel 106a and the first pixel 105a. Figure 1B

[0164] ​​For example, the first target pixel includes the first pixel, a third pixel adjacent to the left side of the first pixel, a fourth pixel adjacent to the upper side of the first pixel, and a fifth pixel adjacent to the left side of the fourth pixel. In this case, the second target pixel can include the first pixel. For example, in Figure 1B For the first pixel 102a, the associated first target pixel includes the first pixel 102a and the first pixel 101a, and in this case, the second target pixel can include the first pixel 102a.

[0165] In some embodiments, the second target pixel can be determined based on a preset rule. The preset rule can include, but is not limited to, a sub-pixel rendering mode, a default configuration, a custom, user operation information, and the like. In practice, a person skilled in the art can independently set the preset rule according to actual needs, and the embodiments of the present disclosure are not limited.

[0166] In some embodiments, the step S271 includes steps S2711 to S2713, wherein:

[0167] In the step S2711, in a case where the target sub-pixel rendering mode is a first sub-pixel rendering mode, the second target pixel includes the first pixel, and a third pixel adjacent to the left side of the first pixel or a fourth pixel adjacent to the upper side of the first pixel.

[0168] Here, the first sub-pixel rendering mode can include that a first sub-pixel of a second pixel is up borrowing or left borrowing, and a second sub-pixel is left borrowing or up borrowing.

[0169] For example, in Figure 1B For the first pixel 103a, since the upper side of the first pixel 103a is empty, the associated first target pixel includes the first pixel 103a and the first pixel 102a, and in this case, the second target pixel can include the first pixel 103a and the first pixel 102a.

[0170] For example, in Figure 1B For the first pixel 107a, since the left side of the first pixel 107a is empty, the associated first target pixel includes the first pixel 107a and the first pixel 104a, and in this case, the second target pixel can include the first pixel 107a and the first pixel 104a.

[0171] In the step S2712, in a case where the target sub-pixel rendering mode is a second sub-pixel rendering mode, the second target pixel includes the first pixel, the third pixel, and the fourth pixel.

[0172] Here, the second sub-pixel rendering mode includes that a first sub-pixel of a second pixel is left borrowing, up borrowing, and left-up borrowing, and a second sub-pixel is up borrowing and left borrowing.

[0173] For example, in Figure 1B In the above, for the first pixel 109a, the associated first target pixels include the first pixel 109a, the first pixel 105a, the first pixel 106a and the first pixel 108a. At this time, the second target pixel may include the first pixel 109a, the first pixel 106a and the first pixel 108a.

[0174] Step S2713: When the target sub-pixel rendering method is the third sub-pixel rendering method, the second target pixel includes the first pixel.

[0175] Here, the third sub-pixel rendering method includes the first sub-pixel of the second pixel being left-borrowed, top-borrowed, and top-left-borrowed, and the second sub-pixel being no-borrowed.

[0176] For example, in Figure 1B In the above, for the first pixel 104a, since the left side of the first pixel 104a is empty, the associated first target pixel includes the first pixel 104a and the first pixel 101a. At this time, the second target pixel may include the first pixel 104a.

[0177] Step S272: Determine the fifth color value based on the second color value of the second target pixel.

[0178] Here, the methods for determining the fifth color value may include, but are not limited to, a certain second color value, the sum / mean square of each second color value, the weighted sum / mean square of each second color value, the sum / mean square of the luminance values ​​corresponding to each second color value, and the weighted sum / mean square of the luminance values ​​corresponding to each second color value, etc. In implementation, those skilled in the art can independently determine the method of the fifth color value according to actual needs, and the embodiments disclosed herein are not limited thereto.

[0179] For example, the sum of each second color value is used as the fifth color value. For example, in... Figure 1C In the second pixel 108b, since the second target pixel includes the first pixel 105a and the first pixel 108a, the sum of the second color value g5 of the first pixel 105a and the second color value g8 of the first pixel 108a is taken as the fifth color value c.

[0180] In some implementations, the fifth color value c can be obtained using the following formulas (1-4):

[0181] c = ∑g i (1-4);

[0182] Among them, g i Let i represent the second color value of the i-th first pixel, where i represents the index of the second target pixel associated with the first pixel, i∈(1,M*N), and M and N represent the number of rows and columns of the image, respectively.

[0183] For example, in the case of the second pixel 106b, since the second target pixel includes the first pixel 105a and the first pixel 106a, at this time, the sum between the second color value g5 of the first pixel 105a and the second color value g6 of the first pixel 106a can be taken as the fifth color value c, i.e., c is g5+g6. Figure 1C

[0184] For example, in the case of the second pixel 106b, since the second target pixel includes the first pixel 105a and the first pixel 106a, at this time, the sum between the second color value g5 of the first pixel 105a and the second color value g6 of the first pixel 106a can be taken as the fifth color value c, i.e., c is g5+g6. Figure 1C

[0185] Step S273, determining the ratio between the second color value of the first pixel and the fifth color value as the target weight value.

[0186] In some embodiments, the target weight value a can be obtained by the following formula (1-5):

[0187] a=g / c (1-5);

[0188] wherein g represents the second color value of the first pixel, and c represents the fifth color value.

[0189] For example, in the case of the second pixel 106b, since the fifth color value c is g5+g6, the corresponding target weight value a can be g6 / (g5+g6). For the second pixel 109b, since the fifth color value c is g6+g8+g9, the corresponding target weight value a can be g9 / (g6+g8+g9). Figure 1C

[0190] In the embodiments of the present disclosure, the second target pixel is determined from the first target pixel; the fifth color value is determined based on the second color value of the second target pixel; and the ratio between the second color value of the first pixel and the fifth color value is determined as the target weight value. In this way, on the one hand, the second target pixel is determined from the first target pixel, which can improve the accuracy of the second target pixel, thereby improving the accuracy of the target weight value, and further improving the accuracy of the fourth color value of the second pixel; on the other hand, the target weight value is obtained from the second color value and the fifth color value of the second target pixel, which can improve the accuracy of the target weight value, thereby improving the accuracy of the fourth color value of the second pixel, and further reducing the possibility of color difference in the display area and color deviation in image display.

[0191] ​​​The application of the image display method provided by the embodiments of the present disclosure in actual scenarios is explained below to convert a first pixel of an image into a second pixel. The first pixel has an RGB encoding mode, and the second pixel has an RGBG encoding mode. The number of G pixels in the second pixel is consistent with the number of G pixels in the first pixel, the number of R pixels in the second pixel is half the number of R pixels in the first pixel, and the number of B pixels in the second pixel is half the number of B pixels in the first pixel.

[0192] In related technologies, most SPRs borrow colors from the four surrounding pixels. However, due to the particularity of the OLED screen boundary position, this may cause color difference in some boundary regions, resulting in color deviation of the display image and reducing the user experience.

[0193] The embodiments of the present disclosure provide an image display method. On the one hand, according to the position information of the pixels in the image, the corresponding sub-pixel rendering mode is used for pixel conversion, which can reduce the possibility of color difference in the boundary region and image display color deviation, thereby achieving the purpose of improving the definition and display quality of the image, and further improving the user experience. On the other hand, the image is displayed by using the sub-pixel rendering mode, which can reduce the number of pixels, thereby not only achieving the effect of simulating high resolution with low resolution, but also reducing the occupation of hardware or network resources.

[0194] Figure 3A A schematic diagram for converting a first pixel of an image into a second pixel provided by the embodiments of the present disclosure is shown in FIG. 3. Figure 3A As shown in FIG. 3, the image 300 includes 3 rows and 4 columns, a total of 12 first pixels, i.e., the first pixel 301a to the first pixel 312a.

[0195] Based on the position information of each first pixel, the target SPR corresponding to each first pixel is determined as follows:

[0196] The target SPR of the first pixel 304a and the first pixel 308a is a first sub-pixel rendering mode, that is, the R / B of the second pixel is borrowed from above, and the G of the second pixel is borrowed from the left.

[0197] The target SPR of the first pixel 309 to the first pixel 311 is another first sub-pixel rendering mode, that is, the R / B of the second pixel is borrowed from the left, and the G of the second pixel is borrowed from above.

[0198] The target SPR of the first pixel 312a is a second sub-pixel rendering mode, that is, the R / B of the second pixel is borrowed from above, left and top-left, and the G of the second pixel is borrowed from above and left.

[0199] The target SPRs of the first pixels 301a to 303a and the first pixels 305a to 307a are determined as the third sub-pixel rendering mode, i.e., the R / B of the second pixel is up borrowing, left borrowing and upper left borrowing, and the G of the second pixel is no borrowing.

[0200] The first pixels 301a to 312a are respectively converted into corresponding second pixels 301b to 312b through the corresponding target SPRs. That is:

[0201] For the third color value R1 of the second pixel 301b, it can be calculated through the above formula (1-2), i.e., f2(0, 0, 0, r1); the fourth color value G1 of the second pixel 301b, since the G of the second pixel 301b is no borrowing, at this time G1 is g1;

[0202] For the third color value B2 of the second pixel 302b, it can be calculated through the above formula (1-2), i.e., f2(0, 0, b1, b2); the fourth color value G2 of the second pixel 302b, since the G of the second pixel 302b is no borrowing, at this time G2 is g2;

[0203] For the third color value R3 of the second pixel 303b, it can be calculated through the above formula (1-2), i.e., f2(0, 0, r2, r3); the fourth color value G3 of the second pixel 303b, since the G of the second pixel 303b is no borrowing, at this time G3 is g3;

[0204] For the third color value B4 of the second pixel 304b, it can be calculated through the above formula (1-1), i.e., f1(0, b4); the fourth color value G4 of the second pixel 304b, which can be calculated through the above formula (1-3), is g4*g4 / (g3+g4);

[0205] For the third color value R5 of the second pixel 305b, it can be calculated through the above formula (1-2), i.e., f2(0, r1, 0, r5); the fourth color value G5 of the second pixel 305b, since the G of the second pixel 305b is no borrowing, at this time G5 is g5;

[0206] For the third color value B6 of the second pixel 306b, it can be calculated through the above formula (1-2), i.e., f2(b1, b2, b5, b6); the fourth color value G6 of the second pixel 306b, since the G of the second pixel 306b is no borrowing, at this time G6 is g6;

[0207] The third color value R7 of the second pixel 307b can be calculated by the above formula (1-2), that is, f2(r2, r3, r6, r7); the fourth color value G7 of the second pixel 307b is g7 because the G of the second pixel 307b is not borrowed color, and at this time, G7 is g7;

[0208] The third color value B8 of the second pixel 308b can be calculated by the above formula (1-1), that is, f1(b4, b8); the fourth color value G8 of the second pixel 308b can be calculated by the above formula (1-3), that is, g8*g8 / (g7+g8);

[0209] The third color value R9 of the second pixel 309b can be calculated by the above formula (1-1), that is, f1(0, r9); the fourth color value G9 of the second pixel 309b can be calculated by the above formula (1-3), that is, g9*g9 / (g4+g9);

[0210] The third color value B10 of the second pixel 310b can be calculated by the above formula (1-1), that is, f1(b9, b10); the fourth color value G10 of the second pixel 310b can be calculated by the above formula (1-3), that is, g10*g10 / (g6+g10);

[0211] The third color value R11 of the second pixel 311b can be calculated by the above formula (1-1), that is, f1(r10, r11); the fourth color value G11 of the second pixel 311b can be calculated by the above formula (1-3), that is, g11*g11 / (g7+g11);

[0212] The third color value B12 of the second pixel 312b can be calculated by the above formula (1-2), that is, f2(b7, b8, b11, b12); the fourth color value G12 of the second pixel 312b can be calculated by the above formula (1-3), that is, g12*g12 / (g8+g11+g12).

[0213] Figure 3B The implementation flowchart of the image display method provided by the embodiment of the present disclosure is shown in the figure Figure 3B The method comprises steps S31 to S36, wherein:

[0214] Step S31, input a target image of RGB data, the target image comprising at least one first pixel;

[0215] Step S32, convert the RGB data of each first pixel into corresponding first luminance data by a Degamma algorithm;

[0216] Step S33, determining the position information of the first pixel and the corresponding target sub-pixel rendering mode;

[0217] Here, in the case that the position information is the right boundary and is not the right bottom corner, or the lower boundary and is not the right bottom corner, the target sub-pixel rendering mode is the first sub-pixel rendering mode; in the case that the position information is the right bottom corner, the target sub-pixel rendering mode is the second sub-pixel rendering mode; in the case that the position is other positions, the target sub-pixel rendering mode is the third sub-pixel rendering mode.

[0218] Step S34, for each first pixel, obtaining the second luminance data of the corresponding second pixel based on the first luminance data of the first target pixel associated with the first pixel by using the target sub-pixel rendering mode corresponding to the first pixel;

[0219] Step S35, converting the second luminance data of each second pixel into corresponding color data by using the Regamma algorithm;

[0220] Step S36, driving the display panel by using each second pixel to display the target image in the display panel.

[0221] In the embodiments of the present disclosure, first, according to the position information of the pixels in the image, the pixel conversion is performed by using the corresponding sub-pixel rendering mode, which can reduce the possibility of color difference in the boundary area and image display color deviation, so as to achieve the purpose of improving the clarity and display quality of the image, and further improve the user experience; second, the color value conversion is performed by using different conversion modes, which can reduce the interference of the color value of a part of the first pixels; third, the color data is converted into luminance data by using the Degamma algorithm, which can improve the bit width and the coding form conforming to the human eye curve, so as to reduce the influence of data loss on the image quality; finally, the image is displayed by using the sub-pixel rendering mode, which can reduce the number of pixels, so as to not only achieve the effect of simulating high resolution with low resolution, but also reduce the occupation of hardware or network resources.

[0222] Based on the above embodiments, the present disclosure provides an image display device, Figure 4A The composition structure diagram of the image display device provided by the embodiments of the present disclosure is shown in Figure 4A As shown in the figure, the device 40 includes a detection module 41, a conversion module 42 and a display module 43, wherein:

[0223] The detection module 41 is configured to detect the position of the first pixel in the image to obtain the position information of the first pixel.

[0224] The conversion module 42 is electrically connected with the detection module, and is configured to determine a target sub-pixel rendering mode from a preset sub-pixel rendering library based on the position information of the first pixel, the sub-pixel rendering library including at least two sub-pixel rendering modes; convert the first pixel into a second pixel based on the target sub-pixel rendering mode; and output the second pixel to the display module electrically connected therewith.

[0225] The display module 43 is configured to display the image.

[0226] Here, the detection module 41 can be any module capable of realizing a position detection function, such as a detector, a detection circuit, a counter, etc. In implementation, a person skilled in the art can autonomously determine the implementation manner of the detection module according to actual needs, and the embodiments of the present disclosure are not limited.

[0227] The conversion module 42 can be any module capable of realizing a pixel conversion function, such as a conversion chip, a conversion circuit, a selector, a selection circuit, etc. In implementation, a person skilled in the art can autonomously determine the implementation manner of the conversion module according to actual needs, and the embodiments of the present disclosure are not limited.

[0228] The display module 43 can be a display panel, a display, etc. The display panel can include but is not limited to a liquid crystal display panel, an OLED, a quantum dot display panel, etc.

[0229] In some embodiments, the conversion module 42 can include a calculation module and a selection module, wherein the calculation module is configured to convert the first pixel into a sixth pixel by using each sub-pixel rendering mode respectively, and the selection module is configured to determine one pixel from the plurality of sixth pixels as the second pixel based on the position information of the first pixel.

[0230] Here, the calculation module can be any module capable of realizing a pixel conversion function, such as a conversion chip, a conversion circuit, etc. In implementation, a person skilled in the art can autonomously determine the implementation manner of the calculation module according to actual needs, and the embodiments of the present disclosure are not limited.

[0231] The selection module can be any module capable of realizing a selection function, such as a selector, a selection circuit, etc. In implementation, a person skilled in the art can autonomously determine the implementation manner of the selection module according to actual needs, and the embodiments of the present disclosure are not limited.

[0232] In some embodiments, the conversion module 42 is further configured to: in a case where the position information belongs to a first region, determine that the target sub-pixel rendering manner includes a first sub-pixel rendering manner, the first sub-pixel rendering manner including single-side color bleeding; in a case where the position information belongs to a second region, determine that the target sub-pixel rendering manner includes a second sub-pixel rendering manner, the second sub-pixel rendering manner including two-side color bleeding or multi-side color bleeding; and in a case where the position information belongs to a third region, determine that the target sub-pixel rendering manner includes a third sub-pixel rendering manner, the third sub-pixel rendering manner including no color bleeding or multi-side color bleeding.

[0233] In some embodiments, the image includes M*N pixels, M is a number of rows, N is a number of columns, M and N are positive integers, the first region includes a region with a row value less than M and a column value of N, or a region with a row value of M and a column value less than N, the second region includes a region with a row value of M and a column value of N, and the third region includes a region with a row value less than M and a column value less than N.

[0234] In some embodiments, the conversion module 42 is further configured to: determine a first target pixel associated with the first pixel based on the target sub-pixel rendering manner; determine second color information of the second pixel based on first color information of the first target pixel; and convert the first pixel into the second pixel.

[0235] In some embodiments, the conversion module 42 is further configured to: in a case where the target sub-pixel rendering manner is the first sub-pixel rendering manner, the first target pixel includes the first pixel, a third pixel adjacent to a left side of the first pixel, and a fourth pixel adjacent to an upper side of the first pixel; and in a case where the target sub-pixel rendering manner is the second sub-pixel rendering manner or the third sub-pixel rendering manner, the first target pixel includes the first pixel, the third pixel, the fourth pixel, and a fifth pixel adjacent to a left side of the fourth pixel.

[0236] Here, the image display apparatus can include a memory configured to store at least one pixel. In some embodiments, the memory can store other first target pixels in addition to the first pixel. For example, a third pixel, a fourth pixel, and a fifth pixel. In some embodiments, the memory is configured to store at least one pixel of a previous row. For example, for the first pixel, the memory can store the fourth pixel and the fifth pixel.

[0237] In some embodiments, the first color information comprises at least a first color value and a second color value, and the second color information comprises a third color value and a fourth color value; the conversion module 42 is further configured to: determine the third color value of the second pixel based on the first color value of the first target pixel; and determine the fourth color value of the second pixel based on the second color value of the first target pixel.

[0238] In some embodiments, the conversion module 42 comprises a weight determination module and a color value determination module, wherein: the weight determination module is configured to determine a target weight value based on the second color value of the first target pixel; and the color value determination module is configured to determine the fourth color value of the second pixel based on the second color value of the first pixel and the target weight value.

[0239] Here, the weight determination module can be any module capable of determining a weight value. For example, a digital selector, a digital circuit, etc. In practice, a person skilled in the art can determine the implementation of the weight determination module according to actual needs, and the embodiments of the present disclosure are not limited.

[0240] The color value determination module can be any module capable of calculating a color value. For example, a calculator, a digital calculation circuit, etc. In practice, a person skilled in the art can determine the implementation of the color value determination module according to actual needs, and the embodiments of the present disclosure are not limited.

[0241] In some embodiments, the weight determination module is further configured to: determine a second target pixel from the first target pixel; determine a fifth color value based on a second color value of the second target pixel; and determine the target weight value as a ratio between the second color value of the first pixel and the fifth color value.

[0242] In some embodiments, the weight determination module is further configured to: in a case where the target sub-pixel rendering mode is a first sub-pixel rendering mode, the second target pixel comprises the first pixel, a third pixel adjacent to the left side of the first pixel, or a fourth pixel adjacent to the top side of the first pixel; in a case where the target sub-pixel rendering mode is a second sub-pixel rendering mode, the second target pixel comprises the first pixel, the third pixel, and the fourth pixel; and in a case where the target sub-pixel rendering mode is a third sub-pixel rendering mode, the second target pixel comprises the first pixel.

[0243] In some embodiments, the weight determination module is further configured to: determine a third target pixel from the first target pixel; determine a conversion mode based on a number of the third target pixel; and the color value determination module is further configured to: convert a first color value of the third target pixel into the third color value of the second pixel by using the conversion mode.

[0244] In some embodiments, the weight determining module is further configured to: in a case where the target sub-pixel rendering mode is a first sub-pixel rendering mode, the third target pixel comprises the first pixel and a fourth pixel adjacent to the top side of the first pixel or a third pixel adjacent to the left side of the first pixel; in a case where the target sub-pixel rendering mode is a second sub-pixel rendering mode or a third sub-pixel rendering mode, the third target pixel comprises the first pixel, the third pixel, the fourth pixel and a fifth pixel adjacent to the left side of the fourth pixel.

[0245] Figure 4B A schematic diagram of a composition structure of an image display device according to an embodiment of the present disclosure is shown in FIG. 4. The image display device 400 comprises a detection module 41, a conversion module 42 and a display module 43. The conversion module 42 comprises a luminance converter 421, a memory 422, a weight determining module 423, at least one color value determining module 424, a selector 425 and a color value converter 426. Figure 4B The luminance converter 421 is configured to convert color information of a first pixel of an image into luminance information.

[0246] The memory 422 is configured to store luminance information of at least one pixel in a previous row.

[0247] The weight determining module 423 is configured to determine a weight coefficient (corresponding to the target weight value and the conversion mode described above).

[0248] Each color value determining module 424 is configured to obtain a corresponding color value using the corresponding weight coefficient, the first pixel and other pixels associated with the first pixel (corresponding to the third pixel, the fourth pixel and the fifth pixel described above), where the color value is represented by the luminance information.

[0249] The selector 425 is configured to determine a target color value from the color values output by each color value determining module 424 based on the position information of the first pixel obtained by the detection module, as the color value of a second pixel.

[0250] The color value converter 426 is configured to convert the color value of the second pixel from the luminance information into corresponding color information.

[0251] The above description of the device embodiments is similar to the description of the method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the device embodiments of the present disclosure, please refer to the description of the method embodiments of the present disclosure.

[0252] The above description of the device embodiments is similar to the description of the method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the device embodiments of the present disclosure, please refer to the description of the method embodiments of the present disclosure.

[0253] It should be noted that, in the embodiments of the present disclosure, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for causing an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present disclosure. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk, and various media that can store program codes. Thus, the embodiments of the present disclosure are not limited to any specific combination of hardware and software.

[0254] The display device provided by the embodiments of the present disclosure comprises a driving device and a display panel coupled with the driving device, wherein:

[0255] The driving device is configured to receive a target image, convert a first pixel in the target image into a second pixel by using any of the above methods, and drive the display panel by using the second pixel to display the image on the display panel.

[0256] The display panel is configured to display the image.

[0257] Here, the driving device can be any device capable of implementing the functions of the above methods. For example, a driving chip, a source driver, etc. In implementation, those skilled in the art can independently determine the implementation mode of the driving device according to actual needs, and the embodiments of the present disclosure are not limited.

[0258] The display panel can include, but is not limited to, a liquid crystal display panel, an OLED, a quantum dot display panel, etc.

[0259] The embodiments of the present disclosure provide an electronic device comprising a memory and a processor, wherein the memory stores a computer program capable of running on the processor, and the processor implements the above method when executing the computer program.

[0260] The embodiments of the present disclosure provide a computer readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the above method. The computer readable storage medium can be transitory or non-transitory.

[0261] The embodiment of the present disclosure provides a computer program product, which comprises a non-transitory computer-readable storage medium storing a computer program. When the computer program is read and executed by a computer, part or all of the steps of the above method are implemented. The computer program product can be implemented by hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium. In another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (SDK) and the like.

[0262] It should be noted that, Figure 5 A hardware entity of an electronic device in the embodiment of the present disclosure is shown in FIG. 5. As shown in FIG. 5, the hardware entity of the electronic device 500 includes a processor 501, a communication interface 502 and a memory 503, wherein: Figure 5

[0263] The processor 501 generally controls the overall operation of the electronic device 500.

[0264] The communication interface 502 can enable the electronic device to communicate with other terminals or servers through a network.

[0265] The memory 503 is configured to store instructions and applications executable by the processor 501, and can also cache data to be processed by the processor 501 and modules in the electronic device 500 (for example, image data, audio data, voice communication data and video communication data) that have been processed or are to be processed. It can be implemented by a FLASH or a Random Access Memory (RAM). The processor 501, the communication interface 502 and the memory 503 can transmit data through a bus 504.

[0266] It should be noted that: the above description of the storage medium and the device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the storage medium and device embodiments of the present disclosure, please refer to the description of the method embodiments of the present disclosure for understanding.

[0267] ​It should be understood that every feature, structure, or characteristic described above that is recited in means-plus-function or other functional claim is implemented by a method described herein and is not a signal per se. It should be further understood that the functions recited in the claims can be implemented by one or more processors or processing circuits that execute one or more computer program instructions to perform the recited functions.

[0268] It should be noted that, in the present document, the terms "comprises", "comprising", or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises a", "comprising", or "includes a", does not, without more constraints, preclude the existence of additional identical elements in the process, method, article, or apparatus that comprises the element.

[0269] In several embodiments provided by the present disclosure, it should be understood that the disclosed devices and methods can be implemented in other ways. The above-described device embodiments are merely illustrative. For example, the division of the units is merely a logical function division, and actual implementation can have another division manner. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the various components shown or discussed can be indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or in other forms.

[0270] The units described above as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; they can be located in one place, or distributed on multiple network units; and some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.

[0271] In addition, each functional unit in the embodiments of the present disclosure can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in the form of hardware, or in the form of hardware plus software functional units.

[0272] Those skilled in the art can understand that all or part of the steps of the above-mentioned method embodiments can be completed by program instruction related hardware, the foregoing program can be stored in a computer readable storage medium, and the program executes the steps of the method embodiments when executed.

[0273] Alternatively, the integrated units of the present disclosure can be stored in a computer readable storage medium if they are implemented in the form of software function modules and sold or used as independent products. Based on such understanding, the technical solutions of the present disclosure can be embodied in the form of a software product, and the computer software product is stored in a storage medium, includes several instructions to make an electronic device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the methods described in the embodiments of the present disclosure. The foregoing storage medium includes a mobile storage device, a ROM, a magnetic disk, or an optical disk, and various media that can store program codes.

[0274] The above is only an embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical range disclosed by the present disclosure, which should be covered by the protection scope of the present disclosure.

Claims

1. An image display method, characterized in that, The method includes: Determine the position information of the first pixel in the image; Based on the position information of the first pixel, the target sub-pixel rendering method is determined from the preset sub-pixel rendering library. The sub-pixel rendering library includes at least two sub-pixel rendering methods. The sub-pixel rendering method includes single-sided color borrowing, two-sided color borrowing, multi-sided color borrowing, or no color borrowing. The single-sided color borrowing includes left color borrowing, right color borrowing, top color borrowing, bottom color borrowing, top-left color borrowing, bottom-left color borrowing, top-right color borrowing, or bottom-right color borrowing. The two-sided color borrowing includes two types of single-sided color borrowing. The multi-sided color borrowing includes at least three types of single-sided color borrowing. Based on the target sub-pixel rendering method, the first pixel is converted into the second pixel; The second pixel is used to drive the display panel to display the image on the display panel; The step of converting the first pixel into a second pixel based on the target sub-pixel rendering method includes: determining a first target pixel associated with the first pixel based on the target sub-pixel rendering method; determining second color information of the second pixel based on the first color information of the first target pixel; wherein the first color information includes at least a first color value and a second color value, and the second color information includes a third color value and a fourth color value; and converting the first pixel into the second pixel. Determining the second color information of the second pixel based on the first color information of the first target pixel includes: determining the third color value of the second pixel based on the first color value of the first target pixel; and determining the fourth color value of the second pixel based on the second color value of the first target pixel and the target weight value. Determining the third color value of the second pixel based on the first color value of the first target pixel includes: determining a third target pixel from the first target pixels; determining a conversion method based on the number of third target pixels; and using the conversion method to convert the first color value of the third target pixel into the third color value of the second pixel.

2. The method according to claim 1, characterized in that, The step of determining the target sub-pixel rendering method from a preset sub-pixel rendering library based on the position information of the first pixel includes: When the location information belongs to the first region, the target sub-pixel rendering method is determined to include the first sub-pixel rendering method, which includes unilateral color borrowing. When the location information belongs to the second region, it is determined that the target sub-pixel rendering method includes the second sub-pixel rendering method, which includes color borrowing on both sides or multiple sides. If the location information belongs to the third region, the target sub-pixel rendering method is determined to include the third sub-pixel rendering method, which includes no color borrowing or multiple color borrowing.

3. The method according to claim 2, characterized in that, The image includes M*N pixels, where M is the number of rows and N is the number of columns, and both M and N are positive integers. The first region includes regions with row values ​​less than M and column values ​​less than N, or regions with row values ​​less than M and column values ​​less than N. The second region includes regions with row values ​​less than M and column values ​​less than N. The third region includes regions with row values ​​less than M and column values ​​less than N.

4. The method according to claim 1, characterized in that, The method further includes: The target weight value is determined based on the second color value of the first target pixel.

5. The method according to claim 4, characterized in that, Determining the target weight value based on the second color value of the first target pixel includes: Determine the second target pixel from the first target pixel; Based on the second color value of the second target pixel, determine the fifth color value; The ratio between the second color value and the fifth color value of the first pixel is determined as the target weight value.

6. The method according to claim 5, characterized in that, Determining the second target pixel from the first target pixel includes: When the target sub-pixel rendering method is the first sub-pixel rendering method, the second target pixel includes the first pixel and a third pixel adjacent to the left of the first pixel or a fourth pixel adjacent to the top of the first pixel; When the target sub-pixel rendering method is the second sub-pixel rendering method, the second target pixel includes the first pixel, the third pixel, and the fourth pixel; When the target subpixel rendering method is the third subpixel rendering method, the second target pixel includes the first pixel.

7. The method according to claim 1, characterized in that, Determining the third target pixel from the first target pixel includes: When the target sub-pixel rendering method is the first sub-pixel rendering method, the third target pixel includes the first pixel and a fourth pixel adjacent to the upper side of the first pixel or a third pixel adjacent to the left side of the first pixel; When the target sub-pixel rendering method is the second sub-pixel rendering method or the third sub-pixel rendering method, the third target pixel includes the first pixel, the third pixel, the fourth pixel, and the fifth pixel adjacent to the left of the fourth pixel.

8. The method according to any one of claims 1 to 7, characterized in that, The step of determining the first target pixel associated with the first pixel based on the target sub-pixel rendering method includes: When the target sub-pixel rendering method is the first sub-pixel rendering method, the first target pixel includes the first pixel, the third pixel adjacent to the left side of the first pixel, and the fourth pixel adjacent to the top side of the first pixel. When the target sub-pixel rendering method is the second sub-pixel rendering method or the third sub-pixel rendering method, the first target pixel includes the first pixel, the third pixel, the fourth pixel, and the fifth pixel adjacent to the left of the fourth pixel.

9. An image display device, characterized in that, The device includes a detection module, a conversion module, and a display module, wherein: The detection module is used to detect the position of the first pixel in the image and obtain the position information of the first pixel; The conversion module, electrically connected to the detection module, is used to determine a target sub-pixel rendering method from a preset sub-pixel rendering library based on the position information of the first pixel. The sub-pixel rendering library includes at least two sub-pixel rendering methods, including single-sided color borrowing, double-sided color borrowing, multi-sided color borrowing, or no color borrowing. Single-sided color borrowing includes left color borrowing, right color borrowing, top color borrowing, bottom color borrowing, top-left color borrowing, bottom-left color borrowing, top-right color borrowing, or bottom-right color borrowing. Double-sided color borrowing includes two types of single-sided color borrowing. Multi-sided color borrowing includes at least three types of single-sided color borrowing. Based on the target sub-pixel rendering method, the first pixel is converted into a second pixel; the second pixel is output to the electrically connected display module. Display module, used to display the image; The conversion module is further configured to: determine a first target pixel associated with the first pixel based on the target sub-pixel rendering method; determine a second color information of the second pixel based on the first color information of the first target pixel; wherein the first color information includes at least a first color value and a second color value, and the second color information includes a third color value and a fourth color value; and convert the first pixel into the second pixel. The conversion module is further configured to: determine a third color value of the second pixel based on a first color value of the first target pixel; and determine a fourth color value of the second pixel based on a second color value of the first target pixel and a target weight value. The conversion module is further configured to: determine a third target pixel from the first target pixel; determine a conversion method based on the number of the third target pixels; and use the conversion method to convert the first color value of the third target pixel into the third color value of the second pixel.

10. The apparatus according to claim 9, characterized in that, The conversion module is further configured to: determine, when the location information belongs to a first region, that the target sub-pixel rendering method includes a first sub-pixel rendering method, wherein the first sub-pixel rendering method includes single-sided color borrowing; determine, when the location information belongs to a second region, that the target sub-pixel rendering method includes a second sub-pixel rendering method, wherein the second sub-pixel rendering method includes two-sided color borrowing or multi-sided color borrowing; and determine, when the location information belongs to a third region, that the target sub-pixel rendering method includes a third sub-pixel rendering method, wherein the third sub-pixel rendering method includes no color borrowing or multi-sided color borrowing.

11. The apparatus according to claim 10, characterized in that, The image includes M*N pixels, where M is the number of rows and N is the number of columns, and both M and N are positive integers. The first region includes regions with row values ​​less than M and column values ​​less than N, or regions with row values ​​less than M and column values ​​less than N. The second region includes regions with row values ​​less than M and column values ​​less than N. The third region includes regions with row values ​​less than M and column values ​​less than N.

12. The apparatus according to claim 9, characterized in that, The transformation module includes a weight determination module, wherein: The weight determination module is used to determine the target weight value based on the second color value of the first target pixel.

13. The apparatus according to claim 12, characterized in that, The weight determination module is further configured to: determine a second target pixel from the first target pixel; determine a fifth color value based on the second color value of the second target pixel; and determine the ratio between the second color value and the fifth color value of the first pixel as the target weight value.

14. The apparatus according to claim 13, characterized in that, The weight determination module is further configured to: when the target sub-pixel rendering method is the first sub-pixel rendering method, the second target pixel includes the first pixel and a third pixel adjacent to the left of the first pixel or a fourth pixel adjacent to the upper side of the first pixel; when the target sub-pixel rendering method is the second sub-pixel rendering method, the second target pixel includes the first pixel, the third pixel and the fourth pixel; when the target sub-pixel rendering method is the third sub-pixel rendering method, the second target pixel includes the first pixel.

15. The apparatus according to claim 12, characterized in that, The weight determination module is further configured to: when the target sub-pixel rendering method is the first sub-pixel rendering method, the third target pixel includes the first pixel and a fourth pixel adjacent to the upper side of the first pixel or a third pixel adjacent to the left side of the first pixel; when the target sub-pixel rendering method is the second sub-pixel rendering method or the third sub-pixel rendering method, the third target pixel includes the first pixel, the third pixel, the fourth pixel and a fifth pixel adjacent to the left side of the fourth pixel.

16. The apparatus according to any one of claims 9 to 15, characterized in that, The conversion module is further configured to: when the target sub-pixel rendering method is the first sub-pixel rendering method, the first target pixel includes the first pixel, the third pixel adjacent to the left of the first pixel, and the fourth pixel adjacent to the upper side of the first pixel; when the target sub-pixel rendering method is the second sub-pixel rendering method or the third sub-pixel rendering method, the first target pixel includes the first pixel, the third pixel, the fourth pixel, and the fifth pixel adjacent to the left of the fourth pixel.

17. A display device, characterized in that, It includes a driving device and a display panel coupled to the driving device, wherein: The driving device is used to receive a target image, and using the method of any one of claims 1 to 8, convert a first pixel in the target image into a second pixel, and use the second pixel to drive the display panel to display the image in the display panel; The display panel is used to display the target image.

18. An electronic device comprising a processor and a memory, the memory storing a computer program executable on the processor, characterized in that, When the processor executes the computer program, it implements the method according to any one of claims 1 to 8.

19. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by a processor, implements the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Image display method, display system and computer readable storage medium

    CN109388448A