Method and device for identifying abnormal light points of LED screen
Technical Field
The invention belongs to the technical field of LED display screens, and particularly relates to a method and a device for identifying abnormal light points of an LED screen.
Background
In the current correction method, an original brightness value image is obtained after an LED screen is shot by a camera, and then the original brightness value image is input into correction software to realize correction. Wherein, the calibration software can reflect the most original brightness value of all the light points in the LED screen in the display interface of the calibration software, but it needs to check whether the brightness value of each light point is too dark point by point according to an average brightness value (the calibration brightness value cannot exceed the most original brightness value, specifically, the brightness value of each light point is reduced as a whole and then adjusted according to an average brightness value) to determine whether the too dark light point is an abnormal point, and finally, the brightness value of the abnormal point is adjusted by using the calibration coefficient in the calibration software, but the current biggest problem is that it cannot be determined whether the abnormal point is caused by the light point of the LED screen or by external interference objects such as dust, hair and the like on the camera head, which may cause the calibration software to misjudge the brightness value of the area corresponding to the abnormal point, and may cause the calibration software to generate a wrong calibration coefficient, the correction personnel can make a wrong correction effect through the correction coefficient (due to shielding of dust and the like, the brightness value of the lamp point in the area is low, the correction coefficient generated by correction software is too high, and when the correction coefficient is used for correction, light spots appear on an LED screen), so that the correction efficiency is influenced. Therefore, there is a need to find a new technical solution to solve the above problems.
Disclosure of Invention
In order to solve the problems and disadvantages of the prior art, the present invention provides a method and an apparatus for identifying abnormal light points on an LED screen, which can determine whether the screen has abnormal light points.
In order to achieve the above object, the present invention firstly provides a method for identifying abnormal light points on an LED screen, which is used for LED screen correction, and comprises the following steps:
s1, generating a brightness distribution diagram according to the brightness value of each lamp point in the screen body, and checking whether a low brightness value area exists in the brightness distribution diagram;
s2, determining the low-brightness pixel points in the low-brightness value area as abnormal points, and judging whether the abnormal points form a connected domain or a discrete distribution state; if the connected domain is formed, determining that the abnormal point comes from the lens of the camera; and if the abnormal points are in the discrete distribution state, determining the abnormal points as abnormal lamp points of the screen body.
Further, before step S1, the method further includes capturing an original brightness value image of the screen by a camera, extracting brightness values of the light points of the screen by the original brightness value image, and adjusting the brightness values of the light points of the screen according to a preset adjustment ratio.
Further, step S3 is included to obtain an average brightness value of the area where the abnormal light point is located, and to correct and repair the abnormal light point according to the average brightness value.
Further, in step S3, if there is a damaged light point with a luminance value of 0 in the screen body, the damaged light point is excluded when calculating the average luminance value.
Further, in step S2, the method for determining the outlier includes: and the pixel points with the brightness values lower than the specified value are abnormal points.
Further, in step S2, the method of determining whether or not a connected domain is formed includes: and if a plurality of low-brightness-value pixel points with similar brightness values and communicated exist in the brightness distribution map, judging that the low-brightness-value pixel points form a communicated domain.
Further, the method for determining whether to form a connected domain further comprises: if the low-brightness pixel points are more than or equal to four and the interval length of each adjacent low-brightness pixel point is consistent, the low-brightness pixel points are judged to form a connected domain.
Further, in step S2, the method for determining the size and the location of the connected component includes: and establishing a coordinate system according to the brightness distribution map, acquiring the coordinates of each low-brightness-value pixel point in the connected domain, and determining the size and the position of the connected domain according to the coordinates.
Further, step S3 includes prompting to clean the lens if the screen body has a connected domain.
The invention also provides a device for identifying abnormal lamp points of the LED screen, and the method for identifying abnormal lamp points of the LED screen comprises the following steps:
the camera module is used for shooting a screen body;
the correction identification module is used for generating an original brightness value image after the screen body is shot by the camera module, extracting the brightness value of each lamp point of the screen body, generating a brightness distribution map and judging whether the brightness distribution map has a low-brightness area or not;
the connected domain judging module is used for judging whether the screen body has a low-brightness region according to the low-brightness region and whether the abnormal point in the low-brightness region forms a connected domain;
and the abnormal light point processing module is used for correcting and repairing the abnormal light points according to the average brightness value of the low-brightness area.
Compared with the prior art, this beneficial effect of sending out includes: when foreign matters exist in a camera lens or abnormal lamp points exist in a screen body, a low-brightness-value area with low brightness is formed in a brightness distribution diagram, and then whether the abnormal points with too low brightness values in the low-brightness-value area form a connected domain or not is judged; when foreign matters exist in the camera lens, a low-brightness value area is formed in the brightness distribution degree, and low-brightness lamp points in the low-brightness value area are concentrated; and because the abnormal lamp points in the screen body are usually discretely distributed pixel points, a connected domain cannot be formed. Therefore, if a connected domain exists in a low-brightness region in the brightness distribution map, the camera lens is indicated to have foreign matters, and if the low-brightness light points are in a discrete distribution state, the screen body is indicated to have abnormal light points. The invention can determine whether the abnormal point is caused by a lens foreign body or an abnormal lamp point of the screen body, thereby avoiding the correction personnel from making incorrect correction and further influencing the correction effect and the correction rate.
Drawings
FIG. 1 is a diagram of method steps according to a first embodiment of the present invention;
fig. 2 is a module connection diagram of a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The first embodiment is as follows:
the embodiment of the invention provides a method for identifying abnormal lamp points of an LED screen, which is used for correcting the LED screen and comprises the following steps as shown in figure 1:
s1, generating a brightness distribution diagram according to the brightness value of each lamp point in the screen body, and checking whether a low brightness value area exists in the brightness distribution diagram;
s2, determining the low-brightness pixel points in the low-brightness value area as abnormal points, and judging whether the abnormal points form a connected domain or a discrete distribution state; if the connected domain is formed, determining that the abnormal point comes from the lens of the camera; and if the abnormal points are in the discrete distribution state, determining the abnormal points as abnormal lamp points of the screen body.
By adopting the method, when foreign matters exist in a camera lens or abnormal lamp points exist in a screen body, a low-brightness-value area with lower brightness is formed in a brightness distribution diagram, and then whether the abnormal points with too low brightness values in the low-brightness-value area form a connected domain or not is judged; when foreign matters exist in the camera lens, a low-brightness value area is formed in the brightness distribution degree, and low-brightness lamp points in the low-brightness value area are concentrated; and because the abnormal lamp points in the screen body are usually discretely distributed pixel points, a connected domain cannot be formed. Therefore, if a connected domain exists in a low-brightness region in the brightness distribution map, the camera lens is indicated to have foreign matters, and if the low-brightness light points are in a discrete distribution state, the screen body is indicated to have abnormal light points. The method can determine whether the abnormal point is caused by the lens or the lamp point of the screen body, and avoid the correction personnel from making incorrect correction so as to influence the correction effect and the correction rate.
Before step S1, the method further includes capturing an original brightness value image of the screen by the camera, extracting brightness values of the light points of the screen by the original brightness value image, and adjusting the brightness values of the light points of the screen according to a preset adjustment ratio. The lamp point has an original brightness value which cannot be adjusted; the method comprises the steps of firstly determining the adjustment proportion of brightness values according to the difference value between the maximum brightness value and the minimum brightness value in the lamp points, then reducing the brightness values of all the lamp points according to the adjustment proportion, and then adjusting the brightness values upwards to ensure the consistency of the overall brightness values of the lamp points, wherein the brightness values are generally adjusted to the maximum brightness value. This makes it possible to effectively correct the brightness of all the lamp points.
Step S3 is further included in this embodiment, the average brightness value of the area where the abnormal light point is located is obtained, and the abnormal light point is corrected and repaired according to the average brightness value.
In step S3, if there is a damaged light point with a luminance value of 0 in the screen body, the damaged light point is excluded when calculating the average luminance value. Because the brightness value of the damaged lamp point is 0, the characteristic is obvious and can be easily confirmed, and the adjustment of the correction coefficient does not have any influence on the damaged lamp point; the average brightness value is a correction coefficient.
In step S2, the method for determining the outlier includes: and the pixel points with the brightness values lower than the specified value are abnormal points.
In step S2, the method of determining whether or not a connected domain is formed includes: and if a plurality of low-brightness-value pixel points with similar brightness values and communicated exist in the brightness distribution map, judging that the low-brightness-value pixel points form a communicated domain. Each pixel point in the connected domain is connected.
The method for judging whether the connected domain is formed further comprises the following steps: if the low-brightness pixel points are more than or equal to four and the interval length of each adjacent low-brightness pixel point is consistent, the low-brightness pixel points are judged to form a connected domain. Therefore, whether the lens is caused by foreign matters or not can be further accurately determined.
The method for determining the size and the position of the connected domain comprises the following steps: and establishing a coordinate system according to the brightness distribution map, acquiring the coordinates of each low-brightness-value pixel point in the connected domain, and determining the size and the position of the connected domain according to the coordinates. Therefore, the size and the position of the connected domain can be effectively determined, and the corresponding position in the lens can be conveniently cleaned.
Step S3 further includes, if the screen body has a connected domain, prompting to clean the lens.
The specific method of this example is as follows:
firstly, shooting a screen body through a camera to obtain an original brightness value image, extracting the brightness value of each lamp point of the screen body through the original brightness value image, and adjusting the brightness value of each lamp point of the screen body according to a preset adjustment ratio.
And then, generating a brightness distribution graph according to the brightness value of each lamp point in the screen body, and checking whether a low-brightness-value area exists in the brightness distribution graph.
Judging that the low-brightness pixel points in the low-brightness value area are abnormal points, and judging whether the abnormal points form a connected domain or a discrete distribution state; if a connected domain is formed, determining that the abnormal point comes from the lens of the camera, and prompting that the lens needs to be cleaned; and if the abnormal points are in the discrete distribution state, determining the abnormal points as the abnormal lamp points of the screen body, acquiring the average brightness value of the area where the abnormal lamp points are located, and correcting and repairing the abnormal lamp points according to the average brightness value.
Example two:
an embodiment of the present invention provides a device for identifying an abnormal light point on an LED screen, as shown in fig. 2, including:
the camera module 1 is used for shooting a screen body;
the correction identification module 2 is used for generating an original brightness value image after the screen body is shot by the camera module 1, extracting the brightness value of each lamp point of the screen body, generating a brightness distribution map and judging whether the brightness distribution map has a low-brightness area or not;
the connected domain judging module 3 is used for judging whether the screen body has a low-brightness region according to the low-brightness region and whether an abnormal point in the low-brightness region forms a connected domain;
and the abnormal light point processing module 4 is used for correcting and repairing the abnormal light points according to the average brightness value of the low-brightness area.
The working method of the device for identifying abnormal light points on the LED screen in the second embodiment adopts the method for identifying abnormal light points on the LED screen provided in the first embodiment, and details are not repeated here. The second embodiment can determine whether the abnormal point is caused by a lens foreign object or an abnormal lamp point of the screen body, so that the correction personnel is prevented from making incorrect correction, and the correction effect and the correction rate are further influenced.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.