Electronic device, grayscale compensation method and apparatus, and storage medium

By adjusting the grayscale values ​​of target sub-pixels in glasses-free 3D display devices, the problem of high crosstalk rate was solved, improving the viewing effect and user experience of glasses-free 3D.

WO2025217817A1PCT designated stage Publication Date: 2025-10-23BOE TECHNOLOGY GROUP CO LTD +2
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/088125
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-04-16
Publication Date
2025-10-23

AI Technical Summary

Technical Problem

In existing glasses-free 3D display technologies, crosstalk rates are high, affecting the viewing experience and are difficult to reduce effectively.

Method used

The processor in the electronic device adjusts the grayscale values ​​of the transition region and the non-transition region according to the position of the target sub-pixel. Specifically, it reduces the grayscale value of the target sub-pixel in the transition region and increases the grayscale value of the sub-pixel in the non-transition region to reduce the crosstalk rate.

Benefits of technology

It effectively reduces crosstalk rate, improves the viewing effect of naked-eye 3D, avoids image brightness reduction and distortion, and enhances the user's viewing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024088125_23102025_PF_FP_ABST
    Figure CN2024088125_23102025_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application relate to the technical field of images, and relate in particular to an electronic device, a grayscale compensation method and apparatus, and a storage medium. The electronic device comprises: a display screen and a processor. The display screen corresponds to a plurality of periods, one period comprises a plurality of sub-pixels, and a left region and a right region exist in one period. The processor is configured to: determine a region of a period in which a center point of a target sub-pixel is located; and the region of the period in which the center point of the target sub-pixel is located is determined according to the position of a center sub-pixel of a row in which the target sub-pixel is located, and the region of the period comprises a transition region and a non-transition region. The processor is further configured to: when the center point of the target sub-pixel is located in the transition region, determine a target grayscale value of the target sub-pixel, and determine a first grayscale value of a sub-pixel in the non-transition region; and the first grayscale value is an adjusted grayscale value of the sub-pixel in the non-transition region, and the target grayscale value is an adjusted and reduced grayscale value of the target sub-pixel.
Need to check novelty before this filing date? Find Prior Art

Description

Electronic device, gray scale compensation method, device and storage medium TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of images, and in particular to an electronic device, a gray scale compensation method, a device and a storage medium. BACKGROUND

[0002] In terms of reducing the crosstalk rate, the naked-eye 3D technology can optimize the design of light splitting elements such as lenses to improve the light splitting effect, and can ensure the accuracy of eye tracking to improve the viewing experience and reduce crosstalk.

[0003] In the traditional technology, the mapping algorithm generally performs black insertion processing or white insertion processing in the transition area of the left image area and the right image area, reduces the crosstalk problem by performing black removal processing on the sub-pixels in the transition area, but completely removing the transition area will greatly reduce the image brightness and may also cause image distortion. White insertion processing on the transition area, to some extent, rather amplifies the impact of crosstalk. In summary, the crosstalk rate is a key indicator for evaluating the naked-eye 3D display effect, and how to reduce the crosstalk rate has become a key technical problem to be solved in the field of naked-eye 3D display.

[0004] SUMMARY

[0005] In one aspect, an electronic device, a gray scale compensation method, a device and a storage medium are provided, which can effectively reduce the crosstalk rate and improve the viewing effect of naked-eye 3D.

[0006] The electronic device includes a display screen and a processor. The display screen corresponds to a plurality of periods, and each period includes a plurality of sub-pixels, and each period has a left area and a right area. The processor is configured to determine the center point of a target sub-pixel in the area of the period in which the target sub-pixel is located. The center point of the target sub-pixel in the area of the period in which the target sub-pixel is located is determined according to the position of the center sub-pixel of the row in which the target sub-pixel is located. The processor is further configured to determine a target gray scale value of the target sub-pixel and a first gray scale value of a sub-pixel in a non-transition area when the center point of the target sub-pixel is in a transition area.

[0007] The first gray scale value is the adjusted increased gray scale value of the sub-pixel in the non-transition area, and the target gray scale value is the adjusted reduced gray scale value of the target sub-pixel. The area of the period includes a transition area and a non-transition area, and the transition area is the area between the critical lines of the left area and the right area of the period. The non-transition area is an area other than the transition area.

[0008] Therefore, the electronic device provided in the embodiments of the present application can determine the region in the period in which the center point of the target sub-pixel in the row in which the target sub-pixel is located is located according to the position of the center sub-pixel in the row in which the target sub-pixel is located, perform decreasing processing on the gray scale value of the target sub-pixel when the target sub-pixel is located in the transition region between the left region and the right region of the period in which the target sub-pixel is located, that is, determine the target gray scale value of the sub-pixel. At the same time, the gray scale value of the sub-pixel located in the non-transition region is increased, that is, the first gray scale value of the sub-pixel in the non-transition region is determined, so as to effectively reduce the crosstalk rate and improve the viewing effect of the naked eye 3D.

[0009] In some embodiments, the transition region includes a first sub-transition region and a second sub-transition region, the first sub-transition region is a region adjacent to the region boundary of the period in which the target sub-pixel is located, and the second sub-transition region is a region other than the first sub-transition region.

[0010] In some embodiments, when the center point of the target sub-pixel is located in the first sub-transition region, the processor is specifically configured to: determine a region proportion of the target sub-pixel based on the position of the center point of the target sub-pixel in the period in which the target sub-pixel is located and the width of the target sub-pixel; the region proportion is used to represent the proportion of the target sub-pixel in the period in which the target sub-pixel is located; determine the target gray scale value of the target sub-pixel based on the region proportion of the target sub-pixel and the image gray scale value of the target sub-pixel; the image gray scale value is used to represent the gray scale value of the target sub-pixel in different images.

[0011] In some embodiments, when the center point of the target sub-pixel is located in the first sub-transition region, the processor is specifically configured to: determine a first gray scale coefficient of the target sub-pixel based on the position of the center point of the target sub-pixel in the period in which the target sub-pixel is located and the width of the partial period of the period in which the target sub-pixel is located; determine the target gray scale value of the target sub-pixel based on the first gray scale coefficient and the image gray scale value of the target sub-pixel.

[0012] Based on the above technical solutions, the electronic device in the embodiments of the present application determines the target gray scale value in a non-linear manner, that is, by calculating the first gray scale coefficient determined and the image gray scale value of the target sub-pixel, so as to more accurately determine the target gray scale value. Further, the current gray scale value of the target sub-pixel is adjusted to the target gray scale value, so as to reduce the crosstalk rate of the naked eye 3D image.

[0013] In some embodiments, when the center point of the target sub-pixel is located in the first sub-transition region, the processor is specifically configured to: perform black processing on the target sub-pixel to determine the target gray scale value of the target sub-pixel.

[0014] In some embodiments, when the center point of the target sub-pixel is in the second sub-transition region, the processor is specifically configured to: determine a region ratio of the target sub-pixel based on the position of the center point of the target sub-pixel in the period and the width of the target sub-pixel; the region ratio is used to represent the proportion of the target sub-pixel in the period; determine the target gray scale value of the target sub-pixel based on the region ratio of the target sub-pixel and the image gray scale value of the target sub-pixel; the image gray scale value is used to represent the gray scale value of the target sub-pixel in different images.

[0015] Based on the above technical solution, the electronic device in the embodiment of the present application determines the target gray scale value when the center point of the target sub-pixel is in the second sub-transition region, that is, the electronic device has already performed transition processing in advance, and does not perform transition processing on the target sub-pixel when the center point of the target sub-pixel is in the first sub-transition region between the critical line of the left region and the right region. Through the above scheme, it is avoided to adjust the pixel only when serious crosstalk problem occurs.

[0016] In some embodiments, the non-transition region includes the second sub-transition region; the processor is specifically configured to: determine a second gray scale coefficient of the target sub-pixel based on the position of the center point of the target sub-pixel in the period and the width of the period; determine a second gray scale value of the sub-pixel in the non-transition region based on the second gray scale coefficient and the image gray scale value of the target sub-pixel; and take the minimum gray scale value between the second gray scale value and the gray scale threshold value as the first gray scale value of the sub-pixel in the non-transition region.

[0017] Based on the above scheme, the electronic device in the embodiment of the present application increases the gray scale value of the sub-pixel in the non-transition region while reducing the gray scale value of the target sub-pixel, so as to balance the width of the high-brightness platform and the low-brightness platform in the transition region and the non-transition region, and further effectively improve the actual visible range of naked eye 3D.

[0018] In some embodiments, the region ratio includes a proportion of the target sub-pixel in the left region of the period and a proportion of the target sub-pixel in the right region of the period.

[0019] In some embodiments, the image gray scale value includes a left image gray scale value of the target sub-pixel and a right image gray scale value of the target sub-pixel.

[0020] In some embodiments, the processor is further configured to: determine the target gray scale value of the target sub-pixel based on the difference between the proportion of the target sub-pixel in the left region and the proportion of the target sub-pixel in the right region, and the left image gray scale value or the right image gray scale value.

[0021] In some embodiments, the processor is further configured to: determine a target sub-pixel adjusted left image gray scale value based on the proportion of the left region and the left image gray scale value; determine a target sub-pixel adjusted right image gray scale value based on the proportion of the right region and the right image gray scale value; and determine the target gray scale value of the target sub-pixel based on the adjusted left image gray scale value and the adjusted right image gray scale value.

[0022] In some embodiments, the electronic device includes a lens; the processor is further configured to: obtain a full period width; the full period width is a distance value between centers of two adjacent lenses; determine a partial period width of a row where the target sub-pixel is located based on the full period width and a position of a center sub-pixel; the partial period width is a width of an incomplete period on a leftmost side of the row; and determine a region of a period where the target sub-pixel is located according to the partial period width.

[0023] In some embodiments, the processor is further configured to: obtain an offset of a center sub-pixel of the row; the offset is an offset between the center sub-pixel of the row and a center point of the display screen; and determine the position of the center sub-pixel of the row based on the offset and a pixel width.

[0024] In another aspect, a gray scale compensation method is provided, which is applied to an electronic device including a display screen and a processor. The display screen corresponds to a plurality of periods, each period includes a plurality of sub-pixels, and each period has a left region and a right region. The method includes: determining a region where a center point of a target sub-pixel is located in a period; the region where the center point of the target sub-pixel is located in the period is determined according to a position of a center sub-pixel of a row where the target sub-pixel is located; the region includes a transition region and a non-transition region; the transition region is a region between a critical line of the left region and the right region of the period; the non-transition region is a region other than the transition region; in a case where the center point of the target sub-pixel is in the transition region, determining a target gray scale value of the target sub-pixel and a first gray scale value of a sub-pixel in the non-transition region; the first gray scale value is an adjusted gray scale value of the sub-pixel in the non-transition region, and the target gray scale value is an adjusted gray scale value of the target sub-pixel.

[0025] In some embodiments, the transition region includes a first sub-transition region and a second sub-transition region; the first sub-transition region is a region adjacent to a boundary of the region of the period; and the second sub-transition region is a region other than the first sub-transition region.

[0026] In some embodiments, the transition region includes a first sub-transition region; in a case where the center point of the target sub-pixel is in the transition region, determining the target gray scale value of the target sub-pixel includes: determining a region ratio of the target sub-pixel based on the position of the center point of the target sub-pixel in the period and the width of the target sub-pixel; the region ratio is used to represent the proportion of the target sub-pixel in the period; determining the target gray scale value of the target sub-pixel based on the region ratio of the target sub-pixel and the image gray scale value of the target sub-pixel; the image gray scale value is used to represent the gray scale value of the target sub-pixel in different images.

[0027] In some embodiments, the transition region includes a first sub-transition region; in a case where the center point of the target sub-pixel is in the transition region, determining the target gray scale value of the target sub-pixel includes: determining a first gray scale coefficient of the target sub-pixel based on the position of the center point of the target sub-pixel in the period and the width of the partial period of the period; determining the target gray scale value of the target sub-pixel based on the first gray scale coefficient and the image gray scale value of the target sub-pixel.

[0028] In some embodiments, the transition region includes a first sub-transition region; in a case where the center point of the target sub-pixel is in the transition region, determining the target gray scale value of the target sub-pixel includes: performing black processing on the target sub-pixel to determine the target gray scale value of the target sub-pixel.

[0029] In some embodiments, the transition region includes a second sub-transition region; in a case where the center point of the target sub-pixel is in the transition region, determining the target gray scale value of the target sub-pixel includes: determining a region ratio of the target sub-pixel based on the position of the center point of the target sub-pixel in the period and the width of the target sub-pixel; the region ratio is used to represent the proportion of the target sub-pixel in the period; determining the target gray scale value of the target sub-pixel based on the region ratio of the target sub-pixel and the image gray scale value of the target sub-pixel; the image gray scale value is used to represent the gray scale value of the target sub-pixel in different images.

[0030] In some embodiments, the non-transition region includes a second sub-transition region; determining the first gray scale value of the sub-pixel in the non-transition region includes: determining a second gray scale coefficient of the target sub-pixel based on the position of the center point of the target sub-pixel in the period and the width of the period; determining the second gray scale value of the non-transition region based on the second gray scale coefficient and the image gray scale value of the target sub-pixel; taking the minimum gray scale value of the second gray scale value and the gray scale threshold as the first gray scale value of the sub-pixel in the non-transition region.

[0031] In some embodiments, the region ratio includes a proportion of the left region of the target sub-pixel in the period and a proportion of the right region of the target sub-pixel in the period.

[0032] In some embodiments, the image grayscale value of the target sub-pixel includes a left image grayscale value of the target sub-pixel, and a right image grayscale value of the target sub-pixel.

[0033] In some embodiments, the target grayscale value of the target sub-pixel is determined based on the area proportion of the target sub-pixel and the image grayscale value of the target sub-pixel, including: determining the target grayscale value of the target sub-pixel based on the difference between the proportion of the target sub-pixel to the left area and the proportion of the target sub-pixel to the right area, and the left image grayscale value, or the right image grayscale value.

[0034] In some embodiments, the target grayscale value of the target sub-pixel is determined based on the area proportion of the target sub-pixel and the image grayscale value of the target sub-pixel, including: determining the adjusted left image grayscale value of the target sub-pixel based on the proportion of the left area and the left image grayscale value; determining the adjusted right image grayscale value of the target sub-pixel based on the proportion of the right area and the right image grayscale value; and determining the target grayscale value of the target sub-pixel based on the adjusted left image grayscale value and the adjusted right image grayscale value.

[0035] Based on the above technical solutions, in the case that the area proportion of the target sub-pixel is small and the grayscale value of the target sub-pixel is large, the brightness of the target sub-pixel is affected by the grayscale value. Similarly, in the case that the area proportion of the target sub-pixel is large but the grayscale value of the target sub-pixel is small, the brightness of the target sub-pixel is affected by the grayscale value. Further, the target grayscale value is determined based on the adjusted left image grayscale value and the adjusted right image grayscale value, so that the grayscale value of the target sub-pixel can be adjusted more accurately.

[0036] In some embodiments, the electronic device includes a lens; and the center point of the target sub-pixel is determined to be in an area of a period, including: the electronic device can acquire a complete period width, and determine a partial period width of a row based on the complete period width and the position of the center sub-pixel, and then determine the area of the period where the target sub-pixel is located according to the partial period width.

[0037] The partial period width is the width of the leftmost incomplete period of the row. The complete period width is the distance value between the centers of two adjacent lenses.

[0038] It can be understood that the starting position of each period does not necessarily correspond to the starting position of the sub-pixel, and thus an incomplete period can occur.

[0039] Based on the above technical solutions, the electronic device determines the area of the period where the target sub-pixel is located, so as to more appropriately determine which processing mode to be performed on the target sub-pixel, and better improve the user experience.

[0040] In some embodiments, the gray scale compensation method further comprises: obtaining an offset of a center sub-pixel in the row; the offset being an offset between the center sub-pixel in the row and a center point of the display screen; and determining a position of the center sub-pixel in the row of the target sub-pixel based on the offset and a pixel width.

[0041] In another aspect, a gray scale compensation apparatus is provided, comprising a processor and a communication interface. The communication interface and the processor are coupled. The processor is configured to run computer programs or instructions to implement the gray scale compensation method of the first aspect or any of the embodiments of the first aspect.

[0042] In yet another aspect, a computer readable storage medium is provided. The computer readable storage medium stores computer program instructions, which, when executed on a computer (e.g., a receiving node), cause the computer to perform the gray scale compensation method of any of the embodiments described above.

[0043] In yet another aspect, a computer program product is provided. The computer program product comprises computer program instructions, which, when executed on a computer (e.g., a receiving node), cause the computer to perform the gray scale compensation method of any of the embodiments described above.

[0044] In yet another aspect, a computer program is provided. When the computer program is executed on a computer (e.g., a receiving node), the computer program causes the computer to perform the gray scale compensation method of any of the embodiments described above. BRIEF DESCRIPTION OF DRAWINGS

[0045] In order to more clearly illustrate the technical solutions in the present disclosure, the following will briefly introduce the drawings needed to be used in some embodiments of the present disclosure. Obviously, the drawings described in the following description are only the drawings of some embodiments of the present disclosure, and other drawings can also be obtained by those skilled in the art according to these drawings. In addition, the drawings described in the following description can be regarded as schematic diagrams, and are not limited to the actual size, actual process, actual timing of signals, etc. of the products involved in the embodiments of the present disclosure.

[0046] FIG. 1 is a schematic diagram of actual scene 3D effect generation according to some embodiments;

[0047] FIG. 2 is a schematic diagram of synthesis of left view and right view according to some embodiments;

[0048] FIG. 3 is a schematic diagram of image ghosting phenomenon according to some embodiments;

[0049] FIG. 4 is a structural diagram of an electronic device according to some embodiments;

[0050] FIG. 5 is a flowchart of a gray scale compensation method according to some embodiments;

[0051] FIG. 6 is a schematic diagram of a periodic region according to some embodiments;

[0052] FIG. 7a is a schematic diagram of a periodic region according to some other embodiments;

[0053] FIG. 7b is a schematic diagram of a periodic region according to some other embodiments;

[0054] FIG. 8 is a scenario diagram of a gray scale compensation method according to some embodiments;

[0055] FIG. 9 is a scenario diagram of a gray scale compensation method according to some other embodiments;

[0056] FIG. 10 is a schematic diagram of a periodic region according to some other embodiments;

[0057] FIG. 11 is a scenario diagram of a gray scale compensation method according to some other embodiments;

[0058] FIG. 12 is a schematic diagram of a gray scale coefficient curve according to some embodiments;

[0059] FIG. 13 is a scenario diagram of a gray scale compensation method according to some other embodiments;

[0060] FIG. 14 is a scenario diagram of a gray scale compensation method according to some other embodiments;

[0061] FIG. 15 is a scenario diagram of a gray scale compensation method according to some other embodiments;

[0062] FIG. 16 is a structural diagram of a gray scale compensation device according to some embodiments;

[0063] FIG. 17 is a structural diagram of a gray scale compensation device according to some embodiments. DETAILED DESCRIPTION

