3D image display method and device, equipment, storage medium and program product
The 3D image display method addresses crosstalk in naked-eye 3D screens by determining and applying crosstalk compensation data to eliminate crosstalk, enhancing the three-dimensional viewing experience.
Patent Information
- Application Number
- CN202411246617.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2024-12-24
AI Technical Summary
Naked-eye 3D screens suffer from crosstalk due to light refraction and diffraction, causing the left eye to see the right image and vice versa, which affects the three-dimensional viewing experience.
A 3D image display method that determines crosstalk compensation data based on first viewpoint image data and a crosstalk ratio, performs crosstalk compensation on second viewpoint image data, and displays the compensated image to eliminate crosstalk.
The method effectively eliminates crosstalk between left and right images on naked-eye 3D screens, ensuring that the naked eye cannot see the first viewpoint image on the second viewpoint image.
Smart Images

Figure CN119182896A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of display technology, and in particular to a 3D display method, device, storage medium and program product. Background Art
[0002] Currently, naked-eye 3D screens have been used in many scenarios. Naked-eye 3D screens can display images from two viewpoints, including a left viewpoint image (referred to as the left image) and a right viewpoint image (referred to as the right image). When people watch naked-eye 3D screens with naked eyes, the left eye should see the right image and the right eye should see the left image, thus achieving the effect of seeing a three-dimensional image. However, due to factors such as refraction and diffraction of light, the left eye may see the left image and the right eye may see the right image. This phenomenon is called crosstalk. How to avoid crosstalk between the left and right images of naked-eye 3D screens is a research focus in the industry. Summary of the invention
[0003] The present application provides a 3D image display method, device, equipment, storage medium and program product, which can avoid crosstalk between left and right images of a naked-eye 3D screen. The technical solution is as follows:
[0004] In one aspect, a 3D image display method is provided, the method comprising:
[0005] Determining crosstalk compensation data based on first viewpoint image data and a crosstalk ratio, wherein the crosstalk ratio represents a degree of crosstalk of the first viewpoint image to the second viewpoint image, and the first viewpoint image data is data of the first viewpoint image;
[0006] Based on the crosstalk compensation data, crosstalk compensation is performed on second viewpoint image data to eliminate crosstalk caused by the first viewpoint image on the second viewpoint image, the second viewpoint image data being data of the second viewpoint image;
[0007] Based on the crosstalk compensated second viewpoint image data, a crosstalk compensated second viewpoint image is displayed on a naked-eye 3D screen.
[0008] In a possible implementation manner, determining the crosstalk compensation data based on the first viewpoint image data and the crosstalk rate includes:
[0009] Determine the product of the first viewpoint image data and the crosstalk rate to obtain crosstalk image data;
[0010] Based on the crosstalk image data, the crosstalk compensation data is determined.
[0011] In a possible implementation manner, determining the crosstalk compensation data based on the crosstalk image data includes:
[0012] Determine a maximum value in the crosstalk image data to obtain a maximum crosstalk value;
[0013] The difference between the maximum crosstalk value and the crosstalk image data is determined to obtain the crosstalk compensation data.
[0014] In a possible implementation manner, performing crosstalk compensation on the second viewpoint image data based on the crosstalk compensation data includes:
[0015] The second viewpoint image data is added to the crosstalk compensation data to obtain the second viewpoint image data after the crosstalk compensation.
[0016] In a possible implementation manner, before determining the crosstalk compensation data based on the first viewpoint image data and the crosstalk rate, the method further includes:
[0017] Based on the RGB value of each pixel in the first viewpoint image, a brightness value of each pixel in the first viewpoint image is determined to obtain the first viewpoint image data.
[0018] In a possible implementation manner, the crosstalk-compensated second-viewpoint image data includes a brightness value of each pixel in the second-viewpoint image after crosstalk compensation;
[0019] The method of displaying the second viewpoint image after crosstalk compensation on the naked-eye 3D screen based on the second viewpoint image data after crosstalk compensation comprises:
[0020] Determine a crosstalk-compensated RGB value of each pixel in the second viewpoint image based on a crosstalk-compensated luminance value of each pixel in the second viewpoint image;
[0021] The crosstalk-compensated second viewpoint image is displayed according to the crosstalk-compensated RGB value of each pixel in the second viewpoint image.
[0022] In another aspect, a 3D image display device is provided, the device comprising:
[0023] a crosstalk determination module, configured to determine crosstalk compensation data based on first viewpoint image data and a crosstalk ratio, wherein the crosstalk ratio represents a degree of crosstalk of the first viewpoint image to the second viewpoint image, and the first viewpoint image data is data of the first viewpoint image;
[0024] a crosstalk compensation module, configured to perform crosstalk compensation on second viewpoint image data based on the crosstalk compensation data, so as to eliminate crosstalk of the first viewpoint image on the second viewpoint image, wherein the second viewpoint image data is data of the second viewpoint image;
[0025] The display module is used to display the second viewpoint image after crosstalk compensation on the naked-eye 3D screen based on the second viewpoint image data after crosstalk compensation.
[0026] In a possible implementation manner, the crosstalk determination module is specifically used to:
[0027] Determine the product of the first viewpoint image data and the crosstalk rate to obtain crosstalk image data;
[0028] Based on the crosstalk image data, the crosstalk compensation data is determined.
[0029] In a possible implementation manner, the crosstalk determination module is specifically used to:
[0030] Determine a maximum value in the crosstalk image data to obtain a maximum crosstalk value;
[0031] The difference between the maximum crosstalk value and the crosstalk image data is determined to obtain the crosstalk compensation data.
[0032] In a possible implementation manner, the crosstalk compensation module is specifically used to:
[0033] The second viewpoint image data is added to the crosstalk compensation data to obtain the second viewpoint image data after the crosstalk compensation.
[0034] In a possible implementation manner, the device further includes:
[0035] The brightness determination module is used to determine the brightness value of each pixel in the first viewpoint image based on the RGB value of each pixel in the first viewpoint image to obtain the first viewpoint image data.
[0036] In a possible implementation manner, the crosstalk-compensated second-viewpoint image data includes a crosstalk-compensated brightness value of each pixel in the second-viewpoint image;
[0037] The display module is specifically used for:
[0038] Determine a crosstalk-compensated RGB value of each pixel in the second viewpoint image based on the crosstalk-compensated luminance value of each pixel in the second viewpoint image;
[0039] The crosstalk-compensated second viewpoint image is displayed according to the crosstalk-compensated RGB value of each pixel in the second viewpoint image.
[0040] On the other hand, a display device is provided, the display device comprising a naked eye 3D screen, a processor and a memory, wherein the memory is used to store a computer program; and the processor is used to implement the above-mentioned 3D image display method when executing the computer program.
[0041] On the other hand, an electronic device is provided, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus, the memory is used to store computer programs, and the processor is used to execute the programs stored in the memory to implement the steps of the above-mentioned 3D image display method.
[0042] On the other hand, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned 3D image display method are implemented.
[0043] On the other hand, a computer program product comprising instructions is provided. When the instructions are executed on a processor, the processor executes the steps of the above-mentioned 3D image display method.
[0044] The technical solution provided by this application can at least bring the following beneficial effects:
[0045] Based on the first viewpoint image data and the crosstalk, the crosstalk compensation data is first determined, and then the second viewpoint image data is crosstalk compensated based on the crosstalk compensation parameters. In this way, the crosstalk can be eliminated. After the second viewpoint image after crosstalk compensation is displayed on the naked eye 3D screen, the naked eye will not be able to see the first viewpoint image on the second viewpoint image, that is, the crosstalk of the first viewpoint image to the second viewpoint image is avoided. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0047] Figure 1 is a schematic diagram of a crosstalk phenomenon provided by an embodiment of the present application;
[0048] Figure 2 is a flow chart of a 3D image display method provided in an embodiment of the present application;
[0049] Figure 3 is a flowchart of another 3D image display method provided in an embodiment of the present application;
[0050] Figure 4 is a structural schematic diagram of a 3D image display device provided in an embodiment of the present application;
[0051] Figure 5 It is a structural block diagram of a terminal 500 provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0053] Currently, naked-eye 3D screens have been used in many scenarios, such as large or small game equipment, large screens in shopping malls, screens on building exterior walls, portable terminals, etc. Naked-eye 3D screens can display images from two viewpoints, including a left image and a right image. When people watch naked-eye 3D screens with naked eyes, the left eye should see the right image and the right eye should see the left image, thus achieving the effect of seeing a three-dimensional image. However, due to factors such as refraction and diffraction of light, the left eye may see the left image and the right eye may see the right image. This phenomenon is called crosstalk.
[0054] Figure 1 is a schematic diagram of a crosstalk phenomenon provided by an embodiment of the present application. Figure 1 , the original image (i.e. the original image to be displayed) includes a left image and a right image. For example, the left image mainly displays the text "AAAAAA" and the right image mainly displays the image of a person. Figure 1 The display image before crosstalk compensation. After the crosstalk phenomenon occurs, the left image (text image) with crosstalk appears in the right image (character image) viewed by the naked eye.
[0055] In order to solve this problem, an embodiment of the present application provides a 3D image display method, which first determines crosstalk compensation data based on first viewpoint image data and crosstalk, and then performs crosstalk compensation on second viewpoint image data based on crosstalk compensation parameters. In this way, crosstalk can be eliminated. After the first viewpoint image and the second viewpoint image are subsequently projected, the naked eye will not be able to see the first viewpoint image on the second viewpoint image, that is, crosstalk between the left and right viewpoint images of the naked eye 3D screen is avoided.
[0056] Continue to see Figure 1 , after adopting the 3D image display method provided by the embodiment of the present application to compensate the crosstalk of the left image, see Figure 1 In the displayed image after crosstalk compensation, the naked eye will not be able to see the text image in the right image (human image).
[0057] The 3D image display method provided in the embodiment of the present application can be applied to a display device, which can be any type of naked-eye 3D display device. The embodiment of the present application does not limit the structure, type, size, etc. of the display device, nor does it limit the naked-eye 3D technology adopted by the display device.
[0058] The business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0059] Next, the 3D image display method provided in the embodiment of the present application is explained in detail.
[0060] Figure 2 This is a flow chart of a 3D image display method provided by an embodiment of the present application. Please refer to Figure 2 , the method comprises the following steps.
[0061] Step 201: Determine crosstalk compensation data based on first viewpoint image data and a crosstalk ratio, where the crosstalk ratio represents the degree of crosstalk of the first viewpoint image to the second viewpoint image.
[0062] In the embodiment of the present application, the method of processing the crosstalk of the left image to the right image and the method of processing the crosstalk of the right image to the left image may be the same. That is, the first viewpoint image data may be the image data of the left image or the image data of the right image.
[0063] In the case where the first viewpoint image data is the image data of the left image, the crosstalk rate represents the degree of crosstalk from the left image to the right image, and the crosstalk compensation data is used to eliminate the crosstalk from the left image to the right image. In the case where the first viewpoint image data is the image data of the right image, the crosstalk rate represents the degree of crosstalk from the right image to the left image, and the crosstalk compensation data is used to eliminate the crosstalk from the right image to the left image.
[0064] In the embodiment of the present application, the first viewpoint image data is the image data of the first viewpoint image, and the second viewpoint image data is the image data of the second viewpoint image. One of the first viewpoint image and the second viewpoint image is a left image, and the other is a right image. Both the first viewpoint image data and the second viewpoint image data are data that have not been crosstalk compensated.
[0065] In a possible implementation, the first viewpoint image data and the second viewpoint image data both include brightness data. That is, the embodiment of the present application can avoid crosstalk of the naked eye 3D screen by performing crosstalk compensation on the brightness data. Of course, in some other embodiments, the first viewpoint image data and the second viewpoint image data may also include RGB values, grayscale values, contrast, color saturation or other image data. The following text takes the first viewpoint image data and the second viewpoint image data as brightness data as an example for introduction.
[0066] In a possible implementation, before determining the crosstalk compensation data based on the first viewpoint image data and the crosstalk rate, the brightness value of each pixel in the first viewpoint image is determined based on the RGB value of each pixel in the first viewpoint image to obtain the first viewpoint image data. The first viewpoint image includes a plurality of pixels.
[0067] There are multiple implementation methods for determining the brightness value of each pixel in the first viewpoint image based on the RGB value of each pixel in the first viewpoint image, including the following methods 1 to 3.
[0068] Method 1: traverse each pixel in the first viewpoint image, obtain the RGB value of the currently traversed pixel, and determine the brightness value of the currently traversed pixel based on the RGB value of the currently traversed pixel. That is, determine the brightness values of the multiple pixels serially.
[0069] Method 2: Acquire RGB values of multiple pixels in the first viewpoint image at the same time, and determine the brightness values of the multiple pixels based on the RGB values of the multiple pixels at the same time, that is, determine the brightness values of the multiple pixels in parallel.
[0070] Method 3: Each time the RGB values of the first number of pixels in the first viewpoint image are obtained, the brightness values of the first number of pixels currently obtained are determined based on the RGB values of the first number of pixels currently obtained. That is, serial and parallel are used together to determine the brightness values of the multiple pixels.
[0071] Among them, the first number is a preset value, and the first number can be determined according to the processor type, the number of processor cores, the computing power (referred to as computing power for short) of the display device, etc.
[0072] The above describes the implementation method of obtaining the brightness value included in the first viewpoint image data. The implementation method of obtaining the brightness value included in the second viewpoint image data is the same as the implementation method of obtaining the brightness value included in the first viewpoint image data, and will not be repeated here. It should be noted that the time of obtaining the second viewpoint image data can be any time before step 202, and the embodiment of the present application does not limit this.
[0073] It should be understood that the RGB value of each pixel includes R value, G value and B value, and the brightness value of each pixel can be obtained by calculating the brightness values corresponding to the R value, G value and B value respectively, and then adding the calculated three brightness values.
[0074] The present application embodiment does not limit the specific implementation method of determining the brightness value based on the RGB value, and the specific implementation method can be referred to the relevant technology. Here is an example, according to the formula P = (P 255 -P0)(grayscale value / 255) g +P0 to calculate the brightness values corresponding to the R value, G value and B value respectively. In this formula, P represents the brightness value corresponding to the R value / G value / B value of a pixel, the grayscale value represents the corresponding R value / G value / B value, the value of g can be the gamma value of 2.2, P 255 P represents the actual brightness value of a pure white pixel displayed by the display device, and P0 represents the actual brightness value of a pure black pixel displayed by the display device. 255 and P0 can be measured using relevant instruments.
[0075] After the first viewpoint image data is acquired, the crosstalk compensation data may be determined based on the first viewpoint image data and the crosstalk ratio.
[0076] In an embodiment of the present application, one implementation method for determining crosstalk compensation data based on the first viewpoint image data and the crosstalk rate is: determine the product of the first viewpoint image data and the crosstalk rate to obtain crosstalk image data; and determine crosstalk compensation data based on the crosstalk image data.
[0077] Exemplarily, let the crosstalk rate be T, let the first viewpoint image data be L, L includes brightness values of m*n pixels, let the crosstalk image data be C, then, C=L*T, C also includes m*n values.
[0078] Among them, the crosstalk rate is, for example, 0.07, 0.1 or other values. It should be understood that the degree of crosstalk from the left image to the right image may be the same as or different from the degree of crosstalk from the right image to the left image, that is, the crosstalk rate of the left image to the right image and the crosstalk rate of the right image to the left image may be the same or different. The specific value of the crosstalk rate can be determined by measurement, for example, by measuring the crosstalk degree without crosstalk compensation for multiple times, and taking the average value of the crosstalk rate obtained by the multiple measurements as the crosstalk rate in step 201. The embodiment of the present application does not limit the method for determining the crosstalk rate.
[0079] It should be understood that the crosstalk image data can be regarded as the image data of the crosstalk image that the naked eye will see on the second viewpoint image when crosstalk compensation is not performed. In order to achieve the purpose of eliminating crosstalk, the crosstalk image needs to be compensated to a pure white brightness image (not visible to the naked eye), and the maximum value in the crosstalk image data represents the brightest degree of the crosstalk image. Therefore, after obtaining the crosstalk image data, the crosstalk compensation data can be determined based on the maximum value.
[0080] In a possible implementation, based on the crosstalk image data, an implementation method for determining the crosstalk compensation data is: determining the maximum value in the crosstalk image data to obtain the maximum crosstalk value; determining the difference between the maximum crosstalk value and the crosstalk image data to obtain the crosstalk compensation data.
[0081] For example, taking the crosstalk image data C including m*n values as an example, the maximum value among the m*n values is determined as the maximum crosstalk value, and the maximum crosstalk value is recorded as C. max , let the crosstalk compensation data be S, then, S = C max -C. It should be understood that S also includes m*n values, and the value of a certain position in S is C max Resulting from subtracting the value at the same position in C.
[0082] It should be understood that the above data (including first viewpoint image data, second viewpoint image data, crosstalk image data, crosstalk compensation data) are all positive numbers. This is because the current display device displays images in the form of RGB values, grayscale values, brightness values, etc., which are represented by positive numbers.
[0083] Step 202: Perform crosstalk compensation on the second viewpoint image data based on the crosstalk compensation data.
[0084] In the embodiment of the present application, the crosstalk compensation data may be added to the second viewpoint image data to perform crosstalk compensation on the second viewpoint image data, thereby eliminating the crosstalk of the first viewpoint image on the second viewpoint image.
[0085] Exemplarily, the second viewpoint image data is denoted as R, R includes m*n values, the second viewpoint image data after crosstalk compensation is denoted as R', and the crosstalk compensation data S=C max -C, then, R'=R+S=R+C max -C. It can be seen that, in the case where the crosstalk image corresponding to the crosstalk image data C is originally seen, if “C” is used to represent the crosstalk image, “(R+C max -C)” means the real displayed image, then, “(R+C max -C)+C=R+C max" indicates the image seen by the naked eye after crosstalk compensation, that is, the naked eye will see the second viewpoint image superimposed with a pure white image (it should be understood that the pure white here is not really white, but whitish, which is actually a gray image. The grayscale value of this gray image depends on C max size), but the first viewpoint image will no longer be seen.
[0086] In the above implementation, the crosstalk compensation data is obtained by subtracting the crosstalk image data from the maximum crosstalk value, and is a positive number. In other possible implementations, the crosstalk compensation data may also be obtained by subtracting the maximum crosstalk value from the crosstalk image data, so that the obtained crosstalk compensation data is a negative number. Subsequent subtraction of the crosstalk compensation data from the second viewpoint image data may also achieve the same effect as the above implementation.
[0087] Step 203: Based on the crosstalk-compensated second viewpoint image data, display the crosstalk-compensated second viewpoint image on the naked-eye 3D screen.
[0088] As can be seen from the above, in one possible implementation method, the second viewpoint image data after crosstalk compensation includes the brightness value of each pixel in the second viewpoint image after crosstalk compensation. Then, based on the second viewpoint image data after crosstalk compensation, the corresponding implementation method of displaying the second viewpoint image after crosstalk compensation on the naked-eye 3D screen can be: based on the brightness value of each pixel in the second viewpoint image after crosstalk compensation, determine the RGB value of each pixel in the second viewpoint image after crosstalk compensation; and display the second viewpoint image after crosstalk compensation according to the RGB value of each pixel in the second viewpoint image after crosstalk compensation.
[0089] Among them, based on the brightness value of each pixel in the second viewpoint image after crosstalk compensation, the specific implementation method of determining the RGB value of each pixel in the second viewpoint image after crosstalk compensation can refer to the method of converting the brightness value into the RGB value in the related art, which will not be introduced in detail in the embodiments of the present application.
[0090] As can be seen from the above, the method of processing the crosstalk of the left image to the right image can be the same as the method of processing the crosstalk of the right image to the left image. Then, the crosstalk processing of the second viewpoint image to the first viewpoint image can also be implemented by referring to steps 201 to 203, which will be introduced below.
[0091] In an embodiment of the present application, crosstalk compensation data is determined based on the second viewpoint image data and the crosstalk rate, where the crosstalk rate represents the degree of crosstalk of the second viewpoint image on the first viewpoint image; based on the crosstalk compensation data, crosstalk compensation is performed on the first viewpoint image data to eliminate the crosstalk of the second viewpoint image on the first viewpoint image; based on the crosstalk compensated first viewpoint image data, the crosstalk compensated first viewpoint image is displayed on the naked eye 3D screen.
[0092] Among them, the specific implementation method of determining the crosstalk compensation data based on the second viewpoint image data and the crosstalk rate is similar to step 201, the specific implementation method of performing crosstalk compensation on the first viewpoint image data based on the crosstalk compensation data is similar to step 202, and the specific implementation method of displaying the first viewpoint image after crosstalk compensation on the naked-eye 3D screen based on the first viewpoint image data after crosstalk compensation is similar to step 203, which will not be repeated here.
[0093] One implementation of determining the crosstalk compensation data based on the second viewpoint image data and the crosstalk rate is: determining the product of the second viewpoint image data and the crosstalk rate to obtain the crosstalk image data; and determining the crosstalk compensation data based on the crosstalk image data. The specific implementation method can refer to the specific implementation method of similar content in step 201, which will not be repeated here.
[0094] One implementation method of determining the crosstalk compensation data based on the crosstalk image data is: determining the maximum value in the crosstalk image data to obtain the maximum crosstalk value; determining the difference between the maximum crosstalk value and the crosstalk image data to obtain the crosstalk compensation data. The specific implementation method can refer to the specific implementation method of similar content in step 201, which will not be repeated here.
[0095] One implementation method of performing crosstalk compensation on the first viewpoint image data based on the crosstalk compensation data is: adding the crosstalk compensation data to the first viewpoint image data to obtain the first viewpoint image data after crosstalk compensation. The specific implementation method can refer to the specific implementation method of similar content in step 202, which will not be repeated here.
[0096] Wherein, before determining the crosstalk compensation data based on the second viewpoint image data and the crosstalk rate, the brightness value of each pixel in the second viewpoint image is determined based on the RGB value of each pixel in the second viewpoint image to obtain the second viewpoint image data. The specific implementation method can refer to the specific implementation method of similar content in step 201, which will not be repeated here.
[0097] The crosstalk-compensated first view image data includes the crosstalk-compensated brightness value of each pixel in the first view image. Based on this, one implementation method of displaying the crosstalk-compensated first view image on the naked-eye 3D screen based on the crosstalk-compensated first view image data is: based on the crosstalk-compensated brightness value of each pixel in the first view image, determine the crosstalk-compensated RGB value of each pixel in the first view image; and display the crosstalk-compensated first view image according to the crosstalk-compensated RGB value of each pixel in the first view image. The specific implementation method can refer to the specific implementation method of similar content in step 203, which will not be repeated here.
[0098] Next, please combine Figure 3The 3D image display method provided in the embodiment of the present application is explained again by way of example.
[0099] Figure 3 is a flow chart of another 3D image display method provided by an embodiment of the present application. Taking the elimination of crosstalk of the left image to the right image as an example, see Figure 3 , see Figure 3 , the method comprises the following steps.
[0100] Step 301: Obtain brightness data L of the left image, including the brightness value of each pixel in the left image (for example, the brightness value can be determined based on the RGB value).
[0101] Step 302: Calculate the brightness data of the left image crosstalked to the right image, ie, the crosstalk image data C, according to the crosstalk rate.
[0102] Step 303: Determine the maximum value C in the crosstalk image data C max , calculate the crosstalk compensation data S = C max -C.
[0103] Step 304: Obtain brightness data R of the right image, including the brightness value of each pixel in the right image.
[0104] Step 305: Based on the crosstalk compensation data S, crosstalk compensation is performed on the brightness data of the right image to obtain the brightness data R'=R+S after crosstalk compensation of the right image. That is, the brightness of the right image displayed on the basis of the pure white (whitened) image is calculated.
[0105] Step 306: convert the brightness data R′ of the right image after crosstalk compensation into RGB values after crosstalk compensation of the right image.
[0106] Step 307: Based on the crosstalk-compensated RGB values of the right image, the right image after crosstalk compensation is displayed on the naked-eye 3D screen. For example, based on the crosstalk-compensated RGB values of the right image, the right image after crosstalk compensation is displayed by interlacing.
[0107] Among them, step 304 can be executed at any time before step 305, and this embodiment of the present application is not limited to this.
[0108] To summarize, in the embodiment of the present application, crosstalk compensation data is first determined based on the first viewpoint image data and crosstalk, and then crosstalk compensation is performed on the second viewpoint image data based on the crosstalk compensation parameters, so that the crosstalk can be eliminated. After the second viewpoint image after crosstalk compensation is displayed on the naked eye 3D screen, the naked eye will not be able to see the first viewpoint image on the second viewpoint image, that is, crosstalk of the first viewpoint image on the second viewpoint image is avoided.
[0109] All the above optional technical solutions can be combined in any way to form optional embodiments of the present application, and the embodiments of the present application will not be described in detail one by one.
[0110] Figure 4 3D image display device 400 can be implemented as part or all of a display device by software, hardware or a combination of both. Figure 4 The device 400 includes: a crosstalk determination module 401, a crosstalk compensation module 402 and a display module 403.
[0111] A crosstalk determination module 401 is used to determine crosstalk compensation data based on first viewpoint image data and a crosstalk ratio, where the crosstalk ratio represents a degree of crosstalk of the first viewpoint image to the second viewpoint image, and the first viewpoint image data is data of the first viewpoint image;
[0112] A crosstalk compensation module 402, configured to perform crosstalk compensation on the second viewpoint image data based on the crosstalk compensation data, so as to eliminate the crosstalk of the first viewpoint image on the second viewpoint image, where the second viewpoint image data is the data of the second viewpoint image;
[0113] The display module 403 is configured to display the second viewpoint image after crosstalk compensation on a naked-eye 3D screen based on the second viewpoint image data after crosstalk compensation.
[0114] In a possible implementation manner, the crosstalk determination module 401 is specifically configured to:
[0115] Determine the product of the first viewpoint image data and the crosstalk rate to obtain crosstalk image data;
[0116] Based on the crosstalk image data, crosstalk compensation data is determined.
[0117] In a possible implementation manner, the crosstalk determination module 401 is specifically configured to:
[0118] Determine the maximum value in the crosstalk image data to obtain a maximum crosstalk value;
[0119] The difference between the maximum crosstalk value and the crosstalk image data is determined to obtain crosstalk compensation data.
[0120] In a possible implementation, the crosstalk compensation module 402 is specifically configured to:
[0121] The crosstalk compensation data is added to the second viewpoint image data to obtain the crosstalk compensated second viewpoint image data.
[0122] In a possible implementation, the device 400 further includes:
[0123] The brightness determination module is used to determine the brightness value of each pixel in the first viewpoint image based on the RGB value of each pixel in the first viewpoint image to obtain the first viewpoint image data.
[0124] In a possible implementation, the crosstalk-compensated second viewpoint image data includes a crosstalk-compensated brightness value of each pixel in the second viewpoint image;
[0125] The display module 403 is specifically used for:
[0126] Determine the RGB value of each pixel in the second viewpoint image after crosstalk compensation based on the brightness value of each pixel in the second viewpoint image after crosstalk compensation;
[0127] The crosstalk-compensated second viewpoint image is displayed according to the crosstalk-compensated RGB value of each pixel in the second viewpoint image.
[0128] In an embodiment of the present application, crosstalk compensation data is first determined based on the first viewpoint image data and crosstalk, and then crosstalk compensation is performed on the second viewpoint image data based on the crosstalk compensation parameters. In this way, the crosstalk can be eliminated. After the second viewpoint image after crosstalk compensation is displayed on the naked eye 3D screen, the naked eye will not be able to see the first viewpoint image on the second viewpoint image, that is, crosstalk of the first viewpoint image on the second viewpoint image is avoided.
[0129] It should be noted that: the 3D image display device provided in the above embodiment only uses the division of the above functional modules as an example to illustrate when displaying 3D images. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the 3D image display device provided in the above embodiment and the 3D image display method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0130] Figure 5 This is a block diagram of a terminal 500 provided in an embodiment of the present application. The terminal 500 may be: a large or small gaming device, or a display device including a large screen in a shopping mall, a screen on an exterior wall of a building, or a user device such as a smart phone, a tablet computer, a notebook computer or a desktop computer, a portable terminal, a laptop terminal, a desktop terminal, etc.
[0131] Typically, the terminal 500 includes a processor 501 and a memory 502 .
[0132] The processor 501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 501 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 501 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 501 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0133] The memory 502 may include one or more computer-readable storage media, which may be non-transitory. The memory 502 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 502 is used to store at least one instruction, which is used to be executed by the processor 501 to implement the 3D image display method provided in the method embodiment of the present application.
[0134] In some embodiments, the terminal 500 may also optionally include: a peripheral device interface 503 and at least one peripheral device. The processor 501, the memory 502 and the peripheral device interface 503 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 503 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 504, a display screen 505, a camera assembly 506, an audio circuit 507, a positioning assembly 508 and a power supply 509.
[0135] The peripheral device interface 503 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 501 and the memory 502. In some embodiments, the processor 501, the memory 502, and the peripheral device interface 503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 501, the memory 502, and the peripheral device interface 503 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0136] The radio frequency circuit 504 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 504 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 504 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. In a possible implementation, the radio frequency circuit 504 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 504 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 504 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0137] The display screen 505 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 505 is a touch display screen, the display screen 505 also has the ability to collect touch signals on the surface or above the surface of the display screen 505. The touch signal can be input to the processor 501 as a control signal for processing. At this time, the display screen 505 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 505 can be one, set on the front panel of the terminal 500; in other embodiments, the display screen 505 can be at least two, respectively set on different surfaces of the terminal 500 or in a folding design; in other embodiments, the display screen 505 can be a flexible display screen, set on a curved surface or a folding surface of the terminal 500. Even, the display screen 505 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 505 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc.
[0138] The camera assembly 506 is used to capture images or videos. In one possible implementation, the camera assembly 506 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal, and the rear camera is disposed on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 506 may also include a flash. The flash may be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0139] The audio circuit 507 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 501 for processing, or input them into the radio frequency circuit 504 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 500. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 501 or the radio frequency circuit 504 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 507 may also include a headphone jack.
[0140] The positioning component 508 is used to locate the current geographical location of the terminal 500 to implement navigation or LBS (Location Based Service). The positioning component 508 can be a positioning component based on the US GPS (Global Positioning System), China's Beidou system, Russia's Grenas system or the European Union's Galileo system.
[0141] The power supply 509 is used to power various components in the terminal 500. The power supply 509 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 509 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0142] In some embodiments, the terminal 500 further includes one or more sensors 510 , including but not limited to: an acceleration sensor 511 , a gyroscope sensor 512 , a pressure sensor 513 , a fingerprint sensor 514 , an optical sensor 515 , and a proximity sensor 516 .
[0143] The acceleration sensor 511 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 500. For example, the acceleration sensor 511 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 501 can control the display screen 505 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 511. The acceleration sensor 511 can also be used to collect game or user motion data.
[0144] The gyro sensor 512 can detect the body direction and rotation angle of the terminal 500, and the gyro sensor 512 can cooperate with the acceleration sensor 511 to collect the user's 3D actions on the terminal 500. The processor 501 can implement the following functions based on the data collected by the gyro sensor 512: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0145] The pressure sensor 513 can be set on the side frame of the terminal 500 and / or the lower layer of the display screen 505. When the pressure sensor 513 is set on the side frame of the terminal 500, it can detect the user's holding signal of the terminal 500, and the processor 501 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 513. When the pressure sensor 513 is set on the lower layer of the display screen 505, the processor 501 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 505. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0146] The fingerprint sensor 514 is used to collect the user's fingerprint, and the processor 501 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 514, or the fingerprint sensor 514 identifies the user's identity based on the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 501 authorizes the user to perform relevant sensitive operations, including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 514 can be set on the front, back, or side of the terminal 500. When a physical button or a manufacturer logo is set on the terminal 500, the fingerprint sensor 514 can be integrated with the physical button or the manufacturer logo (trademark).
[0147] The optical sensor 515 is used to collect the ambient light intensity. In one embodiment, the processor 501 can control the display brightness of the display screen 505 according to the ambient light intensity collected by the optical sensor 515. Specifically, when the ambient light intensity is high, the display brightness of the display screen 505 is increased; when the ambient light intensity is low, the display brightness of the display screen 505 is reduced. In another embodiment, the processor 501 can also dynamically adjust the shooting parameters of the camera component 506 according to the ambient light intensity collected by the optical sensor 515.
[0148] The proximity sensor 516, also called a distance sensor, is usually disposed on the front panel of the terminal 500. The proximity sensor 516 is used to collect the distance between the user and the front of the terminal 500. In one embodiment, when the proximity sensor 516 detects that the distance between the user and the front of the terminal 500 is gradually decreasing, the processor 501 controls the display screen 505 to switch from the screen-on state to the screen-off state; when the proximity sensor 516 detects that the distance between the user and the front of the terminal 500 is gradually increasing, the processor 501 controls the display screen 505 to switch from the screen-off state to the screen-on state.
[0149] Those skilled in the art will understand that Figure 5 The structure shown in the figure does not constitute a limitation on the terminal 500, and the terminal 500 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0150] In some embodiments, a computer readable storage medium is further provided, in which a computer program is stored, and when the computer program is executed by a processor, the steps of the 3D image display method in the above embodiment are implemented. For example, the computer readable storage medium can be a ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
[0151] It is worth noting that the computer-readable storage medium mentioned in the embodiments of the present application may be a non-volatile storage medium, in other words, a non-transitory storage medium.
[0152] It should be understood that all or part of the steps to implement the above embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The computer instructions can be stored in the above-mentioned computer readable storage medium.
[0153] That is, in some embodiments, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the steps of the above-mentioned 3D image display method.
[0154] In other words, in some embodiments, a computer program is further provided, which, when executed on a computer, enables the computer to execute the steps of the above-mentioned 3D image display method.
[0155] It should be understood that the "at least one" mentioned herein refers to one or more, and "multiple" refers to two or more. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not limit them to be necessarily different.
[0156] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in the embodiments of this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the image data involved in the embodiments of this application is obtained with full authorization.
[0157] The above-mentioned embodiments are provided for the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A 3D image display method, characterized in that: The method comprises: Determining crosstalk compensation data based on first viewpoint image data and a crosstalk ratio, wherein the crosstalk ratio represents a degree of crosstalk of the first viewpoint image to the second viewpoint image, and the first viewpoint image data is data of the first viewpoint image; Based on the crosstalk compensation data, crosstalk compensation is performed on second viewpoint image data to eliminate crosstalk caused by the first viewpoint image on the second viewpoint image, the second viewpoint image data being data of the second viewpoint image; Based on the crosstalk compensated second viewpoint image data, a crosstalk compensated second viewpoint image is displayed on a naked-eye 3D screen.
2. The method according to claim 1, characterized in that The determining of the crosstalk compensation data based on the first viewpoint image data and the crosstalk rate includes: Determine the product of the first viewpoint image data and the crosstalk rate to obtain crosstalk image data; Based on the crosstalk image data, the crosstalk compensation data is determined.
3. The method according to claim 2, characterized in that The determining the crosstalk compensation data based on the crosstalk image data comprises: Determine a maximum value in the crosstalk image data to obtain a maximum crosstalk value; The difference between the maximum crosstalk value and the crosstalk image data is determined to obtain the crosstalk compensation data.
4. The method according to claim 1, characterized in that The performing crosstalk compensation on the second viewpoint image data based on the crosstalk compensation data comprises: The second viewpoint image data is added to the crosstalk compensation data to obtain the second viewpoint image data after the crosstalk compensation.
5. The method according to any one of claims 1 to 4, characterized in that: Before determining the crosstalk compensation data based on the first viewpoint image data and the crosstalk rate, the method further includes: Based on the RGB value of each pixel in the first viewpoint image, a brightness value of each pixel in the first viewpoint image is determined to obtain the first viewpoint image data.
6. The method according to claim 5, characterized in that The crosstalk-compensated second viewpoint image data includes a crosstalk-compensated brightness value of each pixel in the second viewpoint image; The method of displaying the second viewpoint image after crosstalk compensation on the naked-eye 3D screen based on the second viewpoint image data after crosstalk compensation comprises: Determine a crosstalk-compensated RGB value of each pixel in the second viewpoint image based on the crosstalk-compensated luminance value of each pixel in the second viewpoint image; The crosstalk-compensated second viewpoint image is displayed according to the crosstalk-compensated RGB value of each pixel in the second viewpoint image.
7. A 3D image display device, characterized in that: The device comprises: a crosstalk determination module, configured to determine crosstalk compensation data based on first viewpoint image data and a crosstalk ratio, wherein the crosstalk ratio represents a degree of crosstalk of the first viewpoint image to the second viewpoint image, and the first viewpoint image data is data of the first viewpoint image; a crosstalk compensation module, configured to perform crosstalk compensation on second viewpoint image data based on the crosstalk compensation data, so as to eliminate crosstalk of the first viewpoint image on the second viewpoint image, wherein the second viewpoint image data is data of the second viewpoint image; The display module is used to display the first viewpoint image corresponding to the first viewpoint image data on a naked-eye 3D screen, and to display the crosstalk-compensated second viewpoint image corresponding to the crosstalk-compensated second viewpoint image data.
8. A display device, characterized in that: The display device includes a naked-eye 3D screen, a processor and a memory; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
10. A computer program product, characterized in that The computer program product stores computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.
