LED screen coefficient correction method, device and equipment

Through image acquisition and light point positioning algorithms, the brightness unevenness problem caused by improper arrangement of light points on LED displays is solved, and more accurate brightness correction and uniformity are achieved, improving user experience.

CN115035847BActive Publication Date: 2024-12-06SHANGHAI JINGJING INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210822797.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-12
Publication Date
2024-12-06
Estimated Expiration
2042-07-12

AI Technical Summary

Technical Problem

The existing LED display screens cannot be arranged strictly in the ideal shape, resulting in the coordinates of the acquired light points that are not accurate enough, which in turn leads to the inaccurate brightness correction results that cannot meet the user's visual needs.

Method used

The image acquisition device is used to collect the base color image of the LED display screen, extract the center coordinates of the lamp point through preprocessing, and initially position the top angle lamp point using the lamp point positioning algorithm, judge and reposition the fault lamp point, perform tilt correction, and calculate based on the brightness value. The target correction brightness value is used for brightness coefficient correction.

Benefits of technology

It improves the accuracy and brightness uniformity of lamp point positioning, and meets users' visual needs for display brightness uniformity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115035847B_ABST
    Figure CN115035847B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device and equipment for correcting coefficients of an LED screen, the method comprising: collecting primary color images; preprocessing each primary color image; preliminarily locating four vertex light points in the same primary color image according to the central coordinates of each light point in each primary color image, judging whether there is a faulty light point among the four vertex light points, and if so, relocating the four vertex light points; performing tilt correction on the primary color image based on the positioning result; calculating a target correction brightness value according to the brightness values ​​of all light points in the same primary color image, and transmitting the target correction brightness value to the LED display screen for brightness coefficient correction. Thus, the accuracy of primary color image positioning is improved, and brightness coefficient correction can be performed based on correct image information, thereby improving the brightness uniformity of the corrected LED display screen.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of LED screen coefficient correction, and specifically relates to a method, device and equipment for LED screen coefficient correction. Background Art

[0002] LED display screens have the advantages of clear images, bright colors, good stability, high brightness, high light efficiency, long life and low power consumption. In addition, LED display screens are not limited by space and can be designed according to user requirements to represent text, patterns and images. Due to manufacturing processes and other reasons, the characteristics of LEDs are very different, which is specifically manifested in the 20% difference in brightness of LED light points, that is, there is a 20% difference in the three channels of red, green and blue, resulting in inconsistent brightness, which seriously affects the display quality. In order to overcome the problem of non-uniform brightness of LED display screens, point-by-point correction technology came into being to improve the uniformity of LED display screens and improve display quality.

[0003] At present, the LED display industry mainly deals with LED display screens with brightness differences by using cameras and other measuring equipment combined with a point-by-point correction system to correct the display screen to eliminate the brightness differences between LED light points and achieve a high degree of uniformity in the brightness and color of the display screen. However, due to distortion, image tilt and other reasons, the image acquired by the camera cannot guarantee that the light points in the image are strictly arranged and distributed in the ideal shape, resulting in inaccurate coordinates of the light points, which in turn leads to inaccurate brightness correction results that cannot meet the user's visual needs.

[0004] Based on the above, the present invention urgently needs to propose an effective solution to solve the above problems. Summary of the invention

[0005] The purpose of the present invention is to provide a method, device and equipment for LED screen coefficient correction, so as to solve the technical problem in the prior art that the light points in the image cannot be arranged and distributed strictly according to the ideal shape, resulting in the acquired light point coordinates being inaccurate, and then resulting in the brightness correction result being inaccurate and unable to meet the user's visual needs.

[0006] In order to achieve the above object, the present invention adopts the following technical solutions:

[0007] In a first aspect, the present invention provides a method for correcting a coefficient of an LED screen, comprising:

[0008] The three primary color images of the LED display screen are acquired by using an image acquisition device, wherein the primary color images include a red image, a green image and a blue image;

[0009] Preprocessing each primary color image to extract the center coordinates of each light point in each primary color image;

[0010] According to the center coordinates of each lamp point in each base color image, the four corner lamp points in the same base color image are preliminarily located using the lamp point location algorithm to determine whether there is a faulty lamp point among the four corner lamp points. If so, the four corner lamp points are relocated;

[0011] Perform tilt correction on the base color image based on the positioning result;

[0012] The target correction brightness value is calculated according to the brightness values ​​of all light points in the same primary color image, and the target correction brightness value is transmitted to the LED display screen for brightness coefficient correction.

[0013] In one possible design, after transmitting the target correction brightness value to the LED display screen for brightness coefficient correction, the method further includes:

[0014] Detect the brightness uniformity of the current LED display.

[0015] In a possible design, the three primary color images of the LED display screen are acquired by using an image acquisition device, including:

[0016] The LED display screen is controlled to display red, green and blue respectively, and the brightness of the display screen is adjusted to the maximum. The red image, green image and blue image are collected respectively by using a CCD camera.

[0017] In a possible design, each primary color image is preprocessed to extract the center coordinates of each light point in each primary color image, including:

[0018] Each primary color image is converted into a grayscale image using a color-to-grayscale algorithm, and the average grayscale value of some pixels in the non-image point area of ​​the grayscale image is extracted;

[0019] Binarization is performed on the grayscale image: the grayscale values ​​of pixels in the grayscale image that are less than a threshold are set to 0, and the grayscale values ​​of pixels that are greater than the threshold are set to 1, wherein the grayscale value threshold is set to twice the average value of the grayscale values ​​of the non-image point area;

[0020] A pixel region of each light point having a density greater than a preset density and a grayscale value greater than a threshold is obtained from the binarized grayscale image, and the center of the pixel region is used as the center coordinate of each light point.

[0021] In a possible design, based on the center coordinates of each light point in each base color image, a light point positioning algorithm is used to preliminarily position the four corner light points in the same base color image, including:

[0022] Assume that the top left corner vertex of the LED display screen is the origin of the coordinate system, find out the light points whose central Y-axis coordinates of all light points in the same base color image are less than the first Y-axis coordinate threshold and select them to obtain the first screening frame;

[0023] The points in the first filter frame are arranged in ascending order of X coordinate values, and the light points whose absolute value of the difference between the X coordinate value in the frame and the minimum X coordinate value is less than D / 2 are selected and framed to obtain a second filter frame, where D represents the ideal distance between two consecutive light points;

[0024] Select the point with the largest Y-axis coordinate value from the second filter box as the lower left corner vertex to achieve positioning;

[0025] Find out the light points whose central X-axis coordinates of all light points in the same base color image are less than the first X-axis coordinate threshold and select them to obtain a third screening frame;

[0026] The points in the third filter box are arranged in ascending order according to the Y coordinate value, and the light points whose absolute value of the difference between the Y coordinate value in the box and the minimum Y coordinate value is less than D / 2 are selected and framed to obtain a fourth filter box;

[0027] Select the point with the largest X-axis coordinate value from the fourth filter box as the lower right corner vertex to achieve positioning;

[0028] Based on the two-way sorting method, the positioning of the lower left corner vertex and the upper right corner vertex is achieved.

[0029] In a possible design, judging whether there is a faulty light point among the four corner light points includes:

[0030] Connect the four vertex light points obtained by preliminary positioning to obtain the four side lines L1, L2, L3 and L4 of the quadrilateral, and calculate the parameters of the four straight line equations respectively, where L1 and L2 are two side lines parallel to each other on the X-axis coordinate, and L3 and L4 are two side lines parallel to each other on the Y-axis coordinate;

[0031] Calculate the distance between each light point in the quadrilateral and the four side lines respectively, and classify the light points with a distance less than D / 2 to the four side lines respectively, then arrange the light points on the side lines L1 and L2 from small to large according to the X coordinate value, and arrange the light points on the side lines L3 and L4 from small to large according to the Y coordinate value, and obtain the number of light points on each side line N1, N2, N3 and N4;

[0032] Compare the actual number of rows and columns of the base color image with the calculated number of rows and columns to see if they are equal. If not, it is determined that there is a faulty light point at the top corner.

[0033] In a possible design, the base color image is tilt corrected based on the positioning result, including:

[0034] Use the cvFindContours function to extract the contours of the four edge lines L1, L2, L3 and L4 respectively, and use the cvDrawContours function to draw the contours;

[0035] The slopes of the side lines L1 and L2 compared to the horizontal direction or the slopes of L3 and L4 compared to the vertical direction are calculated, and the inclination correction is performed on the lamp points of each row or column based on the slope calculation results.

[0036] In a possible design, the target corrected brightness value is calculated according to the brightness values ​​of all lamp points in the same base color image, including:

[0037] Get the brightness value of each light point in the same base color image, and calculate the average brightness of all light points;

[0038] The brightness average value is weighted using a preset weighting coefficient to obtain a target corrected brightness value.

[0039] In a second aspect, the present invention provides a LED screen coefficient correction device, comprising:

[0040] An image acquisition module is used to acquire three primary color images of the LED display screen by using an image acquisition device, wherein the primary color images include a red image, a green image and a blue image;

[0041] A coordinate extraction module, used for preprocessing each primary color image to extract the center coordinates of each light point in each primary color image;

[0042] A positioning module is used to perform preliminary positioning of the four corner light points in the same base color image according to the center coordinates of each light point in each base color image using a light point positioning algorithm, and determine whether there is a faulty light point among the four corner light points. If so, reposition the four corner light points;

[0043] A tilt correction module, used for performing tilt correction on the base color image based on the positioning result;

[0044] The coefficient correction module is used to calculate the target correction brightness value according to the brightness values ​​of all light points in the same base color image, and transmit the target correction brightness value to the LED display screen for brightness coefficient correction.

[0045] In one possible design, the device further includes:

[0046] The uniformity detection module is used to detect the brightness uniformity of the current LED display screen.

[0047] In a possible design, the image acquisition module is specifically used for:

[0048] The LED display screen is controlled to display red, green and blue respectively, and the brightness of the display screen is adjusted to the maximum. The red image, green image and blue image are collected respectively by using a CCD camera.

[0049] In a possible design, the coordinate extraction module is specifically used for:

[0050] Each primary color image is converted into a grayscale image using a color-to-grayscale algorithm, and the average grayscale value of some pixels in the non-image point area of ​​the grayscale image is extracted;

[0051] Binarization is performed on the grayscale image: the grayscale values ​​of pixels in the grayscale image that are less than a threshold are set to 0, and the grayscale values ​​of pixels that are greater than the threshold are set to 1, wherein the grayscale value threshold is set to twice the average value of the grayscale values ​​of the non-image point area;

[0052] A pixel region of each light point having a density greater than a preset density and a grayscale value greater than a threshold is obtained from the binarized grayscale image, and the center of the pixel region is used as the center coordinate of each light point.

[0053] In a possible design, the positioning module is specifically used for:

[0054] Assume that the top left corner vertex of the LED display screen is the origin of the coordinate system, find out the light points whose central Y-axis coordinates of all light points in the same base color image are less than the first Y-axis coordinate threshold and select them to obtain the first screening frame;

[0055] The points in the first filter frame are arranged in ascending order of X coordinate values, and the light points whose absolute value of the difference between the X coordinate value in the frame and the minimum X coordinate value is less than D / 2 are selected and framed to obtain a second filter frame, where D represents the ideal distance between two consecutive light points;

[0056] Select the point with the largest Y-axis coordinate value from the second filter box as the lower left corner vertex to achieve positioning;

[0057] Find out the light points whose central X-axis coordinates of all light points in the same base color image are less than the first X-axis coordinate threshold and select them to obtain a third screening frame;

[0058] The points in the third filter box are arranged in ascending order according to the Y coordinate value, and the light points whose absolute value of the difference between the Y coordinate value in the box and the minimum Y coordinate value is less than D / 2 are selected and framed to obtain a fourth filter box;

[0059] Select the point with the largest X-axis coordinate value from the fourth filter box as the lower right corner vertex to achieve positioning;

[0060] Based on the two-way sorting method, the positioning of the lower left corner vertex and the upper right corner vertex is achieved.

[0061] In a possible design, the positioning module is further used for:

[0062] Connect the four vertex light points obtained by preliminary positioning to obtain the four side lines L1, L2, L3 and L4 of the quadrilateral, and calculate the parameters of the four straight line equations respectively, where L1 and L2 are two side lines parallel to each other on the X-axis coordinate, and L3 and L4 are two side lines parallel to each other on the Y-axis coordinate;

[0063] Calculate the distance between each light point in the quadrilateral and the four side lines respectively, and classify the light points with a distance less than D / 2 to the four side lines respectively, then arrange the light points on the side lines L1 and L2 from small to large according to the X coordinate value, and arrange the light points on the side lines L3 and L4 from small to large according to the Y coordinate value, and obtain the number of light points on each side line N1, N2, N3 and N4;

[0064] Compare the actual number of rows and columns of the base color image with the calculated number of rows and columns to see if they are equal. If not, it is determined that there is a faulty light point at the top corner.

[0065] In a possible design, the tilt correction module is specifically used to:

[0066] Use the cvFindContours function to extract the contours of the four edge lines L1, L2, L3 and L4 respectively, and use the cvDrawContours function to draw the contours;

[0067] The slopes of the side lines L1 and L2 compared to the horizontal direction or the slopes of L3 and L4 compared to the vertical direction are calculated, and the inclination correction is performed on the lamp points of each row or column based on the slope calculation results.

[0068] In a possible design, the coefficient correction module is specifically used for:

[0069] Get the brightness value of each light point in the same base color image, and calculate the average brightness of all light points;

[0070] The brightness average value is weighted using a preset weighting coefficient to obtain a target corrected brightness value.

[0071] In a third aspect, the present invention provides a computer device comprising a memory, a processor and a transceiver which are communicatively connected in sequence, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the LED screen coefficient correction method as described in any possible design of the first aspect.

[0072] In a fourth aspect, the present invention provides a computer-readable storage medium having instructions stored thereon. When the instructions are run on a computer, the LED screen coefficient correction method as described in any possible design of the first aspect is executed.

[0073] In a fifth aspect, the present invention provides a computer program product comprising instructions, which, when executed on a computer, causes the computer to execute the LED screen coefficient correction method as described in any possible design of the first aspect.

[0074] Compared with the prior art, the present invention has the following beneficial effects:

[0075] The present invention collects primary color images; pre-processes each primary color image; preliminarily locates the four vertex light points in the same primary color image according to the center coordinates of each light point in each primary color image, determines whether there is a faulty light point among the four vertex light points, and if so, re-locates the four vertex light points; performs tilt correction on the primary color image based on the positioning result; calculates the target correction brightness value according to the brightness values ​​of all light points in the same primary color image, and transmits the target correction brightness value to the LED display screen for brightness coefficient correction. Thus, the accuracy of primary color image positioning is improved, and the brightness coefficient correction can be performed based on the correct image information, thereby improving the brightness uniformity of the corrected LED display screen. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] Figure 1 A flowchart of a LED screen coefficient correction method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0077] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in combination with the drawings and the description of the embodiments or the prior art. Obviously, the following description of the structure of the drawings is only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention.

[0078] Example

[0079] In order to improve the brightness uniformity of the LED display screen and overcome the technical defect that the light points in the existing image cannot be arranged and distributed strictly according to the ideal shape, resulting in the acquired light point coordinates being inaccurate, and then resulting in the brightness correction result being inaccurate and unable to meet the user's visual needs, the embodiment of the present application provides an LED screen coefficient correction method, which can perform brightness coefficient correction based on correct image information, thereby improving the brightness uniformity of the corrected LED display screen.

[0080] The LED screen coefficient correction method provided in the embodiment of the present application will be described in detail below.

[0081] It should be noted that the LED screen coefficient correction method provided in the embodiment of the present application can be applied to any terminal device using a software system (such as an Android system or an IOS system) to perform display screen brightness correction, wherein the terminal device includes but is not limited to industrial computers, personal computers, tablet computers, and smart phones, etc., which are not limited here. For ease of description, unless otherwise specified, the embodiments of the present application are described with industrial computers as the execution subject. It can be understood that the execution subject does not constitute a limitation on the embodiments of the present application, and in some other embodiments, a personal computer or other types of terminal devices can be used as the execution subject.

[0082] like Figure 1 FIG. 1 is a flow chart of a method for correcting the coefficient of an LED screen provided in an embodiment of the present application. The method for correcting the coefficient of an LED screen includes but is not limited to steps S1 to S5:

[0083] Step S1. Using an image acquisition device to acquire three primary color images of the LED display screen, wherein the primary color images include a red image, a green image, and a blue image;

[0084] It should be noted that since each pixel of the LED display is composed of three colors of LED (light emitting diode), red, green and blue, it is necessary to calibrate the luminous coefficient of each color of LED. The existing method is usually to set the minimum brightness value as the target brightness value and adjust the brightness to the target brightness value for calibration, but this method will result in too low brightness, affecting the user's visual experience.

[0085] Therefore, in step S1, three primary color images of the LED display screen are acquired by using an image acquisition device, including:

[0086] The LED display screen is controlled to display red, green and blue respectively, and the brightness of the display screen is adjusted to the maximum. The red image, green image and blue image are respectively captured by a CCD camera, so that at least three primary color images with obvious brightness can be captured.

[0087] Step S2. Preprocess each primary color image to extract the center coordinates of each light point in each primary color image;

[0088] Among them, it should be noted that the premise of brightness correction of the LED display screen is to find the one-to-one correspondence between the positions of the light points on the base color image and the light points on the display screen, so that each light point can be corrected point by point after the target correction coefficient is calculated to improve the correction efficiency. Therefore, it is necessary to determine the center coordinates of all the light points in the base color image before the brightness coefficient correction, and then locate each light point based on the center coordinates to find the correspondence between the light points in the image and the light points in the LED display screen.

[0089] Preferably, in step S2, each primary color image is preprocessed to extract the center coordinates of each light point in each primary color image, including:

[0090] Step S21. Convert each primary color image into a grayscale image using a color-to-grayscale algorithm, and extract the average grayscale value of some pixels in the non-image point area of ​​the grayscale image;

[0091] It should be noted that before determining the specific position of the light point, the captured image needs to be gray-processed. Since the light points are generally arranged in a matrix, and there is an obvious difference in the gray-scale values ​​between the light point area and the background area, the image can be binarized based on this.

[0092] Step S22. Binarize the grayscale image: set the grayscale value of pixels in the grayscale image that are less than a threshold to 0, and set the grayscale value of pixels that are greater than the threshold to 1, wherein the grayscale value threshold is set to twice the average grayscale value of the non-image point area;

[0093] Step S23. Obtain, from the binarized grayscale image, a pixel region in each light point whose density is greater than a preset density and whose grayscale value is greater than a threshold, and use the center of the pixel region as the center coordinate of each light point.

[0094] Among them, it should be noted that since the pixel grayscale value at the position of each light point is relatively high, and the points above the grayscale value threshold are densely distributed and the distribution shape is close to a circle, the pixel area in each light point with a density greater than the preset density and a grayscale value greater than the threshold is used as the center coordinate of each light point, which can optimally represent the coordinate position of the light point.

[0095] Step S3. Based on the center coordinates of each lamp point in each base color image, the four corner lamp points in the same base color image are preliminarily located using a lamp point location algorithm to determine whether there is a faulty lamp point among the four corner lamp points. If so, the four corner lamp points are relocated;

[0096] It should be noted that in the pixel coordinate system with the upper left corner of the image as the origin, whether it is lens distortion, camera tilt or other factors that cause the LED light points of the captured image to not be arranged strictly according to the rules, the upper left corner and lower right corner vertices of the captured image are the closest point and the farthest point to the origin of the coordinates, respectively. However, if the LED lamp beads at the four vertices fail, the corner point positioning cannot be completed. Therefore, this embodiment can automatically fill in the position of the faulty light point according to the arrangement rules of the surrounding point coordinates based on the positioning sorting.

[0097] In step S3, based on the center coordinates of each light point in each base color image, a light point positioning algorithm is used to preliminarily position the four corner light points in the same base color image, including:

[0098] Step S31. Set the top left corner vertex of the LED display screen as the origin of the coordinate system, find out the lamp points whose central Y-axis coordinates of all lamp points in the same base color image are less than the first Y-axis coordinate threshold and select them to obtain a first screening frame; wherein, preferably, the first Y-axis coordinate threshold may be Ymax-3D, where Ymax represents the maximum Y-axis coordinate value;

[0099] Step S32: Arrange the points in the first filter frame from small to large according to the X coordinate value and select the light points whose absolute value of the difference between the X coordinate value in the frame and the minimum X coordinate value is less than D / 2 and select them to obtain a second filter frame, where D represents the ideal distance between two consecutive light points;

[0100] Step S33. Select the point with the largest Y-axis coordinate value from the second filter box as the lower left corner vertex to achieve positioning;

[0101] Step S34. Find out the light points whose central X-axis coordinates of all light points in the same base color image are less than the first X-axis coordinate threshold and select them to obtain a third screening frame; wherein, preferably, the first X-axis coordinate threshold may be Xmax-3D, where Xmax represents the maximum Y-axis coordinate value;

[0102] Step S35. Arrange the points in the third filter box from small to large according to the Y coordinate value and select the light points whose absolute value of the difference between the Y coordinate value in the box and the minimum Y coordinate value is less than D / 2 and select them to obtain a fourth filter box;

[0103] Step S36. Select the point with the largest X-axis coordinate value from the fourth filter box as the lower right corner vertex to achieve positioning;

[0104] Step S37: Based on the two-way sorting method, the lower left corner vertex and the upper right corner vertex are located.

[0105] Preferably, determining whether there is a faulty lamp point among the four vertex lamp points includes:

[0106] Connect the four vertex light points obtained by preliminary positioning to obtain the four side lines L1, L2, L3 and L4 of the quadrilateral, and calculate the parameters of the four straight line equations respectively, where L1 and L2 are two side lines parallel to each other on the X-axis coordinate, and L3 and L4 are two side lines parallel to each other on the Y-axis coordinate;

[0107] Calculate the distance between each light point in the quadrilateral and the four side lines respectively, and classify the light points with a distance less than D / 2 to the four side lines respectively, then arrange the light points on the side lines L1 and L2 from small to large according to the X coordinate value, and arrange the light points on the side lines L3 and L4 from small to large according to the Y coordinate value, and obtain the number of light points on each side line N1, N2, N3 and N4;

[0108] Compare the actual number of rows and columns of the base color image with the calculated number of rows and columns to see if they are equal. If not, it is determined that there is a faulty light point at the top corner.

[0109] Step S4. performing tilt correction on the base color image based on the positioning result;

[0110] In step S4, the base color image is tilt corrected based on the positioning result, including:

[0111] Step S41. The contours of the four edge lines L1, L2, L3 and L4 are extracted respectively by using the cvFindContours function, and the contours are drawn by using the cvDrawContours function;

[0112] Step S42: Calculate the slopes of the side lines L1 and L2 compared to the horizontal direction or calculate the slopes of L3 and L4 compared to the vertical direction, and perform tilt correction on the lamp points of each row or column based on the slope calculation results.

[0113] Step S5: Calculate the target correction brightness value according to the brightness values ​​of all lamp points in the same primary color image, and transmit the target correction brightness value to the LED display screen for brightness coefficient correction.

[0114] In step S5, the target correction brightness value is calculated according to the brightness values ​​of all light points in the same base color image, including:

[0115] Get the brightness value of each light point in the same base color image, and calculate the average brightness of all light points;

[0116] The brightness average value is weighted using a preset weighting coefficient to obtain a target corrected brightness value.

[0117] It should be noted that after the target correction brightness value is calculated, the correction matrix of each lamp point can be obtained by dividing the target brightness value with the brightness values ​​of all lamp points to obtain a coefficient matrix, so that each lamp point can be corrected point by point.

[0118] After transmitting the target correction brightness value to the LED display screen for brightness coefficient correction, the method further includes:

[0119] Detect the brightness uniformity of the current LED display.

[0120] Specifically, by displaying the white field at the highest grayscale level and the highest brightness level, measuring the brightness value of each lamp point with a brightness meter, and calculating the average value, and then calculating the brightness uniformity of each point, the correction effect can be detected.

[0121] Based on the above disclosed content, this embodiment collects primary color images; pre-processes each primary color image; preliminarily locates the four vertex light points in the same primary color image according to the center coordinates of each light point in each primary color image, determines whether there is a faulty light point among the four vertex light points, and if so, re-locates the four vertex light points; performs tilt correction on the primary color image based on the positioning result; calculates the target correction brightness value according to the brightness values ​​of all light points in the same primary color image, and transmits the target correction brightness value to the LED display screen for brightness coefficient correction. This improves the accuracy of primary color image positioning, and can perform brightness coefficient correction based on correct image information, thereby improving the brightness uniformity of the corrected LED display screen.

[0122] In a second aspect, the present invention provides a LED screen coefficient correction device, comprising:

[0123] An image acquisition module is used to acquire three primary color images of the LED display screen by using an image acquisition device, wherein the primary color images include a red image, a green image and a blue image;

[0124] A coordinate extraction module, used for preprocessing each primary color image to extract the center coordinates of each light point in each primary color image;

[0125] A positioning module is used to perform preliminary positioning of the four corner light points in the same base color image according to the center coordinates of each light point in each base color image using a light point positioning algorithm, and determine whether there is a faulty light point among the four corner light points. If so, reposition the four corner light points;

[0126] A tilt correction module, used for performing tilt correction on the base color image based on the positioning result;

[0127] The coefficient correction module is used to calculate the target correction brightness value according to the brightness values ​​of all light points in the same base color image, and transmit the target correction brightness value to the LED display screen for brightness coefficient correction.

[0128] In one possible design, the device further includes:

[0129] The uniformity detection module is used to detect the brightness uniformity of the current LED display screen.

[0130] In a possible design, the image acquisition module is specifically used for:

[0131] The LED display screen is controlled to display red, green and blue respectively, and the brightness of the display screen is adjusted to the maximum. The red image, green image and blue image are collected respectively by using a CCD camera.

[0132] In a possible design, the coordinate extraction module is specifically used for:

[0133] Each primary color image is converted into a grayscale image using a color-to-grayscale algorithm, and the average grayscale value of some pixels in the non-image point area of ​​the grayscale image is extracted;

[0134] Binarization is performed on the grayscale image: the grayscale values ​​of pixels in the grayscale image that are less than a threshold are set to 0, and the grayscale values ​​of pixels that are greater than the threshold are set to 1, wherein the grayscale value threshold is set to twice the average value of the grayscale values ​​of the non-image point area;

[0135] A pixel region of each light point having a density greater than a preset density and a grayscale value greater than a threshold is obtained from the binarized grayscale image, and the center of the pixel region is used as the center coordinate of each light point.

[0136] In a possible design, the positioning module is specifically used for:

[0137] Assume that the top left corner vertex of the LED display screen is the origin of the coordinate system, find out the light points whose central Y-axis coordinates of all light points in the same base color image are less than the first Y-axis coordinate threshold and select them to obtain the first screening frame;

[0138] The points in the first filter frame are arranged in ascending order of X coordinate values, and the light points whose absolute value of the difference between the X coordinate value in the frame and the minimum X coordinate value is less than D / 2 are selected and framed to obtain a second filter frame, where D represents the ideal distance between two consecutive light points;

[0139] Select the point with the largest Y-axis coordinate value from the second filter box as the lower left corner vertex to achieve positioning;

[0140] Find out the light points whose central X-axis coordinates of all light points in the same base color image are less than the first X-axis coordinate threshold and select them to obtain a third screening frame;

[0141] The points in the third filter box are arranged in ascending order according to the Y coordinate value, and the light points whose absolute value of the difference between the Y coordinate value in the box and the minimum Y coordinate value is less than D / 2 are selected and framed to obtain a fourth filter box;

[0142] Select the point with the largest X-axis coordinate value from the fourth filter box as the lower right corner vertex to achieve positioning;

[0143] Based on the two-way sorting method, the positioning of the lower left corner vertex and the upper right corner vertex is achieved.

[0144] In a possible design, the positioning module is further used for:

[0145] Connect the four vertex light points obtained by preliminary positioning to obtain the four side lines L1, L2, L3 and L4 of the quadrilateral, and calculate the parameters of the four straight line equations respectively, where L1 and L2 are two side lines parallel to each other on the X-axis coordinate, and L3 and L4 are two side lines parallel to each other on the Y-axis coordinate;

[0146] Calculate the distance between each light point in the quadrilateral and the four side lines respectively, and classify the light points with a distance less than D / 2 to the four side lines respectively, then arrange the light points on the side lines L1 and L2 from small to large according to the X coordinate value, and arrange the light points on the side lines L3 and L4 from small to large according to the Y coordinate value, and obtain the number of light points on each side line N1, N2, N3 and N4;

[0147] Compare the actual number of rows and columns of the base color image with the calculated number of rows and columns to see if they are equal. If not, it is determined that there is a faulty light point at the top corner.

[0148] In a possible design, the tilt correction module is specifically used to:

[0149] Use the cvFindContours function to extract the contours of the four edge lines L1, L2, L3 and L4 respectively, and use the cvDrawContours function to draw the contours;

