TWI737447B - Image processing method, electronic device and storage device - Google Patents

Image processing method, electronic device and storage device Download PDF

Info

Publication number
TWI737447B
TWI737447B TW109127632A TW109127632A TWI737447B TW I737447 B TWI737447 B TW I737447B TW 109127632 A TW109127632 A TW 109127632A TW 109127632 A TW109127632 A TW 109127632A TW I737447 B TWI737447 B TW I737447B
Authority
TW
Taiwan
Prior art keywords
text
image
recognized
area
subregion
Prior art date
Application number
TW109127632A
Other languages
Chinese (zh)
Other versions
TW202207078A (en
Inventor
楊承儒
唐婉馨
吳沛宸
Original Assignee
新加坡商鴻運科股份有限公司
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 新加坡商鴻運科股份有限公司 filed Critical 新加坡商鴻運科股份有限公司
Priority to TW109127632A priority Critical patent/TWI737447B/en
Application granted granted Critical
Publication of TWI737447B publication Critical patent/TWI737447B/en
Publication of TW202207078A publication Critical patent/TW202207078A/en

Links

Images

Landscapes

  • Image Analysis (AREA)

Abstract

The present application provides an image processing method. The method includes: acquiring a first text area in an image to be recognized; acquiring a second text area in a standard image, and extracting a text window based on the second text area, wherein the text window includes multiple sub-windows; acquiring a target text area in the image to be recognized; and obtaining a first text sub-areas set by dividing the target text area according to the multiple sub-windows; and obtaining a second text sub-areas set by dividing the second text area according to the multiple sub-windows. The method further includes marking the image to be recognized as a qualified image when each of the first text sub-area is the same as each of the second text sub-area. The application also provides an electronic device and a storage medium, which can improve production efficiency.

Description

影像處理方法、電子裝置和存儲介質 Image processing method, electronic device and storage medium

本申請涉及圖像技術領域,尤其涉及一種影像處理方法、電子裝置和存儲介質。 This application relates to the field of image technology, and in particular to an image processing method, electronic device and storage medium.

自動光學檢查(Automated Optical Inspection,AOI)是對印刷電路板製造的自動視覺檢查。為高速高精度光學影像檢測系統,通過運用機器視覺以比對待測物與標準影像是否有差異,來判斷待測物是否符合標準。AOI機台普遍應用於SMT(Surface Mount Technology)組裝線上檢測電路板上的零件焊錫組裝(PCB Assembly)後的品質狀況,或是檢查錫膏印刷後是否符合標準。一般而言,AOI機台工程師會設定每個待測物的檢測標準。若檢測標準設定太嚴格,則假警報率過高;若檢測標準設定太寬鬆,則可能會漏檢產品瑕疵。目前通過AOI檢測為瑕疵的產品,需進一步透過人工目檢(Visual Inspection)來複判待測物(如電路板)是否真的有問題,並以人工目檢的結果為準。 Automated Optical Inspection (AOI) is an automatic visual inspection of printed circuit board manufacturing. It is a high-speed and high-precision optical image detection system that uses machine vision to compare whether there is a difference between the object to be tested and the standard image to determine whether the object to be tested meets the standard. AOI machines are commonly used in SMT (Surface Mount Technology) assembly lines to check the quality of parts on the circuit board after PCB assembly, or to check whether the solder paste meets the standards after printing. Generally speaking, the AOI machine engineer will set the inspection standards for each object to be tested. If the detection standard is set too strict, the false alarm rate is too high; if the detection standard is set too loose, the product defect may be missed. At present, products that are detected as defective by AOI need to be further judged by manual visual inspection (Visual Inspection) to determine whether the object under test (such as circuit board) is really defective, and the result of manual visual inspection shall prevail.

例如,現行的AOI機台在檢測IC類元件時,會以元件上的文字為判斷依據來確認所述元件是否合格。通常檢測元件上的文字的檢測標準較嚴格。相同的IC類元件,刻出來的文字是相同的,但可能因為元件由不同廠商所供應,相同文字字體型態上可能有所不同,導致經AOI機台檢驗後被判定為瑕疵。此時需要工程師重新確認檢測標準,或是新增標準圖像,來調整不同的字體所造成AOI機台的誤判,導致整體產線效率降低。 For example, when the current AOI machine inspects IC components, it will use the text on the component as a judgment basis to confirm whether the component is qualified. Usually, the text on the detection element has a stricter detection standard. For the same IC components, the engraved text is the same, but it may be that the components are supplied by different manufacturers, and the font type of the same text may be different, which will result in being judged as defective after being inspected by the AOI machine. At this time, engineers need to reconfirm the inspection standards or add standard images to adjust the misjudgment of the AOI machine caused by different fonts, resulting in a decrease in the overall production line efficiency.

有鑑於此,有必要提供一種影像處理方法、電子裝置和存儲介質,可以提升產線生產效率。 In view of this, it is necessary to provide an image processing method, an electronic device, and a storage medium, which can improve the production efficiency of the production line.

本申請第一方面提供了一種影像處理方法,所述方法包括:獲取待識別圖像和標準圖像;獲取所述待識別圖像中的第一文本區域;獲取所述標準圖像中的第二文本區域,根據所述第二文本區域提取文本視窗,其中,所述文本視窗包括多個子視窗;基於所述第一文本區域和所述文本視窗,得到所述待識別圖像中的目標文本區域;根據所述多個子視窗分割所述目標文本區域,得到第一文本子區域集,及根據所述多個子視窗分割所述第二文本區域,得到第二文本子區域集;判斷所述第一文本子區域集之中所有第一文本子區域是否與所述第二文本子區域集之中對應的第二文本子區域相同;及當所述第一文本子區域集之中所有第一文本子區域與所述第二文本子區域集之中對應的第二文本子區域都相同,標記所述待識別圖像為合格圖像。 The first aspect of the application provides an image processing method, the method includes: acquiring a to-be-recognized image and a standard image; acquiring a first text area in the to-be-recognized image; acquiring a first text area in the standard image Two text areas, extracting a text window based on the second text area, wherein the text window includes a plurality of sub-windows; based on the first text area and the text window, the target text in the image to be recognized is obtained Region; segment the target text region according to the multiple sub-windows to obtain a first text subregion set, and segment the second text region according to the multiple sub-windows to obtain a second text subregion set; determine the first Whether all first text subregions in a text subregion set are the same as the corresponding second text subregions in the second text subregion set; and when all first texts in the first text subregion set The subregion is the same as the corresponding second text subregion in the second text subregion set, and the image to be recognized is marked as a qualified image.

本申請的一些實施方式,所述基於所述第一文本區域和所述文本視窗,得到所述待識別圖像中的目標文本區域包括:截取所述標準圖像中的第二文本區域;利用所述第二文本區域與所述第一文本區域進行匹配,找到所述第二文本區域中與所述第一文本區域圖元點相似度最高的區域;及利用所述文本視窗在所述第一文本區域中框選出所述圖元點相似度最高的區域,得到所述目標文本區域。 In some embodiments of the present application, the obtaining the target text area in the image to be recognized based on the first text area and the text window includes: intercepting the second text area in the standard image; using The second text area is matched with the first text area to find the area in the second text area with the highest similarity to the first text area's primitive point; and the text window is used in the first text area In a text area, frame the area with the highest similarity of the graphic element points to obtain the target text area.

本申請的一些實施方式,判斷所述第一文本子區域集之中所有第一文本子區域是否與所述第二文本子區域集之中對應的第二文本子區域相同包括:計算所述第一文本子區域集之中的第一文本子區域與對應所述第二文本子區域集之中第二文本子區域之間的圖元點相似度,得到圖元點相似度集;判斷所述圖元點相似度集中的每個圖元點相似度是否都大於或等於預設值;當所述圖元點相似度集中的每個圖元點相似度都大於或等於預設值時,確認所述第一文本子區域集之中所有第一文本子區域與所述第二文本子區域集之中對應的第 二文本子區域都相同;當所述圖元點相似度集中的存在有圖元點相似度小於所述預設值時,確認所述第一文本子區域集之中存在第一文本子區域與所述第二文本子區域集之中對應的第二文本子區域不相同。 In some implementation manners of the present application, determining whether all first text subregions in the first text subregion set are the same as the corresponding second text subregions in the second text subregion set includes: calculating the first text subregion The similarity of graphic element points between a first text subarea in a text subarea set and a second text subarea in the corresponding second text subarea set, to obtain a similarity set of graphic element points; judging the said Whether the similarity of each primitive point in the primitive point similarity set is greater than or equal to the preset value; when the similarity of each primitive point in the primitive point similarity set is greater than or equal to the preset value, confirm All the first text sub-areas in the first text sub-areas set and the corresponding first text sub-areas in the second text sub-areas set The two text subregions are the same; when there is a primitive point similarity in the primitive point similarity set that is less than the preset value, it is confirmed that the first text subregion and the first text subregion in the first text subregion set exist The corresponding second text subregions in the second text subregion set are different.

本申請的一些實施方式,得到所述圖元點相似度集的方法包括:通過預設分類器萃取所述第一文本子區域集之中的每個第一文本子區域的第一特徵值,以及通過所述預設分類器萃取所述第二文本子區域集之中每個第二文本子區域的第二特徵值;及計算所述第一特徵值與所述第二特徵值之間的圖元點相似度,得到圖元點相似度集。 In some implementation manners of the present application, the method for obtaining the set of similarity of primitive points includes: extracting the first feature value of each first text subregion in the first text subregion set through a preset classifier, And extracting the second feature value of each second text subregion in the second text subregion set by the preset classifier; and calculating the difference between the first feature value and the second feature value The similarity of primitive points is obtained, and the similarity set of primitive points is obtained.

本申請的一些實施方式,所述得到所述圖元點相似度集的方法還包括:將所述第一文本子區域集之中的每一第一文本子區域輸入到預設分類器中,以識別每個第一文本子區域。 In some implementation manners of the present application, the method for obtaining the similarity set of graphic element points further includes: inputting each first text subregion in the first text subregion set into a preset classifier, To identify each first text subregion.

本申請的一些實施方式,所述方法還包括:當所述第一文本子區域集之中存在第一文本子區域與所述第二文本子區域集之中對應的第二文本子區域不相同時,標記所述待識別圖像為瑕疵圖像。 In some implementation manners of the present application, the method further includes: when the first text subregion in the first text subregion set is different from the corresponding second text subregion in the second text subregion set When, mark the image to be recognized as a flawed image.

本申請的一些實施方式,所述方法還包括預處理所述待識別圖像,所述預處理所述待識別圖像包括:通過濾波器濾除所述待識別圖像中的雜訊;通過影像增強技術增強所述第一文本區域;及二值化處理所述待識別圖像。 In some embodiments of the present application, the method further includes preprocessing the image to be recognized, and the preprocessing the image to be recognized includes: filtering noise in the image to be recognized through a filter; Image enhancement technology enhances the first text area; and binarizes the image to be recognized.

本申請的一些實施方式,所述方法還包括:標記所述待識別圖像為合格圖像後,輸出提示資訊提示所述待識別圖像為合格圖像;或者標記所述待識別圖像為瑕疵圖像後,輸出提示資訊提示所述待識別圖像為瑕疵圖像。 In some embodiments of the present application, the method further includes: after marking the image to be recognized as a qualified image, outputting prompt information to prompt the image to be recognized as a qualified image; or marking the image to be recognized as a qualified image After the defective image, prompt information is output to prompt that the image to be recognized is a defective image.

本申請第二方面提供了一種電子裝置,所述電子裝置包括:處理器;以及記憶體,所述記憶體中存儲有多個程式模組,所述多個程式模組由所述處理器載入並執行如上所述影像處理方法。 A second aspect of the present application provides an electronic device, the electronic device includes: a processor; and a memory, the memory stores a plurality of program modules, the plurality of program modules are carried by the processor Incorporate and execute the image processing method described above.

本申請第三方面提供了一種存儲介質,其上存儲有至少一條電腦指令,所述指令由處理器載入並執行如上所述影像處理方法。 A third aspect of the present application provides a storage medium on which at least one computer instruction is stored, and the instruction is loaded by a processor and executes the image processing method described above.

相較於習知技術,本申請的實施方式提供的一種影像處理方法、電子裝置和存儲介質,通過運用影像處理方法及分類器萃取待識別圖像的特徵,使得相同的文字雖然有不同的字體型態皆能萃取出相似特徵,再與標準圖像的文字特徵做比對,以判斷所述待識別圖像是否為合格圖像。本申請能使機台誤判率大幅降低,大幅提升整體產線效率。 Compared with the conventional technology, an image processing method, an electronic device, and a storage medium provided by the embodiments of the present application extract the features of the image to be recognized by using an image processing method and a classifier, so that the same text has different fonts. Similar features can be extracted from all types, and then compared with the text features of the standard image to determine whether the image to be recognized is a qualified image. This application can greatly reduce the machine misjudgment rate and greatly improve the overall production line efficiency.

1:電子裝置 1: Electronic device

10:通信單元 10: Communication unit

11:記憶體 11: Memory

12:處理器 12: processor

30:文本視窗 30: text window

301:子視窗 301: sub-window

RA、RB、RC:第一文本區域 R A , R B , R C : the first text area

R:區域 R: area

20:影像處理系統 20: Image processing system

201:獲取模組 201: Get Mods

202:處理模組 202: Processing Module

203:判斷模組 203: Judgment Module

204:標記模組 204: Marking Module

圖1是根據本申請一實施方式的電子裝置的示意圖。 Fig. 1 is a schematic diagram of an electronic device according to an embodiment of the present application.

圖2是根據本申請一實施方式的影像處理方法的流程圖。 Fig. 2 is a flowchart of an image processing method according to an embodiment of the present application.

圖3是根據本申請標準圖像示意圖。 Figure 3 is a schematic diagram of a standard image according to this application.

圖4是根據本申請待識別圖像與標準圖像進行匹配得到第二文本子區域的示意圖。 FIG. 4 is a schematic diagram of a second text subregion obtained by matching the image to be recognized with the standard image according to the present application.

圖5A至圖5F為本申請中待識別圖像的示意圖。 5A to 5F are schematic diagrams of images to be recognized in this application.

圖6是根據本申請一實施方式的影像處理系統的功能模組圖。 FIG. 6 is a functional module diagram of an image processing system according to an embodiment of the present application.

圖7是根據本申請一實施方式的混淆矩陣的示意圖。 Fig. 7 is a schematic diagram of a confusion matrix according to an embodiment of the present application.

下面將結合本申請實施方式中的附圖,對本申請實施方式中的技術方案進行清楚、完整地描述,顯然,所描述的實施方式是本申請一部分實施方式,而不是全部的實施方式。 The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of them.

請參閱圖1,影像處理系統20運行於電子裝置1中。所述電子裝置1包括,但不僅限於,通信單元10、記憶體11和至少一個處理器12。所述通信單元10、記憶體11和至少一個處理器12之間電性連接。 Please refer to FIG. 1, the image processing system 20 runs in the electronic device 1. The electronic device 1 includes, but is not limited to, a communication unit 10, a memory 11 and at least one processor 12. The communication unit 10, the memory 11 and at least one processor 12 are electrically connected.

在本實施方式中,所述通信單元10用於給所述電子裝置1提供網路通信。所述網路可以是有線網路,也可以是無線網路,例如無線電、無線保真(Wireless Fidelity,WIFI)、蜂窩、衛星、廣播等。 In this embodiment, the communication unit 10 is used to provide network communication for the electronic device 1. The network may be a wired network or a wireless network, such as radio, wireless fidelity (WIFI), cellular, satellite, broadcast, etc.

所述電子裝置1通過所述通信單元10與AOI機台(圖中未示出)通信連接。 The electronic device 1 is communicatively connected with an AOI machine (not shown in the figure) through the communication unit 10.

在一實施方式中,所述電子裝置1可以為安裝有影像處理程式的電子裝置,例如電腦、智慧手機、個人電腦、伺服器等。 In one embodiment, the electronic device 1 may be an electronic device installed with an image processing program, such as a computer, a smart phone, a personal computer, a server, and so on.

本領域技術人員應該瞭解,圖1示出的電子裝置1的結構並不構成本發明實施例的限定,所述電子裝置1還可以包括比圖1更多或更少的其他硬體或者軟體,或者不同的部件佈置。 Those skilled in the art should understand that the structure of the electronic device 1 shown in FIG. 1 does not constitute a limitation of the embodiment of the present invention. The electronic device 1 may also include more or less other hardware or software than in FIG. Or different component arrangements.

需要說明的是,所述電子裝置1僅為舉例,其他現有的或今後可能出現的電子設備如可適應於本發明,也應包含在本發明的保護範圍以內,並以引用方式包含於此。 It should be noted that the electronic device 1 is only an example, and other existing or future electronic devices that can be adapted to the present invention should also be included in the protection scope of the present invention and included here by reference.

請參閱圖2,圖2為根據本申請一實施方式的影像處理方法的流程圖。所述影像處理方法應用在電子裝置1中。根據不同的需求,所述流程圖中步驟的順序可以改變,某些步驟可以省略。 Please refer to FIG. 2, which is a flowchart of an image processing method according to an embodiment of the present application. The image processing method is applied in the electronic device 1. According to different needs, the order of the steps in the flowchart can be changed, and some steps can be omitted.

步驟S11:獲取待識別圖像和標準圖像。 Step S11: Obtain the image to be recognized and the standard image.

在本實施方式中,當使用AOI機台檢測IC類元件的時候,會以所述IC類元件上的文字作為判斷IC產品是否為同一類產品的依據。可以理解的是,相同類型的IC類元件中的每一個元件中的文字都會貼在相同的預設位置。所述AOI機台在檢測IC類元件時可以獲取所述預設位置資訊,從而可以得到包括有文字區域的待識別圖像和標準圖像。所述待識別圖像和所述標準圖像為根據同一類產品獲取的圖像。所述待識別圖像為從所述AOI機台獲取的圖像。需要說明的是,所述標準圖像上的每個文字皆清晰完整且無破損,文字無歪斜或大幅度偏移,光源正常且圖片清晰。 In this embodiment, when an AOI machine is used to detect IC components, the text on the IC components will be used as a basis for judging whether the IC products are of the same type. It is understandable that the text in each of the IC components of the same type will be pasted at the same preset position. The AOI machine can obtain the preset position information when detecting IC components, so that the to-be-recognized image and the standard image including the text area can be obtained. The image to be recognized and the standard image are images obtained from products of the same type. The image to be recognized is an image obtained from the AOI machine. It should be noted that each text on the standard image is clear and complete without damage, the text is not skewed or greatly shifted, the light source is normal, and the picture is clear.

可以理解的是,所述待識別圖像和標準圖像都包括多個圖元點。所述圖元點是指將某一圖像分割成若干個小方格,每個小方格被稱為一個圖元點。電子裝置可以通過表示這些圖元點的位置、顏色和亮度等資訊,來表示整副圖像。 It can be understood that both the to-be-recognized image and the standard image include a plurality of image element points. The picture element point refers to dividing an image into a number of small squares, and each small square is called a picture element point. The electronic device can represent the entire image by representing the location, color, and brightness of these pixel points.

步驟S12:預處理所述待識別圖像,並獲取所述待識別圖像中的第一文本區域。在本實施方式中,為了突出所述待識別圖像中文本區域,先對所述待識別圖像進行預處理。 Step S12: preprocess the image to be recognized, and obtain a first text area in the image to be recognized. In this embodiment, in order to highlight the text area in the image to be recognized, the image to be recognized is preprocessed first.

具體地,所述預處理所述待識別圖像包括: Specifically, the preprocessing the image to be recognized includes:

(1)通過濾波器濾除所述待識別圖像中的雜訊。在本實施方式中,盡可能保留所述待識別圖像的主要特徵的同時,去掉影響後續處理的無用雜訊資訊。 (1) Filter out the noise in the image to be identified through a filter. In this embodiment, while preserving the main features of the image to be recognized as much as possible, the useless noise information that affects the subsequent processing is removed.

(2)通過影像增強技術增強所述第一文本區域。 (2) Enhancing the first text area through image enhancement technology.

在本實施方式中,通過濾波器去除雜訊後的所述待識別圖像中的文本可能會變得相對模糊,需要採用影像增強技術強化所述第一文本區域,讓所述第一文本區域中的文字更加明顯。例如,如強化所述待識別圖像中的高頻分量,可使圖像中第一文本區域輪廓清晰,細節明顯。 In this embodiment, the text in the image to be recognized after the noise is removed by the filter may become relatively blurred. It is necessary to use image enhancement technology to strengthen the first text area so that the first text area The text in is more obvious. For example, if the high-frequency components in the image to be recognized are enhanced, the outline of the first text area in the image can be clear and the details can be obvious.

(3)二值化處理所述待識別圖像。 (3) Binarize the image to be recognized.

在本實施方式中,通過二值化處理所述待識別圖像,可以將所述待識別圖像轉化為黑白圖像,以利區分出所述第一文本區域及背景區域。 In this embodiment, by binarizing the image to be recognized, the image to be recognized can be converted into a black and white image, so as to distinguish the first text area from the background area.

(4)獲取所述待識別圖像中的第一文本區域。 (4) Obtain the first text area in the image to be recognized.

在本實施方式中,通過八鄰域連線物件(8-connected component)方法識別所述待識別圖像,得到多個連線物件,計算所述多個連線物件的面積,並刪除面積小於預設面積的連線物件,切分出所述待識別圖像上的文字,並且用最小外接矩形將所有文字框出,即為所述待識別圖像中的第一文本區域。可以理解的是,獲取所述待識別圖像中的第一文本區域的方法不限於上述方法。 In this embodiment, the 8-connected component method is used to identify the image to be recognized to obtain multiple connected objects, calculate the area of the multiple connected objects, and delete the area less than The connecting object with a preset area is divided into the text on the image to be recognized, and all text is framed by the smallest circumscribed rectangle, which is the first text area in the image to be recognized. It can be understood that the method of obtaining the first text area in the image to be recognized is not limited to the above method.

在本實施方式中,為了確保每張待識別圖像都能將雜訊去除並且增強文字區域,可以交替使用上述步驟(1)和步驟(2)。 In this embodiment, in order to ensure that each image to be recognized can remove noise and enhance the text area, the above steps (1) and (2) can be used alternately.

步驟S13:獲取所述標準圖像中的第二文本區域,根據所述第二文本區域提取文本視窗,其中,所述文本視窗包括多個子視窗。 Step S13: Obtain a second text area in the standard image, and extract a text window based on the second text area, wherein the text window includes a plurality of sub-windows.

在本實施方式中,獲取所述標準圖像中的第二文本區域的方法, 與獲取所述待識別圖像中的第一文本區域的方法相同,在此不再贅述。 In this embodiment, the method of obtaining the second text area in the standard image, The method is the same as the method for obtaining the first text area in the image to be recognized, and will not be repeated here.

需要說明的是,所述文本視窗為從所述圖像中提取的包含全部第一文本區域圖元點的面積最小的外接矩形。所述文本視窗包括多個子視窗,每個子視窗為所述第一文本區域中的每一字元區域圖元點的面積最小的外接矩形。例如,如圖3所示,所述標準影像中第二文本區域包含文本“SW3”,即所述標準影像中包含全部第二文本“SW3”對應的區域的圖元點的面積最小的外接矩形。所述文本視窗30包括三個子視窗301,每個子視窗301分別對應字母“S”、“W”和數字“3”。 It should be noted that the text window is a circumscribed rectangle with the smallest area extracted from the image and containing all the primitive points of the first text area. The text window includes a plurality of sub-windows, and each sub-window is a circumscribed rectangle with the smallest area of the primitive point of each character area in the first text area. For example, as shown in FIG. 3, the second text area in the standard image contains the text "SW3", that is, the circumscribed rectangle with the smallest area of the pixel points in the area corresponding to all the second text "SW3" in the standard image. . The text window 30 includes three sub-windows 301, and each sub-window 301 corresponds to the letter "S", "W" and the number "3" respectively.

步驟S14:基於所述第一文本區域和所述文本視窗,得到所述待識別圖像中的目標文本區域。 Step S14: Obtain a target text area in the image to be recognized based on the first text area and the text window.

在本實施方式中,所述第一文本區域可以包括比所述標準圖像中的第二文本區域更多的文本資訊,為了從所述第一文本區域中找到與標準圖像中相同的文本資訊,需要利用所述文本視窗30在所述待識別圖像中的第一文本區域中滑動尋找與標準圖像中相同的文本資訊。 In this embodiment, the first text area may include more text information than the second text area in the standard image, in order to find the same text in the standard image from the first text area Information, it is necessary to use the text window 30 to slide in the first text area in the image to be recognized to find the same text information as in the standard image.

具體地,基於所述第一文本區域和所述文本視窗30,得到所述待識別圖像中的目標文本區域包括: Specifically, based on the first text area and the text window 30, obtaining the target text area in the image to be recognized includes:

(1)截取所述標準圖像中的第二文本區域。 (1) Intercept the second text area in the standard image.

(2)利用所述第二文本區域與所述第一文本區域進行匹配,找到所述第二文本區域中與所述第一文本區域圖元點相似度最高的區域。在本實施方式中,利用所述第二文本區域中的每個圖元點從左至右,從上之下與所述第一文本區域的每個圖元點進行匹配,以找到所述第二文本區域中與所述第一文本區域圖元點相似度最高的區域。 (2) Use the second text area to match the first text area to find the area in the second text area with the highest similarity to the primitive point of the first text area. In this embodiment, each image element point in the second text area is used to match each image element point in the first text area from left to right, from top to bottom, to find the first text area. The second text area is the area with the highest similarity of the primitive point of the first text area.

本申請所定義的圖元點相似度指標,包含常用於計算不同樣本間的相似性度量,如距離倒數(含歐氏距離、曼哈頓距離、漢明距離等等)、相關係數(Correlation coefficient)、結構相似性(SSIM,Structural Similarity)、複小波結構相似性(CW-SSIM,Complex Wavelet SSIM)及余弦相似性(Cosine similarity)等,根 據不同的情境會使用不同的圖元點相似度指標,以利後續做文字偵測及比對。 The similarity index of image element points defined in this application includes similarity measures commonly used to calculate the similarity between different samples, such as the reciprocal distance (including Euclidean distance, Manhattan distance, Hamming distance, etc.), correlation coefficient, Structural similarity (SSIM, Structural Similarity), complex wavelet structural similarity (CW-SSIM, Complex Wavelet SSIM) and cosine similarity (Cosine similarity), etc., root According to different situations, different primitive point similarity indicators are used to facilitate subsequent text detection and comparison.

(3)利用所述文本視窗30在所述第一文本區域中框選出所述圖元點相似度最高的區域,得到所述目標文本區域。 (3) Using the text window 30 to select the area with the highest similarity of the graphic element points in the first text area to obtain the target text area.

例如,如圖4所示,待識別圖像A中的第一文本區域RA包括字元“GSW30”,待識別圖像B中的第一文本區域RB中包括字元“LBJ23”,待識別圖像C中的第一文本區域RC,所述標準圖像中的第二文本區域R包括字元“SW3”。截取所述標準圖像中的第二文本區域得到包括文本“SW3”的區域R,利用所述區域R與所述第一文本區域RA進行匹配,找到所述第一文本區域RA中的字元區域“SW3”,利用所述文本視窗在所述第一文本區域RA中框選所述字元區域“SW3”,得到目標字元區域包括字元“SW3”。利用所述區域R與所述第一文本區域RB進行匹配,找到所述第一文本區域RB中的字元區域“BJ23”,利用所述文本視窗30在所述第一文本區域RB中框選所述字元區域“BJ23”,得到目標字元區域包括字元“BJ23”。利用所述區域R0與所述第一文本區域RC進行匹配,找到所述第一文本區域RC中的字元區域包括部分字母“E”和字元“Oti3”,利用所述文本視窗30在所述第一文本區域RC中框選包括部分字母“E”和字元“Oti3”的字元區域,得到目標字元區域包括部分字母“E”和字元“Oti3”。 For example, as shown in FIG. 4, the first text area RA in the image to be recognized A includes the character "GSW30", and the first text area R B in the image B to be recognized includes the character "LBJ23". identifying a first image C C R text area, the standard image in the second region R includes text characters "SW3". Intercepting the standard image obtained in the second text area including the text region R "SW3", and the region R using the first matching text region R A, find the first text area R A of character region "SW3", with the marquee text window in the region of the first text character region R A in "SW3", to give the title character region includes the character "SW3". The region R using the first matching text region R B, to find the first character of the text area in the region R B "BJ23", using the text window 30 in the first text region R B Select the character area "BJ23" in the middle frame to obtain the target character area including the character "BJ23". Use the region R 0 to match the first text region R C , find that the character region in the first text region R C includes part of the letter "E" and the character "Oti3", and use the text window 30. In the first text area R C , frame-select the character area including part of the letter "E" and the character "Oti3", and obtain the target character area including the part of the letter "E" and the character "Oti3".

需要說明的是,所述目標文本區域不一定包括有完整的字元,而是依據所述文本視窗30的大小來框選所述第一文本區域,得到目標文本區域。 It should be noted that the target text area does not necessarily include complete characters, but the first text area is selected according to the size of the text window 30 to obtain the target text area.

步驟S15:根據所述多個子視窗分割所述目標文本區域,得到第一文本子區域集,及根據所述多個子視窗分割所述第二文本區域,得到第二文本子區域集。 Step S15: Divide the target text area according to the multiple sub-windows to obtain a first text sub-areas set, and divide the second text area according to the multiple sub-windows to obtain a second text sub-areas set.

在本實施方式中,為了更準確地比對所述目標文本區域與所述標準圖像中的第二文本區域是否一致,需要將所述目標文本區域進行分割後進行一一比對。具體地,根據所述文本視窗中的多個子視窗分割所述目標文本區域,得到第一文本子區域集。例如,如圖4所示,所述標準圖像的文本視窗包括三個子視窗,利用所述三個子視窗分割待識別圖像A中的目標文本區域,可以得到第 一文本子區域集,所述第一文本子區域集包括一個子視窗框選的字母“S”、一個子視窗框選的字母“W”和一個子視窗框選的數位“3”;利用所述三個子視窗分割待識別圖像B中的目標文本區域,可以得到第一文本子區域集,所述第一文本子區域集包括一個子視窗框選的字母“B”、一個子視窗框選的字母和數位元“J2”和一個子視窗框選的數位“3”;利用所述三個子視窗分割待識別圖像C中的目標文本區域,可以得到第一文本子區域集,所述第一文本子區域集包括一個子視窗框選的部分字母“E”和部分字母“O”、一個子視窗框選的部分字母“O”和字母“ti”、和一個子視窗框選的數位“3”。 In this embodiment, in order to more accurately compare whether the target text area is consistent with the second text area in the standard image, the target text area needs to be segmented and then compared one by one. Specifically, the target text area is divided according to the multiple sub-windows in the text window to obtain the first text sub-areas set. For example, as shown in FIG. 4, the text window of the standard image includes three sub-windows, and the three sub-windows are used to segment the target text area in the image A to be recognized, and the first A set of text subregions, the first set of text subregions includes a letter "S" selected by a subwindow, a letter "W" selected by a subwindow, and a digit "3" selected by a subwindow; The three sub-windows divide the target text area in the image B to be recognized, and a first text sub-areas set can be obtained. The first text sub-areas set includes a sub-window frame selection letter "B" and a sub-window frame selection The letters and digits "J2" and the digit "3" selected by a sub-window; using the three sub-windows to segment the target text area in the image C to be recognized, the first set of text sub-areas can be obtained. A set of text subregions includes a part of the letter "E" and part of the letter "O" selected by a subwindow, a part of the letter "O" and the letter "ti" selected by a subwindow, and a digit "selected by the subwindow" 3".

在本實施方式中,利用所述三個子視窗分割標準圖像中的第二文本區域,可以得到第二文本子區域集。所述第二文本子區域集包括一個子視窗框選的字母“S”、一個子視窗框選的字母“W”和一個子視窗框選的數位“3”。 In this embodiment, the second text area in the standard image is divided by using the three sub-windows to obtain the second text sub-areas set. The second text subregion set includes a letter "S" selected by a sub-window, a letter "W" selected by a sub-window, and a digit "3" selected by a sub-window.

需要說明的是,所述第一文本子區域集和所述第二文本子區域集之中不一定包括的都是完整的字元。所述第一文本子區域集和所述第二文本子區域集之中的子區域大小由所述文本視窗30中的子視窗的大小決定。 It should be noted that the first text subregion set and the second text subregion set do not necessarily include complete characters. The size of the sub-areas in the first text sub-areas set and the second text sub-areas set is determined by the size of the sub-window in the text window 30.

步驟S16:判斷所述第一文本子區域集之中所有第一文本子區域是否與所述第二文本子區域集之中對應的第二文本子區域相同。 Step S16: Determine whether all first text subregions in the first text subregion set are the same as the corresponding second text subregions in the second text subregion set.

在本實施方式中,通過比對所述第一文本子區域集之中第一文本子區域與對應所述第二文本子區域集之中的第二文本子區域是否相同,來確認所述待識別圖像是否為合格圖像。當所述第一文本子區域集之中所有第一文本子區域與所述第二文本子區域集之中對應的第二文本子區域相同時,流程進入步驟S17;當所述第一文本子區域集之中存在第一文本子區域與所述第二文本子區域集之中對應的第二文本子區域不相同時,流程進入步驟S18。 In this embodiment, the first text subregion in the first text subregion set is compared with the second text subregion in the corresponding second text subregion set to confirm the waiting Identify whether the image is a qualified image. When all the first text subregions in the first text subregion set are the same as the corresponding second text subregions in the second text subregion set, the process goes to step S17; when the first text subregion set When the first text subregion in the region set is different from the corresponding second text subregion in the second text subregion set, the process goes to step S18.

在本實施方式中,判斷所述第一文本子區域集之中所有第一文本子區域是否與所述第二文本子區域集之中對應的第二文本子區域相同包括: In this embodiment, determining whether all the first text subregions in the first text subregion set are the same as the corresponding second text subregions in the second text subregion set includes:

(a)計算所述第一文本子區域集之中的第一文本子區域與對應所述第二文本子區域集之中第二文本子區域之間的圖元點相似度,得到圖元點相 似度集。 (a) Calculate the similarity of the graphic element points between the first text subarea in the first text subarea set and the corresponding second text subarea in the second text subarea set to obtain the graphic element points Mutually Similarity set.

具體地,得到所述圖元點相似度集的方法包括: Specifically, the method for obtaining the similarity set of the graphic element points includes:

(1)將所述第一文本子區域集之中的每一第一文本子區域輸入到預設分類器中,以識別每個第一文本子區域。在本實施方式中,所述預設分類器為根據所述待處理圖像預處理後得到的單一字元資料集,以及額外搜集各式英文字母及數位元資料集,進行訓練得到的分類器。 (1) Input each first text subregion in the first text subregion set into a preset classifier to identify each first text subregion. In this embodiment, the preset classifier is a single-character data set obtained after preprocessing of the image to be processed, and additional collections of various English letters and digital data sets for training. .

(2)通過所述預設分類器萃取所述第一文本子區域集之中的每個第一文本子區域的第一特徵值,以及通過所述預設分類器萃取所述第二文本子區域集之中每個第二文本子區域的第二特徵值。例如,通過所述預設分類器萃取所述待識別圖像A中包括字元“S”的第一文本子區域的第一特徵值T10,通過所述預設分類器萃取所述待識別圖像A中包括字元“W”的第一文本子區域的第一特徵值T11,以及通過所述預設分類器萃取所述待識別圖像A中包括字元“3”的第一文本子區域的第一特徵值T12;通過所述預設分類器萃取所述待識別圖像B中包括字元“B”的第一文本子區域的第一特徵值T20,通過所述預設分類器萃取所述待識別圖像B中包括字元“J2”的第一文本子區域的第一特徵值T21,以及通過所述預設分類器萃取所述待識別圖像B中包括字元“3”的第一文本子區域的第一特徵值T22;以及通過所述預設分類器萃取所述待識別圖像C中包括部分字母“E”和部分字母“O”的第一文本子區域的第一特徵值T30,通過所述預設分類器萃取所述待識別圖像C中包括部分字母“O”和字母“ti”的第一文本子區域的第一特徵值T31,以及通過所述預設分類器萃取所述待識別圖像C中包括字元“3”的第一文本子區域的第一特徵值T32(2) Extracting the first feature value of each first text subregion in the first text subregion set through the preset classifier, and extracting the second text subregion through the preset classifier The second feature value of each second text subregion in the region set. For example, the first feature value T 10 of the first text subregion including the character "S" in the image A to be recognized is extracted by the preset classifier, and the first feature value T 10 is extracted by the preset classifier. The first feature value T 11 of the first text subregion including the character "W" in the image A, and the first feature value T 11 of the first text subregion including the character "3" in the image A to be recognized is extracted by the preset classifier. The first feature value T 12 of the text subregion; the first feature value T 20 of the first text subregion including the character "B" in the image B to be recognized is extracted by the preset classifier, and the The preset classifier extracts the first feature value T 21 of the first text subregion including the character "J2" in the image B to be recognized, and extracts the image B from the image B to be recognized by the preset classifier The first feature value T 22 of the first text subregion including the character "3"; and extracting the part of the letter "E" and the part of the letter "O" from the image C to be recognized by the preset classifier The first feature value T 30 of the first text subregion, the first feature of the first text subregion including part of the letter "O" and the letter "ti" in the image C to be recognized is extracted by the preset classifier The value T 31 , and the first feature value T 32 of the first text subregion including the character "3" in the image C to be recognized is extracted by the preset classifier.

通過所述預設分類器萃取所述標準圖像中包括字元“S”的第二文本子區域的第二特徵值T00,通過所述預設分類器萃取所述標準圖像中包括字元“W”的第二文本子區域的第二特徵值T01,以及通過所述預設分類器萃取所述標準圖像中包括字元“3”的第二文本子區域的第二特徵值T02 The second feature value T 00 of the second text sub-region including the character "S" in the standard image is extracted by the preset classifier, and the character included in the standard image is extracted by the preset classifier The second feature value T 01 of the second text subregion of the element "W", and the second feature value of the second text subregion including the character "3" in the standard image is extracted by the preset classifier T 02 .

(3)計算所述第一特徵值與所述第二特徵值之間的圖元點相似度, 得到圖元點相似度集。例如,計算所述待識別圖像A中的第一文本子區域集之中的第一文本子區域,與對應所述標準圖像第二文本子區域集之中第二文本子區域之間的圖元點相似度,得到圖元點相似度集。具體地,計算所述第一特徵值T10與所述第二特徵值T00之間的圖元點相似度,得到圖元點相似度S00,計算所述第一特徵值T11與所述第二特徵值T01之間的圖元點相似度,得到圖元點相似度S01,以及所述第一特徵值T12與所述第二特徵值T02之間的圖元點相似度,得到圖元點相似度S02。所述圖元點相似度集為{S00,S01,S02}。或者計算所述待識別圖像B中的第一文本子區域集之中的第一文本子區域,與對應所述標準圖像第二文本子區域集之中第二文本子區域之間的圖元點相似度,得到圖元點相似度集。具體地,計算所述待識別圖像B與所述標準圖像的圖元點相似度,如計算所述第一特徵值T20與所述第二特徵值T00之間的圖元點相似度,得到圖元點相似度S10,計算所述第一特徵值T21與所述第二特徵值T01之間的圖元點相似度,得到圖元點相似度S11,以及所述第一特徵值T22與所述第二特徵值T02之間的圖元點相似度,得到圖元點相似度S12。所述圖元點相似度集為{S10,S11,S12}。同樣可以計算所述待識別圖像C中的第一文本子區域集之中的第一文本子區域,與對應所述標準圖像第二文本子區域集之中第二文本子區域之間的圖元點相似度,得到圖元點相似度集。 (3) Calculate the similarity of graphic element points between the first eigenvalue and the second eigenvalue to obtain a set of similarity of graphic element points. For example, calculate the difference between the first text subregion in the first text subregion set in the image A to be recognized and the second text subregion in the second text subregion set corresponding to the standard image The similarity of primitive points is obtained, and the similarity set of primitive points is obtained. Specifically, the primitive point similarity between the first characteristic value T 10 and the second characteristic value T 00 is calculated to obtain the primitive point similarity S 00 , and the first characteristic value T 11 is calculated to be The graphic element point similarity between the second feature value T 01 is obtained, and the graphic element point similarity S 01 is obtained , and the graphic element point between the first feature value T 12 and the second feature value T 02 is similar , Get the similarity S 02 of the primitive point. The set of similarity of the graphic element points is {S 00 , S 01 , S 02 }. Or calculate the image between the first text subregion in the first text subregion set in the image B to be recognized and the second text subregion in the second text subregion set corresponding to the standard image The similarity of the primitive point is obtained, and the similarity set of the primitive point is obtained. Specifically, calculating the similarity of the image element points between the image B to be recognized and the standard image, such as calculating the similarity of the image element points between the first feature value T 20 and the second feature value T 00 , Obtain the primitive point similarity S 10 , calculate the primitive point similarity between the first characteristic value T 21 and the second characteristic value T 01 , obtain the primitive point similarity S 11 , and The graph element point similarity between the first feature value T 22 and the second feature value T 02 is obtained to obtain the graph element point similarity S 12 . The similarity set of the graphic element points is {S 10 , S 11 , S 12 }. It is also possible to calculate the difference between the first text subregion in the first text subregion set in the image C to be recognized and the second text subregion in the second text subregion set corresponding to the standard image. The similarity of primitive points is obtained, and the similarity set of primitive points is obtained.

(b)判斷所述圖元點相似度集中的每個圖元點相似度是否都大於或等於預設值。當所述圖元點相似度集中的每個圖元點相似度都大於或等於預設值時,確認所述第一文本子區域集之中所有第一文本子區域與所述第二文本子區域集之中對應的第二文本子區域都相同,即確認待識別圖像中的第一文本區域與標準圖像中的第二文本區域相同,流程進入步驟S17;當所述圖元點相似度集中的存在有圖元點相似度小於所述預設值時,確認所述第一文本子區域集之中存在第一文本子區域與所述第二文本子區域集之中對應的第二文本子區域不相同,即確認待識別圖像中的第一文本區域與標準圖像中的第二文本區域不相同,流程進入步驟S18。 (b) Determine whether the similarity of each graphic element point in the graphic element point similarity set is greater than or equal to a preset value. When the similarity of each graphic element point in the graphic element point similarity set is greater than or equal to the preset value, it is confirmed that all the first text subregions and the second text subregion in the first text subregion set are The corresponding second text subregions in the region set are all the same, that is, it is confirmed that the first text region in the image to be recognized is the same as the second text region in the standard image, and the process goes to step S17; when the image element points are similar When the similarity of primitive points in the degree set is less than the preset value, it is confirmed that there is a corresponding second text subregion in the first text subregion set and the second text subregion set in the first text subregion set. The text sub-areas are not the same, that is, it is confirmed that the first text area in the image to be recognized is different from the second text area in the standard image, and the process goes to step S18.

例如,所述圖元點相似度集中的圖元點相似度S00,圖元點相似度S01和圖元點相似度S02都大於或等於所述預設值,流程進入步驟S17;若所述圖元點相似度集中的圖元點相似度S00或圖元點相似度S01,或圖元點相似度S02小於所述預設值,流程進入步驟S18。 For example, if the graphic element point similarity S 00 in the graphic element point similarity set, the graphic element point similarity S 01 and the graphic element point similarity S 02 are both greater than or equal to the preset value, the process goes to step S17; if FIG similarity points of the element set point primitive or primitives similarity S 00 point similarity S 01, or S 02 of FIG membered point similarity is smaller than the predetermined value, the flow proceeds to step S18.

步驟S17:標記所述待識別圖像為合格圖像。 Step S17: Mark the image to be recognized as a qualified image.

在本實施方式中,當所述圖元點相似度集中的每個圖元點相似度都大於或等於預設值時,判定待識別圖像中的目標文本區域中的所有文字皆被判定為與標準圖像中的第二文本區域中的所有文字相同,則標記所述待識別圖像為合格圖像。例如,待識別圖像A中的目標文本區域中的所有文字皆被判定為與標準圖像中的第二文本區域中的所有文字相同,可以標記所述待識別圖像A為合格圖像。 In this embodiment, when the similarity of each of the primitive points in the primitive point similarity set is greater than or equal to the preset value, it is determined that all the characters in the target text area in the image to be recognized are determined to be If it is the same as all the characters in the second text area in the standard image, the image to be recognized is marked as a qualified image. For example, all characters in the target text area in the image A to be recognized are determined to be the same as all characters in the second text area in the standard image, and the image A to be recognized can be marked as a qualified image.

在一實施方式中,所述影像處理方法還可以輸出提示資訊提示所述待識別圖像為合格圖像。例如,輸出“Pass”資訊提示所述待識別圖像為合格圖像。也就是說,所述待識別圖像A對應的待測物為合格的待測物。 In one embodiment, the image processing method may also output prompt information to prompt that the image to be recognized is a qualified image. For example, outputting "Pass" information prompts that the image to be recognized is a qualified image. That is, the test object corresponding to the image A to be recognized is a qualified test object.

步驟S18:標記所述待識別圖像為瑕疵圖像。 Step S18: Mark the image to be recognized as a defective image.

在本實施方式中,當所述圖元點相似度集中的存在有圖元點相似度小於所述預設值時,即所述待識別圖像的目標文本區域中存在有文字被判定與標準圖像中的第二文本區域中文字不同,表示此待識別圖像的文字特徵與標準圖像的文字特徵不同,則標記所述待識別圖像為瑕疵圖像。例如,待識別圖像B中的目標文本區域中有文字與標準圖像中的第二文本區域中的文字不同,可以標記所述待識別圖像B為瑕疵圖像。也就是說,所述待識別圖像B對應的待測物為不合格的待測物。 In this embodiment, when the similarity of the primitive points in the set of primitive point similarities is less than the preset value, that is, the existence of characters in the target text area of the image to be recognized is determined and the standard The text in the second text area in the image is different, which means that the text feature of the image to be recognized is different from the text feature of the standard image, and the image to be recognized is marked as a defective image. For example, if there is a text in the target text area in the image B to be recognized that is different from the text in the second text area in the standard image, the image B to be recognized can be marked as a defective image. That is to say, the object to be tested corresponding to the image B to be recognized is an unqualified object to be tested.

在一實施方式中,所述待識別圖像被標記為瑕疵圖像包括多種可能情況。例如,所述待識別圖像上的文字與標準影像上的文字不同,如圖5A,此時可以確認所述待識別圖像對應的待測物與標準圖像對應的待測物不是同一類。例如,所述待識別圖像對應的待測物與標準圖像對應的待測物為不同廠商 生產的IC類組件;所述待識別圖像上的文字大幅度偏移,如圖5B,此時可以確認所述待識別圖像對應的待測物發生位移,在後續使用中容易出現錯誤。例如,當所述待識別圖像對應的待測物為正方形元件時,需要焊接所述正方形元件的四個頂點在電路板上,若所述正方形元件對應的待識別圖像出現圖5B的情況,則無法準備地焊接在電路板上;所述待識別圖像上的文字缺失,如圖5C,此時無法確認所述待識別圖像對應的待測物是否與標準圖像對應的待測物為同類;所述待識別圖像上的文字模糊不清,如圖5D,此時也無法確認所述待識別圖像對應的待測物是否與標準圖像對應的待測物為同類;所述待識別圖像上的文字被異物遮蓋或光源異常,如圖5E,此時確認所述待識別圖像對應的待測物上可能有異物,可能影響待測物的性能;及所述待識別圖像出現歪斜,如圖5F,此時確認所述待識別圖像對應的待測物可能出現歪斜。 In one embodiment, the image to be recognized is marked as a defect image including multiple possible situations. For example, the text on the image to be recognized is different from the text on the standard image, as shown in Figure 5A. At this time, it can be confirmed that the object under test corresponding to the image to be recognized is not the same type as the object under test corresponding to the standard image. . For example, the test object corresponding to the image to be recognized and the test object corresponding to the standard image are from different manufacturers IC components produced; the text on the image to be recognized is greatly shifted, as shown in Figure 5B. At this time, it can be confirmed that the object to be tested corresponding to the image to be recognized is displaced, which is prone to errors in subsequent use. For example, when the object under test corresponding to the image to be recognized is a square component, the four vertices of the square component need to be soldered on the circuit board. If the image to be recognized corresponding to the square component appears as shown in Figure 5B , It cannot be soldered on the circuit board in preparation; the text on the image to be recognized is missing, as shown in Figure 5C, at this time it is impossible to confirm whether the object to be tested corresponding to the image to be recognized corresponds to the standard image to be tested The objects are of the same type; the text on the image to be recognized is blurry, as shown in Figure 5D, at this time, it is also impossible to confirm whether the object to be tested corresponding to the image to be recognized is of the same type as the object to be tested corresponding to the standard image; The text on the image to be recognized is covered by a foreign object or the light source is abnormal, as shown in FIG. 5E. At this time, it is confirmed that there may be a foreign object on the object to be detected corresponding to the image to be recognized, which may affect the performance of the object to be detected; and The image to be recognized is skewed, as shown in FIG. 5F, at this time, it is confirmed that the object to be tested corresponding to the image to be recognized may be skewed.

在一實施方式中,所述影像處理方法還可以輸出提示資訊提示所述待識別圖像為瑕疵圖像。例如,輸出“Fail”資訊提示所述待識別圖像為瑕疵圖像。 In one embodiment, the image processing method may also output prompt information to prompt that the image to be recognized is a defective image. For example, outputting "Fail" information prompts that the image to be recognized is a defective image.

綜上所述,本申請提供的影像處理方法,通過運用影像處理方法及分類器萃取待識別圖像的特徵,使得相同的文字雖然有不同的字體型態皆能萃取出相似特徵,再與標準圖像的文字特徵做比對,以判斷所述待識別圖像是否為合格圖像。本申請能使機台誤判率大幅降低,大幅提升整體產線效率。 In summary, the image processing method provided in this application uses image processing methods and classifiers to extract the features of the image to be recognized, so that the same text can extract similar features even though it has different font types. The text characteristics of the image are compared to determine whether the image to be recognized is a qualified image. This application can greatly reduce the machine misjudgment rate and greatly improve the overall production line efficiency.

請參閱圖6,在本實施方式中,所述影像處理系統20可以被分割成一個或多個模組,所述一個或多個模組可存儲在所述處理器12中,並由所述處理器12執行本申請實施例的影像處理方法。所述一個或多個模組可以是能夠完成特定功能的一系列電腦程式指令段,所述指令段用於描述所述影像處理系統20在所述電子裝置1中的執行過程。例如,所述影像處理系統20可以被分割成圖6中的獲取模組201、處理模組202、判斷模組203以及標記模組204。 Please refer to FIG. 6, in this embodiment, the image processing system 20 can be divided into one or more modules, and the one or more modules can be stored in the processor 12 and used by the The processor 12 executes the image processing method of the embodiment of the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the image processing system 20 in the electronic device 1. For example, the image processing system 20 can be divided into the acquisition module 201, the processing module 202, the judgment module 203, and the marking module 204 in FIG. 6.

所述獲取模組201用於獲取待識別圖像和標準圖像;所述獲取模組201還用於獲取所述待識別圖像中的第一文本區域;所述獲取模組201還用於獲 取所述標準圖像中的第二文本區域,根據所述第二文本區域提取文本視窗,其中,所述文本視窗包括多個子視窗;所述處理模組202用於基於所述第一文本區域和所述文本視窗,得到所述待識別圖像中的目標文本區域;所述處理模組202還用於根據所述多個子視窗分割所述目標文本區域,得到第一文本子區域集,及根據所述多個子視窗分割所述第二文本區域,得到第二文本子區域集;所述判斷模組203用於判斷所述第一文本子區域集之中所有第一文本子區域是否與所述第二文本子區域集之中對應的第二文本子區域相同;及所述標記模組204用於當所述第一文本子區域集之中所有第一文本子區域與所述第二文本子區域集之中對應的第二文本子區域都相同,標記所述待識別圖像為合格圖像。 The acquisition module 201 is used to acquire the image to be recognized and the standard image; the acquisition module 201 is also used to acquire the first text area in the image to be recognized; the acquisition module 201 is also used to Get Take a second text area in the standard image, and extract a text window based on the second text area, where the text window includes a plurality of sub-windows; the processing module 202 is configured to be based on the first text area And the text window to obtain the target text area in the image to be recognized; the processing module 202 is further configured to segment the target text area according to the multiple sub-windows to obtain a first set of text sub-areas, and The second text area is divided according to the multiple sub-windows to obtain a second text sub-areas set; the judging module 203 is used to determine whether all the first text sub-areas in the first text sub-areas set are consistent with all the first text sub-areas in the first text sub-areas set. The corresponding second text subregions in the second text subregion set are the same; and the marking module 204 is used for when all the first text subregions in the first text subregion set are the same as the second text The corresponding second text subregions in the subregion set are all the same, and the image to be recognized is marked as a qualified image.

由於產線資料的多變性,本申請還製定了一套系統更新機制,透過持續累積的資料使所述影像處理系統20可以自動更新,確保模型精準,以達到適應各種產品的效果。 Due to the variability of production line data, this application has also formulated a system update mechanism to enable the image processing system 20 to be automatically updated through continuous accumulation of data to ensure the accuracy of the model to achieve the effect of adapting to various products.

在一實施方式中,可以將待識別圖像經過本系統判定之結果,與人工處理標記之結果做比對,可以計算出準確率、漏檢率及過殺率等檢測指標。當所述檢測指標達到產線所設定之標準,代表整體系統穩定,產線的新資料(即待識別圖像)會持續透過本申請的影像處理系統20判斷是否有瑕疵。 In one embodiment, the result of the judgment of the image to be recognized by the system can be compared with the result of manual processing of the mark, and the detection index such as the accuracy rate, the missed detection rate, and the overkill rate can be calculated. When the detection index reaches the standard set by the production line, it represents that the overall system is stable, and the new data of the production line (ie, the image to be recognized) will continue to judge whether there is a defect through the image processing system 20 of the present application.

若檢測指標沒有達到產線所設定之標準,啟動系統更新機制,針對該產線資料(即待識別圖像)重新訓練所述預設分類器,加強預設分類器對於產線資料之適應性,重新訓練後的結果再與人工資料標記之結果做比對,並計算檢測指標,如此反復直到檢測指標達到產線設定的要求,則完成系統更新。 If the detection index does not meet the standards set by the production line, the system update mechanism is activated to retrain the preset classifier for the production line data (that is, the image to be recognized) to strengthen the adaptability of the preset classifier to the production line data , The retrained results are compared with the results marked by manual data, and the detection index is calculated. Repeat this process until the detection index meets the requirements set by the production line, then the system update is completed.

舉例而言,本申請搜集SMT產線上AOI機台判斷為瑕疵之IC類文字元件的待識別圖像共699張,其中分為386張訓練資料用於開發所述影像處理系統,以及313張為驗證資料用於系統開發完成後的驗證與測試,根據影像處理系統的混淆矩陣結果如圖7所示。圖7中左邊的混淆矩陣記錄的是開發所述影像處理系統時的訓練資料的結果。通過人工檢測的真實結果為252張圖像是合格的,標記為“PASS”,134張圖像是不合格的,標記為“FAIL”。而通過所述影像處理 系統的預測結果為246張圖像是合格的,標記為“PASS”,140張圖像是不合格的,標記為“FAIL”,其中有6張圖片被所述影像處理系統誤判為不合格的圖像。由此可以計算得到訓練資料中的漏檢率為0/(0+134)=0%,過殺率為6/(246+6)=2.3%。 For example, this application collects a total of 699 images to be recognized for IC-type text components judged to be defective by AOI machines on the SMT production line, of which 386 training data are used to develop the image processing system, and 313 are The verification data is used for verification and testing after the development of the system, and the result of the confusion matrix according to the image processing system is shown in Figure 7. The confusion matrix on the left in Fig. 7 records the results of training data during the development of the image processing system. The real result of manual inspection is that 252 images are qualified and marked as "PASS", and 134 images are unqualified and marked as "FAIL". And through the image processing The prediction result of the system is that 246 images are qualified and marked as "PASS", and 140 images are unqualified and marked as "FAIL", of which 6 pictures are misjudged as unqualified by the image processing system image. It can be calculated that the missed detection rate in the training data is 0/(0+134)=0%, and the overkill rate is 6/(246+6)=2.3%.

圖7中右邊的混淆矩陣記錄的是開發所述影像處理系統時的驗證資料的結果。通過人工檢測的真實結果為183張圖像是合格的,標記為“PASS”,130張圖像是不合格的,標記為“FAIL”。而通過所述影像處理系統預測的結果為179張圖像是合格的,其中1張圖像為不合格誤判為合格,134張圖像是不合格的,其中5張圖像為不合格誤判為合格。由此可以計算得到驗證資料中的漏檢率為1/(1+129)=0.7%,過殺率為5/(178+5)=2.7%。由此可知,在驗證資料中,經過本申請的影像處理系統,準確率高達98%,將此系統應用於SMT產線上可大幅降低人工目檢所需的時間,並且能減少產線工程師調整AOI機台參數的頻率,大幅提升效率及整體產線穩定性。 The confusion matrix on the right in Figure 7 records the results of the verification data during the development of the image processing system. The real result of manual inspection is that 183 images are qualified and marked as "PASS", and 130 images are unqualified and marked as "FAIL". The result predicted by the image processing system is that 179 images are qualified, of which 1 image is unqualified and misjudged as qualified, 134 images are unqualified, and 5 of them are unqualified and misjudged as qualified. qualified. It can be calculated that the missed detection rate in the verification data is 1/(1+129)=0.7%, and the overkill rate is 5/(178+5)=2.7%. It can be seen that in the verification data, the accuracy rate of the image processing system of this application is as high as 98%. The application of this system to the SMT production line can greatly reduce the time required for manual visual inspection, and can reduce the adjustment of AOI by production line engineers. The frequency of machine parameters greatly improves efficiency and overall production line stability.

在一實施方式中,所述處理器12可以是中央處理單元(Central Processing Unit,CPU),還可以是其他通用處理器、數位訊號處理器(Digital Signal Processor,DSP)、專用積體電路(Application Specific Integrated Circuit,ASIC)、現成可程式設計閘陣列(Field-Programmable Gate Array,FPGA)或者其他可程式設計邏輯器件、分立門或者電晶體邏輯器件、分立硬體元件等。通用處理器可以是微處理器或者所述處理器12也可以是其它任何常規的處理器等。 In one embodiment, the processor 12 may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), and dedicated integrated circuits (Applications). Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or the processor 12 may also be any other conventional processor or the like.

所述影像處理系統20中的模組如果以軟體功能單元的形式實現並作為獨立的產品銷售或使用時,可以存儲在一個電腦可讀取存儲介質中。基於這樣的理解,本申請實現上述實施例方法中的全部或部分流程,也可以通過電腦程式來指令相關的硬體來完成,所述的電腦程式可存儲於一電腦可讀存儲介質中,所述電腦程式在被處理器執行時,可實現上述各個方法實施例的步驟。其中,所述電腦程式包括電腦程式代碼,所述電腦程式代碼可以為原始程式碼形式、物件代碼形式、可執行檔或某些中間形式等。所述電腦可讀介質可以包 括:能夠攜帶所述電腦程式代碼的任何實體或裝置、記錄介質、U盤、移動硬碟、磁片、光碟、電腦記憶體、唯讀記憶體(ROM,Read-Only Memory)、隨機存取記憶體(RAM,Random Access Memory)、電載波信號、電信信號以及軟體分發介質等。需要說明的是,所述電腦可讀介質包含的內容可以根據司法管轄區內立法和專利實踐的要求進行適當的增減,例如在某些司法管轄區,根據立法和專利實踐,電腦可讀介質不包括電載波信號和電信信號。 If the modules in the image processing system 20 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, this application implements all or part of the processes in the above-mentioned embodiments and methods, and can also be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the foregoing method embodiments can be realized. Wherein, the computer program includes computer program code, and the computer program code may be in the form of original program code, object code, executable file, or some intermediate forms. The computer-readable medium may include Including: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, floppy disk, optical disk, computer memory, ROM, Read-Only Memory, random access RAM (Random Access Memory), electric carrier signal, telecommunications signal, software distribution medium, etc. It should be noted that the content contained in the computer-readable medium can be appropriately added or deleted according to the requirements of the legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to the legislation and patent practice, the computer-readable medium Does not include electrical carrier signals and telecommunication signals.

可以理解的是,以上所描述的模組劃分,為一種邏輯功能劃分,實際實現時可以有另外的劃分方式。另外,在本申請各個實施例中的各功能模組可以集成在相同處理單元中,也可以是各個模組單獨物理存在,也可以兩個或兩個以上模組集成在相同單元中。上述集成的模組既可以採用硬體的形式實現,也可以採用硬體加軟體功能模組的形式實現。 It is understandable that the module division described above is a logical function division, and there may be other division methods in actual implementation. In addition, the functional modules in the various embodiments of the present application may be integrated in the same processing unit, or each module may exist alone physically, or two or more modules may be integrated in the same unit. The above-mentioned integrated modules can be implemented either in the form of hardware or in the form of hardware plus software functional modules.

在另一實施方式中,所述電子裝置1還可包括記憶體(圖未示),所述一個或多個模組還可存儲在記憶體中,並由所述處理器12執行。所述記憶體可以是電子裝置1的內部記憶體,即內置於所述電子裝置1的記憶體。在其他實施例中,所述記憶體也可以是電子裝置1的外部記憶體,即外接於所述電子裝置1的記憶體。 In another embodiment, the electronic device 1 may further include a memory (not shown), and the one or more modules may also be stored in the memory and executed by the processor 12. The memory may be an internal memory of the electronic device 1, that is, a memory built into the electronic device 1. In other embodiments, the memory may also be an external memory of the electronic device 1, that is, a memory external to the electronic device 1.

在一些實施例中,所述記憶體用於存儲程式碼和各種資料,例如,存儲安裝在所述電子裝置1中的影像處理系統20的程式碼,並在電子裝置1的運行過程中實現高速、自動地完成程式或資料的存取。 In some embodiments, the memory is used to store program codes and various data, for example, to store the program codes of the image processing system 20 installed in the electronic device 1, and achieve high speed during the operation of the electronic device 1. , Automatically complete program or data access.

所述記憶體可以包括隨機存取記憶體,還可以包括非易失性記憶體,例如硬碟、記憶體、插接式硬碟、智慧存儲卡(Smart Media Card,SMC)、安全數位(Secure Digital,SD)卡、快閃記憶體卡(Flash Card)、至少一個磁碟記憶體件、快閃記憶體器件、或其他易失性固態記憶體件。 The memory may include random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), and a secure digital (Secure Digital, SD) card, flash memory card (Flash Card), at least one magnetic disk memory device, flash memory device, or other volatile solid-state memory device.

對於本領域技術人員而言,顯然本申請不限於上述示範性實施例的細節,而且在不背離本申請的精神或基本特徵的情況下,能夠以其他的具體形式實現本申請。因此,無論從哪一點來看,均應將本申請上述的實施例看作 是示範性的,而且是非限制性的,本申請的範圍由所附請求項而不是上述說明限定,因此旨在將落在請求項的等同要件的含義和範圍內的所有變化涵括在本申請內。 For those skilled in the art, it is obvious that the present application is not limited to the details of the foregoing exemplary embodiments, and the present application can be implemented in other specific forms without departing from the spirit or basic characteristics of the application. Therefore, no matter from which point of view, the above-mentioned embodiments of this application should be regarded as It is exemplary and non-restrictive. The scope of this application is defined by the appended claims rather than the above description. Therefore, it is intended that all changes falling within the meaning and scope of equivalent elements of the claims are included in this application Inside.

Claims (10)

一種影像處理方法,所述方法包括:獲取待識別圖像和標準圖像;獲取所述待識別圖像中的第一文本區域;獲取所述標準圖像中的第二文本區域,根據所述第二文本區域提取文本視窗,其中,所述文本視窗包括多個子視窗;基於所述第一文本區域和所述文本視窗,得到所述待識別圖像中的目標文本區域;根據所述多個子視窗分割所述目標文本區域,得到第一文本子區域集,及根據所述多個子視窗分割所述第二文本區域,得到第二文本子區域集;判斷所述第一文本子區域集之中所有第一文本子區域是否與所述第二文本子區域集之中對應的第二文本子區域相同;及當所述第一文本子區域集之中所有第一文本子區域與所述第二文本子區域集之中對應的第二文本子區域都相同,標記所述待識別圖像為合格圖像。 An image processing method, the method comprising: acquiring a to-be-recognized image and a standard image; acquiring a first text area in the to-be-recognized image; acquiring a second text area in the standard image, according to the The second text area extracts a text window, wherein the text window includes a plurality of sub-windows; based on the first text area and the text window, the target text area in the image to be recognized is obtained; according to the multiple sub-windows The window divides the target text area to obtain a first text sub-areas set, and divides the second text area according to the plurality of sub-windows to obtain a second text sub-areas set; judging among the first text sub-areas set Whether all the first text subregions are the same as the corresponding second text subregions in the second text subregion set; and when all the first text subregions in the first text subregion set are the same as the second text subregion The corresponding second text sub-areas in the text sub-areas set are all the same, and the image to be recognized is marked as a qualified image. 如請求項1所述之影像處理方法,所述基於所述第一文本區域和所述文本視窗,得到所述待識別圖像中的目標文本區域包括:截取所述標準圖像中的第二文本區域;利用所述第二文本區域與所述第一文本區域進行匹配,找到所述第二文本區域中與所述第一文本區域圖元點相似度最高的區域;及利用所述文本視窗在所述第一文本區域中框選出所述圖元點相似度最高的區域,得到所述目標文本區域。 According to the image processing method of claim 1, said obtaining the target text area in the image to be recognized based on the first text area and the text window includes: intercepting the second in the standard image Text area; use the second text area to match the first text area to find the area in the second text area with the highest similarity to the first text area's primitive points; and use the text window In the first text area, the area with the highest similarity of the graphic element points is selected by frame selection to obtain the target text area. 如請求項1所述之影像處理方法,判斷所述第一文本子區域集之中所有第一文本子區域是否與所述第二文本子區域集之中對應的第二文本子區域相同包括: 計算所述第一文本子區域集之中的第一文本子區域與對應所述第二文本子區域集之中第二文本子區域之間的圖元點相似度,得到圖元點相似度集;判斷所述圖元點相似度集中的每個圖元點相似度是否都大於或等於預設值;當所述圖元點相似度集中的每個圖元點相似度都大於或等於預設值時,確認所述第一文本子區域集之中所有第一文本子區域與所述第二文本子區域集之中對應的第二文本子區域都相同;當所述圖元點相似度集中的存在有圖元點相似度小於所述預設值時,確認所述第一文本子區域集之中存在第一文本子區域與所述第二文本子區域集之中對應的第二文本子區域不相同。 According to the image processing method of claim 1, determining whether all the first text subareas in the first text subareas set are the same as the corresponding second text subareas in the second text subareas set includes: Calculate the similarity of graphic element points between the first text subregion in the first text subregion set and the second text subregion in the corresponding second text subregion set to obtain a set of graphic element point similarities ; Determine whether the similarity of each image element point in the image element point similarity set is greater than or equal to a preset value; when the similarity of each image element point in the image element point similarity set is greater than or equal to the preset value Value, confirm that all the first text subregions in the first text subregion set are the same as the corresponding second text subregions in the second text subregion set; when the primitive point similarity is concentrated When the similarity of the existing graphic element points is less than the preset value, it is confirmed that there is a corresponding second text sub-region in the first text sub-region set and the second text sub-region set in the first text sub-region set The regions are not the same. 如請求項3所述之影像處理方法,得到所述圖元點相似度集的方法包括:通過預設分類器萃取所述第一文本子區域集之中的每個第一文本子區域中字元的第一特徵值,以及通過所述預設分類器萃取所述第二文本子區域集之中每個第二文本子區域中字元的第二特徵值;及計算所述第一特徵值與所述第二特徵值之間的圖元點相似度,得到圖元點相似度集。 According to the image processing method described in claim 3, the method for obtaining the similarity set of image element points includes: extracting characters in each first text subregion in the first text subregion set by a preset classifier And extract the second feature value of the character in each second text subregion in the second text subregion set by the preset classifier; and calculate the first feature value and the The graphic element point similarity between the second eigenvalues is described, and the graphic element point similarity set is obtained. 如請求項4所述之影像處理方法,所述得到所述圖元點相似度集的方法還包括:將所述第一文本子區域集之中的每一第一文本子區域輸入到所述預設分類器中,以識別每個第一文本子區域。 According to the image processing method described in claim 4, the method for obtaining the set of similarity of primitive points further includes: inputting each first text subregion in the first text subregion set into the The classifier is preset to identify each first text subregion. 如請求項1所述之影像處理方法,所述方法還包括:當所述第一文本子區域集之中存在第一文本子區域與所述第二文本子區域集之中對應的第二文本子區域不相同時,標記所述待識別圖像為瑕疵圖像。 According to the image processing method of claim 1, the method further includes: when there is a first text subregion in the first text subregion set and a corresponding second text in the second text subregion set When the sub-regions are not the same, mark the image to be recognized as a flawed image. 如請求項6所述之影像處理方法,所述方法還包括預處理所述待識別圖像,所述預處理所述待識別圖像包括:通過濾波器濾除所述待識別圖像中的雜訊;通過影像增強技術增強所述第一文本區域;及二值化處理所述待識別圖像。 According to the image processing method of claim 6, the method further includes preprocessing the image to be recognized, and the preprocessing the image to be recognized includes: filtering out the image in the image to be recognized through a filter. Noise; enhancing the first text area through image enhancement technology; and binarizing the image to be recognized. 如請求項7所述之影像處理方法,所述方法還包括:標記所述待識別圖像為合格圖像後,輸出提示資訊提示所述待識別圖像為合格圖像;或者標記所述待識別圖像為瑕疵圖像後,輸出提示資訊提示所述待識別圖像為瑕疵圖像。 According to the image processing method of claim 7, the method further includes: after marking the image to be recognized as a qualified image, outputting prompt information to prompt the image to be recognized as a qualified image; or marking the image to be recognized as a qualified image; After the recognized image is a defective image, prompt information is output to prompt that the to-be-recognized image is a defective image. 一種電子裝置,所述電子裝置包括:處理器;以及記憶體,所述記憶體中存儲有多個程式模組,所述多個程式模組由所述處理器載入並執行如請求項1至請求項8中任意一項所述影像處理方法。 An electronic device, the electronic device comprising: a processor; and a memory in which a plurality of program modules are stored, and the plurality of program modules are loaded by the processor and executed as in claim 1 To the image processing method described in any one of Claim 8. 一種存儲介質,其上存儲有至少一條電腦指令,所述指令由處理器載入並執行如請求項1至請求項8中任意一項所述影像處理方法。 A storage medium storing at least one computer instruction, the instruction being loaded by a processor and executing the image processing method as described in any one of request item 1 to request item 8.
TW109127632A 2020-08-13 2020-08-13 Image processing method, electronic device and storage device TWI737447B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109127632A TWI737447B (en) 2020-08-13 2020-08-13 Image processing method, electronic device and storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109127632A TWI737447B (en) 2020-08-13 2020-08-13 Image processing method, electronic device and storage device

Publications (2)

Publication Number Publication Date
TWI737447B true TWI737447B (en) 2021-08-21
TW202207078A TW202207078A (en) 2022-02-16

Family

ID=78283521

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109127632A TWI737447B (en) 2020-08-13 2020-08-13 Image processing method, electronic device and storage device

Country Status (1)

Country Link
TW (1) TWI737447B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101156434A (en) * 2004-05-01 2008-04-02 雅各布·伊莱泽 Digital camera with non-uniform image resolution
CN101536011A (en) * 2005-01-21 2009-09-16 光子动力学公司 Automatic defect repair system
CN101910822A (en) * 2008-01-16 2010-12-08 奥博泰克有限公司 Inspection of a substrate using multiple cameras
CN109964144A (en) * 2016-11-17 2019-07-02 特里纳米克斯股份有限公司 Detector at least one object of optical detection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101156434A (en) * 2004-05-01 2008-04-02 雅各布·伊莱泽 Digital camera with non-uniform image resolution
CN101536011A (en) * 2005-01-21 2009-09-16 光子动力学公司 Automatic defect repair system
CN101910822A (en) * 2008-01-16 2010-12-08 奥博泰克有限公司 Inspection of a substrate using multiple cameras
CN109964144A (en) * 2016-11-17 2019-07-02 特里纳米克斯股份有限公司 Detector at least one object of optical detection

Also Published As

Publication number Publication date
TW202207078A (en) 2022-02-16

Similar Documents

Publication Publication Date Title
CN108896278B (en) Optical filter silk-screen defect detection method and device and terminal equipment
CN105510348A (en) Flaw detection method and device of printed circuit board and detection equipment
CN108596895B (en) Fundus image detection method, device and system based on machine learning
US9679354B2 (en) Duplicate check image resolution
JPH07302304A (en) Apparatus for analysis of character of image
CN110647882A (en) Image correction method, device, equipment and storage medium
CN110276295B (en) Vehicle identification number detection and identification method and device
CN111274957A (en) Webpage verification code identification method, device, terminal and computer storage medium
US11580758B2 (en) Method for processing image, electronic device, and storage medium
CN112288724A (en) Defect detection method and device, electronic equipment and storage medium
TW202225682A (en) Circuit board checking method, electronic device, and storage medium
CN114862817A (en) Circuit board golden finger area defect detection method, system, device and medium
WO2021195873A1 (en) Method and device for identifying region of interest in sfr test chart image, and medium
CN110135288B (en) Method and device for quickly checking electronic certificate
CN115719326A (en) PCB defect detection method and device
TWI737447B (en) Image processing method, electronic device and storage device
CN116091503B (en) Method, device, equipment and medium for discriminating panel foreign matter defects
CN111460198B (en) Picture timestamp auditing method and device
CN111213156A (en) Character recognition sharpness determination
CN114627113B (en) Method, system, device and medium for detecting defects of printed circuit board
CN116524477A (en) Method and system for identifying detection result of detection box
CN116503871A (en) Character segmentation preprocessing method, terminal device and computer readable storage medium
CN115619725A (en) Electronic component detection method and device, electronic equipment and automatic quality inspection equipment
CN115115596A (en) Electronic component detection method and device and automatic quality inspection equipment
CN111508017B (en) Method and system for positioning mark center with weak contrast