CN114429442A - Method for determining polarity state of capacitor - Google Patents

Method for determining polarity state of capacitor Download PDF

Info

Publication number
CN114429442A
CN114429442A CN202011176462.0A CN202011176462A CN114429442A CN 114429442 A CN114429442 A CN 114429442A CN 202011176462 A CN202011176462 A CN 202011176462A CN 114429442 A CN114429442 A CN 114429442A
Authority
CN
China
Prior art keywords
capacitor
edge coordinate
polarity state
coordinate point
slope
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011176462.0A
Other languages
Chinese (zh)
Other versions
CN114429442B (en
Inventor
范纲伦
孟宪明
孙武雄
廖祝湘
张基霖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Giga Byte Technology Co Ltd
Original Assignee
Giga Byte Technology Co Ltd
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 Giga Byte Technology Co Ltd filed Critical Giga Byte Technology Co Ltd
Priority to CN202011176462.0A priority Critical patent/CN114429442B/en
Publication of CN114429442A publication Critical patent/CN114429442A/en
Application granted granted Critical
Publication of CN114429442B publication Critical patent/CN114429442B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/12Edge-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/181Segmentation; Edge detection involving edge growing; involving edge linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20036Morphological image processing
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Image Processing (AREA)

Abstract

电容器极性状态判定方法,包含:取得一实体电路板图像,比对该实体电路板图像及一电路板设计图档以取得一实体电容器图像,取得该实体电容器图像中的多个边缘坐标点,其中该多个边缘坐标点沿一封闭图案的周缘配置,该多个边缘坐标点的数量为n个,且n至少为三,以一方程式计算一斜率距离总量,以及根据该斜率距离总量判断并输出关联于该封闭图案的一电容器的极性状态。

Figure 202011176462

A capacitor polarity state determination method, comprising: obtaining a physical circuit board image, comparing the physical circuit board image with a circuit board design file to obtain a physical capacitor image, and obtaining a plurality of edge coordinate points in the physical capacitor image, The plurality of edge coordinate points are arranged along the periphery of a closed pattern, the number of the plurality of edge coordinate points is n, and n is at least three, an equation is used to calculate a total amount of slope distance, and according to the total amount of slope distance Determine and output the polarity state of a capacitor associated with the closed pattern.

Figure 202011176462

Description

电容器极性状态判定方法How to determine the polarity state of capacitors

技术领域technical field

本发明关于一种电子元件极性状态判定方法,特别关于一种运用图像识别的电容器极性状态判定方法。The present invention relates to a method for judging the polarity state of an electronic component, in particular to a method for judging the polarity state of a capacitor using image recognition.

背景技术Background technique

在工厂制造如电脑主机板、开发板等电路板时,会将各式电子元件结合于基板,而无论是人力或自动化放置电子元件,均存在放置的电子元件的极性正负、脚位方向错误的可能性。已知的检查有无错误的方法例如为人力检查、以电压或电流检测器接上部分电子元件或电路板的部分区域并测量其测量值是否符合出厂设定值等。但是,上述检查方法太过耗时,易使整个电路板制造流程效率低落。现在亦可利用图像识别技术辅助检查,在取得含有电路板的电子元件的图像后,依据处理后的图像判断电子元件是否存在脚位错置的情况。When manufacturing circuit boards such as computer motherboards, development boards, etc., various electronic components are combined with the substrate, and whether the electronic components are placed manually or automatically, there are positive and negative polarities and pin orientations of the placed electronic components. possibility of error. Known methods of checking for errors are, for example, manual inspection, connecting some electronic components or parts of circuit boards with voltage or current detectors, and measuring whether the measured values conform to factory settings. However, the above-mentioned inspection method is too time-consuming, which tends to reduce the efficiency of the entire circuit board manufacturing process. Now, image recognition technology can also be used to assist the inspection. After obtaining an image of an electronic component containing a circuit board, it can be judged whether the electronic component has misplaced pins according to the processed image.

然而,由于各种无法精准控制的环境因素,例如光照方向、取像装置镜头角度、邻近元件遮蔽等,导致含有电子元件的图像在经过预处理转换后的图像过于失真或无法判断,或是无法识别出待测电子元件在电路板上的位置等,使得以图像识别的方法偶尔会出现检错(underkill)或误判(overkill)的现象发生,其中检错意指电子元件脚位错误却未被验出,误判则意指电子元件脚位正确却判定为反接。However, due to various environmental factors that cannot be precisely controlled, such as the direction of illumination, the lens angle of the imaging device, the shading of adjacent components, etc., the pre-processed image containing electronic components is too distorted or cannot be judged, or cannot be judged. Identify the position of the electronic component to be tested on the circuit board, etc., so that the phenomenon of underkill or misjudgment (overkill) occasionally occurs by the method of image recognition. If it is detected, misjudgment means that the pin position of the electronic component is correct but it is judged to be reversed.

发明内容SUMMARY OF THE INVENTION

鉴于上述,本发明提供一种可以满足上述需求的电容器极性状态判定方法,即使取得电容器图像的环境不佳,仍能有效判别电容器的极性状态。In view of the above, the present invention provides a capacitor polarity state determination method that can meet the above requirements, and can effectively determine the polarity state of the capacitor even if the environment in which the capacitor image is obtained is not good.

依据本发明第一实施例的电容器极性状态判定方法,包含:取得一实体电路板图像;比对该实体电路板图像及一电路板设计图档以取得一实体电容器图像;取得该实体电容器图像中的多个边缘坐标点,其中该多个边缘坐标点沿一封闭图案的周缘配置,该多个边缘坐标点的数量为n个,且n至少为三;以下列方程式计算一斜率距离总量:The method for determining the polarity state of a capacitor according to the first embodiment of the present invention includes: obtaining a physical circuit board image; comparing the physical circuit board image with a circuit board design file to obtain a physical capacitor image; obtaining the physical capacitor image A plurality of edge coordinate points in , wherein the plurality of edge coordinate points are arranged along the periphery of a closed pattern, the number of the plurality of edge coordinate points is n, and n is at least three; calculate a total slope distance with the following equation :

Figure BDA0002748825540000021
Figure BDA0002748825540000021

;以及根据该斜率距离总量判断并输出关联于该封闭图案的一电容器的极性状态,其中W为该斜率距离总量,d(i,i+1)为该多个边缘坐标点之中的第i个边缘坐标点及第i+1个边缘坐标点之间的距离,s(i,i+1)为该第i个边缘坐标点及该第i+1个边缘坐标点之间的连线的斜率,d(n,1)为该多个边缘坐标点之中的第n个边缘坐标点及第一个边缘坐标点之间的距离,s(n,1)为该第n个边缘坐标点及该第一个边缘坐标点之间的连线的斜率。and judge and output the polarity state of a capacitor associated with the closed pattern according to the total amount of slope distance, wherein W is the total amount of slope distance, and d(i, i+1) is among the plurality of edge coordinate points The distance between the i-th edge coordinate point and the i+1-th edge coordinate point, s(i,i+1) is the distance between the i-th edge coordinate point and the i+1-th edge coordinate point The slope of the connection, d(n,1) is the distance between the nth edge coordinate point and the first edge coordinate point among the multiple edge coordinate points, and s(n,1) is the nth edge coordinate point The slope of the line between the edge coordinate point and the first edge coordinate point.

依据本发明第二实施例的电容器极性状态判定方法,包含:取得一实体电路板图像;比对该实体电路板图像及一电路板设计图档以取得一实体电容器图像;取得该实体电容器图像中的一封闭图案,并基于该封闭图案取得一弓形图案,其中该弓形图案与该封闭图案至少部分重叠;基于该弓形图案产生关联于该封闭图案的一电容器的一初判极性状态;判断该初判极性状态及一预设极性状态是否相同;当该初判极性状态与该预设极性状态相同,输出该初判极性状态;当该初判极性状态不同于该预设极性状态,取得位于该封闭图案的周缘的多个边缘坐标点,以该些边缘坐标点的每两相邻的边缘坐标点之间的距离及连线的斜率计算一斜率距离总量,且根据该斜率距离总量产生关联于该电容器的一覆判极性状态;判断该覆判极性状态及该预设极性状态是否相同;以及于该覆判极性状态及该预设极性状态相同时输出该覆判极性状态。A capacitor polarity state determination method according to a second embodiment of the present invention includes: obtaining a physical circuit board image; comparing the physical circuit board image and a circuit board design file to obtain a physical capacitor image; obtaining the physical capacitor image A closed pattern in the closed pattern, and based on the closed pattern to obtain an arcuate pattern, wherein the arcuate pattern and the closed pattern at least partially overlap; Based on the arcuate pattern, a preliminary judgment polarity state of a capacitor associated with the closed pattern is generated; Judgment Whether the initially determined polarity state and a preset polarity state are the same; when the initially determined polarity state is the same as the preset polarity state, output the initially determined polarity state; when the initially determined polarity state is different from the Predetermining the polarity state, obtaining a plurality of edge coordinate points located on the periphery of the closed pattern, and calculating a total slope distance based on the distance between every two adjacent edge coordinate points of these edge coordinate points and the slope of the connecting line , and generate an overdetermined polarity state associated with the capacitor according to the total amount of slope distance; determine whether the overdetermined polarity state and the default polarity state are the same; When the polarity states are the same, the overridden polarity state is output.

以下结合附图和具体实施例对本发明进行详细描述,但不作为对本发明的限定。The present invention is described in detail below with reference to the accompanying drawings and specific embodiments, but is not intended to limit the present invention.

附图说明Description of drawings

图1为本发明第一实施例的电容器极性状态判定方法的流程图。FIG. 1 is a flowchart of a method for determining a polarity state of a capacitor according to a first embodiment of the present invention.

图2为适用于本发明第一实施例的电容器极性状态判定方法的电容器的立体图。FIG. 2 is a perspective view of a capacitor suitable for the method for determining the polarity state of the capacitor according to the first embodiment of the present invention.

图3A为本发明第一实施例的电容器极性状态判定方法的一实施方式下所取得的实体电容器图像的示意图。3A is a schematic diagram of a physical capacitor image obtained under an implementation of the capacitor polarity state determination method according to the first embodiment of the present invention.

图3B为本发明第一实施例的电容器极性状态判定方法对选取范围中的图像进行二值化的示意图。3B is a schematic diagram of binarizing an image in a selected range by the method for determining the polarity state of a capacitor according to the first embodiment of the present invention.

图3C为本发明第一实施例的电容器极性状态判定方法的另一实施方式下所取得的实体电容图像的示意图。3C is a schematic diagram of a physical capacitance image obtained under another implementation of the capacitor polarity state determination method according to the first embodiment of the present invention.

图3D为本发明第一实施例的电容器极性状态判定方法的多个边缘坐标点及其间的连线的示意图。FIG. 3D is a schematic diagram of a plurality of edge coordinate points and the connections between them in the method for determining the polarity state of a capacitor according to the first embodiment of the present invention.

图4为本发明第一实施例的电容器极性状态判定方法的多个边缘坐标点及其间的连线的另一示意图。FIG. 4 is another schematic diagram of a plurality of edge coordinate points and the connections between them in the method for determining the polarity state of a capacitor according to the first embodiment of the present invention.

图5A为本发明第一实施例的电容器极性状态判定方法的一实施方式下所取得的另一实体电容器图像的示意图。5A is a schematic diagram of another physical capacitor image obtained under an implementation of the capacitor polarity state determination method according to the first embodiment of the present invention.

图5B为本发明第一实施例的电容器极性状态判定方法对另一选取范围中的图像进行二值化的示意图。5B is a schematic diagram of binarizing an image in another selected range by the method for determining the polarity state of a capacitor according to the first embodiment of the present invention.

图5C为本发明第一实施例的电容器极性状态判定方法的另一实施方式下所取得的另一实体电容图像的示意图。5C is a schematic diagram of another physical capacitance image obtained under another implementation of the capacitor polarity state determination method according to the first embodiment of the present invention.

图5D为本发明第一实施例的电容器极性状态判定方法的多个边缘坐标点及其间的连线的示意图。5D is a schematic diagram of a plurality of edge coordinate points and the connections between them in the method for determining the polarity state of a capacitor according to the first embodiment of the present invention.

图6为本发明第一实施例的电容器极性状态判定方法中,基于斜率距离总量判断极性状态的详细流程图。6 is a detailed flowchart of determining the polarity state based on the total amount of slope distance in the method for determining the polarity state of a capacitor according to the first embodiment of the present invention.

图7为本发明第一实施例的电容器极性状态判定方法中,基于斜率距离总量判断极性状态的另一详细流程图。FIG. 7 is another detailed flowchart of determining the polarity state based on the total amount of slope distance in the capacitor polarity state determination method according to the first embodiment of the present invention.

图8为本发明第二实施例的电容器极性状态判定方法的流程图。FIG. 8 is a flowchart of a method for determining the polarity state of a capacitor according to a second embodiment of the present invention.

图9为本发明第二实施例的电容器极性状态判定方法的第一弓形图案及第二弓形图案的示意图。9 is a schematic diagram of a first arcuate pattern and a second arcuate pattern of a method for determining a polarity state of a capacitor according to a second embodiment of the present invention.

图10为本发明第二实施例的电容器极性状态判定方法的详细流程图。FIG. 10 is a detailed flowchart of a method for determining the polarity state of a capacitor according to the second embodiment of the present invention.

其中,附图标记:Among them, reference numerals:

20 电容器20 Capacitors

21 实体图案21 Solid Pattern

31 图案图像31 Pattern images

32 封闭图案32 closed pattern

301~307 边缘坐标点301~307 Edge coordinate points

L 纵向直线L Longitudinal straight line

P1、P2 边缘坐标点P1, P2 edge coordinate points

40 多个边缘坐标点及其间的连线More than 40 edge coordinates and connections between them

51 图案图像51 Pattern images

52 封闭图案52 closed pattern

501~506 边缘坐标点501~506 Edge coordinate points

90 圆形图案90 Circle Patterns

91 第一弓形图案91 first bow pattern

92 第二弓形图案92 Second bow pattern

具体实施方式Detailed ways

以下在实施方式中详细叙述本发明的详细特征以及优点,其内容足以使任何熟悉相关技艺者了解本发明的技术内容并据以实施,且根据本说明书所提供的内容、申请专利范围及附图,任何熟悉相关技艺者可轻易地理解本发明相关的目的及优点。以下的实施例进一步详细说明本发明的观点,但非以任何观点限制本发明的范畴。The detailed features and advantages of the present invention are described in detail below in the embodiments, and the content is sufficient to enable any person familiar with the relevant art to understand the technical content of the present invention and implement it accordingly, and based on the content provided in this specification, the scope of the patent application and the accompanying drawings , any person familiar with the related art can easily understand the related objects and advantages of the present invention. The following examples further illustrate the concept of the present invention in further detail, but are not intended to limit the scope of the present invention in any way.

下面结合附图对本发明的结构原理和工作原理作具体的描述:Below in conjunction with accompanying drawing, structure principle and working principle of the present invention are described in detail:

参照图1,其为本发明提供的电容器极性状态判定方法的第一实施例的流程图,其可包含以下步骤:步骤S11,取得实体电路板图像;步骤S12,比对实体电路板图像及电路板设计图档以取得实体电容器图像;步骤S13,取得该实体电容器图像中的多个边缘坐标点,其中该些边缘坐标点沿一封闭图案的周缘配置,该些边缘坐标点的数量为n个,且n至少为三;步骤S14,以方程式eq1计算一斜率距离总量;以及步骤S15,根据该斜率距离总量判断并输出关联于该封闭图案的一电容器的极性状态。1 , which is a flowchart of a first embodiment of a capacitor polarity state determination method provided by the present invention, which may include the following steps: step S11 , obtaining a physical circuit board image; step S12 , comparing the physical circuit board image and A circuit board design drawing file is used to obtain a physical capacitor image; step S13, a plurality of edge coordinate points in the physical capacitor image are obtained, wherein the edge coordinate points are arranged along the periphery of a closed pattern, and the number of these edge coordinate points is n and n is at least three; step S14, calculating a total slope distance with equation eq1; and step S15, judging and outputting the polarity state of a capacitor associated with the closed pattern according to the total slope distance.

请一并参阅图1及图2,以更详细说明本发明的第一实施例,其中图2为电容器20的立体图。电容器20的上方表面具有实体图案21,此实体图案21用于代表电容器20的极性方向,通常此实体图案21呈弓形,且此弓形的弧相对于其弦的方位即表示此电容器20的负极相对于正极的方位。意即,若呈弓形的实体图案21的弧位在其弦的右侧,则电容器20的负极即位在电容器20的正极的右侧。本发明第一实施例的步骤S11可为例如借由取像装置对一电路板拍照、摄录等方式而取得实体电路板图像,其中该电路板需至少包含一电容器,而实体电路板图像中至少包含该电容器。Please refer to FIG. 1 and FIG. 2 together to describe the first embodiment of the present invention in more detail, wherein FIG. 2 is a perspective view of the capacitor 20 . The upper surface of the capacitor 20 has a solid pattern 21, the solid pattern 21 is used to represent the polarity direction of the capacitor 20, usually the solid pattern 21 is in the shape of an arc, and the orientation of the arc of the arc relative to its chord represents the negative electrode of the capacitor 20 Orientation relative to the positive pole. That is, if the arc of the arcuate solid pattern 21 is located on the right side of its chord, the negative electrode of the capacitor 20 is located on the right side of the positive electrode of the capacitor 20 . In step S11 of the first embodiment of the present invention, a physical circuit board image may be obtained by, for example, using an imaging device to take a picture of a circuit board, video recording, etc., wherein the circuit board needs to include at least one capacitor, and the physical circuit board image At least this capacitor is included.

于本发明第一实施例的步骤S12中,接着比对实体电路板图像及电路板设计图档,以取得实体电容器图像。具体而言,电路板设计图档为此电路板的设计图档,尤其为设计图电子档。此电路板设计图档表示了电路板的多个电子元件,例如各式电容器、电阻、微芯片、处理芯片…等,且此电路板设计图档较佳包含多个预设坐标,而其中每个预设坐标即对应至一电子元件。在以下关于本发明的电容器极性状态判定方法的第一实施例的描述中,将仅以预设坐标中的预设电容器坐标为例进行说明。在本实施例中,通过预先设定于电路板及电路板设计图档上的多个参考点,即可取得实体电路板图像及电路板设计图档之间的转换矩阵,并以此转换矩阵将前述的预设电容器坐标转换为实体电路板图像上的实体电容器坐标,进而可据以得到涵盖于实体电路板图像中的实体电容器图像。详言之,基于实体电容器坐标取得实体电容器图像的实施方式可为:以该实体电容器坐标为中心向外扩张框出一个取像范围,其中向外扩张的方式可以是以该实体电容器坐标为中心沿实体电容器图像的多个轴(例如相互垂直的纵轴及横轴)的两相对方向各伸展一段预设长度,以便该取像范围包含该电容器。应注意的是,以上取得实体电容器图像的方式仅为一种实施方式的说明,本发明并不以此为限。In step S12 of the first embodiment of the present invention, the physical circuit board image and the circuit board design drawing are then compared to obtain a physical capacitor image. Specifically, the circuit board design drawing file is a design drawing file of the circuit board, especially an electronic design drawing file. The circuit board design file represents a plurality of electronic components of the circuit board, such as various capacitors, resistors, microchips, processing chips, etc., and the circuit board design file preferably includes a plurality of preset coordinates, and each of them Each preset coordinate corresponds to an electronic component. In the following description about the first embodiment of the capacitor polarity state determination method of the present invention, only the preset capacitor coordinates in the preset coordinates will be taken as an example for description. In this embodiment, by pre-setting multiple reference points on the circuit board and the circuit board design file, the conversion matrix between the physical circuit board image and the circuit board design file can be obtained, and the conversion matrix is used The aforementioned preset capacitor coordinates are converted into the physical capacitor coordinates on the physical circuit board image, and then the physical capacitor image included in the physical circuit board image can be obtained accordingly. To be more specific, the implementation manner of obtaining the physical capacitor image based on the physical capacitor coordinates may be: taking the physical capacitor coordinates as the center to expand and frame an image acquisition range, wherein the outward expansion may be based on the physical capacitor coordinates as the center. Each of two opposite directions of a plurality of axes (for example, vertical and horizontal axes that are perpendicular to each other) of the physical capacitor image extends for a predetermined length, so that the imaging range includes the capacitor. It should be noted that the above manner of obtaining the physical capacitor image is only an illustration of an embodiment, and the present invention is not limited thereto.

在另一种具体的实施方式中,为了降低个人电子装置运算量或剔除不必要的噪声,亦可先对取像范围中的图像进行图像预处理,例如二值化(binarization)、侵蚀(erosion)及/或膨胀(dilation)等形态学图像处理,再以经过上述图像预处理的内容作为前述的实体电容器图像。借此,可去除不必要的噪声或增强图像,达到改善图像品质且利于后续判断的目的。如图3A至图3C所示,其为对取像范围中的图像(图3A)进行二值化(图3B)之后再进行例如侵蚀或膨胀等形态学图像处理(图3C)后所获得的实体电容器图像。由图3A及图3C可知,图3A中包含一图案图像31,且此图案图像31即为呈现于实体电路板图像中的电容器20的实体图案21的图像,而图3C中所示的封闭图案32对应于此图案图像31。理论上,封闭图案32应与此图案图像31相同,然而由于例如光照方向、取像装置镜头角度、邻近元件遮蔽等各项环境因素,导致图像经过图像预处理后一些不必要的数据没被有效剔除,或一些必要的数据被意外剔除等,因而可能造成封闭图案32与图案图像31不一致。In another specific implementation, in order to reduce the computational load of the personal electronic device or remove unnecessary noise, image preprocessing, such as binarization, erosion, may also be performed on the images in the acquisition range first. ) and/or morphological image processing such as dilation, and then use the content that has undergone the above image preprocessing as the aforementioned solid capacitor image. In this way, unnecessary noise can be removed or the image can be enhanced, so as to improve the image quality and facilitate subsequent judgment. As shown in FIGS. 3A to 3C , the images in the imaging range ( FIG. 3A ) are obtained after binarizing ( FIG. 3B ) and then performing morphological image processing such as erosion or dilation ( FIG. 3C ). Solid capacitor image. It can be seen from FIGS. 3A and 3C that a pattern image 31 is included in FIG. 3A , and the pattern image 31 is the image of the solid pattern 21 of the capacitor 20 presented in the physical circuit board image, and the closed pattern shown in FIG. 3C is 32 corresponds to this pattern image 31 . Theoretically, the closed pattern 32 should be the same as the pattern image 31. However, due to various environmental factors such as the direction of illumination, the lens angle of the imaging device, and the shading of adjacent components, some unnecessary data of the image after image preprocessing are not valid. culling, or some necessary data are accidentally culled, etc., thus may cause the closed pattern 32 to be inconsistent with the pattern image 31 .

接续步骤S12,于本发明第一实施例的步骤S13中,由该实体电容器图像取得沿封闭图案的周缘配置的多个边缘坐标点(如图3D所示),其中这些边缘坐标点的数量为n个,且n至少为三。具体而言,可借由例如电脑视觉库OpenCV的轮廓提取函数「findContours」与「drawContours」在封闭图案32的轮廓周缘产生上述的多个边缘坐标点。为能描述上述封闭图案的形态,边缘坐标点的数量需至少为3个,且此数量较佳依据其所造成的运算量进行调整。在图3D中,仅显示7个边缘坐标点301~307作为简易示例,但是实际上边缘坐标点的数量可为更多,以更清楚地以这些边缘坐标点描述此封闭图案。为进行后续步骤,这些边缘坐标点可沿封闭图案的外周缘依序标示为第一至第n个边缘坐标点,例如图3D中的边缘坐标点301~307即可依序设定为首个至末个边缘坐标点,且任一个边缘坐标点301~307均可作为首个边缘坐标点。Following step S12, in step S13 of the first embodiment of the present invention, a plurality of edge coordinate points (as shown in FIG. 3D) arranged along the periphery of the closed pattern are obtained from the physical capacitor image, wherein the number of these edge coordinate points is n, and n is at least three. Specifically, the above-mentioned multiple edge coordinate points can be generated at the contour periphery of the closed pattern 32 by, for example, the contour extraction functions “findContours” and “drawContours” of the computer vision library OpenCV. In order to describe the shape of the above-mentioned closed pattern, the number of edge coordinate points needs to be at least 3, and this number is preferably adjusted according to the amount of computations caused by them. In FIG. 3D, only 7 edge coordinate points 301-307 are shown as a simple example, but in fact, the number of edge coordinate points may be larger to describe the closed pattern with these edge coordinate points more clearly. For subsequent steps, these edge coordinate points can be sequentially marked as the first to nth edge coordinate points along the outer periphery of the closed pattern. For example, the edge coordinate points 301 to 307 in FIG. The last edge coordinate point, and any of the edge coordinate points 301 to 307 can be used as the first edge coordinate point.

本发明第一实施例的步骤S14以方程式eq1计算封闭图案32的斜率距离总量W:Step S14 of the first embodiment of the present invention calculates the total amount of slope distance W of the closed pattern 32 with the equation eq1:

Figure BDA0002748825540000061
Figure BDA0002748825540000061

其中W为该斜率距离总量,d(i,i+1)为该些边缘坐标点之中的第i个边缘坐标点及第i+1个边缘坐标点之间的距离,s(i,i+1)为该第i个边缘坐标点及该第i+1个边缘坐标点之间的连线的斜率,d(n,1)为该些边缘坐标点之中的第n个边缘坐标点及第一个边缘坐标点之间的距离,s(n,1)为该第n个边缘坐标点及该第1个边缘坐标点之间的连线的斜率。由上述方程式eq1可知,当相连接的两边缘坐标点之间的连线的长度越长,或当此连线的斜率的绝对值越大,对斜率距离总量W的影响也越大。应注意的是,在步骤S14中,当任两边缘坐标点之间的连线呈纵向直线(即此两边缘坐标点具有相同的横坐标)时,需将此纵向直线的斜率定义为可计算的一最大斜率值或一最小斜率值。据此,纵向直线可一同参与斜率距离总量W的计算,且因为纵向直线的斜率的绝对值会明显的大于其他连线的斜率的绝对值,故而成为影响斜率距离总量W计算结果的一重要因素,不致由于识别的封闭图案32出现纵向直线(实际斜率为无穷大)而导致无法算出斜率距离总量W。where W is the total amount of the slope distance, d(i, i+1) is the distance between the i-th edge coordinate point and the i+1-th edge coordinate point among these edge coordinate points, s(i, i+1) is the slope of the connecting line between the i-th edge coordinate point and the i+1-th edge coordinate point, and d(n,1) is the n-th edge coordinate among these edge coordinate points The distance between the point and the first edge coordinate point, s(n,1) is the slope of the connection between the nth edge coordinate point and the first edge coordinate point. It can be seen from the above equation eq1 that the longer the length of the line between the two connected edge coordinate points, or the greater the absolute value of the slope of the line, the greater the influence on the total slope distance W. It should be noted that, in step S14, when the connecting line between any two edge coordinate points is a vertical straight line (that is, the two edge coordinate points have the same abscissa), the slope of the vertical straight line needs to be defined as a computable line. A maximum slope value or a minimum slope value of . Accordingly, the vertical straight line can participate in the calculation of the total amount of slope distance W, and because the absolute value of the slope of the vertical straight line will be significantly larger than the absolute value of the slope of other connecting lines, it becomes a factor that affects the calculation result of the total amount of slope distance W. It is an important factor that the total amount of slope distance W cannot be calculated because the identified closed pattern 32 has a vertical straight line (the actual slope is infinite).

具体来说,在本实施例中,对于s(i,i+1)而言,当第i个边缘坐标点及第i+1个边缘坐标点的横坐标相等,则在第i+1个边缘坐标点的纵坐标大于第i个边缘坐标点的纵坐标时,可设定s(i,i+1)的数值为最大斜率值,而在第i+1个边缘坐标点的纵坐标小于第i个边缘坐标点的纵坐标时,设定s(i,i+1)的数值为最小斜率值。同理,在本实施例中,对于s(n,1)而言,当第n个边缘坐标点及第1个边缘坐标点的横坐标相等,则在第1个边缘坐标点的纵坐标大于第n个边缘坐标点的纵坐标时,可设定s(n,1)的数值为最大斜率值,而在第1个边缘坐标点的纵坐标小于第n个边缘坐标点的纵坐标时,设定s(n,1)的数值为最小斜率值。然而,对于设定s(i,i+1)及s(n,1)的数值,也可以做相反的定义,也就是在第i+1个边缘坐标点的纵坐标大于第i个边缘坐标点的纵坐标时,设定s(i,i+1)的数值为最小斜率值,且在第1个边缘坐标点的纵坐标大于第n个边缘坐标点的纵坐标时,亦设定s(n,1)的数值为最小斜率值。Specifically, in this embodiment, for s(i, i+1), when the abscissas of the i-th edge coordinate point and the i+1-th edge coordinate point are equal, the When the ordinate of the edge coordinate point is greater than the ordinate of the ith edge coordinate point, the value of s(i, i+1) can be set as the maximum slope value, and when the ordinate of the i+1th edge coordinate point is less than When the ordinate of the i-th edge coordinate point, set the value of s(i, i+1) as the minimum slope value. Similarly, in this embodiment, for s(n,1), when the abscissa of the nth edge coordinate point and the first edge coordinate point are equal, the ordinate of the first edge coordinate point is greater than When the ordinate of the nth edge coordinate point, the value of s(n, 1) can be set as the maximum slope value, and when the ordinate of the first edge coordinate point is smaller than the ordinate of the nth edge coordinate point, Set the value of s(n,1) as the minimum slope value. However, for setting the values of s(i,i+1) and s(n,1), the opposite definition can also be made, that is, the ordinate of the i+1th edge coordinate point is greater than the ith edge coordinate When the ordinate of the point, set the value of s(i,i+1) as the minimum slope value, and also set s when the ordinate of the first edge coordinate point is greater than the ordinate of the nth edge coordinate point The value of (n, 1) is the minimum slope value.

上述的最大斜率值及最小斜率值可依需求自行定义其数值,例如定义最大斜率值为15,而最小斜率值为-15。或者,亦可基于其他非纵向直线的连线的斜率的绝对值决定最大斜率值及最小斜率值,例如当其他非纵向直线的连线的斜率的绝对值中的最大值为18.4,则可以大于此最大值的一数值来设定最大斜率值及最小斜率值,例如分别设定为20及-20。此外,最大斜率值及最小斜率值亦可以依照电容器的尺寸(半径)而变化,例如在电容器半径为6毫米下的最大斜率值及最小斜率值分别为15及-15,但在电容器半径为8毫米(其半径约为前者的1.3倍)的情况下,最大斜率值及最小斜率值可为15及-15的1.3倍(即19.5及-19.5)。以下提供表一,在常见的不同半径的电容器下,可采用的最大斜率值及最小斜率值在不同尺寸下相对于6毫米电容器的斜率设定比率。The above-mentioned maximum slope value and minimum slope value can be defined according to their own needs. For example, the maximum slope value is defined as 15, and the minimum slope value is defined as -15. Alternatively, the maximum slope value and the minimum slope value can also be determined based on the absolute values of the slopes of the connecting lines of other non-vertical straight lines. A value of the maximum value is used to set the maximum slope value and the minimum slope value, eg, 20 and -20, respectively. In addition, the maximum slope value and the minimum slope value can also be changed according to the size (radius) of the capacitor. For example, when the capacitor radius is 6 mm, the maximum slope value and the minimum slope value are 15 and -15 respectively, but when the capacitor radius is 8 In the case of millimeters (the radius of which is about 1.3 times the former), the maximum slope value and the minimum slope value can be 1.3 times 15 and -15 (ie, 19.5 and -19.5). Table 1 is provided below. Under the common capacitors with different radii, the maximum slope value and the minimum slope value that can be used are relative to the slope setting ratio of 6mm capacitors under different sizes.

Figure BDA0002748825540000071
Figure BDA0002748825540000071

(表一)(Table I)

请更参照图4,其为进一步以实例说明纵向直线。在图4所示基于封闭图案所取得的多个边缘坐标点及其间的连线40中,为了针对存在纵向直线的情况做说明,特别标示其中的纵向直线L及其两端的边缘坐标点P1及P2标号。由于边缘坐标点P1及P2的横坐标相等,造成其间的连线(即纵向直线L)沿纵轴延伸而无法以数学计算方式算出此连线的斜率,因此须以前述的设定方式决定纵向直线L的斜率值s(P1,P2)。在本实施例中,当边缘坐标点P2为边缘坐标点P1的下一个边缘坐标点(即P1为i,P2为i+1),或者当边缘坐标点P2为首个边缘坐标点而边缘坐标点P1为末个边缘坐标点(即P1为n,P2为1),由于边缘坐标点P2的纵坐标大于边缘坐标点P1的纵坐标,则设定s(P1,P2)为最大斜率值;而当边缘坐标点P1为边缘坐标点P2的下一个边缘坐标点(即P1为i+1,P2为i),或者当边缘坐标点P1为首个边缘坐标点而边缘坐标点P2为末个边缘坐标点(即P2为n,P1为1),由于边缘坐标点P1的纵坐标小于边缘坐标点P2的纵坐标,则设定s(P2,P1)为最小斜率值。Please refer more to FIG. 4, which is a further example to illustrate the vertical line. In the plurality of edge coordinate points and the connecting lines 40 between them obtained based on the closed pattern shown in FIG. 4 , in order to illustrate the case of the existence of a vertical straight line, the vertical straight line L and the edge coordinate points P1 and P1 at both ends thereof are specially marked. P2 label. Since the abscissas of the edge coordinate points P1 and P2 are equal, the connecting line between them (ie, the vertical straight line L) extends along the vertical axis, and the slope of the connecting line cannot be calculated mathematically. Therefore, the vertical direction must be determined by the aforementioned setting method. The slope value s(P1, P2) of the straight line L. In this embodiment, when the edge coordinate point P2 is the next edge coordinate point of the edge coordinate point P1 (that is, P1 is i, P2 is i+1), or when the edge coordinate point P2 is the first edge coordinate point and the edge coordinate point P1 is the last edge coordinate point (that is, P1 is n, P2 is 1). Since the ordinate of edge coordinate point P2 is greater than the ordinate of edge coordinate point P1, set s(P1, P2) as the maximum slope value; and When edge coordinate point P1 is the next edge coordinate point of edge coordinate point P2 (that is, P1 is i+1, P2 is i), or when edge coordinate point P1 is the first edge coordinate point and edge coordinate point P2 is the last edge coordinate Point (that is, P2 is n, P1 is 1), since the ordinate of edge coordinate point P1 is smaller than the ordinate of edge coordinate point P2, set s(P2, P1) as the minimum slope value.

请再参照图3A至图3D,且另参照图5A至图5D,其中图5A至图5C为对另一取像范围中的图像(图5A)进行二值化(图5B)之后再进行例如侵蚀或膨胀等形态学图像处理(图5C)后所获得的实体电容器图像,而图5D则呈现由此实体电容器图像取得沿封闭图案52的周缘配置的多个边缘坐标点。详言之,由图3A所呈现的是图案图像31的弧在弦左侧的情况,而图5A则是图案图像51的弧在弦右侧的情况。借由前述的步骤S14,当最大斜率值及最小斜率值设定为15及-15,图3D的边缘坐标点301-307依序设定为首个边缘坐标点至末个边缘坐标点,即可得出斜率距离总量W约为67.9289;而图5D的边缘坐标点501-506依序设定为首个边缘坐标点至末个边缘坐标点,则可得出斜率距离总量W约为-67.9289。然而,承前述,当对s(i,i+1)及s(n,1)的数值做相反的设定定义时,所得出的斜率距离总量W所带有的正负号也会相反,也就是对应于图3D的斜率距离总量W约为-67.9289,而对应于图5D的斜率距离总量W约为67.9289。Please refer to FIG. 3A to FIG. 3D again, and also refer to FIG. 5A to FIG. 5D , wherein FIG. 5A to FIG. 5C are images in another imaging range ( FIG. 5A ) after binarization ( FIG. 5B ), for example The solid capacitor image obtained after morphological image processing such as erosion or dilation ( FIG. 5C ), while FIG. 5D presents a plurality of edge coordinate points along the periphery of the closed pattern 52 obtained from this solid capacitor image. In detail, what is presented by FIG. 3A is the case where the arc of the pattern image 31 is on the left side of the chord, while FIG. 5A is the case where the arc of the pattern image 51 is on the right side of the chord. Through the aforementioned step S14, when the maximum slope value and the minimum slope value are set to 15 and -15, the edge coordinate points 301-307 in FIG. 3D are set as the first edge coordinate point to the last edge coordinate point in sequence, so that It can be concluded that the total amount of slope distance W is about 67.9289; and the edge coordinate points 501-506 in FIG. 5D are sequentially set as the first edge coordinate point to the last edge coordinate point, it can be obtained that the total amount of slope distance W is about -67.9289 . However, according to the above, when the values of s(i, i+1) and s(n, 1) are set and defined in the opposite direction, the sign of the obtained slope distance total W will also be opposite. , that is, the total amount of slope distances W corresponding to FIG. 3D is about -67.9289, and the total amount of slope distances W corresponding to FIG. 5D is about 67.9289.

在步骤S14计算出斜率距离总量W后,步骤S15即可根据斜率距离总量W判断并输出关联于封闭图案的一电容器20的极性状态,其中极性状态可为「电容器的负极位在电容器的正极的左侧」、「电容器的负极位在电容器的正极的右侧」或「无法判断」。此外,可仅以一数字或符号代表上述极性状态,例如以L代表「电容器的负极位在电容器的正极的左侧」,以R代表「电容器的负极位在电容器的正极的右侧」,而以0代表「无法判断」。详言之,如图6所示,步骤S15可包含如后所述的子步骤S151~S153。在子步骤S151中,判断斜率距离总量W是否落于一正值达标值域或一负值达标值域,以供判定步骤S14所算出的斜率距离总量W是否足以正确地显示电容器20的正极与负极之间的方位关系。若斜率距离总量W落在正值达标值域及负值达标值域之外(也就是呈正值的斜率距离总量W的数值不够大,或是呈负值的斜率距离总量W的数值不够小),则代表此次计算所得的斜率距离总量W导致误判的可能性较大。较佳地,由于适用于不同尺寸的电容器会设定不同的最大斜率值及最小斜率值,因此可针对不同尺寸的电容器设定不同的正值达标值域或负值达标值域。After calculating the total amount of slope distance W in step S14, step S15 can judge and output the polarity state of a capacitor 20 associated with the closed pattern according to the total amount of slope distance W, wherein the polarity state can be "the negative pole of the capacitor is at The left side of the positive electrode of the capacitor", "the negative electrode of the capacitor is on the right side of the positive electrode of the capacitor", or "can't judge". In addition, only a number or symbol can be used to represent the above-mentioned polarity state, for example, L represents "the negative pole of the capacitor is located on the left side of the positive pole of the capacitor", and R represents "the negative pole of the capacitor is located on the right side of the positive pole of the capacitor", And 0 means "can't judge". Specifically, as shown in FIG. 6 , step S15 may include sub-steps S151 to S153 which will be described later. In sub-step S151, it is determined whether the total amount of slope distance W falls within a positive value range or a negative value range, so as to determine whether the total slope distance W calculated in step S14 is sufficient to correctly display the capacitor 20 The azimuthal relationship between the positive and negative electrodes. If the total value of the slope distance W falls outside the range of positive and negative values (that is, the value of the positive slope distance total W is not large enough, or the negative slope distance from the total W If the value is not small enough), it means that the total amount of slope distance W calculated this time is more likely to cause misjudgment. Preferably, since different maximum slope values and minimum slope values are set for capacitors of different sizes, different positive value ranges or negative value ranges can be set for capacitors of different sizes.

当子步骤S151判断斜率距离总量W未落在正值达标值域及负值达标值域的任一者中,则于后接续执行子步骤S152,判断极性状态为无法判定。随后,即可选择性地另执行一次步骤S11,以期能取得更适于进行判断的实体电路板图像,并以此重新取得的实体电路板图像再次进行步骤S12-S15。反之,当子步骤S151判断斜率距离总量W落在正值达标值域或负值达标值域,则接续执行子步骤S153,以决定电容器20的正极与负极之间的方位关系。详言之,在本实施例中,当斜率距离总量W落于正值达标值域,判断极性状态为电容器的负极位在电容器的正极的左侧(即如图3D所示);而当斜率距离总量W落于负值达标值域,判断极性状态为电容器的负极位在电容器的正极的右侧(即如图5D所示)。然而,同样地,当对s(i,i+1)及s(n,1)的数值做相反的设定定义,则判断斜率距离总量W落于正值达标值域时的极性状态为电容器的负极位在电容器的正极的右侧,而斜率距离总量W落于负值达标值域时的极性状态为电容器的负极位在电容器的正极的左侧。When it is determined in sub-step S151 that the total amount of slope distance W does not fall within any one of the positive range and the negative range, sub-step S152 is then executed to determine that the polarity status is undeterminable. Afterwards, step S11 can be selectively performed again, in order to obtain a physical circuit board image that is more suitable for judgment, and steps S12-S15 are performed again with the re-acquired physical circuit board image. Conversely, when the sub-step S151 determines that the total slope distance W falls within the positive range or the negative range, the sub-step S153 is executed to determine the azimuth relationship between the positive and negative electrodes of the capacitor 20 . To be more specific, in this embodiment, when the total slope distance W falls within the positive value range, it is determined that the polarity state is that the negative electrode of the capacitor is located on the left side of the positive electrode of the capacitor (ie, as shown in FIG. 3D ); and When the total value of the slope distance W falls within the negative value range, it is determined that the polarity state is that the negative electrode of the capacitor is located to the right of the positive electrode of the capacitor (ie, as shown in FIG. 5D ). However, in the same way, when the values of s(i, i+1) and s(n, 1) are set and defined in the opposite direction, the polarity state when the total amount of slope distance W falls in the positive value range is determined. It means that the negative pole of the capacitor is on the right side of the positive pole of the capacitor, and the polarity state when the total slope distance W falls in the negative value range is that the negative pole of the capacitor is on the left side of the positive pole of the capacitor.

此外,如图7所示,在图7的步骤S15’中,于执行子步骤S151’前,可更执行子步骤S150,以正规化的方式对斜率距离总量W进行调整。详言之,此正规化的执行方式可以是将斜率距离总量W除以该电容器20的直径以取得一正规化总量,并判断该正规化总量是否落于正值达标值域或负值达标值域。借此电容器半径不同而采用不同的最大斜率值及最小斜率值时,即无须对应于不同的电容器尺寸设有不同的正值达标值域或负值达标值域,进而可省略这些额外设定所需的储存空间。当子步骤S151’判断正规化总量落在正值达标值域或负值达标值域,则接续执行子步骤S153’。在步骤S153’中,当该正规化总量落于该正值达标值域,判断该极性状态为该电容器的负极位在该电容器的正极的左侧;以及当该正规化总量落于该负值达标值域,判断该极性状态为该电容器的负极位在该电容器的正极的右侧。In addition, as shown in Fig. 7, in step S15' of Fig. 7, before executing sub-step S151', sub-step S150 may be further executed to adjust the total amount of slope distance W in a normalized manner. To be more specific, the normalization can be performed by dividing the total amount of slope distance W by the diameter of the capacitor 20 to obtain a normalized total amount, and judging whether the normalized total amount falls within the positive value range or the negative value. The value reaches the target range. Therefore, when different maximum slope values and minimum slope values are used for different capacitor radii, it is not necessary to set different positive value ranges or negative value ranges corresponding to different capacitor sizes, and these additional settings can be omitted. required storage space. When the sub-step S151' judges that the normalized total amount falls within the positive value range or the negative range, then the sub-step S153' is executed. In step S153', when the normalized total amount falls within the positive value range, it is determined that the polarity state is that the negative electrode of the capacitor is located on the left side of the positive electrode of the capacitor; and when the normalized total amount falls within The negative value reaches the standard value range, and it is judged that the polarity state is that the negative electrode of the capacitor is located on the right side of the positive electrode of the capacitor.

最后,在如工厂制造的实际情况上,除了判断出电容器的极性状态,仍需判断是否符合当初规格载明的极性状态,并在极性状态正确的情形下才能顺利出货。为了增加制程效率,可将具有预设极性状态的数据一同加入本发明的电容器极性状态判定方法。在本发明一实施例中,电路板设计图档可更具有关联于多个电子元件的预设极性状态。则在此情况下,在判断出电容器的极性状态后,可再判断该极性状态是否与预设极性状态相同,若极性状态与预设极性状态相同,方输出该极性状态;若极性状态与预设极性状态不同,则可产生供警示的提醒信号或重复做一次判定,就此本发明不予以限制。其中,本发明不对预设极性状态的表述做限制,但是其表述需与判断出的电容器的该极性状态的表述相同。举例来说,配合于前述的第一实施例,预设极性状态可为「电容器的负极位在该电容器的正极的左侧」及「电容器的负极位在该电容器的正极的右侧」。Finally, in the actual situation such as factory manufacturing, in addition to judging the polarity state of the capacitor, it is still necessary to judge whether it conforms to the polarity state stated in the original specification, and can be shipped smoothly only when the polarity state is correct. In order to increase the process efficiency, data with a preset polarity state can be added to the capacitor polarity state determination method of the present invention. In an embodiment of the present invention, the circuit board design file may further have a predetermined polarity state associated with a plurality of electronic components. In this case, after judging the polarity state of the capacitor, it can be judged whether the polarity state is the same as the preset polarity state. If the polarity state is the same as the preset polarity state, the polarity state can be output. ; If the polarity state is different from the preset polarity state, a reminder signal for warning can be generated or a determination can be repeated once, which is not limited by the present invention. Wherein, the present invention does not limit the expression of the preset polarity state, but the expression must be the same as the expression of the determined polarity state of the capacitor. For example, in accordance with the aforementioned first embodiment, the default polarity states can be "the negative electrode of the capacitor is located on the left side of the positive electrode of the capacitor" and "the negative electrode of the capacitor is located on the right side of the positive electrode of the capacitor".

以上为说明本发明的电容器极性状态判定方法第一实施例,利用计算图形外缘轮廓相邻的各边缘坐标点的斜率及斜率相乘的总和,判定当前电容器的极性状态,最后可再与预设极性状态比对是否符合。即使因例如环境因素等原因使电容器经取像后的图像经过图像预处理后无法识别出完整的实体图案,仍可有效判断出电容器的极性状态,进而降低检错率及误判率。The above is to illustrate the first embodiment of the capacitor polarity state determination method of the present invention. The current polarity state of the capacitor is determined by calculating the slope of each edge coordinate point adjacent to the outer edge of the graph and the sum of the multiplication of the slopes. Check whether it matches with the preset polarity state. Even if the captured image of the capacitor cannot recognize the complete solid pattern after image preprocessing due to environmental factors and other reasons, the polarity state of the capacitor can still be effectively determined, thereby reducing the error detection rate and misjudgment rate.

请参阅图8,其为本发明的电容器极性状态判定方法的第二实施例的流程图。相较于前述的第一实施例,本第二实施例中首先执行一初判程序以产生一初判极性状态,并在此初判极性状态与一预设极性状态不同时再执行一覆判程序以产生一覆判极性状态,其中的覆判程序即以前述的第一实施例的方法执行。本实施例的设置目的为期能在一般情况下以运算量较小的初判程序完成极性状态的判断,而对于极性状态判断有异常的情况下,再进一步以对环境影响因素具有较高强健性的覆判程序进行确认。这样的执行方式,可以避免对每一个实体电容器图像均进行前述的步骤S13~S15,进而提高实际生产时的整体效能。在本实施例中,步骤S21~S24为前述的初判程序,而步骤S27为前述的覆判程序,其中步骤S21及S22与第一实施例的步骤S11及S12相同,且步骤S27亦即为第一实施例的步骤S13~S15,因此于后描述中将省略对于步骤S21~S22及S27的说明。Please refer to FIG. 8 , which is a flowchart of a second embodiment of the method for determining the polarity state of a capacitor of the present invention. Compared with the aforementioned first embodiment, in the second embodiment, a preliminary judgment procedure is first performed to generate a preliminary judgment polarity state, and the preliminary judgment polarity state is executed when the preliminary judgment polarity state is different from a preset polarity state. A re-judgment procedure is used to generate a re-judgment polarity state, wherein the re-judgment procedure is executed by the method of the aforementioned first embodiment. The setting purpose of this embodiment is to be able to complete the judgment of the polarity state by a preliminary judgment procedure with a small amount of computation under normal circumstances, and in the case of abnormality in the judgment of the polarity state, further to have a higher impact on the environment. Robust review procedures for confirmation. Such an implementation manner can avoid performing the aforementioned steps S13 to S15 for each physical capacitor image, thereby improving the overall performance in actual production. In this embodiment, steps S21 to S24 are the aforementioned preliminary judgment procedure, and step S27 is the aforementioned rejudgment procedure, wherein steps S21 and S22 are the same as steps S11 and S12 of the first embodiment, and step S27 is the same as Steps S13 to S15 of the first embodiment, therefore, the description of steps S21 to S22 and S27 will be omitted in the following description.

请再次参照图8,本发明提供的电容器极性状态判定方法的第二实施例可包含以下步骤:步骤S21,取得实体电路板图像;步骤S22,比对实体电路板图像及电路板设计图档以取得实体电容器图像;步骤S23,取得该实体电容器图像中的一封闭图案,并基于该封闭图案取得一弓形图案,其中该弓形图案与该封闭图案至少部分重叠;步骤S24,基于该弓形图案产生关联于该封闭图案的一电容器的一初判极性状态;步骤S25,判断该初判极性状态及一预设极性状态是否相同;步骤S26,当初判极性状态及预设极性状态相同,输出该初判极性状态;步骤S27,当初判极性状态及预设极性状态不相同,取得位于该封闭图案的周缘的多个边缘坐标点,以该些边缘坐标点的每两相邻的边缘坐标点之间的距离及连线的斜率计算一斜率距离总量,且根据该斜率距离总量产生关联于该电容器的一覆判极性状态;步骤S28,判断该覆判极性状态及该预设极性状态是否相同;以及步骤S29,当该覆判极性状态及该预设极性状态相同,输出覆判极性状态。以下针对上述各步骤做详细解释及示例。Referring to FIG. 8 again, the second embodiment of the capacitor polarity state determination method provided by the present invention may include the following steps: step S21 , obtaining a physical circuit board image; step S22 , comparing the physical circuit board image and the circuit board design file to obtain a physical capacitor image; step S23, obtain a closed pattern in the physical capacitor image, and obtain an arcuate pattern based on the closed pattern, wherein the arcuate pattern and the closed pattern at least partially overlap; step S24, based on the arcuate pattern to generate A preliminary judgment polarity state of a capacitor associated with the closed pattern; step S25, judging whether the preliminary judgment polarity state and a preset polarity state are the same; step S26, initially judgment polarity state and preset polarity state The same, output the initial judgment polarity state; Step S27, the initial judgment polarity state and the preset polarity state are not the same, obtain a plurality of edge coordinate points located at the periphery of the closed pattern, and use every two edge coordinate points of these edge coordinate points. The distance between the adjacent edge coordinate points and the slope of the connection line calculates a total slope distance, and generates a polarity state associated with the capacitor according to the total slope distance; step S28, judging the polarity determining whether the polarity state and the preset polarity state are the same; and step S29, when the overridden polarity state and the preset polarity state are the same, output the overridden polarity state. Detailed explanations and examples of the above steps are given below.

请同时参考图8及图9。在步骤S23中,基于对实体电容器图像进行预处理后所取得的实体电容器图像的封闭图案52进一步取得如图9的弓形图案(第一弓形图案91),其中第一弓形图案91与封闭图案52至少部分重叠。较佳地,第一弓形图案91为涵盖此封闭图案52的最小弓形,且第一弓形图案91的弓位于其弦的左侧或右侧。在步骤S24中,基于第一弓形图案91产生关联于封闭图案52的电容器的初判极性状态。根据第一弓形图案91的弓及弦的方位关系,可获得此初判极性状态,其中初判极性状态可为「该电容器的负极位在该电容器的正极的左侧」或「该电容器的负极位在该电容器的正极的右侧」,步骤S24详细流程将于稍后说明。于接续的步骤S25中,在产生初判极性状态后,接续判断初判极性状态及预设极性状态是否相同。当该初判极性状态与该预设极性状态相同,续行步骤S26,输出该初判极性状态;当该初判极性状态不同于该预设极性状态,则执行步骤S27,即更进一步执行覆判程序(也就是执行如前述第一实施例的步骤S13至步骤S15)。Please refer to Figure 8 and Figure 9 at the same time. In step S23 , an arcuate pattern (first arcuate pattern 91 ) as shown in FIG. 9 is further obtained based on the closed pattern 52 of the physical capacitor image obtained after the physical capacitor image is preprocessed, wherein the first arcuate pattern 91 and the closed pattern 52 are further obtained. at least partially overlap. Preferably, the first bow pattern 91 is the smallest bow encompassing this closed pattern 52, and the bow of the first bow pattern 91 is positioned to the left or right of its chord. In step S24 , a preliminary polarity state of the capacitor associated with the closed pattern 52 is generated based on the first arcuate pattern 91 . According to the azimuth relationship between the bow and the chord of the first arcuate pattern 91, the initial judgment polarity state can be obtained, wherein the initial judgment polarity state can be “the negative electrode of the capacitor is located on the left side of the positive electrode of the capacitor” or “the capacitor is located on the left side of the positive electrode of the capacitor”. The negative electrode of the capacitor is located on the right side of the positive electrode of the capacitor." The detailed process of step S24 will be described later. In the subsequent step S25, after the initial determination of the polarity state is generated, it is continued to determine whether the initial determination of the polarity state and the preset polarity state are the same. When the initially determined polarity state is the same as the preset polarity state, step S26 is continued to output the initially determined polarity state; when the initially determined polarity state is different from the preset polarity state, step S27 is executed, That is, the rejudgment procedure is further executed (ie, the steps S13 to S15 of the first embodiment described above are executed).

在步骤S27产生覆判极性状态后,步骤S28可接续判断该覆判极性状态及该预设极性状态是否相同。步骤S29中,当该覆判极性状态及该预设极性状态相同,可输出该覆判极性状态。而若覆判极性状态与预设极性状态不同,则可产生供警示的提醒信号,或者再次执行步骤S21并重新执行此第二实施例的电容极性状态判定方法,本发明不予以限制。After the overridden polarity state is generated in step S27, step S28 may continue to determine whether the overridden polarity state and the preset polarity state are the same. In step S29, when the overdetermined polarity state and the preset polarity state are the same, the overdetermined polarity state can be output. However, if the polarity state is different from the preset polarity state, a reminder signal for warning can be generated, or step S21 is performed again and the capacitor polarity state determination method of the second embodiment is performed again, which is not limited in the present invention. .

请参考图10,其为本发明第二实施例的电容器极性状态判定方法的步骤S24,基于第一弓形图案91产生初判极性状态的详细流程图,其中步骤S24可包含子步骤S241~S244。详细的说,请再次一并参考图9,在步骤S241中,可依据第一弓形图案91产生圆形图案90,详言之,利用二分法(bisectors)将第一弓形图案91的轮廓上的各坐标点进行迭代,即可找到圆形图案90的圆心及其半圆位置,进而产生圆形图案90,其中第一弓形图案91的弧部分重叠圆形图案90的外周,且该外周未与该弧重叠的部分与第一弓形图案91的弦形成第二弓形图案92。随后,于步骤S242中,比较第一弓形图案91的面积及第二弓形图案92的面积,以获得此二面积之间的大小关系。步骤S243则判断第一弓形图案91及第二弓形图案92中面积较小者相对于面积较大者的方位。最后,由步骤S244判断该初判极性状态为电容器的负极位在该电容器的正极的左侧或右侧。详言之,第一弓形图案91及第二弓形图案92中面积较小者相对于面积较大者的方位即电容器的负极相对于其正极的方位。请同时参考图2,由于在电容器20上,实体图案21代表负极相对于正极的方位,故圆形图案90可对应电容器20的圆形外围,第一弓形图案91及第二弓形图案92中面积较小的一者可对应于实体图案21,而第一弓形图案91及第二弓形图案92中面积较大的一者可对应电容器20的圆形外围内不包含实体图案21的部分。以图9为例,由于第一弓形图案91(面积较小者)位在于第二弓形图案92(面积较大者)的右侧,故可判断如图9的初判极性状态为电容器的负极位在电容器正极的右侧。Please refer to FIG. 10 , which is step S24 of the method for determining the polarity state of a capacitor according to the second embodiment of the present invention, a detailed flowchart of generating a preliminary determination of the polarity state based on the first arcuate pattern 91 , wherein step S24 may include sub-steps S241 - S244. In detail, please refer to FIG. 9 together again. In step S241 , the circular pattern 90 can be generated according to the first arcuate pattern 91 . Each coordinate point is iterated to find the center of the circle pattern 90 and the position of its semicircle, thereby generating a circle pattern 90, wherein the arc portion of the first arcuate pattern 91 overlaps the outer circumference of the circular pattern 90, and the outer circumference is not connected to the outer circumference of the circular pattern 90. The overlapping portion of the arcs and the chords of the first arcuate pattern 91 form a second arcuate pattern 92 . Then, in step S242, the area of the first arcuate pattern 91 and the area of the second arcuate pattern 92 are compared to obtain the magnitude relationship between the two areas. Step S243 is to determine the orientation of the first arcuate pattern 91 and the second arcuate pattern 92 with the smaller area relative to the larger area. Finally, it is determined in step S244 that the polarity state of the initial determination is that the negative electrode of the capacitor is located on the left or right side of the positive electrode of the capacitor. Specifically, the orientation of the first arcuate pattern 91 and the second arcuate pattern 92 with the smaller area relative to the larger area is the orientation of the negative electrode of the capacitor relative to its positive electrode. Please refer to FIG. 2 at the same time, since on the capacitor 20, the solid pattern 21 represents the orientation of the negative electrode relative to the positive electrode, the circular pattern 90 can correspond to the circular periphery of the capacitor 20, and the area between the first arcuate pattern 91 and the second arcuate pattern 92 The smaller one may correspond to the solid pattern 21 , and the larger one of the first arcuate pattern 91 and the second arcuate pattern 92 may correspond to the portion of the circular periphery of the capacitor 20 that does not include the solid pattern 21 . Taking FIG. 9 as an example, since the first arcuate pattern 91 (the one with the smaller area) is located on the right side of the second arcuate pattern 92 (the one with the larger area), it can be determined that the polarity state of the initial determination in FIG. 9 is that of the capacitor. The negative pole is to the right of the positive pole of the capacitor.

以上为说明本发明的实施例的实施方式的说明。借由本发明提供的电容器极性状态判定方法,即使取得电容器图像的环境不佳,仍能有效判别电容器的极性状态。而且在运算效能较低的条件下,可参考本发明的第二实施例,在利用斜率距离总量判断电容器的极性状态之前,先行利用第一弓形及第二弓形的面积大小判断电容器的初判极性状态。The foregoing is the description of the embodiment explaining the embodiment of the present invention. With the method for determining the polarity state of the capacitor provided by the present invention, the polarity state of the capacitor can still be effectively determined even if the environment in which the capacitor image is obtained is not good. Moreover, under the condition of low computing performance, refer to the second embodiment of the present invention, before using the total slope distance to determine the polarity state of the capacitor, first use the area of the first arc and the second arc to determine the initial value of the capacitor. Determine the polarity state.

当然,本发明还可有其它多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。Of course, the present invention can also have other various embodiments, without departing from the spirit and essence of the present invention, those skilled in the art can make various corresponding changes and modifications according to the present invention, but these corresponding Changes and deformations should belong to the protection scope of the appended claims of the present invention.

Claims (10)

1. A method for determining a polarity state of a capacitor, comprising:
obtaining a solid circuit board image;
comparing the solid circuit board image with a circuit board design drawing file to obtain a solid capacitor image;
obtaining a plurality of edge coordinate points in the physical capacitor image, wherein the edge coordinate points are arranged along the periphery of a closed pattern, the number of the edge coordinate points is n, and n is at least three;
calculating a total slope distance by the following equation:
Figure FDA0002748825530000011
(ii) a And
determining and outputting a polarity state of a capacitor associated with the closed pattern according to the total slope distance,
wherein W is the total distance of the slope, d (i, i +1) is the distance between the ith edge coordinate point and the (i +1) th edge coordinate point among the plurality of edge coordinate points, s (i, i +1) is the slope of the connection line between the ith edge coordinate point and the (i +1) th edge coordinate point, d (n,1) is the distance between the nth edge coordinate point and the first edge coordinate point among the plurality of edge coordinate points, and s (n,1) is the slope of the connection line between the nth edge coordinate point and the first edge coordinate point.
2. The method of claim 1, wherein when calculating the total slope distance according to the equation, if the abscissa of the i-th edge coordinate point and the i + 1-th edge coordinate point are equal, the value of s (i, i +1) is set to a maximum slope value when the ordinate of the i + 1-th edge coordinate point is greater than the ordinate of the i-th edge coordinate point, and the value of s (i, i +1) is set to a minimum slope value when the ordinate of the i + 1-th edge coordinate point is less than the ordinate of the i-th edge coordinate point, and the method further comprises calculating the total slope distance according to the equation
When the abscissa of the nth edge coordinate point and the abscissa of the 1 st edge coordinate point are equal, the value of s (n,1) is set as the maximum slope value when the ordinate of the 1 st edge coordinate point is greater than the ordinate of the nth edge coordinate point, and the value of s (n,1) is set as the minimum slope value when the ordinate of the 1 st edge coordinate point is less than the ordinate of the nth edge coordinate point.
3. The method of claim 1, wherein determining and outputting the polarity status of the capacitor associated with the closed pattern based on the total amount of slope distance comprises:
judging whether the total slope distance falls within a positive value standard value range or a negative value standard value range;
when the total slope distance is within the positive value reaching range, determining the polarity state as the negative pole of the capacitor being located at one of the left side and the right side of the positive pole of the capacitor; and
when the total slope distance falls within the negative value reaching range, the polarity state is determined as the other of the left side and the right side of the negative pole of the capacitor.
4. The capacitor polarity state determination method according to claim 3,
when the total slope distance is judged to be outside the positive value standard value range and the negative value standard value range, the polarity state is judged to be not capable of being judged, and another entity circuit board image containing the capacitor is obtained so as to judge the polarity state of the capacitor again.
5. The method of claim 1, wherein determining and outputting the polarity status of the capacitor associated with the closed pattern based on the total amount of slope distance comprises:
dividing the total amount of slope distance by a diameter of the capacitor to obtain a normalized total amount;
determining whether the normalized total amount falls within a positive value compliance range or a negative value compliance range;
when the normalized total amount falls within the positive value reaching range, determining that the polarity state is one of the left side and the right side of the negative pole of the capacitor; and
when the normalized total amount falls within the negative value reaching range, the polarity status is determined as the other of the left side and the right side of the negative pole of the capacitor.
6. The method of claim 1, wherein comparing the physical circuit board image with the circuit board design drawing to obtain the physical capacitor image comprises:
converting a preset capacitor coordinate of the circuit board design drawing file into an entity capacitor coordinate of the entity circuit board image by using a conversion matrix, and obtaining the entity capacitor image from an image range containing the entity capacitor coordinate in the entity circuit board image.
7. A method for determining a polarity state of a capacitor, comprising:
obtaining a solid circuit board image;
comparing the solid circuit board image with a circuit board design drawing file to obtain a solid capacitor image;
obtaining a closed pattern in the physical capacitor image, and obtaining an arch pattern based on the closed pattern, wherein the arch pattern and the closed pattern are at least partially overlapped;
generating a first determined polarity state of a capacitor associated with the closed pattern based on the arcuate pattern;
judging whether the initial judgment polarity state is the same as a preset polarity state;
when the initial judgment polarity state is the same as the preset polarity state, outputting the initial judgment polarity state;
when the initial judgment polarity state is different from the preset polarity state, obtaining a plurality of edge coordinate points positioned at the periphery of the closed pattern, calculating a total slope distance amount according to the distance between every two adjacent edge coordinate points of the plurality of edge coordinate points and the slope of a connecting line, and generating a secondary judgment polarity state related to the capacitor according to the total slope distance amount;
judging whether the judging polarity state is the same as the preset polarity state; and
and outputting the polarity-covering state when the polarity-covering state is the same as the preset polarity state.
8. The method of claim 7, wherein defining the bow pattern as a first bow pattern, generating the initial determined polarity state of the capacitor associated with the closed pattern based on the first bow pattern comprises:
generating a circular pattern according to the first arch pattern, wherein the arc part of the first arch pattern overlaps the periphery of the circular pattern, and the part of the periphery which is not overlapped with the arc and the chord of the first arch pattern form a second arch pattern;
comparing the area of the first arch pattern with the area of the second arch pattern; and
and judging that the first bow-shaped pattern and the second bow-shaped pattern are respectively a smaller area and a larger area, and the direction of the smaller area relative to the larger area is the direction of the negative electrode of the capacitor relative to the positive electrode of the capacitor.
9. The method of claim 7, wherein the edge coordinate points are disposed along a periphery of a closed pattern, the number of the edge coordinate points is n, and n is at least three.
10. The method of claim 9, wherein calculating the total distance of slopes according to the distance between every two adjacent edge coordinate points of the edge coordinate points and the slope of the connecting line comprises:
the total slope distance is calculated by the following equation:
Figure FDA0002748825530000031
wherein W is the total distance of the slope, d (i, i +1) is the distance between the ith edge coordinate point and the (i +1) th edge coordinate point among the plurality of edge coordinate points, s (i, i +1) is the slope of the connection line between the ith edge coordinate point and the (i +1) th edge coordinate point, d (n,1) is the distance between the nth edge coordinate point and the first edge coordinate point among the plurality of edge coordinate points, and s (n,1) is the slope of the connection line between the nth edge coordinate point and the first edge coordinate point.
CN202011176462.0A 2020-10-29 2020-10-29 Method for determining the polarity status of capacitors Active CN114429442B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011176462.0A CN114429442B (en) 2020-10-29 2020-10-29 Method for determining the polarity status of capacitors

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011176462.0A CN114429442B (en) 2020-10-29 2020-10-29 Method for determining the polarity status of capacitors

Publications (2)

Publication Number Publication Date
CN114429442A true CN114429442A (en) 2022-05-03
CN114429442B CN114429442B (en) 2025-03-04

Family

ID=81310039

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011176462.0A Active CN114429442B (en) 2020-10-29 2020-10-29 Method for determining the polarity status of capacitors

Country Status (1)

Country Link
CN (1) CN114429442B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04236318A (en) * 1991-01-21 1992-08-25 Nec Corp Inspecting device of polarity of capacitor
CA2149680A1 (en) * 1994-06-30 1995-12-31 John Charles Baumhauer Jr. Direction finder
US20020076095A1 (en) * 2000-12-20 2002-06-20 Tong Sim Ching Automatic optical inspection of printed circuit board packages with polarity
JP2012203612A (en) * 2011-03-25 2012-10-22 Juki Corp Image processing method and image processing device
JP2013012646A (en) * 2011-06-30 2013-01-17 Nippon Chemicon Corp Capacitor, and method and program for manufacturing the same
CN103675588A (en) * 2013-11-20 2014-03-26 中国矿业大学 Printed circuit element polarity machine vision detection method and device
CN103869215A (en) * 2012-12-10 2014-06-18 鸿富锦精密工业(深圳)有限公司 Electronic component inspection system and electronic component inspection method
CN107895064A (en) * 2017-10-19 2018-04-10 上海望友信息科技有限公司 Component polarity detection method, system, computer-readable recording medium and equipment
CN109429473A (en) * 2017-08-28 2019-03-05 株洲中车时代电气股份有限公司 Automatic check method and device with polarity electronic component in circuit board
CN109632798A (en) * 2019-01-17 2019-04-16 鲁班嫡系机器人(深圳)有限公司 Device for detecting polarity and its method based on image procossing
CN109870141A (en) * 2017-12-05 2019-06-11 英业达科技有限公司 The polar method and system of electrolytic capacitor are judged using image
CN111007441A (en) * 2019-12-16 2020-04-14 深圳市振邦智能科技股份有限公司 Electrolytic capacitor polarity detection method and detection system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04236318A (en) * 1991-01-21 1992-08-25 Nec Corp Inspecting device of polarity of capacitor
CA2149680A1 (en) * 1994-06-30 1995-12-31 John Charles Baumhauer Jr. Direction finder
US20020076095A1 (en) * 2000-12-20 2002-06-20 Tong Sim Ching Automatic optical inspection of printed circuit board packages with polarity
JP2012203612A (en) * 2011-03-25 2012-10-22 Juki Corp Image processing method and image processing device
JP2013012646A (en) * 2011-06-30 2013-01-17 Nippon Chemicon Corp Capacitor, and method and program for manufacturing the same
CN103869215A (en) * 2012-12-10 2014-06-18 鸿富锦精密工业(深圳)有限公司 Electronic component inspection system and electronic component inspection method
CN103675588A (en) * 2013-11-20 2014-03-26 中国矿业大学 Printed circuit element polarity machine vision detection method and device
CN109429473A (en) * 2017-08-28 2019-03-05 株洲中车时代电气股份有限公司 Automatic check method and device with polarity electronic component in circuit board
CN107895064A (en) * 2017-10-19 2018-04-10 上海望友信息科技有限公司 Component polarity detection method, system, computer-readable recording medium and equipment
CN109870141A (en) * 2017-12-05 2019-06-11 英业达科技有限公司 The polar method and system of electrolytic capacitor are judged using image
CN109632798A (en) * 2019-01-17 2019-04-16 鲁班嫡系机器人(深圳)有限公司 Device for detecting polarity and its method based on image procossing
CN111007441A (en) * 2019-12-16 2020-04-14 深圳市振邦智能科技股份有限公司 Electrolytic capacitor polarity detection method and detection system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
宗伟: "台达视觉检测系统在电容送料机中的应用", 自动化博览, no. 04, 15 April 2015 (2015-04-15), pages 62 - 63 *

Also Published As

Publication number Publication date
CN114429442B (en) 2025-03-04

Similar Documents

Publication Publication Date Title
EP3690700B1 (en) Image similarity calculation method and device, and storage medium
CN115082394A (en) Plug-in defect visual detection and identification method, readable storage medium and device
CN114897864A (en) Workpiece detection and defect judgment method based on digital and analog information
CN117029733B (en) Bolt loosening detection method, system and device based on computer vision
CN110660072B (en) Method and device for identifying straight line edge, storage medium and electronic equipment
CN116168041B (en) Real-time detection method and system applied to laminating device
CN111899241A (en) Quantitative on-line detection method and system for defects of PCB (printed Circuit Board) patches in front of furnace
JP5123244B2 (en) Shape defect inspection device, shape modeling device, and shape defect inspection program
CN115861153A (en) Image detection method, computer device and storage medium
US20240185594A1 (en) Defect detection and image comparison of components in an assembly
CN112036232A (en) Image table structure identification method, system, terminal and storage medium
US8687921B2 (en) Image processing apparatus, image processing method, and image processing program
CN114862816B (en) Burr detection method, system and computer readable storage medium
CN114429442A (en) Method for determining polarity state of capacitor
TWI730918B (en) Determining method for polarity state of capacitor
Zhang RESEARCH ON CHIPS’DEFECT EXTRACTION BASED ON IMAGE-MATCHING
TWI735365B (en) Determining method for polarity of capacitor
CN109389595A (en) A kind of table line breakpoint detection method, electronic equipment and readable storage medium storing program for executing
CN114429443A (en) Method for determining polarity of capacitor
JP4530723B2 (en) PATTERN MATCHING METHOD, PATTERN MATCHING DEVICE, AND ELECTRONIC COMPONENT MOUNTING METHOD
CN114332206A (en) Attitude correction parameter determination method and device and computer equipment
CN115239612A (en) Circuit board positioning method, device, equipment and storage medium
TWI751760B (en) Image capturing method for electronic component and polarity determining method for capacitor
CN117115275B (en) Distortion parameter determination method and device and computer equipment
US12154263B2 (en) Method, apparatus, and device for labeling images

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant