CN1110010C - Automatic Detection Method of Disconnection Phenomenon of Optical Scanner - Google Patents
Automatic Detection Method of Disconnection Phenomenon of Optical Scanner Download PDFInfo
- Publication number
- CN1110010C CN1110010C CN98117198A CN98117198A CN1110010C CN 1110010 C CN1110010 C CN 1110010C CN 98117198 A CN98117198 A CN 98117198A CN 98117198 A CN98117198 A CN 98117198A CN 1110010 C CN1110010 C CN 1110010C
- Authority
- CN
- China
- Prior art keywords
- value
- pixel
- comparison
- oblique line
- index
- 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.)
- Expired - Fee Related
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 23
- 230000003287 optical effect Effects 0.000 title claims abstract description 8
- 238000000034 method Methods 0.000 claims abstract description 21
- 238000012360 testing method Methods 0.000 claims abstract description 14
- 238000007689 inspection Methods 0.000 claims description 7
- 238000006073 displacement reaction Methods 0.000 claims description 3
- FGUUSXIOTUKUDN-IBGZPJMESA-N C1(=CC=CC=C1)N1C2=C(NC([C@H](C1)NC=1OC(=NN=1)C1=CC=CC=C1)=O)C=CC=C2 Chemical compound C1(=CC=CC=C1)N1C2=C(NC([C@H](C1)NC=1OC(=NN=1)C1=CC=CC=C1)=O)C=CC=C2 FGUUSXIOTUKUDN-IBGZPJMESA-N 0.000 claims 2
- 230000005540 biological transmission Effects 0.000 description 3
- 241001270131 Agaricus moelleri Species 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000010998 test method Methods 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
Abstract
Description
本发明涉及一种图像品质的检测方法,尤指一种应用在光学扫描器的掉线现象的检测方法。The invention relates to a method for detecting image quality, in particular to a method for detecting a disconnection phenomenon applied to an optical scanner.
影响扫描的图像品质的因素有许多种,针对各种可能的因素可设计不同的测试项目。常见的图像品质测试中,其中一个测试项目是针对掉线的现象作检测。造成掉线现象的因素有很多,例如扫描器在光学模组移动时由于电机的失步或振动摩擦,而使图像的读取产生断续的现象。或扫描器的传输系统控制不稳,或传输系统与图像读取的速度不一致等,皆有可能产生掉线的情况。因此,由掉线的现象使可推知扫描器内部可能发生的问题。例如,如果每次所掉的条数皆相同,便表示控制软件可能有问题。如果掉线的位置皆相同,则可能是电机或传输系统出了问题。There are many factors that affect the scanned image quality, and different test items can be designed for various possible factors. In the common image quality test, one of the test items is to detect the phenomenon of dropped calls. There are many factors that cause the disconnection phenomenon. For example, when the scanner is moving the optical module, the reading of the image is intermittent due to the out-of-step of the motor or vibration and friction. Or the control of the scanner's transmission system is unstable, or the speed of the transmission system and image reading is inconsistent, etc., all of which may cause disconnection. Therefore, the problem that may occur inside the scanner can be deduced from the phenomenon of disconnection. For example, if the number of strips dropped is the same every time, it may indicate that there may be a problem with the control software. If the dropped wires are at the same location, there may be a problem with the motor or the transmission system.
测试的方法可利用一测试图(Calibration paper),上绘有标准的斜线,扫描后,比较所扫描的图像与标准的斜线,以判定掉线的位置及条数。由于斜线在放大后,斜线边缘的图素排列将为阶梯状,从阶梯的排列规则便可看出时否有掉线的现象。如果掉一条线,则图素的阶梯差便为二个图素,如果掉两条线,则图的阶梯差便为三个图素等等,依此类推。如果掉线在可容许的范围内时,则该扫描器便具有合格的品质。否则,则为不标准的产品,须作进一步的检修。The test method can use a calibration paper with standard oblique lines drawn on it. After scanning, compare the scanned image with the standard oblique lines to determine the location and number of dropped lines. After the oblique line is zoomed in, the arrangement of pixels on the edge of the oblique line will be in a ladder shape. From the arrangement rules of the ladder, it can be seen whether there is any line drop. If one line is dropped, the step difference of the pixels is two pixels, if two lines are dropped, the step difference of the graph is three pixels, etc., and so on. If the dropped calls are within the tolerable range, then the scanner is of acceptable quality. Otherwise, it is a non-standard product and needs further inspection.
现在使用的判断掉线的方法必须经过十分复杂的程序。若要扫描高解析度的图像时,须将扫描的图像放大数十倍,然后用人工逐一比对斜线上图素的阶梯,再逐一比对图素的阶梯规则,才能找出掉线的地方。而且,每张图必须前前后后扫描数次,以确定该扫描器的控制是否对位。除此之外,人工判断有许多问题,不但速度缓慢,而且涉及主观的判断,不但误差率高,且其品质的标准可能因人因时而不同,因此对于扫描的图像品质不能提供一致且有效的保证。The method for judging dropped calls that is used now must go through very complicated procedures. When scanning a high-resolution image, the scanned image must be magnified dozens of times, and then manually compare the steps of the pixels on the diagonal line one by one, and then compare the step rules of the pixels one by one to find out the missing lines. place. Also, each image must be scanned back and forth several times to determine whether the scanner's controls are aligned. In addition, manual judgment has many problems, not only slow, but also involves subjective judgment, not only has a high error rate, but also its quality standards may vary from time to time, so it cannot provide consistent and effective information on the quality of scanned images. ensure.
本发明的主要目的是提供一种自动检测掉线的方法,以正确且快速地由所扫描的图像中,判断扫描器是否有掉线的现象,并显示掉线的地方及计算掉线的数目。The main purpose of the present invention is to provide a method for automatically detecting disconnection, to correctly and quickly judge whether the scanner has a disconnection phenomenon from the scanned image, and to display the place of disconnection and calculate the number of disconnection .
本发明的另一目的是提出一种能适用于各种规格的扫描图像掉线自动检测方法,以代替人工的检测,并提高检测的功效。Another object of the present invention is to propose an automatic detection method for offline detection of scanned images applicable to various specifications, so as to replace manual detection and improve detection efficiency.
本发明的又一目的是提出一种能自动检测掉线现象的方法,以由掉线的现象判断产生的内部问题,进而保障产品的品质。Another object of the present invention is to provide a method for automatically detecting disconnection phenomena, so as to judge internal problems generated by the disconnection phenomenon, thereby ensuring product quality.
本发明提出一种掉线的自动检测方法,包含下列步骤:在读取测试图的斜线后,计算一中间灰阶值,并设定一标准差,在该斜线的第一列图素中,寻找一灰阶值最接近该中间灰阶值的图素,并以该图素(Xi,Yj)为基准,开始作灰阶值的比较。其比较顺序为,先比较位于(Xi,Yj)与(Xi-1,Yj+1)的图素的灰阶。如果其比较值超出一设定值,便表示有掉线的现象。但为了计算掉了几条线,必须再与(Xi-1,Yj+1)相临的图素(Xi-2,Yj+1)比较,一直比到符合一设定的比较条件,也就是,(Xi,Yj)的灰阶小于(Xi-1,Yj+1),且(Xi,Yj)的灰阶大于等于(Xi-2,Yj+1)。如果(Xi,Yj)与(Xi-1,Yj+1)的图素的灰阶差值在错误容许值内,则表示没有掉线,可继续下一列的比较。在比较的过程中累计掉线的数目,并框取掉线的地方,当比较完毕后便输出掉线的总数并显示掉线的地方。The present invention proposes an automatic detection method for disconnection, which includes the following steps: after reading the oblique line of the test chart, calculate an intermediate gray scale value, and set a standard deviation. , look for a pixel whose grayscale value is closest to the intermediate grayscale value, and use the pixel (Xi, Yj) as a reference to start comparing grayscale values. The comparison sequence is first to compare the gray levels of the pixels located at (Xi, Yj) and (Xi-1, Yj+1). If the comparison value exceeds a set value, it means that there is a phenomenon of disconnection. But in order to calculate how many lines are lost, it must be compared with the pixel (Xi-2, Yj+1) adjacent to (Xi-1, Yj+1) until it meets a set comparison condition, that is , the gray scale of (Xi, Yj) is smaller than (Xi-1, Yj+1), and the gray scale of (Xi, Yj) is greater than or equal to (Xi-2, Yj+1). If the grayscale difference between the pixels of (Xi, Yj) and (Xi-1, Yj+1) is within the error tolerance, it means that there is no disconnection, and the comparison of the next column can be continued. During the comparison process, the number of disconnected lines is accumulated, and the places where the lines are dropped are framed. When the comparison is completed, the total number of dropped lines is output and the places where the lines are dropped are displayed.
本发明的自动检测方法可适用于任一扫描器的图像品质判定,不但可有效取代人工的判定,更可减少误差的产生,提高检测效率。而且在屏幕上可显示出有问题的地方,以供进一步的检测判断,使检测更为方便。而且,对于标准差的设定,更可依不同品质的扫描器作调整,使其应用范围更为广泛。The automatic detection method of the present invention is applicable to the image quality judgment of any scanner, not only can effectively replace manual judgment, but also can reduce errors and improve detection efficiency. Moreover, the problematic places can be displayed on the screen for further detection and judgment, making the detection more convenient. Moreover, the setting of the standard deviation can be adjusted according to scanners of different qualities, making it more widely applicable.
图1为本发明的检测方法的示意图;Fig. 1 is the schematic diagram of detection method of the present invention;
图2为本发明对于掉线的检测的判断流程图;Fig. 2 is the judgment flowchart of the present invention for the detection of dropped line;
图3为一掉两条线情况的斜线放大示意图。FIG. 3 is an enlarged schematic diagram of oblique lines in a case where two lines are dropped.
若将斜线放大到可看到图素的形状,便可看到正常斜线的边缘的图素排列很规则,其灰阶也很相近。其灰阶变化应为中间的部分最黑,然后向两旁逐渐变淡,若以线的中央为分界,则两边的排列及灰阶值为对称的。如果有掉线的情形发生,除了灰阶有了变化,图素的阶梯图形也会显现落差的情形。If you zoom in on the oblique line until you can see the shape of the pixels, you can see that the pixels on the edge of the normal oblique line are arranged very regularly, and their gray scales are also very similar. The grayscale change should be that the middle part is the darkest, and then gradually lighten to both sides. If the center of the line is used as the boundary, the arrangement and grayscale values on both sides are symmetrical. If there is a disconnection situation, in addition to the change of the gray scale, the step graphic of the pixel will also show the situation of the drop.
针对斜线的灰阶变化的特性,本发明在测试图上,设定斜率为45度的斜线。当然,其它斜率的斜线亦可,但45度的斜率由于是90度的一半,所显示的图素阶梯落差最明显,因此所产生的效果最佳。如图1所示,斜率为45度的斜线11经放大后,在边缘上将产生如阶梯状的排列。在不掉线的情况下,每层的阶梯差应为一个图素。Aiming at the characteristics of the gray scale change of the oblique line, the present invention sets an oblique line with a slope of 45 degrees on the test chart. Certainly, slopes with other slopes are also available, but since the slope of 45 degrees is half of 90 degrees, the step difference of displayed pixels is the most obvious, so the resulting effect is the best. As shown in FIG. 1 , after the oblique line 11 with a slope of 45 degrees is enlarged, a ladder-like arrangement will be produced on the edge. In the case of not dropping the line, the step difference of each layer should be one pixel.
本发明在自动判断上,并不是由阶梯的落差来判断掉线的数目,而是由灰阶值的变化来判断。判断时以一中间灰阶值及一标准差作为判定的标准值。以8位元(8bit)所产生的灰阶为例,由全黑的0到全白的255,可产生256阶的灰阶变化。本发明的方法取其中间值(128±标准差)作为比较的标准值。这是因为由128~255及128~0的灰阶变化比较明显,因为比较容易判断灰阶值的差异。标准差的设定则可依据所要测试的扫描器规格而定。In the automatic judgment of the present invention, the number of dropped calls is not judged by the drop of the steps, but judged by the change of the gray scale value. When judging, a middle gray scale value and a standard deviation are used as standard values for judging. Taking the gray scale generated by 8 bits as an example, from completely black 0 to completely white 255, 256 gray scale changes can be produced. The method of the present invention takes its median value (128 ± standard deviation) as the standard value for comparison. This is because the grayscale changes from 128-255 and 128-0 are relatively obvious, because it is easier to judge the difference in grayscale values. The standard deviation can be set according to the specifications of the scanner to be tested.
如图1所示,图1中的一小格代表一图素,格内的数字为该图素的灰阶值。其中间部份的灰阶为全黑,两旁的灰阶为对称的,(以灰阶值表示)。256的中间灰阶值为128,假设标准差值为20,则取(128±20)的灰阶作为比较的标准值。在图1中,横座标设为X及纵座标设为Y。假设指数j表示该纵座标上第j位置的图素,指数i表示该横座标上第i位置上的图素。设j=1;在Yj列中找出灰阶值最接近(128±20)的灰阶值。并以所找到的图素在横座标X上的位置,作为起始的位置。以图1中的灰阶值为例,在Yj行找到最接近中间灰阶值的图素为112。然后,以灰阶值为112的图素在横座标X上的位置,作为Xi起始的位置,并设i为1。As shown in FIG. 1 , a small grid in FIG. 1 represents a pixel, and the number in the grid is the grayscale value of the pixel. The gray scale in the middle part is completely black, and the gray scales on both sides are symmetrical (indicated by the gray scale value). The middle gray scale value of 256 is 128, assuming that the standard deviation value is 20, the gray scale value of (128±20) is taken as the standard value for comparison. In FIG. 1 , the abscissa is set to X and the ordinate is set to Y. Assume that index j represents the pixel at position j on the ordinate, and index i represents the pixel at position i on the abscissa. Let j=1; find the gray-scale value closest to (128±20) in the Yj column. And take the position of the found pixel on the abscissa X as the starting position. Taking the grayscale value in Figure 1 as an example, find the pixel closest to the middle grayscale value in row Yj to be 112. Then, the position of the pixel with the grayscale value of 112 on the abscissa X is used as the starting position of Xi, and i is set as 1.
接着,比较纵座杆Yj及Yj+1行的灰阶差,即比较位于座标(Xi,Yj)上的图素与位于(Xi-1,Yj+1)上的图素,如果(Xi,Yj)上的图素的灰阶值与位于(Xi-1,Yj+1)上图素的灰阶值在错误容许值内,则表示没掉线,可继续检查下一列,即比较Yj+1行与Yj+2行的图素。如图1所示,位于(Xi-1,Yj+1)上的图素,其灰阶值亦为112,所以表示没掉线,可将指数j增加1,指数i减1,以继续检查下一列的比较。如此逐一比对灰阶值为121、123、129及120的图素,由于其灰阶值皆在错误容许值内,所以可判定该斜线没有掉线。Next, compare the gray scale difference between the vertical seat bar Yj and Yj+1 row, that is, compare the pixel located on the coordinate (Xi, Yj) and the pixel located on (Xi-1, Yj+1), if (Xi , Yj) and the gray scale value of the pixel on (Xi-1, Yj+1) are within the error tolerance value, it means that the connection is not dropped, and you can continue to check the next column, that is, compare Yj The pixels of the +1 row and the Yj+2 row. As shown in Figure 1, the pixel located on (Xi-1, Yj+1) has a grayscale value of 112, so it means that the connection is not disconnected, and the index j can be increased by 1, and the index i can be decreased by 1 to continue checking Comparison for the next column. In this way, pixels with grayscale values of 121, 123, 129, and 120 are compared one by one. Since the grayscale values are all within the error tolerance value, it can be determined that the oblique line is not dropped.
如果(Xi,Yj)上的图素与位于(Xi-1,Yj+1)上的图素其灰阶差值不在错误容许值内,则表示有掉线的现象。必须继续比较(Xi,Yj),(Xi-1,Yj+1)及(Xi-2,Yj+1)上的图素。当其比较值符合一设定的比较条件时,即(Xi,Yj)小于(Xi-1,Yj+1),而且大于等于位于(Xi-2,Yj+1)上的图素时,则表示掉了一条线。如果不符合该设定的比较条件时,则继续比较(Xi,Yj),(Xi-2,Yj+1)及(Xi-3,Yj+1)上的图素。如此反复进行,直到比较的结果符合该设定的比较条件。比较时,累计掉线的数目并框取掉线的地方。完成后,再由Yj+1列开始,重覆上述比对,直至完成整条斜线的比较。最后,输出掉线的总条数及显示有掉线的地方。必须一提的是,在掉线的检测上并不需要比对彩色的线条,因为掉线的问题与色彩无关。因此,以灰阶作测试便足够了。If the grayscale difference between the pixel on (Xi, Yj) and the pixel on (Xi-1, Yj+1) is not within the error tolerance, it means that there is a disconnection phenomenon. It is necessary to continue to compare the pixels on (Xi, Yj), (Xi-1, Yj+1) and (Xi-2, Yj+1). When its comparison value meets a set comparison condition, that is, (Xi, Yj) is less than (Xi-1, Yj+1), and greater than or equal to the pixel located on (Xi-2, Yj+1), then Indicates that a line is dropped. If the set comparison condition is not met, continue to compare the pixels on (Xi, Yj), (Xi-2, Yj+1) and (Xi-3, Yj+1). This is repeated until the comparison result meets the set comparison condition. When comparing, accumulate the number of disconnected lines and frame the places where the lines are dropped. After completion, start from column Yj+1 and repeat the above comparison until the comparison of the entire oblique line is completed. Finally, output the total number of dropped lines and display where there are dropped lines. It must be mentioned that it is not necessary to compare colored lines in the detection of dropped calls, because the problem of dropped calls has nothing to do with color. Therefore, testing in grayscale is sufficient.
为清楚显示本发明对于掉线的判断流程图,请参阅图2。在使用者选定测试的项目为斜线的检测时,使用者可依据扫描器的规格及所要求的品质,设定标准差值。其判断流程如图2所示:In order to clearly show the flow chart of the present invention for judging dropped calls, please refer to FIG. 2 . When the user selects the test item as the detection of oblique lines, the user can set the standard deviation value according to the specifications of the scanner and the required quality. The judgment process is shown in Figure 2:
在检测时,先要读取测试图上标准的斜线,以斜度为45度为最佳,即步骤201。在步骤202中,依据标准的斜线,扫描器产生该标准斜线的图像。在步骤203中,执行指数的初始化,使i指向横座标X中灰阶值最接近中间灰阶值的图素位置。并使i=1;j=1;L=斜线长度(以图素为单位);m=0(m为累计掉线使用的计数器);k=0(k表示位移的指数)。然后,找出灰阶值最接近中间灰值的图素,并设定该图素的座标为(Xi,Yj),即步骤204。然后在步骤205中,比较座标为(Xi,Yj)与(Xi-1,Yj+1)的图素。步骤206为该比较值的判定。如果两图素的灰阶值比较结果在错误容许值内,便表示Yj那一列与其下一列之间没有掉线,可直接进行再下一列的比较。但须检查Yj+1上是否已是最后一列了,于是执行步骤211。如果是,则步骤213输出掉了m条线的信息,此时由于m=0,即没掉的意思。如果Yj+1不是最后一列,则进行下一列的比较,所以执行步骤210,以将纵座杆Y的指数j增加1,横座标X的指数i减1+k,然后执行步骤205,以进行一回圈的比较,直到完成整条斜线所有列的比较。When testing, first read the standard oblique line on the test chart, preferably 45 degrees, namely step 201 . In step 202, according to the standard oblique line, the scanner generates an image of the standard oblique line. In step 203, the index is initialized, so that i points to the pixel position in the abscissa X whose grayscale value is closest to the middle grayscale value. And make i=1; j=1; L=diagonal line length (in picture element); m=0 (m is the counter used for accumulative disconnection); k=0 (k represents the exponent of displacement). Then, find out the pixel whose grayscale value is closest to the middle gray value, and set the coordinates of the pixel as (Xi, Yj), ie step 204 . Then in step 205, compare the pixels whose coordinates are (Xi, Yj) and (Xi-1, Yj+1). Step 206 is the determination of the comparison value. If the comparison result of the gray scale values of the two pixels is within the error tolerance, it means that there is no disconnection between the column of Yj and the next column, and the comparison to the next column can be directly performed. But it must be checked whether Yj+1 is the last column, so step 211 is executed. If yes, then step 213 outputs the information that m lines have been dropped, and at this time, since m=0, it means that there is no drop. If Yj+1 is not the last column, then the comparison of the next column is performed, so step 210 is performed to increase the index j of the seatpost Y by 1, and the index i of the abscissa X is subtracted by 1+k, and then perform step 205 to perform Comparing in a circle until the comparison of all columns of the entire slash is completed.
如果(Xi,Yj)与(Xi-1,Yj+1)两图素的灰阶值不在错误容许值内,则执行步骤207。此表示,可能有掉线的现象发生,所以将k的值增加1,比较Yj+1那一列的相临的两个图素的灰阶(Xi-k,Yj+1),(Xi-(k+1),Yj+1)。在步骤208中,判定(Xi,Yj)图素的灰阶是否小于(Xi-k,Yj+1)图素的灰阶,且大于等于(Xi-(k+1),Yj+1)图素的灰阶。如果是,便表示只掉了一条线,执行步骤212,使m=m+1。如果不是,便要在Yj+1那一列中将i的指数再碱1,以逐一比较Yj+1那一列的图素,直到(Xi,Yj)图素的灰阶小于Yj+1那一列某个图素的灰阶,且大于等于该图素相临的图素的灰阶,即步骤208。如果不是,便执行步骤209:将(Xi-k,Yj+1),(Xi-(k+1),Yj+1)的图素框取起来,以表示掉线的位置,将m增加1,此表示比较的次数也就等于掉线的数目。然后,执行步骤207,以继续上述比较。进入另一回圈。最后,全部比较完毕后,输出掉线的总数并显示框取的线。当掉线的总数大于预先设定的掉线容许值时,判定该扫描器为不合格;而当掉线的总数在预定设定的掉线容许值之内时,判定该扫描器为合格。If the grayscale values of the two pixels (Xi, Yj) and (Xi−1, Yj+1) are not within the error tolerance, step 207 is executed. This means that there may be a phenomenon of disconnection, so increase the value of k by 1, and compare the gray levels (Xi-k, Yj+1) of the two adjacent pixels in the column Yj+1, (Xi-( k+1), Yj+1). In step 208, it is determined whether the gray scale of the (Xi, Yj) pixel is smaller than the gray scale of the (Xi-k, Yj+1) pixel, and greater than or equal to (Xi-(k+1), Yj+1) Plain grayscale. If yes, it means that only one line is dropped, go to step 212, make m=m+1. If not, the index of i should be increased by 1 in the column of Yj+1 to compare the pixels in the column of Yj+1 one by one until the gray scale of the pixel in (Xi, Yj) is smaller than that in the column of
为更进一步使审查员了解上述流程,再以一实施例说明判断掉线的方法。如图3所示,在完成45度斜线的图像读取(步骤201~202),及初始化设定值(步骤203)后,读取中间灰值最接近中间灰阶的图素为比较的基准(步骤204),在Yj那一列找到灰阶为136的图素,因为其灰阶值最接近128。将i指向该图素所在的位置。设标准差为20,m=0。然后比较座标为(Xi,Yj)与(Xi-1,Yj+1)的图素(步骤205),即136与139。由于其差值在标准差内,所以将纵座标Y的指数加1,及横座标X的指数i减1(步骤210),然后执行步骤205。In order to further enable the examiner to understand the above process, an embodiment is used to illustrate the method for judging disconnection. As shown in Figure 3, after completing the image reading of the 45-degree oblique line (steps 201-202) and initializing the set value (step 203), the pixels whose middle gray value is closest to the middle gray scale are read for comparison Baseline (step 204 ), find the pixel whose gray scale is 136 in the Yj column, because its gray scale value is closest to 128. Point i to where the pixel is located. Let the standard deviation be 20, m=0. Then compare the pixels whose coordinates are (Xi, Yj) and (Xi−1, Yj+1) (step 205 ), ie 136 and 139 . Since the difference is within the standard deviation, add 1 to the index of Y on the ordinate, and subtract 1 to the index i on the X of the abscissa (step 210 ), and then execute step 205 .
接着比较139与138的差值(步骤205),判断是否在错误容许值内(步骤206)。由于仍在标准差内,而且尚未到线的底端(步骤211),所以将纵座标Y的指数j增加1,横座标X的指数i减1+k(步骤210)。然后重覆步骤205,比较138与179。由于其差值超出标准差,所以执行步骤207。k=k+1,比较138与178,179,然后执行步骤208。由于138<178且138>179,所以继续执行步骤209;将179,178的图素框取出来,将m增加1,k的值再加1。然后执行步骤207。比较138,178,137。由于138<178且138<179,所以执行步骤212:m再增加1,表示掉线又增加一条。然后,执行步骤211,判断是否已完成整条线的比较。由于尚未完成,因此执行步骤210将指数j加1,i=i-(1+k)以执行下一列的比较。然后,执行步骤205,以成为一个回圈的比较。如此一直比较到结束,执行步骤213以输出比较结果。计算结果,m=2总共掉了两条线,且掉线的地方也框取出来,以方便辩识。Then compare the difference between 139 and 138 (step 205), and judge whether it is within the error tolerance (step 206). Since it is still within the standard deviation and has not yet reached the bottom of the line (step 211), the index j of the ordinate Y is increased by 1, and the index i of the abscissa X is subtracted by 1+k (step 210). Then step 205 is repeated to compare 138 and 179 . Since the difference exceeds the standard deviation, step 207 is executed. k=k+1, compare 138 with 178, 179, and then execute step 208. Since 138<178 and 138>179, proceed to step 209; take out the pixel frames of 179 and 178, increase m by 1, and add 1 to the value of k. Then step 207 is executed. Compare 138, 178, 137. Since 138<178 and 138<179, step 212 is executed: m is increased by 1, indicating that one more line is dropped. Then, step 211 is executed to determine whether the comparison of the entire line has been completed. Since it has not been completed, step 210 is executed to add 1 to the index j, i=i-(1+k) to perform the comparison of the next column. Then, step 205 is executed to make a loop comparison. In this way, the comparison continues until the end, and step 213 is executed to output the comparison result. As a result of the calculation, there are two lines dropped in m=2, and the dropped lines are also framed for easy identification.
本流程为说明方便而以图1及图3的图形及座标的表示方法作解说。如果座标的表示方法改变,或斜线的方向改变,或比较图素的顺序改变为由左至右或由下而上等,皆不脱离本发明的精神。例如,由于黑的部份是在线的中央,而且中央的两侧为对称的,所以比较另一侧也可应用上述方法流程,只是在步骤208的比较须将小于改为大于,而大于等于改为小于等于。这是因为黑的部份是在中间,以其左侧作比较时,横座标越向左移其灰阶便越浅。For the convenience of explanation, this process is illustrated by the graphs and coordinates shown in Fig. 1 and Fig. 3 . If the representation method of the coordinates is changed, or the direction of the oblique line is changed, or the order of the compared pixels is changed from left to right or from bottom to top, etc., it does not deviate from the spirit of the present invention. For example, since the black part is the center of the line, and the two sides of the center are symmetrical, the above-mentioned method flow can also be applied to the other side, but the comparison in step 208 must be changed from less than to greater than, and greater than or equal to is less than or equal to. This is because the black part is in the middle, and when compared with the left side, the gray scale becomes lighter as the abscissa moves to the left.
Claims (14)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN98117198A CN1110010C (en) | 1998-08-18 | 1998-08-18 | Automatic Detection Method of Disconnection Phenomenon of Optical Scanner |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN98117198A CN1110010C (en) | 1998-08-18 | 1998-08-18 | Automatic Detection Method of Disconnection Phenomenon of Optical Scanner |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1245321A CN1245321A (en) | 2000-02-23 |
CN1110010C true CN1110010C (en) | 2003-05-28 |
Family
ID=5225405
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN98117198A Expired - Fee Related CN1110010C (en) | 1998-08-18 | 1998-08-18 | Automatic Detection Method of Disconnection Phenomenon of Optical Scanner |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1110010C (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101326549B (en) * | 2005-12-05 | 2013-06-19 | 全视技术有限公司 | Method for detecting streaks in digital images |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1244156A (en) * | 1996-12-09 | 2000-02-09 | 美国3M公司 | Uv protected syndiotactic polystyrene overlay films |
-
1998
- 1998-08-18 CN CN98117198A patent/CN1110010C/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1244156A (en) * | 1996-12-09 | 2000-02-09 | 美国3M公司 | Uv protected syndiotactic polystyrene overlay films |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101326549B (en) * | 2005-12-05 | 2013-06-19 | 全视技术有限公司 | Method for detecting streaks in digital images |
Also Published As
Publication number | Publication date |
---|---|
CN1245321A (en) | 2000-02-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8337023B2 (en) | Projector and trapezoidal distortion correcting method | |
CN107146565A (en) | Method and device for calibrating Gamma curve of display based on DICOM curve | |
US20110057943A1 (en) | Balancing Luminance Disparity in a Display by Multiple Projectors | |
US20170193322A1 (en) | Optical reading of external segmented display | |
CN100565630C (en) | Multi-angle measuring system and method for display | |
CN106201201B (en) | view adjusting method and system | |
CN113538603B (en) | Optical detection method and system based on array product and readable storage medium | |
KR101842535B1 (en) | Method for the optical detection of symbols | |
CN1110010C (en) | Automatic Detection Method of Disconnection Phenomenon of Optical Scanner | |
JP3854585B2 (en) | Display defect detection method and display defect inspection apparatus for liquid crystal panel | |
US6747619B1 (en) | Method of evaluating front of screen quality and apparatus for evaluating front of screen quality using the same | |
CN105427315B (en) | Digital instrument image position testing method and device | |
CN1707238A (en) | Method for testing resolution ratio of camera head | |
JP5446285B2 (en) | Image processing apparatus and image processing method | |
TWI677231B (en) | Method and system for inspecting display apparatus | |
JP3127598B2 (en) | Method for extracting density-varying constituent pixels in image and method for determining density-fluctuation block | |
CN114565566A (en) | Binding yarn width detection method, device, equipment and storage medium | |
JP6524398B1 (en) | Video processing apparatus, video processing system, video processing method and program | |
JPH03123292A (en) | Image quality inspection device | |
US6373983B1 (en) | Method for detecting the occurrence of missing lines on images generated by an optical scanner | |
CN111192253A (en) | Definition checking method and system based on contrast sensitivity and contrast | |
CN113891068A (en) | Optical axis precision detection method based on camera uniformity test auxiliary device | |
CN112598652A (en) | Liquid crystal display edge broken line detection method based on gradient transformation | |
KR102502540B1 (en) | Displacement Measuring Methods using a camera | |
CN116165205B (en) | Surface reflection image acquisition method, system, device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C06 | Publication | ||
PB01 | Publication | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: GR Ref document number: 1052331 Country of ref document: HK |
|
C19 | Lapse of patent right due to non-payment of the annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |