WO2018010386A1 - Method and system for component inversion testing - Google Patents

Method and system for component inversion testing Download PDF

Info

Publication number
WO2018010386A1
WO2018010386A1 PCT/CN2016/113129 CN2016113129W WO2018010386A1 WO 2018010386 A1 WO2018010386 A1 WO 2018010386A1 CN 2016113129 W CN2016113129 W CN 2016113129W WO 2018010386 A1 WO2018010386 A1 WO 2018010386A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
polar
color
region
component
Prior art date
Application number
PCT/CN2016/113129
Other languages
French (fr)
Chinese (zh)
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 广州视源电子科技股份有限公司
Publication of WO2018010386A1 publication Critical patent/WO2018010386A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • G06T7/001Industrial image inspection using an image reference approach
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30141Printed circuit board [PCB]

Definitions

  • the present invention relates to the field of automatic optical detection technology, and in particular to a method and system for detecting component reverse parts.
  • AOI Automatic Optic Inspection
  • common defect detection includes missing parts detection, wrong part detection, reverse part detection, multi-piece detection, and the like.
  • the reverse component detection refers to the detection of polar components such as diodes, capacitors, and sockets, and judges whether there is a reverse phenomenon in the circuit board.
  • the component detection of the component is mainly based on the intelligent method, that is, the deep learning method is used to train a large number of samples to obtain a classification model.
  • Deep learning is a new field of machine learning research. Its purpose is to simulate the mechanism of the human brain to interpret data and discover distributed feature representations of data.
  • the learning models established under different learning frameworks are also different. For example, Convolutional Neural Networks (CNNs) is a deep machine learning model.
  • CNNs Convolutional Neural Networks
  • the component polarity detection classifier trained by the convolutional neural network although achieving a desirable effect in the polarity detection of the component, has its own drawbacks that cannot be solved by itself.
  • the component polarity detection model trained by the convolutional neural network has a high recognition rate for known components and can achieve a good detection effect. However, for unknown components, that is, components that do not exist in the training sample, the recognition rate of the component polarity detection model decreases, and false positives and false negatives often occur.
  • the existing component polarity detection method has a poor detection effect.
  • a method for detecting a component reverse component includes the following steps:
  • polarity area is an area where the electrode of the device to be tested is mounted on the circuit board, and the polarity symmetry area is reversed The area of the electrode on the circuit board;
  • a component reverse component detecting system includes:
  • Obtaining a module configured to obtain an image of a polar region and a region of a polar symmetric region of the device to be tested on the circuit board; wherein the polarity region is an area of the electrode of the device to be tested on the circuit board when the polarity is correctly installed, The region of the electrode on the circuit board when the symmetrical region is the reverse member;
  • a calculating module configured to separately calculate a first color similarity of the polar area image and the pre-stored polar area reference image, and a second color similarity of the polar symmetric area image and the polar area reference image ;
  • a determining module configured to determine, when the first color similarity is less than the second color similarity, the component to be tested.
  • the component reverse component detecting method and system calculate a polar symmetric region image of the device to be tested and the polar region reference image by calculating a first color similarity between the polarity region image of the device to be tested and the polar region reference image a second color similarity, when the first color similarity is smaller than the second color similarity, indicating that a difference between the polar symmetric region image of the device to be tested and the polar region reference image is small, and the The difference between the polar region image of the measuring element and the polar region reference image is large, thereby determining the component counter.
  • the above component reverse component detecting method and system do not require a large number of training samples, and only need to acquire the polar region and the polar symmetric region of the component, and the operation is simple, the recognition rate is high, and the detection effect is good.
  • FIG. 1 is a flow chart of a method for detecting a component reverse member of an embodiment
  • FIG. 2 is a schematic view of a polar region and a polar symmetric region
  • FIG. 3 is a schematic diagram of a template matching method
  • Figure 4 is a schematic diagram of the HSV color space
  • Fig. 5 is a schematic structural view of an element reverse detecting system of an embodiment.
  • the component reverse component detecting method may include the following steps:
  • FIG. 1 A schematic diagram of the polar region and the polar symmetric region of the present invention is shown in FIG.
  • the image of the circuit board may be acquired first, and then the polar region and the polar symmetric region are located from the image of the circuit board, and the polar region and the polar symmetric region are respectively intercepted from the image of the circuit board.
  • the corresponding image is set as the polar area image and the polar symmetrical area image.
  • the polar region image may be acquired by a template matching method.
  • the template matching method is shown in Figure 3. Specifically, a first image region matching the polar region reference image may be selected from the image of the circuit board; and pixels of each pixel in the reference image according to the first image region and the polar region may be selected a value, a first pixel similarity of the image region to the polar region reference image is calculated; and a first image region having a first pixel similarity greater than or equal to a preset first pixel similarity threshold is set as Polar area image.
  • the polar area reference image may be pre-stored in a storage area of the system and called from the storage area when the polar area image is acquired.
  • an area of the image of the circuit board adjacent to the first image area may be set as the first image area, and repeated A step of calculating a first pixel similarity of the first image region and the polar region reference image.
  • the area adjacent to the first image area is an area obtained by moving the first image area to the x-axis and the y-axis by a plurality of pixel points in an image of the circuit board.
  • each moving pixel point may be one pixel point or multiple pixel points, and the moving distance may be set according to actual needs.
  • the polar symmetric region image can also be acquired by a template matching method.
  • a second image region matching the polar symmetric region reference image may be selected from the image of the circuit board; Calculating a second pixel similarity of the image region and the polar symmetric region reference image by using a pixel value of each pixel point in the second image region and the polar symmetric region reference image; and comparing the second pixel similarity to or A second image region equal to a preset second pixel similarity threshold is set as the polar symmetric region image.
  • the polar symmetric region reference image may be pre-stored in a storage area of the system and called from the storage region when the polar region image is acquired.
  • an area adjacent to the second image area in the image of the circuit board may be set as the second image area, and repeated And calculating a second pixel similarity of the second image region and the polar region reference image.
  • the area adjacent to the second image area is an area obtained by moving the second image area to the x-axis and the y-axis by a plurality of pixel points in an image of the circuit board.
  • each moving pixel point may be one pixel point or multiple pixel points, and the moving distance may be set according to actual needs.
  • the polar area image and the polar symmetric area image may also be acquired according to other methods.
  • the first pixel similarity and the second pixel similarity may be calculated according to the following formula:
  • R(x, y) is the pixel similarity of the pixel of the image region and the coordinate region (x, y) in the polar region reference image
  • T(x, y) is the polar region
  • the pixel value of the pixel at coordinates (x, y) in the reference image, I(x, y) is the pixel value of the pixel at coordinates (x, y) in the image region.
  • the first pixel similarity threshold may be set according to actual needs. For example, it can be set to 0.8, or set to 0.9, or set to other values. The larger the first pixel similarity threshold, the higher the accuracy of image acquisition.
  • the polar region and the polar symmetric region of the element to be tested have sharp color differences, it is possible to detect whether the component is reversed according to the color similarity.
  • the color histogram of the image of the component and the reference image can be compared.
  • the image of the component to be tested can also be converted to the HSV color space.
  • HSV color space indication The figure is shown in Figure 4.
  • the most commonly used color space is the RGB model, which is often used for color display and image processing.
  • the HSV model is a color model for the user's perception, focusing on the representation of color.
  • R, G, B refer to red, green, and blue colors respectively
  • H refers to hue, which ranges from 0 to 360 degrees, and is used to indicate the color category, such as red is 0 degrees green is 120 degrees, blue It is 240 degrees
  • S refers to saturation, the value range is 0% to 100%, used to indicate the vividness of the color, such as the saturation of gray is 0%, the saturation of red (255,0,0) is 100%
  • V refers to the brightness, the value range is 0% to 100%, used to indicate the degree of light and darkness of the color, such as black brightness is 0%, white brightness is 100%.
  • RGB space HSV space can express the brightness, color and vividness of colors very intuitively.
  • the pixel values of the polar region image can be converted to the HSV color space according to the following formula:
  • Min min(R, G, B);
  • R, G, and B are the color components of the RGB space.
  • a first color histogram of the polar area image may be acquired, according to the first color histogram
  • the first color similarity is calculated by the number of pixel points of each component amount and the number of pixel points of the corresponding component in the second color histogram of the polar region reference image.
  • a third color histogram of the polar symmetric region image may be acquired, according to the third color
  • the second color similarity is calculated by the number of pixel points of each component amount in the histogram and the number of pixel points of the corresponding component in the second color histogram.
  • the color histogram may be a color histogram of the H-S channel.
  • the first color similarity can be calculated according to the following formula:
  • H 1 (I) is the number of pixel points of the first component amount in the first color histogram, The average number of pixels of each component amount in the first color histogram
  • H 1 ' (I) is the number of pixel points of the first component amount in the second color histogram, The average number of pixels of each component amount in the second color histogram
  • the second color similarity can be calculated according to the following formula:
  • H 2 (I) is the number of pixel points of the first component amount in the third color histogram, The average number of pixels of each component amount in the third color histogram.
  • color similarity may also be calculated in other ways.
  • Chi-Square can be used.
  • the first color similarity can be calculated according to the following formula:
  • Color similarity can also be calculated according to the Intersection algorithm. Specifically, the first color similarity can be calculated according to the following formula:
  • Color similarity can also be calculated from Bhattacharyya.
  • the first color similarity can be calculated according to the following formula:
  • N is the number of histogram bins.
  • the component may be dirty for some reason, ie a non-polar region of the component may appear
  • the color of the polar region is similar, and in order to ensure the correct rate, the third color similarity between the polar region image and the pre-stored polar symmetric region reference image, and the polar symmetric region image and the pre-stored pole may be separately calculated.
  • a fourth color similarity of the symmetrical region reference image if the first color similarity is less than the second color similarity, and the third color similarity is greater than the fourth color similarity, determining the waiting Test component reverse.
  • the manner of calculating the third color similarity and the fourth color similarity may be similar to the manner of calculating the first color similarity and the second color similarity, and details are not described herein again.
  • the present invention further provides a component reverse component detecting system.
  • the component reverse component detecting system may include:
  • the obtaining module 10 is configured to obtain an image of a polar region and a region of a polar symmetry region of the device to be tested on the circuit board; wherein, the polar region is an area of the electrode of the device to be tested on the circuit board when the device is correctly installed.
  • the region of the electrode on the circuit board when the polar symmetric region is the reverse member;
  • FIG. 1 A schematic diagram of the polar region and the polar symmetric region of the present invention is shown in FIG.
  • the image of the circuit board may be acquired first, and then the polar region and the polar symmetric region are located from the image of the circuit board, and the polar region and the polar symmetric region are respectively intercepted from the image of the circuit board.
  • the corresponding image is set as the polar area image and the polar symmetrical area image.
  • the polar region image may be acquired by a template matching method.
  • the template matching method is shown in Figure 3. Specifically, a first image region matching the polar region reference image may be selected from the image of the circuit board; and pixels of each pixel in the reference image according to the first image region and the polar region may be selected a value, a first pixel similarity of the image region to the polar region reference image is calculated; and a first image region having a first pixel similarity greater than or equal to a preset first pixel similarity threshold is set as Polar area image.
  • the polar region The test image may be pre-stored in a storage area of the system and called from the storage area when the polar area image is acquired.
  • an area of the image of the circuit board adjacent to the first image area may be set as the first image area, and repeated A step of calculating a first pixel similarity of the first image region and the polar region reference image.
  • the area adjacent to the first image area is an area obtained by moving the first image area to the x-axis and the y-axis by a plurality of pixel points in an image of the circuit board.
  • the pixel point of each movement may be one pixel point or multiple pixel points, and the moving distance may be set according to actual needs.
  • the polar symmetric region image can also be acquired by a template matching method.
  • a second image region matching the polar symmetric region reference image may be selected from the image of the circuit board; and each pixel in the reference image is referenced according to the second image region and the polar symmetric region a pixel value, calculating a second pixel similarity of the image region and the polar symmetric region reference image; and setting a second image region having a second pixel similarity greater than or equal to a preset second pixel similarity threshold Is the image of the polar symmetric region.
  • the polar symmetric region reference image may be pre-stored in a storage area of the system and called from the storage region when the polar region image is acquired.
  • an area adjacent to the second image area in the image of the circuit board may be set as the second image area, and repeated And calculating a second pixel similarity of the second image region and the polar region reference image.
  • the area adjacent to the second image area is an area obtained by moving the second image area to the x-axis and the y-axis by a plurality of pixel points in an image of the circuit board.
  • the pixel point of each movement may be one pixel point or multiple pixel points, and the moving distance may be set according to actual needs.
  • the polar area image and the polar symmetric area image may also be acquired according to other methods.
  • the first pixel similarity and the second pixel similarity may be calculated according to the following formula:
  • R(x, y) is the pixel of the image region and the polar region reference image with coordinates (x, y) Pixel similarity
  • T(x, y) is a pixel value of a pixel having a coordinate of (x, y) in the reference image of the polar region
  • I(x, y) is a coordinate of the image region (x, y) The pixel value of the pixel.
  • the first pixel similarity threshold may be set according to actual needs. For example, it can be set to 0.8, or set to 0.9, or set to other values. The larger the first pixel similarity threshold, the higher the accuracy of image acquisition.
  • a calculating module 20 configured to separately calculate a first color similarity of the polar area image and the pre-stored polar area reference image, and the polar symmetric area image is similar to the second color of the polar area reference image degree;
  • the polar region and the polar symmetric region of the element to be tested have sharp color differences, it is possible to detect whether the component is reversed according to the color similarity.
  • the color histogram of the image of the component and the reference image can be compared.
  • the image of the component to be tested can also be converted to the HSV color space.
  • a schematic diagram of the HSV color space is shown in Figure 4.
  • the most commonly used color space is the RGB model, which is often used for color display and image processing.
  • the HSV model is a color model for the user's perception, focusing on the representation of color.
  • R, G, B refer to red, green, and blue colors respectively
  • H refers to hue, which ranges from 0 to 360 degrees, and is used to indicate the color category, such as red is 0 degrees green is 120 degrees, blue It is 240 degrees
  • S refers to saturation, the value range is 0% to 100%, used to indicate the vividness of the color, such as the saturation of gray is 0%, the saturation of red (255,0,0) is 100%
  • V refers to the brightness, the value range is 0% to 100%, used to indicate the degree of light and darkness of the color, such as black brightness is 0%, white brightness is 100%.
  • RGB space HSV space can express the brightness, color and vividness of colors very intuitively.
  • the pixel values of the polar region image can be converted to the HSV color space according to the following formula:
  • Min min(R, G, B);
  • R, G, and B are the color components of the RGB space.
  • a first color histogram of the polar area image may be acquired, according to the first color histogram
  • the first color similarity is calculated by the number of pixel points of each component amount and the number of pixel points of the corresponding component in the second color histogram of the polar region reference image.
  • a third color histogram of the polar symmetric region image may be acquired, according to the third color
  • the second color similarity is calculated by the number of pixel points of each component amount in the histogram and the number of pixel points of the corresponding component in the second color histogram.
  • the color histogram may be a color histogram of the H-S channel.
  • the first color similarity can be calculated according to the following formula:
  • H 1 (I) is the number of pixel points of the first component amount in the first color histogram, The average number of pixels of each component amount in the first color histogram
  • H 1 ' (I) is the number of pixel points of the first component amount in the second color histogram, The average number of pixels of each component amount in the second color histogram
  • the second color similarity can be calculated according to the following formula:
  • H 2 (I) is the number of pixel points of the first component amount in the third color histogram, The average number of pixels of each component amount in the third color histogram.
  • color similarity may also be calculated in other ways.
  • Chi-Square can be used.
  • the first color similarity can be calculated according to the following formula:
  • Color similarity can also be calculated according to the Intersection algorithm. Specifically, the first color similarity can be calculated according to the following formula:
  • Color similarity can also be calculated from Bhattacharyya.
  • the first color similarity can be calculated according to the following formula:
  • N is the number of histogram bins.
  • the determining module 30 is configured to determine the component to be tested as the first color similarity is less than the second color similarity.
  • the component may be dirty for some reason, that is, a non-polar region of the component may have a color similar to that of the polar region.
  • the image of the polar region may be separately calculated. a third color similarity of the pre-stored polar symmetric region reference image, and a fourth color similarity of the polar symmetric region image and the pre-stored polar symmetric region reference image; if the first color similarity is less than the a second color similarity, and the third color similarity is greater than the fourth color similarity, and determining the component to be tested.
  • the component reverse component detecting system of the present invention has a one-to-one correspondence with the component reverse component detecting method of the present invention, and the technical features and the beneficial effects thereof described in the embodiment of the component reverse component detecting method are applicable to the embodiment of the component reverse component detecting system. In this regard, hereby declare.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Image Analysis (AREA)

Abstract

A method and system for component inversion testing. The method comprises the following steps: acquiring a polarity area image and a symmetric polarity area image of a component to be tested on a circuit board (S1), where a polarity area is an area in which an electrode of the component to be tested is located on the circuit board when mounted correctly, and a symmetric polarity area is an area in which the electrode is located on the circuit board when the component is inverted; respectively calculating a first color similarity between the polarity area image and a prestored polarity area reference image and a second color similarity between the symmetric polarity area image and the polarity area reference image (S2); and if the first color similarity is less than the second color similarity, determining that the component to be tested is inverted (S3). The method and system for component inversion testing obviate the need for a large amount of training samples, require simply the acquisition of the polarity area and the symmetric polarity area of the component, is simple to operate, provides high recognition rate, and has improved testing effects.

Description

元件反件检测方法和系统Component reverse component detecting method and system 技术领域Technical field
本发明涉及自动光学检测技术领域,特别是涉及一种元件反件检测方法和系统。The present invention relates to the field of automatic optical detection technology, and in particular to a method and system for detecting component reverse parts.
背景技术Background technique
AOI(Automatic Optic Inspection,自动光学检测),是利用光学原理对电路板焊接生产中出现的常见缺陷进行检测的设备。对于插件的电路板来说,常见的缺陷检测包括漏件检测、错件检测、反件检测、多件检测等。其中,反件检测是指对二极管、电容、插座等有极性的元件进行检测,判断其在电路板中是否存在反向的现象。AOI (Automatic Optic Inspection) is a device that uses optical principles to detect common defects in board soldering production. For the board of the plug-in, common defect detection includes missing parts detection, wrong part detection, reverse part detection, multi-piece detection, and the like. Among them, the reverse component detection refers to the detection of polar components such as diodes, capacitors, and sockets, and judges whether there is a reverse phenomenon in the circuit board.
目前,元件的反件检测主要采用智能方法,即利用深度学习的方法对大量样本进行训练,得到分类模型。深度学习是机器学习研究的一个新领域,其目的是模拟人脑的机制来解释数据、发现数据的分布式特征表示。不同的学习框架下建立的学习模型也是不同的。例如,卷积神经网络(Convolutional neural networks,简称CNNs)就是一种深度机器学习模型。At present, the component detection of the component is mainly based on the intelligent method, that is, the deep learning method is used to train a large number of samples to obtain a classification model. Deep learning is a new field of machine learning research. Its purpose is to simulate the mechanism of the human brain to interpret data and discover distributed feature representations of data. The learning models established under different learning frameworks are also different. For example, Convolutional Neural Networks (CNNs) is a deep machine learning model.
利用卷积神经网络训练的元件极性检测分类器,虽然在元件的极性检测方面达到了比较理想的效果,但是也有其自身无法解决的缺点。首先,利用卷积神经网络训练模型时,为了提高模型的准确率、增强模型的鲁棒性,需要大量的训练样本。但是在实际过程中需要耗费大量的人力、时间采集样本;当采集较多的训练样本后,也需要耗费大量的人力和时间进行数据标注。即使如此,也很难采集到足够多的负样本。另外,利用卷积神经网络训练的元件极性检测模型,对于已知的元件拥有很高的识别率,能够达到很好的检测效果。但是对于未知的元件,即训练样本中不存在的元件,元件极性检测模型的识别率下降,经常会发生误报和漏报。The component polarity detection classifier trained by the convolutional neural network, although achieving a desirable effect in the polarity detection of the component, has its own drawbacks that cannot be solved by itself. First, when using the convolutional neural network to train the model, in order to improve the accuracy of the model and enhance the robustness of the model, a large number of training samples are needed. However, in the actual process, it takes a lot of manpower and time to collect samples; when collecting more training samples, it also requires a lot of manpower and time for data labeling. Even so, it is difficult to collect enough negative samples. In addition, the component polarity detection model trained by the convolutional neural network has a high recognition rate for known components and can achieve a good detection effect. However, for unknown components, that is, components that do not exist in the training sample, the recognition rate of the component polarity detection model decreases, and false positives and false negatives often occur.
综上所述,现有的元件极性检测方式检测效果较差。In summary, the existing component polarity detection method has a poor detection effect.
发明内容Summary of the invention
基于此,有必要针对现有的元件极性检测方式检测效果较差的问题,提供一种元件反件检测方法和系统。 Based on this, it is necessary to provide a method and system for detecting component reverse parts in view of the problem that the existing component polarity detection method has poor detection effect.
一种元件反件检测方法,包括以下步骤:A method for detecting a component reverse component includes the following steps:
获取电路板上待测元件的极性区域图像和极性对称区域图像;其中,极性区域为安装正确时所述待测元件的电极在所述电路板上的区域,极性对称区域为反件时所述电极在电路板上的区域;Obtaining a polar area image and a polar symmetric area image of the device to be tested on the circuit board; wherein the polarity area is an area where the electrode of the device to be tested is mounted on the circuit board, and the polarity symmetry area is reversed The area of the electrode on the circuit board;
分别计算所述极性区域图像与预存的极性区域参考图像的第一颜色相似度,以及所述极性对称区域图像与所述极性区域参考图像的第二颜色相似度;Calculating, respectively, a first color similarity of the polar region image and the pre-stored polar region reference image, and a second color similarity of the polar symmetric region image and the polar region reference image;
若所述第一颜色相似度小于所述第二颜色相似度,判定所述待测元件反件。If the first color similarity is less than the second color similarity, determining the component to be tested is reversed.
一种元件反件检测系统,包括:A component reverse component detecting system includes:
获取模块,用于获取电路板上待测元件的极性区域图像和极性对称区域图像;其中,极性区域为安装正确时所述待测元件的电极在所述电路板上的区域,极性对称区域为反件时所述电极在电路板上的区域;Obtaining a module, configured to obtain an image of a polar region and a region of a polar symmetric region of the device to be tested on the circuit board; wherein the polarity region is an area of the electrode of the device to be tested on the circuit board when the polarity is correctly installed, The region of the electrode on the circuit board when the symmetrical region is the reverse member;
计算模块,用于分别计算所述极性区域图像与预存的极性区域参考图像的第一颜色相似度,以及所述极性对称区域图像与所述极性区域参考图像的第二颜色相似度;a calculating module, configured to separately calculate a first color similarity of the polar area image and the pre-stored polar area reference image, and a second color similarity of the polar symmetric area image and the polar area reference image ;
判断模块,用于若所述第一颜色相似度小于所述第二颜色相似度,判定所述待测元件反件。a determining module, configured to determine, when the first color similarity is less than the second color similarity, the component to be tested.
上述元件反件检测方法和系统,通过计算待测元件的极性区域图像与极性区域参考图像的第一颜色相似度,计算待测元件的极性对称区域图像与所述极性区域参考图像的第二颜色相似度,当所述第一颜色相似度小于所述第二颜色相似度时,表明待测元件的极性对称区域图像与极性区域参考图像之间的差异较小,而待测元件的极性区域图像与极性区域参考图像之间的差异较大,从而判定元件反件。上述元件反件检测方法和系统无需大量的训练样本,只需要获取元件的极性区域和极性对称区域,操作简单,识别率高,检测效果较好。The component reverse component detecting method and system calculate a polar symmetric region image of the device to be tested and the polar region reference image by calculating a first color similarity between the polarity region image of the device to be tested and the polar region reference image a second color similarity, when the first color similarity is smaller than the second color similarity, indicating that a difference between the polar symmetric region image of the device to be tested and the polar region reference image is small, and the The difference between the polar region image of the measuring element and the polar region reference image is large, thereby determining the component counter. The above component reverse component detecting method and system do not require a large number of training samples, and only need to acquire the polar region and the polar symmetric region of the component, and the operation is simple, the recognition rate is high, and the detection effect is good.
附图说明DRAWINGS
图1为一个实施例的元件反件检测方法的流程图;1 is a flow chart of a method for detecting a component reverse member of an embodiment;
图2为极性区域与极性对称区域的示意图;2 is a schematic view of a polar region and a polar symmetric region;
图3为模板匹配方法的示意图;3 is a schematic diagram of a template matching method;
图4为HSV颜色空间示意图; Figure 4 is a schematic diagram of the HSV color space;
图5为一个实施例的元件反件检测系统的结构示意图。Fig. 5 is a schematic structural view of an element reverse detecting system of an embodiment.
具体实施方式detailed description
下面结合附图对本发明的元件反件检测方法和系统的实施例进行说明。Embodiments of the component reverse member detecting method and system of the present invention will be described below with reference to the accompanying drawings.
图1为一个实施例的元件反件检测方法的流程图。如图1所示,所述元件反件检测方法可包括以下步骤:1 is a flow chart of a method for detecting a component reverse member of an embodiment. As shown in FIG. 1, the component reverse component detecting method may include the following steps:
S1,获取电路板上待测元件的极性区域图像和极性对称区域图像;其中,极性区域为安装正确时所述待测元件的电极在所述电路板上的区域,极性对称区域为反件时所述电极在电路板上的区域;S1, acquiring a polar region image and a polar symmetric region image of the device to be tested on the circuit board; wherein, the polar region is a region on the circuit board where the electrode of the device to be tested is correctly mounted, and the polar symmetric region The area of the electrode on the circuit board when the component is reversed;
本发明所述的极性区域和极性对称区域的示意图如图2所示。A schematic diagram of the polar region and the polar symmetric region of the present invention is shown in FIG.
可以先获取所述电路板的图像,再从所述电路板的图像中定位极性区域和极性对称区域,并从所述电路板的图像中分别截取所述极性区域和极性对称区域对应的图像,设为极性区域图像和极性对称区域图像。The image of the circuit board may be acquired first, and then the polar region and the polar symmetric region are located from the image of the circuit board, and the polar region and the polar symmetric region are respectively intercepted from the image of the circuit board. The corresponding image is set as the polar area image and the polar symmetrical area image.
在一个实施例中,可以通过模板匹配的方法获取所述极性区域图像。模板匹配方法如图3所示。具体地,可以从所述电路板的图像中选取与所述极性区域参考图像相匹配的第一图像区域;根据所述第一图像区域与所述极性区域参考图像中各个像素点的像素值,计算所述图像区域与所述极性区域参考图像的第一像素相似度;并将第一像素相似度大于或等于预设的第一像素相似度阈值的第一图像区域设为所述极性区域图像。所述极性区域参考图像可以预先存储在系统的存储区域中,并在获取所述极性区域图像时从所述存储区域中调用。In one embodiment, the polar region image may be acquired by a template matching method. The template matching method is shown in Figure 3. Specifically, a first image region matching the polar region reference image may be selected from the image of the circuit board; and pixels of each pixel in the reference image according to the first image region and the polar region may be selected a value, a first pixel similarity of the image region to the polar region reference image is calculated; and a first image region having a first pixel similarity greater than or equal to a preset first pixel similarity threshold is set as Polar area image. The polar area reference image may be pre-stored in a storage area of the system and called from the storage area when the polar area image is acquired.
若所述第一像素相似度小于预设的第一像素相似度阈值,可以将所述电路板的图像中与所述第一图像区域相邻的区域设为所述第一图像区域,并重复计算所述第一图像区域与所述极性区域参考图像的第一像素相似度的步骤。其中,与所述第一图像区域相邻的区域是在所述电路板的图像中将所述第一图像区域向x轴和y轴分别移动若干个像素点所得的区域。在上述步骤中,每次移动的像素点可以是一个像素点,也可以是多个像素点,移动的距离可以根据实际需要设定。If the first pixel similarity is less than a preset first pixel similarity threshold, an area of the image of the circuit board adjacent to the first image area may be set as the first image area, and repeated A step of calculating a first pixel similarity of the first image region and the polar region reference image. The area adjacent to the first image area is an area obtained by moving the first image area to the x-axis and the y-axis by a plurality of pixel points in an image of the circuit board. In the above steps, each moving pixel point may be one pixel point or multiple pixel points, and the moving distance may be set according to actual needs.
类似地,也可以通过模板匹配的方法获取所述极性对称区域图像。具体地,可以从所述电路板的图像中选取与所述极性对称区域参考图像相匹配的第二图像区域;根据所述第 二图像区域与所述极性对称区域参考图像中各个像素点的像素值,计算所述图像区域与所述极性对称区域参考图像的第二像素相似度;并将第二像素相似度大于或等于预设的第二像素相似度阈值的第二图像区域设为所述极性对称区域图像。所述极性对称区域参考图像可以预先存储在系统的存储区域中,并在获取所述极性区域图像时从所述存储区域中调用。Similarly, the polar symmetric region image can also be acquired by a template matching method. Specifically, a second image region matching the polar symmetric region reference image may be selected from the image of the circuit board; Calculating a second pixel similarity of the image region and the polar symmetric region reference image by using a pixel value of each pixel point in the second image region and the polar symmetric region reference image; and comparing the second pixel similarity to or A second image region equal to a preset second pixel similarity threshold is set as the polar symmetric region image. The polar symmetric region reference image may be pre-stored in a storage area of the system and called from the storage region when the polar region image is acquired.
若所述第二像素相似度小于预设的第二像素相似度阈值,可以将所述电路板的图像中与所述第二图像区域相邻的区域设为所述第二图像区域,并重复计算所述第二图像区域与所述极性区域参考图像的第二像素相似度的步骤。其中,与所述第二图像区域相邻的区域是在所述电路板的图像中将所述第二图像区域向x轴和y轴分别移动若干个像素点所得的区域。在上述步骤中,每次移动的像素点可以是一个像素点,也可以是多个像素点,移动的距离可以根据实际需要设定。If the second pixel similarity is less than a preset second pixel similarity threshold, an area adjacent to the second image area in the image of the circuit board may be set as the second image area, and repeated And calculating a second pixel similarity of the second image region and the polar region reference image. The area adjacent to the second image area is an area obtained by moving the second image area to the x-axis and the y-axis by a plurality of pixel points in an image of the circuit board. In the above steps, each moving pixel point may be one pixel point or multiple pixel points, and the moving distance may be set according to actual needs.
还可以根据其他方式获取所述极性区域图像与所述极性对称区域图像。The polar area image and the polar symmetric area image may also be acquired according to other methods.
在上述获取所述极性区域图像与所述极性对称区域图像的实施例中,可以根据如下公式计算所述第一像素相似度和第二像素相似度:In the above embodiment for acquiring the polar region image and the polar symmetric region image, the first pixel similarity and the second pixel similarity may be calculated according to the following formula:
Figure PCTCN2016113129-appb-000001
Figure PCTCN2016113129-appb-000001
式中,R(x,y)是所述图像区域与所述极性区域参考图像中坐标为(x,y)的像素点的像素相似度,T(x,y)为所述极性区域参考图像中坐标为(x,y)的像素点的像素值,I(x,y)为所述图像区域中坐标为(x,y)的像素点的像素值。Where R(x, y) is the pixel similarity of the pixel of the image region and the coordinate region (x, y) in the polar region reference image, and T(x, y) is the polar region The pixel value of the pixel at coordinates (x, y) in the reference image, I(x, y) is the pixel value of the pixel at coordinates (x, y) in the image region.
所述第一像素相似度阈值可以根据实际需要来设定。例如,可以设为0.8,或者设为0.9,或设为其他数值。所述第一像素相似度阈值越大,图像获取的精确度越高。The first pixel similarity threshold may be set according to actual needs. For example, it can be set to 0.8, or set to 0.9, or set to other values. The larger the first pixel similarity threshold, the higher the accuracy of image acquisition.
S2,分别计算所述极性区域图像与预存的极性区域参考图像的第一颜色相似度,以及所述极性对称区域图像与所述极性区域参考图像的第二颜色相似度;S2, respectively calculating a first color similarity of the polar area image and the pre-stored polar area reference image, and a second color similarity of the polar symmetric area image and the polar area reference image;
当待测元件的极性区域和极性对称区域具有鲜明的颜色差别时,可以根据颜色相似度来检测元件是否反件。为了更直观地比较待测元件的图像与参考图像,可以比较测元件的图像与参考图像的颜色直方图。When the polar region and the polar symmetric region of the element to be tested have sharp color differences, it is possible to detect whether the component is reversed according to the color similarity. In order to more intuitively compare the image of the component to be tested with the reference image, the color histogram of the image of the component and the reference image can be compared.
在比较之前,还可以先将待测元件的图像转换到HSV颜色空间。HSV颜色空间示意 图如图4所示。在图像处理中,最常用的颜色空间是RGB模型,常用于颜色显示和图像处理等。而HSV模型,是一种针对用户观感的颜色模型,侧重于色彩的表示。其中,R、G、B分别指红、绿、蓝三种颜色;H指色相,取值范围为0~360度,用来表示颜色的类别,如红色是0度绿色是120度、蓝色是240度;S指饱和度,取值范围为0%~100%,用来表示颜色的鲜艳程度,如灰色的饱和度为0%,大红(255,0,0)的饱和度为100%;V指亮度,取值范围是0%~100%,用来表示颜色的明暗程度,如黑色的亮度为0%,白色的亮度为100%。相对于RGB空间,HSV空间能够非常直观地表达色彩的明暗、色调和鲜艳程度。Before the comparison, the image of the component to be tested can also be converted to the HSV color space. HSV color space indication The figure is shown in Figure 4. In image processing, the most commonly used color space is the RGB model, which is often used for color display and image processing. The HSV model is a color model for the user's perception, focusing on the representation of color. Among them, R, G, B refer to red, green, and blue colors respectively; H refers to hue, which ranges from 0 to 360 degrees, and is used to indicate the color category, such as red is 0 degrees green is 120 degrees, blue It is 240 degrees; S refers to saturation, the value range is 0% to 100%, used to indicate the vividness of the color, such as the saturation of gray is 0%, the saturation of red (255,0,0) is 100% V refers to the brightness, the value range is 0% to 100%, used to indicate the degree of light and darkness of the color, such as black brightness is 0%, white brightness is 100%. Compared to RGB space, HSV space can express the brightness, color and vividness of colors very intuitively.
可根据如下公式将所述极性区域图像的像素值转换到HSV颜色空间:The pixel values of the polar region image can be converted to the HSV color space according to the following formula:
Figure PCTCN2016113129-appb-000002
Figure PCTCN2016113129-appb-000002
其中,max=max(R,G,B);Where max = max(R, G, B);
min=min(R,G,B);Min=min(R, G, B);
V=max;V=max;
S=(max-min)/max;S=(max-min)/max;
H=H+360,ifH<0H=H+360, ifH<0
0≤V≤1,0≤S≤1,0≤H≤360;0 ≤ V ≤ 1, 0 ≤ S ≤ 1, 0 ≤ H ≤ 360;
R、G和B为RGB空间的颜色分量。R, G, and B are the color components of the RGB space.
例如,在计算所述极性区域图像与预存的极性区域参考图像的第一颜色相似度时,可以获取所述极性区域图像的第一颜色直方图,根据所述第一颜色直方图中各组分量的像素点的数量与所述极性区域参考图像的第二颜色直方图中相应分量的像素点的数量,计算所述第一颜色相似度。For example, when calculating a first color similarity of the polar area image and the pre-stored polar area reference image, a first color histogram of the polar area image may be acquired, according to the first color histogram The first color similarity is calculated by the number of pixel points of each component amount and the number of pixel points of the corresponding component in the second color histogram of the polar region reference image.
类似地,在计算所述极性对称区域图像与所述极性区域参考图像的第二颜色相似度时,可以获取所述极性对称区域图像的第三颜色直方图,根据所述第三颜色直方图中各组分量的像素点的数量与所述第二颜色直方图中相应分量的像素点的数量,计算所述第二颜色相似度。Similarly, when calculating a second color similarity of the polar symmetric region image and the polar region reference image, a third color histogram of the polar symmetric region image may be acquired, according to the third color The second color similarity is calculated by the number of pixel points of each component amount in the histogram and the number of pixel points of the corresponding component in the second color histogram.
其中,所述颜色直方图可以是H-S通道的颜色直方图。 Wherein, the color histogram may be a color histogram of the H-S channel.
在一个实施例中,可根据如下公式计算所述第一颜色相似度:In one embodiment, the first color similarity can be calculated according to the following formula:
Figure PCTCN2016113129-appb-000003
Figure PCTCN2016113129-appb-000003
式中,d1为第一颜色相似度,H1(I)为第一颜色直方图中第I组分量的像素点的数量,
Figure PCTCN2016113129-appb-000004
为第一颜色直方图中各组分量的像素点的平均数量,H1'(I)为第二颜色直方图中第I组分量的像素点的数量,
Figure PCTCN2016113129-appb-000005
为第二颜色直方图中各组分量的像素点的平均数量;
Where d 1 is the first color similarity, and H 1 (I) is the number of pixel points of the first component amount in the first color histogram,
Figure PCTCN2016113129-appb-000004
The average number of pixels of each component amount in the first color histogram, H 1 ' (I) is the number of pixel points of the first component amount in the second color histogram,
Figure PCTCN2016113129-appb-000005
The average number of pixels of each component amount in the second color histogram;
类似地,可根据如下公式计算所述第二颜色相似度:Similarly, the second color similarity can be calculated according to the following formula:
Figure PCTCN2016113129-appb-000006
Figure PCTCN2016113129-appb-000006
式中,d2为第二颜色相似度,H2(I)为第三颜色直方图中第I组分量的像素点的数量,
Figure PCTCN2016113129-appb-000007
为第三颜色直方图中各组分量的像素点的平均数量。
Where d 2 is the second color similarity, and H 2 (I) is the number of pixel points of the first component amount in the third color histogram,
Figure PCTCN2016113129-appb-000007
The average number of pixels of each component amount in the third color histogram.
在其他实施例中,还可以根据其他方式计算颜色相似度。例如,可采用Chi-Square(卡方检验)方式。以计算第一颜色相似度为例,可根据如下公式计算第一颜色相似度:In other embodiments, color similarity may also be calculated in other ways. For example, Chi-Square can be used. Taking the first color similarity as an example, the first color similarity can be calculated according to the following formula:
Figure PCTCN2016113129-appb-000008
Figure PCTCN2016113129-appb-000008
还可以根据Intersection算法计算颜色相似度。具体地,可以根据如下公式计算第一颜色相似度:Color similarity can also be calculated according to the Intersection algorithm. Specifically, the first color similarity can be calculated according to the following formula:
Figure PCTCN2016113129-appb-000009
Figure PCTCN2016113129-appb-000009
还可以根据Bhattacharyya(巴氏距离)计算颜色相似度。具体地,可以根据如下公式计算第一颜色相似度:Color similarity can also be calculated from Bhattacharyya. Specifically, the first color similarity can be calculated according to the following formula:
Figure PCTCN2016113129-appb-000010
Figure PCTCN2016113129-appb-000010
其中,N为直方图bin的数目。Where N is the number of histogram bins.
计算第二颜色相似度的方式类似,此处不再赘述。The way to calculate the similarity of the second color is similar, and will not be described here.
S3,若所述第一颜色相似度小于所述第二颜色相似度,判定所述待测元件反件。S3. If the first color similarity is less than the second color similarity, determine the component to be tested.
在一个实施例中,元件由于某种原因会出现脏污,即元件的非极性区域可能会出现与 极性区域相似的颜色,为了保证正确率,还可以分别计算所述极性区域图像与预存的极性对称区域参考图像的第三颜色相似度,以及所述极性对称区域图像与预存的极性对称区域参考图像的第四颜色相似度;若所述第一颜色相似度小于所述第二颜色相似度,且所述第三颜色相似度大于所述第四颜色相似度,判定所述待测元件反件。In one embodiment, the component may be dirty for some reason, ie a non-polar region of the component may appear The color of the polar region is similar, and in order to ensure the correct rate, the third color similarity between the polar region image and the pre-stored polar symmetric region reference image, and the polar symmetric region image and the pre-stored pole may be separately calculated. a fourth color similarity of the symmetrical region reference image; if the first color similarity is less than the second color similarity, and the third color similarity is greater than the fourth color similarity, determining the waiting Test component reverse.
计算第三颜色相似度和第四颜色相似度的方式可与上述计算第一颜色相似度和第二颜色相似度的方式类似,此处不再赘述。The manner of calculating the third color similarity and the fourth color similarity may be similar to the manner of calculating the first color similarity and the second color similarity, and details are not described herein again.
本发明的元件反件检测方法具有以下优点:The component reverse member detecting method of the present invention has the following advantages:
(1)无需大量的训练样本,也无需耗费大量的人力和时间进行数据标注,只需要获取元件的极性区域和极性对称区域,简单有效,降低了人力成本,检测效率高;(1) It does not need a large number of training samples, and does not require a lot of manpower and time for data labeling. It only needs to obtain the polar region and the polar symmetric region of the component, which is simple and effective, reduces the labor cost, and has high detection efficiency;
(2)采用颜色直方图,能够直观地检测出元件是否反件,识别率高,检测效果较好。(2) Using the color histogram, it is possible to visually detect whether the component is reversed, the recognition rate is high, and the detection effect is good.
(3)可以实现元件极性的自动检测,进一步降低了人力成本,提高了检测效率。(3) The automatic detection of component polarity can be realized, which further reduces the labor cost and improves the detection efficiency.
(4)通过将待测元件的极性区域图像和极性对称区域与极性区域的参考图像进行比较,同时将待测元件的极性区域图像和极性对称区域与极性对称区域的参考图像进行比较,进一步提高了识别率,降低了误报和漏报的概率。(4) By comparing the polar region image and the polar symmetry region of the device to be tested with the reference image of the polar region, and simultaneously referring to the polar region image and the polar symmetry region of the device to be tested and the polar symmetry region The images are compared to further improve the recognition rate and reduce the probability of false positives and false negatives.
与所述元件反件检测方法相对应地,本发明还提供一种元件反件检测系统,如图2所示,所述元件反件检测系统可包括:Corresponding to the component reverse component detecting method, the present invention further provides a component reverse component detecting system. As shown in FIG. 2, the component reverse component detecting system may include:
获取模块10,用于获取电路板上待测元件的极性区域图像和极性对称区域图像;其中,极性区域为安装正确时所述待测元件的电极在所述电路板上的区域,极性对称区域为反件时所述电极在电路板上的区域;The obtaining module 10 is configured to obtain an image of a polar region and a region of a polar symmetry region of the device to be tested on the circuit board; wherein, the polar region is an area of the electrode of the device to be tested on the circuit board when the device is correctly installed. The region of the electrode on the circuit board when the polar symmetric region is the reverse member;
本发明所述的极性区域和极性对称区域的示意图如图2所示。A schematic diagram of the polar region and the polar symmetric region of the present invention is shown in FIG.
可以先获取所述电路板的图像,再从所述电路板的图像中定位极性区域和极性对称区域,并从所述电路板的图像中分别截取所述极性区域和极性对称区域对应的图像,设为极性区域图像和极性对称区域图像。The image of the circuit board may be acquired first, and then the polar region and the polar symmetric region are located from the image of the circuit board, and the polar region and the polar symmetric region are respectively intercepted from the image of the circuit board. The corresponding image is set as the polar area image and the polar symmetrical area image.
在一个实施例中,可以通过模板匹配的方法获取所述极性区域图像。模板匹配方法如图3所示。具体地,可以从所述电路板的图像中选取与所述极性区域参考图像相匹配的第一图像区域;根据所述第一图像区域与所述极性区域参考图像中各个像素点的像素值,计算所述图像区域与所述极性区域参考图像的第一像素相似度;并将第一像素相似度大于或等于预设的第一像素相似度阈值的第一图像区域设为所述极性区域图像。所述极性区域参 考图像可以预先存储在系统的存储区域中,并在获取所述极性区域图像时从所述存储区域中调用。In one embodiment, the polar region image may be acquired by a template matching method. The template matching method is shown in Figure 3. Specifically, a first image region matching the polar region reference image may be selected from the image of the circuit board; and pixels of each pixel in the reference image according to the first image region and the polar region may be selected a value, a first pixel similarity of the image region to the polar region reference image is calculated; and a first image region having a first pixel similarity greater than or equal to a preset first pixel similarity threshold is set as Polar area image. The polar region The test image may be pre-stored in a storage area of the system and called from the storage area when the polar area image is acquired.
若所述第一像素相似度小于预设的第一像素相似度阈值,可以将所述电路板的图像中与所述第一图像区域相邻的区域设为所述第一图像区域,并重复计算所述第一图像区域与所述极性区域参考图像的第一像素相似度的步骤。其中,与所述第一图像区域相邻的区域是在所述电路板的图像中将所述第一图像区域向x轴和y轴分别移动若干个像素点所得的区域。其中,每次移动的像素点可以是一个像素点,也可以是多个像素点,移动的距离可以根据实际需要设定。If the first pixel similarity is less than a preset first pixel similarity threshold, an area of the image of the circuit board adjacent to the first image area may be set as the first image area, and repeated A step of calculating a first pixel similarity of the first image region and the polar region reference image. The area adjacent to the first image area is an area obtained by moving the first image area to the x-axis and the y-axis by a plurality of pixel points in an image of the circuit board. The pixel point of each movement may be one pixel point or multiple pixel points, and the moving distance may be set according to actual needs.
类似地,也可以通过模板匹配的方法获取所述极性对称区域图像。具体地,可以从所述电路板的图像中选取与所述极性对称区域参考图像相匹配的第二图像区域;根据所述第二图像区域与所述极性对称区域参考图像中各个像素点的像素值,计算所述图像区域与所述极性对称区域参考图像的第二像素相似度;并将第二像素相似度大于或等于预设的第二像素相似度阈值的第二图像区域设为所述极性对称区域图像。所述极性对称区域参考图像可以预先存储在系统的存储区域中,并在获取所述极性区域图像时从所述存储区域中调用。Similarly, the polar symmetric region image can also be acquired by a template matching method. Specifically, a second image region matching the polar symmetric region reference image may be selected from the image of the circuit board; and each pixel in the reference image is referenced according to the second image region and the polar symmetric region a pixel value, calculating a second pixel similarity of the image region and the polar symmetric region reference image; and setting a second image region having a second pixel similarity greater than or equal to a preset second pixel similarity threshold Is the image of the polar symmetric region. The polar symmetric region reference image may be pre-stored in a storage area of the system and called from the storage region when the polar region image is acquired.
若所述第二像素相似度小于预设的第二像素相似度阈值,可以将所述电路板的图像中与所述第二图像区域相邻的区域设为所述第二图像区域,并重复计算所述第二图像区域与所述极性区域参考图像的第二像素相似度的步骤。其中,与所述第二图像区域相邻的区域是在所述电路板的图像中将所述第二图像区域向x轴和y轴分别移动若干个像素点所得的区域。其中,每次移动的像素点可以是一个像素点,也可以是多个像素点,移动的距离可以根据实际需要设定。If the second pixel similarity is less than a preset second pixel similarity threshold, an area adjacent to the second image area in the image of the circuit board may be set as the second image area, and repeated And calculating a second pixel similarity of the second image region and the polar region reference image. The area adjacent to the second image area is an area obtained by moving the second image area to the x-axis and the y-axis by a plurality of pixel points in an image of the circuit board. The pixel point of each movement may be one pixel point or multiple pixel points, and the moving distance may be set according to actual needs.
还可以根据其他方式获取所述极性区域图像与所述极性对称区域图像。The polar area image and the polar symmetric area image may also be acquired according to other methods.
在上述获取所述极性区域图像与所述极性对称区域图像的实施例中,可以根据如下公式计算所述第一像素相似度和第二像素相似度:In the above embodiment for acquiring the polar region image and the polar symmetric region image, the first pixel similarity and the second pixel similarity may be calculated according to the following formula:
Figure PCTCN2016113129-appb-000011
Figure PCTCN2016113129-appb-000011
式中,R(x,y)是所述图像区域与所述极性区域参考图像中坐标为(x,y)的像素点的 像素相似度,T(x,y)为所述极性区域参考图像中坐标为(x,y)的像素点的像素值,I(x,y)为所述图像区域中坐标为(x,y)的像素点的像素值。Where R(x, y) is the pixel of the image region and the polar region reference image with coordinates (x, y) Pixel similarity, T(x, y) is a pixel value of a pixel having a coordinate of (x, y) in the reference image of the polar region, and I(x, y) is a coordinate of the image region (x, y) The pixel value of the pixel.
所述第一像素相似度阈值可以根据实际需要来设定。例如,可以设为0.8,或者设为0.9,或设为其他数值。所述第一像素相似度阈值越大,图像获取的精确度越高。The first pixel similarity threshold may be set according to actual needs. For example, it can be set to 0.8, or set to 0.9, or set to other values. The larger the first pixel similarity threshold, the higher the accuracy of image acquisition.
计算模块20,用于分别计算所述极性区域图像与预存的极性区域参考图像的第一颜色相似度,以及所述极性对称区域图像与所述极性区域参考图像的第二颜色相似度;a calculating module 20, configured to separately calculate a first color similarity of the polar area image and the pre-stored polar area reference image, and the polar symmetric area image is similar to the second color of the polar area reference image degree;
当待测元件的极性区域和极性对称区域具有鲜明的颜色差别时,可以根据颜色相似度来检测元件是否反件。为了更直观地比较待测元件的图像与参考图像,可以比较测元件的图像与参考图像的颜色直方图。When the polar region and the polar symmetric region of the element to be tested have sharp color differences, it is possible to detect whether the component is reversed according to the color similarity. In order to more intuitively compare the image of the component to be tested with the reference image, the color histogram of the image of the component and the reference image can be compared.
在比较之前,还可以先将待测元件的图像转换到HSV颜色空间。HSV颜色空间示意图如图4所示。在图像处理中,最常用的颜色空间是RGB模型,常用于颜色显示和图像处理等。而HSV模型,是一种针对用户观感的颜色模型,侧重于色彩的表示。其中,R、G、B分别指红、绿、蓝三种颜色;H指色相,取值范围为0~360度,用来表示颜色的类别,如红色是0度绿色是120度、蓝色是240度;S指饱和度,取值范围为0%~100%,用来表示颜色的鲜艳程度,如灰色的饱和度为0%,大红(255,0,0)的饱和度为100%;V指亮度,取值范围是0%~100%,用来表示颜色的明暗程度,如黑色的亮度为0%,白色的亮度为100%。相对于RGB空间,HSV空间能够非常直观地表达色彩的明暗、色调和鲜艳程度。Before the comparison, the image of the component to be tested can also be converted to the HSV color space. A schematic diagram of the HSV color space is shown in Figure 4. In image processing, the most commonly used color space is the RGB model, which is often used for color display and image processing. The HSV model is a color model for the user's perception, focusing on the representation of color. Among them, R, G, B refer to red, green, and blue colors respectively; H refers to hue, which ranges from 0 to 360 degrees, and is used to indicate the color category, such as red is 0 degrees green is 120 degrees, blue It is 240 degrees; S refers to saturation, the value range is 0% to 100%, used to indicate the vividness of the color, such as the saturation of gray is 0%, the saturation of red (255,0,0) is 100% V refers to the brightness, the value range is 0% to 100%, used to indicate the degree of light and darkness of the color, such as black brightness is 0%, white brightness is 100%. Compared to RGB space, HSV space can express the brightness, color and vividness of colors very intuitively.
可根据如下公式将所述极性区域图像的像素值转换到HSV颜色空间:The pixel values of the polar region image can be converted to the HSV color space according to the following formula:
Figure PCTCN2016113129-appb-000012
Figure PCTCN2016113129-appb-000012
其中,max=max(R,G,B);Where max = max(R, G, B);
min=min(R,G,B);Min=min(R, G, B);
V=max;V=max;
S=(max-min)/max;S=(max-min)/max;
H=H+360,ifH<0H=H+360, ifH<0
0≤V≤1,0≤S≤1,0≤H≤360; 0 ≤ V ≤ 1, 0 ≤ S ≤ 1, 0 ≤ H ≤ 360;
R、G和B为RGB空间的颜色分量。R, G, and B are the color components of the RGB space.
例如,在计算所述极性区域图像与预存的极性区域参考图像的第一颜色相似度时,可以获取所述极性区域图像的第一颜色直方图,根据所述第一颜色直方图中各组分量的像素点的数量与所述极性区域参考图像的第二颜色直方图中相应分量的像素点的数量,计算所述第一颜色相似度。For example, when calculating a first color similarity of the polar area image and the pre-stored polar area reference image, a first color histogram of the polar area image may be acquired, according to the first color histogram The first color similarity is calculated by the number of pixel points of each component amount and the number of pixel points of the corresponding component in the second color histogram of the polar region reference image.
类似地,在计算所述极性对称区域图像与所述极性区域参考图像的第二颜色相似度时,可以获取所述极性对称区域图像的第三颜色直方图,根据所述第三颜色直方图中各组分量的像素点的数量与所述第二颜色直方图中相应分量的像素点的数量,计算所述第二颜色相似度。Similarly, when calculating a second color similarity of the polar symmetric region image and the polar region reference image, a third color histogram of the polar symmetric region image may be acquired, according to the third color The second color similarity is calculated by the number of pixel points of each component amount in the histogram and the number of pixel points of the corresponding component in the second color histogram.
其中,所述颜色直方图可以是H-S通道的颜色直方图。Wherein, the color histogram may be a color histogram of the H-S channel.
在一个实施例中,可根据如下公式计算所述第一颜色相似度:In one embodiment, the first color similarity can be calculated according to the following formula:
Figure PCTCN2016113129-appb-000013
Figure PCTCN2016113129-appb-000013
式中,d1为第一颜色相似度,H1(I)为第一颜色直方图中第I组分量的像素点的数量,
Figure PCTCN2016113129-appb-000014
为第一颜色直方图中各组分量的像素点的平均数量,H1'(I)为第二颜色直方图中第I组分量的像素点的数量,
Figure PCTCN2016113129-appb-000015
为第二颜色直方图中各组分量的像素点的平均数量;
Where d 1 is the first color similarity, and H 1 (I) is the number of pixel points of the first component amount in the first color histogram,
Figure PCTCN2016113129-appb-000014
The average number of pixels of each component amount in the first color histogram, H 1 ' (I) is the number of pixel points of the first component amount in the second color histogram,
Figure PCTCN2016113129-appb-000015
The average number of pixels of each component amount in the second color histogram;
类似地,可根据如下公式计算所述第二颜色相似度:Similarly, the second color similarity can be calculated according to the following formula:
Figure PCTCN2016113129-appb-000016
Figure PCTCN2016113129-appb-000016
式中,d2为第二颜色相似度,H2(I)为第三颜色直方图中第I组分量的像素点的数量,
Figure PCTCN2016113129-appb-000017
为第三颜色直方图中各组分量的像素点的平均数量。
Where d 2 is the second color similarity, and H 2 (I) is the number of pixel points of the first component amount in the third color histogram,
Figure PCTCN2016113129-appb-000017
The average number of pixels of each component amount in the third color histogram.
在其他实施例中,还可以根据其他方式计算颜色相似度。例如,可采用Chi-Square(卡方检验)方式。以计算第一颜色相似度为例,可根据如下公式计算第一颜色相似度:In other embodiments, color similarity may also be calculated in other ways. For example, Chi-Square can be used. Taking the first color similarity as an example, the first color similarity can be calculated according to the following formula:
Figure PCTCN2016113129-appb-000018
Figure PCTCN2016113129-appb-000018
还可以根据Intersection算法计算颜色相似度。具体地,可以根据如下公式计算第一颜色相似度: Color similarity can also be calculated according to the Intersection algorithm. Specifically, the first color similarity can be calculated according to the following formula:
Figure PCTCN2016113129-appb-000019
Figure PCTCN2016113129-appb-000019
还可以根据Bhattacharyya(巴氏距离)计算颜色相似度。具体地,可以根据如下公式计算第一颜色相似度:Color similarity can also be calculated from Bhattacharyya. Specifically, the first color similarity can be calculated according to the following formula:
Figure PCTCN2016113129-appb-000020
Figure PCTCN2016113129-appb-000020
式中,N为直方图bin的数目。Where N is the number of histogram bins.
计算第二颜色相似度的方式类似,此处不再赘述。The way to calculate the similarity of the second color is similar, and will not be described here.
判断模块30,用于若所述第一颜色相似度小于所述第二颜色相似度,判定所述待测元件反件。The determining module 30 is configured to determine the component to be tested as the first color similarity is less than the second color similarity.
在一个实施例中,元件由于某种原因会出现脏污,即元件的非极性区域可能会出现与极性区域相似的颜色,为了保证正确率,还可以分别计算所述极性区域图像与预存的极性对称区域参考图像的第三颜色相似度,以及所述极性对称区域图像与预存的极性对称区域参考图像的第四颜色相似度;若所述第一颜色相似度小于所述第二颜色相似度,且所述第三颜色相似度大于所述第四颜色相似度,判定所述待测元件反件。In one embodiment, the component may be dirty for some reason, that is, a non-polar region of the component may have a color similar to that of the polar region. To ensure the correct rate, the image of the polar region may be separately calculated. a third color similarity of the pre-stored polar symmetric region reference image, and a fourth color similarity of the polar symmetric region image and the pre-stored polar symmetric region reference image; if the first color similarity is less than the a second color similarity, and the third color similarity is greater than the fourth color similarity, and determining the component to be tested.
本发明的元件反件检测系统具有以下优点:The component counter detection system of the present invention has the following advantages:
(1)无需大量的训练样本,也无需耗费大量的人力和时间进行数据标注,只需要获取元件的极性区域和极性对称区域,简单有效,降低了人力成本,检测效率高;(1) It does not need a large number of training samples, and does not require a lot of manpower and time for data labeling. It only needs to obtain the polar region and the polar symmetric region of the component, which is simple and effective, reduces the labor cost, and has high detection efficiency;
(2)采用颜色直方图,能够直观地检测出元件是否反件,识别率高,检测效果较好。(2) Using the color histogram, it is possible to visually detect whether the component is reversed, the recognition rate is high, and the detection effect is good.
(3)可以实现元件极性的自动检测,进一步降低了人力成本,提高了检测效率。(3) The automatic detection of component polarity can be realized, which further reduces the labor cost and improves the detection efficiency.
(4)通过将待测元件的极性区域图像和极性对称区域与极性区域的参考图像进行比较,同时将待测元件的极性区域图像和极性对称区域与极性对称区域的参考图像进行比较,进一步提高了识别率,降低了误报和漏报的概率。(4) By comparing the polar region image and the polar symmetry region of the device to be tested with the reference image of the polar region, and simultaneously referring to the polar region image and the polar symmetry region of the device to be tested and the polar symmetry region The images are compared to further improve the recognition rate and reduce the probability of false positives and false negatives.
本发明的元件反件检测系统与本发明的元件反件检测方法一一对应,在上述元件反件检测方法的实施例阐述的技术特征及其有益效果均适用于元件反件检测系统的实施例中,特此声明。The component reverse component detecting system of the present invention has a one-to-one correspondence with the component reverse component detecting method of the present invention, and the technical features and the beneficial effects thereof described in the embodiment of the component reverse component detecting method are applicable to the embodiment of the component reverse component detecting system. In this regard, hereby declare.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛 盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as the combination of these technical features does not exist, the spear is not present. Shield should be considered as the scope of this manual.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。 The above-described embodiments are merely illustrative of several embodiments of the present invention, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the invention. Therefore, the scope of the invention should be determined by the appended claims.

Claims (10)

  1. 一种元件反件检测方法,其特征在于,包括以下步骤:A component reverse component detecting method, comprising the steps of:
    获取电路板上待测元件的极性区域图像和极性对称区域图像;其中,极性区域为安装正确时所述待测元件的电极在所述电路板上的区域,极性对称区域为反件时所述电极在电路板上的区域;Obtaining a polar area image and a polar symmetric area image of the device to be tested on the circuit board; wherein the polarity area is an area where the electrode of the device to be tested is mounted on the circuit board, and the polarity symmetry area is reversed The area of the electrode on the circuit board;
    分别计算所述极性区域图像与预存的极性区域参考图像的第一颜色相似度,以及所述极性对称区域图像与所述极性区域参考图像的第二颜色相似度;Calculating, respectively, a first color similarity of the polar region image and the pre-stored polar region reference image, and a second color similarity of the polar symmetric region image and the polar region reference image;
    若所述第一颜色相似度小于所述第二颜色相似度,判定所述待测元件反件。If the first color similarity is less than the second color similarity, determining the component to be tested is reversed.
  2. 根据权利要求1所述的元件反件检测方法,其特征在于,获取元件的极性区域图像的步骤包括:The method of detecting a component reverse component according to claim 1, wherein the step of acquiring an image of a polar region of the component comprises:
    从所述电路板的图像中选取与所述极性区域参考图像相匹配的图像区域;Selecting an image region matching the polar region reference image from the image of the circuit board;
    根据所述图像区域与所述极性区域参考图像中各个像素点的像素值,计算所述图像区域与所述极性区域参考图像的像素相似度;Calculating a pixel similarity of the image region and the polar region reference image according to pixel values of the image regions and the pixel values in the polar region reference image;
    将像素相似度大于或等于预设的像素相似度阈值的图像区域设为所述极性区域图像。An image area having a pixel similarity greater than or equal to a preset pixel similarity threshold is set as the polarity area image.
  3. 根据权利要求2所述的元件反件检测方法,其特征在于,在计算所述图像区域与所述极性区域参考图像的像素相似度之后,还包括以下步骤:The component reverse component detecting method according to claim 2, further comprising the following steps after calculating the pixel similarity of the image region and the polar region reference image:
    若所述像素相似度小于预设的像素相似度阈值,将所述电路板的图像中与所述图像区域相邻的区域设为所述图像区域;If the pixel similarity is less than a preset pixel similarity threshold, an area of the image of the circuit board adjacent to the image area is set as the image area;
    重复计算所述图像区域与所述极性区域参考图像的像素相似度的步骤;Repetitively calculating a pixel similarity of the image region and the polar region reference image;
    其中,与所述图像区域相邻的区域是在所述电路板的图像中将所述图像区域向x轴和y轴分别移动若干个像素点所得的区域。The area adjacent to the image area is an area obtained by moving the image area to the x-axis and the y-axis by a plurality of pixel points in an image of the board.
  4. 根据权利要求2所述的元件反件检测方法,其特征在于,计算所述图像区域与所述极性区域参考图像的像素相似度的步骤包括:The component reverse component detecting method according to claim 2, wherein the calculating the pixel similarity of the image region and the polar region reference image comprises:
    根据如下公式计算所述像素相似度:The pixel similarity is calculated according to the following formula:
    Figure PCTCN2016113129-appb-100001
    Figure PCTCN2016113129-appb-100001
    式中,R(x,y)是所述图像区域与所述极性区域参考图像中坐标为(x,y)的像素点的 像素相似度,T(x,y)为所述极性区域参考图像中坐标为(x,y)的像素点的像素值,I(x,y)为所述图像区域中坐标为(x,y)的像素点的像素值。Where R(x, y) is the pixel of the image region and the polar region reference image with coordinates (x, y) Pixel similarity, T(x, y) is a pixel value of a pixel having a coordinate of (x, y) in the reference image of the polar region, and I(x, y) is a coordinate of the image region (x, y) The pixel value of the pixel.
  5. 根据权利要求1所述的元件反件检测方法,其特征在于,计算所述极性区域图像与预存的极性区域参考图像的第一颜色相似度的步骤包括:The component reverse component detecting method according to claim 1, wherein the calculating the first color similarity of the polar region image and the pre-stored polar region reference image comprises:
    获取所述极性区域图像的第一颜色直方图;Obtaining a first color histogram of the image of the polar region;
    根据所述第一颜色直方图中各组分量的像素点的数量与所述极性区域参考图像的第二颜色直方图中相应分量的像素点的数量,计算所述第一颜色相似度;Calculating the first color similarity according to the number of pixel points of each component amount in the first color histogram and the number of pixel points of corresponding components in the second color histogram of the polar region reference image;
    计算所述极性对称区域图像与所述极性区域参考图像的第二颜色相似度的步骤包括:The step of calculating the second color similarity of the polar symmetric region image and the polar region reference image comprises:
    获取所述极性对称区域图像的第三颜色直方图;Obtaining a third color histogram of the polar symmetric region image;
    根据所述第三颜色直方图中各组分量的像素点的数量与所述第二颜色直方图中相应分量的像素点的数量,计算所述第二颜色相似度。The second color similarity is calculated according to the number of pixel points of each component amount in the third color histogram and the number of pixel points of the corresponding component in the second color histogram.
  6. 根据权利要求5所述的元件反件检测方法,其特征在于,根据所述第一颜色参数和第二颜色参数计算所述第一颜色相似度的步骤包括:The component reverse component detecting method according to claim 5, wherein the step of calculating the first color similarity according to the first color parameter and the second color parameter comprises:
    根据如下公式计算所述第一颜色相似度:The first color similarity is calculated according to the following formula:
    Figure PCTCN2016113129-appb-100002
    Figure PCTCN2016113129-appb-100002
    式中,d1为第一颜色相似度,H1(I)为第一颜色直方图中第I组分量的像素点的数量,
    Figure PCTCN2016113129-appb-100003
    为第一颜色直方图中各组分量的像素点的平均数量,H1'(I)为第二颜色直方图中第I组分量的像素点的数量,
    Figure PCTCN2016113129-appb-100004
    为第二颜色直方图中各组分量的像素点的平均数量;
    Where d 1 is the first color similarity, and H 1 (I) is the number of pixel points of the first component amount in the first color histogram,
    Figure PCTCN2016113129-appb-100003
    The average number of pixels of each component amount in the first color histogram, H 1 ' (I) is the number of pixel points of the first component amount in the second color histogram,
    Figure PCTCN2016113129-appb-100004
    The average number of pixels of each component amount in the second color histogram;
    根据所述第三颜色参数和第二颜色参数计算所述第二颜色相似度的步骤包括:The step of calculating the second color similarity according to the third color parameter and the second color parameter comprises:
    根据如下公式计算所述第二颜色相似度:The second color similarity is calculated according to the following formula:
    Figure PCTCN2016113129-appb-100005
    Figure PCTCN2016113129-appb-100005
    式中,d2为第二颜色相似度,H2(I)为第三颜色直方图中第I组分量的像素点的数量,
    Figure PCTCN2016113129-appb-100006
    为第三颜色直方图中各组分量的像素点的平均数量。
    Where d 2 is the second color similarity, and H 2 (I) is the number of pixel points of the first component amount in the third color histogram,
    Figure PCTCN2016113129-appb-100006
    The average number of pixels of each component amount in the third color histogram.
  7. 根据权利要求1所述的元件反件检测方法,其特征在于,在计算所述极性区域图 像与所述极性区域参考图像的第一颜色相似度之前,还包括以下步骤:The component reverse member detecting method according to claim 1, wherein said polar region map is calculated Before the first color similarity with the polar region reference image, the following steps are also included:
    将所述极性区域图像的像素值转换到HSV颜色空间。Converting the pixel values of the polar region image to the HSV color space.
  8. 根据权利要求7所述的元件反件检测方法,其特征在于,将所述极性区域图像的像素值转换到HSV颜色空间的步骤包括:The component reverse component detecting method according to claim 7, wherein the converting the pixel value of the polar region image to the HSV color space comprises:
    根据如下公式将所述极性区域图像的像素值转换到HSV颜色空间:The pixel values of the polar region image are converted to the HSV color space according to the following formula:
    Figure PCTCN2016113129-appb-100007
    Figure PCTCN2016113129-appb-100007
    其中,max=max(R,G,B);Where max = max(R, G, B);
    min=min(R,G,B);Min=min(R, G, B);
    V=max;V=max;
    S=(max-min)/max;S=(max-min)/max;
    H=H+360,ifH<0H=H+360, ifH<0
    0≤V≤1,0≤S≤1,0≤H≤360;0 ≤ V ≤ 1, 0 ≤ S ≤ 1, 0 ≤ H ≤ 360;
    R、G和B为RGB空间的颜色分量。R, G, and B are the color components of the RGB space.
  9. 根据权利要求1所述的元件反件检测方法,其特征在于,判定所述待测元件反件前,还包括以下步骤:The component reverse component detecting method according to claim 1, wherein before the determining the component to be tested, the method further comprises the following steps:
    分别计算所述极性区域图像与预存的极性对称区域参考图像的第三颜色相似度,以及所述极性对称区域图像与预存的极性对称区域参考图像的第四颜色相似度;Calculating, respectively, a third color similarity of the polar region image and the pre-stored polar symmetric region reference image, and a fourth color similarity of the polar symmetric region image and the pre-stored polar symmetric region reference image;
    若所述第一颜色相似度小于所述第二颜色相似度,且所述第三颜色相似度大于所述第四颜色相似度,判定所述待测元件反件。And if the first color similarity is less than the second color similarity, and the third color similarity is greater than the fourth color similarity, determining the component to be tested.
  10. 一种元件反件检测系统,其特征在于,包括:A component reverse component detecting system, comprising:
    获取模块,用于获取电路板上待测元件的极性区域图像和极性对称区域图像;其中,极性区域为安装正确时所述待测元件的电极在所述电路板上的区域,极性对称区域为反件时所述电极在电路板上的区域;Obtaining a module, configured to obtain an image of a polar region and a region of a polar symmetric region of the device to be tested on the circuit board; wherein the polarity region is an area of the electrode of the device to be tested on the circuit board when the polarity is correctly installed, The region of the electrode on the circuit board when the symmetrical region is the reverse member;
    计算模块,用于分别计算所述极性区域图像与预存的极性区域参考图像的第一颜色相似度,以及所述极性对称区域图像与所述极性区域参考图像的第二颜色相似度;a calculating module, configured to separately calculate a first color similarity of the polar area image and the pre-stored polar area reference image, and a second color similarity of the polar symmetric area image and the polar area reference image ;
    判断模块,用于若所述第一颜色相似度小于所述第二颜色相似度,判定所述待测元件 反件。 a determining module, configured to determine the component to be tested if the first color similarity is less than the second color similarity Reverse pieces.
PCT/CN2016/113129 2016-07-13 2016-12-29 Method and system for component inversion testing WO2018010386A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610556307.9 2016-07-13
CN201610556307.9A CN106204602B (en) 2016-07-13 2016-07-13 The anti-part detection method of element and system

Publications (1)

Publication Number Publication Date
WO2018010386A1 true WO2018010386A1 (en) 2018-01-18

Family

ID=57475884

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/113129 WO2018010386A1 (en) 2016-07-13 2016-12-29 Method and system for component inversion testing

Country Status (2)

Country Link
CN (1) CN106204602B (en)
WO (1) WO2018010386A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113012088A (en) * 2019-12-03 2021-06-22 浙江大搜车软件技术有限公司 Circuit board fault detection and twin network training method, device and equipment

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106204602B (en) * 2016-07-13 2019-02-01 广州视源电子科技股份有限公司 The anti-part detection method of element and system
CN107180424B (en) * 2017-04-24 2020-04-28 睿视智觉(厦门)科技有限公司 Capacitance counting equipment and method
CN107895064B (en) * 2017-10-19 2020-01-10 上海望友信息科技有限公司 Component polarity detection method, system, computer readable storage medium and device
CN109858441A (en) * 2019-01-30 2019-06-07 广州轨道交通建设监理有限公司 A kind of monitoring abnormal state method and apparatus for construction site
CN109903275B (en) * 2019-02-13 2021-05-18 湖北工业大学 Fermented grain mildewing area detection method based on self-adaptive multi-scale filtering and histogram comparison
CN112767396B (en) * 2021-04-07 2021-07-20 深圳中科飞测科技股份有限公司 Defect detection method, defect detection device and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050084148A1 (en) * 2003-10-20 2005-04-21 Miranda Jose J. M. Inspection systems and methods
CN102479321A (en) * 2010-11-26 2012-05-30 鸿富锦精密工业(深圳)有限公司 Automatic identification system and method of difference image
CN104459421A (en) * 2014-12-30 2015-03-25 广州视源电子科技股份有限公司 Diode polarity detecting method and system
CN105139399A (en) * 2015-08-25 2015-12-09 广州视源电子科技股份有限公司 Diode polarity detection method and device
CN106204602A (en) * 2016-07-13 2016-12-07 广州视源电子科技股份有限公司 Element anti-part detection method and system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS587164A (en) * 1981-07-03 1983-01-14 Minolta Camera Co Ltd Toner density controlling method
CN1318839C (en) * 2002-11-28 2007-05-30 威光机械工程股份有限公司 Automatic optical detecting system for blemish assembly on printed circuit board
CN101915769B (en) * 2010-06-29 2012-03-28 华南理工大学 Automatic optical inspection method for printed circuit board comprising resistance element
CN102831381B (en) * 2011-06-15 2016-05-04 罗普特(厦门)科技集团有限公司 image difference comparison system and method
CN103675588B (en) * 2013-11-20 2016-01-20 中国矿业大学 The machine vision detection method of printed component part polarity and equipment
CN105184778B (en) * 2015-08-25 2018-04-24 广州视源电子科技股份有限公司 A kind of detection method and device
CN105260740B (en) * 2015-09-23 2019-03-29 广州视源电子科技股份有限公司 A kind of component recognizing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050084148A1 (en) * 2003-10-20 2005-04-21 Miranda Jose J. M. Inspection systems and methods
CN102479321A (en) * 2010-11-26 2012-05-30 鸿富锦精密工业(深圳)有限公司 Automatic identification system and method of difference image
CN104459421A (en) * 2014-12-30 2015-03-25 广州视源电子科技股份有限公司 Diode polarity detecting method and system
CN105139399A (en) * 2015-08-25 2015-12-09 广州视源电子科技股份有限公司 Diode polarity detection method and device
CN106204602A (en) * 2016-07-13 2016-12-07 广州视源电子科技股份有限公司 Element anti-part detection method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113012088A (en) * 2019-12-03 2021-06-22 浙江大搜车软件技术有限公司 Circuit board fault detection and twin network training method, device and equipment

Also Published As

Publication number Publication date
CN106204602A (en) 2016-12-07
CN106204602B (en) 2019-02-01

Similar Documents

Publication Publication Date Title
WO2018010386A1 (en) Method and system for component inversion testing
WO2018010387A1 (en) Reversed element detection method and system
CN111612763B (en) Mobile phone screen defect detection method, device and system, computer equipment and medium
CN105913093B (en) A kind of template matching method for Text region processing
CN105453153B (en) Traffic lights detects
TW201702586A (en) Optical film defect detection method and system thereof
CN107392890B (en) FPC copper wire surface oxidation defect detection method and detection system thereof
CN103761529A (en) Open fire detection method and system based on multicolor models and rectangular features
CN109166111B (en) Electronic ink screen defect detection method and system
US20100310150A1 (en) Feature analyzing apparatus
CN103914708A (en) Food variety detection method and system based on machine vision
CN104899871A (en) Missing solder detection method of IC element solder joints
CN110910372B (en) Deep convolutional neural network-based uniform light plate defect detection method
CN110307903B (en) Method for dynamically measuring non-contact temperature of specific part of poultry
WO2017071406A1 (en) Method and system for detecting pin of gold needle element
Zhang et al. Application research of YOLO v2 combined with color identification
CN110263608B (en) Automatic electronic component identification method based on image feature space variable threshold measurement
CN108563997A (en) It is a kind of establish Face datection model, recognition of face method and apparatus
CN112750113A (en) Glass bottle defect detection method and device based on deep learning and linear detection
WO2018068414A1 (en) Detection method and device for resistor having color bands, and automated optical inspection system
CN111724375A (en) Screen detection method and system
CN103605973A (en) Image character detection and identification method
CN109472223A (en) A kind of face identification method and device
CN112200200B (en) LED light color detection method
CN117677969A (en) Defect detection method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16908708

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16908708

Country of ref document: EP

Kind code of ref document: A1