Spliced screen display method and device for eliminating chromatic aberration, electronic equipment and storage medium
The image of the splicing screen is obtained through the camera, the white balance coefficient is calculated and the calibration gain grid is established, and the splicing screen is compensated in real time, which solves the color difference problem of splicing screen, reduces costs and improves calibration efficiency and effect consistency.
Patent Information
- Application Number
- CN202411276830.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2024-11-08
AI Technical Summary
The color difference problem between the sub-screens of the spliced screen is difficult to completely eliminate the existing technology due to the differences in materials and process, resulting in poor display effects, and the existing binning and calibration methods are costly and inefficient.
The camera obtains the display image of the splicing screen, divides the molecular graph area, calculates the white balance coefficient of each area, establishes a calibration gain grid, performs gain compensation for each pixel point, realizes real-time color value adjustment, and avoids boxing and repeated calibration. .
Reduces costs, improves calibration speed and consistency, ensures delicate color transitions between adjacent sub-screens, and avoids artificial subjective influence.
Smart Images

Figure CN118918814A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of splicing screen display, and in particular relates to a splicing screen display method, device, electronic equipment and storage medium for eliminating color difference. Background Art
[0002] A spliced screen is a display device that splices multiple sub-screens together to form a large screen. It is widely used in many fields such as public safety, environmental protection, emergency command, and safe production.
[0003] Due to the limitations of materials and processes, the luminous characteristics of each sub-screen of the spliced screen cannot be completely consistent. Technical parameters including brightness, color temperature, contrast, etc. will fluctuate within a certain range, causing color differences on adjacent sub-screens and affecting the display effect, especially at the boundaries of adjacent sub-screens, where the color difference will be more obvious.
[0004] In theory, the color difference between screens cannot be completely eliminated. In practice, existing technology will select sub-screen models with good consistency. In the manufacturing process, in order to improve the consistency of sub-screens, some manufacturers will enable a binning mechanism, that is, screen the finished products according to the luminous characteristics, and group several screens with similar luminous characteristics for shipment. These measures will increase the cost of the product. After the product leaves the factory, the luminous characteristics will gradually change over time, so binning at the production line stage cannot solve all problems.
[0005] During the service life of the product, it is necessary to regularly recalibrate the parameters of each sub-screen to alleviate the color difference. During calibration, it is often necessary to repeatedly adjust the parameters of each sub-screen until the effects of all sub-screens are consistent. The whole process is time-consuming and labor-intensive, and the time cost is high. Among them, the scope of the parameters is global, that is, it is effective for all pixels of a sub-screen, and each sub-screen may have four adjacent sub-screens (neighbors) above, below, left, and right. Different neighbors may have opposite requirements for the direction of parameter adjustment. The global parameters cannot be taken into account, and the color transition between screens is not ideal. At the same time, the evaluation of the calibration effect by the above calibration method is often based on subjective impressions. If implemented by different people, the final effect is often different. Summary of the invention
[0006] Based on this, in order to solve the above technical problems, a splicing screen display method, device, electronic device and storage medium for eliminating color difference are provided.
[0007] The technical solution adopted by the present invention is as follows:
[0008] As a first aspect of the present invention, a spliced screen display method for eliminating chromatic aberration is provided, characterized by comprising:
[0009] S101, acquiring a display image of the spliced screen through a camera, wherein the spliced screen has M*N sub-screens, and the spliced screen keeps displaying a standard color image until its light-emitting elements are thermally stable, and then the camera takes a picture of the front of the spliced screen;
[0010] S102, dividing the displayed image into M*N sub-images corresponding to the M*N sub-screens one by one and having the same size, and dividing each sub-image into m*n sub-regions of the same size, wherein M, N, m and n are all greater than or equal to 2;
[0011] S103, calculating the color average of each pixel of the displayed image, and normalizing it based on the green channel value to obtain the global color average, calculating the color average of each pixel of each sub-region, and normalizing it based on the green channel value to obtain the local color average of each sub-region, and dividing the local color average of each sub-region by the global color average to obtain a white balance coefficient of each sub-region;
[0012] S104, taking the center point of each sub-region as a vertex, taking four adjacent vertices as grid vertices, establishing multiple calibration gain grids, and taking the white balance coefficient of the sub-region where each grid vertex is located as the gain coefficient of the corresponding grid vertex;
[0013] S105, performing gain compensation on the color value of each pixel of the image to be displayed to obtain an output color value of each pixel:
[0014] Based on the multiple calibration gain grids, determining a target grid where a current pixel point is located;
[0015] Based on the coordinates of the current pixel point, the gain coefficients of the four grid vertices of the target grid are interpolated to obtain the target gain coefficient of the current pixel point;
[0016] Multiply the target gain coefficient by the color value of the current pixel to obtain the output color value of the current pixel;
[0017] S106: Display the image to be displayed according to the output color value of each pixel of the image to be displayed.
[0018] As a second aspect of the present invention, a spliced screen display device for eliminating chromatic aberration is provided, characterized in that it comprises:
[0019] The first module is used to obtain the display image of the spliced screen through a camera, wherein the spliced screen has M*N sub-screens, and the spliced screen keeps displaying the standard color image until the light-emitting element thereof is thermally stable, and then the camera takes a picture of the front of the spliced screen;
[0020] The second module is used to divide the displayed image into M*N sub-images corresponding to the M*N sub-screens one by one and of the same size, and divide each sub-image into m*n sub-regions of the same size, wherein M, N, m and n are all greater than or equal to 2;
[0021] The third module is used to calculate the color average value of each pixel of the displayed image, and normalize it based on the green channel value as the global color average value, calculate the color average value of each pixel of each sub-region, and normalize it based on the green channel value as the local color average value of each sub-region, and divide the local color average value of each sub-region by the global color average value to obtain the white balance coefficient of each sub-region;
[0022] The fourth module is used to use the center point of each sub-area as a vertex, and the four adjacent vertices as mesh vertices to establish multiple calibration gain meshes, and use the white balance coefficient of the sub-area where each mesh vertex is located as the gain coefficient of the corresponding mesh vertex;
[0023] The fifth module is used to perform gain compensation on the color value of each pixel of the image to be displayed to obtain the output color value of each pixel:
[0024] Based on the multiple calibration gain grids, determining a target grid where a current pixel point is located;
[0025] Based on the coordinates of the current pixel point, the gain coefficients of the four grid vertices of the target grid are interpolated to obtain the target gain coefficient of the current pixel point;
[0026] Multiply the target gain coefficient by the color value of the current pixel to obtain the output color value of the current pixel;
[0027] The sixth module is used to display the image to be displayed according to the output color value of each pixel of the image to be displayed.
[0028] As a third aspect of the present invention, an electronic device is provided, characterized in that it includes a storage module, the storage module includes instructions loaded and executed by a processor, and when the instructions are executed, the processor executes a spliced screen display method for eliminating color difference according to the first aspect above.
[0029] As a fourth aspect of the present invention, a computer-readable storage medium is provided, which stores one or more programs, and is characterized in that when the one or more programs are executed by a processor, a spliced screen display method for eliminating color difference according to the first aspect is implemented.
[0030] The present invention provides a splicing screen display method for eliminating chromatic aberration. Before the splicing screen displays the image, the color value of each pixel of the image is compensated in real time using calibration data (gain coefficients of each vertex of a gain grid), thereby avoiding binning in the production and manufacturing process in the prior art, which not only reduces costs but also achieves the same or even better effect. The calibration speed is fast and does not require repeated iterations. During calibration, a plurality of sub-regions of the same size are first divided on the sub-image, and a white balance coefficient is calculated for each sub-region, so that each pixel has corresponding exclusive calibration data, making the color transition between adjacent sub-screens more delicate. At the same time, the method will not be limited by human subjective impressions, and the consistency of the final effect can be guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments:
[0032] Figure 1 A flow chart of a spliced screen display method for eliminating color difference provided by an embodiment of the present invention;
[0033] Figure 2 A schematic diagram of a spliced screen display device for eliminating chromatic aberration provided by an embodiment of the present invention;
[0034] Figure 3 A schematic diagram of an electronic device provided by an embodiment of the present invention;
[0035] Figure 4 It is a schematic diagram of a calibration gain grid on a display image of a spliced screen according to an embodiment of the present invention;
[0036] Figure 5 This is a schematic diagram of a method for determining a target grid where a current pixel point is located on an image to be displayed according to an embodiment of the present invention. DETAILED DESCRIPTION
[0037] The following will illustrate the implementation methods of the present invention in conjunction with the drawings in the specification. It should be noted that the implementation methods involved in this specification are not exhaustive and do not represent the only implementation methods of the present invention. The following corresponding embodiments are only for the purpose of clearly illustrating the invention content of the patent of the present invention, and are not intended to limit its implementation methods. For ordinary technicians in this field, different forms of changes and modifications can be made on the basis of the description of this embodiment. All obvious changes or modifications that belong to the technical concept and invention content of the present invention are also within the scope of protection of the present invention.
[0038] like Figure 1 As shown, the embodiment of the present application provides a spliced screen display method for eliminating color difference, and the specific process is as follows:
[0039] S101. Acquire a display image of the spliced screen through a camera.
[0040] Among them, the spliced screen has M*N sub-screens. The spliced screen keeps displaying the standard color image until its light-emitting elements are thermally stable, and then the camera shoots the front of the spliced screen, wherein M and N are both greater than or equal to 2, and generally M and N are equal.
[0041] In this embodiment, a red, green, and blue (RGB) color model is used, and the values of the three color channels of red, green, and blue can all be set to 200 as the standard color. The spliced screen keeps displaying the standard color image for 30 minutes to make its light-emitting elements thermally stable.
[0042] In practical applications, the sampled image directly obtained from the camera may not be a standard rectangle, and there may be irrelevant background pixels in it, so the sampled image needs to be preprocessed. The specific process is as follows:
[0043] S11, performing geometric distortion correction on the sampled image from the camera to obtain a corrected image.
[0044] S12, taking at least 9 point pairs on the sampled image and the corrected image, and determining the perspective transformation matrix according to the at least 9 point pairs:
[0045] Each point is represented by a homogeneous vector (x, y, 1). The points on the sampled image constitute a 3*n matrix S, and the points on the corrected image constitute a 3*n matrix T. Let the perspective transformation matrix be M (3x3 matrix, containing 8 unknown parameters), and T=M*S. Let S' represent the transposed matrix of S, and i nv() represent the matrix inversion operation, then M=(T*S')*i nv(S*S').
[0046] S13. Perform perspective transformation on the sampled image according to the perspective transformation matrix, so that the transformed image appears as a standard rectangle.
[0047] S14, cropping the image after perspective transformation to remove background pixels, and obtaining a display image of the spliced screen.
[0048] S102 , dividing the display image into M*N sub-images corresponding to the M*N sub-screens one by one and having the same size, and dividing each sub-image into m*n sub-regions having the same size.
[0049] Among them, m and n are both greater than or equal to 2, and generally m and n are equal.
[0050] S103. Calculate the color average value of each pixel of the displayed image, and normalize it based on the green channel value as the global color average value (R, 1, B). Calculate the color average value of each pixel of each sub-region, and normalize it based on the green channel value as the local color average value (r, 1, b) of each sub-region. Divide the local color average value of each sub-region by the global color average value to obtain the white balance coefficient of each sub-region (r / R, 1, b / B).
[0051] Taking the color average value (200, 10, 100) as an example, normalization based on the green channel value yields (200 / 10, 10 / 10, 100 / 10) = (20, 1, 10).
[0052] S104, taking the center point of each sub-region as a vertex and four adjacent vertices as mesh vertices, establishing multiple calibration gain meshes, and taking the white balance coefficient of the sub-region where each mesh vertex is located as the gain coefficient of the corresponding mesh vertex.
[0053] like Figure 4 As shown, it is assumed that the spliced screen has 3*3 sub-screens, and its displayed image has 9 sub-images. Each sub-image has 3*3 sub-areas, with a total of 81 center points. Four adjacent points constitute a calibration gain grid, and a total of 64 calibration gain grids. Figure 4 Nine center points (ai) are shown in FIG, which constitute four calibration gain grids.
[0054] S105, traverse the pixel points of the image to be displayed in the raster scan order (from top to bottom, from left to right), perform gain compensation on the color value of each pixel point, and obtain the output color value of each pixel point:
[0055] S51, based on multiple calibration gain grids, determining the target grid where the current pixel point is located, specifically there are the following three scenarios:
[0056] Scenario 1: If the current pixel is located in the calibration gain grid, the calibration gain grid where it is located is used as the target grid.
[0057] like Figure 5 As shown, if the current pixel point D1 is located in the calibration gain grid composed of four points degh, the calibration gain grid is used as the target grid.
[0058] Scenario 2: If the current pixel is not in any calibration gain grid and there are two grid vertices adjacent to it on the nearest calibration gain grid, a grid with the same size as the calibration gain grid and surrounding the current pixel is generated as the target grid.
[0059] The two grid vertices adjacent to the current pixel point on the nearest calibration gain grid are two grid vertices of the target grid, and the gain coefficients of the two grid vertices are respectively used as the gain coefficients of the other two grid vertices of the target grid.
[0060] like Figure 5 As shown, if the current pixel point D2 is not in any calibration gain grid, the calibration gain grid composed of the four points degh is closest to the current pixel point D2, and the calibration gain grid has two grid vertices g and h adjacent to the current pixel point D2, then a grid with the same size as the calibration gain grid and surrounding the current pixel point D2 is generated as the target grid, and the four grid vertices of the target grid are g, h, g1 and h1, the gain coefficient of the grid vertex g is used as the gain coefficient of the grid vertex g1, and the gain coefficient of the grid vertex h is used as the gain coefficient of the grid vertex h1.
[0061] Scenario 3: If the current pixel is not in any calibration gain grid and there is only one grid vertex adjacent to it on the nearest calibration gain grid, a grid with the same size as the calibration gain grid and surrounding the current pixel is generated as the target grid.
[0062] The grid vertex adjacent to the current pixel point on the nearest calibration gain grid is a grid vertex of the target grid, and the gain coefficient of the grid vertex is used as the gain coefficients of the other three grid vertices of the target grid.
[0063] like Figure 5 As shown, if the current pixel point D3 is not in any calibration gain grid, the calibration gain grid composed of the four points degh is closest to the current pixel point D3, and the calibration gain grid has only one grid vertex g adjacent to the current pixel point D3, then a grid with the same size as the calibration gain grid and surrounding the current pixel point D3 is generated as the target grid, and the four grid vertices of the target grid are g, g1, g2 and g3, and the gain coefficient of the grid vertex g is used as the gain coefficient of the grid vertices g1, g2 and g3.
[0064] S52 . Based on the coordinates of the current pixel point, a bilinear interpolation method is used to interpolate the gain coefficients of the four mesh vertices of the target mesh to obtain a target gain coefficient of the current pixel point.
[0065] Among them, you can also use nearest neighbor interpolation, which is not as effective as bilinear interpolation, or use cubic interpolation, which is worse than bilinear interpolation but requires more calculation.
[0066] S53: Multiply the target gain coefficient by the color value of the current pixel to obtain the output color value of the current pixel.
[0067] If the output color value is greater than 255, 255 is used as the output color value. For example, if the color value of the current pixel is (80, 80, 250), and the target gain coefficient is (1, 1, 1.1), the blue channel color value 250 multiplied by 1.1 is 275, which is greater than 255. The blue channel color value of the current pixel is 255, and the color values of the other two channels are not greater than 255, so the final output color value is (80, 80, 255).
[0068] S106 , displaying the image to be displayed according to the output color value of each pixel of the image to be displayed.
[0069] As can be seen from the above, the embodiment of the present application provides a splicing screen display method for eliminating color difference. Before the splicing screen displays the image, it uses calibration data (gain coefficients of each vertex of the gain grid) to compensate the color value of each pixel of the image in real time, avoiding the binning in the production and manufacturing process in the prior art, which not only reduces the cost, but also achieves the same or even better effect; its calibration speed is fast and does not require repeated iterations. During calibration, multiple sub-areas of the same size are first divided on the sub-image, and the white balance coefficient is calculated for each sub-area, so that each pixel has corresponding exclusive calibration data, making the color transition between adjacent sub-screens more delicate; at the same time, it will not be limited by human subjective impressions, and can ensure the consistency of the final effect.
[0070] The following will describe in detail one or more embodiments of the spliced screen display device for eliminating chromatic aberration. Those skilled in the art will appreciate that these display devices can be configured using commercially available hardware components through the steps taught in this solution. Figure 2 A spliced screen display device for eliminating color difference provided by an embodiment of the present invention is shown. Figure 2 As shown, the display device includes a first module 11 , a first module 12 , a third module 13 , a fourth module 14 , a fifth module 15 and a fifth module 16 .
[0071] The first module 11 is used to obtain the display image of the spliced screen through a camera.
[0072] Among them, the spliced screen has M*N sub-screens. The spliced screen keeps displaying the standard color image until its light-emitting elements are thermally stable, and then the camera shoots the front of the spliced screen, wherein M and N are both greater than or equal to 2, and generally M and N are equal.
[0073] In this embodiment, a red, green, and blue (RGB) color model is used, and the values of the three color channels of red, green, and blue can all be set to 200 as the standard color. The spliced screen keeps displaying the standard color image for 30 minutes to make its light-emitting elements thermally stable.
[0074] In practical applications, the sampled image directly obtained from the camera may not be a standard rectangle, and there may be irrelevant background pixels in it, so the sampled image needs to be preprocessed. The specific process is as follows:
[0075] S11, performing geometric distortion correction on the sampled image from the camera to obtain a corrected image.
[0076] S12, taking at least 9 point pairs on the sampled image and the corrected image, and determining the perspective transformation matrix according to the at least 9 point pairs:
[0077] Each point is represented by a homogeneous vector (x, y, 1). The points on the sampled image constitute a 3*n matrix S, and the points on the corrected image constitute a 3*n matrix T. Let the perspective transformation matrix be M (3x3 matrix, containing 8 unknown parameters), and T=M*S. Let S' represent the transposed matrix of S, and i nv() represent the matrix inversion operation, then M=(T*S')*i nv(S*S').
[0078] S13. Perform perspective transformation on the sampled image according to the perspective transformation matrix, so that the transformed image appears as a standard rectangle.
[0079] S14, cropping the image after perspective transformation to remove background pixels, and obtaining a display image of the spliced screen.
[0080] The second module 12 is used to divide the displayed image into M*N sub-images corresponding to the M*N sub-screens one by one and of the same size, and divide each sub-image into m*n sub-areas of the same size.
[0081] Among them, m and n are both greater than or equal to 2, and generally m and n are equal.
[0082] The third module 13 is used to calculate the color average value of each pixel of the displayed image and normalize it based on the green channel value as the global color average value (R, 1, B), calculate the color average value of each pixel of each sub-area and normalize it based on the green channel value as the local color average value (r, 1, b) of each sub-area, and divide the local color average value of each sub-area by the global color average value to obtain the white balance coefficient of each sub-area (r / R, 1, b / B).
[0083] Taking the color average value (200, 10, 100) as an example, normalization based on the green channel value yields (200 / 10, 10 / 10, 100 / 10) = (20, 1, 10).
[0084] The fourth module 14 is used to use the center point of each sub-region as a vertex and four adjacent vertices as grid vertices to establish multiple calibration gain grids, and use the white balance coefficient of the sub-region where each grid vertex is located as the gain coefficient of the corresponding grid vertex.
[0085] Assume that the spliced screen has 3*3 sub-screens, and its displayed image has 9 sub-images. Each sub-image has 3*3 sub-areas, with a total of 81 center points. Four adjacent points form a calibration gain grid, with a total of 64 calibration gain grids. Figure 4 Nine center points (ai) are shown in FIG, which constitute four calibration gain grids.
[0086] The fifth module 15 is used to traverse the pixels of the image to be displayed in the raster scan order (from top to bottom, from left to right), perform gain compensation on the color value of each pixel, and obtain the output color value of each pixel:
[0087] S51, based on multiple calibration gain grids, determining the target grid where the current pixel point is located, specifically there are the following three scenarios:
[0088] Scenario 1: If the current pixel is located in the calibration gain grid, the calibration gain grid where it is located is used as the target grid.
[0089] like Figure 5 As shown, if the current pixel point D1 is located in the calibration gain grid composed of four points degh, the calibration gain grid is used as the target grid.
[0090] Scenario 2: If the current pixel is not in any calibration gain grid and there are two grid vertices adjacent to it on the nearest calibration gain grid, a grid with the same size as the calibration gain grid and surrounding the current pixel is generated as the target grid.
[0091] The two grid vertices adjacent to the current pixel point on the nearest calibration gain grid are two grid vertices of the target grid, and the gain coefficients of the two grid vertices are respectively used as the gain coefficients of the other two grid vertices of the target grid.
[0092] like Figure 5 As shown, if the current pixel point D2 is not in any calibration gain grid, the calibration gain grid composed of the four points degh is closest to the current pixel point D2, and the calibration gain grid has two grid vertices g and h adjacent to the current pixel point D2, then a grid with the same size as the calibration gain grid and surrounding the current pixel point D2 is generated as the target grid, and the four grid vertices of the target grid are g, h, g1 and h1, the gain coefficient of the grid vertex g is used as the gain coefficient of the grid vertex g1, and the gain coefficient of the grid vertex h is used as the gain coefficient of the grid vertex h1.
[0093] Scenario 3: If the current pixel is not in any calibration gain grid and there is only one grid vertex adjacent to it on the nearest calibration gain grid, a grid with the same size as the calibration gain grid and surrounding the current pixel is generated as the target grid.
[0094] The grid vertex adjacent to the current pixel point on the nearest calibration gain grid is a grid vertex of the target grid, and the gain coefficient of the grid vertex is used as the gain coefficients of the other three grid vertices of the target grid.
[0095] like Figure 5 As shown, if the current pixel point D3 is not in any calibration gain grid, the calibration gain grid composed of the four points degh is closest to the current pixel point D3, and the calibration gain grid has only one grid vertex g adjacent to the current pixel point D3, then a grid with the same size as the calibration gain grid and surrounding the current pixel point D3 is generated as the target grid, and the four grid vertices of the target grid are g, g1, g2 and g3, and the gain coefficient of the grid vertex g is used as the gain coefficient of the grid vertices g1, g2 and g3.
[0096] S52 . Based on the coordinates of the current pixel point, a bilinear interpolation method is used to interpolate the gain coefficients of the four mesh vertices of the target mesh to obtain a target gain coefficient of the current pixel point.
[0097] Among them, you can also use nearest neighbor interpolation, which is not as effective as bilinear interpolation, or use cubic interpolation, which is worse than bilinear interpolation but requires more calculation.
[0098] S53: Multiply the target gain coefficient by the color value of the current pixel to obtain the output color value of the current pixel.
[0099] If the output color value is greater than 255, 255 is used as the output color value. For example, if the color value of the current pixel is (80, 80, 250), and the target gain coefficient is (1, 1, 1.1), the blue channel color value 250 multiplied by 1.1 is 275, which is greater than 255. The blue channel color value of the current pixel is 255, and the color values of the other two channels are not greater than 255, so the final output color value is (80, 80, 255).
[0100] The sixth module 16 is used to display the image to be displayed according to the output color value of each pixel of the image to be displayed.
[0101] In summary, the spliced screen display device for eliminating chromatic aberration provided in the above embodiments can execute the spliced screen display method for eliminating chromatic aberration provided in the above embodiments.
[0102] The same as above concept, Figure 2The structure of the spliced screen display device for eliminating color difference can be realized as an electronic device. Figure 3 A schematic block diagram of the structure of an electronic device provided by an embodiment of the present invention is shown.
[0103] Exemplarily, the electronic device includes a storage module 21 and a processor 22, the storage module 21 includes instructions loaded and executed by the processor 22, and when the instructions are executed, the processor 22 executes the steps of various exemplary embodiments of the present invention described in the above-mentioned splicing screen display method for eliminating color difference in this specification.
[0104] It should be understood that the processor 22 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors, or a plurality of other processors.
[0105] (Digital Signal Processor, DSP), Application Specific Integrated Circuit
[0106] (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0107] A computer-readable storage medium is also provided in an embodiment of the present invention, which stores one or more programs. When the one or more programs are executed by a processor, the steps of various exemplary embodiments of the present invention described in the above-mentioned splicing screen display method for eliminating color difference are implemented.
[0108] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware implementation, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable storage medium, which may include a computer-readable storage medium (or a non-transitory medium) and a communication medium (or a temporary medium).
[0109] As is known to those of ordinary skill in the art, the term computer-readable storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer-readable storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. In addition, it is known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery medium.
[0110] Exemplarily, the computer-readable storage medium may be an internal storage unit of the electronic device of the aforementioned embodiment, such as a hard disk or memory of the electronic device. The computer-readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart memory card (SmartMed i aCard, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. equipped on the electronic device.
[0111] The electronic device and computer-readable storage medium provided by the aforementioned embodiments use calibration data (gain coefficients of each vertex of the gain grid) to perform real-time compensation for the color value of each pixel of the image before the spliced screen displays the image, thereby avoiding binning in the production and manufacturing process in the prior art, which not only reduces costs but also achieves the same or even better effect. The calibration speed is fast and does not require repeated iterations. During calibration, multiple sub-areas of the same size are first divided on the sub-image, and the white balance coefficient is calculated for each sub-area, so that each pixel has corresponding exclusive calibration data, making the color transition between adjacent sub-screens more delicate. At the same time, it will not be limited by human subjective impressions and can ensure the consistency of the final effect.
[0112] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A splicing screen display method for eliminating color difference, characterized in that: include: S101, acquiring a display image of the spliced screen through a camera, wherein the spliced screen has M*N sub-screens, and the spliced screen keeps displaying a standard color image until its light-emitting elements are thermally stable, and then the camera takes a picture of the front of the spliced screen; S102, dividing the displayed image into M*N sub-images corresponding to the M*N sub-screens one by one and having the same size, and dividing each sub-image into m*n sub-regions of the same size, wherein M, N, m and n are all greater than or equal to 2; S103, calculating the color average of each pixel of the displayed image, and normalizing it based on the green channel value to obtain the global color average, calculating the color average of each pixel of each sub-region, and normalizing it based on the green channel value to obtain the local color average of each sub-region, and dividing the local color average of each sub-region by the global color average to obtain a white balance coefficient of each sub-region; S104, taking the center point of each sub-region as a vertex, taking four adjacent vertices as grid vertices, establishing multiple calibration gain grids, and taking the white balance coefficient of the sub-region where each grid vertex is located as the gain coefficient of the corresponding grid vertex; S105, performing gain compensation on the color value of each pixel of the image to be displayed to obtain an output color value of each pixel: Based on the multiple calibration gain grids, determining a target grid where a current pixel point is located; Based on the coordinates of the current pixel point, the gain coefficients of the four grid vertices of the target grid are interpolated to obtain the target gain coefficient of the current pixel point; Multiply the target gain coefficient by the color value of the current pixel to obtain the output color value of the current pixel; S106: Display the image to be displayed according to the output color value of each pixel of the image to be displayed.
2. A method for displaying a spliced screen to eliminate color difference according to claim 1, characterized in that: The S101 further comprises: Performing geometric distortion correction on the sampled image from the camera to obtain a corrected image; Taking at least 9 point pairs on the sampled image and the corrected image, and determining a perspective transformation matrix according to the at least 9 point pairs; Performing perspective transformation on the sampled image according to the perspective transformation matrix; The perspective-transformed image is cropped to remove background pixels, thereby obtaining a display image of the spliced screen.
3. A method for displaying a spliced screen to eliminate color difference according to claim 1, characterized in that: The step of determining a target grid where a current pixel point is located based on the multiple calibration gain grids further includes: If the current pixel point is located in the calibration gain grid, the calibration gain grid where it is located is used as the target grid; If the current pixel is not in any calibration gain grid and there are two grid vertices adjacent to it on the nearest calibration gain grid, a grid with the same size as the calibration gain grid and surrounding the current pixel is generated as the target grid, and the two grid vertices adjacent to the current pixel on the nearest calibration gain grid are the two grid vertices of the target grid, and the gain coefficients of the two grid vertices are respectively used as the gain coefficients of the other two grid vertices of the target grid; If the current pixel point is not in any calibrated gain grid and there is only one grid vertex adjacent to it on the nearest calibrated gain grid, then a grid with the same size as the calibrated gain grid and surrounding the current pixel point is generated as the target grid, and the grid vertex adjacent to the current pixel point on the nearest calibrated gain grid is a grid vertex of the target grid, and the gain coefficient of the grid vertex is used as the gain coefficient of the other three grid vertices of the target grid.
4. The method for displaying a spliced screen to eliminate color difference according to claim 1, characterized in that: The interpolation processing of the gain coefficients of the four mesh vertices of the target mesh further includes: Bilinear interpolation is used for interpolation.
5. The method for displaying a spliced screen to eliminate color difference according to claim 1, characterized in that: The S105 further comprises: The pixels of the image to be displayed are traversed in a raster scan order, and gain compensation is performed on the color values of the pixels to obtain output color values of the pixels.
6. The method for displaying a spliced screen to eliminate color difference according to claim 1, characterized in that: The step of multiplying the target gain coefficient by the color value of the current pixel to obtain the output color value of the current pixel further includes: If the output color value is greater than 255, 255 is used as the output color value.
7. The method for displaying a spliced screen to eliminate color difference according to claim 1, characterized in that: The standard color is that the values of the three color channels of red, green and blue are all 200.
8. A spliced screen display device for eliminating color difference, characterized in that: include: The first module is used to obtain the display image of the spliced screen through a camera, wherein the spliced screen has M*N sub-screens, and the spliced screen keeps displaying the standard color image until the light-emitting element thereof is thermally stable, and then the camera takes a picture of the front of the spliced screen; The second module is used to divide the displayed image into M*N sub-images corresponding to the M*N sub-screens one by one and of the same size, and divide each sub-image into m*n sub-regions of the same size, wherein M, N, m and n are all greater than or equal to 2; The third module is used to calculate the color average value of each pixel of the displayed image, and normalize it based on the green channel value as the global color average value, calculate the color average value of each pixel of each sub-region, and normalize it based on the green channel value as the local color average value of each sub-region, and divide the local color average value of each sub-region by the global color average value to obtain the white balance coefficient of each sub-region; The fourth module is used to use the center point of each sub-area as a vertex, and the four adjacent vertices as mesh vertices to establish multiple calibration gain meshes, and use the white balance coefficient of the sub-area where each mesh vertex is located as the gain coefficient of the corresponding mesh vertex; The fifth module is used to perform gain compensation on the color value of each pixel of the image to be displayed to obtain the output color value of each pixel: Based on the multiple calibration gain grids, determining a target grid where a current pixel point is located; Based on the coordinates of the current pixel point, the gain coefficients of the four grid vertices of the target grid are interpolated to obtain the target gain coefficient of the current pixel point; Multiply the target gain coefficient by the color value of the current pixel to obtain the output color value of the current pixel; The sixth module is used to display the image to be displayed according to the output color value of each pixel of the image to be displayed.
9. An electronic device, characterized in that: It comprises a storage module, the storage module comprises instructions loaded and executed by a processor, and when the instructions are executed, the processor executes a spliced screen display method for eliminating color difference according to any one of claims 1 to 7.
10. A computer-readable storage medium storing one or more programs, characterized in that: When the one or more programs are executed by the processor, a spliced screen display method for eliminating color difference as described in any one of claims 1 to 7 is implemented.
