Movatterモバイル変換


[0]ホーム

URL:


CN111145674B - Display panel detection method, electronic device and storage medium - Google Patents

Display panel detection method, electronic device and storage medium
Download PDF

Info

Publication number
CN111145674B
CN111145674BCN201911375353.9ACN201911375353ACN111145674BCN 111145674 BCN111145674 BCN 111145674BCN 201911375353 ACN201911375353 ACN 201911375353ACN 111145674 BCN111145674 BCN 111145674B
Authority
CN
China
Prior art keywords
panel
display
centroid
pictures
picture
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
CN201911375353.9A
Other languages
Chinese (zh)
Other versions
CN111145674A (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.)
Shanghai Sigriner Step Electric Co Ltd
Original Assignee
Shanghai Sigriner Step Electric 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 Shanghai Sigriner Step Electric Co LtdfiledCriticalShanghai Sigriner Step Electric Co Ltd
Priority to CN201911375353.9ApriorityCriticalpatent/CN111145674B/en
Publication of CN111145674ApublicationCriticalpatent/CN111145674A/en
Application grantedgrantedCritical
Publication of CN111145674BpublicationCriticalpatent/CN111145674B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The invention discloses a detection method of a display panel, electronic equipment and a storage medium, wherein the detection method of the display panel comprises the following steps: after each display tube is conducted and conducted only once, N panel pictures are obtained; calculating the centroid positions of nixie tubes in N panel pictures according to the positions of the lighted display tubes in the panel pictures, and judging whether the centroid positions exist in the N panel pictures or not and whether the centroid positions in the panel pictures are different or not; if at least 1 panel picture in the N panel pictures has no centroid position, the display tube conducted in the panel picture without the centroid position is abnormal in display; if centroid positions exist in the N panel pictures and the centroid positions are different, displaying all the display tubes normally; if the centroid positions exist in all the N panel pictures, and the centroid positions in at least two panel pictures are the same, displaying the abnormal display of all the display tubes in the panel pictures with the same centroid positions. The invention can improve the detection efficiency of the display panel.

Description

Display panel detection method, electronic device and storage medium
Technical Field
The present invention relates to the field of machine vision, and in particular, to a method for detecting a display panel, an electronic device, and a storage medium.
Background
With the development of machine vision technology, the testing industry increasingly adopts machine vision to replace manual detection. For most servo products, a display panel is provided. Because the nixie tube has the characteristics of low cost and durability, the existing display panels are mostly nixie tube display panels, and data display is performed by opening and closing the multi-section nixie tube.
One way of detecting the nixie tube is manual visual inspection, namely, a detector judges whether the nixie tube is normal or not, and the time and the labor are wasted and the accuracy is required to be improved. In addition, the special camera is used for picture detection, so that uncertainty of manual detection is eliminated, however, the conventional detection method lacks versatility, has a good effect under the condition of not detecting the digital tube to be bright, and is difficult to detect the condition that the digital tube is bright at the same time due to the reasons of continuous welding and the like, namely the detection effect of the prior art needs to be improved.
Disclosure of Invention
The invention aims to provide a detection method of a display panel, electronic equipment, namely a storage medium, which are used for improving the detection accuracy and the detection efficiency of the display panel.
In order to solve the above technical problems, an embodiment of the present invention provides a method for detecting a display panel, including: the display panel comprises a nixie tube, the nixie tube comprises N sections of display tubes, and the detection method comprises the following steps: a section of display tube in the nixie tube is conducted each time, and the camera is triggered to shoot the display panel to obtain a panel picture; after each display tube is conducted and conducted only once, N panel pictures are obtained; calculating the centroid positions of nixie tubes in N panel pictures according to the positions of the lighted display tubes in the panel pictures, and judging whether the centroid positions exist in the N panel pictures or not and whether the centroid positions in the panel pictures are different or not; if at least 1 panel picture in the N panel pictures has no centroid position, the display tube conducted in the panel picture without the centroid position is abnormal in display; if centroid positions exist in the N panel pictures and the centroid positions are different, displaying all the display tubes normally; if the centroid positions exist in all the N panel pictures, and the centroid positions in at least two panel pictures are the same, displaying the abnormal display of all the display tubes in the panel pictures with the same centroid positions.
The embodiment of the invention also provides electronic equipment, which comprises: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of detecting a display panel as described above.
Embodiments of the present invention also provide a non-volatile storage medium storing a computer-readable program for causing a computer to execute the method of detecting a display panel as above.
Compared with the prior art, the technical scheme provided by the embodiment of the invention has the following advantages:
in the embodiment, each section of display tube is controlled to be conducted only once, and N panel pictures are obtained; judging whether the centroid positions exist in the N panel pictures or not is convenient for judging that the display tubes corresponding to the panel pictures without the centroid positions are in lack of welding on one hand; on the other hand, whether each section of display tube can be lightened or not can be judged, so that whether the plurality of sections of display tubes are lightened simultaneously or not due to continuous welding and other reasons can be judged in the subsequent steps. In addition, whether the centroid positions in the panel pictures are different or not is judged, and the display tubes in the panel pictures with the same centroid positions are judged to be welded. When a plurality of display tubes are welded, the centroid positions of the corresponding panel pictures of the welded display tubes are identical, so that whether the welding problem exists can be accurately judged by judging whether the centroid positions exist and only, the calculation amount of the judging process is small, and the detection efficiency is high.
In addition, the centroid location includes centroid coordinates; judging whether the centroid positions in the panel pictures are all different or not, comprising: selecting the centroid coordinate of one panel picture as a target coordinate, and sequentially matching the target coordinate with the centroid coordinates of the rest panel pictures according to a preset matching condition; if the centroid coordinates meeting the matching conditions do not exist, the centroid coordinates in the panel picture are different; if there are centroid coordinates satisfying the matching condition, there are centroid coordinates of the same panel picture. By judging whether the centroid coordinates in the panel picture are different, the display tube which is subjected to continuous welding can be accurately detected.
In addition, the matching conditions include: respectively adding and subtracting preset values T to X values and Y values of target coordinates (X, Y) to obtain matched coordinates (X-T-X+T, Y-T-Y+T); if the centroid coordinates are within the range of the matched coordinates, the display tube corresponding to the position centroid coordinates and the target coordinates within the range of the matched coordinates is judged to display abnormality. The inaccuracy of the detection result caused by the difference of the panel pictures can be avoided, namely the detection accuracy of the display panel can be improved.
In addition, the display panel comprises M nixie tubes; wherein M is more than or equal to 1; each time a section of display tube in each nixie tube is conducted, a camera is triggered to shoot a display panel to obtain a panel picture; after each display tube is conducted and conducted only once, N panel pictures are obtained; calculating the centroid positions of the lighted display tubes in each nixie tube in each panel picture, and judging whether M centroid positions exist in each panel picture or not, and whether M centroid positions corresponding to the same nixie tube are different or not; if at least 1 panel picture in the N panel pictures has no M centroid positions, the display tube conducted in the nixie tube without the centroid positions in the panel pictures without the M centroid positions is abnormal in display; if M centroid positions exist in the N panel pictures and the centroid positions corresponding to the same nixie tube are different, displaying all the display tubes normally; if M centroid positions exist in the N panel pictures and the same nixie tube has the same centroid position, all display tubes with the same centroid position display abnormality. The display tube is lightened simultaneously due to the fact that whether the nixie tube in the panel picture has the continuous welding or not can be detected respectively, and the detection efficiency is high; the invention is applicable to various types of display panels, namely to display panels comprising nixie tubes with different numbers and sizes.
In addition, after obtaining the N panel pictures, the method further comprises the following steps: template matching is carried out on N panel pictures, and the method specifically comprises the following steps: selecting one picture from the N panel pictures as a target picture; inquiring a preset template library according to the target picture, and acquiring a target template picture corresponding to the target picture; and respectively positioning the nixie tubes in the panel pictures according to the configuration files corresponding to the target template pictures.
In addition, after obtaining the N panel pictures and before performing template matching on the N panel pictures, the method further includes: and performing image color filtering processing on the N panel pictures. The color filtering process can reduce useless information in the panel picture, and further improve the template matching efficiency.
In addition, after the image color filtering processing is performed on the N panel pictures, the method further comprises: and performing image binarization processing on the N panel pictures. The binarization processing can highlight the lighted display tube, and is convenient for positioning the display tube.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which the figures of the drawings are not to be taken in a limiting sense, unless otherwise indicated.
Fig. 1 is a flowchart of a method for detecting a display panel according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a nixie tube according to a first embodiment of the present invention;
FIG. 3 is a schematic view of a display panel with different states according to a first embodiment of the present invention;
FIG. 4 is a schematic diagram of centroid coordinates of each of the display panels of FIG. 3;
FIG. 5 is a schematic view of a display panel with different states according to a first embodiment of the present invention;
FIG. 6 is a schematic diagram of centroid coordinates of each of the display panels of FIG. 5;
fig. 7 is a flowchart of a method for detecting a display panel according to a second embodiment of the present invention;
FIG. 8 is a schematic diagram of a display panel with different states according to a second embodiment of the present invention;
FIG. 9 is a schematic diagram of centroid coordinates of each of the display panels of FIG. 8;
fig. 10 is a flowchart of a method for detecting a display panel according to a third embodiment of the present invention;
fig. 11 is a structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
As known from the background art, the detection efficiency and accuracy of the existing display panel still need to be improved. Specifically, in the prior art, one detection mode is a manual visual inspection mode, namely an operator visually judges whether the nixie tube is good or not, the detection efficiency is low, and the detection accuracy is to be improved; another detection mode is based on a picture comparison mode of machine vision, namely, all nixie tubes on a display panel are lightened, and a special camera is used for photographing the display panel; and comparing the shot picture with a display panel picture which works normally, and further detecting the nixie tube which works abnormally. The detection method for picture contrast has good detection effect on the non-brightness of a certain section or a plurality of sections of nixie tubes, but has unsatisfactory detection effect on the condition that a plurality of sections of nixie tubes are simultaneously brightness caused by continuous welding and the like.
In order to solve the above problems, an embodiment of the present invention provides a method for detecting a display panel, which controls each section of display tube to be turned on only once, and obtains N panel pictures; by judging whether the centroid positions of the N panel pictures exist, whether each section of display tube can be lightened can be judged, so that whether the continuous welded display tube exists in the subsequent steps can be judged conveniently; in addition, by judging whether the centroid positions of the N panel pictures are different, whether the display tube is simultaneously lightened due to continuous welding and other reasons can be accurately judged, and the detection process only needs to calculate whether the same centroid coordinate calculated amount exists or not, so that the detection efficiency is higher.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, those of ordinary skill in the art will understand that in various embodiments of the present invention, numerous technical details have been set forth in order to provide a better understanding of the present application. However, the technical solutions claimed in the present application can be implemented without these technical details and with various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not be construed as limiting the specific implementation of the present invention, and the embodiments can be mutually combined and referred to without contradiction.
Fig. 1 is a flowchart of a method for detecting a display panel according to a first embodiment of the present invention, and refer to fig. 1.
Step S101, a section of display tube in each digital tube is conducted each time, and a camera is triggered to photograph a display panel to obtain a panel picture; and after each display tube is conducted and conducted only once, N panel pictures are obtained.
Specifically, the display panel comprises nixie tubes, and each nixie tube comprises N sections of display tubes; n is more than or equal to 1. Most of the servo devices are provided with a display panel including a plurality of nixie tubes, each of which includes a plurality of display tubes, and the current state of the servo device is displayed by controlling the lighting and closing of the respective display tube.
In practice, referring to FIG. 2, each digital tube generally comprises 8 segments of display tubes. The following examples will be described with respect to a nixie tube comprising an 8-segment display tube.
Specifically, referring to fig. 3, when the display panel includes a nixie tube, a section of the display tube in the nixie tube is turned on, and the display panel is photographed; changing the display state of the display panel, conducting the other section of display tube in the nixie tube again, and photographing the display panel again; and the display state of the display panel is continuously changed and the display panel is photographed by analogy until each section of display tube is conducted and only conducted once, and finally 8 panel pictures can be obtained.
It should be noted that, the camera in this embodiment is a fixed focal length camera, and the photographing resolution reaches 720P, so as to meet the detection requirement.
In this embodiment, the turn-on sequence of the display tube may be random or may be turned on according to a preset sequence.
Step S102, calculating the centroid positions of nixie tubes in N panel pictures according to the positions of the lighted display tubes in the panel pictures, and judging whether the centroid positions exist in the N panel pictures.
In this embodiment, the control display panel turns on a section of display tube, and the following situations occur: only the turned-on display tube is turned on, the turned-on display tube is not turned on, and both the turned-on display tube and other non-turned-on display tubes are turned on; specifically, only the turned-on display tube is lighted, which indicates that the turned-on display tube is displaying normally; the turned-on display tube is not lighted, which indicates that the turned-on display tube is faulty, such as lack of welding; the turned-on display tube is turned on and the other display tubes which are not turned on are turned on, which means that the turned-on display tube and the other display tubes which are turned on simultaneously with the turned-on display tube are welded, that is, the display tubes which are turned on simultaneously are abnormal.
In this embodiment, the specific way of calculating the centroid position of the nixie tube in the panel picture is as follows: the computer acquires N panel pictures and identifies all the lighted display tubes of the display panel area in the panel pictures; acquiring the area of the lighted display tube, and judging whether the area is larger than a preset threshold value or not; if the area is smaller than the preset threshold value, the panel picture does not have a lighted display tube, namely the panel picture does not have a centroid position; if the area is larger than the preset threshold value, the lighted display tube exists in the panel picture, namely the centroid position exists in the panel picture.
And after judging that the centroid position exists in the panel picture, calculating the centroid positions of all the areas of the lighted display tubes. Specifically, if at least 1 panel picture out of the N panel pictures has no centroid position, S103 is executed; if there are centroid positions in all the N panel pictures, step S104 is performed.
In particular, the centroid position may be represented by a centroid coordinate or vector. In this embodiment, the centroid position of the nixie tube is represented by centroid coordinates.
In practical application, the same coordinate system can be established in the N panel pictures, and the machine automatically identifies the area of the lighted display tube and calculates the centroid coordinates of the lighted display tube.
Step S103, judging that the display tube conducted in the panel picture without the centroid position is abnormal in display.
And when judging whether the centroid positions exist in all the panel pictures, if at least 1 panel picture in the N panel pictures does not have the centroid positions, displaying abnormality of a display tube conducted in the panel picture without the centroid positions.
Specifically, the panel picture has no centroid position, which indicates that the display tube is turned on and not lighted, i.e., the turned-on display tube is lack of welding.
Step S104, judging whether the centroid positions in the panel pictures are all different.
In this embodiment, the centroid coordinate of one panel picture may be selected as the target coordinate, and the target coordinate is matched with the centroid coordinates of all the remaining panel pictures according to a preset matching condition; if the centroid coordinates meeting the matching conditions do not exist, whether the centroid positions in the panel pictures are different or not; if there are centroid coordinates satisfying the matching condition, there are centroid positions of the same panel picture.
The matching condition is that the X value and the Y value of the target coordinate (X, Y) are respectively added and subtracted by a preset value T to obtain matching coordinates (X-T-X+T, Y-T-Y+T); if the centroid coordinates are within the range of the matched coordinates, the display tube corresponding to the centroid coordinates and the target coordinates within the range of the matched coordinates is judged to display abnormality.
Specifically, considering that the N panel pictures cannot be completely consistent due to small changes of shooting angles and distances or shake of equipment and camera heads, the centroid coordinates of the same display tube on the display panel in different panel pictures are different, and misjudgment is caused; in order to eliminate calculation errors caused by panel pictures, the range of target coordinates is expanded, and centroid coordinates falling in the range of matched coordinates (X-T-X+T, Y-T-Y+T) are taken as centroid coordinates identical to the target coordinates. Therefore, inaccurate detection results caused by differences of panel pictures can be avoided, and the accuracy of detection of the display panel can be improved.
In practical application, fig. 4 is the centroid coordinates of each panel picture in fig. 3, and referring to fig. 4, the display panel includes a nixie tube, and the centroid coordinates of 8 panel pictures are obtained.
Let the display tube have a height of 8 and a width of 5. Setting the lower left corner of the nixie tube as the origin, and establishing a coordinate system, the centroid coordinates of each panel picture in fig. 3 are (2, 8), (4, 6), (2, 4), (0, 2), (2, 0), (4, 2), (0, 6) and (5, 0) in sequence. After all centroid coordinates are acquired, all centroid coordinates are stored in an array. Specifically, the X values of all the centroid coordinates are stored in an X global variable group, the Y values of all the centroid coordinates are stored in a Y global variable group, and the judgment result of each centroid coordinate is stored in a result global variable group.
Specifically, a first numerical value in an X global variable group and a first numerical value in an array in a Y global variable group are selected as first target coordinates, the first numerical value and the rest of centroid coordinates are sequentially matched, namely, the second centroid coordinates are matched, if centroid coordinates meeting the matching conditions exist, the target coordinates and the centroid coordinates meeting the matching conditions are recorded as 0 in a result global variable group; if there is no centroid coordinate satisfying the matching condition, the target coordinate is marked as 1 in the resultant global variable set. And selecting a second numerical value in the X global variable group and a second numerical value in the array in the Y global variable group as second target coordinates, respectively matching with the third centroid coordinate to the eighth centroid coordinate, and storing the judgment result in the corresponding position of the result global variable group. And the like, converting the numerical value in the result global variable group into decimal number and inputting a display value until the matching of all centroid coordinates is finished, namely, outputting the result corresponding to thenode 0 as abnormal display of a display tube; and 1, the output result corresponding to the display tube is that the display tube displays normally.
Referring to fig. 4, the first set of centroid coordinates (2, 8) is taken as the target coordinates, the target coordinates are compared with the other 7 sets of centroid coordinates, and as a result of the matching, there is no centroid coordinate satisfying the matching condition, and the value of the first set of centroid coordinates (2, 8) in the resultant global variable set is 1. By adopting the same comparison mode, the matching result of the 8 sets of centroid coordinates in fig. 4 is that there are no centroid coordinates satisfying the matching condition, that is, the values of the 8 sets of centroid coordinates in the result global variable set are all 1. This indicates that there are no welded display tubes in fig. 3, i.e. that all display tubes are displayed normally.
In another specific example, fig. 6 is the centroid coordinates of each panel picture in fig. 5, and referring to fig. 6, the display panel includes a nixie tube, and the centroid coordinates of 8 panel pictures are obtained. The centroid coordinates of each panel picture in fig. 3 are (2.5,7), (2.5,7), (2, 4), (0, 2), (2, 0), (4, 2), (0, 6), (5, 0) in order. After all centroid coordinates are acquired, all centroid coordinates are stored in an array. Specifically, the X values of all the centroid coordinates are stored in an X global variable group, the Y values of all the centroid coordinates are stored in a Y global variable group, and the judgment result of each centroid coordinate is stored in a result global variable group.
Referring to fig. 5 and 6, the first panel picture and the second panel picture in fig. 5 are the same as each other, and it is explained that the two display tubes in fig. 5 are welded together, so that the corresponding first set of centroid coordinates in fig. 6 are the same as the second set of centroid coordinates. When the first set of centroid coordinates (2.5,7) is compared with other centroid coordinates as target coordinates, the second set of centroid coordinates is found to be the same as the target coordinates, and the values of the first set of centroid coordinates and the second set of centroid coordinates in the resulting global variable set are both 0. In the same way, the matching result of the other 5 sets of centroid coordinates in fig. 6 is that there are no centroid coordinates satisfying the matching condition, that is, the values of the third to 8 th sets of centroid coordinates in the result global variable set are 1.
Step S105, judging that all display tubes are displayed normally.
In this embodiment, if centroid positions exist in N panel pictures and the centroid positions are different, all display tubes display normally.
Specifically, centroid positions exist in all the N panel pictures and the same centroid positions do not exist, namely all the display tubes are lightened when being conducted, no display tubes are welded, and all the display tubes are displayed normally.
Step S106, judging that all display tubes in the panel pictures with the same centroid position are abnormal in display.
In this embodiment, if the position coordinates exist in all of the N panel images and the centroid positions in at least two panel images are the same, all display tubes in the panel images having the same centroid position are abnormal.
Specifically, the N panel pictures have the same position coordinates, i.e. when a certain section of display tube is turned on, other display tubes are turned on in addition to the turned on display tube, and all the turned on display tubes are welded. When a plurality of display tubes are welded, any one display tube is conducted, all the display tubes which are welded are lightened, the pictures of the corresponding panels of the display tubes which are welded are identical, namely, when the centroid positions of the pictures of the panels are calculated, the centroid positions of the pictures of the panels which are welded are identical; that is, the display tube in the display panel where the same centroid position exists shows abnormality.
In the embodiment, each section of display tube is controlled to be conducted only once, and N panel pictures are obtained; by judging whether the centroid positions of the N panel pictures exist, whether each section of display tube can be lightened can be judged, and whether the continuous welded display tube exists or not can be judged in the subsequent steps conveniently.
In addition, whether the centroid positions in the panel pictures are different or not is judged, and the display tubes in the panel pictures with the same centroid positions are subjected to continuous welding, namely, when a plurality of display tubes are subjected to continuous welding, the centroid positions of the plurality of display tubes which are subjected to continuous welding are the same. Whether the display tube is in lack of welding can be judged by judging whether the centroid position exists, whether the continuous welding problem exists can be accurately judged by judging whether the centroid position exists only, and the calculation amount of the judging process is small and the detection efficiency is high.
In addition, the image acquisition can be completed by adopting the common fixed-focus camera, and the professional camera is not needed, so that the cost is saved on the premise of ensuring the detection efficiency and the accuracy.
The second embodiment of the present invention also provides a method for detecting a display panel, which is substantially the same as the previous embodiment, and is mainly different in that: the first embodiment detects a display panel including one display tube; the second embodiment includes a plurality of nixie tubes for detection.
Fig. 7 is a flowchart of a method for detecting a display panel according to a second embodiment of the present invention.
Step S201, a section of display tube in each nixie tube is conducted each time, and a camera is triggered to photograph a display panel to obtain a panel picture; and after each display tube is conducted and conducted only once, N panel pictures are obtained.
Specifically, the display panel may also include a plurality of nixie tubes. Referring to fig. 8, taking an example that the display panel includes 2 nixie tubes, controlling the display panel to respectively light a section of display tube of each nixie tube, and photographing the display panel to obtain a panel picture; changing the state of nixie tubes in the display panel, namely respectively lighting a section of display tube of each nixie tube again, and photographing the display panel again to obtain a panel picture; and changing the state of the display panel for multiple times and photographing for multiple times until each section of display tube is lightened and only lightened once, so that 8 panel pictures are finally obtained.
In this embodiment, the turn-on sequence of different display tubes in the display panel may be the same or different.
In this embodiment, it should be noted that, for each nixie tube, a section of display tube is turned on every time of photographing, and the display tube turned on every time is different from the display tube turned on every time before, that is, all states of all nixie tubes can be obtained after N times of photographing. Therefore, the number of nixie tubes is not limited in this embodiment, and the number of nixie tubes does not affect the number of pictures that are shot, i.e., this embodiment is applicable to a display panel including any number of nixie tubes, and the application range is wide.
Step S202, calculating the centroid positions of the lighted display tubes in each nixie tube in each panel picture, and judging whether M centroid positions exist in each panel picture.
In this embodiment, when calculating the centroid position of the panel picture, the computer automatically identifies the region where each nixie tube in the panel picture is located, and calculates the centroid position of the display tube that is lit up in each nixie tube, that is, calculates each nixie tube.
Specifically, when a section of display tube of each nixie tube is turned on each time, M centroid positions exist in the panel picture when the turned-on display tube of each nixie tube is turned on, and when M centroid positions exist in all the panel pictures, step S204 is executed; when there is a panel picture that does not contain M centroid positions, step S203 is performed.
Step S203, determining that the display tube turned on in the panel picture without the centroid position is abnormal.
In this embodiment, if at least 1 panel picture of the N panel pictures has no M centroid positions, the display tube turned on in the nixie tube without centroid position is abnormal in display of the panel pictures without M centroid positions.
Specifically, abnormal display of a display tube conducted in a nixie tube lacking a centroid position in a panel picture is judged.
Step S204, judging whether M centroid positions corresponding to the same nixie tube are all different.
In practical application, referring to fig. 7, taking an example that the display panel includes two nixie tubes, storing the X value of the centroid coordinate corresponding to each nixie tube into a column of the X global variable group, storing the Y value of the centroid coordinate corresponding to each nixie tube into a column of the Y global variable group, storing the judgment result of each centroid coordinate into a column of the result global variable group, and respectively calculating whether the centroid coordinates corresponding to the same nixie tube are different.
Specifically, a coordinate system is respectively established for each nixie tube, and the height of the nixie tube is assumed to be 8, and the width is assumed to be 5. Setting the lower left corner of the nixie tube as an origin, and establishing a coordinate system, wherein each panel picture in FIG. 8 comprises 2 centroid coordinates, and the centroid coordinates of the nixie tube positioned at the left side are (2, 8), (5, 0), (4, 6), (2, 4), (4, 2), (0, 6), (2, 0) and (0, 2) in sequence; the centroid coordinates of the nixie tube positioned on the right side are (4, 6), (2, 8), (4, 2), (0, 6), (5, 0), (2, 4), (2, 0) and (0, 2) in sequence. And storing all the centroid coordinates into a figure 9, judging whether the centroid coordinates of the panel pictures of the same nixie tube are different, and placing the judging result at the corresponding position of the global variable array. In fig. 9, the centroid coordinates corresponding to the same nixie tube are different, so that the numerical value of each centroid coordinate in the result global variable array is 1, and all display tubes are good in display and have no abnormality.
Step S205, it is determined that all display tubes are displaying normally.
Specifically, if M centroid positions exist in N panel pictures and centroid positions corresponding to the same nixie tube are different, all display tubes display normally.
Step S206, judging that all display tubes with the same centroid position are abnormal.
Specifically, if M centroid positions exist in N panel pictures and the same nixie tube has the same centroid position, all display tubes having the same centroid position display abnormality.
In this embodiment, steps S201 to S206 have similar parts to steps S101 to S106 in the first embodiment, and are not described here again.
In this embodiment, the display states of the nixie tubes are changed simultaneously, and only N photos need to be taken or all states of the display panel are displayed, so that the display device is suitable for panels with different numbers and sizes of display tubes, that is, the display device can detect display panels with different styles.
In addition, in the detection process, whether N centroid positions corresponding to the same nixie tube are the same or not is judged, so that the display tube subjected to continuous welding can be accurately and efficiently detected.
The third embodiment of the present invention also provides a method for detecting a display panel, which is substantially the same as the first embodiment, and is mainly different in that: in the first embodiment, after N panel pictures are obtained, identifying a nixie tube for positioning the panel pictures by a computer; in this embodiment, after obtaining N panel pictures, the method further includes: and the positioning of the nixie tube is realized by carrying out template matching on N panel pictures.
Fig. 10 is a flowchart of a method for detecting a display panel according to a third embodiment of the present invention, and refer to fig. 10.
Step S301, a section of display tube in each digital tube is conducted each time, and a camera is triggered to photograph a display panel to obtain a panel picture; and after each display tube is conducted and conducted only once, N panel pictures are obtained.
In one embodiment, the named form of the panel picture may be a number + suffix, such as: the name of the first panel picture is 0.png, the name of the first display panel picture is 1.png, and the like, the name of the Nth panel picture is N-1.png, so that the corresponding panel picture can be conveniently called by the subsequent template matching step. Particularly, when the display panel of one device is detected, and the display panel of the next device is detected, the panel picture of the next device covers the panel picture of the last device, and the naming form is also 0.png, 1.png and 2.png, so that the occupation of excessive disk space can be avoided, and the detection efficiency of the display panel can be accelerated.
Step S302, after N panel pictures are obtained, template matching is carried out on the N panel pictures.
Specifically, different devices have different display panels, the type of the device to be tested can be determined by matching, and the nixie tube in the display panel to be tested is positioned.
In this embodiment, one picture is selected from N panel pictures as a target picture; inquiring a preset template library according to the target picture, and acquiring a target template picture corresponding to the target picture; and respectively positioning the nixie tubes in the panel pictures according to the configuration files corresponding to the target template pictures.
Specifically, the template library comprises a plurality of template pictures and a plurality of configuration files corresponding to the plurality of template pictures, wherein the configuration files comprise position information and quantity information of nixie tubes in the template pictures corresponding to the configuration files; the position information is used for positioning the area where the display tubes in the display panel to be detected are located, and the quantity information is used for determining the quantity of the display tubes in the display panel to be detected.
In summary, the template matching can realize the positioning of nixie tubes in the panel picture, namely, the number of the nixie tubes in the panel to be detected and the area where each nixie tube is located are obtained. Therefore, the digital tube can be positioned more accurately, and the detection accuracy of the display panel is further ensured.
In practical application, selecting one picture from N panel pictures as a target picture, and polling a preset template library, namely calculating the similarity between the panel pictures and the template pictures through image recognition, wherein the template picture with higher similarity is used as the target template picture; and (3) obtaining a configuration file corresponding to the target template picture, and respectively positioning all nixie tubes in the target picture to determine the area of each nixie tube, so that the centroid position of the whole formed by the lighted display tubes in each nixie tube can be calculated conveniently. Because the N panel pictures originate from the same device, after the target picture determines the corresponding configuration file, the rest panel pictures can be used for positioning the nixie tube by directly calling the determined configuration file without querying the template library again.
In the embodiment, the nixie tube in the panel picture is positioned in a template matching mode, so that the accuracy is higher; and after one panel picture is successfully matched, the rest panel pictures can directly call the existing configuration file to complete positioning, and the positioning of nixie tubes in all panel pictures can be completed only by carrying out template matching once, so that the detection efficiency of the display panel is improved.
In one embodiment, the template pictures in the template library do not contain the display area of the display panel; when template matching is carried out, the display area of the display panel in the target picture is deducted, and the purpose is to prevent the nixie tube of the display area from influencing the precision and accuracy of template matching.
In one embodiment, before the step of template matching, the range of the target template picture corresponding to the target picture in the template library is known, so that the number of times of template matching can be reduced, and the positioning efficiency of the nixie tube of the panel picture is improved. For example, 1000 template pictures exist in the template library, and the number of the pictures of the target template pictures in the template library is 100-110, so that the target template pictures can be obtained by matching 11 times at most, thereby improving the template matching efficiency and the display panel detection efficiency.
In this embodiment, the distance from the camera to the display panel when the N panel pictures are taken is the same as the distance from the camera to the display panel when the target template picture is taken.
Specifically, the distance from the camera to the display panel is the same when the panel picture is shot and the target template picture is shot, so that the pixel sizes of the panel picture and the target template picture are the same, namely, the pixel area occupied by the nixie tube in the target template picture is consistent with the pixel area occupied by the nixie tube in the panel picture, the positioning accuracy of the nixie tube can be ensured when the templates are matched, and the centroid position accuracy of the panel picture is further improved.
In practical application, before starting a test, the position of the camera needs to be adjusted, so that the camera is ensured to be parallel to a display panel of equipment to be detected; in addition, the distance from the camera to the display panel is a fixed value, and the fixed value is based on the distance from the camera to the display panel when the target template picture is acquired. For example: when the target template picture of the equipment A is acquired, the distance from the camera to the display panel is 200mm, and when the equipment A is tested, the distance from the camera to the display panel is also 200mm. Therefore, the sizes, the proportions and the pixels of the shot picture and the target template picture can be ensured to be the same, and the matching accuracy and the matching efficiency of the target picture and the template picture in the template library can be improved conveniently.
In one example, the test environment also affects the capturing effect of the panel picture, which in turn affects the accuracy of the template matching. For example, the panel pictures obtained by photographing in a strong light environment and a dark light environment have large differences, and when the templates are matched, the target template pictures may not be matched or the correct target template pictures may not be matched. Therefore, when the target template pictures are acquired, the same equipment in different environments is shot to obtain a plurality of target template pictures in different states, and the plurality of target template pictures in different states are stored in the database so as to offset inaccuracy caused by the test environment on template matching. For example, taking target template pictures under different illumination conditions and different angles and storing the target template pictures in a template library.
In one embodiment, after obtaining the N panel pictures and before performing template matching on the N panel pictures, the method further includes: and performing image color filtering processing on the N panel pictures.
Specifically, since the panel picture information is more, especially the color information is more, the template matching time is longer. The color filtering processing is carried out on the panel picture, useless information in the panel picture, such as unimportant color details, can be weakened, and the panel picture after the color filtering processing is more suitable for image recognition and processing of a machine, so that the efficiency and accuracy of template matching can be improved.
In practical application, the nixie tube emits red light when being lightened, black and white color filtering treatment is carried out on the panel picture by taking red as a reference, the panel picture is converted into pictures with different gray scales, and the information of the panel picture is reduced, so that the image recognition efficiency during template matching is improved; and the red is used as a reference to carry out black and white color filtering treatment on the panel picture, the original red area in the panel picture has obvious brightness, and the centroid position of the lighted display tube can be accurately calculated in the subsequent step.
In one embodiment, after performing the image color filtering processing on the N panel pictures, the method further includes: and performing image binarization processing on the N panel pictures.
Specifically, the panel pictures after color filtering processing are pictures with different gray scales, the panel pictures are converted into two-color pictures by setting a gray scale threshold value through binarization processing, the part lower than the gray scale threshold value is converted into black, the part higher than the gray scale threshold value is converted into red, the processed panel pictures have only two colors, and the lighted display tube is more obvious in the panel pictures, so that the calculation accuracy of the centroid position can be further improved.
Step S303, calculating the centroid positions of nixie tubes in N panel pictures according to the positions of the lighted display tubes in the panel pictures, and judging whether the centroid positions exist in the N panel pictures. If the centroid positions exist in all the N panel pictures, step S305 is executed; if there is at least one panel picture without centroid position, step S304 is performed.
Step S304, judging that the display tube conducted in the panel picture without the centroid position is abnormal in display.
In step S305, it is determined whether the centroid positions in the panel pictures are all different. If the centroid positions in the panel pictures are different, executing step S306; if there is the centroid position of the same panel picture, step S307 is performed.
Step S306, judging that all display tubes are displayed normally.
Specifically, if centroid positions exist in all the N panel pictures and the centroid positions are different, all the display tubes are displayed normally.
Step S307, it is determined that all display tubes in the panel picture having the same centroid position are abnormal.
Specifically, if the position coordinates exist in all the N panel pictures, and the centroid positions in at least two panel pictures are the same, all the display tubes in the panel pictures with the same centroid positions are abnormal in display.
Steps S301, S303, S304, S305, S306 and S307 in this embodiment are similar to steps S101 to S106 in the first embodiment, and will not be described here again.
In this embodiment, a target template picture and a configuration file corresponding to the target template picture of each device are stored in a template library in advance; and the nixie tube in the panel picture is positioned in a template matching mode, and the centroid position of the lighted display tube is determined through the nixie tube positioning, so that the accuracy of positioning the nixie tube in the configuration file is higher compared with the method for directly identifying the centroid position of the lighted display tube in the panel picture.
Meanwhile, the configuration file contains the position information and the quantity information of all nixie tubes in the panel picture, so that all the nixie tubes in the display panel can be positioned at the same time, and the detection efficiency of the display panel can be improved.
In addition, after one panel picture is successfully matched, the rest panel pictures can directly call the existing configuration file to complete positioning, and the positioning of nixie tubes in all panel pictures can be completed only by carrying out template matching once, so that the detection efficiency of the display panel is further improved.
A fourth embodiment of the present application provides an electronic device, and a specific structure of the device is shown in fig. 11. Including at least oneprocessor 401; and amemory 402 communicatively coupled to the at least oneprocessor 401. Thememory 402 stores instructions executable by the at least oneprocessor 401, and the instructions are executed by the at least oneprocessor 401, so that the at least oneprocessor 401 can execute the method for detecting a display panel in the above embodiment.
In this embodiment, theprocessor 401 is exemplified by a central processing unit (Central Processing Unit, CPU), and thememory 402 is exemplified by a readable/writable memory (Random Access Memory, RAM). Theprocessor 401,memory 402 may be connected by a bus or other means. Thememory 402 is a non-volatile computer readable storage medium, and may be used to store a non-volatile software program, a non-volatile computer executable program, and a module, for example, a program for implementing the display panel detection method in the embodiment of the present application is stored in thememory 402. Theprocessor 401 executes various functional applications of the device and data processing, namely, implements the above-described display panel detection method by running nonvolatile software programs, instructions, and modules stored in thememory 402.
Memory 402 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store a list of options, etc. In addition,memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments,memory 402 may optionally include memory located remotely fromprocessor 401, which may be connected to an external device via a network.
One or more program modules are stored in thememory 402 that, when executed by the one ormore processors 401, perform the display panel detection method in any of the method embodiments described above.
The product may perform the method provided by the embodiment of the present application, and have corresponding functional modules and beneficial effects of the performing method, and technical details not described in detail in the embodiment of the present application may be referred to the method provided by the embodiment of the present application.
A fifth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program implements the above-described method embodiments when executed by a processor.
That is, it will be understood by those skilled in the art that all or part of the steps in implementing the methods of the embodiments described above may be implemented by a program stored in a storage medium, where the program includes several instructions for causing a device (which may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps in the methods of the embodiments described herein. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific embodiments in which the invention is practiced and that various changes in form and details may be made therein without departing from the spirit and scope of the invention.

Claims (9)

CN201911375353.9A2019-12-272019-12-27Display panel detection method, electronic device and storage mediumActiveCN111145674B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201911375353.9ACN111145674B (en)2019-12-272019-12-27Display panel detection method, electronic device and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201911375353.9ACN111145674B (en)2019-12-272019-12-27Display panel detection method, electronic device and storage medium

Publications (2)

Publication NumberPublication Date
CN111145674A CN111145674A (en)2020-05-12
CN111145674Btrue CN111145674B (en)2023-06-13

Family

ID=70521139

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201911375353.9AActiveCN111145674B (en)2019-12-272019-12-27Display panel detection method, electronic device and storage medium

Country Status (1)

CountryLink
CN (1)CN111145674B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113706468B (en)*2021-07-272024-09-13河北光兴半导体技术有限公司 Glass defect detection method based on BP neural network

Citations (14)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US4441120A (en)*1979-05-031984-04-03U.S. Philips CorporationDevice for measuring and methods for adjusting the convergence of the electron beams in color display tubes
JP2005122076A (en)*2003-10-202005-05-12Toshiba Matsushita Display Technology Co LtdEl display device
JP2007218985A (en)*2006-02-142007-08-30Rhythm Watch Co LtdDisplay device
CN102565699A (en)*2012-03-132012-07-11深圳市九洲电器有限公司Method and device for detecting front panel of set-top box
CN102608768A (en)*2012-03-312012-07-25福州大学LED-based two-sided-grating three-dimensional display device and manufacturing method thereof
JP2013206146A (en)*2012-03-282013-10-07Osaka Gas Co LtdEnergy information output device and data management system
JP2013205598A (en)*2012-03-282013-10-07Fujitsu Frontech LtdDisplay element unit and display device
CN104330648A (en)*2014-01-202015-02-04上海新时达电气股份有限公司Automatic elevator display plate testing device and method
JP2015144359A (en)*2014-01-312015-08-06中国電力株式会社image management system
CN105259842A (en)*2015-11-162016-01-20中江联合(北京)科技有限公司Intelligent terminal for timely and automatically collecting LED digital display data
CN105548850A (en)*2014-10-232016-05-04上海维锐智能科技有限公司Full-automatic photoelectric detection system for LED nixie tube and method thereof
CN205679207U (en)*2016-04-282016-11-09苏州品柏电子贸易有限公司For detecting the image acquisition device of concentricity between LED chip and lens
CN109950181A (en)*2019-03-282019-06-28黄山美太电子科技有限公司A kind of LED charactrons production and processing technology process
CN209387845U (en)*2018-12-092019-09-13上海派可斯医疗器械有限公司LED is qualified detection device for lamp

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US10645344B2 (en)*2010-09-102020-05-05Avigilion Analytics CorporationVideo system with intelligent visual display
US9058676B2 (en)*2013-03-262015-06-16Apple Inc.Mechanism to detect idle screen on

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US4441120A (en)*1979-05-031984-04-03U.S. Philips CorporationDevice for measuring and methods for adjusting the convergence of the electron beams in color display tubes
JP2005122076A (en)*2003-10-202005-05-12Toshiba Matsushita Display Technology Co LtdEl display device
JP2007218985A (en)*2006-02-142007-08-30Rhythm Watch Co LtdDisplay device
CN102565699A (en)*2012-03-132012-07-11深圳市九洲电器有限公司Method and device for detecting front panel of set-top box
JP2013205598A (en)*2012-03-282013-10-07Fujitsu Frontech LtdDisplay element unit and display device
JP2013206146A (en)*2012-03-282013-10-07Osaka Gas Co LtdEnergy information output device and data management system
CN102608768A (en)*2012-03-312012-07-25福州大学LED-based two-sided-grating three-dimensional display device and manufacturing method thereof
CN104330648A (en)*2014-01-202015-02-04上海新时达电气股份有限公司Automatic elevator display plate testing device and method
JP2015144359A (en)*2014-01-312015-08-06中国電力株式会社image management system
CN105548850A (en)*2014-10-232016-05-04上海维锐智能科技有限公司Full-automatic photoelectric detection system for LED nixie tube and method thereof
CN105259842A (en)*2015-11-162016-01-20中江联合(北京)科技有限公司Intelligent terminal for timely and automatically collecting LED digital display data
CN205679207U (en)*2016-04-282016-11-09苏州品柏电子贸易有限公司For detecting the image acquisition device of concentricity between LED chip and lens
CN209387845U (en)*2018-12-092019-09-13上海派可斯医疗器械有限公司LED is qualified detection device for lamp
CN109950181A (en)*2019-03-282019-06-28黄山美太电子科技有限公司A kind of LED charactrons production and processing technology process

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
System-Level Lifetime Prediction for LED Lighting Applications Considering Thermal Coupling Between LED Sources and Drivers;Xiaohui Qu;《 IEEE Journal of Emerging and Selected Topics in Power Electronics》;20180626;1860-1870*
数字仪表显示值的快速识别方法;陈家翔等;《中国测试技术》;20061130(第06期);全文*

Also Published As

Publication numberPublication date
CN111145674A (en)2020-05-12

Similar Documents

PublicationPublication DateTitle
US11587219B2 (en)Method and apparatus for detecting pixel defect of optical module, and device
US20200043157A1 (en)Inspection Apparatus, Inspection Method, And Program
CN106097361B (en)Defect area detection method and device
CN108234824B (en)Shadow correction detection parameter determination method, shadow correction detection device, storage medium and fisheye camera
CN103916603B (en)Backlighting detecting and equipment
CN111598913B (en)Image segmentation method and system based on robot vision
CN110197180B (en)Character defect detection method, device and equipment
CN113781393B (en)Screen defect detection method, device, equipment and storage medium
CN113469971A (en)Image matching method, image matching detection device and storage medium
CN113938674B (en)Video quality detection method, device, electronic equipment and readable storage medium
US20230386055A1 (en)Image feature matching method, computer device, and storage medium
CN111145674B (en)Display panel detection method, electronic device and storage medium
CN109596317B (en)Detection method and device for panel lamp
JP2002140694A (en)Image processor, its method and recording medium with recorded image processing program
CN114359166B (en)Screen color detection method, device, equipment and storage medium
CN113822922B (en) Depth measurement accuracy determination method, device, equipment and storage medium
CN112734721B (en)Optical axis deflection angle detection method, device, equipment and medium
KR101559338B1 (en)System for testing camera module centering and method for testing camera module centering using the same
JP7340434B2 (en) Reinforcement inspection system, reinforcement inspection method, and reinforcement inspection program
CN116993654B (en)Camera module defect detection method, device, equipment, storage medium and product
CN116224632B (en)Backlight assembly precision detection method and detection system
CN112801439A (en)Task management method and device
CN110880003A (en)Image matching method and device, storage medium and automobile
CN112150373B (en)Image processing method, image processing apparatus, and readable storage medium
CN113891068B (en)Optical axis precision detection method based on camera uniformity test auxiliary device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp