[go: up one dir, main page]

CN112858312B - Pen cap silicon bead installation visual detection device and method - Google Patents

Pen cap silicon bead installation visual detection device and method Download PDF

Info

Publication number
CN112858312B
CN112858312B CN202110076671.6A CN202110076671A CN112858312B CN 112858312 B CN112858312 B CN 112858312B CN 202110076671 A CN202110076671 A CN 202110076671A CN 112858312 B CN112858312 B CN 112858312B
Authority
CN
China
Prior art keywords
pen cap
image
camera
light source
installation
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.)
Active
Application number
CN202110076671.6A
Other languages
Chinese (zh)
Other versions
CN112858312A (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.)
Shanghai University of Engineering Science
Original Assignee
Shanghai University of Engineering Science
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 Shanghai University of Engineering Science filed Critical Shanghai University of Engineering Science
Priority to CN202110076671.6A priority Critical patent/CN112858312B/en
Publication of CN112858312A publication Critical patent/CN112858312A/en
Application granted granted Critical
Publication of CN112858312B publication Critical patent/CN112858312B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8806Specially adapted optical and illumination features
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8806Specially adapted optical and illumination features
    • G01N2021/8841Illumination and detection on two sides of object
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • G01N2021/8887Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges based on image processing techniques
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P70/00Climate change mitigation technologies in the production process for final industrial or consumer products
    • Y02P70/50Manufacturing or production processes characterised by the final manufactured product

Landscapes

  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • Pathology (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Immunology (AREA)
  • Chemical & Material Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Analytical Chemistry (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Signal Processing (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Analysis (AREA)

Abstract

本发明涉及一种笔帽硅珠安装视觉检测装置及方法,装置包括摄像头、上位机、用于安装摄像头的固定支架,以及安装固定待测笔帽的工作台,工作台上设有环形光源,该环形光源位于工作台上的笔帽安装位处,摄像头与上位机通过传输线连接,上位机被配置为执行以下步骤:当环形光源点亮时,接收摄像头采集的待测笔帽的轴向图像;对采集的图像依次进行灰度和二值处理;计算笔帽硅珠区域的面积,若小于阈值,则输出异常值。与现有技术相比,本发明通过环形光源从笔帽端部照亮笔帽,然后从笔帽开口处采集笔帽的轴向图像,依次经过灰度和二值处理,通过硅珠部分的面积实现硅珠安装角度是否正确的视觉检测,大大提高了硅珠的检测效率。

Figure 202110076671

The invention relates to a visual detection device and method for installing a silicon bead on a pen cap. The device comprises a camera, a host computer, a fixing bracket for installing the camera, and a workbench for installing and fixing a pen cap to be tested. The light source is located at the pen cap installation position on the worktable, the camera is connected to the upper computer through a transmission line, and the upper computer is configured to perform the following steps: when the ring light source is lit, receive the axial image of the pen cap to be tested collected by the camera; The image is processed by grayscale and binary value in turn; the area of the silicon bead area of the pen cap is calculated, and if it is less than the threshold, the abnormal value is output. Compared with the prior art, the present invention illuminates the pen cap from the end of the pen cap through a ring light source, then collects the axial image of the pen cap from the opening of the pen cap, and performs grayscale and binary processing in turn to realize the silicon bead by the area of the silicon bead part. Visual detection of whether the installation angle is correct greatly improves the detection efficiency of silicon beads.

Figure 202110076671

Description

一种笔帽硅珠安装视觉检测装置及方法A visual detection device and method for the installation of silicon beads in a pen cap

技术领域technical field

本发明涉及文具制造和检测领域,尤其是涉及一种笔帽硅珠安装视觉检测装置及方法。The invention relates to the field of stationery manufacture and detection, in particular to a visual detection device and method for the installation of silicon beads on a pen cap.

背景技术Background technique

在中性笔生产中,笔帽硅珠安装是其中必要工序之一,笔帽硅珠是保护笔头的重要零件。笔帽硅珠安装倾斜,后续使用中硅珠极易脱落,将会使脆弱的笔头失去保护,受到撞击就会碰伤,严重影响中性笔的书写寿命。In the production of gel pens, the installation of the cap silicon bead is one of the necessary processes, and the cap silicon bead is an important part to protect the pen head. The silicon beads of the pen cap are installed at an inclination, and the silicon beads are very easy to fall off during subsequent use, which will make the fragile pen tip lose its protection, and will be bruised by impact, which will seriously affect the writing life of the gel pen.

目前,在中性笔笔帽硅珠安装过程中,一般通过人工检测的方式对笔帽硅珠安装进行检测,从而筛选出不良品。但人工筛选的方式工作量大、工作效率低且准确度低,检测速度难以达不到生产要求。而且,现有的检测方式还存在判断合格标准模糊,由于观测角度、清晰度导致的检测不准确以及人为不可控因素导致的精确度低、效率低等问题。At present, in the process of installing the silicone beads of the gel cap, the installation of the silicone beads of the pen cap is generally detected by manual inspection, so as to screen out the defective products. However, the manual screening method has large workload, low work efficiency and low accuracy, and the detection speed is difficult to meet the production requirements. Moreover, the existing detection methods also have problems such as ambiguous criteria for judging eligibility, inaccurate detection due to observation angle and clarity, and low accuracy and efficiency caused by uncontrollable human factors.

发明内容SUMMARY OF THE INVENTION

本发明的目的就是为了提供一种笔帽硅珠安装视觉检测装置及方法,通过环形光源从笔帽端部照亮笔帽,然后从笔帽开口处采集笔帽的轴向图像,依次经过灰度和二值处理,通过硅珠部分的面积实现硅珠安装角度是否正确的视觉检测,大大提高了硅珠的检测效率。The purpose of the present invention is to provide a visual detection device and method for the installation of silicon beads in a pen cap, which illuminates the pen cap from the end of the pen cap through a ring light source, and then collects the axial image of the pen cap from the opening of the pen cap, and undergoes grayscale and binary processing in turn. , The visual inspection of whether the installation angle of the silicon beads is correct is realized through the area of the silicon bead part, which greatly improves the detection efficiency of the silicon beads.

本发明的目的可以通过以下技术方案来实现:The object of the present invention can be realized through the following technical solutions:

一种笔帽硅珠安装视觉检测装置,包括摄像头、上位机、用于安装摄像头的固定支架,以及安装固定待测笔帽的工作台,所述工作台上设有环形光源,该环形光源位于工作台上的笔帽安装位处,所述摄像头与上位机通过传输线连接,所述上位机被配置为执行以下步骤:A pen cap silicon bead installation visual inspection device, comprising a camera, a host computer, a fixing bracket for installing the camera, and a worktable for installing and fixing the pen cap to be tested, the worktable is provided with a ring light source, and the ring light source is located on the worktable. At the installation position of the pen cap on the upper computer, the camera is connected to the upper computer through a transmission line, and the upper computer is configured to perform the following steps:

当环形光源点亮时,接收摄像头采集的待测笔帽的轴向图像,其中,所述图像从笔帽开口方向拍摄得到;When the ring light source is lit, an axial image of the pen cap to be tested collected by the camera is received, wherein the image is captured from the direction of the opening of the pen cap;

对采集的图像依次进行灰度处理和二值化处理;Perform grayscale processing and binarization processing on the collected images in turn;

基于二值化处理后的图像,计算笔帽硅珠区域的面积,若小于阈值,则输出异常值。Based on the binarized image, the area of the silicon bead region of the pen cap is calculated, and if it is less than the threshold, an abnormal value is output.

所述阈值具体为:The threshold is specifically:

Figure BDA0002907788080000021
Figure BDA0002907788080000021

其中:ST为阈值,

Figure BDA0002907788080000022
为所有硅珠安装正常的情况下的笔帽硅珠区域的面积的平均值,α为比例系数,取0.9-1。Where: ST is the threshold,
Figure BDA0002907788080000022
It is the average value of the area of the silicon bead area of the pen cap under normal conditions for all silicon beads, and α is the scale factor, which is 0.9-1.

所述α为0.95。The α is 0.95.

所述轴向图像含有所有笔帽硅珠的区域。The axial image contains all the regions of the cap silicon beads.

所述工作台为环形可旋转工作台,所述环形可旋转工作台上设有多个笔帽安装位,各笔帽安装位处均设有环形光源。The worktable is an annular rotatable worktable, and a plurality of pen cap installation positions are arranged on the annular rotatable worktable, and each pen cap installation position is provided with an annular light source.

所述上位机为PC机。The upper computer is a PC.

一种笔帽硅珠安装自动检测方法,包括:An automatic detection method for the installation of silicon beads in a pen cap, comprising:

当环形光源点亮并从待测笔帽闭合端部轴向照射待测笔帽时,接收摄像头采集的待测笔帽的轴向图像,其中,所述图像从笔帽开口方向拍摄得到;When the ring light source is lit and axially illuminates the cap to be tested from the closed end of the cap to be tested, receiving an axial image of the cap to be tested collected by the camera, wherein the image is captured from the direction of the opening of the cap;

对采集的图像依次进行灰度处理和二值化处理;Perform grayscale processing and binarization processing on the collected images in turn;

基于二值化处理后的图像,计算笔帽硅珠区域的面积,若小于阈值,则输出异常值。Based on the binarized image, the area of the silicon bead region of the pen cap is calculated, and if it is less than the threshold, an abnormal value is output.

与现有技术相比,本发明具有以下有益效果:Compared with the prior art, the present invention has the following beneficial effects:

1)通过环形光源从笔帽端部照亮笔帽,然后从笔帽开口处采集笔帽的轴向图像,依次经过灰度和二值处理,通过硅珠部分的面积实现硅珠安装角度是否正确的视觉检测,大大提高了硅珠的检测效率。1) The pen cap is illuminated from the end of the pen cap by a ring light source, and then the axial image of the pen cap is collected from the opening of the pen cap. After grayscale and binary processing in turn, the area of the silicon bead part is used to realize the visual inspection of whether the installation angle of the silicon bead is correct. , greatly improving the detection efficiency of silica beads.

2)阈值是动态生成的,可以实现自我学习,提高检测精度。2) The threshold is dynamically generated, which can realize self-learning and improve detection accuracy.

3)裁剪一部分区域进行面积计算,减小计算量,降低性能要求3) Cut a part of the area for area calculation, reduce the amount of calculation and reduce performance requirements

4)采用环形可旋转工作台,提高了检测效率。4) The annular rotatable worktable is adopted to improve the detection efficiency.

附图说明Description of drawings

图1为本发明实施例的结构示意图;1 is a schematic structural diagram of an embodiment of the present invention;

图2为实施例中图像灰度处理效果图;Fig. 2 is an image grayscale processing effect diagram in the embodiment;

图3为实施例中图像二值化处理效果图;Fig. 3 is the image binarization processing effect diagram in the embodiment;

图4为实施例中实际采集图;Fig. 4 is the actual collection diagram in the embodiment;

其中:1、固定支架,2、待测笔帽,3、环形光源,4、环形可旋转工作台,5、摄像头,6、上位机。Among them: 1. Fixed bracket, 2. Pen cap to be tested, 3. Ring light source, 4. Ring-shaped rotatable worktable, 5. Camera, 6. Host computer.

具体实施方式Detailed ways

下面结合附图和具体实施例对本发明进行详细说明。本实施例以本发明技术方案为前提进行实施,给出了详细的实施方式和具体的操作过程,但本发明的保护范围不限于下述的实施例。The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. This embodiment is implemented on the premise of the technical solution of the present invention, and provides a detailed implementation manner and a specific operation process, but the protection scope of the present invention is not limited to the following embodiments.

一种笔帽硅珠安装视觉检测装置,如图1所示,包括摄像头5、上位机6、用于安装摄像头5的固定支架1,以及安装固定待测笔帽的工作台,工作台上设有环形光源3,该环形光源3位于工作台上的笔帽安装位处,摄像头5与上位机6通过传输线连接,如图2~图4所示,上位机被配置为执行以下步骤:A pen cap silicon bead installation visual detection device, as shown in Figure 1, includes a camera 5, a host computer 6, a fixing bracket 1 for installing the camera 5, and a workbench for installing and fixing the pen cap to be tested, and a ring-shaped ring is arranged on the workbench. Light source 3, the ring light source 3 is located at the pen cap installation position on the worktable, and the camera 5 is connected to the host computer 6 through a transmission line. As shown in Figures 2 to 4, the host computer is configured to perform the following steps:

当环形光源3点亮时,接收摄像头5采集的待测笔帽2的轴向图像,其中,图像从笔帽开口方向拍摄得到;When the ring light source 3 is lit, the axial image of the pen cap 2 to be tested collected by the camera 5 is received, wherein the image is captured from the opening direction of the pen cap;

对采集的图像依次进行灰度处理和二值化处理,二值化后,硅珠部分为黑色,其余部分为白色;Perform grayscale processing and binarization processing on the collected images in turn. After binarization, the silicon bead part is black and the rest is white;

基于二值化处理后的图像,计算笔帽硅珠区域的面积,若小于阈值,则输出异常值。Based on the binarized image, the area of the silicon bead region of the pen cap is calculated, and if it is less than the threshold, an abnormal value is output.

当硅珠安装倾斜时,其在轴截面上的投影面积会缩小,因此,本申请通过环形光源从笔帽端部照亮笔帽,然后从笔帽开口处采集笔帽的轴向图像,依次经过灰度和二值处理,通过硅珠部分的面积实现硅珠安装角度是否正确的视觉检测,大大提高了硅珠的检测效率。When the silicon bead is installed obliquely, its projected area on the axial section will be reduced. Therefore, in the present application, the pen cap is illuminated from the end of the pen cap by a ring light source, and then the axial image of the pen cap is collected from the opening of the pen cap, and the grayscale and Binary processing, through the area of the silicon bead part, realizes the visual detection of whether the installation angle of the silicon bead is correct, which greatly improves the detection efficiency of the silicon bead.

在一些实施例中,阈值采用动态生成的方式,可以实现自我学习,提高检测精度,具体的阈值为:In some embodiments, the threshold is dynamically generated, which can realize self-learning and improve detection accuracy. The specific threshold is:

Figure BDA0002907788080000031
Figure BDA0002907788080000031

其中:ST为阈值,

Figure BDA0002907788080000032
为所有硅珠安装正常的情况下的笔帽硅珠区域的面积的平均值,α为比例系数,取0.9-1。Where: ST is the threshold,
Figure BDA0002907788080000032
It is the average value of the area of the silicon bead area of the pen cap under normal conditions for all silicon beads, and α is the scale factor, which is 0.9-1.

例如在某个实施例中,基于方差和标准差确定α为0.95。For example, in one embodiment, α is determined to be 0.95 based on the variance and standard deviation.

环形光源3能均匀产生较强亮度的光向外辐射,在一定的水平范围内光强均匀,在一些实施例中,摄像头5镜头焦距长度为16mm,当然在其他实施例中,也可以大于16mm;上位机内的图像处理部分主要由开源算法OpenCV编写;传输线有常规的数据接口和触发装置接口,数据接口与上位机6相连,触发装置与外部触发信号相连,固定支架1与一般摄像头支架相似。The ring light source 3 can evenly generate light with strong brightness and radiate outward, and the light intensity is uniform within a certain horizontal range. In some embodiments, the focal length of the lens of the camera 5 is 16mm. Of course, in other embodiments, it can also be greater than 16mm. ;The image processing part in the host computer is mainly written by the open source algorithm OpenCV; the transmission line has conventional data interface and trigger device interface, the data interface is connected with the host computer 6, the trigger device is connected with the external trigger signal, and the fixed bracket 1 is similar to the general camera bracket .

图像经过灰度化处理后,图像上的像素点的灰度值在0到255之间。这类图像通常呈现出明显的黑白效果,0代表亮度最低,显示尾黑色,255代表亮度最亮,显示为白色。通过改变光源的高度和角度,理论上可以显示出像素值在这范围内的任意像素点,构成不同灰度程度的图像。采取二值化处理后,笔帽硅珠安装倾斜角度不同,所形成的图像面积也会存在差异,笔帽硅珠安装合格,形成图像面积大于硅珠安装倾斜形成图像面积。将图像进行灰度化处理,将采集到的图像转化为灰度图像,由于均匀辐射环形光源照射,硅珠部分与非硅珠部分存在明显亮度差异,转换为灰度图像后,硅珠部分亮度更低。After the image is grayscaled, the grayscale values of the pixels on the image are between 0 and 255. This type of image usually presents a clear black and white effect, with 0 representing the lowest brightness and a black tail, and 255 representing the brightest and white. By changing the height and angle of the light source, any pixel with a pixel value within this range can theoretically be displayed to form images of different gray levels. After the binarization process is adopted, the area of the image formed by the different inclination angles of the silicon beads on the pen cap will also be different. The image is subjected to grayscale processing, and the collected image is converted into a grayscale image. Due to the uniform radiation ring light source, there is a significant difference in brightness between the silicon bead part and the non-silicon bead part. After converting to a grayscale image, the brightness of the silicon bead part is obvious. lower.

在一些实施例中,感兴趣的区域包含了所有笔帽硅珠的区域,根据硅珠部分和非硅珠部分亮度差异,先选取一只笔帽框住整个硅珠部分,框中还包含少许非硅珠部分,调整框的大小,确保完整采集硅珠图像,可以减小计算量,降低性能要求In some embodiments, the region of interest includes all the silicon beads of the pen cap. According to the difference in brightness between the silicon bead part and the non-silicon bead part, a pen cap is selected to frame the entire silicon bead part, and the frame also includes a little non-silicon bead part. Bead part, adjust the size of the frame to ensure the complete acquisition of the silicon bead image, which can reduce the amount of calculation and performance requirements

在一些实施例中,工作台为环形可旋转工作台4,环形可旋转工作台4上设有多个笔帽安装位,各笔帽安装位处均设有环形光源3。In some embodiments, the worktable is an annular rotatable worktable 4 , and a plurality of pen cap installation positions are provided on the annular rotatable worktable 4 , and each pen cap installation position is provided with an annular light source 3 .

在一些实施例中,上位机6为PC机,实现更容易。In some embodiments, the host computer 6 is a PC, which is easier to implement.

本申请在使用时,步骤如下:When using this application, the steps are as follows:

1)固定摄像头。调整固定支架1夹具的大小将摄像头5垂直固定到支架上,镜头向下,根据笔帽摆放的位置以及笔帽之间的间距,通过上下移动支架夹具调整摄像头的高度以及调整摄像头的焦距,使摄像头能同时拍到笔帽硅珠部分,并清晰地显示在液晶显示器上;1) Fix the camera. Adjust the size of the fixture of the fixing bracket 1, and fix the camera 5 to the bracket vertically, with the lens downward, according to the position of the pen cap and the distance between the pen caps, adjust the height of the camera and adjust the focal length of the camera by moving the bracket fixture up and down, so that the camera The silicon bead part of the pen cap can be photographed at the same time and clearly displayed on the LCD monitor;

2)固定光源。保持摄像头5高度和待测笔帽2的位置不变,用光源照射笔帽尾端,让硅珠部分和非硅珠部分在显示屏上显示的亮度产生差别,使硅珠部分比非硅珠部分亮度更低,调整光源的高度和角度,使差别变得更加明显,此时固定住光源;2) Fixed light source. Keep the height of the camera 5 and the position of the pen cap 2 to be tested unchanged, illuminate the end of the pen cap with a light source, so that the brightness of the silicon bead part and the non-silicon bead part displayed on the display screen is different, so that the silicon bead part is brighter than the non-silicon bead part. Lower, adjust the height and angle of the light source to make the difference more obvious, and fix the light source at this time;

3)将拍摄到的图片传输到上位机6,首先通过灰度图像处理系统将图片进行灰度处理,根据计算出的硅珠部分灰度值与非硅珠部分灰度值,设置阈值,将灰度图像转化为二值化图像(硅珠部分为黑色,其余部分为白色)。根据二值化图像计算黑色硅珠部分面积(以像素点个数来表示面积)。黑色硅珠部分像素点大于96212即为安装合格笔帽。3) Transfer the photographed picture to the host computer 6, firstly, the grayscale processing of the picture is performed by the grayscale image processing system. The grayscale image was converted to a binarized image (the silicon bead part is black and the rest is white). According to the binarized image, the area of the black silicon bead part (the area is represented by the number of pixels) is calculated. The black silicon bead part of the pixels is larger than 96212, that is, the qualified pen cap is installed.

4)将笔帽传输装置的触发信号通过传输线连接到摄像头,当有触发信号传输过来时,代表有新的笔帽样本,同时摄像头拍摄图片,完成一次信号采集,然后传输给工控机内的灰度图像处理系统进行处理,根据样本笔帽设置标准硅珠安装图像面积范围,图像面积大于212像素点会输出逻辑值“1”,否则会输出逻辑值“0”,没有检测到图像会输出“无效”值,如此反复;4) Connect the trigger signal of the pen cap transmission device to the camera through the transmission line. When a trigger signal is transmitted, it means that there is a new pen cap sample. At the same time, the camera takes a picture, completes a signal acquisition, and then transmits it to the grayscale image in the industrial computer. The processing system performs processing and sets the standard silicon bead installation image area range according to the sample pen cap. If the image area is larger than 212 pixels, the logic value "1" will be output, otherwise, the logic value "0" will be output, and the "invalid" value will be output if no image is detected. , so repeatedly;

5)经过处理之后的结果再传输到笔帽传送装置,保留输出逻辑结果为“1”的笔帽,剔除输出逻辑结果为“0”的笔帽。5) The processed result is then transmitted to the pen cap transmission device, the pen caps whose output logic result is "1" are retained, and the pen caps whose output logic result is "0" are rejected.

Claims (9)

1. The utility model provides a pen cap silica bead installation visual detection device, its characterized in that includes camera (5), host computer (6), is used for installing fixed bolster (1) of camera (5) to and the fixed workstation of the pen cap that awaits measuring of installation, be equipped with annular light source (3) on the workstation, this annular light source (3) are located the pen cap installation position department on the workstation, camera (5) pass through transmission line connection with host computer (6), the host computer is configured to carry out following step:
when the annular light source (3) is lightened, receiving an axial image of the pen cap (2) to be detected, which is acquired by a camera (5), wherein the image is shot from the opening direction of the pen cap, and the axial image contains a region of pen cap silica beads;
carrying out gray level processing and binarization processing on the acquired image in sequence;
and calculating the area of the pen cap silica bead region based on the image after the binarization processing, and outputting an abnormal value if the area is smaller than a threshold value.
2. The pen cap silica bead mounting visual inspection device of claim 1, wherein the threshold is specifically:
Figure FDA0003718031500000011
wherein: ST is a threshold value and is used as a threshold value,
Figure FDA0003718031500000012
the average value of the areas of the pen cap silica bead areas under the condition that all silica beads are normally installed is shown, alpha is a proportionality coefficient, and the proportionality coefficient is 0.9-1.
3. The pen-cap silica bead mounted visual inspection device of claim 2, wherein said α is 0.95.
4. The pen cap silicon bead installation visual inspection device according to claim 1, wherein the workbench is an annular rotatable workbench (4), a plurality of pen cap installation positions are arranged on the annular rotatable workbench (4), and an annular light source (3) is arranged at each pen cap installation position.
5. The pen cap silica bead mounting visual inspection device according to claim 1, wherein the upper computer (6) is a PC.
6. An automatic detection method for pen cap silicon bead installation is characterized by comprising the following steps:
when the annular light source (3) is lightened and the pen cap (2) to be detected is axially irradiated from the closed end part of the pen cap (2) to be detected, an axial image of the pen cap (2) to be detected, acquired by a camera (5), is received, wherein the image is obtained by shooting from the opening direction of the pen cap, and the axial image contains a region of pen cap silica beads;
carrying out gray level processing and binarization processing on the acquired image in sequence;
and calculating the area of the pen cap silica bead region based on the image after the binarization processing, and outputting an abnormal value if the area is smaller than a threshold value.
7. The automatic detection method for installation of the pen cap silicon bead as claimed in claim 6, wherein the threshold specifically is:
Figure FDA0003718031500000021
wherein: ST is a threshold value and is a threshold value,
Figure FDA0003718031500000022
the average value of the areas of the pen cap silica bead areas under the condition that all silica beads are normally installed is shown, alpha is a proportionality coefficient, and the proportionality coefficient is 0.9-1.
8. The automatic detection method for pen cap silica bead installation according to claim 7, wherein α is 0.95.
9. The method according to claim 6, wherein the axial image contains all areas of the pen cap silica beads.
CN202110076671.6A 2021-01-20 2021-01-20 Pen cap silicon bead installation visual detection device and method Active CN112858312B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110076671.6A CN112858312B (en) 2021-01-20 2021-01-20 Pen cap silicon bead installation visual detection device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110076671.6A CN112858312B (en) 2021-01-20 2021-01-20 Pen cap silicon bead installation visual detection device and method

Publications (2)

Publication Number Publication Date
CN112858312A CN112858312A (en) 2021-05-28
CN112858312B true CN112858312B (en) 2022-09-02

Family

ID=76007786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110076671.6A Active CN112858312B (en) 2021-01-20 2021-01-20 Pen cap silicon bead installation visual detection device and method

Country Status (1)

Country Link
CN (1) CN112858312B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113978159A (en) * 2021-12-01 2022-01-28 上海晨光文具股份有限公司 Plug-in type ball pen assembly production line

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104132943A (en) * 2013-05-02 2014-11-05 上海工程技术大学 Method and device of vehicle-mounted high-speed dynamic railway surface defect video detection
CN211292638U (en) * 2019-08-07 2020-08-18 上海晨光文具股份有限公司 Quick automatic checkout device of pen tube printing

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3293257B2 (en) * 1993-08-30 2002-06-17 株式会社デンソー Surface defect inspection equipment
JP2009171561A (en) * 2007-12-21 2009-07-30 Canon Inc Image processing apparatus and image processing method
CN106093051A (en) * 2016-06-06 2016-11-09 佛山市智人机器人有限公司 Paper roll tangent plane burr detection method based on machine vision and device
CN109146841B (en) * 2018-07-02 2021-07-02 广州市讯思视控科技有限公司 Visual detection method and system for filling defects of dry battery coated paper
CN109225941B (en) * 2018-10-10 2021-03-19 常熟理工学院 Internal thread tapping condition automatic detection and sorting system and method
CN109461156B (en) * 2018-12-20 2021-07-16 浙江大学台州研究院 Vision-based thread sealing plug assembly inspection method
CN109991215B (en) * 2019-03-08 2021-09-24 深圳市象形字科技股份有限公司 Abnormal condition early warning method for urine detector
CN111145165A (en) * 2019-12-30 2020-05-12 北京工业大学 Rubber seal ring surface defect detection method based on machine vision
CN111141746B (en) * 2020-02-10 2022-07-15 上海工程技术大学 A method and system for automatic detection of the length of pen refill tail oil

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104132943A (en) * 2013-05-02 2014-11-05 上海工程技术大学 Method and device of vehicle-mounted high-speed dynamic railway surface defect video detection
CN211292638U (en) * 2019-08-07 2020-08-18 上海晨光文具股份有限公司 Quick automatic checkout device of pen tube printing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于机器视觉汽车扶手箱卡簧装配质量检测系统的研究;郝存明等;《河北省科学院学报》;20170315(第01期);全文 *

Also Published As

Publication number Publication date
CN112858312A (en) 2021-05-28

Similar Documents

Publication Publication Date Title
CN204359710U (en) A kind of glass surface defects pick-up unit
CN103499303B (en) A kind of wool fineness method for automatic measurement
CN107966454A (en) A kind of end plug defect detecting device and detection method based on FPGA
CN107664644B (en) A device and method for automatic detection of object appearance based on machine vision
CN108037142B (en) Mask optical defect detection method based on image gray value
CN101276218A (en) Machine vision system for high real-time image acquisition and processing
CN102175700A (en) Method for detecting welding seam segmentation and defects of digital X-ray images
CN103698337A (en) Method for automatically detecting adhesion defect of label of flat wine bottle
CN112129783B (en) Transparent medicine bottle bottom defect detection method based on deep learning
CN102692216A (en) Real-time optical fiber winding defect detection method based on machine vision technology
CN105181713A (en) Detection device used for optical fiber image inverter surface defects
CN103245670A (en) Defect detection device and defect detection method of optical element
CN111551350A (en) A method for detecting scratches on optical lens surface based on U_Net network
CN111157532A (en) Device and method for visual detection of scratches on mobile phone casings
CN108827979A (en) Module lens appearance detection method
CN110567968A (en) Method and device for component defect detection
WO2020243992A1 (en) Groove defect detection method and device
CN112819844B (en) Image edge detection method and device
CN108615233B (en) String image processing method and string snapping system based on linear array camera
CN107833223B (en) Fruit hyperspectral image segmentation method based on spectral information
CN112858312B (en) Pen cap silicon bead installation visual detection device and method
US12480886B2 (en) Curved substrate bubble detection method and detection system
CN106709529B (en) A visual inspection method for color difference classification of photovoltaic cells
US11300527B1 (en) Method for detecting lens cleanliness using spectral differential flat field correction
CN114463285A (en) A multi-level network fusion round steel surface defect detection method and image acquisition device

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