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

Image processing method, electronic device and storage device Download PDF

Info

Publication number
TW202207078A
TW202207078A TW109127632A TW109127632A TW202207078A TW 202207078 A TW202207078 A TW 202207078A TW 109127632 A TW109127632 A TW 109127632A TW 109127632 A TW109127632 A TW 109127632A TW 202207078 A TW202207078 A TW 202207078A
Authority
TW
Taiwan
Prior art keywords
text
image
sub
region
area
Prior art date
Application number
TW109127632A
Other languages
Chinese (zh)
Other versions
TWI737447B (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

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

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

例如,現行的AOI機台在檢測IC類元件時,會以元件上的文字為判斷依據來確認所述元件是否合格。通常檢測元件上的文字的檢測標準較嚴格。相同的IC類元件,刻出來的文字是相同的,但可能因為元件由不同廠商所供應,相同文字字體型態上可能有所不同,導致經AOI機台檢驗後被判定為瑕疵。此時需要工程師重新確認檢測標準,或是新增標準圖像,來調整不同的字體所造成AOI機台的誤判,導致整體產線效率降低。For example, when the current AOI machine detects IC components, the text on the components is used as the judgment basis to confirm whether the components are qualified. Usually, the detection standard of the text on the detection element is stricter. For the same IC components, the engraved characters are the same, but because the components are supplied by different manufacturers, the fonts of the same characters may be different, resulting in the AOI machine inspection being judged as defective. 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.

本申請第一方面提供了一種影像處理方法,所述方法包括:獲取待識別圖像和標準圖像;獲取所述待識別圖像中的第一文本區域;獲取所述標準圖像中的第二文本區域,根據所述第二文本區域提取文本視窗,其中,所述文本視窗包括多個子視窗;基於所述第一文本區域和所述文本視窗,得到所述待識別圖像中的目標文本區域;根據所述多個子視窗分割所述目標文本區域,得到第一文本子區域集,及根據所述多個子視窗分割所述第二文本區域,得到第二文本子區域集;判斷所述第一文本子區域集中所有第一文本子區域是否與所述第二文本子區域集中對應的第二文本子區域相同;及當所述第一文本子區域集中所有第一文本子區域與所述第二文本子區域集中對應的第二文本子區域都相同,標記所述待識別圖像為合格圖像。A first aspect of the present 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 Second text area, extract a text window according to the second text area, wherein the text window includes a plurality of sub-windows; based on the first text area and the text window, obtain the target text in the image to be recognized dividing the target text area according to the plurality of sub-windows to obtain a first text sub-area set, and dividing the second text area according to the plurality of sub-windows to obtain a second text sub-area set; Whether all the first text sub-regions in a text sub-region set are the same as the corresponding second text sub-regions in the second text sub-region set; and when all the first text sub-regions in the first text sub-region set are the same as the The corresponding second text sub-regions in the two text sub-region sets are all the same, and the to-be-recognized image is marked as a qualified image.

本申請的一些實施方式,所述基於所述第一文本區域和所述文本視窗,得到所述待識別圖像中的目標文本區域包括:截取所述標準圖像中的第二文本區域;利用所述第二文本區域與所述第一文本區域進行匹配,找到所述第二文本區域中與所述第一文本區域相似度最高的區域;及利用所述文本視窗在所述第一文本區域中框選出所述相似度最高的區域,得到所述目標文本區域。In some embodiments of the present application, the obtaining the target text area in the to-be-recognized image 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, and the area with the highest similarity with the first text area in the second text area is found; and the first text area is displayed in the first text area by using the text window The middle box selects the region with the highest similarity to obtain the target text region.

本申請的一些實施方式,判斷所述第一文本子區域集中所有第一文本子區域是否與所述第二文本子區域集中對應的第二文本子區域相同包括:計算所述第一文本子區域集中的第一文本子區域與對應所述第二文本子區域集中第二文本子區域之間的相似度,得到相似度集;判斷所述相似度集中的每個相似度是否都大於或等於預設值;當所述相似度集中的每個相似度都大於或等於預設值時,確認所述第一文本子區域集中所有第一文本子區域與所述第二文本子區域集中對應的第二文本子區域都相同;當所述相似度集中的存在有相似度小於所述預設值時,確認所述第一文本子區域集中存在第一文本子區域與所述第二文本子區域集中對應的第二文本子區域不相同。In some embodiments of the present application, determining whether all the first text sub-regions in the first text sub-region set are the same as the corresponding second text sub-regions in the second text sub-region set includes: calculating the first text sub-regions The similarity between the first text sub-region in the set and the second text sub-region in the set corresponding to the second text sub-region, to obtain a similarity set; determine whether each similarity in the similarity set is greater than or equal to a predetermined set value; when each similarity in the similarity set is greater than or equal to a preset value, confirm that all the first text sub-regions in the first text sub-region set and the first text sub-region set corresponding to the second text sub-region set The two text sub-regions are the same; when the similarity in the similarity set is less than the preset value, confirm that the first text sub-region and the second text sub-region exist in the first text sub-region set. The corresponding second text sub-regions are not the same.

本申請的一些實施方式,得到所述相似度集的方法包括:通過預設分類器萃取所述第一文本子區域集中的每個第一文本子區域的第一特徵值,以及通過所述預設分類器萃取所述第二文本子區域集中每個第二文本子區域的第二特徵值;及計算所述第一特徵值與所述第二特徵值之間的相似度,得到相似度集。In some embodiments of the present application, the method for obtaining the similarity set includes: extracting the first feature value of each first text sub-region in the first text sub-region set by using a preset classifier, and extracting the first feature value of each first text sub-region in the first text sub-region Suppose the classifier extracts the second feature value of each second text subregion in the second text subregion set; and calculates the similarity between the first feature value and the second feature value to obtain a similarity set .

本申請的一些實施方式,所述得到所述相似度集的方法還包括:將所述第一文本子區域集中的每一第一文本子區域輸入到預設分類器中,以識別每個第一文本子區域。In some embodiments of the present application, the method for obtaining the similarity set further comprises: inputting each first text sub-region in the first text sub-region set into a preset classifier to identify each first text sub-region A text subarea.

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

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

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

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

相較於習知技術,本申請的實施方式提供的一種影像處理方法、電子裝置和存儲介質,通過運用影像處理方法及分類器萃取待識別圖像的特徵,使得相同的文字雖然有不同的字體型態皆能萃取出相似特徵,再與標準圖像的文字特徵做比對,以判斷所述待識別圖像是否為合格圖像。本申請能使機台誤判率大幅降低,大幅提升整體產線效率。Compared with the prior art, an image processing method, electronic device, and storage medium provided by the embodiments of the present application extract the features of the image to be recognized by using the image processing method and the 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 misjudgment rate of the machine and greatly improve the overall production line efficiency.

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

請參閱圖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 (Wireless Fidelity, WIFI), cellular, satellite, broadcast, and the like.

所述電子裝置1通過所述通信單元10與AOI機台(圖中未示出)通信連接。The electronic device 1 is connected in communication 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 the like.

本領域技術人員應該瞭解,圖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 embodiments of the present invention, and the electronic device 1 may also include more or less other hardware or software than that shown in FIG. 1 , Or a different component arrangement.

需要說明的是,所述電子裝置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 within the protection scope of the present invention, and are incorporated herein 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 requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

步驟S11:獲取待識別圖像和標準圖像。Step S11: Acquire 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-type components, the text on the IC-type components is used as the basis for judging whether the IC products are of the same type. It can be understood that the text in each component of the same type of IC type components will be pasted in the same preset position. The AOI machine can acquire the preset position information when detecting IC-type components, so as to obtain the to-be-recognized image and the standard image including the text area. The to-be-identified image and the standard image are images obtained from the same type of product. The to-be-recognized image 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-identified image and the standard image include multiple primitive points. The primitive point refers to dividing an image into several small squares, and each small square is called a primitive point. The electronic device can represent the entire image by representing the information such as the position, color and brightness of these primitive points.

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

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

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

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

在本實施方式中,通過濾波器去除雜訊後的所述待識別圖像中的文本可能會變得相對模糊,需要採用影像增強技術強化所述第一文本區域,讓所述第一文本區域中的文字更加明顯。例如,如強化所述待識別圖像中的高頻分量,可使圖像中第一文本區域輪廓清晰,細節明顯。In this implementation manner, the text in the to-be-recognized image after the noise is removed by the filter may become relatively blurred, and an image enhancement technology needs to be used to enhance 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 to-be-recognized image are enhanced, the outline of the first text area in the image can be clear and the details are obvious.

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

(4)獲取所述待識別圖像中的第一文本區域。 在本實施方式中,通過八鄰域連線物件(8-connected component)方法識別所述待識別圖像,得到多個連線物件,計算所述多個連線物件的面積,並刪除面積小於預設面積的連線物件,切分出所述待識別圖像上的文字,並且用最小外接矩形將所有文字框出,即為所述待識別圖像中的第一文本區域。可以理解的是,獲取所述待識別圖像中的第一文本區域的方法不限於上述方法。(4) Acquire the first text area in the to-be-recognized image. In this embodiment, the to-be-recognized image is identified by an 8-connected component method, a plurality of connected objects are obtained, the area of the plurality of connected objects is calculated, and the area less than A line object with a preset area cuts out the text on the to-be-recognized image, and uses the smallest circumscribed rectangle to frame all the text, which is the first text area in the to-be-recognized image. It can be understood that the method for acquiring 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) may be used alternately.

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

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

需要說明的是,所述文本視窗為從所述圖像中提取的包含全部第一文本區域圖元點的面積最小的外接矩形。所述文本視窗包括多個子視窗,每個子視窗為所述第一文本區域中的每一字元區域圖元點的面積最小的外接矩形。例如,如圖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 including all the primitive points of the first text area extracted from the image. The text window includes a plurality of sub-windows, and each sub-window is a circumscribed rectangle with the smallest area of each character area primitive point in the first text area. For example, as shown in FIG. 3 , the second text area in the standard image includes the text "SW3", that is, the standard image includes all the area corresponding to the second text "SW3" in the area of the primitive point with the smallest circumscribed rectangle . 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: Based on the first text area and the text window, obtain a target text area in the to-be-recognized image.

在本實施方式中,所述第一文本區域可以包括比所述標準圖像中的第二文本區域更多的文本資訊,為了從所述第一文本區域中找到與標準圖像中相同的文本資訊,需要利用所述文本視窗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 as 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 to-be-recognized image 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 to-be-recognized image includes:

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

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

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

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

例如,如圖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 to-be-recognized image A includes the character "GSW30", the first text area RB in the to-be-recognized image B includes the character "LBJ23", and the to-be-recognized image B includes the character "LBJ23". The first text area R C in the image C is identified, and the second text area R in the standard image includes the character "SW3". Intercept the second text area in the standard image to obtain the area R including the text "SW3", use the area R to match the first text area RA, and find the first text area RA . For the character area "SW3", use the text window to frame the character area "SW3" in the first text area RA to obtain the target character area including the character "SW3". Use the area R to match the first text area RB , find the character area "BJ23" in the first text area RB, and use the text window 30 in the first text area RB Select the character area "BJ23" in the middle box to obtain the target character area including the character "BJ23". Use the area R 0 to match the first text area RC, find that the character area in the first text area RC includes part of the letter "E" and the character " Oti3 ", use the text window 30 Select a character area including part of the letter "E" and the character " Oti3 " in the first text area RC, and obtain the target character area including 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 framed according to the size of the text window 30 to obtain the target text area.

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

在本實施方式中,為了更準確地比對所述目標文本區域與所述標準圖像中的第二文本區域是否一致,需要將所述目標文本區域進行分割後進行一一比對。具體地,根據所述文本視窗中的多個子視窗分割所述目標文本區域,得到第一文本子區域集。例如,如圖4所示,所述標準圖像的文本視窗包括三個子視窗,利用所述三個子視窗分割待識別圖像A中的目標文本區域,可以得到第一文本子區域集,所述第一文本子區域集包括一個子視窗框選的字母“S”、一個子視窗框選的字母“W”和一個子視窗框選的數位“3”;利用所述三個子視窗分割待識別圖像B中的目標文本區域,可以得到第一文本子區域集,所述第一文本子區域集包括一個子視窗框選的字母“B”、一個子視窗框選的字母和數位元“J2”和一個子視窗框選的數位“3”;利用所述三個子視窗分割待識別圖像C中的目標文本區域,可以得到第一文本子區域集,所述第一文本子區域集包括一個子視窗框選的部分字母“E”和部分字母“O”、一個子視窗框選的部分字母“O”和字母“ti”、和一個子視窗框選的數位“3”。In this implementation manner, 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 a plurality of sub-windows in the text window to obtain a first text sub-area 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 divide the target text area in the image A to be recognized, and a first set of text sub-areas can be obtained. The first text sub-area set includes a letter "S" framed by a sub-window, a letter "W" framed by a sub-window, and a digit "3" framed by a sub-window; the three sub-windows are used to segment the image to be identified. Like the target text area in B, the first text sub-area set can be obtained, and the first text sub-area set includes the letter "B" framed by a sub-window, the letter and digit "J2" framed by a sub-window and a digit "3" selected by a sub-window; utilize the three sub-windows to segment the target text region in the image C to be recognized, and can obtain the first text sub-region set, and the first text sub-region set includes a sub-region set. Part of the letter "E" and part of the letter "O" framed by a window, part of the letter "O" and letter "ti" framed by a sub-window, and digit "3" framed by a sub-window.

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

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

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

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

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

(a)計算所述第一文本子區域集中的第一文本子區域與對應所述第二文本子區域集中第二文本子區域之間的相似度,得到相似度集。 具體地,得到所述相似度集的方法包括:(a) Calculate the similarity between the first text sub-region in the first text sub-region set and the corresponding second text sub-region in the second text sub-region set to obtain a similarity set. Specifically, the method for obtaining the similarity set includes:

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

(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 sub-region in the first text sub-region set by the preset classifier, and extracting the second text sub-region set by using the preset classifier A second feature value for each second text subregion. For example, the first feature value T 10 of the first text sub-region including the character "S" in the image A to be recognized is extracted by the preset classifier, and the to-be-recognized image A is extracted by the preset classifier. The first feature value T 11 of the first text sub-region including the character "W" in the image A, and the first feature value T 11 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 sub-region; the first feature value T 20 of the first text sub-region 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 sub-region including the character "J2" in the image B to be recognized, and extracts the image B to be recognized through the preset classifier. The first feature value T 22 of the first text sub-region including the character "3"; and extracting the image C to be recognized that includes part of the letter "E" and part of the letter "O" by the preset classifier The first feature value T 30 of the first text sub-region, the first feature of the first text sub-region including part of the letter "O" and the letter "ti" in the to-be-recognized image C is extracted by the preset classifier The value T 31 , and the first feature value T 32 of the first text sub-region including the character “3” in the image C to be recognized is extracted by the preset classifier.

通過所述預設分類器萃取所述標準圖像中包括字元“S”的第二文本子區域的第二特徵值T00 ,通過所述預設分類器萃取所述標準圖像中包括字元“W”的第二文本子區域的第二特徵值T01 ,以及通過所述預設分類器萃取所述標準圖像中包括字元“3”的第二文本子區域的第二特徵值T02The 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 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. the second feature value T 01 of the second text sub-region of the element "W", and the second feature value of the second text sub-region including the character "3" in the standard image 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 between the first eigenvalue and the second eigenvalue to obtain a similarity set. For example, calculating the similarity between the first text sub-region in the first text sub-region set in the to-be-recognized image A and the second text sub-region in the second text sub-region set corresponding to the standard image, to obtain Similarity set. Specifically, the similarity between the first feature value T 10 and the second feature value T 00 is calculated to obtain the similarity S 00 , and the first feature value T 11 and the second feature value T are calculated 01 to obtain the similarity S 01 , and the similarity between the first feature value T 12 and the second feature value T 02 to obtain the similarity S 02 . The similarity set is {S 00 , S 01 , S 02 }. Or calculate the similarity between the first text sub-region in the first text sub-region set in the to-be-recognized image B and the second text sub-region in the second text sub-region set corresponding to the standard image, to obtain similarity degree set. Specifically, the similarity between the to-be-identified image B and the standard image is calculated, such as calculating the similarity between the first feature value T 20 and the second feature value T 00 to obtain the similarity S 10. Calculate the similarity between the first feature value T 21 and the second feature value T 01 to obtain the similarity S 11 , and the first feature value T 22 and the second feature value T 02 The similarity between them is obtained to obtain the similarity S 12 . The similarity set is {S 10 , S 11 , S 12 }. Similarly, the similarity between the first text sub-region in the first text sub-region set in the to-be-recognized image C and the second text sub-region in the second text sub-region set corresponding to the standard image can be calculated to obtain Similarity set.

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

例如,所述相似度集中的相似度S00 ,相似度S01 和相似度S02 都大於或等於所述預設值,流程進入步驟S17;若所述相似度集中的相似度S00 或相似度S01 ,或相似度S02 小於所述預設值,流程進入步驟S18。For example, if the similarity S 00 , the similarity S 01 and the similarity S 02 in the similarity set are all greater than or equal to the preset value, the process goes to step S17 ; if the similarity S 00 in the similarity set is similar to If the degree S 01 , or the similarity degree S 02 is smaller than the preset value, the flow goes to step S18 .

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

在本實施方式中,當所述相似度集中的每個相似度都大於或等於預設值時,判定待識別圖像中的目標文本區域中的所有文字皆被判定為與標準圖像中的第二文本區域中的所有文字相同,則標記所述待識別圖像為合格圖像。例如,待識別圖像A中的目標文本區域中的所有文字皆被判定為與標準圖像中的第二文本區域中的所有文字相同,可以標記所述待識別圖像A為合格圖像。In this embodiment, when each similarity in the similarity set is greater than or equal to a preset value, it is determined that all characters in the target text area in the image to be recognized are determined to be the same as those in the standard image. All characters in the second text area are the same, and the to-be-recognized image is marked as a qualified image. For example, if 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, 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 indicate that the to-be-recognized image is a qualified image. For example, outputting "Pass" information indicates that the to-be-recognized image is a qualified image. That is to say, the object to be tested corresponding to the image A to be recognized is a qualified object to be tested.

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

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

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

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

請參閱圖6,在本實施方式中,所述影像處理系統20可以被分割成一個或多個模組,所述一個或多個模組可存儲在所述處理器12中,並由所述處理器12執行本申請實施例的影像處理方法。所述一個或多個模組可以是能夠完成特定功能的一系列電腦程式指令段,所述指令段用於描述所述影像處理系統20在所述電子裝置1中的執行過程。例如,所述影像處理系統20可以被分割成圖6中的獲取模組201、處理模組202、判斷模組203以及標記模組204。Referring 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 processed 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 performing 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 an acquisition module 201 , a processing module 202 , a judgment module 203 and a 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 Acquiring the second text area in the standard image, and extracting a text window according to the second text area, wherein the text window includes a plurality of sub-windows; the processing module 202 is configured to based on the first text area and the text window to obtain the target text area in the to-be-recognized image; the processing module 202 is further configured to divide the target text area according to the plurality of sub-windows to obtain a first set of text sub-areas, and The second text area is divided according to the plurality of sub-windows to obtain a second text sub-area set; the judgment module 203 is configured to judge whether all the first text sub-areas in the first text sub-area set are the same as the first text sub-area set. The corresponding second text sub-regions in the two text sub-region sets are the same; and the marking module 204 is used for when all the first text sub-regions in the first text sub-region set and the corresponding first text sub-regions in the second text sub-region set The two text sub-regions are the same, and the to-be-recognized image is marked as a qualified image.

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

在一實施方式中,可以將待識別圖像經過本系統判定之結果,與人工處理標記之結果做比對,可以計算出準確率、漏檢率及過殺率等檢測指標。當所述檢測指標達到產線所設定之標準,代表整體系統穩定,產線的新資料(即待識別圖像)會持續透過本申請的影像處理系統20判斷是否有瑕疵。In one embodiment, the results of the image to be identified through the system's judgment can be compared with the results of manual processing and marking, and detection indicators 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 means that the overall system is stable, and the new data (ie, the image to be recognized) of the production line will continue to be judged by the image processing system 20 of the present application for defects.

若檢測指標沒有達到產線所設定之標準,啟動系統更新機制,針對該產線資料(即待識別圖像)重新訓練所述預設分類器,加強預設分類器對於產線資料之適應性,重新訓練後的結果再與人工資料標記之結果做比對,並計算檢測指標,如此反復直到檢測指標達到產線設定的要求,則完成系統更新。If the detection index does not meet the standard set by the production line, the system update mechanism is activated, and the preset classifier is retrained for the production line data (ie, the image to be recognized), and the adaptability of the preset classifier to the production line data is strengthened. , the retrained result is compared with the result marked by the manual data, and the detection index is calculated. Repeat this until the detection index meets the requirements set by the production line, and 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 of IC-type text components judged to be defective by AOI machines on the SMT production line, of which 386 are training data for developing the image processing system, and 313 are The verification data is used for verification and testing after the system development is completed. According to the confusion matrix of the image processing system, the results are shown in Figure 7. The confusion matrix on the left in Figure 7 records the results of the training data when developing the image processing system. The real results through manual detection are that 252 images are qualified and marked as "PASS", and 134 images are unqualified and marked as "FAIL". However, the prediction result of the image processing system is that 246 images are qualified and marked as "PASS", and 140 images are unqualified and marked as "FAIL", of which 6 images are processed by the image. The system misjudges the image as an unqualified image. From this, 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 validation data when developing the image processing system. The real results through manual detection are 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 images are unqualified and misjudged as qualified qualified. From this, 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 image processing system of this application has an accuracy rate of 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 production line engineers to adjust the AOI The frequency of machine parameters greatly improves the 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, DSP), dedicated integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor 12 may 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 may be stored in a computer-readable storage medium. Based on this understanding, the present application can implement all or part of the processes in the methods of the above embodiments, and can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, so When the computer program is executed by the processor, the steps of the above-mentioned method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of original code, object code, executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory); Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium Electric carrier signals and telecommunication signals are not included.

可以理解的是,以上所描述的模組劃分,為一種邏輯功能劃分,實際實現時可以有另外的劃分方式。另外,在本申請各個實施例中的各功能模組可以集成在相同處理單元中,也可以是各個模組單獨物理存在,也可以兩個或兩個以上模組集成在相同單元中。上述集成的模組既可以採用硬體的形式實現,也可以採用硬體加軟體功能模組的形式實現。It can be understood that the module division described above is a logical function division, and other division methods may be used in actual implementation. In addition, each functional module in each embodiment of the present application may be integrated in the same processing unit, or each module may exist physically alone, or two or more modules may be integrated in the same unit. The above-mentioned integrated modules can be implemented in the form of hardware, or can be implemented in the form of hardware plus software function 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 in the electronic device 1 . In other embodiments, the memory may also be an external memory of the electronic device 1 , that is, a memory externally connected 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 to achieve high speed during the operation of the electronic device 1 . , Automatically complete access to programs or data.

所述記憶體可以包括隨機存取記憶體,還可以包括非易失性記憶體,例如硬碟、記憶體、插接式硬碟、智慧存儲卡(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 hard disk, memory, plug-in hard disk, Smart Media Card (SMC), Secure Digital (Secure) Digital, SD) card, flash memory card (Flash Card), at least one disk memory device, flash memory device, or other volatile solid state memory device.

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

1:電子裝置 10:通信單元 11:記憶體 12:處理器 30:文本視窗 301:子視窗 RA 、RB 、RC :第一文本區域 R:區域 20:影像處理系統 201:獲取模組 202:處理模組 203:判斷模組 204:標記模組1: electronic device 10: communication unit 11: memory 12: processor 30: text window 301: sub-windows RA , RB , RC: first text area R : area 20: image processing system 201: acquisition module 202: Processing module 203: Judging module 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是根據本申請標準圖像示意圖。FIG. 3 is a schematic diagram of an image according to the standard of the present application.

圖4是根據本申請待識別圖像與標準圖像進行匹配得到第二文本子區域的示意圖。FIG. 4 is a schematic diagram of obtaining a second text sub-region by matching an image to be recognized with a 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.

Claims (10)

一種影像處理方法,所述方法包括: 獲取待識別圖像和標準圖像; 獲取所述待識別圖像中的第一文本區域; 獲取所述標準圖像中的第二文本區域,根據所述第二文本區域提取文本視窗,其中,所述文本視窗包括多個子視窗; 基於所述第一文本區域和所述文本視窗,得到所述待識別圖像中的目標文本區域; 根據所述多個子視窗分割所述目標文本區域,得到第一文本子區域集,及根據所述多個子視窗分割所述第二文本區域,得到第二文本子區域集; 判斷所述第一文本子區域集中所有第一文本子區域是否與所述第二文本子區域集中對應的第二文本子區域相同;及 當所述第一文本子區域集中所有第一文本子區域與所述第二文本子區域集中對應的第二文本子區域都相同,標記所述待識別圖像為合格圖像。An image processing method, the method comprising: Obtain the image to be recognized and the standard image; obtaining the first text area in the to-be-recognized image; acquiring a second text area in the standard image, and extracting a text window according to the second text area, wherein the text window includes a plurality of sub-windows; Based on the first text area and the text window, obtain the target text area in the to-be-recognized image; The target text region is divided according to the plurality of sub-windows to obtain a first text sub-region set, and the second text region is divided according to the plurality of sub-windows to obtain a second text sub-region set; determining whether all the first text sub-regions in the first text sub-region set are the same as the corresponding second text sub-regions in the second text sub-region set; and When all the first text sub-regions in the first text sub-region set are the same as the corresponding second text sub-regions in the second text sub-region set, the to-be-recognized image is marked as a qualified image. 如請求項1所述之影像處理方法,所述基於所述第一文本區域和所述文本視窗,得到所述待識別圖像中的目標文本區域包括: 截取所述標準圖像中的第二文本區域; 利用所述第二文本區域與所述第一文本區域進行匹配,找到所述第二文本區域中與所述第一文本區域相似度最高的區域;及 利用所述文本視窗在所述第一文本區域中框選出所述相似度最高的區域,得到所述目標文本區域。According to the image processing method described in claim 1, the obtaining the target text area in the to-be-recognized image 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 to match the first text area, find the area with the highest similarity to the first text area in the second text area; and The area with the highest similarity is selected in the first text area by using the text window to obtain the target text area. 如請求項1所述之影像處理方法,判斷所述第一文本子區域集中所有第一文本子區域是否與所述第二文本子區域集中對應的第二文本子區域相同包括: 計算所述第一文本子區域集中的第一文本子區域與對應所述第二文本子區域集中第二文本子區域之間的相似度,得到相似度集; 判斷所述相似度集中的每個相似度是否都大於或等於預設值; 當所述相似度集中的每個相似度都大於或等於預設值時,確認所述第一文本子區域集中所有第一文本子區域與所述第二文本子區域集中對應的第二文本子區域都相同; 當所述相似度集中的存在有相似度小於所述預設值時,確認所述第一文本子區域集中存在第一文本子區域與所述第二文本子區域集中對應的第二文本子區域不相同。According to the image processing method described in claim 1, determining whether all the first text sub-regions in the first text sub-region set are the same as the corresponding second text sub-regions in the second text sub-region set includes: calculating the similarity between the first text sub-region in the first text sub-region set and the second text sub-region corresponding to the second text sub-region set, to obtain a similarity set; Judging whether each similarity in the similarity set is greater than or equal to a preset value; When each similarity in the similarity set is greater than or equal to a preset value, confirm that all the first text sub-regions in the first text sub-region set and the corresponding second text sub-regions in the second text sub-region set the regions are the same; When the similarity in the similarity set is smaller than the preset value, confirm that there is a second text sub-region corresponding to the first text sub-region and the second text sub-region set in the first text sub-region set Are not the same. 如請求項3所述之影像處理方法,得到所述相似度集的方法包括: 通過預設分類器萃取所述第一文本子區域集中的每個第一文本子區域的第一特徵值,以及通過所述預設分類器萃取所述第二文本子區域集中每個第二文本子區域的第二特徵值;及 計算所述第一特徵值與所述第二特徵值之間的相似度,得到相似度集。According to the image processing method described in claim 3, the method for obtaining the similarity set includes: The first feature value of each first text sub-region in the first text sub-region set is extracted by a preset classifier, and each second text in the second text sub-region set is extracted by the preset classifier the second eigenvalue of the subregion; and Calculate the similarity between the first eigenvalue and the second eigenvalue to obtain a similarity set. 如請求項4所述之影像處理方法,所述得到所述相似度集的方法還包括: 將所述第一文本子區域集中的每一第一文本子區域輸入到所述預設分類器中,以識別每個第一文本子區域。According to the image processing method described in claim 4, the method for obtaining the similarity set further comprises: Each first text sub-region in the set of first text sub-regions is input into the preset classifier to identify each first text sub-region. 如請求項1所述之影像處理方法,所述方法還包括: 當所述第一文本子區域集中存在第一文本子區域與所述第二文本子區域集中對應的第二文本子區域不相同時,標記所述待識別圖像為瑕疵圖像。The image processing method according to claim 1, further comprising: When the first text sub-region in the first text sub-region set is different from the corresponding second text sub-region in the second text sub-region set, the to-be-recognized image is marked as a defective image. 如請求項6所述之影像處理方法,所述方法還包括預處理所述待識別圖像,所述預處理所述待識別圖像包括: 通過濾波器濾除所述待識別圖像中的雜訊; 通過影像增強技術增強所述第一文本區域;及 二值化處理所述待識別圖像。The image processing method according to claim 6, further comprising preprocessing the to-be-recognized image, and the pre-processing of the to-be-recognized image includes: Filter out the noise in the to-be-recognized image through a filter; Enhance the first text area by image enhancement techniques; and The to-be-recognized image is binarized. 如請求項7所述之影像處理方法,所述方法還包括: 標記所述待識別圖像為合格圖像後,輸出提示資訊提示所述待識別圖像為合格圖像;或者 標記所述待識別圖像為瑕疵圖像後,輸出提示資訊提示所述待識別圖像為瑕疵圖像。The image processing method according to claim 7, further comprising: After marking the to-be-recognized image as a qualified image, output prompt information indicating that the to-be-identified image is a qualified image; or After marking the to-be-recognized image as a defective image, prompt information is output to prompt that the to-be-recognized image is a defective image. 一種電子裝置,所述電子裝置包括: 處理器;以及 記憶體,所述記憶體中存儲有多個程式模組,所述多個程式模組由所述處理器載入並執行如請求項1至請求項8中任意一項所述影像處理方法。An electronic device comprising: processor; and A memory, wherein a plurality of program modules are stored in the memory, and the plurality of program modules are loaded by the processor to execute the image processing method according to any one of the request item 1 to the request item 8. 一種存儲介質,其上存儲有至少一條電腦指令,所述指令由處理器載入並執行如請求項1至請求項8中任意一項所述影像處理方法。A storage medium having at least one computer instruction stored thereon, the instruction being loaded by a processor and executing the image processing method according to any one of claim 1 to claim 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 TWI737447B (en) 2021-08-21
TW202207078A true 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)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1751970A4 (en) * 2004-05-01 2010-04-21 Eliezer Jacob Digital camera with non-uniform image resolution
TWI447575B (en) * 2005-01-21 2014-08-01 Photon Dynamics Inc Automatic defect repair system
IL188825A0 (en) * 2008-01-16 2008-11-03 Orbotech Ltd Inspection of a substrate using multiple cameras
KR102452770B1 (en) * 2016-11-17 2022-10-12 트리나미엑스 게엠베하 A detector for optically detecting at least one object

Also Published As

Publication number Publication date
TWI737447B (en) 2021-08-21

Similar Documents

Publication Publication Date Title
CN105510348A (en) Flaw detection method and device of printed circuit board and detection equipment
CN108896278B (en) Optical filter silk-screen defect detection method and device and terminal equipment
KR102058427B1 (en) Apparatus and method for inspection
JPH07302304A (en) Apparatus for analysis of character of image
CN110276295B (en) Vehicle identification number detection and identification method and device
US9679354B2 (en) Duplicate check image resolution
WO2017181724A1 (en) Inspection method and system for missing electronic component
CN112750116A (en) Defect detection method and device, computer equipment and storage medium
TW202225682A (en) Circuit board checking method, electronic device, and storage medium
US11580758B2 (en) Method for processing image, electronic device, and storage medium
JP5045591B2 (en) Method for creating area setting data for inspection area and board appearance inspection apparatus
CN114862817A (en) Circuit board golden finger area defect detection method, system, device and medium
CN117392042A (en) Defect detection method, defect detection apparatus, and storage medium
CN115690670A (en) Intelligent identification method and system for wafer defects
CN116168218A (en) Circuit board fault diagnosis method based on image recognition technology
CN115170501A (en) Defect detection method, system, electronic device and storage medium
CN114581415A (en) Method and device for detecting defects of PCB, computer equipment and storage medium
CN115719326A (en) PCB defect detection method and device
CN116091503B (en) Method, device, equipment and medium for discriminating panel foreign matter defects
KR101884196B1 (en) Method of inspecting denting trace of anisotropic film
CN111460198B (en) Picture timestamp auditing method and device
CN111213156A (en) Character recognition sharpness determination
TWI737447B (en) Image processing method, electronic device and storage device
CN110992299B (en) Method and device for detecting browser compatibility
CN114627113B (en) Method, system, device and medium for detecting defects of printed circuit board