[0150] The slopes of the side lines L1 and L2 compared to the horizontal direction or the slopes of L3 and L4 compared to the vertical direction are calculated, and the inclination correction is performed on the lamp points of each row or column based on the slope calculation results.

[0151] In a possible design, the coefficient correction module is specifically used for:

[0152] Get the brightness value of each light point in the same base color image, and calculate the average brightness of all light points;

[0153] The brightness average value is weighted using a preset weighting coefficient to obtain a target corrected brightness value.

[0154] The working process, working details and technical effects of the aforementioned device provided in the second aspect of this embodiment can be referred to the method described in the first aspect or any possible design of the first aspect, and will not be repeated here.

[0155] In a third aspect, the present invention provides a computer device comprising a memory, a processor and a transceiver which are communicatively connected in sequence, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the LED screen coefficient correction method as described in any possible design of the first aspect.

[0156] For example, the memory may include, but is not limited to, random access memory (RAM), read-only memory (ROM), flash memory, first input first output (FIFO) and / or first input last output (FILO), etc.; the processor may be, but is not limited to, a microprocessor of the STM32F105 series; the transceiver may be, but is not limited to, a WiFi (Wireless Fidelity) wireless transceiver, a Bluetooth wireless transceiver, a GPRS (General Packet Radio Service) wireless transceiver and / or a ZigBee (ZigBee protocol, a low-power LAN protocol based on the IEEE802.15.4 standard) wireless transceiver, etc. In addition, the computer device may also include, but is not limited to, a power module, a display screen and other necessary components.

[0157] The working process, working details and technical effects of the aforementioned computer device provided in the third aspect of this embodiment can be referred to the method described in the first aspect or any possible design of the first aspect, and will not be repeated here.

[0158] In a fourth aspect, the present invention provides a computer-readable storage medium having instructions stored thereon. When the instructions are run on a computer, the LED screen coefficient correction method as described in any possible design of the first aspect is executed.

[0159] The computer-readable storage medium refers to a carrier for storing data, which may include but is not limited to a floppy disk, a CD, a hard disk, a flash memory, a USB flash drive and / or a memory stick, etc. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.

[0160] The working process, working details and technical effects of the aforementioned computer-readable storage medium provided in the fourth aspect of this embodiment can be referred to the method described in the first aspect or any possible design of the first aspect, and will not be repeated here.

[0161] In a fifth aspect, the present invention provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the LED screen coefficient correction method as described in any possible design of the first aspect.

[0162] The working process, working details and technical effects of the aforementioned computer program product containing instructions provided in the fifth aspect of this embodiment can be referred to the method described in the first aspect or any possible design of the first aspect, and will not be repeated here.

[0163] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for correcting LED screen coefficients, characterized in that: include: The three primary color images of the LED display screen are acquired by using an image acquisition device, wherein the primary color images include a red image, a green image and a blue image; Preprocessing each primary color image to extract the center coordinates of each light point in each primary color image; According to the center coordinates of each lamp point in each base color image, the four corner lamp points in the same base color image are preliminarily located using the lamp point location algorithm to determine whether there is a faulty lamp point among the four corner lamp points. If so, the four corner lamp points are relocated; Perform tilt correction on the base color image based on the positioning result; Calculate the target correction brightness value according to the brightness values ​​of all lamp points in the same primary color image, and transmit the target correction brightness value to the LED display screen for brightness coefficient correction; According to the center coordinates of each light point in each base color image, the light point positioning algorithm is used to preliminarily position the four corner light points in the same base color image, including: Assume that the top left corner vertex of the LED display screen is the origin of the coordinate system, find out the light points whose central Y-axis coordinates of all light points in the same base color image are less than the first Y-axis coordinate threshold and select them to obtain the first screening frame; The points in the first filter frame are arranged in ascending order of X coordinate values, and the light points whose absolute value of the difference between the X coordinate value in the frame and the minimum X coordinate value is less than D / 2 are selected and framed to obtain a second filter frame, where D represents the ideal distance between two consecutive light points; Select the point with the largest Y-axis coordinate value from the second filter box as the lower left corner vertex to achieve positioning; Find out the light points whose central X-axis coordinates of all light points in the same base color image are less than the first X-axis coordinate threshold and select them to obtain a third screening frame; The points in the third filter box are arranged in ascending order according to the Y coordinate value, and the light points whose absolute value of the difference between the Y coordinate value in the box and the minimum Y coordinate value is less than D / 2 are selected and framed to obtain a fourth filter box; Select the point with the largest X-axis coordinate value from the fourth filter box as the lower right corner vertex to achieve positioning; Based on the two-way sorting method, the positioning of the lower left corner vertex and the upper right corner vertex is achieved.

2. The LED screen coefficient correction method according to claim 1, characterized in that: After transmitting the target correction brightness value to the LED display screen for brightness coefficient correction, the method further includes: Detect the brightness uniformity of the current LED display.

3. The LED screen coefficient correction method according to claim 1, characterized in that: The three primary color images of the LED display are acquired by using the image acquisition device, including: The LED display screen is controlled to display red, green and blue respectively, and the brightness of the display screen is adjusted to the maximum. The red image, green image and blue image are collected respectively by using a CCD camera.

4. The LED screen coefficient correction method according to claim 1, characterized in that: Preprocess each primary color image to extract the center coordinates of each light point in each primary color image, including: Each primary color image is converted into a grayscale image using a color-to-grayscale algorithm, and the average grayscale value of some pixels in the non-image point area of ​​the grayscale image is extracted; Binarization is performed on the grayscale image: the grayscale values ​​of pixels in the grayscale image that are less than a threshold are set to 0, and the grayscale values ​​of pixels that are greater than the threshold are set to 1, wherein the grayscale value threshold is set to twice the average value of the grayscale values ​​of the non-image point area; A pixel region of each light point having a density greater than a preset density and a grayscale value greater than a threshold is obtained from the binarized grayscale image, and the center of the pixel region is used as the center coordinate of each light point.

5. The LED screen coefficient correction method according to claim 1, characterized in that: Determine whether there is a faulty light point among the four corner lights, including: Connect the four vertex light points obtained by preliminary positioning to obtain the four side lines L1, L2, L3 and L4 of the quadrilateral, and calculate the parameters of the four straight line equations respectively, where L1 and L2 are two side lines parallel to each other on the X-axis coordinate, and L3 and L4 are two side lines parallel to each other on the Y-axis coordinate; Calculate the distance between each light point in the quadrilateral and the four side lines respectively, and classify the light points with a distance less than D / 2 to the four side lines respectively, then arrange the light points on the side lines L1 and L2 from small to large according to the X coordinate value, and arrange the light points on the side lines L3 and L4 from small to large according to the Y coordinate value, and obtain the number of light points on each side line N1, N2, N3 and N4; Compare the actual number of rows and columns of the base color image with the calculated number of rows and columns to see if they are equal. If not, it is determined that there is a faulty light point at the top corner.

6. The LED screen coefficient correction method according to claim 5, characterized in that: The base color image is tilt corrected based on the positioning result, including: Use the cvFindContours function to extract the contours of the four edge lines L1, L2, L3 and L4 respectively, and use the cvDrawContours function to draw the contours; The slopes of the side lines L1 and L2 compared to the horizontal direction or the slopes of L3 and L4 compared to the vertical direction are calculated, and the inclination correction is performed on the lamp points of each row or column based on the slope calculation results.

7. The LED screen coefficient correction method according to claim 1, characterized in that: The target correction brightness value is calculated according to the brightness values ​​of all light points in the same base color image, including: Get the brightness value of each light point in the same base color image, and calculate the average brightness of all light points; The brightness average value is weighted using a preset weighting coefficient to obtain a target corrected brightness value.

8. A LED screen coefficient correction device, characterized in that: include: An image acquisition module is used to acquire three primary color images of the LED display screen by using an image acquisition device, wherein the primary color images include a red image, a green image and a blue image; A coordinate extraction module, used for preprocessing each primary color image to extract the center coordinates of each light point in each primary color image; A positioning module is used to perform preliminary positioning of the four corner light points in the same base color image according to the center coordinates of each light point in each base color image using a light point positioning algorithm, and determine whether there is a faulty light point among the four corner light points. If so, reposition the four corner light points; A tilt correction module, used for performing tilt correction on the base color image based on the positioning result; The coefficient correction module is used to calculate the target correction brightness value according to the brightness values ​​of all lamp points in the same primary color image, and transmit the target correction brightness value to the LED display screen for brightness coefficient correction; According to the center coordinates of each light point in each base color image, the light point positioning algorithm is used to preliminarily position the four corner light points in the same base color image, including: Assume that the top left corner vertex of the LED display screen is the origin of the coordinate system, find out the light points whose central Y-axis coordinates of all light points in the same base color image are less than the first Y-axis coordinate threshold and select them to obtain the first screening frame; The points in the first filter frame are arranged in ascending order of X coordinate values, and the light points whose absolute value of the difference between the X coordinate value in the frame and the minimum X coordinate value is less than D / 2 are selected and framed to obtain a second filter frame, where D represents the ideal distance between two consecutive light points; Select the point with the largest Y-axis coordinate value from the second filter box as the lower left corner vertex to achieve positioning; Find out the light points whose central X-axis coordinates of all light points in the same base color image are less than the first X-axis coordinate threshold and select them to obtain a third screening frame; The points in the third filter box are arranged in ascending order according to the Y coordinate value, and the light points whose absolute value of the difference between the Y coordinate value in the box and the minimum Y coordinate value is less than D / 2 are selected and framed to obtain a fourth filter box; Select the point with the largest X-axis coordinate value from the fourth filter box as the lower right corner vertex to achieve positioning; Based on the two-way sorting method, the positioning of the lower left corner vertex and the upper right corner vertex is achieved.

9. A computer device, characterized in that: It includes a memory, a processor and a transceiver which are communicatively connected in sequence, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the LED screen coefficient correction method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • LED display device space position detection method and system for guidance and correction

    CN104279958A