A TFT short line detection method and system
By calculating the grayscale change direction angle map and angle template map of TFT short-term products, automatic detection of abnormal areas is realized, which solves the problems of low detection efficiency and insufficient applicability in the existing technology, and improves the detection speed and applicability.
Patent Information
- Application Number
- CN202410152827.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-03
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-02-03
AI Technical Summary
The detection of TFT short-term products mainly relies on manual or review, resulting in low detection efficiency and inability to adapt to the diversity of product types. There is a lack of applicable automatic detection algorithms.
By calculating the grayscale change direction angle map of the sample image, the angle template map of the coordinate correction area and the detection area is obtained, using the mask map to calculate the grayscale change direction angle map of the image to be detected, and calibrating the abnormal area based on the similarity of the angle map .
It effectively shields areas that customers are not concerned about, improves detection speed, is suitable for all TFT short-term products, and reduces the impact on lighting and product film color changes.
Smart Images

Figure CN118169911B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of computer vision detection, and in particular relates to a TFT short line detection method and system. Background Art
[0002] Computer vision inspection technology is widely used in the field of industrial automation due to its advantages such as high efficiency and integration. With the continuous improvement and development of the manufacturing process of the LED\LCD display industry, the requirements for automatic optical inspection equipment are also increasing year by year in order to adapt to the complexity and diversity of its products. Defects are inevitable in the production process of TFT liquid crystal panels, such as broken and short circuits in printed circuits, debris left behind, scratches, dirt, etc. However, if these defects are detected manually, it will be very time-consuming and laborious. If they are not resolved at the front end, they can only be treated as defective products after the product is produced, which seriously affects the yield rate of the product. It can be seen that using automatic optics to perform defect detection on LCD panels at the front end is one of the indispensable key steps in the current LCD panel industry.
[0003] TFT short-line products are a special type of display screen product, which is mainly composed of various lines. The main area of concern is the routing area, and abnormalities in other areas are generally not paid attention to; but due to the wide range of application industries, some products may be customized, resulting in a large number of product types. At present, there is no detection algorithm that is fully suitable for such products, and most of them still require manual inspection or review. Summary of the invention
[0004] Based on the characteristics of TFT short-line products, the present invention proposes a TFT short-line detection method and system. The present invention first calculates the sample grayscale change direction angle map, and then obtains the effective coordinate correction area; then obtains the detection area angle template map and mask map, and uses the mask map to calculate the grayscale change direction angle map of the image to be detected; finally, the abnormal area is calibrated according to the similarity of the angle map.
[0005] Specifically, the present invention provides a method for detecting a TFT short line, which is mainly divided into the following steps:
[0006] Calculate the grayscale change direction angle map of all sample images;
[0007] Get the valid coordinate correction area;
[0008] Obtain the angle template image of the detection area and create a mask image;
[0009] Use the mask image to calculate the grayscale change direction angle image of the image to be detected;
[0010] The abnormal area is calibrated according to the similarity of the angle map.
[0011] Furthermore, the described process of calculating the grayscale change direction angle graph of all sample images is as follows:
[0012] All sample images are obtained from multiple images of the same product as the test product, with the same position as the test area.
[0013] First, calculate the change dx of the grayscale in the x direction and the change dy in the y direction of a pixel in the 8-neighborhood, then calculate the arc cosine of the ratio of the change in the y direction to the change in the x direction, which is the grayscale change direction angle of the point; finally, normalize the grayscale change direction angle into 8 directions, and the normalization method is as follows Figure 2 As shown, a value of 0 to 255 can be used to represent the angle value of the grayscale change direction of this point; after all points of each sample image are processed, a grayscale change direction angle map AngI corresponding to the sample image can be generated. Use T samples (T is usually 3 or 5) TemI i , i =1,2,..., T , generate the grayscale change direction angle map AngI corresponding to T samples i , i =1,2,..., T .
[0014] Furthermore, the process of obtaining a valid coordinate correction area is as follows:
[0015] First, select one of the sample grayscale change direction angle graphs AngI1, and find the area coordinates orect where the angle change points and the number of consecutive points are greater than the preset value (the preset value is at least 4). i , i =0,1,..., n Then sort them from large to small according to the angle change rate, select the first N areas with the largest angle changes, and expand them to a uniform size as candidate areas Rect i (x,y,w,h), i =1,2,..., N .
[0016] Then use the grayscale change direction angle map of other samples to verify the N candidate areas. If there are also a certain amount of angle change points (generally considered to be greater than 10 points or greater than a quarter of the total number of points in a single candidate area) and the number of consecutive points is greater than the preset value, the coordinates of the area are retained, otherwise the coordinates of the area are removed, so that M reliable coordinate correction areas Rect are obtained. i (x,y,w,h), i =1,2,...,M.
[0017] Furthermore, the method for obtaining the angle template image of the detection area and creating the mask image is as follows:
[0018] First, use the grayscale change direction angle map of all samples to count the angle values of all points and generate a grayscale change direction angle template for detection. The grayscale value of the flat area in the angle template is 0, and a non-zero value indicates that there is a grayscale change at the corresponding position point.
[0019] Angular template Figure 2 The point with an angle of 0 is set to 0, otherwise it is set to 255; then a 5x5 expansion process is performed to make the mask area cover the entire routing area, so that a mask image is generated. 0 represents the flat background area, which can be processed later as needed or processed by a suitable algorithm, and 255 represents the routing area that needs to be processed.
[0020] Furthermore, the method for calculating the grayscale change direction angle map of the image to be detected using the mask image is as follows:
[0021] First, the effective coordinate correction area is used to perform image coordinate correction to obtain the relative position offset between the detection image and the angle template image, and then the actual detection area is obtained.
[0022] Then calculate the grayscale change direction angle map of the actual detection area. Starting from the starting point of the actual detection area, first determine whether the mask of the corresponding position is 255. If it is 255, calculate the grayscale change direction angle value of the point. Otherwise, return directly until all points are detected, and you can get the grayscale change direction angle map of the detection image.
[0023] Furthermore, the method for calibrating abnormal areas according to the similarity of angle graphs is as follows:
[0024] First, the angle map of the image is detected by counting small areas AngI (x,y) and angle template image Ang The similarity of (x, y) is as follows:
[0025] ,
[0026] Where (x, y) represents the center point of the small block, and n represents the area of the small block, that is, the number of valid points in the small block.
[0027] Then, based on the similarity of each small block, it is marked whether the small block is abnormal. If the similarity is greater than the set threshold Ts, it is a normal routing area, otherwise it is an abnormal area.
[0028] Finally, for the abnormal area, judge point by point. If the angle of the point deviates from the angle of the corresponding position of the template by more than 45°, and there are at least N points in the neighborhood whose angles deviate from the angles of the corresponding positions of the template by more than 45°, then the point is considered to be abnormal (the neighborhood is generally 4 or 8, N is generally 1, 2 or 3, and N is not too large). The corresponding position of the result map is assigned a value of 255 for the point judged to be abnormal, otherwise the corresponding position of the result map is assigned a value of 0.
[0029] According to a second aspect of the present invention, there is also provided a TFT short line detection system, comprising:
[0030] The sample calculation module is used to calculate the grayscale change direction angle map of all sample images;
[0031] A correction module is used to obtain a valid coordinate correction area according to the grayscale change direction angle diagram of all sample images;
[0032] The mask module is used to obtain the angle template image of the detection area and create a mask image according to the grayscale change direction angle image of all sample images;
[0033] A measurement calculation module, used to calculate the grayscale change direction angle diagram of the image to be detected using the mask image according to the effective coordinate correction area;
[0034] The abnormality calibration module is used to calibrate the abnormal area according to the similarity between the grayscale change direction angle map of the image to be detected and the angle template map.
[0035] Compared with the prior art, the present invention can effectively shield the areas that customers do not pay attention to, focus on the areas that customers pay attention to, and greatly improve the detection speed; it is not affected by lighting and product film color changes, and is suitable for all such short-line products. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in the present application and should not be regarded as limiting the scope of the present application.
[0037] Figure 1 A flow chart showing a TFT short line detection method according to an embodiment of the present application;
[0038] Figure 2 It is a schematic diagram of grayscale direction angle division of the present invention;
[0039] Figure 3 It is the grayscale direction angle template image and mask image of the present invention;
[0040] Figure 4 It is a grayscale direction angle diagram of the detection data of the present invention;
[0041] Figure 5 It is the test result diagram of the present invention;
[0042] Figure 6 A diagram showing a structure of a TFT short line detection system according to an embodiment of the present application;
[0043] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present application is shown;
[0044] Figure 8 A schematic diagram of a storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0045] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0046] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0047] Embodiment 1, as Figure 1 As shown, the purpose of the present invention is to detect short line anomalies in TFT products. The calculation process is as follows:
[0048] S1, calculate the grayscale change direction angle map of all sample images;
[0049] First, calculate the change dx of the grayscale in the x direction and the change dy in the y direction of a pixel in the 8-neighborhood, then calculate the arc cosine of the ratio of the change in the y direction to the change in the x direction, which is the grayscale change direction angle of the point; finally, normalize the grayscale change direction angle into 8 directions, and the normalization method is as follows Figure 2 As shown, a value of 0 to 255 can be used to represent the angle value of the grayscale change direction of this point; after all points of each sample image are processed, a grayscale change direction angle map AngI corresponding to the sample image can be generated. Use T samples (T is usually 3 or 5) TemI i , i =1,2,..., T, Generate T samples corresponding to the grayscale change direction angle map AngI i , i =1,2,..., T , in this example T=5.
[0050] S2, obtaining a valid coordinate correction area;
[0051] First, select one of the sample grayscale change direction angle graphs AngI1, and find the area coordinates orect where the angle change points and the number of consecutive points are greater than the preset value (the preset value is at least 4). i , i =0,1,..., n Then sort them from large to small according to the angle change rate, select the first N areas with the largest angle changes, and expand them to a uniform size as candidate areas Rect i (x,y,w,h), i =1,2,..., N .
[0052] Then use the grayscale change direction angle map of other samples to verify the N candidate areas. If there are also a certain amount of angle change points (generally considered to be greater than 10 points or greater than a quarter of the total number of points in a single candidate area) and the number of consecutive points is greater than the preset value, the coordinates of the area are retained, otherwise the coordinates of the area are removed, so that M reliable coordinate correction areas Rect are obtained. i (x,y,w,h), i =1,2,...,M.
[0053] S3, obtain the angle template image of the detection area and create a mask image, such as Figure 3 As shown;
[0054] First, use the grayscale change direction angle map of all samples to count the angle values of all points and generate a grayscale change direction angle template for detection. The grayscale value of the flat area in the angle template is 0, and a non-zero value indicates that there is a grayscale change at the corresponding position point.
[0055] Angular template Figure 2 The point with an angle of 0 is set to 0, otherwise it is set to 255; then a 5x5 expansion process is performed to make the mask area cover the entire routing area. In this way, a mask image is generated. 0 represents a flat background area, which can be processed as needed or processed by a suitable algorithm. 255 represents the routing area that needs to be processed.
[0056] S4, using the mask image to calculate the grayscale change direction angle image of the image to be detected;
[0057] First, the effective coordinate correction area is used to perform image coordinate correction to obtain the relative position offset between the detection image and the angle template image, and then the actual detection area is obtained.
[0058] Then calculate the grayscale change direction angle map of the actual detection area. Starting from the starting point of the actual detection area, first determine whether the corresponding position mask is 255. If it is 255, calculate the grayscale change direction angle value of the point. Otherwise, return directly until all points are detected. You can get the grayscale change direction angle map of the detection image, such as Figure 4 shown.
[0059] S5, calibrating the abnormal area according to the similarity of the angle graph;
[0060] First, the angle map of the image is detected by counting small areas AngI (x,y) and angle template image Ang The similarity of (x, y) is as follows:
[0061] ,
[0062] Where (x, y) represents the center point of the small block, and n represents the area of the small block, that is, the number of valid points in the small block.
[0063] Then, based on the similarity of each small block, it is marked whether the small block is abnormal. If the similarity is greater than the set threshold Ts, it is a normal routing area, otherwise it is an abnormal area.
[0064] Finally, for the abnormal area, judge point by point. If the angle of the point deviates from the angle of the corresponding position of the template by more than 45°, and there are at least N points in the neighborhood whose angles deviate from the angles of the corresponding positions of the template by more than 45°, then the point is considered to be abnormal (the neighborhood is generally 4 neighborhoods or 8 neighborhoods, N is generally 1, 2 or 3, and N is not too large). In this example, 4 neighborhoods are selected, and N=1. The corresponding position of the result map is assigned a value of 255 for the point judged to be abnormal, otherwise the corresponding position of the result map is assigned a value of 0. The detection results are as follows: Figure 5 shown.
[0065] The application embodiment provides a TFT short line detection system, which is used to execute the TFT short line detection method described in the above embodiment, such as Figure 6 As shown, the system includes:
[0066] The sample calculation module 601 is used to calculate the grayscale change direction angle diagram of all sample images;
[0067] A correction module 602, used to obtain a valid coordinate correction area according to the grayscale change direction angle diagram of all sample images;
[0068] The mask module 603 is used to obtain an angle template image of the detection area and create a mask image according to the grayscale change direction angle image of all sample images;
[0069] The measured calculation module 604 is used to calculate the grayscale change direction angle diagram of the image to be detected using the mask image according to the effective coordinate correction area;
[0070] The abnormality calibration module 605 is used to calibrate the abnormal area according to the similarity between the grayscale change direction angle map of the image to be detected and the angle template map.
[0071] The TFT short line detection system provided in the above-mentioned embodiment of the present application and the TFT short line detection method provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.
[0072] The embodiment of the present application also provides an electronic device corresponding to the TFT short line detection method provided in the above embodiment, so as to execute the TFT short line detection method. The embodiment of the present application is not limited.
[0073] Please refer to Figure 7 , which shows a schematic diagram of an electronic device provided by some embodiments of the present application. Figure 7 As shown, the electronic device 2 includes: a processor 200, a memory 201, a bus 202 and a communication interface 203, and the processor 200, the communication interface 203 and the memory 201 are connected via the bus 202; the memory 201 stores a computer program that can be run on the processor 200, and when the processor 200 runs the computer program, it executes the TFT short line detection method provided in any of the aforementioned embodiments of the present application.
[0074] The memory 201 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 203 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.
[0075] The bus 202 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 201 is used to store programs, and the processor 200 executes the programs after receiving the execution instruction. The TFT short line detection method disclosed in any implementation of the embodiment of the present application may be applied to the processor 200, or implemented by the processor 200.
[0076] The processor 200 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 200. The above processor 200 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a readily available programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 201, and the processor 200 reads the information in the memory 201 and completes the steps of the above method in combination with its hardware.
[0077] The electronic device provided in the embodiment of the present application and the TFT short line detection method provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, operated or implemented therein.
[0078] The present application also provides a computer-readable storage medium corresponding to the TFT short line detection method provided in the above embodiment. Figure 8 The computer-readable storage medium shown is a CD 30 on which a computer program (ie, a program product) is stored. When the computer program is run by a processor, the TFT short line detection method provided in any of the aforementioned embodiments will be executed.
[0079] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.
[0080] The computer-readable storage medium provided in the above-mentioned embodiments of the present application and the TFT short line detection method provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.
[0081] It should be noted that:
[0082] The algorithms and displays provided herein are not inherently related to any particular computer, virtual system or other device. Various general purpose systems may also be used together with the teachings based thereon. It is apparent from the above description that the structure required for constructing such systems is not intended for any particular programming language. In addition, the present application is not intended for any particular programming language either. It should be understood that the content of the present application described herein may be implemented using various programming languages, and the description of the particular language above is intended to disclose the best mode of implementation of the present application.
[0083] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0084] Similarly, it should be understood that in order to streamline the present application and help understand one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, the various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be interpreted as reflecting the following intention: the claimed application requires more features than the features clearly stated in each claim. More specifically, the inventive aspects are less than all the features of the single embodiment disclosed above. Therefore, the claims following the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present application.
[0085] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0086] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present application and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0087] The various component embodiments of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components in the creation system of the virtual machine according to the embodiment of the present application. The present application can also be implemented as a device or system program (e.g., computer program and computer program product) for executing part or all of the methods described herein. Such a program implementing the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0088] It should be noted that the above embodiments illustrate the present application rather than limit the present application, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets should not be constructed as a limitation to the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of multiple such elements. The present application may be implemented by means of hardware including several different elements and by means of appropriately programmed computers. In a unit claim that lists several systems, several of these systems may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names.
[0089] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A TFT short line detection method, characterized in that: The following steps are involved: Calculate the grayscale change direction angle map of all sample images; According to the grayscale change direction angle diagram of all sample images, the effective coordinate correction area is obtained; According to the grayscale change direction angle map of all sample images, obtain the angle template map of the detection area and create a mask map; According to the effective coordinate correction area, the mask image is used to calculate the grayscale change direction angle map of the image to be detected, including: using the effective coordinate correction area to perform image coordinate correction, obtaining the relative position offset between the detection image and the angle template image, and then obtaining the actual detection area; calculating the grayscale change direction angle map of the actual detection area: starting from the starting point of the actual detection area, first determine whether the corresponding position mask is 255, if it is 255, calculate the grayscale change direction angle value of the starting point, otherwise directly return until all points are detected, and obtain the grayscale change direction angle map of the detection image; Determine the abnormal area according to the similarity between the grayscale change direction angle map of the image to be detected and the angle template map; The process of calculating the grayscale change direction angle graph of all sample images is as follows: All sample images are obtained from multiple images of the same product as the test product, with the same position as the test area; Calculate the change dx of the grayscale of a pixel in the x direction and the change dy in the y direction within the 8-neighborhood; Calculate the arc cosine of the ratio of the grayscale change in the y direction to the grayscale change in the x direction, which is the grayscale change direction angle of the pixel point. Normalize the grayscale change direction angle into 8 directions, and use a value of 0~255 to represent the grayscale change direction angle value of the pixel; All pixels of each sample image are processed to generate grayscale change direction angle diagrams corresponding to all sample images; The process of obtaining the effective coordinate correction area according to the grayscale change direction angle diagram of all sample images is as follows: Select one of the grayscale change direction angle graphs of the samples, and find the coordinates of the area where the angle change points and the number of consecutive points are greater than the preset value; Sort the angle change rates from large to small, select the first few areas with the largest angle changes, and expand them to a uniform size as candidate areas; The grayscale change direction angle diagram of other samples is used to verify the several candidate areas. If there are also a preset amount of angle change points and the number of consecutive points is greater than the preset value, the coordinates of the area are retained. Otherwise, the coordinates of the area are removed to obtain multiple coordinate correction areas.
2. A TFT short line detection method according to claim 1, characterized in that: The preset amount is greater than 10 points or greater than one quarter of the total number of points in a single candidate area.
3. A TFT short line detection method according to claim 1, characterized in that: The method of obtaining an angle template image of the detection area and creating a mask image according to the grayscale change direction angle images of all sample images includes: Using the grayscale change direction angle map of all samples, the angle values of all pixels are counted to generate an angle template map for detection, in which the grayscale value of the flat area in the angle template map is 0, and a non-zero value indicates that there is a grayscale change at the corresponding position point; Binarize the angle template image, set the point with angle 0 to 0, otherwise set it to 255; Perform a 5x5 expansion process to make the mask area cover the entire routing area to generate a mask image, where 0 represents the flat background area and 255 represents the routing area.
4. A TFT short line detection method according to any one of claims 1 to 3, characterized in that: The method of calibrating the abnormal area according to the similarity between the grayscale change direction angle map of the image to be detected and the angle template map includes: Angle map of the image detected by small area statistics AngI (x,y) and angle template image Ang The similarity of (x, y) is as follows: , Where (x, y) represents the center point of the small block, and n represents the area of the small block, that is, the number of valid points in the small block; According to the similarity of each small block, mark whether the small block is abnormal. If the similarity is greater than the set threshold, it is a normal routing area, otherwise it is an abnormal area; For abnormal areas, judge point by point. If the angle deviation between the point and the corresponding position of the template is greater than 45°, and there are at least a preset number of points in the neighborhood whose angle deviation between the point and the corresponding position of the template is greater than 45°, then the point is considered to be abnormal. For points judged to be abnormal, the corresponding position of the result image is assigned a value of 255, otherwise the corresponding position of the result image is assigned a value of 0.
5. A TFT short line detection system, using the method according to any one of claims 1 to 4, characterized in that: include: The sample calculation module is used to calculate the grayscale change direction angle map of all sample images; A correction module is used to obtain a valid coordinate correction area according to the grayscale change direction angle diagram of all sample images; The mask module is used to obtain the angle template image of the detection area and create a mask image according to the grayscale change direction angle image of all sample images; A measurement calculation module, used to calculate the grayscale change direction angle diagram of the image to be detected using the mask image according to the effective coordinate correction area; The abnormality calibration module is used to calibrate the abnormal area according to the similarity between the grayscale change direction angle map of the image to be detected and the angle template map.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: The processor runs the computer program to implement the method according to any one of claims 1 to 4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the method according to any one of claims 1 to 4.