[0064] The technical solutions in some embodiments of the present disclosure will be described clearly and completely below with reference to the drawings. Obviously, the described embodiments are only some of the embodiments of the present disclosure, but not all the embodiments. Based on the embodiments provided by the present disclosure, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present disclosure.

[0065] Unless otherwise required by context, as used herein and throughout this specification, the term "comprise" and variations of the term, such as "comprises" (third person singular), "comprising" (present participle verb), "comprised" (past participle verb) and "comprises" (third person singular used as a finite verb) are to be construed in an open, inclusive, and non-exhaustive way, that is, as "including but not limited to." In the description of the specification, the terms "one embodiment," "some embodiments," "exemplary embodiments," "example," "specific example" or "some examples" are not meant to be construed to always be referring to the same embodiment or example, unless otherwise specifically stated. Moreover, the particular features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0066] Hereinafter, the terms "first", "second", etc. are used only for the purpose of description and should not be construed as indicating or implying relative importance or implying the number of the indicated technical features. Thus, the features defined with "first", "second" can explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, the meaning of "a plurality of" is two or more, unless otherwise stated.

[0067] "A, B, and C at least one of" has the same meaning as "at least one of A, B, or C", both of which include the following combinations of A, B, and C: only A, only B, only C, a combination of A and B, a combination of A and C, a combination of B and C, and a combination of A, B, and C.

[0068] "A and / or B" includes the following three combinations: only A, only B, and a combination of A and B.

[0069] As used herein, the term "if' is optionally interpreted as meaning "when" or "upon" or "in response to a determination" or "in response to a detection of, depending on context. Similarly, the phrase "if determined" or "if detected [a stated condition or event]" is optionally interpreted as meaning "upon a determination" or "in response to a determination" or "upon a detection of [a stated condition or event]" or "in response to a detection of [a stated condition or event]", depending on context.

[0070] The use of "adapted to" or "configured to" herein means open and inclusive language that does not exclude additional tasks or steps.

[0071] In addition, the use of "based on" means open and inclusive, as a process, step, calculation, or other action that is "based on" one or more conditions or values can in practice be based on additional conditions or values beyond those that are specified.

[0072] As used herein, "about," "approximately," or "around" includes the value recited and the average value within an acceptable range of deviation from that value, as determined by one of ordinary skill in the art considering the measurement in question and the error in measuring the particular quantity (i.e., the limitations of the measurement system).

[0073] As used herein, "equal" includes the recited condition and conditions that approximate the recited condition, the approximation being within an acceptable range of deviation, as determined by one of ordinary skill in the art considering the measurement in question and the error in measuring the particular quantity (i.e., the limitations of the measurement system). "Equal" includes absolute equality and approximate equality, where the acceptable range of deviation for approximate equality may, for example, be a difference between the two of less than or equal to 5% of either.

[0074] Hereinafter, terms related to embodiments of the present application are explained to facilitate understanding of the reader.

[0075] 1. Naked eye 3D technology. With the upgrading of technology, this technology is expected to be widely used in consumer electronics products such as smart phones and televisions, while realizing more innovation in the professional field. At the same time, naked eye 3D technology can provide more immersive movie, game and virtual reality experience, while bringing new opportunities for advertising and professional training. However, naked eye 3D technology still needs to break through many technical barriers to provide users with more realistic naked eye 3D effect and more immersive use experience, so that the technology has great market potential in entertainment, advertising, medical and education.

[0076] 2. Display principle of naked eye 3D technology. Based on the depth perception mechanism of human eyes, human eyes can observe the scene through both eyes at the same time, and the viewing angle of each eye is slightly different. After processing by the brain, this difference can make the brain feel the depth and stereoscopic effect of the object in space. As shown in FIG. 1, in the naked eye 3D display device, a light splitting principle of lens or grating is mostly used to transmit different images viewed by the left and right eyes to the corresponding eyes, to realize the effect of naked eye 3D.

[0077] As shown in FIG. 2, the current naked eye 3D technology mainly uses slit liquid crystal grating and cylindrical lens.

[0078] (1) Slit liquid crystal grating, which is to add a grating in front of the screen to shield the screen light, so that the image displayed on the liquid crystal screen for the left eye will be shielded by the opaque stripes. Similarly, the image displayed on the liquid crystal screen for the right eye will be shielded by the opaque stripes. Then, the 3D effect can be generated by using the binocular parallax. However, due to the shielding of the screen light, the picture brightness is only 1 / 4 of that of the 2D screen.

[0079] (2) Lenticular lens, which is to project the pixel points corresponding to the left and right eyes into the left and right eyes respectively by the refraction principle of the lens, so as to realize image separation and make the observer see 3D stereoscopic image. The biggest advantage of the lenticular lens technology is that the lens will not shield the light, so the picture brightness is basically not affected, and the 3D display effect is better.

[0080] 3. Crosstalk problem. The crosstalk problem in naked eye 3D display is mainly caused by the arrangement method, optical element design and manufacturing process capability, etc. In practical application, the lens is usually placed in an inclined manner, so that the arrangement of the pixels on the 2D display device is consistent with the edge angle. In practical application, only the lens and other light splitting elements cannot completely achieve 100% light splitting effect, and the arrangement of the pixels in the arrangement algorithm cannot completely divide all the sub-pixels into the left view or the right view, that is, it is inevitable that the image originally entering the left eye will have part of the brightness entering the right eye, thereby causing crosstalk.

[0081] Among them, the crosstalk rate is an important evaluation index of the quality of naked eye 3D effect, which is used to measure the brightness cross between the left and right eye images. When the crosstalk rate reaches a certain degree, the ghosting phenomenon can be perceived. As shown in FIG. 3, it is generally considered that when the crosstalk rate is greater than 2%, the ghosting phenomenon can be perceived, and when the crosstalk rate exceeds 10%, the obvious ghosting phenomenon will occur. Therefore, the occurrence of crosstalk will affect the actual viewing experience of naked eye 3D.

[0082] The above gives a brief introduction of the related technology of the present application.

[0083] The naked eye 3D technology can optimize the design of the lens and other light splitting elements to improve the light splitting effect and ensure the accuracy of the human eye tracking to improve the viewing experience and reduce the crosstalk.

[0084] In the transition area between the left area and the right area of the traditional technology, the black insertion or white insertion processing is performed, and the crosstalk problem is reduced by removing the black of the sub-pixels in the transition area. However, completely removing the black of the transition area will greatly reduce the brightness of the image and may also cause distortion of the image. And the white insertion processing of the transition area, to some extent, will rather amplify the influence of crosstalk. In summary, the crosstalk rate becomes a key indicator for evaluating the naked-eye 3D display effect, and how to reduce the crosstalk rate also becomes a key technical problem to be solved in the field of naked-eye 3D display.

[0085] Therefore, the embodiment of the present application provides an electronic device. The processor in the electronic device can determine the area in the period where the center point of the target sub-pixel is located according to the position of the center sub-pixel in the row where the target sub-pixel is located, and when the target sub-pixel is in the transition area between the left area and the right area of the period, the gray scale value of the target sub-pixel is reduced, that is, the target gray scale value of the sub-pixel is determined, and the current gray scale value of the target sub-pixel is adjusted to the target gray scale value. At the same time, the gray scale value of the sub-pixel in the non-transition area is increased, that is, the current gray scale value of the sub-pixel in the non-transition area is adjusted to the first gray scale value, so as to effectively reduce the crosstalk rate and improve the viewing effect of naked-eye 3D.

[0086] The implementation of the embodiment of the present application will be described in detail below with reference to the accompanying drawings.

[0087] As shown in FIG. 4, FIG. 4 is a structural diagram of an electronic device 400 provided by the embodiment of the present application. The electronic device 400 can be a terminal device with a display screen, such as a television. The electronic device 400 can include a display screen 401, at least one processor 402, and a transceiver 403, and can further include a memory 404. The processor 402, the memory 404, and the transceiver 403 can be connected through a communication line.

[0088] In the embodiment of the present application, the display screen 401 is used to display an image. The display screen 401 corresponds to a plurality of periods, each period includes a plurality of sub-pixels, and each period has a left area and a right area.

[0089] In the embodiments of the application, the processor 402 can be a chip. The chip can include five categories of logic chips, storage chips, sensor chips, power supply chips and communication chips. Among them, the processor class mainly undertakes specific computing and control tasks in the system, such as microcontroller units (MCU), central processing units (CPU), graphics processing units (GPU), neural processing units (NPU) and the like. The storage class mainly undertakes the storage of data in the system, and some storage controller class chips, such as dynamic random access memory (DRAM), static random access memory (SRAM), flash eeprom memory (Flash) and the like. The sensing class mainly undertakes the collection, presentation and interaction of information in the system, such as input and output devices, some signal processing chips and the like. The communication class (wired and wireless) mainly undertakes the communication function of the chip in the system, such as some Ethernet chips, switching chips, wide and local area networks, point-to-point and ad hoc network chips, and auxiliary communication filtering, amplification, power and the like. Devices can belong to this category. The wireless fidelity (WiFi), Bluetooth, 5th generation mobile communication technology (5G) baseband, global positioning system (GPS), narrowband internet of things (NB-IoT), network card, switch and the like known to the public can be classified into this category.

[0090] Among them, the communication line can include a path for transmitting information between the above components.

[0091] The memory 404 can be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, a magnetic disk storage or other magnetic storage devices, or any other medium capable of storing desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.

[0092] In a possible design, the memory 404 can exist independently of the processor 402, that is, the memory 404 can be a memory external to the processor 402, and in this case, the memory 404 can be connected to the processor 402 through a communication line, used to store execution instructions or application program codes and controlled by the processor 402 to perform, to implement the network quality determination method provided in the embodiments of the present application. In another possible design, the memory 404 can also be integrated with the processor 402, that is, the memory 404 can be an internal memory of the processor 402, for example, the memory 404 is a cache, which can be used to temporarily store some data and instruction information, and the like.

[0093] As a possible implementation, the processor 402 can include one or more CPUs.

[0094] It should be noted that the electronic device described in the embodiments of the present application is for more clearly illustrating the technical solutions of the embodiments of the present application, and does not constitute a limitation on the technical solutions provided by the embodiments of the present application. It can be known by those skilled in the art that, with the evolution of electronic devices and the appearance of other electronic devices, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.

[0095] The methods in the following embodiments can all be implemented in the electronic device 400 with the hardware structure described above. The methods of the embodiments of the present application are described.

[0096] The gray scale compensation method provided by the embodiments of the present application is described in detail below with reference to the accompanying drawings.

[0097] The embodiment of the present application can compensate the gray scale value of the sub-pixel, so as to avoid the crosstalk problem. The embodiment of the present application provides a gray scale compensation method, as shown in FIG. 5, which can include S501-S502. S501 can also be referred to as a process of determining the region where the target sub-pixel is located, and S502 can also be referred to as a process of determining the gray scale value. The following describes S501-S502 in detail.

[0098] S501, according to the position of the center sub-pixel in the row where the target sub-pixel is located, determining that the center point of the target sub-pixel is in the region of the period.

[0099] In the related embodiments of the present application, the region of the period includes a transition region and a non-transition region, and the transition region is the region between the critical lines of the left region and the right region of the period. It can be understood that when the center point of the target sub-pixel is in the transition region between the critical lines of the left region and the right region, the target sub-pixel will span the left region and the right region.

[0100] The non-transition region is a region other than the transition region, and the non-transition region is used to represent that the target sub-pixel is entirely in the left region of the period, or the target sub-pixel is entirely in the right region of the period. That is to say, the target sub-pixel does not span the left region and the right region of the period.

[0101] In the embodiment of the present application, the electronic device can obtain the complete period width, and determine a part of the period width based on the complete period width and the position of the center sub-pixel. Further, the electronic device obtains the region of the period where the target sub-pixel is located according to the part of the period width.

[0102] The complete period width is used to represent the distance value between the centers of two adjacent lenses, and the part of the period width is the width of the incomplete period on the left side of the row.

[0103] It should be noted that the complete period and the period in the embodiment of the present application can be understood as the same concept.

[0104] For example, the distance between the human eye and the lens in the display screen is z, the distance between the lens and the display panel in the display screen is h, and the horizontal pitch value of the lens is pitch. The electronic device can determine the coverage range of one lens on the display panel, that is, one complete period width deltax satisfies the following formula 1: deltax=(z+h)*pitch / z Formula 1

[0105] The electronic device substitutes one complete period width deltax into formula 2 to obtain the width of the incomplete period on the left side of the row: edge_distance=(xi delta x / 2) % delta x Formula 2

[0106] wherein edge_distance is a partial period width of the row in which the center sub-pixel is located, x i is the position of the i-th row center sub-pixel (the position of the center sub-pixel), % is used to represent a remainder algorithm.

[0107] Further, the electronic device obtains the specific position of the target sub-pixel in a period according to the distance between the position of the center sub-pixel and the leftmost edge, that is, the electronic device substitutes the position x i of the center sub-pixel and the partial period width edge_distance of the row in which the center sub-pixel is located into the following Formula 3: position = (x i + delta x - edge_distance) % delta x Formula 3

[0108] wherein position is the specific position of the center point of the target sub-pixel in a period.

[0109] For example, the position x i of the center sub-pixel is 13, the complete period width delta x is 5, and the width edge_distance of the leftmost incomplete period of the row is 2. The electronic device obtains (13 + 5 - 2) / 5 = 3 remainder 2 through the above Formula 3, and the electronic device can determine that the center point of the target sub-pixel is located at the 2nd position of the 4th period through the result 3 remainder 2. For another example, the position x i of the center sub-pixel is 8, the complete period width delta x is 5, and the width edge_distance of the leftmost incomplete period of the row is 2. The electronic device obtains (8 + 5 - 2) / 5 = 2 remainder 1 through the above Formula 3, and the electronic device can determine that the center point of the target sub-pixel is located at the 1st position of the 3rd period through the result 2 remainder 1.

[0110] It should be noted that the "row in which the center sub-pixel is located" in the embodiments of the present application can be understood as "the row in which the target sub-pixel is located". That is, the "position of the center sub-pixel" can be understood as "the position of the center sub-pixel of the row in which the target sub-pixel is located".

[0111] It can be understood that since a complete period width includes a plurality of sub-pixels, in the case of a complete period width delta x of 5, the width of a sub-pixel pixel can be 1, and 0-2.5 is the right region of the complete period, and 2.5-5 is the left region of the complete period.

[0112] As shown in FIG. 6, taking the center point of the target sub-pixel being located at the first position of the third period as an example. If the center point of the target sub-pixel is located at the first position of the third period, the target sub-pixel is located at 0.5-1.5 of the third period. It can be known that the target sub-pixel is completely located in the right region of the period and is not located in the transition region. However, the previous sub-pixel of the target sub-pixel is a sub-pixel located in the transition region, that is, the previous sub-pixel is located at 4.5-0.5 of the second period and the third period.

[0113] It can be understood that, in combination with FIG. 6, in a case where the full period width deltax is 5 and the width of one sub-pixel is 1, if the position of the center point of the target sub-pixel satisfies any one of the following conditions, the center point of the target sub-pixel is located in the transition region: less than 0.5, between 2 and 3, and greater than 4.5.

[0114] In S502, in a case where the center point of the target sub-pixel is located in the transition region, a target gray scale value of the target sub-pixel is determined, and a first gray scale value of a sub-pixel located in a non-transition region is determined.

[0115] In the embodiment of the present application, the transition region includes a first sub-transition region and a second sub-transition region, the first sub-transition region is a region adjacent to the region boundary of the period, and the second sub-transition region is a transition region other than the first sub-transition region. The first gray scale value is the gray scale value of the sub-pixel in the non-transition region after adjustment and increase, and the target gray scale value is the gray scale value of the target sub-pixel after adjustment and decrease.

[0116] For example, as shown in FIG. 7a, one shadow part represents the width of one sub-pixel subpixel. In a case where the center point of the sub-pixel is located in the C-D region, the sub-pixel is completely located in the right region of the period. In a case where the center point of the sub-pixel is located in the H-I region, the sub-pixel is completely located in the right region of the period. That is, A-C, D-H, and I-K are transition regions. Since A-B, E-F, F-G, and J-K are adjacent to the region boundary of the period, A-B, E-F, F-G, and J-K are the first sub-transition region. Correspondingly, the transition region B-C, D-E, G-H, and I-J other than the first sub-transition region is the second sub-transition region.

[0117] In a possible implementation, in a case where the center point of the target sub-pixel is located in the transition region, the electronic device sets the gray scale value of the target sub-pixel to a preset value.

[0118] Exemplarily, the preset value is 0. In a case where the center point of the target sub-pixel is located in the A-C region, the D-H region, and the I-K region, the electronic device sets the gray scale value of the target sub-pixel to 0, that is, performs the black removal processing on the sub-pixel located in the transition region. In the embodiment of the present application, after the electronic device adopts the black removal processing, the display effect of the image can be as shown in FIG. 8.

[0119] In the embodiment of the present application, in a case where the center point of the target sub-pixel is located in the transition region, the processing manner of the electronic device can be any one of the following manner (1) and manner (2).

[0120] Manner (1): The electronic device can reduce the gray scale value of the target sub-pixel located in the transition region to determine the target gray scale value.

[0121] In the embodiment of the present application, in a case where the center point of the target sub-pixel is located in the first sub-transition region, the electronic device can determine the region ratio of the target sub-pixel for representing the proportion of the target sub-pixel in the period according to the position of the center point of the target sub-pixel in the period and the width of the target sub-pixel, and determine the target gray scale value of the target sub-pixel based on the region ratio of the target sub-pixel and the image gray scale value of the target sub-pixel.

[0122] The image gray scale value is used to represent the gray scale value of the target sub-pixel in different images.

[0123] Exemplarily, in combination with FIG. 7a, since the first sub-transition region includes four different positions of the transition region, the electronic device can obtain the region ratio of the target sub-pixel by different formulas when the target sub-pixel is located in the first sub-transition region of different positions. Specifically, the electronic device determining the region ratio of the target sub-pixel can be any one of the following cases (1), (2), (3), and (4).

[0124] Case (1), in a case where the center point of the target sub-pixel is located in the first sub-transition region A-B, the electronic device can determine the right region ratio k_right of the target sub-pixel in the period by the following formula 4. k_right=(position+subpixel / 2) / subpixel Formula 4

[0125] The position is the specific position of the period where the center point of the target sub-pixel is located, and the subpixel is the width of one sub-pixel. It should be noted that the position can be understood as the distance from the leftmost side of the period where the center point of the target sub-pixel is located. For example, the center point of the target sub-pixel is located on the line of point B, and the position is the distance from point A to point B.

[0126] The electronic device can obtain the left region proportion k_left of the target sub-pixel in the period according to the right region proportion k_right of the target sub-pixel in the period, that is, k_left=1-k_right.

[0127] In case (2), when the center point of the target sub-pixel is in the first sub-transition region E-F, the electronic device can determine the right region proportion k_right of the target sub-pixel in the period by the following formula 5. k_right=(deltax / 2-position+subpixel / 2) / subpixel Formula 5

[0128] Wherein, position is the specific position of the center point of the target sub-pixel in the period, subpixel is the width of a sub-pixel, and deltax is the width of a complete period.

[0129] For example, as shown in FIG. 7b, the center point of the target sub-pixel is at point E. deltax / 2 is the width of a half period, that is, the width of A to F. The width of A to E is position, and the width of E to F can be obtained by deltax / 2-position. The width of a half sub-pixel is subpixel / 2, that is, the width of P to E. The electronic device adds the width of E to F to the width of P to E to obtain the width of P to F, and calculates the right region proportion of the target sub-pixel in the period by the width of P to F and the width of a sub-pixel.

[0130] It can be understood that the region proportion of the target sub-pixel in the embodiments of the present application can be understood as a process of solving the area.

[0131] The electronic device can obtain the left region proportion k_left of the target sub-pixel in the period according to the right region proportion k_right of the target sub-pixel in the period, that is, k_left=1-k_right.

[0132] In case (3), when the center point of the target sub-pixel is in the first sub-transition region F-G, the electronic device can determine the right region proportion k_right of the target sub-pixel in the period by the following formula 6. k_left=(position-deltax / 2+subpixel / 2) / subpixel Formula 6

[0133] Wherein, position is the specific position of the center point of the target sub-pixel in the period, subpixel is the width of a sub-pixel, and deltax is the width of a complete period.

[0134] The electronic device can obtain the left region proportion k_left of the target sub-pixel in the period according to the right region proportion k_right of the target sub-pixel in the period, that is, k_left=1-k_right.

[0135] In case (4), when the center point of the target sub-pixel is in the first sub-transition region J-K, the electronic device can determine the right region proportion k_right of the target sub-pixel in the period by the following formula 7. k_left=(deltax-positon+subpixel / 2) / subpixel Formula 7

[0136] Wherein, positon is the specific position of the center point of the target sub-pixel in the period, subpixel is the width of one sub-pixel, and deltax is the width of the complete period.

[0137] The electronic device can obtain the left region proportion k_left of the target sub-pixel in the period according to the right region proportion k_right of the target sub-pixel in the period, that is, k_left=1-k_right.

[0138] In the embodiments of the present application, after the electronic device determines the region proportion of the target sub-pixel by any one of the above formulae (1)-(4), the electronic device can determine the target gray scale value of the target sub-pixel according to the region proportion.

[0139] In a possible implementation, the electronic device can determine the target gray scale value of the target sub-pixel based on the difference between the proportion of the target sub-pixel to the left region and the proportion of the target sub-pixel to the right region, and the left image gray scale value.

[0140] Optionally, the electronic device can also determine the target gray scale value of the target sub-pixel based on the difference between the proportion of the target sub-pixel to the left region and the proportion of the target sub-pixel to the right region, and the right image gray scale value.

[0141] It should be noted that the electronic device uses the left image gray scale value or the right image gray scale value is determined according to whether the first sub-transition region where the center point of the target sub-pixel is located is located in the left region or the right region of the period. For example, when the center point of the target sub-pixel is in the first sub-transition region located in the left region of the period, the left image gray scale value is used, and when the center point of the target sub-pixel is in the first sub-transition region located in the right region of the period, the right image gray scale value is used.

[0142] Exemplarily, as shown in FIG. 7a, since the first sub-transition region includes four different position transition regions respectively, the electronic device can obtain the target gray scale value by different formulas when the target sub-pixel is in different position first sub-transition regions. Specifically, the electronic device determining the target gray scale value can be any one of the following case (5) and case (6).

[0143] Case (5), the electronic device adopts the right image gray scale value to determine the target gray scale value. In combination with the above case (1) and case (2), as shown in FIG. 7a. In the case that the center point of the target sub-pixel is in the first sub-transition region A-B, or the first sub-transition region E-F, since the first sub-transition region A-B and the first sub-transition region E-F are in the right region of the period, the electronic device can determine the target gray scale value value by the following formula 8. value=(k_right-k_left)*value_right Formula 8

[0144] Wherein, value_right is the right image gray scale value of the target sub-pixel.

[0145] Case (6), the electronic device adopts the left image gray scale value to determine the target gray scale value. In combination with the above case (3) and case (4), as shown in FIG. 7a. In the case that the center point of the target sub-pixel is in the first sub-transition region F-G, or the first sub-transition region J-K, since the first sub-transition region F-G and the first sub-transition region J-K are in the left region of the period, the electronic device can determine the target gray scale value value by the following formula 9.

[0146] value=(k_left-k_right)* value_left Formula 9

[0147] Wherein, value_left is the left image gray scale value of the target sub-pixel.

[0148] In the embodiment of the present application, after the electronic device processes by case (5) or case (6), the display effect of the image can be as shown in FIG. 9.

[0149] It can be understood that, as shown in FIG. 10, for the light emitted by the pixel on the 3D display panel passing through the light splitting effect of the lens, entering the left eye and the right eye respectively, the image formed by the area viewed by the left eye through the lens grating is the left image. Similarly, the image formed by the area viewed by the right eye through the lens grating is the right image. The target sub-pixel corresponds to an image gray scale value in the left image, that is, the left image gray scale value. Correspondingly, the target sub-pixel corresponds to an image gray scale value in the right image, that is, the right image gray scale value.

[0150] In yet another possible implementation, the electronic device can determine the target sub-pixel adjusted left image gray scale value based on the proportion of the left region and the left image gray scale value, and determine the target sub-pixel adjusted right image gray scale value based on the proportion of the right region and the right image gray scale value. In the embodiments of the present application, the electronic device can determine the target gray scale value of the target sub-pixel according to the adjusted left image gray scale value and the adjusted right image gray scale value, so as to avoid the problem that the processing effect is not ideal due to the small proportion of the target sub-pixel region and the large gray scale value of the target sub-pixel.

[0151] For example, as shown in FIG. 7a, since the first sub-transition region includes four different position transition regions, the electronic device can obtain the target gray scale value by different formulas when the target sub-pixel is in different position first sub-transition regions. Specifically, the electronic device can determine the target gray scale value in any one of the following cases (7) and (8).

[0152] Case (7), in combination with the above-mentioned case (1) and case (2), as shown in FIG. 7a. In the case where the center point of the target sub-pixel is in the first sub-transition region A-B, or the first sub-transition region E-F, since the first sub-transition region A-B and the first sub-transition region E-F are in the right region of the period, the electronic device can determine the target gray scale value value by the following formula 10. value=k_left*value_left-k_right*value_right Formula 10

[0153] Case (8), in combination with the above-mentioned case (3) and case (4), as shown in FIG. 7a. In the case where the center point of the target sub-pixel is in the first sub-transition region F-G, or the first sub-transition region J-K, since the first sub-transition region F-G and the first sub-transition region J-K are in the left region of the period, the electronic device can determine the target gray scale value value by the following formula 11. value=k_right*value_right-k_left*value_left Formula 11

[0154] It can be understood that in the case where the proportion of the target sub-pixel region is small and the gray scale value of the target sub-pixel is large, the brightness of the target sub-pixel is affected by the gray scale value. Similarly, in the case where the proportion of the target sub-pixel region is large and the gray scale value of the target sub-pixel is small, the brightness of the target sub-pixel is affected by the gray scale value. Further, the gray scale value of the target sub-pixel can be better adjusted by the above-mentioned case (7) and case (8). In the embodiments of the present application, after the electronic device processes by the above-mentioned case (7) or case (8), the display effect of the image can be as shown in FIG. 11.

[0155] In the embodiment of the present application, in the case that the center point of the target sub-pixel is in the first sub-transition region, the electronic device can determine the first gray scale coefficient of the target sub-pixel according to the position of the center point of the target sub-pixel in the period and the width of the partial period of the period, and determine the target gray scale value of the target sub-pixel based on the first gray scale coefficient and the image gray scale value of the target sub-pixel.

[0156] For example, as shown in FIG. 12, in the case that the center point of the target sub-pixel is in any one of the A-B, E-F, F-G and J-K regions, the electronic device can reduce the gray scale value of the left image or the right image corresponding to the position of the target sub-pixel by the x^2 function, in combination with FIG. 7a. Specifically, the electronic device can determine the first gray scale coefficient k_score of the target sub-pixel by the following formula 12. k_score=((position-line_f)^2 / d^2) Formula 12

[0157] Wherein, line_f is the width of half a period, i.e. the width of A to F, and d is the width of the region between two letters.

[0158] It should be noted that, taking the width of the A-B or J-K region as d for example, the width of the E-G region is 2d, wherein 0<d≤subpixel / 2, and the electronic device adjusts the range of the transition region by adjusting the size of d.

[0159] Taking the first sub-transition region in the right region as an example in which the center point of the target sub-pixel is located, i.e. the case that the center point of the target sub-pixel is in the A-B region or the E-F region, the electronic device can substitute the first gray scale coefficient k_score into the following formula 13 to determine the target gray scale value value.

[0160] value=k_score* value_right Formula 13

[0161] Wherein, value_right is the right image gray scale value of the target sub-pixel.

[0162] In the embodiment of the present application, the electronic device determines the target gray scale value by the formula 12 and the formula 13, and then adjusts the current gray scale value of the target sub-pixel, and then increases the gray scale value of the sub-pixel in the non-transition region, and the display effect of the image can be as shown in FIG. 13.

[0163] It can be understood that the corresponding gray scale coefficient is different when the target sub-pixel is in different positions, and then the gray scale value is also different.

[0164] In the embodiment of the present application, in the case that the center point of the target sub-pixel is in the first sub-transition region, the electronic device sets the gray scale value of the target sub-pixel to a preset value.

[0165] Exemplarily, the preset value is 0. In the case that the center point of the target sub-pixel is in any one of the first sub-transition regions A-B, E-F, F-G, and J-K, the electronic device can set the gray scale value of the target sub-pixel to 0, that is, the sub-pixel in the transition region is subjected to black elimination processing. In the embodiment of the present application, after the electronic device performs black elimination processing on the current gray scale value of the target sub-pixel, the electronic device further increases the gray scale value of the sub-pixel in the non-transition region, and the display effect of the image can be as shown in FIG. 14.

[0166] In the embodiment of the present application, in the case that the center point of the target sub-pixel is in the second sub-transition region, the electronic device can determine the area ratio of the target sub-pixel according to the position of the center point of the target sub-pixel in the period and the width of the target sub-pixel, and determine the target gray scale value of the target sub-pixel based on the area ratio of the target sub-pixel and the image gray scale value of the target sub-pixel.

[0167] The image gray scale value is used to represent the gray scale value of the target sub-pixel in different images. The area ratio is used to represent the proportion of the target sub-pixel in the period.

[0168] Exemplarily, in combination with FIG. 7a, since the second sub-transition region includes four different positions of the transition region, in the case that the target sub-pixel is in the second sub-transition region in different positions, the electronic device can obtain the area ratio of the target sub-pixel by different formulas. Specifically, the electronic device can determine the area ratio of the target sub-pixel in any one of the following cases (9), case (10), case (11), and case (12).

[0169] In case (9), in the case that the center point of the target sub-pixel is in the second sub-transition region B-C, the electronic device can determine the right area ratio k_right of the target sub-pixel in the period by formula 4 in case (1) above. Correspondingly, the left area ratio k_left of the target sub-pixel in the period is obtained, that is, k_left = 1-k_right.

[0170] In case (10), in the case that the center point of the target sub-pixel is in the second sub-transition region D-E, the electronic device can determine the right area ratio k_right of the target sub-pixel in the period by formula 5 in case (2) above. Correspondingly, the left area ratio k_left of the target sub-pixel in the period is obtained, that is, k_left = 1-k_right.

[0171] In case (11), when the center point of the target sub-pixel is in the second sub-transition region G-H, the electronic device can determine the right region proportion k_right of the target sub-pixel in the period by using the formula 6 in the case (3) above. Correspondingly, the left region proportion k_left of the target sub-pixel in the period is obtained, that is, k_left = 1-k_right.

[0172] In case (12), when the center point of the target sub-pixel is in the second sub-transition region J-K, the electronic device can determine the right region proportion k_right of the target sub-pixel in the period by using the formula 7 in the case (4) above. Correspondingly, the left region proportion k_left of the target sub-pixel in the period is obtained, that is, k_left = 1-k_right.

[0173] In the embodiments of the present application, after the electronic device determines the region proportion of the target sub-pixel by using any one of the formulas in the cases (9)-(12) above, the electronic device can determine the target gray value of the target sub-pixel by using the region proportion.

[0174] In a possible implementation, the electronic device can determine the target gray value of the target sub-pixel based on the difference between the proportion of the target sub-pixel to the left region and the proportion of the target sub-pixel to the right region, and the left image gray value.

[0175] Optionally, the electronic device can also determine the target gray value of the target sub-pixel based on the difference between the proportion of the target sub-pixel to the left region and the proportion of the target sub-pixel to the right region, and the right image gray value.

[0176] For example, as shown in FIG. 7a, since the second sub-transition region includes four different positions of the transition region, when the target sub-pixel is in the second sub-transition region of different positions, the electronic device can obtain the target gray value by using different formulas. Specifically, the electronic device can determine the target gray value in any one of the following cases (13) and (14).

[0177] In case (13), the electronic device determines the target gray value by using the right image gray value. In combination with the cases (9) and (10) above, as shown in FIG. 7a, when the center point of the target sub-pixel is in the second sub-transition region B-C or the second sub-transition region D-E, since the second sub-transition region B-C and the second sub-transition region D-E are in the right region of the period, the electronic device can determine the target gray value value by using the formula 8 in the case (5) above.

[0178] In case (14), the electronic device determines the target gray scale value based on the left image gray scale value. In combination with case (3) and case (4) described above, as shown in FIG. 7a. In a case where the center point of the target sub-pixel is located in the second sub-transition region G-H or the second sub-transition region I-J, since the second sub-transition region G-H and the second sub-transition region I-J are located in the left region of the period, the electronic device can determine the target gray scale value value by using formula 9 in case (6) described above.

[0179] In the embodiments of the present application, in a case where the center point of the target sub-pixel is located in the second sub-transition region, the electronic device determines the target gray scale value by using case (13) or case (14), and adjusts the current gray scale value of the target sub-pixel. The display effect of the adjusted image can be as shown in FIG. 14.

[0180] In another possible implementation, the electronic device can determine the adjusted left image gray scale value of the target sub-pixel based on the proportion of the left region and the left image gray scale value, and determine the adjusted right image gray scale value of the target sub-pixel based on the proportion of the right region and the right image gray scale value. In the embodiments of the present application, the electronic device can determine the target gray scale value of the target sub-pixel according to the adjusted left image gray scale value and the adjusted right image gray scale value, so as to avoid the problem that the processing effect is not ideal due to the small proportion of the region of the target sub-pixel and the large gray scale value of the target sub-pixel.

[0181] For example, in combination with FIG. 7a, since the second sub-transition region includes four different positions of the transition region, the electronic device can obtain the target gray scale value by using different formulas in a case where the target sub-pixel is located in the second sub-transition region of different positions. Specifically, the electronic device can determine the target gray scale value in any one of the following case (15) and case (16).

[0182] In case (15), in combination with case (9) and case (10) described above, as shown in FIG. 7a. In a case where the center point of the target sub-pixel is located in the second sub-transition region B-C or the second sub-transition region D-E, since the second sub-transition region B-C and the second sub-transition region D-E are located in the right region of the period, the electronic device can determine the target gray scale value value by using formula 10 in case (7) described above.

[0183] In case (16), in combination with case (11) and case (12) described above, as shown in FIG. 7a. In a case where the center point of the target sub-pixel is located in the second sub-transition region G-H or the second sub-transition region I-J, since the second sub-transition region G-H and the second sub-transition region I-J are located in the left region of the period, the electronic device can determine the target gray scale value value by using formula 11 in case (8) described above.

[0184] In the embodiment of the present application, when the center point of the target sub-pixel is in the second sub-transition region, the electronic device determines the target gray scale value through case (15) or case (16), and adjusts the current gray scale value of the target sub-pixel. The display effect of the adjusted image can be as shown in FIG. 15.

[0185] In the embodiment of the present application, taking the 31.58K naked eye 3D project sample, the crosstalk test of the combined image of the black and white image, and the 3D effect shooting of the flower as examples. In the case where the electronic device only adopts mode (1), compared with the layout algorithm without adding transition processing, the crosstalk rate test of the combined image and the actual 3D effect test of the flower, the method of mode (1) can reduce the crosstalk rate by about 1%, significantly weaken the ghosting phenomenon, and effectively improve the 3D effect.

[0186] Mode (2): The electronic device can increase the gray scale value of the sub-pixel in the non-transition region while reducing the gray scale value of the target sub-pixel in the transition region to determine the target gray scale value and determine the first gray scale value.

[0187] In the embodiment of the present application, the electronic device can increase the gray scale value of the sub-pixel in the non-transition region by using the sin function on the basis of the above-mentioned mode (1).

[0188] Optionally, the non-transition region can include a second sub-transition region. For example, in combination with FIG. 7a, the non-transition region can be B-E and G-J. The non-transition region can also be C-D and H-I.

[0189] In a possible implementation, in the case where the target sub-pixel is in the non-transition region, the electronic device can determine a second gray scale coefficient of the target sub-pixel based on the position of the center point of the target sub-pixel in the period and the width of the period, and determine a second gray scale value of the sub-pixel in the non-transition region based on the second gray scale coefficient and the image gray scale value of the target sub-pixel. Further, the electronic device takes the smallest gray scale value in the second gray scale value and the gray scale threshold value as the first gray scale value of the sub-pixel in the non-transition region.

[0190] For example, taking the non-transition region as B-E and G-J. The electronic device can increase the gray scale value of the left image or the right image of the corresponding position of the sub-pixel in the non-transition region by using the sin function. Specifically, the electronic device can determine the first gray scale coefficient k_score of the target sub-pixel through the following formula 14. 非 . k_score 非 = k_ratio * sin (2 * π (position-d) / (deltax-4 * d) ) + 1 Formula 14

[0191] When the center point of the sub-pixel in the non-transition area is in the BE area or the GJ area, the electronic device can substitute the first grayscale coefficient k_score into the following formula 15 to determine the second grayscale value value of the sub-pixel in the non-transition area 非 .

[0192] value 非 =k_score 非 * value_right 非 Formula 15

[0193] Among them, value_right 非 is the grayscale value of the right image of the sub-pixel in the non-transition area.

[0194] In the embodiment of the present application, the electronic device determines the grayscale value of the sub-pixel in the non-transition area. 非 Then, the second grayscale value of the sub-pixel is 非 The grayscale value is compared with the grayscale threshold 255 to determine the minimum grayscale value between the two as the first grayscale value of the sub-pixel in the non-transition area.

[0195] It is understood that in the embodiments of the present application, method (2) can be combined with method (1). For example, when the center point of the target sub-pixel is in any of the regions AB, EF, FG, and JK, the electronic device can reduce the grayscale value of the left image or the right image corresponding to the position of the target sub-pixel by the x^2 function. That is, the electronic device can determine the target grayscale value using the above formula 12 and formula 13. At the same time, the electronic device determines the first grayscale value for the sub-pixels in the non-transition region using formula 14 and formula 15.

[0196] For example, taking the 31.5 8K naked-eye 3D project sample, the crosstalk test of the combined red and green images with a pixel value of 127 and the 3D effect of flowers are taken as examples. When method (2) is combined with method (1), compared with the arrangement algorithm without adding transition processing, the crosstalk rate test of the combined image and the actual 3D effect test of the flowers are compared. The method of combining method (2) with method (1) can reduce the crosstalk rate by about 1.3%, and the viewing angle can be increased by about 0.3 degrees compared with solution 1. As shown in Figure 13, the ghosting phenomenon of the image processed according to this method is significantly weakened, and the 3D effect is effectively improved.

[0197] Based on the above scheme, the electronic device in the embodiment of the present application increases the grayscale value of the sub-pixel in the non-transition area while reducing the grayscale value of the target sub-pixel, thereby balancing the width of the high-brightness platform and the low-brightness platform in the transition area and the non-transition area, further effectively improving the actual visible range of naked-eye 3D.

[0198] It should be noted that the embodiments of the present application can be mutually referred to or referenced, for example, the same or similar steps, method embodiments, system embodiments and device embodiments can be mutually referenced without limitation.

[0199] The embodiments of the present application can divide the functional modules or functional units of the gray scale compensation device according to the above-mentioned method examples, for example, each functional module or functional unit can be divided according to each function, or two or more functions can be integrated in one processing module. The above-mentioned integrated module can be realized in the form of hardware or in the form of software functional module or functional unit. Among them, the division of modules or units in the embodiments of the present application is illustrative, and is only a logical function division. When actually implemented, there can be another division mode.

[0200] As shown in FIG. 16, it is a structural schematic diagram of a gray scale compensation device provided by the embodiments of the present application. The device is applied to an electronic device, and the electronic device includes a display screen and a processor. The display screen corresponds to a plurality of periods, one period includes a plurality of sub-pixels, and one period has a left region and a right region. The device includes a processing unit 1601 and an acquisition unit 1602.

[0201] The processing unit 1601 is configured to determine the center point of the target sub-pixel in the region of the period in which it is located. The center point of the target sub-pixel in the region of the period in which it is located is determined according to the position of the center sub-pixel of the row in which the target sub-pixel is located. The region of the period includes a transition region and a non-transition region. The transition region is the region between the critical lines of the left region and the right region of the period in which it is located. The non-transition region is the region other than the transition region.

[0202] The processing unit 1601 is further configured to, in the case that the center point of the target sub-pixel is in the transition region, determine the target gray scale value of the target sub-pixel and determine the first gray scale value of the sub-pixel in the non-transition region. The first gray scale value is the adjusted increased gray scale value of the sub-pixel in the non-transition region, and the target gray scale value is the adjusted decreased gray scale value of the target sub-pixel.

[0203] In a possible implementation, the transition region includes a first sub-transition region and a second sub-transition region. The first sub-transition region is the region adjacent to the region boundary of the period in which it is located, and the second sub-transition region is the region other than the first sub-transition region.

[0204] In a possible implementation, in the case where the center point of the target sub-pixel is located in the first sub-transition region, the processing unit 1601 is specifically configured to: determine a region proportion of the target sub-pixel based on the position of the center point of the target sub-pixel in the period and the width of the target sub-pixel; the region proportion is used to represent the proportion of the target sub-pixel in the period; determine a target gray scale value of the target sub-pixel based on the region proportion of the target sub-pixel and an image gray scale value of the target sub-pixel; the image gray scale value is used to represent the gray scale value of the target sub-pixel in different images.

[0205] In a possible implementation, in the case where the center point of the target sub-pixel is located in the first sub-transition region, the processing unit 1601 is specifically configured to: determine a first gray scale coefficient of the target sub-pixel based on the position of the center point of the target sub-pixel in the period and the width of the partial period of the period; determine a target gray scale value of the target sub-pixel based on the first gray scale coefficient and an image gray scale value of the target sub-pixel.

[0206] In a possible implementation, in the case where the center point of the target sub-pixel is located in the first sub-transition region, the processing unit 1601 is specifically configured to: perform black taking processing on the target sub-pixel to determine a target gray scale value of the target sub-pixel.

[0207] In a possible implementation, in the case where the center point of the target sub-pixel is located in the second sub-transition region, the processing unit 1601 is specifically configured to: determine a region proportion of the target sub-pixel based on the position of the center point of the target sub-pixel in the period and the width of the target sub-pixel; the region proportion is used to represent the proportion of the target sub-pixel in the period; determine a target gray scale value of the target sub-pixel based on the region proportion of the target sub-pixel and an image gray scale value of the target sub-pixel; the image gray scale value is used to represent the gray scale value of the target sub-pixel in different images.

[0208] In a possible implementation, the non-transition region includes the second sub-transition region; the processing unit 1601 is specifically configured to: determine a second gray scale coefficient of the target sub-pixel based on the position of the center point of the target sub-pixel in the period and the width of the period; determine a second gray scale value of the sub-pixel in the non-transition region based on the second gray scale coefficient and an image gray scale value of the target sub-pixel; and take the minimum gray scale value of the second gray scale value and a gray scale threshold value as a first gray scale value of the sub-pixel in the non-transition region.

[0209] In a possible implementation, the region proportion includes a proportion of a left region of the target sub-pixel in the period and a proportion of a right region of the target sub-pixel in the period.

[0210] In a possible implementation, the image gray scale value includes a left image gray scale value of the target sub-pixel, and a right image gray scale value of the target sub-pixel.

[0211] In a possible implementation, the processing unit 1601 is further configured to determine the target gray scale value of the target sub-pixel based on the difference between the proportion of the target sub-pixel in the left region and the proportion of the target sub-pixel in the right region, and the left image gray scale value or the right image gray scale value.

[0212] In a possible implementation, the processing unit 1601 is further configured to determine an adjusted left image gray scale value of the target sub-pixel based on the proportion of the left region and the left image gray scale value, determine an adjusted right image gray scale value of the target sub-pixel based on the proportion of the right region and the right image gray scale value, and determine the target gray scale value of the target sub-pixel based on the adjusted left image gray scale value and the adjusted right image gray scale value.

[0213] In a possible implementation, the electronic device includes a lens, and the processing unit 1601 is further configured to obtain a complete period width, the complete period width being a distance value between centers of two adjacent lenses, determine a partial period width of a row where the target sub-pixel is located based on the complete period width and a position of a center sub-pixel, the partial period width being a width of a leftmost incomplete period of the row, and determine a region of a period where the target sub-pixel is located according to the partial period width.

[0214] In a possible implementation, the processing unit 1601 is further configured to obtain an offset of a center sub-pixel in the row, the offset being an offset between the center sub-pixel in the row and a center point of the display screen, and determine the position of the center sub-pixel based on the offset and a pixel width.

[0215] When implemented by hardware, the obtaining unit 1602 in the embodiment of the present application can be integrated on a communication interface, and the processing unit 1601 can be integrated on a processor. The specific implementation is shown in FIG. 17.

[0216] FIG. 17 shows another possible structural schematic diagram of the gray scale compensation device involved in the above-described embodiments. The communication device includes a processor 1702 and a communication interface 1703. The processor 1702 is configured to control and manage actions of the device, for example, to perform the steps performed by the processing unit 1601 described above, and / or to perform other processes of the technologies described herein. The communication interface 1703 is configured to support communication of the device with other network entities, for example, to perform the steps performed by the obtaining unit 1602 described above. The device can further include a memory 1701 and a bus 1704, the memory 1701 being configured to store program codes and data of the device.

[0217] The memory 1701 can be a memory or the like in the apparatus, which can include a volatile memory, such as a random access memory, and can also include a nonvolatile memory, such as a read-only memory, a flash memory, a hard disk, or a solid state disk, and can further include a combination of the above-mentioned memories.

[0218] The processor 1702 described above can be various example logical blocks, modules, and circuits described in connection with the disclosure of the present application. The processor can be a central processing unit, a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array, or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It can implement or execute various example logical blocks, modules, and circuits described in connection with the disclosure of the present application. The processor can also be a combination of implementing computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0219] The bus 1704 can be an extended industry standard architecture (EISA) bus or the like. The bus 1704 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in FIG. 17, but it does not mean that there is only one bus or only one type of bus.

[0220] The apparatus in FIG. 17 can also be a chip. The chip includes one or more (including two) processors 1702 and a communication interface 1703.

[0221] Optionally, the chip further includes a memory 1705, which can include a read-only memory and a random access memory, and provides operation instructions and data to the processor 1702. A part of the memory 1705 can also include a non-volatile random access memory (NVRAM).

[0222] In some embodiments, the memory 1705 stores the following elements, execution modules or data structures, or a subset thereof, or an extended set thereof.

[0223] In the embodiments of the present application, the corresponding operations are performed by calling the operation instructions stored in the memory 1705 (the operation instructions can be stored in an operating system).

[0224] Some embodiments of the present disclosure provide a computer-readable storage medium (for example, a non-transitory computer-readable storage medium) having stored computer program instructions, which, when executed on a computer (for example, a receiving node), cause the computer to perform the synchronization method of any of the above-described embodiments.

[0225] For example, the above-described computer-readable storage medium can include, but is not limited to, a magnetic storage device (for example, a hard disk, a floppy disk, or a magnetic tape, etc.), an optical disc (for example, a CD (Compact Disk), a DVD (Digital Versatile Disk), etc.), a smart card, and a flash memory device (for example, an EPROM (Erasable Programmable Read-Only Memory), a card, a stick, or a key drive, etc.). The various computer-readable storage media described in the present disclosure can represent one or more devices and / or other machine-readable storage media for storing information. The term "machine-readable storage medium" can include, but is not limited to, a wireless channel and various other media capable of storing, containing, and / or carrying instructions and / or data.

[0226] Some embodiments of the present disclosure also provide a computer program product, for example, stored on a non-transitory computer-readable storage medium. The computer program product includes computer program instructions, which, when executed on a computer (for example, a receiving node), cause the computer to perform the synchronization method of the above-described embodiments.

[0227] Some embodiments of the present disclosure also provide a computer program. When the computer program is executed on a computer (for example, a receiving node), the computer program causes the computer to perform the synchronization method of the above-described embodiments.

[0228] The above-described computer-readable storage medium, computer program product, and computer program have the same beneficial effects as the synchronization method of some of the above-described embodiments, and thus are not described here again.

[0229] In several embodiments provided in the present application, it should be understood that the disclosed system, device, and method can be implemented in other manners. For example, the above-described device embodiments are merely illustrative. For example, the division of the units is only a logical function division. There can be another division manner for the actual implementation, 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 displayed or discussed mutual couplings or direct couplings or communication connections can be indirect couplings or communication connections through some interfaces, devices, or units, and can be electrical, mechanical, or in other forms.

[0230] The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.

[0231] In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.

[0232] The above is only a specific 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 think of changes or replacements within the technical range disclosed by the present disclosure, which should be covered within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.

Claims

1. An electronic device, comprising: The electronic device comprises a display screen and a processor; the display screen corresponds to a plurality of periods, one period comprising a plurality of sub-pixels, and one period having a left region and a right region; The processor is configured to determine a center point of a target sub-pixel in a region of a period in which the target sub-pixel is located, the center point of the target sub-pixel in the region of the period being determined according to a position of a center sub-pixel of a row in which the target sub-pixel is located, the region of the period comprising a transition region and a non-transition region, the transition region being a region between a critical line of the left region and the right region of the period, and the non-transition region being a region other than the transition region; The processor is further configured to, in a case where the center point of the target sub-pixel is in the transition region, determine a target gray scale value of the target sub-pixel and determine a first gray scale value of a sub-pixel in the non-transition region; the first gray scale value being an adjusted increased gray scale value of the sub-pixel in the non-transition region, and the target gray scale value being an adjusted decreased gray scale value of the target sub-pixel.

2. The electronic device of claim 1, wherein, The transition region comprises a first sub-transition region and a second sub-transition region, the first sub-transition region being a region adjacent to a boundary of the region of the period, and the second sub-transition region being a region other than the first sub-transition region.

3. The electronic device of claim 2, wherein, In a case where the center point of the target sub-pixel is in the first sub-transition region, the processor is specifically configured to: determine a region proportion of the target sub-pixel based on a position of the center point of the target sub-pixel in the period and a width of the target sub-pixel; the region proportion being used to represent a proportion of the target sub-pixel in the period; determine a target gray scale value of the target sub-pixel based on the region proportion of the target sub-pixel and an image gray scale value of the target sub-pixel; the image gray scale value being used to represent a gray scale value of the target sub-pixel in different images.

4. The electronic device of claim 2, wherein, In a case where the center point of the target sub-pixel is in the first sub-transition region, the processor is specifically configured to: determine a first gray scale coefficient of the target sub-pixel based on a position of the center point of the target sub-pixel in the period and a width of a partial period of the period; determine a target gray scale value of the target sub-pixel based on the first gray scale coefficient and an image gray scale value of the target sub-pixel.

5. The electronic device of claim 2, wherein, In a case where the center point of the target sub-pixel is in the first sub-transition region, the processor is specifically configured to: perform black taking processing on the target sub-pixel to determine a target gray scale value of the target sub-pixel.

6. The electronic device of claim 2 or 5, wherein, In a case where the center point of the target sub-pixel is in the second sub-transition region, the processor is specifically configured to: determine a region proportion of the target sub-pixel based on a position of the center point of the target sub-pixel in the period and a width of the target sub-pixel; the region proportion being used to represent a proportion of the target sub-pixel in the period; ​ determine a target gray scale value of the target sub-pixel based on the area ratio of the target sub-pixel and an image gray scale value of the target sub-pixel; the image gray scale value is used to represent the gray scale value of the target sub-pixel in different images.

7. The electronic device of any of claims 3-5, wherein, The non-transition region includes the second sub-transition region. The processor is specifically configured to: determine a second gray scale coefficient of the target sub-pixel based on the position of the center point of the target sub-pixel in the current period and the width of the current period; determine a second gray scale value of the sub-pixel in the non-transition region based on the second gray scale coefficient and the image gray scale value of the target sub-pixel; determine the first gray scale value of the sub-pixel in the non-transition region as the minimum gray scale value between the second gray scale value and a gray scale threshold.

8. The electronic device of claim 3 or 6, wherein, The area ratio includes an area ratio of the target sub-pixel in the left region of the current period and an area ratio of the target sub-pixel in the right region of the current period.

9. The electronic device of any of claims 3, 4, 6, 7, wherein, The image gray scale value includes a left image gray scale value of the target sub-pixel and a right image gray scale value of the target sub-pixel.

10. The electronic device of claim 9, wherein, The processor is further configured to: determine a target gray scale value of the target sub-pixel based on the difference between the area ratio of the target sub-pixel in the left region and the area ratio of the target sub-pixel in the right region and the left image gray scale value or the right image gray scale value. 11.The electronic device of claim 9, wherein The processor is further configured to: determine an adjusted left image gray scale value of the target sub-pixel based on the area ratio of the left region and the left image gray scale value; determine an adjusted right image gray scale value of the target sub-pixel based on the area ratio of the right region and the right image gray scale value; determine a target gray scale value of the target sub-pixel based on the adjusted left image gray scale value and the adjusted right image gray scale value.

12. The electronic device of any of claims 1-11, wherein, The electronic device includes a lens; The processor is further configured to: obtain a complete period width; the complete period width is a distance value between centers of adjacent two lenses; determine a partial period width of a row where the target sub-pixel is located based on the complete period width and the position of the center sub-pixel; the partial period width is the width of a leftmost incomplete period of the row; determine a region of a current period where the target sub-pixel is located according to the partial period width.

13. The electronic device of any of claims 1-12, wherein, The processor is further configured to: obtain an offset of the center sub-pixel of the row; the offset is an offset between the center sub-pixel of the row and a center point of the display screen; determine the position of the center sub-pixel of the row where the target sub-pixel is located based on the offset and a pixel width.

14. A gray scale compensation method, wherein, The method is applied to an electronic device, and the electronic device includes a display screen and a processor; the display screen corresponds to a plurality of periods, one period includes a plurality of sub-pixels, and one period has a left region and a right region. The method includes: determining a center point of the target sub-pixel in a region of a current period; the center point of the target sub-pixel in the region of the current period is determined according to a position of a center sub-pixel of a row in which the target sub-pixel is located; the region of the current period includes a transition region and a non-transition region; the transition region is a region between a left region and a right region of the current period; the non-transition region is a region other than the transition region; in a case where the center point of the target sub-pixel is in the transition region, determining a target gray scale value of the target sub-pixel, and determining a first gray scale value of a sub-pixel in the non-transition region; the first gray scale value is an adjusted increased gray scale value of the sub-pixel in the non-transition region; and the target gray scale value is an adjusted decreased gray scale value of the target sub-pixel.

15. The method of claim 14, wherein, The transition region includes a first sub-transition region and a second sub-transition region; the first sub-transition region is a region adjacent to a boundary of the region of the current period; and the second sub-transition region is a region other than the first sub-transition region.

16. The method of claim 15, wherein, The transition region includes a first sub-transition region. The determining, in a case where the center point of the target sub-pixel is in the transition region, the target gray scale value of the target sub-pixel includes: determining a region proportion of the target sub-pixel based on a position of the center point of the target sub-pixel in the current period and a width of the target sub-pixel; the region proportion is used to represent a proportion of the target sub-pixel in the current period; determining the target gray scale value of the target sub-pixel based on the region proportion of the target sub-pixel and an image gray scale value of the target sub-pixel; the image gray scale value is used to represent a gray scale value of the target sub-pixel in different images.

17. The method of claim 15, wherein, The transition region includes a first sub-transition region. The determining, in a case where the center point of the target sub-pixel is in the transition region, the target gray scale value of the target sub-pixel includes: determining a first gray scale coefficient of the target sub-pixel based on a position of the center point of the target sub-pixel in the current period and a width of a partial period of the current period; determining the target gray scale value of the target sub-pixel based on the first gray scale coefficient and an image gray scale value of the target sub-pixel. It includes:

18. A gray scale compensation device, wherein, a processor and a communication interface; the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement the gray scale compensation method of any one of claims 14-17. The computer readable storage medium stores instructions, and when a computer executes the instructions, the computer executes the gray scale compensation method of any one of the above claims 14-17.

19. A computer readable storage medium, wherein, The computer program product includes instructions, and when the instructions are executed on a computer, the computer executes the gray scale compensation method of any one of the above claims 14-17.

20. A computer program product, wherein, ​

Citation Information

Patent Citations

  • Compensation method and device for display panel

    CN111292701A

  • Image display method and device, electronic equipment and computer readable storage medium

    CN113538271A

  • Dual-view display device

    US20090079680A1

  • Method of displaying stereoscopic images and related display device

    US20140320556A1

  • 3D display device and display method thereof

    US20170176759A1