CN107230442B - LED display screen lamp point positioning method and device - Google Patents

LED display screen lamp point positioning method and device Download PDF

Info

Publication number
CN107230442B
CN107230442B CN201710364871.5A CN201710364871A CN107230442B CN 107230442 B CN107230442 B CN 107230442B CN 201710364871 A CN201710364871 A CN 201710364871A CN 107230442 B CN107230442 B CN 107230442B
Authority
CN
China
Prior art keywords
lamp
point
lamp point
points
actual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710364871.5A
Other languages
Chinese (zh)
Other versions
CN107230442A (en
Inventor
孙进
唐中源
章勇
曹李军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Keda Technology Co Ltd
Original Assignee
Suzhou Keda Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Keda Technology Co Ltd filed Critical Suzhou Keda Technology Co Ltd
Priority to CN201710364871.5A priority Critical patent/CN107230442B/en
Publication of CN107230442A publication Critical patent/CN107230442A/en
Application granted granted Critical
Publication of CN107230442B publication Critical patent/CN107230442B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/006Electronic inspection or testing of displays and display drivers, e.g. of LED or LCD displays

Abstract

The invention provides a method and a device for positioning light points of an LED display screen, which comprises the following steps: searching first and last lamp points, obtaining lamp point distance, moving the lamp point distance in the row direction at the position of the actual coordinate of the adjacent lamp point in the row head direction of the current lamp point to obtain the reference coordinate of the current lamp point, taking the reference coordinate of the current lamp point as the center, searching high brightness value pixel points in all pixel points within a preset distance range, setting the coordinate of the high brightness value pixel points as the actual coordinate, taking the position of the initial lamp point coordinate as the start, circularly calculating the reference coordinate and obtaining the actual coordinate until obtaining the actual coordinates of all the lamp points one by one. The method and the device provided by the invention do not need to establish an image model and do not need to carry out similarity matching, so that the method and the device are less influenced by the image characteristics of the actual lamp points and can accurately acquire the actual coordinates of the lamp points.

Description

LED display screen lamp point positioning method and device
Technical Field
The invention relates to a detection technology of an LED display screen, in particular to a method and a device for positioning lamp points of the LED display screen.
Background
In order to ensure the display uniformity of the LED display screen and improve the display quality, the brightness and the chroma of the LED display screen need to be corrected, and each LED lamp point needs to be positioned before the brightness and the chroma are corrected. In the prior art, a method for positioning LED light points generally adopts a template matching positioning method, that is, an image model of an LED light point is first established, and then an actual LED display screen image including a plurality of light points is subjected to similarity matching using the image model, so as to position the actual position of each light point.
However, in the template matching positioning method, a certain similarity between the image features of the actual lamp points and the image model is required, the consistency of the image features of the actual lamp points is highly required, and the parameter setting of the image model and the imaging effect of the actually shot LED display screen image have a great influence on the positioning of the lamp points, which easily causes positioning errors, especially when the number of the lamp points is large.
Disclosure of Invention
In view of the above problems, the present invention provides a method and an apparatus for positioning light points of an LED display screen, which are less affected by the image characteristics of actual light points.
According to a first aspect of the present invention, there is provided a method for positioning light points of an LED display screen, comprising the steps of: searching first and last lamp points, namely placing a lamp point image which is displayed by pixel points and corresponds to the LED display screen in a quadrant of a two-dimensional coordinate system, and acquiring the actual coordinates of the initial lamp point and the actual coordinates of the last lamp point in a lamp point array; a step of obtaining a lamp point distance, which is to obtain at least one of a row lamp point distance between adjacent lamp points in the row direction and a column lamp point distance between adjacent lamp points in the column direction of the lamp point array; calculating a reference coordinate, namely moving the distance between the lamp points in the row direction or the column direction at the position of the actual coordinate of the adjacent lamp point in the row direction or the column direction of the lamp point to obtain the reference coordinate of the next lamp point; acquiring an actual coordinate, namely searching a high-brightness-value pixel point from all pixel points within a preset distance range by taking a reference coordinate of a lamp point as a center in a lamp point image, and setting the coordinate of the high-brightness-value pixel point as the actual coordinate, wherein the high-brightness-value pixel point refers to the pixel point with the highest brightness value within the preset distance range; and circularly executing the step of calculating the reference coordinates and the step of acquiring the actual coordinates by taking the position of the initial lamp point coordinates as the initial until the actual coordinates of all the lamp points are acquired one by one.
Preferably, in the step of obtaining the actual coordinate, when there are a plurality of high-luminance-value pixel points, the luminance values of a plurality of pixel points adjacent to each of the plurality of high-luminance-value pixel points are compared, and the coordinate of the high-luminance-value pixel point with the highest luminance value of the adjacent pixel points is set as the actual coordinate.
Preferably, in the step of obtaining the actual coordinate, the brightness values of all pixel points within a preset distance range with the reference coordinate of the lamp point as a center are calculated, and when the brightness values are lower than a preset threshold, the lamp point is judged to be a blind point, and the reference coordinate replaces the actual coordinate.
Preferably, in the step of calculating the reference coordinate, the moving the lamp dot pitch includes calculating a lamp dot offset angle, and moving the compensated lamp dot pitch after compensating the lamp dot pitch according to the lamp dot offset angle.
Preferably, in the step of calculating the reference coordinate, the lamp offset angle is a row direction offset angle of a line direction connecting line between the actual coordinate of the adjacent lamp point in the current lamp point row head direction and the actual coordinate of the current lamp point row head direction, wherein the interval between the actual coordinate of the adjacent lamp point and the current lamp point row head direction is greater than or equal to 3 lamp points; or the lamp point offset angle is a column direction offset angle of a connecting line of the actual coordinates of the adjacent lamp points in the head direction of the head of the headlamp point and the actual coordinates of 3 or more lamp points in the head direction of the head of the headlamp point.
Preferably, in the step of calculating the reference coordinate, the lamp offset angle is a row direction or column direction offset angle of a line connecting an actual coordinate of a current lamp point adjacent to the lamp point in the row head direction or the column head direction and an actual coordinate of the lamp point adjacent to the lamp point in the row head direction or the column head direction.
Preferably, in the step of calculating the reference coordinate, the lamp point interval is compensated according to the lamp point offset angle, and moving the compensated lamp point interval includes: and multiplying the lamp point distance obtained in the step of obtaining the lamp point distance by the sine value and the cosine value of the lamp point offset angle respectively to obtain a row component and a column component of the compensated lamp point distance in the row direction and the column direction, and moving the row component and the column component in the row direction and the column direction respectively.
Preferably, the method further comprises the steps of: and (4) selecting the area, namely selecting the lamp point array area of the lamp point image.
Preferably, the method further comprises the steps of: confirming the first lamp point, wherein the distance between the lamp points moving to the column head direction is used as a reference coordinate for fitting the first lamp point at the position of the actual coordinate of the first lamp point, and acquiring the actual coordinate of the fitting first lamp point according to the reference coordinate of the fitting first lamp point to judge whether the initial lamp point is the first lamp point; or, at the position of the actual coordinate of the first row of lamp points, moving the distance between the lamp points in the row head direction to serve as the reference coordinate of the fitting first row of lamp points, and acquiring the actual coordinate of the fitting first row of lamp points according to the reference coordinate of the fitting first row of lamp points to judge whether the initial lamp point is the first lamp point.
Preferably, the actual coordinates of the fitting first row lamp points or the actual coordinates of the fitting first column lamp points are obtained, the starting lamp points are judged to be not the first lamp points, at least one of the actual coordinates of the fitting first row lamp points and the actual coordinates of the fitting first column lamp points is used for performing straight line fitting to obtain the coordinates of the first lamp points, and the actual coordinates of all the lamp points are recalculated by using the coordinates of the first lamp points as the starting point.
Preferably, if the actual coordinates of the first row of fitting lamp points or the actual coordinates of the first row of fitting lamp points cannot be obtained, it is determined that the initial lamp point is the first lamp point, and the actual coordinates of the subsequent lamp points are continuously obtained.
According to a second aspect of the present invention, there is provided an LED display screen lamp point positioning device, comprising: the storage unit is used for storing programs, and the steps of the LED display screen lamp point positioning method in the first aspect are realized when the programs are executed by the processing unit; and an execution unit for executing the program in the storage unit.
Due to the adoption of the technology, the LED display screen lamp point positioning method and the LED display screen lamp point positioning device do not need to establish an image model and do not need to carry out similarity matching, so the influence of the image characteristics of the actual lamp points is low, and the actual coordinates of the lamp points can be accurately obtained.
Drawings
The technical solutions of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments so that the features and advantages of the present invention will be more apparent.
FIG. 1 is a schematic flow chart of a method for positioning LED display screen light points according to an embodiment of the present invention;
FIG. 2 is a schematic flowchart of step S103 in FIG. 1;
FIG. 3 is a schematic flowchart of step S105 in FIG. 1;
FIG. 4 is a schematic view of a lamp point image according to an embodiment of the present invention;
FIG. 5 is an enlarged schematic view of the light spot image of FIG. 1 with the background pixels removed from area A;
fig. 6 is a schematic block diagram of a lamp positioning device of an LED display screen according to the present invention.
Detailed Description
Hereinafter, a detailed description will be given of embodiments of the present invention. While the invention will be described and illustrated in connection with certain specific embodiments thereof, it should be understood that the invention is not limited to those embodiments. Rather, modifications and equivalents of the invention are intended to be included within the scope of the claims.
Some example embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations as a sequential process, many of the operations can be performed in parallel, concurrently, or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a schematic flow chart of a method for positioning light points on an LED display screen according to an embodiment of the present invention, and as shown in fig. 1, the method for positioning light points on an LED display screen according to the present invention includes the steps of:
s100: and displaying an image, wherein the image is displayed on the LED display screen and comprises a plurality of lamp points.
S101: and shooting the lamp point image, and shooting the LED display screen into the lamp point image displayed by the pixel point.
S102: and (4) selecting the area, namely selecting the lamp point array area of the lamp point image.
S103: and searching a first point and a last point, placing the lamp point image in a two-dimensional coordinate system, and obtaining a start lamp point coordinate and an end lamp point coordinate in the lamp point array.
S104: and acquiring the distance between the lamp points, and acquiring at least one of the distance between the row lamp points between the adjacent lamp points in the row direction and the distance between the row lamp points between the adjacent lamp points in the column direction of the lamp point array.
S105: and acquiring actual coordinates of the first n rows of lamp points, circularly calculating the reference coordinates and acquiring the actual coordinates by taking the position of the initial lamp point coordinates as the initial position.
S106: and confirming the first lamp point, wherein the distance between the lamp points moving to the column head direction is used as a reference coordinate for fitting the first lamp point at the position of the actual coordinate of the first lamp point, and the actual coordinate of the fitting first lamp point is obtained according to the reference coordinate of the fitting first lamp point so as to judge whether the initial lamp point is the first lamp point.
S107: and acquiring the coordinates of the head lamp points, and performing linear fitting on at least one of the actual coordinates of the fitting head row lamp points and the actual coordinates of the fitting head row lamp points to acquire the coordinates of the head lamp points.
S108: and acquiring the actual coordinates of the subsequent lamp points.
Fig. 4 is a schematic view of a lamp point image according to an embodiment of the present invention, and the method for positioning a lamp point of an LED display screen according to the present invention is specifically described below with reference to fig. 1 and fig. 4.
First, in step S100, an image including a plurality of light points is displayed on the LED display screen. The LED display screen comprises a plurality of LED lamp points which are arranged in an array mode to form a lamp point array. And lighting the lamp point array of the LED display screen as required.
In step S101, the LED display screen is photographed as a lamp point image 100 displayed by a pixel point. The light spot image 100 shows several lit light spots distributed in a black background. The light spot image 100 is usually captured as an image of a Bayer array (Bayer array) arrangement at the time of capturing. In other embodiments, the light point image may be other color images, and the light point image needs to be converted into a gray scale image using the prior art.
Next, in step S102, the captured light spot image 100 is subjected to light spot array region selection processing. Specifically, a rough processing area of the lamp spot array is selected in the shot lamp spot image 100 to shield the influence of light sources other than the lamp spots on the shooting site on the lamp spot positioning, thereby improving the lamp spot positioning accuracy. The treatment area is preferably a rectangular area to facilitate positioning of the lamp spot in a subsequent step. The specific method for selecting the lamp point region can adopt the method in the prior art. In other embodiments, step S102 may be omitted, and the lamp point image 100 obtained by shooting may be used directly.
In step S103, the lamp point image 100 is placed in a two-dimensional coordinate system, and the start lamp point coordinates 101 and the end lamp point coordinates 102 in the lamp point array are obtained. Fig. 2 is a schematic flowchart of step S103 in fig. 1. Fig. 5 is an enlarged schematic view of the lamp dot image of the area a in fig. 4 after removing the background pixels. Referring to fig. 1, fig. 2, fig. 4 and fig. 5, in step S1031, the lamp point image 100 is first placed in one quadrant of the two-dimensional coordinate system, and the lamp point image 100 is exemplarily placed in the fourth quadrant of the two-dimensional coordinate system in this embodiment.
Next, as step S1032, the lamp point image 100 is subjected to binarization processing to obtain a binarized image (not shown) composed of light pixel points and dark pixel points corresponding to the lamp point image 100. The binarized image corresponds to the lamp point image 100 and is positionally superposed in the two-dimensional coordinate system. The binarization process may be performed by a threshold value setting method. Specifically, the luminance levels of the pixels in the image typically range from 0 to 21, in this embodiment, n is 14, and usually n is 8, i.e. the brightness level of the pixel point ranges from 0 to 255. In the following, 8 bits are taken as an example, and white is 255 and black is 0. 127 is set as a threshold value, so that the pixel points with the brightness level lower than or equal to 127 are set as dark pixel points, namely the pixel points with the brightness level set as 0, and the pixel points with the brightness level higher than 127 are set as bright pixel points, namely the pixel points with the brightness level set as 255, thereby completing the binarization processing. The binarization processing can simplify the image, so that the image can be positioned more accurately and the calculation amount is reduced.
Next, in step S1033, in the binarized image, the coordinates of the bright pixel point closest to the origin of the two-dimensional coordinate system are selected as the reference coordinates 201 of the starting lamp point. In step S1034, the actual coordinates 202 of the starting lamp point are obtained in the lamp point image 100 according to the reference coordinates 201 of the starting lamp point.
Similarly to the start lamp point 101, in step S1035 and step S1036, in the binarized image, the coordinates of the bright pixel point farthest from the origin of the two-dimensional coordinate system are selected as the reference coordinates of the end lamp point 102, and the actual coordinates of the end lamp point are obtained in the lamp point image 100 according to the reference coordinates of the end lamp point 102.
The method for selecting the bright pixel points closest to or farthest from the origin of the two-dimensional coordinate system can be realized by calculating the distances from all the bright pixel points to the origin, and selecting the bright pixel points with the closest distance and the bright pixel points with the farthest distance from the bright pixel points.
The method of obtaining the actual coordinates from the reference coordinates will be described below by taking the starting lamp point 101 as an example. With the reference coordinate 201 of the starting lamp point as the center, high brightness value pixel points are searched in all pixel points within a preset distance range, and the coordinates of the high brightness value pixel points are set as the actual coordinates 202 of the starting lamp point. The high brightness value pixel points refer to pixel points with the highest brightness value within a preset distance range.
It should be noted that, when there are a plurality of high-luminance-value pixel points, the luminance values of a plurality of neighboring pixel points adjacent to each high-luminance-value pixel point in the plurality of high-luminance-value pixel points are respectively calculated, for example, the total luminance value or the average luminance value of 4 or 8 neighboring pixel points adjacent to each high-luminance-value pixel point is taken, the luminance values of the neighboring pixel points are compared, and the coordinate of the high-luminance-value pixel point with the highest luminance value of the neighboring pixel points is set as the actual coordinate. Thus, errors can be further reduced, and the positioning accuracy is improved.
In a similar manner, the actual coordinates of the end light point 102 may be obtained. The method described above may also be used in conjunction with the reference coordinate acquisition of the actual coordinates hereinafter.
In other embodiments, the start light point coordinates 101 and the end light point coordinates 102 may be obtained by other conventional methods, for example, positioning by using a shooting mark.
Next, in step S104, at least one of a row light point pitch between adjacent light points in the row direction and a column light point pitch between adjacent light points in the column direction of the light point array is obtained. In this embodiment, the lamp pitch between adjacent lamps is calculated according to the actual coordinates 202 of the start lamp, the actual coordinates of the end lamp 102, the number of the row lamps and the number of the row lamps. The number of the row lamps and the number of the column lamps are known, and the coordinates of the start lamp 101 and the coordinates of the end lamp 102 are obtained in step S103, so as to obtain the distance between the start lamp 101 and the end lamp 102 in the row direction or the column direction, and thus the lamp distance between the adjacent lamps is obtained by calculating the number of the row lamps or the column lamps. In general, a row lamp pitch between adjacent lamp points in a row direction is the same as a column lamp pitch between adjacent lamp points in a column direction, and therefore, in order to calculate the lamp pitch more accurately, the lamp pitch may be set to an average value of the row lamp pitch between the adjacent lamp points in the row direction and the column lamp pitch between the adjacent lamp points in the column direction. In other embodiments, the row and column light point distances may be recorded separately and used when calculating the corresponding row or column. In other embodiments, only one of the row and column light point pitches may be obtained for use as the light point pitch. The manner of obtaining the lamp pitch is not limited to the above-described method, and other methods may be adopted, for example, by locating the first several lamp spots and then measuring the lamp pitch.
In step S105, starting with the position of the start lamp point coordinate, the reference coordinate is calculated and the actual coordinate is obtained in a loop to obtain the actual coordinate of the first n rows of lamp points.
In this embodiment, the actual coordinates of all the lamp points in the row are sequentially obtained in row units, and then the actual coordinates of the lamp points in the next row are obtained until the actual coordinates of the lamp points in the first n rows are obtained. In other embodiments, the actual coordinates of all the lamp points in the current row may be sequentially obtained and then the actual coordinates of the lamp points in the next row may be obtained. The direction parallel to the extending direction of the light point array row is defined, the direction pointing to the first positioned light point in the row is the row head direction, and the direction opposite to the row head direction is defined as the row tail direction. Accordingly, a direction extending parallel to the array of light spots is defined, and a direction pointing to the first positioned light spot of the present column is a column head direction, and a direction opposite to the column head direction is defined as a column tail direction.
Fig. 3 is a schematic flowchart of step S105 in fig. 1. As shown in fig. 3, first, in step S1051, the reference coordinates of the current lamp point are calculated, and the current lamp point is the next lamp point to obtain the coordinates. And moving a lamp point distance to the tail direction at the position of the actual coordinate of the adjacent lamp point in the head direction of the current lamp point so as to obtain the reference coordinate of the current lamp point. Then, in step S1052, an actual coordinate is obtained, that is, in the light point image 100, a threshold is first calculated and set according to the distribution condition of the pixel brightness of the starting light point 101, then the reference coordinate of the current light point is used as the center, the brightness values of all the pixel points within the preset distance range are calculated, the accumulated brightness value can be calculated, the average brightness value can also be calculated, when the brightness value is higher than the calculated and set threshold, the reference coordinate of the current light point is used as the center, the high brightness pixel points are searched in all the pixel points within the preset distance range, and the coordinate of the high brightness pixel point is set as the actual coordinate of the current light point.
And when the brightness value is lower than the calculated set threshold value, judging that the current lamp point is a blind point, namely the current lamp point cannot be lightened, and avoiding searching for high-brightness-value pixel points. That is, when step S1052 is executed, the actual coordinates cannot be acquired from the reference coordinates, and thus the actual coordinates are replaced with the reference coordinates. Therefore, the method provided by the invention can acquire the coordinates of the blind spot, while the prior art cannot acquire the coordinates of the blind spot through a template matching positioning rule.
The actual coordinates of the first n rows of light points are obtained by executing the steps S1051 and S1052 in a loop starting from the position of the start light point coordinate 101.
The specific steps for obtaining the actual coordinates of the lamp points will be described with reference to fig. 3, 4 and 5. After obtaining the actual coordinates 202 of the starting lamp point, the second lamp point 103 is the current lamp point, and the starting lamp point 101 is the adjacent lamp point in the heading direction. Step S1051 is executed to calculate the reference coordinate 204 of the second light point, i.e. the light point distance 203 obtained in step S104 is moved in the row tail direction at the position of the actual coordinate 202 of the start light point, thereby obtaining the reference coordinate 204 of the second light point. Step S1052 is executed to obtain the actual coordinates 205 of the second light point according to the reference coordinates 204 of the second light point, and the method for obtaining the actual coordinates may refer to the method for obtaining the actual coordinates according to the reference coordinates described above, which is not described herein again.
In order to avoid the influence of moire fringes or lens distortion during actual shooting, the lamp points in the same row or column in the lamp point image usually have angular deviation, so that the lamp points are in a U shape, and particularly when the number of the lamp points is large, the situation is more common.
In order to solve the above problem, the present invention performs the compensation of the lamp dot offset angle, that is, calculates the lamp dot offset angle when the lamp dot pitch is moved in step S1051, and moves the lamp dot pitch after the compensation calculation according to the lamp dot offset angle. Taking the lamp point in fig. 5 as an example, the third lamp point 104 is the current lamp point, and the second lamp point 103 is the adjacent lamp point in the head direction of the current lamp point. After the actual coordinate 205 of the second light point is obtained, the light point offset angle 206 of the second light point 103 is calculated, and at this time, the light point offset angle 206 is a row direction offset angle of a line connecting the actual coordinates of the adjacent light points in the row head direction of the current light point and the actual coordinates of the row head light point, that is, an included angle α between a line connecting the actual coordinate 205 of the second light point and the actual coordinate 202 of the initial light point and a line direction straight line. Step S1051 is executed, the lamp point distance 203 is compensated according to the lamp point offset angle 206 at the actual coordinate 205 position of the second lamp point, and the compensated lamp point distance 203 is moved to obtain the reference coordinate 207 of the third lamp point of the current lamp point, i.e. the lamp point distance 203 is not moved in the row direction at the actual coordinate 205 position of the second lamp point, but the lamp point distance 203 after the lamp point offset angle 206 is moved. That is, the lamp dot pitch 203 obtained in step S104 is multiplied by the sine value and the cosine value of the lamp dot offset angle 206 to obtain the row component and the column component of the compensated lamp dot pitch in the row direction and the column direction, and the row component and the column component are shifted in the row direction and the column direction, respectively. In this embodiment the row component is cos (- α) and thus shifted in the x direction by cos (- α) times the shifted spot spacing 203, and the column component is sin (- α) and thus shifted in the y direction by sin (- α) times the shifted spot spacing 203.
In other embodiments, where the coordinates of the lamp points are calculated in units of columns, the lamp point offset angle may be defined as a column direction offset angle of a line connecting the actual coordinates of the neighboring lamp points in the column direction of the headlight point and the actual coordinates of the column head lamp point. Through the compensation of the lamp point deviation angle, the lamp point is more accurately positioned.
When the actual coordinates of a plurality of lamps in the same row or column are obtained, the lamp offset angle is a row offset angle of the actual coordinate of the adjacent lamp in the row head direction of the current lamp and the actual coordinate connecting line of the current lamp at the head direction of the current lamp, wherein the interval between the actual coordinate of the adjacent lamp in the row head direction of the current lamp and the actual coordinate connecting line of the current lamp is more than or equal to 3 lamps, or the lamp offset angle is a column offset angle of the actual coordinate of the adjacent lamp in the column head direction of the current lamp and the actual coordinate connecting line of the lamp at the head direction of the column head direction of the current lamp.
Preferably, the lamp offset angle is calculated by selecting the fifth lamp point. For example, when the actual coordinates of 6 light points in the same row are obtained, the current light point is the seventh light point, the light point adjacent to the row head direction of the current light point is the sixth light point, and the fifth light point at intervals in the row head direction of the current light point is the second light point, then the offset angle is the row direction offset angle of the relation between the actual coordinates of the sixth light point and the actual coordinates of the second light point.
And the fifth lamp point is selected to calculate the lamp point offset angle, so that the trend of the lamp point direction can be accurately mastered as much as possible, and the angle error caused by the overlong straight line between the lamp points can be avoided.
And after the actual coordinates of the first n rows of light points are acquired, executing the step S106 to confirm the first light point. The step S106 is used to determine that the lamp spot is a blind spot, and the error may occur when the lamp spot is located.
Specifically, at the position of the actual coordinate of the head lamp point, the distance between the lamp points moving in the column head direction is used as the reference coordinate of the fitting head lamp point, and the actual coordinate of the fitting head lamp point is obtained according to the reference coordinate of the fitting head lamp point to judge whether the starting lamp point is the head lamp point. In this embodiment, the first 5 lamp points in the first row are selected, and the distance between the lamp points moving in the column-head direction is taken as the reference coordinate of the fitting first row lamp point at the position of the actual coordinate thereof, the actual coordinate of the fitting first row lamp point is obtained according to the reference coordinate of the fitting first row lamp point, the way of calculating the reference coordinate and the way of obtaining the actual coordinate may refer to the above description of steps S1051 and S1052, and the compensation of the lamp point offset angle is also applicable in step S106, and is not described herein again.
In other embodiments, it may also be determined whether the starting lamp point is the first lamp point by obtaining the actual coordinates of the fitting first lamp point, that is, at the position of the actual coordinates of the first lamp point, the distance between the lamp points moving in the column-head direction is used as the reference coordinates of the fitting first lamp point, and the actual coordinates of the fitting first lamp point are obtained according to the reference coordinates of the fitting first lamp point to determine whether the starting lamp point is the first lamp point.
And when the actual coordinates of the fitting first row lamp points or the actual coordinates of the fitting first row lamp points are obtained, judging that the starting lamp points are not the first lamp points, entering step S107, performing linear fitting by using at least one of the actual coordinates of the fitting first row lamp points and the actual coordinates of the fitting first row lamp points to obtain the coordinates of the first lamp points, and recalculating the actual coordinates of all the lamp points by using the coordinates of the first lamp points as the start. Specifically, the actual coordinates of the first row of fitting lamp points and the actual coordinates of the first column of fitting lamp points are calculated. And if the actual coordinates of the fitting first row lamp points and the actual coordinates of the fitting first row lamp points exist, performing straight line fitting by using the actual coordinates of the fitting first row lamp points and the actual coordinates of the fitting first row lamp points, wherein the intersection point of the two straight lines is the coordinates of the first lamp points. And if the actual coordinate of the fitting first row lamp point does not exist or the actual coordinate of the fitting first row lamp point does not exist, performing straight line fitting by using the actual coordinate of the existing first row lamp point or the actual coordinate of the existing first row lamp point and the actual coordinate of the existing fitting first row lamp point or the actual coordinate of the fitting first row lamp point, wherein the intersection point of the two straight lines is the coordinate of the first lamp point. And after the coordinates of the head lamp point are obtained, the steps from the step S105 are executed again. In other embodiments, the steps from step S104 may be executed again, that is, the lamp point distance is calculated according to the head lamp point coordinates and the tail lamp point coordinates, so as to perform more accurate positioning on the lamp points.
And when the actual coordinates of the fitting first-row lamp points cannot be obtained, judging that the starting lamp point is the first lamp point, and entering step S108 to continuously obtain the actual coordinates of the subsequent lamp points. The specific method for continuously acquiring the actual coordinates of the subsequent light points is similar to the method for acquiring the actual coordinates of the first n rows of light points in step S105, and is not described herein again.
As shown in fig. 4, in this embodiment, the actual coordinates of the first-row fitting lamp point cannot be obtained after step S106 is executed, so that the starting lamp point 101 is determined to be the first lamp point, and step S108 is performed until the actual coordinates of all the lamp points are obtained.
It should be noted that, in order to prevent program error, the first lamp point confirmation is performed in an infinite loop, and thus step S106 is performed 3 times at most. If the number of times exceeds 3, an error is reported and the cycle is skipped.
In other embodiments, steps S106 and S107 may be omitted, and the positioning process of the lamp point coordinates may be simplified.
According to the description of the LED display screen lamp point positioning method, the LED display screen lamp point positioning method does not need similarity matching, and is not affected by the image characteristics of actual lamp points. By calculating the reference coordinates and acquiring the actual coordinates, the actual coordinates of the lamp points can be accurately acquired even if the lamp point images are deformed due to lens distortion and the like, and the coordinates of the blind points can be positioned. The offset angle compensation of the lamp points is carried out, so that the lamp points are positioned more accurately, and the method is particularly suitable for the condition that the micro-deformation distribution of the lamp points is easy to occur in a large number of lamp points. For the confirmation of the head lamp point, the error caused by the blind spot of the head lamp point can be effectively prevented.
The invention also provides a device for positioning the lamp points of the LED display screen, and FIG. 5 is a schematic module diagram of the device for positioning the lamp points of the LED display screen. As shown in fig. 5, the LED display panel lamp positioning device 300 of the present invention includes a lamp unit 301, an image capturing unit 302, a storage unit 303, and an execution unit 304. The lighting unit 301 is used to light the lamp of the LED display panel. The image capturing unit 302 is used to capture a lamp point image of the LED display screen being lit. The storage unit 303 is used to store programs. The execution unit 304 is configured to execute the program in the storage unit 303, and the program in the storage unit 302 is executed by the processing unit 304 to implement the steps of the LED display lamp point positioning method. For the specific steps, reference is made to the above description of the LED display screen lamp point positioning method, which is not repeated herein.
The invention is an application of the LED display screen lamp point positioning technology. In the implementation process of the invention, the application of the functional module of the LED display screen lamp point positioning device can be related. After a careful reading of the application documents and an accurate understanding of the principles of the invention and its objects, one skilled in the art can, in conjunction with the prior art, utilize his or her own software programming skills and knowledge of the LED display screen detection device to implement the invention. The structure of each module of the aforementioned LED display lamp positioning device can refer to the structure in the prior art, and the applicant does not list it any more as long as the invention is referred to in the present application document.
The above is only a specific application example of the present invention, and the protection scope of the present invention is not limited in any way. In addition to the above embodiments, the present invention may have other embodiments. All technical solutions formed by using equivalent substitutions or equivalent transformations fall within the scope of the present invention.

Claims (12)

1. A method for positioning LED display screen lamp points is characterized by comprising the following steps:
searching first and last lamp points, namely placing a lamp point image which is displayed by pixel points and corresponds to the LED display screen in a quadrant of a two-dimensional coordinate system, and acquiring the actual coordinates of the initial lamp point and the actual coordinates of the last lamp point in a lamp point array;
a step of obtaining a lamp point distance, which is to obtain at least one of a row lamp point distance between adjacent lamp points in the row direction and a column lamp point distance between adjacent lamp points in the column direction of the lamp point array;
calculating a reference coordinate, namely moving the distance between the lamp points in the row direction or the column direction at the position of the actual coordinate of the adjacent lamp point in the row direction or the column direction of the lamp point to obtain the reference coordinate of the next lamp point;
acquiring an actual coordinate, namely searching a high-brightness pixel point from all pixel points within a preset distance range by taking a reference coordinate of a lamp point as a center in the lamp point image, and setting the coordinate of the high-brightness pixel point as the actual coordinate, wherein the high-brightness pixel point refers to the pixel point with the highest brightness value within the preset distance range;
and circularly executing the step of calculating the reference coordinates and the step of acquiring the actual coordinates by taking the position of the initial lamp point coordinates as the initial until the actual coordinates of all the lamp points are acquired one by one.
2. The LED display screen lamp spot positioning method according to claim 1,
in the step of obtaining the actual coordinate, when a plurality of high-brightness-value pixel points exist, the brightness values of a plurality of adjacent pixel points of each high-brightness-value pixel point in the plurality of high-brightness-value pixel points are compared, and the coordinate of the high-brightness-value pixel point with the highest brightness value of the adjacent pixel points is set as the actual coordinate.
3. The LED display screen lamp spot positioning method according to claim 1,
in the step of obtaining the actual coordinate, calculating brightness values of all pixel points within a preset distance range by taking the reference coordinate of the lamp point as a center, and when the brightness values are lower than a preset threshold value, judging the lamp point as a blind point, and replacing the actual coordinate with the reference coordinate.
4. The LED display screen lamp spot positioning method according to any one of claims 1 to 3,
in the step of calculating the reference coordinate, the moving of the lamp point distance includes calculating a lamp point offset angle, and moving the compensated lamp point distance after compensating the lamp point distance according to the lamp point offset angle.
5. The LED display screen lamp spot positioning method according to claim 4,
in the step of calculating the reference coordinate, the lamp point offset angle is a line direction offset angle of the actual coordinate of the adjacent lamp point in the line head direction of the current lamp point and the actual coordinate connecting line of the current lamp point, wherein the interval between the actual coordinate of the adjacent lamp point and the line head direction of the current lamp point is more than or equal to 3 lamp points; alternatively, the first and second electrodes may be,
the lamp point offset angle is a column direction offset angle of a connecting line of actual coordinates of adjacent lamp points in the head direction of the head lamp point row and actual coordinates of 3 or more lamp points in the head direction of the head lamp point row.
6. The LED display screen lamp spot positioning method according to claim 4,
in the step of calculating the reference coordinate, the lamp offset angle is a row direction or column direction offset angle of a line connecting an actual coordinate of a lamp point adjacent to the current lamp point in the row head direction or the column head direction and an actual coordinate of the lamp point adjacent to the current lamp point in the row head direction or the column head direction.
7. The LED display screen lamp spot positioning method according to claim 4,
in the step of calculating the reference coordinate, the lamp point distance is compensated according to the lamp point offset angle, and the lamp point distance after the compensation is moved includes: and multiplying the lamp point distance obtained in the step of obtaining the lamp point distance by the sine value and the cosine value of the lamp point offset angle respectively to obtain a row component and a column component of the compensated lamp point distance in the row direction and the column direction, and moving the row component and the column component in the row direction and the column direction respectively.
8. The method for locating the lamp spot of the LED display screen according to claim 1, further comprising the steps of: and selecting the area, namely performing lamp array area selection processing on the lamp image.
9. The method for locating the lamp spot of the LED display screen according to claim 1, further comprising the steps of: confirming the first lamp point, wherein the distance between the lamp points moving to the column head direction is used as a reference coordinate for fitting the first lamp point at the position of the actual coordinate of the first lamp point, and acquiring the actual coordinate of the fitting first lamp point according to the reference coordinate of the fitting first lamp point to judge whether the initial lamp point is the first lamp point; alternatively, the first and second electrodes may be,
and moving the distance between the lamp points in the row head direction at the position of the actual coordinate of the first lamp point to serve as a reference coordinate for fitting the first lamp point, and acquiring the actual coordinate of the fitting first lamp point according to the reference coordinate of the fitting first lamp point to judge whether the initial lamp point is the first lamp point.
10. The method according to claim 9, wherein the actual coordinates of the fitted first row of light points or the actual coordinates of the fitted first column of light points are obtained, and it is determined that the starting light point is not a first light point, and at least one of the actual coordinates of the fitted first row of light points and the actual coordinates of the fitted first column of light points is subjected to straight line fitting to obtain the coordinates of the first light point, and the actual coordinates of all the light points are recalculated starting from the coordinates of the first light point.
11. The method for locating the lamp point on the LED display screen according to claim 9, wherein if the actual coordinates of the first row of the fitting lamp point or the actual coordinates of the first column of the fitting lamp point cannot be obtained, it is determined that the starting lamp point is the first lamp point, and the actual coordinates of the subsequent lamp points are continuously obtained.
12. The utility model provides a LED display screen lamp point positioner which characterized in that includes:
a storage unit for storing a program, wherein the program realizes the steps of the LED display screen lamp point positioning method in any one of claims 1 to 11 when being executed by the processing unit;
and an execution unit configured to execute the program in the storage unit.
CN201710364871.5A 2017-05-22 2017-05-22 LED display screen lamp point positioning method and device Active CN107230442B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710364871.5A CN107230442B (en) 2017-05-22 2017-05-22 LED display screen lamp point positioning method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710364871.5A CN107230442B (en) 2017-05-22 2017-05-22 LED display screen lamp point positioning method and device

Publications (2)

Publication Number Publication Date
CN107230442A CN107230442A (en) 2017-10-03
CN107230442B true CN107230442B (en) 2020-10-27

Family

ID=59933355

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710364871.5A Active CN107230442B (en) 2017-05-22 2017-05-22 LED display screen lamp point positioning method and device

Country Status (1)

Country Link
CN (1) CN107230442B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111951693B (en) * 2019-05-17 2022-11-15 浙江宇视科技有限公司 Array device positioning method and device, storage medium and electronic equipment
CN112785963B (en) * 2019-11-06 2022-02-08 杭州海康威视数字技术股份有限公司 LED lamp bead positioning method and device and storage medium
CN112687231B (en) * 2020-12-31 2022-10-04 深圳Tcl数字技术有限公司 Brightness and chrominance data extraction method, equipment and computer readable storage medium
CN113299231B (en) * 2021-05-31 2023-02-24 浙江大华技术股份有限公司 Method and device for adjusting light-emitting parameters, storage medium and electronic device
CN113793320A (en) * 2021-09-14 2021-12-14 西安诺瓦星云科技股份有限公司 Method and device for determining offset of display unit, electronic equipment and storage medium
CN114927090B (en) * 2022-05-30 2023-11-28 卡莱特云科技股份有限公司 Method, device and system for ordering lamp points in special-shaped LED display screen
CN114974090A (en) * 2022-05-31 2022-08-30 深圳市裕铭数智装备科技有限公司 Method and system for processing pixel change wiring diagram of special-shaped LED screen
CN117012143B (en) * 2023-08-21 2024-01-05 中山市智牛电子有限公司 Point tracing method and point tracing system for LED display screen

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103778887B (en) * 2013-03-21 2016-05-18 西安电子科技大学 The brightness correcting method of LED display unit and device
CN104279958B (en) * 2014-10-24 2017-07-21 西安诺瓦电子科技有限公司 LED display locus detection method and system for instructing correction
CN105185302B (en) * 2015-08-28 2018-01-09 西安诺瓦电子科技有限公司 Lamp position deviation modification method and its application between monochrome image
CN105551024B (en) * 2015-12-07 2019-02-26 西安诺瓦电子科技有限公司 LED display pointwise correction zone location judgment method and its application

Also Published As

Publication number Publication date
CN107230442A (en) 2017-10-03

Similar Documents

Publication Publication Date Title
CN107230442B (en) LED display screen lamp point positioning method and device
JP4907725B2 (en) Calibration device, defect detection device, defect repair device, display panel, display device, calibration method
JP3793100B2 (en) Information processing method, apparatus, and recording medium
US20070091174A1 (en) Projection device for three-dimensional measurement, and three-dimensional measurement system
CN109872309B (en) Detection system, method, device and computer readable storage medium
CN111508032B (en) Method for sorting feature points in camera calibration process
CN103997631A (en) Method and system for extracting position contour of LEDs dot by dot based on camera shooting
CN112289209B (en) LED display box body and display screen abutted pixel interval brightness correction method
CN112785545B (en) Abnormal lamp bead positioning method and device and storage medium
CN108257186B (en) Method and device for determining calibration image, camera and storage medium
CN113012096B (en) Display screen sub-pixel positioning and brightness extraction method, device and storage medium
CN112848281B (en) Light compensation method for photocuring 3D printer
CN114638824B (en) Fusion method, device, equipment and medium for collecting images based on AOI equipment
CN108871185B (en) Method, device and equipment for detecting parts and computer readable storage medium
CN111932504A (en) Sub-pixel positioning method and device based on edge contour information
CN112985778A (en) Positioning method of test chart, terminal and storage medium
JP2011101265A (en) Method and device for calculation of calibration information, and wide angle image processing apparatus
CN111699513B (en) Calibration plate, internal parameter calibration method, machine vision system and storage device
CN112292577B (en) Three-dimensional measuring device and method
US20090022406A1 (en) Method for finding specific pattern and method for compensating image offset
CN112785963B (en) LED lamp bead positioning method and device and storage medium
AU2013264673A1 (en) Pattern processing apparatus, pattern processing method, and pattern processing program
CN110543798A (en) two-dimensional code identification method and device
KR101893823B1 (en) Board inspection apparatus and method of compensating board distortion using the same
CN113298076A (en) Method, device, equipment and medium for collecting correction data of plane processing equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant