CN105631893A - Method and device for detecting whether capacitor is correctly mounted through photographing - Google Patents

Method and device for detecting whether capacitor is correctly mounted through photographing Download PDF

Info

Publication number
CN105631893A
CN105631893A CN201610133289.3A CN201610133289A CN105631893A CN 105631893 A CN105631893 A CN 105631893A CN 201610133289 A CN201610133289 A CN 201610133289A CN 105631893 A CN105631893 A CN 105631893A
Authority
CN
China
Prior art keywords
capacitor
module
image
baffle
circuit board
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.)
Pending
Application number
CN201610133289.3A
Other languages
Chinese (zh)
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.)
China University of Mining and Technology CUMT
Original Assignee
China University of Mining and Technology CUMT
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 China University of Mining and Technology CUMT filed Critical China University of Mining and Technology CUMT
Priority to CN201610133289.3A priority Critical patent/CN105631893A/en
Publication of CN105631893A publication Critical patent/CN105631893A/en
Pending legal-status Critical Current

Links

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/0008Industrial image inspection checking presence/absence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/20Image enhancement or restoration using local operators
    • G06T5/30Erosion or dilatation, e.g. thinning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/40Image enhancement or restoration using histogram techniques
    • 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/20048Transform domain processing
    • G06T2207/20061Hough transform
    • 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

Landscapes

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

Abstract

The invention provides a method and a device for detecting whether a capacitor is correctly mounted through photographing. The method comprises steps: an image of a circuit board of an already-assembled capacitor is acquired through a camera; the acquired image is pre-treated, wherein pretreatment comprises graying, histogram transformation, binarization and expansion corrosion treatment on the image; noisy points with over small areas on the image after pretreatment are removed, the capacitor is found through Hough circle transformation, and invalid circles are eliminated; and whether the capacitor is correctly mounted is judged according to whether a negative electrode marker exists in an effective circle preset position. The method is measurement based on computer vision, is a non-contact measurement technology, particularly a capacity polarity detection method brought forwards based on open source OpenCV, and solves the defects of slow execution speed and poor real-time performance of the traditional detection method.

Description

Method and device for detecting whether capacitor is installed correctly or not through photographing
Technical Field
The invention belongs to the field of automatic detection technology and device, and particularly relates to a method and a device for detecting whether a capacitor is installed correctly or not by photographing.
Background
In the mass production process of the circuit board, misloading and neglected loading of elements are important reasons for generating defective products, and the capacitor is a common polar element on the circuit board, so that how to efficiently and accurately detect the misloading and neglected loading capacitor has important practical significance for improving the yield of the circuit board production.
At present, the domestic detection of the installation of circuit board elements mainly adopts an observation method and a functional detection method. After the circuit board is installed, the elements are firstly observed manually, and then are welded after being confirmed to be correct, and then are electrified for function detection. The observation method has the disadvantages of low efficiency and insufficient accuracy. If the misassembled element which is not judged exists, the circuit board is easily burnt, and the production efficiency is reduced.
Disclosure of Invention
The invention aims to provide a method and a device for detecting whether a capacitor is installed correctly or not by photographing, and aims to solve the problems of low efficiency and insufficient accuracy of the existing circuit board element installation detection method.
The invention is realized in this way, a method for detecting whether the capacitor is installed correctly or not, comprising the following steps:
acquiring an image of the circuit board with the capacitor assembled by a camera;
preprocessing the acquired image, wherein the preprocessing comprises graying, histogram transformation, binaryzation and expansion corrosion processing of the image;
removing noise points with undersized area from the preprocessed image, finding out capacitance through Hough circle transformation, and removing invalid circles;
and judging whether the capacitor is installed correctly or not according to whether the negative pole mark exists at the preset position of the effective circle.
Further, in the method for detecting whether the capacitor is installed correctly or not as described above, before determining whether the capacitor is installed correctly or not according to whether the negative mark exists at the preset position of the effective circle, the method further includes: and presetting specific detection parameters according to the target capacitor to be detected.
A device for detecting whether a capacitor is installed correctly or not by photographing comprises an image acquisition unit and an image processing unit, wherein the image acquisition unit is used for acquiring a circuit board image of the assembled capacitor through a camera; the image processing unit includes:
the image preprocessing module is used for preprocessing the acquired image, and is used for carrying out graying, histogram transformation, binaryzation and expansion corrosion processing on the image;
the capacitance positioning module is used for removing noise points with undersize areas from the preprocessed images and finding out capacitance through Hough circle transformation to remove invalid circles;
the judging module is used for judging whether the capacitor is installed correctly or not according to whether the negative pole mark exists at the preset position of the effective circle;
the image acquisition unit, the image preprocessing module, the capacitance positioning module and the judgment module are sequentially connected.
Further, the apparatus as described above, further comprising: the device comprises a production line for conveying a circuit board, an infrared sensor and a baffle which are sequentially arranged along the conveying direction of the production line, and a controller unit for controlling the production line and the baffle to perform corresponding releasing and blocking operations according to the conditions of capacitor installation and infrared sensor induction; the controller unit is in signal connection with the image acquisition unit, the assembly line, the baffle and the infrared sensor respectively.
Further, the device for detecting whether the capacitor is installed correctly or not by photographing also comprises a display unit;
the image processing unit also comprises a parameter setting module for presetting specific detection parameters according to the target capacitor to be detected; the parameter setting module is respectively in signal connection with the judging module and the display unit.
Further, the apparatus as described above, the controller unit comprising:
the release retardation control module is used for controlling the rotation of the assembly line and the rising of the baffle plate when the capacitor is installed correctly or after the error of the capacitor is installed incorrectly or keeping the assembly line stopped and the baffle plate falling when the capacitor is installed incorrectly and the error is not eliminated;
the infrared signal processing module is used for controlling the baffle to descend according to the signal of the circuit board to be detected, which is sensed by the infrared sensor;
the PLC serial port module is used for controlling the image acquisition unit to carry out photographing operation according to a signal sent by the PLC serial port; wherein,
the release retardation control module is respectively connected with the judgment module, the drive of the production line and the drive signal of the baffle; the infrared signal processing module is respectively connected with the infrared sensor and the driving signal of the baffle; and the PLC serial port module is in signal connection with the image acquisition unit.
Further, the apparatus as described above, the controller unit further includes a cancellation instruction generating module for generating whether an error is cancelled on the display unit when a capacitor is mounted in error; the elimination instruction generation module is respectively in signal connection with the release block control module and the display unit.
Further, the device as described above, the image processing unit further includes an error marking module for marking a place where the capacitor is mounted incorrectly and displaying the place on the display unit; the error marking module is respectively in signal connection with the judging module and the display unit.
Furthermore, the device also comprises an alarm unit, wherein the alarm unit is in signal connection with the judgment module.
Further, the device as described above, further comprising a clamp; the assembly line is arranged in the fixture, and the infrared sensor, the baffle and the baffle are driven to be fixed on the fixture.
The invention overcomes the defects of the prior art, and provides a method and a device for detecting whether a capacitor is installed correctly or not by photographing, wherein the method is based on computer vision measurement, is a non-contact measurement technology, and particularly is based on a capacitor polarity detection method provided by open source OpenCV, and overcomes the defects of low execution speed and poor real-time performance of the traditional detection method. On the basis, the method provided by the invention realizes the automation of the detection system by converting the method into a mode of matching software and hardware, and has the advantages of more intelligent detection and high working efficiency.
Drawings
FIG. 1 is a first flowchart illustrating the steps of a method for detecting whether a capacitor is mounted correctly according to the present invention;
FIG. 2 is a diagram illustrating the effect of the capacitive polarity detection image processing process of the present invention;
FIG. 3 is a flowchart of the algorithm of the denoising point of step S3 in the method for detecting whether the capacitor is installed correctly or not according to the present invention;
FIG. 4 is a schematic view of the detection area of the negative electrode mark of the capacitor according to the present invention;
FIG. 5 is a flowchart of the invalid circle eliminating algorithm of step S3 in the method for detecting whether the capacitor is installed correctly according to the present invention;
FIG. 6 is a schematic view of the orientation of the negative electrode label of the capacitor of the present invention;
FIG. 7 is a flowchart of the algorithm of step S4 in the method for detecting whether the capacitor is installed correctly or not according to the present invention;
FIG. 8 is a flowchart illustrating another step of the method for detecting whether the capacitor is mounted correctly according to the present invention;
FIG. 9 is a schematic structural diagram of an embodiment of an apparatus for detecting whether a capacitor is installed correctly according to the present invention;
FIG. 10 is a schematic structural diagram of an apparatus for detecting whether a capacitor is mounted correctly according to another embodiment of the present invention;
FIG. 11 is a schematic structural diagram of a device for detecting whether the capacitor is installed correctly, which is provided with a clamp;
FIG. 12 is a block diagram of the apparatus for detecting whether the capacitor is correctly mounted according to the present invention;
fig. 13 is a flowchart of a method for detecting whether the capacitor is installed correctly.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a method for detecting whether a capacitor is installed correctly, which comprises the following steps as shown in figures 1 and 2:
s1, collecting the image of the circuit board with the capacitor through a camera;
s2, preprocessing the collected image, wherein the preprocessing comprises graying, histogram transformation, binarization and expansion corrosion processing of the image, as shown in FIGS. 2 a-2 d;
in step S2, the image is first grayed by the library function cvcvcvtcolor of OpenCV to become an 8-bit grayscale image, thereby reducing the amount of data to be processed. And (3) image contrast is enhanced by utilizing ImageStretchByHistogram histogram transformation, single-channel image enhancement is realized, and the gray level threshold of the image is stretched to 0-255. In order to facilitate the detection algorithm to carry out binary morphological transformation and identification on the image, a fixed threshold operation is further applied to the single-channel array by using a function cvThreshold, and a binary image is generated from the gray image. And finally, corroding and expanding the binary image by using the cvErode and the cvDilate so as to macroscopically smooth the outline of the object on the premise of not changing the shape of the object.
S3, removing noise points with undersize areas from the preprocessed image, finding out capacitance through Hough circle transformation, and removing invalid circles, as shown in FIGS. 2 e-2 g;
in step S3, the contour tree is traversed by using the cvfindcontourous function, the area of each contour is calculated by using cvcontourearera, and the contour with the area smaller than the threshold in the contour tree is removed by being smeared by the cvdrawcontourous function, so as to achieve the purpose of noise point removal, and the algorithm flow is shown in fig. 3.
In a search area of the image after graying and histogram conversion, an OpenCV hough circle conversion cvhoughcirles is used for searching for a bare metal part of the inner circle of the capacitor, such as a circle corresponding to the radius of the inner circle of the capacitor shown in fig. 4. The principle of the standard hough circle transformation is to firstly perform canny edge detection on an image, then consider which circles each non-0 pixel in the edge image may exist on, and then perform traversal voting, and detect the circle with the number of the non-0 pixels larger than a threshold value.
One of all circles detected through Hough circle transformation in the search area is a capacitor to be detected, and other similar invalid circles which need to be eliminated may exist. The bare metal part of the capacitor should be black after binarization and reverse color processing with proper threshold value, and an invalid circle is determined if more white spots are in the circle. Therefore, all the pixel points in the circle are traversed by using the parameter equation of the circle, the number of the white miscellaneous spots is counted, if the number exceeds the threshold value, the circle is judged to be an invalid circle, and the algorithm flow is shown in fig. 5.
And S4, judging whether the capacitor is installed correctly according to whether the negative pole mark exists at the preset position of the effective circle or not, as shown in figure 2 h.
In step S4, as shown in fig. 6, the positions of the capacitance negative pole marks have been specified in advance, and a total of 8 positions may be set with the capacitance negative pole mark in the direction 5.
And counting the number of black pixel points from the inner ring to the outer ring of the capacitor at intervals of 10 degrees in a plus-minus 45-degree area in the specified negative pole marking direction, if the 10 data meet corresponding criteria, continuously existing negative pole marks exist in the specified direction, so that the capacitor is judged to be installed correctly, and otherwise, the capacitor is judged to be wrong. The number n of the black pixels in the most 10 directions is selected, and the criterion is defined as: at least 3 of the 10 data are greater than 20 and greater than n/2. The algorithm flow is shown in fig. 7.
In the embodiment of the invention, the open source computer vision library OpenCV of Intel corporation is adopted, so that the writing of related codes is optimized, the execution efficiency of the codes is improved, the image processing is carried out on the gray level image, and the data volume needing to be processed is reduced, so that the detection speed is high, and the real-time performance is good. The influence of noise points and invalid circles is overcome in the detection process, and the specific parameter setting can be carried out on different types of capacitors, so that the detection precision is high.
In a further implementation process, in order to make the application range of the detection method of the present invention wide, in an embodiment of the present invention, as shown in fig. 8, before the step S4, the method further includes: and S40, presetting specific detection parameters according to the target capacitance to be detected. In the practical application process of the invention, various circuit boards can be detected after the parameters are adjusted.
The present invention further provides a device for detecting whether the capacitor is installed correctly, as shown in fig. 9, comprising an image acquisition unit 1 for acquiring an image sequence frame of a circuit board with the capacitor mounted thereon by a camera, and an image processing unit 2; as shown in fig. 12, the image processing unit 2 includes:
an image preprocessing module 21 for preprocessing the collected image, including graying, histogram transformation, binarization, expansion erosion processing,
a capacitance positioning module 22 for removing the noise point with the undersize area from the preprocessed image, finding the capacitance through Hough circle transformation, eliminating the invalid circle,
the judging module 23 is used for judging whether the capacitor is installed correctly according to whether the negative pole mark exists at the preset position of the effective circle; wherein,
the image acquisition unit 1, the image preprocessing module 21, the capacitance positioning module 22 and the judgment module 23 are connected in sequence.
In the practical application process of the present invention, the image acquiring unit 1 is a high definition digital camera, and the image processing unit 2 is an internal coding calculation program of a PC. In the embodiment of the present invention, the apparatus corresponds to the method for detecting whether the capacitor is installed correctly in the above embodiments, and the principle and the beneficial effect are the same, which are not described herein again.
In a further implementation process, in order to enable the apparatus to automatically complete the detection of the capacitor installation, in an embodiment of the present invention, as shown in fig. 10 to 13, the apparatus for detecting whether the capacitor installation is correct or not by taking a picture further includes: the circuit board conveying device comprises a production line 3 for conveying circuit boards, an infrared sensor 4 and a baffle 5 which are sequentially arranged along the conveying direction of the production line 3, and a controller unit 6 for controlling the production line 3 and the baffle 5 to perform corresponding releasing and blocking operations according to the induction conditions of capacitance installation and the infrared sensor; the controller unit 6 is in signal connection with the image acquisition unit 1, the production line 3, the baffle 5 and the infrared sensor 4 respectively.
In the embodiment of the present invention, more specifically, the controller unit 6 includes:
a release block control module 61, which is used for controlling the rotation of the production line and the rising of the baffle plate when the capacitor is installed correctly or after the error of the capacitor is installed incorrectly, or used for keeping the production line stopped and the baffle plate falling when the capacitor is installed incorrectly and the error is not eliminated;
the infrared signal processing module 62 is used for controlling the baffle to descend according to the signal of the circuit board to be detected sensed by the infrared sensor;
the PLC serial port module 63 is used for controlling the image acquisition unit to carry out photographing operation according to a signal sent by the PLC serial port; wherein,
the release retardation control module 61 is respectively connected with the judgment module 23, the drive of the production line 3 and the drive signal of the baffle 5; the infrared signal processing module 62 is respectively connected with the infrared sensor 4 and the driving signal of the baffle 5; the PLC serial port module 63 is in signal connection with the image acquisition unit.
In the practical application process of the embodiment of the invention, the production line 3 consists of a transmission belt and a motor, the baffle 5 comprises a blocking plate and a motor for driving the blocking plate to move up and down, and the controller unit 6 is a PLC and an internal control program thereof. As shown in fig. 12, after the circuit board to be detected is placed on the transmission belt of the assembly line 3, the motor of the assembly line 3 drives the circuit board to move downwards in the output direction, when the circuit board passes right below the infrared sensor 4, the infrared sensor 4 sends a signal which is used for sensing the circuit board to be detected to the infrared signal processing module 62 of the controller unit 6, the infrared signal processing module 62 sends an instruction to control the motor of the baffle 5 to descend, the descending height is just enough to block the circuit board to be detected to continue moving, at the moment, after the circuit board to be detected is blocked by the baffle 5, the sensing device on the baffle 5 senses the circuit board to be detected, and send the signal of sensing to PLC serial port module 63, PLC serial port module 63 is with signal conversion control image acquisition unit 1 into the instruction again, and the circuit board that treats that just that is digital high definition camera is treated and is shot, and digital high definition camera should set up directly over this circuit board current position that treats. After the image acquisition unit 1 sequentially processes the acquired image through the image preprocessing module 21, the capacitor positioning module 22 and the judgment module 23, the judgment module 23 judges whether the capacitor on the current circuit board to be detected is correctly installed, a judgment result is sent to the release block control module 61 in a mode of generating an instruction, when the instruction received by the block control module 61 is correct in installation, the instruction is sent to control the motor on the baffle 5 to move, the baffle 5 is lifted, the production line 3 is kept in a rotating state, at the moment, after the baffle 5 is lifted, the production line 3 outputs the circuit board which is correctly detected and installed to the output end, and a worker can directly collect a product; if the instruction received by the block control module 61 is an installation error, the instruction is sent to control the baffle 5 to keep a descending state, and the operation of the production line 3 is stopped, at this time, a worker can take off the error installation circuit board blocked by the baffle 5, then the device is restarted by manual means (which is equivalent to sending an error elimination instruction to the block control module 61), the production line 3 rotates again, the baffle 5 ascends, and the detection process is repeated.
In a further implementation process, in order to enable the device to detect different types of capacitors, in an embodiment of the present invention, as shown in fig. 10 to 12, the device for detecting whether the capacitors are installed correctly by photographing further includes a display unit 7; the image processing unit 2 further comprises a parameter setting module 24 for presetting specific detection parameters according to the target capacitor to be detected; the parameter setting module 24 is in signal connection with the judging module 23 and the display unit 7, respectively.
In the practical application process of the embodiment of the present invention, the display unit 7 is a commonly used display of a home computer, the parameter setting module 24 is an internal coding calculation program of a PC, the parameter setting module 24 is displayed on the display unit 7 in an interface generation manner, and an input frame capable of setting relevant parameters to be detected by a capacitor is provided on the interface, and the parameters include the size of an inner circle, the size of a mark width and a mark direction: the size of the inner circle is set to be 25-50 pixels and is used for selecting a circle with the pixels in the range; the width of the mark is set to be 8 pixels, and the position of the negative electrode of the capacitor is not facilitated when the pixels are too large or too small; the marking direction is as shown in fig. 6, if the preset capacitor cathode mark is at the 5 mark, if the located capacitor cathode is at the 5 mark, the installation is correct, otherwise, the installation is wrong.
In a further implementation process, in order to enable the device to be controlled more intelligently, in an embodiment of the present invention, as shown in fig. 10 to 12, the controller unit 6 further includes a cancellation command generating module 64 for generating whether an error is cancelled on the display unit when the capacitor is mounted in an error; the cancellation instruction generating module 64 is in signal connection with the release block control module 61 and the display unit 7 respectively.
In the embodiment of the present invention, the removal instruction generation module 64 is displayed on the display unit 7 in an interface generation manner.
In the practical application process of the present invention, after the release retardation control module 61 receives the result of the erroneous installation judgment of the judgment module 23, the release retardation control module 61 sends an instruction to control the baffle 5 to keep a descending state, and stops the operation of the production line 3, at this time, a worker can take down the erroneously installed circuit board blocked by the baffle 5, and then sends an error-eliminated instruction on the instruction interface generated by the instruction generation module 64 on the display unit 7, in the practical application process, that is, after clicking an error-eliminated instruction button on the instruction interface generated by the instruction generation module 64 by a mouse, the production line 3 rotates again, the baffle 5 ascends, and the detection process of the next circuit board to be detected is repeated.
In a further implementation process, in order to facilitate manual review of a determination result of the device and subsequent correction and installation of a capacitor on a circuit board which is installed incorrectly, in an embodiment of the present invention, as shown in fig. 10 to 12, the image processing unit 2 further includes an error marking module 25 for marking a place where the capacitor is installed incorrectly and displaying the place on the display unit; the error marking module 25 is in signal connection with the judging module 23 and the display unit 7, respectively.
In the embodiment of the present invention, the error marking module 25 is a PC internal code calculation program. In the practical application process of the present invention, the determining module 23 sends an instruction for the wrong installation of the circuit board to be detected and sends the instruction to the error marking module 25, and the error marking module 25 displays the capacitor mark which is wrongly installed on the image of the circuit board to be detected and is displayed on the display unit 7, wherein the mark may be a red circle. The staff can treat the wrong installation electric capacity of detecting circuit board according to the place that marks and check, in addition, if really is wrong installation, the staff can treat the electric capacity of corresponding department on the detecting circuit board and reinstall according to the place that marks, very big improvement work efficiency.
In a further implementation process, in order to remind a worker in time after detecting that the circuit board is installed incorrectly, in the embodiment of the invention, the device for detecting whether the capacitor is installed correctly or not by photographing further comprises an alarm unit; wherein, the alarm unit is in signal connection with the judgment module 23.
In the embodiment of the invention, the alarm unit comprises an alarm module and an alarm, and the alarm can be an LED lamp, a buzzer alarm or an alarm sound. The alarm module is respectively connected with the judgment module 23 and the alarm. After the judging module 23 sends out the instruction of the circuit board to be detected for the wrong installation, the alarm module controls the alarm to work according to the instruction.
In a further implementation process, in order to fix all relevant components in the device together and ensure the overall integrity and practicability of the device, in an embodiment of the present invention, as shown in fig. 10 to 11, the device for detecting whether the capacitor is installed correctly by taking a picture further includes a clamp 9; the assembly line 3 is arranged in a clamp 9, and the infrared sensor 4, the baffle 5 and the baffle 5 are driven to be fixed on the clamp 9.
In the embodiment of the present invention, the jig 9 may actually be two boards standing in parallel, the line 3 is placed between the two boards, and then the motor drive of the infrared sensor 4 and the baffle 5 is installed between the two boards and on one board, while the picture taking unit 1 is placed on the two boards. In practical application, the clamp 9 may also be a shell with a top, two opposite sides open and a hollow interior. At this time, the clamp 9, the image processing unit 2 and the image acquiring unit 1 become three relatively independent devices, which is convenient for carrying and market promotion.
Compared with the defects and shortcomings of the prior art, the invention has the following beneficial effects:
(1) the detection method has wide application range, can detect various circuit boards after adjusting the parameters, and has good real-time performance and high detection precision.
(2) The detection device has the advantages of high automation degree, simple operation and quick and accurate detection process, reduces the dependence degree of production on manpower, and is favorable for reducing the production cost and improving the production efficiency.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. A method for detecting whether a capacitor is installed correctly or not is characterized by comprising the following steps:
acquiring an image of the circuit board with the capacitor assembled by a camera;
preprocessing the acquired image, wherein the preprocessing comprises graying, histogram transformation, binaryzation and expansion corrosion processing of the image;
removing noise points with undersized area from the preprocessed image, finding out capacitance through Hough circle transformation, and removing invalid circles;
and judging whether the capacitor is installed correctly or not according to whether the negative pole mark exists at the preset position of the effective circle.
2. The method for detecting the correctness of installation of a capacitor as claimed in claim 1, wherein before the step of determining whether the installation of the capacitor is correct or not according to the existence of the negative pole mark at the preset position of the effective circle, the method further comprises the steps of: and presetting specific detection parameters according to the target capacitor to be detected.
3. A device for detecting whether a capacitor is installed correctly or not by photographing is characterized by comprising an image acquisition unit and an image processing unit, wherein the image acquisition unit is used for acquiring an image of a circuit board provided with the capacitor through a camera; the image processing unit includes:
the image preprocessing module is used for preprocessing the acquired image, and is used for carrying out graying, histogram transformation, binaryzation and expansion corrosion processing on the image;
the capacitance positioning module is used for removing noise points with undersize areas from the preprocessed images and finding out capacitance through Hough circle transformation to remove invalid circles;
the judging module is used for judging whether the capacitor is installed correctly or not according to whether the negative pole mark exists at the preset position of the effective circle;
the image acquisition unit, the image preprocessing module, the capacitance positioning module and the judgment module are sequentially connected.
4. The apparatus of claim 3, further comprising: the device comprises a production line for conveying a circuit board, an infrared sensor and a baffle which are sequentially arranged along the conveying direction of the production line, and a controller unit for controlling the production line and the baffle to perform corresponding releasing and blocking operations according to the conditions of capacitor installation and infrared sensor induction; the controller unit is in signal connection with the image acquisition unit, the assembly line, the baffle and the infrared sensor respectively.
5. The apparatus of claim 4, wherein the means for detecting whether the capacitor is installed correctly by photographing further comprises a display unit;
the image processing unit also comprises a parameter setting module for presetting specific detection parameters according to the target capacitor to be detected; the parameter setting module is respectively in signal connection with the judging module and the display unit.
6. The apparatus of claim 5, wherein the controller unit comprises:
the release retardation control module is used for controlling the rotation of the assembly line and the rising of the baffle plate when the capacitor is installed correctly or after the error of the capacitor is installed incorrectly or keeping the assembly line stopped and the baffle plate falling when the capacitor is installed incorrectly and the error is not eliminated;
the infrared signal processing module is used for controlling the baffle to descend according to the signal of the circuit board to be detected, which is sensed by the infrared sensor;
the PLC serial port module is used for controlling the image acquisition unit to carry out photographing operation according to a signal sent by the PLC serial port; wherein,
the release retardation control module is respectively connected with the judgment module, the drive of the production line and the drive signal of the baffle; the infrared signal processing module is respectively connected with the infrared sensor and the driving signal of the baffle; and the PLC serial port module is in signal connection with the image acquisition unit.
7. The apparatus as set forth in claim 6, wherein the controller unit further comprises a removal instruction generating module for generating whether the error is removed or not on the display unit when the capacitor is mounted in error; the elimination instruction generation module is respectively in signal connection with the release block control module and the display unit.
8. The apparatus of claim 7, wherein the image processing unit further comprises an error marking module for marking a place where the capacitor is mounted incorrectly and displaying the place on the display unit; the error marking module is respectively in signal connection with the judging module and the display unit.
9. The apparatus of claim 8, further comprising an alarm unit in signal communication with the determination module.
10. The apparatus of claim 9, further comprising a clamp; the assembly line is arranged in the fixture, and the infrared sensor, the baffle and the baffle are driven to be fixed on the fixture.
CN201610133289.3A 2016-03-09 2016-03-09 Method and device for detecting whether capacitor is correctly mounted through photographing Pending CN105631893A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610133289.3A CN105631893A (en) 2016-03-09 2016-03-09 Method and device for detecting whether capacitor is correctly mounted through photographing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610133289.3A CN105631893A (en) 2016-03-09 2016-03-09 Method and device for detecting whether capacitor is correctly mounted through photographing

Publications (1)

Publication Number Publication Date
CN105631893A true CN105631893A (en) 2016-06-01

Family

ID=56046779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610133289.3A Pending CN105631893A (en) 2016-03-09 2016-03-09 Method and device for detecting whether capacitor is correctly mounted through photographing

Country Status (1)

Country Link
CN (1) CN105631893A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108526834A (en) * 2018-03-14 2018-09-14 厦门攸信信息技术有限公司 Assembling process intelligent monitor system, assembly system and its monitoring method
CN108898584A (en) * 2018-06-12 2018-11-27 西安微电子技术研究所 A kind of full-automatic veneering capacitor welding equipment polarity discriminating method based on image analysis
CN109520706A (en) * 2018-11-21 2019-03-26 云南师范大学 Automobile fuse box assembly detection system, image-recognizing method and screw hole positioning mode
CN109632798A (en) * 2019-01-17 2019-04-16 鲁班嫡系机器人(深圳)有限公司 Device for detecting polarity and its method based on image procossing
CN109870469A (en) * 2017-12-05 2019-06-11 英业达科技有限公司 The method and system of printed circuit board of the detection with electrolytic capacitor
CN112241139A (en) * 2020-08-14 2021-01-19 苏州浪潮智能科技有限公司 Method and device for identifying installation direction of server fan
CN112269228A (en) * 2020-10-28 2021-01-26 惠州皓赛技术有限公司 Vision positioning optical adapter correction method
CN112378908A (en) * 2020-11-09 2021-02-19 日立楼宇技术(广州)有限公司 Capacitor polarity installation detection device and detection method
CN113808067A (en) * 2020-06-11 2021-12-17 广东美的白色家电技术创新中心有限公司 Circuit board detection method, visual detection equipment and device with storage function
CN114913140A (en) * 2022-04-29 2022-08-16 合肥工业大学 Image processing method for hole shaft assembly

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5716481A (en) * 1994-10-31 1998-02-10 Tdk Corporation Manufacturing method and manufacturing apparatus for ceramic electronic components
US20080025595A1 (en) * 2006-07-27 2008-01-31 Asustek Computer Inc. Method for automatically inspecting polar directions of polar element
CN101118263A (en) * 2006-08-04 2008-02-06 华硕电脑股份有限公司 Polar direction automatic detection method of polar element
CN103675588A (en) * 2013-11-20 2014-03-26 中国矿业大学 Printed circuit element polarity machine vision detection method and device
CN203917189U (en) * 2014-05-16 2014-11-05 南京森林警察学院 The cannot-harm-detection device of a kind of inductance outward appearance
CN104537650A (en) * 2014-12-16 2015-04-22 广州视源电子科技股份有限公司 Polarity direction determination method and device for aluminum electrolytic capacitor
CN205486309U (en) * 2016-03-09 2016-08-17 中国矿业大学 Through whether correct device of test capacitor installation of shooing

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5716481A (en) * 1994-10-31 1998-02-10 Tdk Corporation Manufacturing method and manufacturing apparatus for ceramic electronic components
US20080025595A1 (en) * 2006-07-27 2008-01-31 Asustek Computer Inc. Method for automatically inspecting polar directions of polar element
CN101118263A (en) * 2006-08-04 2008-02-06 华硕电脑股份有限公司 Polar direction automatic detection method of polar element
CN103675588A (en) * 2013-11-20 2014-03-26 中国矿业大学 Printed circuit element polarity machine vision detection method and device
CN203917189U (en) * 2014-05-16 2014-11-05 南京森林警察学院 The cannot-harm-detection device of a kind of inductance outward appearance
CN104537650A (en) * 2014-12-16 2015-04-22 广州视源电子科技股份有限公司 Polarity direction determination method and device for aluminum electrolytic capacitor
CN205486309U (en) * 2016-03-09 2016-08-17 中国矿业大学 Through whether correct device of test capacitor installation of shooing

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109870469A (en) * 2017-12-05 2019-06-11 英业达科技有限公司 The method and system of printed circuit board of the detection with electrolytic capacitor
CN108526834A (en) * 2018-03-14 2018-09-14 厦门攸信信息技术有限公司 Assembling process intelligent monitor system, assembly system and its monitoring method
CN108898584B (en) * 2018-06-12 2020-11-20 西安微电子技术研究所 Image analysis-based full-automatic veneered capacitor welding polarity discrimination method
CN108898584A (en) * 2018-06-12 2018-11-27 西安微电子技术研究所 A kind of full-automatic veneering capacitor welding equipment polarity discriminating method based on image analysis
CN109520706A (en) * 2018-11-21 2019-03-26 云南师范大学 Automobile fuse box assembly detection system, image-recognizing method and screw hole positioning mode
CN109520706B (en) * 2018-11-21 2020-10-09 云南师范大学 Screw hole coordinate extraction method of automobile fuse box
CN109632798A (en) * 2019-01-17 2019-04-16 鲁班嫡系机器人(深圳)有限公司 Device for detecting polarity and its method based on image procossing
CN113808067A (en) * 2020-06-11 2021-12-17 广东美的白色家电技术创新中心有限公司 Circuit board detection method, visual detection equipment and device with storage function
CN112241139A (en) * 2020-08-14 2021-01-19 苏州浪潮智能科技有限公司 Method and device for identifying installation direction of server fan
CN112241139B (en) * 2020-08-14 2022-02-18 苏州浪潮智能科技有限公司 Method and device for identifying installation direction of server fan
CN112269228A (en) * 2020-10-28 2021-01-26 惠州皓赛技术有限公司 Vision positioning optical adapter correction method
CN112378908A (en) * 2020-11-09 2021-02-19 日立楼宇技术(广州)有限公司 Capacitor polarity installation detection device and detection method
CN114913140A (en) * 2022-04-29 2022-08-16 合肥工业大学 Image processing method for hole shaft assembly

Similar Documents

Publication Publication Date Title
CN105631893A (en) Method and device for detecting whether capacitor is correctly mounted through photographing
CN205486309U (en) Through whether correct device of test capacitor installation of shooing
WO2021179679A1 (en) Automobile dashboard testing system and testing method based on machine vision
CN109969736B (en) Intelligent detection method for deviation fault of large carrying belt
CN108765378B (en) Machine vision detection method for workpiece contour flash bulge under guidance of G code
CN107154039B (en) Rubber tube online defect detection method
CN103464383A (en) Industrial robot sorting system and method
CN108652678B (en) Method and device for automatically tracking urine
CN113146172B (en) Multi-vision-based detection and assembly system and method
CN104506857A (en) Camera position deviation detection method and device
JPH0672770B2 (en) Robot object recognition device
CN203508417U (en) Sorting system of industrial robot
CN107101598B (en) Automatic detection method and device for concentricity quality of piezoelectric ceramic silver sheet
CN206223683U (en) A kind of tabular workpiece with hole surface defect detection apparatus
CN106599890B (en) digital instrument recognition algorithm for substation inspection robot
CN109839384B (en) Visual detector and detection method for detecting defects of micro vibration motor
CN105690393A (en) Four-axle parallel robot sorting system based on machine vision and sorting method thereof
CN112295949A (en) Visual intelligent sorting method and system based on deep neural network
CN109389597B (en) Circuit board defect detection system and method on production line
CN112718552A (en) Automatic quality defect inspection device for LED circuit board and working method thereof
CN115861217A (en) System and method for detecting defects of circuit board of backlight plate based on vision
CN113822810A (en) Method for positioning workpiece in three-dimensional space based on machine vision
CN105740791A (en) Vision-based target system for multi-joint position identification of moving object
CN114863571A (en) Collaborative robot gesture recognition system based on computer vision
CN110969357A (en) Visual detection method for holes of aluminum alloy machined part

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160601

WD01 Invention patent application deemed withdrawn after publication