[go: up one dir, main page]

CN111539951A - A kind of visual detection method of ceramic grinding wheel head profile size - Google Patents

A kind of visual detection method of ceramic grinding wheel head profile size Download PDF

Info

Publication number
CN111539951A
CN111539951A CN202010404173.5A CN202010404173A CN111539951A CN 111539951 A CN111539951 A CN 111539951A CN 202010404173 A CN202010404173 A CN 202010404173A CN 111539951 A CN111539951 A CN 111539951A
Authority
CN
China
Prior art keywords
image
grinding wheel
wheel head
size
outline
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
CN202010404173.5A
Other languages
Chinese (zh)
Other versions
CN111539951B (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.)
Xian Jiaotong University
Original Assignee
Xian Jiaotong University
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 Xian Jiaotong University filed Critical Xian Jiaotong University
Priority to CN202010404173.5A priority Critical patent/CN111539951B/en
Publication of CN111539951A publication Critical patent/CN111539951A/en
Application granted granted Critical
Publication of CN111539951B publication Critical patent/CN111539951B/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
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/24Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • 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/10024Color image
    • 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/30164Workpiece; Machine component

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Geometry (AREA)
  • Constituent Portions Of Griding Lathes, Driving, Sensing And Control (AREA)

Abstract

The invention discloses a visual detection method for the outline size of a ceramic grinding wheel head, which comprises the following steps: step 1, obtaining an image; step 2, processing the image; step 3, extracting a target area; step 4, calculating the outline size and evaluating the result; shooting a clear grinding wheel head image by using a backlight source, then carrying out image processing such as graying, filtering, binarization and the like to obtain a grinding wheel head outline image, obtaining an outline straight line of a grinding wheel rod according to a Hough straight line, rotating the image to a correct position according to the straight line, finally extracting a target detection window, and calculating the outline size of the grinding wheel head to carry out result evaluation; compared with the traditional detection method, the visual detection method provided by the invention has higher efficiency and accuracy, and can utilize the grinding wheel head contour pixels to fit the contour line and analyze the local size error of the grinding wheel head, thereby providing convenience for production and manufacture.

Description

一种陶瓷砂轮头轮廓尺寸视觉检测方法A kind of visual detection method of ceramic grinding wheel head profile size

【技术领域】【Technical field】

本发明属于工业加工零件质量自动化检测技术领域,涉及一种陶瓷砂轮头轮廓尺寸视觉检测方法。The invention belongs to the technical field of automatic quality inspection of industrial processing parts, and relates to a visual inspection method for the outline size of a ceramic grinding wheel head.

【背景技术】【Background technique】

在工业加工零件质量检测中,检测精准度、检测效率以及检测成本是对检测方法的优劣的基本评价,由于物联网的快速发展,个性化定制产品的增多,对检测方法及设备又有了新的要求,如何提高检测方法及设备的实时性及适用性成为了新的评价目标。In the quality inspection of industrial processing parts, inspection accuracy, inspection efficiency, and inspection cost are the basic evaluations of the pros and cons of inspection methods. Due to the rapid development of the Internet of Things and the increase of personalized customized products, there are new requirements for inspection methods and equipment. With new requirements, how to improve the real-time and applicability of detection methods and equipment has become a new evaluation target.

自动化的视觉检测系统则可以在表面质量检测中很好的解决适应以上所述的评价目标,通过对获取图像的局部目标检测区域的提取,并通过图像灰度化、滤波、腐蚀、膨胀轮廓寻找等图像增强处理方法,精准的获取目标区域的视觉信息,通过相机标定及匹配的计算方法则可以完成加工零件的质量检测。The automated visual inspection system can well solve the above-mentioned evaluation targets in the surface quality inspection. By extracting the local target detection area of the acquired image, and searching through image grayscale, filtering, erosion, and expansion contours The visual information of the target area can be accurately obtained by image enhancement processing methods, and the quality inspection of machined parts can be completed through the calculation method of camera calibration and matching.

加至目前机器人的快速发展,配合视觉检测实现对工业零件的多姿态检测已不是难事,而且机器人根据需要可以设置不同的工作节拍,有着稳定的工作状态,这方面可以取代人工,提高检测精准度及工作效率,降低检测成本。质量检测作为生产业的最后一道防线,自动化视觉检测会成为将来的发展目标。In addition to the current rapid development of robots, it is not difficult to realize multi-pose detection of industrial parts with visual inspection. Moreover, the robot can set different working rhythms as needed, and has a stable working state. This aspect can replace manual labor and improve detection accuracy. And work efficiency, reduce testing costs. Quality inspection is the last line of defense in the production industry, and automated visual inspection will become a future development goal.

【发明内容】[Content of the invention]

本发明的目的在于解决加工零件外表面质量检测的实际问题,提供一种陶瓷砂轮头轮廓尺寸视觉检测方法。The purpose of the present invention is to solve the practical problem of the quality detection of the outer surface of the machined parts, and to provide a visual detection method of the outline size of the ceramic grinding wheel head.

为达到上述目的,本发明采用以下技术方案予以实现:To achieve the above object, the present invention adopts the following technical solutions to realize:

一种陶瓷砂轮头轮廓尺寸视觉检测方法,包括以下步骤:A method for visual inspection of the outline size of a ceramic grinding wheel head, comprising the following steps:

步骤1,图像获取:Step 1, image acquisition:

将待检测目标砂轮放置于检测V型块上并固定,使砂轮头在视场中心,并且使砂轮杆竖直放置于视场中,在砂轮头下放置面光源,使用工业相机获取的图像;Place the target grinding wheel to be detected on the inspection V-block and fix it so that the grinding wheel head is in the center of the field of view, and the grinding wheel rod is placed vertically in the field of view, and a surface light source is placed under the grinding wheel head, and the image obtained by the industrial camera is used;

步骤2,图像处理:Step 2, image processing:

过滤图像中多余信息,检测砂轮头的外轮廓尺寸,突出表现目标区域的特征;图像处理包括图像灰度化,滤波,二值化,寻找轮廓,霍夫直线检测,以及旋转图像的步骤;Filter the redundant information in the image, detect the outer contour size of the grinding wheel head, and highlight the characteristics of the target area; the image processing includes the steps of image grayscale, filtering, binarization, finding contours, Hough line detection, and rotating the image;

步骤3,目标区域提取:Step 3, target area extraction:

在经过处理过的图像中绘制矩形框,区分目标区域和非目标区域,对目标区域进行轮廓尺寸计算;Draw a rectangular frame in the processed image, distinguish the target area from the non-target area, and calculate the outline size of the target area;

步骤4,轮廓尺寸计算及结果评价:Step 4, outline size calculation and result evaluation:

对相机进行标定之后,对目标区域的轮廓进行尺寸计算,并将计算结果与标准设计尺寸进行比对,得出尺寸误差,对砂轮头做出评价。After the camera is calibrated, the size of the contour of the target area is calculated, and the calculation result is compared with the standard design size to obtain the size error and evaluate the grinding wheel head.

本发明进一步的改进在于:The further improvement of the present invention is:

所述步骤2的具体方法如下:The specific method of step 2 is as follows:

步骤2-1,图像灰度化:Step 2-1, image grayscale:

对图像进行灰度化处理,将三通道的RGB图像处理为单通道的灰度图像;Perform grayscale processing on the image, and process the three-channel RGB image into a single-channel grayscale image;

步骤2-2,高斯滤波:Step 2-2, Gaussian filtering:

设置滤波器窗口的宽度核大小进行图像高斯滤波处理;Set the width and kernel size of the filter window to perform image Gaussian filtering;

步骤2-3,图像二值化:Step 2-3, image binarization:

将图像上的所有像素点的灰度值设置为0或255,设置阈值对图像进行二值化处理;Set the gray value of all pixels on the image to 0 or 255, and set the threshold to binarize the image;

步骤2-4,寻找轮廓:Steps 2-4, find contours:

检测外轮廓,将轮廓编码中的所有点转换为点,得出外轮廓的像素值位置,并新建一份空白图像绘制在上面;Detect the outer contour, convert all points in the contour encoding into points, obtain the pixel value position of the outer contour, and create a new blank image to draw on it;

步骤2-5,霍夫直线检测:Step 2-5, Hough line detection:

对获得外轮廓图像进行霍夫直线检测,设置极径分辨率、极角分辨率、直线交点阈值、组成直线最少点阈值以及直线两点最大距离,得到砂轮杆轮廓的直线作为旋转图像的基础;Perform Hough line detection on the obtained outer contour image, set the polar diameter resolution, polar angle resolution, line intersection threshold, minimum point threshold for forming a line, and maximum distance between the two points of the line, and obtain the straight line of the grinding wheel profile as the basis of the rotating image;

步骤2-6,旋转图像:Steps 2-6, rotate the image:

选取一条竖直直线与霍夫直线检测得到的直线,利用向量点乘计算得出夹角,将图像旋转至砂轮杆处于竖直位置。Select a vertical straight line and the straight line detected by the Hough straight line, use the vector dot product to calculate the angle, and rotate the image until the grinding wheel bar is in the vertical position.

若相机设置获取灰度图像,则步骤2从步骤2-2开始执行。If the camera is set to acquire grayscale images, step 2 starts from step 2-2.

所述步骤3中,在获取的图像中设定或选取有效的检测视场,避免检测到无效区域。In the step 3, an effective detection field of view is set or selected in the acquired image to avoid detection of an invalid area.

所述步骤4中,首先进行相机标定,在步骤2-6中得到的图像以一侧轮廓为开始,以另一侧轮廓为结束获取轮廓直径线,逐层计算得到检测目标的轮廓直径尺寸,再与标准设计图进行比较,获取关键位置的尺寸误差,判断检测工件是否合格。In the step 4, the camera is calibrated first, and the image obtained in steps 2-6 starts with the outline of one side and ends with the outline of the other side to obtain the outline diameter line, and calculates the outline diameter size of the detection target layer by layer. Then compare it with the standard design drawing, obtain the dimensional error of the key position, and judge whether the detected workpiece is qualified.

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

本发明提供的检测方法是视觉检测,即非接触式测量,可以避免对待检测工件的表面的损伤,并且降低了检测设备升级换代的成本;视觉检测算法可以根据待检测工件进行修改,提高了适用性及实时性;配合机器人可以对待检测工件进行多姿态下的质量检测;自动化的机器人配合摄像头的视觉相比于人工,有着稳定的工作状态,可以有效的提高检测精准度,提高检测效率,降低检测成本。The detection method provided by the present invention is visual detection, that is, non-contact measurement, which can avoid damage to the surface of the workpiece to be detected, and reduce the cost of upgrading the detection equipment; the visual detection algorithm can be modified according to the workpiece to be detected, which improves the application Compared with manual work, the automated robot with the vision of the camera has a stable working state, which can effectively improve the detection accuracy, improve the detection efficiency, reduce the inspection cost.

【附图说明】【Description of drawings】

图1为本发明所述检测方法流程图;Fig. 1 is the flow chart of the detection method of the present invention;

图2为本发明所述待检测砂轮头目标零件的局部结构示意图;Fig. 2 is the partial structure schematic diagram of the target part of the grinding wheel head to be detected according to the present invention;

图3为本发明所述目标零件待检测区域示意图;3 is a schematic diagram of the target part to be detected area according to the present invention;

图4为本发明的具体检测结果图。FIG. 4 is a specific detection result diagram of the present invention.

【具体实施方式】【Detailed ways】

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,不是全部的实施例,而并非要限制本发明公开的范围。此外,在以下说明中,省略了对公知结构和技术的描述,以避免不必要的混淆本发明公开的概念。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to make those skilled in the art better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only The embodiments are part of the present invention, not all of the embodiments, and are not intended to limit the scope of the present disclosure. Furthermore, in the following description, descriptions of well-known structures and techniques are omitted to avoid unnecessarily obscuring the concepts disclosed in the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

在附图中示出了根据本发明公开实施例的各种结构示意图。这些图并非是按比例绘制的,其中为了清楚表达的目的,放大了某些细节,并且可能省略了某些细节。图中所示出的各种区域、层的形状及它们之间的相对大小、位置关系仅是示例性的,实际中可能由于制造公差或技术限制而有所偏差,并且本领域技术人员根据实际所需可以另外设计具有不同形状、大小、相对位置的区域/层。Various structural schematic diagrams according to the disclosed embodiments of the present invention are shown in the accompanying drawings. The figures are not to scale, some details have been exaggerated for clarity, and some details may have been omitted. The shapes of various regions and layers shown in the figures and their relative sizes and positional relationships are only exemplary, and in practice, there may be deviations due to manufacturing tolerances or technical limitations, and those skilled in the art should Regions/layers with different shapes, sizes, relative positions can be additionally designed as desired.

本发明公开的上下文中,当将一层/元件称作位于另一层/元件“上”时,该层/元件可以直接位于该另一层/元件上,或者它们之间可以存在居中层/元件。另外,如果在一种朝向中一层/元件位于另一层/元件“上”,那么当调转朝向时,该层/元件可以位于该另一层/元件“下”。In the context of the present disclosure, when a layer/element is referred to as being "on" another layer/element, it can be directly on the other layer/element or intervening layers/elements may be present therebetween. element. In addition, if a layer/element is "on" another layer/element in one orientation, then when the orientation is reversed, the layer/element can be "under" the other layer/element.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.

下面结合附图对本发明做进一步详细描述:Below in conjunction with accompanying drawing, the present invention is described in further detail:

参见图1,本发明陶瓷砂轮头轮廓尺寸视觉检测方法,包括以下步骤:Referring to Fig. 1, the visual detection method of the outline size of the ceramic grinding wheel head of the present invention comprises the following steps:

步骤1,图像获取,将待检测目标砂轮放置于检测V型块上并固定,尽量使砂轮头在视场中心,并且使砂轮杆竖直放置于视场中,在砂轮头下放置面光源,使用工业相机获取清晰的图像,如图2所示;Step 1, image acquisition, place the target grinding wheel to be detected on the detection V-block and fix it, try to make the grinding wheel head in the center of the field of view, and place the grinding wheel rod vertically in the field of view, and place a surface light source under the grinding wheel head, Use an industrial camera to get a clear image, as shown in Figure 2;

步骤2,图像处理:初步获取图像之后并不能直接检测出砂轮头轮廓尺寸,必须进行图像处理,过滤图像中多余信息,针对砂轮头的轮廓尺寸检测只需要外轮廓即可,并不需要颜色信息,突出表现目标区域的特征,图像处理包括图像灰度化,滤波,二值化,寻找轮廓,霍夫直线检测,旋转图像等步骤,具体步骤如下所示:Step 2: Image processing: After the initial image acquisition, the outline size of the grinding wheel head cannot be directly detected. Image processing must be performed to filter the redundant information in the image. Only the outer contour is required for the outline size detection of the grinding wheel head, and no color information is required. , highlight the features of the target area, image processing includes image grayscale, filtering, binarization, finding contours, Hough line detection, rotating images and other steps, the specific steps are as follows:

步骤2-1,图像灰度化:针对砂轮头的轮廓尺寸检测并不需要零件的颜色信息,则对图像进行灰度化处理,将三通道的RGB图像处理为单通道的灰度图像,若相机设置获取灰度图像则不进行灰度化;Step 2-1, grayscale image: the color information of the part is not required for the contour size detection of the grinding wheel head, then the image is grayscaled, and the three-channel RGB image is processed into a single-channel grayscale image. If the camera is set to obtain a grayscale image, it will not be grayscaled;

步骤2-2,高斯滤波:此步骤目的是图像平滑处理,为了减少噪声和伪影对图像的影响,设置滤波器窗口的宽度核大小进行图像高斯滤波处理;Step 2-2, Gaussian filtering: The purpose of this step is to smooth the image. In order to reduce the influence of noise and artifacts on the image, set the width and kernel size of the filter window to perform image Gaussian filtering;

步骤2-3,图像二值化:将图像上的所有像素点的灰度值设置为0或255,此步骤是为了将图像突出表现为黑白分明两种显示状态,为寻找轮廓奠定基础,设置阈值对图像进行二值化处理;Step 2-3, image binarization: set the gray value of all pixels on the image to 0 or 255. This step is to highlight the image in two distinct display states of black and white, and lay the foundation for finding contours. The threshold is used to binarize the image;

步骤2-4,寻找轮廓:此步骤是寻找出图像中砂轮的外轮廓,设置为只检测外轮廓,将轮廓编码中的所有点转换为点,得出外轮廓的像素值位置,并新建一份空白图像绘制在上面;Step 2-4, find the contour: This step is to find the outer contour of the grinding wheel in the image, set it to detect only the outer contour, convert all the points in the contour coding into points, get the pixel value position of the outer contour, and create a new one. A blank image is drawn on top;

步骤2-5,霍夫直线检测:对获得外轮廓图像进行霍夫直线检测,设置极径分辨率,极角分辨率,直线交点阈值,组成直线最少点阈值,直线两点最大距离等参数,得到砂轮杆轮廓的直线作为旋转图像的基础;Step 2-5, Hough line detection: perform Hough line detection on the obtained outer contour image, and set parameters such as polar diameter resolution, polar angle resolution, line intersection threshold, minimum point threshold for forming a line, and maximum distance between two points on a line. Obtain the straight line of the grinding wheel profile as the basis of the rotated image;

步骤2-6,旋转图像:选取一条竖直直线与霍夫直线检测得到的直线利用向量点乘计算得出夹角,将图像旋转至正确位置,即砂轮杆处于竖直位置。Step 2-6, rotate the image: select a vertical line and the straight line detected by the Hough line to calculate the angle by vector point product, and rotate the image to the correct position, that is, the grinding wheel bar is in the vertical position.

步骤3,目标区域提取,如图3所示:在图像处理之后,视场中的对象并都是目标检测区域,在经过处理过的图像中绘制矩形框,区分目标区域和非目标区域,只对目标区域进行轮廓尺寸计算,避免进行多余的计算造成计算机资源浪费,提高检测效率,并提高检测准确率;Step 3, target area extraction, as shown in Figure 3: After image processing, the objects in the field of view are not all target detection areas, and a rectangular frame is drawn in the processed image to distinguish the target area and the non-target area. Calculate the contour size of the target area to avoid wasting computer resources due to redundant calculations, improve detection efficiency, and improve detection accuracy;

步骤4,轮廓尺寸计算及结果评价,如图4所示:对相机进行标定之后就可对目标区域的轮廓进行尺寸计算,并将计算结果与标准设计尺寸进行比对,得出尺寸误差,对砂轮头是否合格做出评价。具体是在步骤2-6中得到的图像以左侧轮廓为开始,以右侧轮廓为结束获取轮廓直径线,逐层计算得到检测目标的轮廓直径尺寸,再与标准设计图进行比较,获取关键位置的尺寸误差,判断检测工件是否合格。Step 4, outline size calculation and result evaluation, as shown in Figure 4: After the camera is calibrated, the size of the outline of the target area can be calculated, and the calculation result can be compared with the standard design size to obtain the size error. Evaluate whether the grinding wheel head is qualified. Specifically, the image obtained in steps 2-6 starts with the left contour and ends with the right contour to obtain the contour diameter line, calculates the contour diameter size of the detection target layer by layer, and then compares it with the standard design drawing to obtain the key The dimensional error of the position is used to judge whether the detected workpiece is qualified.

以上内容仅为说明本发明的技术思想,不能以此限定本发明的保护范围,凡是按照本发明提出的技术思想,在技术方案基础上所做的任何改动,均落入本发明权利要求书的保护范围之内。The above content is only to illustrate the technical idea of the present invention, and cannot limit the protection scope of the present invention. Any changes made on the basis of the technical solution according to the technical idea proposed by the present invention all fall within the scope of the claims of the present invention. within the scope of protection.

Claims (5)

1.一种陶瓷砂轮头轮廓尺寸视觉检测方法,其特征在于,包括以下步骤:1. a ceramic grinding wheel head outline dimension visual detection method, is characterized in that, comprises the following steps: 步骤1,图像获取:Step 1, image acquisition: 将待检测目标砂轮放置于检测V型块上并固定,使砂轮头在视场中心,并且使砂轮杆竖直放置于视场中,在砂轮头下放置面光源,使用工业相机获取的图像;Place the target grinding wheel to be detected on the inspection V-block and fix it so that the grinding wheel head is in the center of the field of view, and the grinding wheel rod is placed vertically in the field of view, and a surface light source is placed under the grinding wheel head, and the image obtained by the industrial camera is used; 步骤2,图像处理:Step 2, image processing: 过滤图像中多余信息,检测砂轮头的外轮廓尺寸,突出表现目标区域的特征;图像处理包括图像灰度化,滤波,二值化,寻找轮廓,霍夫直线检测,以及旋转图像的步骤;Filter the redundant information in the image, detect the outer contour size of the grinding wheel head, and highlight the characteristics of the target area; the image processing includes the steps of image grayscale, filtering, binarization, finding contours, Hough line detection, and rotating the image; 步骤3,目标区域提取:Step 3, target area extraction: 在经过处理过的图像中绘制矩形框,区分目标区域和非目标区域,对目标区域进行轮廓尺寸计算;Draw a rectangular frame in the processed image, distinguish the target area from the non-target area, and calculate the outline size of the target area; 步骤4,轮廓尺寸计算及结果评价:Step 4, outline size calculation and result evaluation: 对相机进行标定之后,对目标区域的轮廓进行尺寸计算,并将计算结果与标准设计尺寸进行比对,得出尺寸误差,对砂轮头做出评价。After the camera is calibrated, the size of the contour of the target area is calculated, and the calculation result is compared with the standard design size to obtain the size error and evaluate the grinding wheel head. 2.根据权利要求1所述的陶瓷砂轮头轮廓尺寸视觉检测方法,其特征在于,所述步骤2的具体方法如下:2. ceramic grinding wheel head outline size visual detection method according to claim 1, is characterized in that, the concrete method of described step 2 is as follows: 步骤2-1,图像灰度化:Step 2-1, image grayscale: 对图像进行灰度化处理,将三通道的RGB图像处理为单通道的灰度图像;Perform grayscale processing on the image, and process the three-channel RGB image into a single-channel grayscale image; 步骤2-2,高斯滤波:Step 2-2, Gaussian filtering: 设置滤波器窗口的宽度核大小进行图像高斯滤波处理;Set the width and kernel size of the filter window to perform image Gaussian filtering; 步骤2-3,图像二值化:Step 2-3, image binarization: 将图像上的所有像素点的灰度值设置为0或255,设置阈值对图像进行二值化处理;Set the gray value of all pixels on the image to 0 or 255, and set the threshold to binarize the image; 步骤2-4,寻找轮廓:Steps 2-4, find contours: 检测外轮廓,将轮廓编码中的所有点转换为点,得出外轮廓的像素值位置,并新建一份空白图像绘制在上面;Detect the outer contour, convert all points in the contour encoding into points, obtain the pixel value position of the outer contour, and create a new blank image to draw on it; 步骤2-5,霍夫直线检测:Step 2-5, Hough line detection: 对获得外轮廓图像进行霍夫直线检测,设置极径分辨率、极角分辨率、直线交点阈值、组成直线最少点阈值以及直线两点最大距离,得到砂轮杆轮廓的直线作为旋转图像的基础;Perform Hough line detection on the obtained outer contour image, set the polar diameter resolution, polar angle resolution, line intersection threshold, minimum point threshold for forming a line, and maximum distance between the two points of the line, and obtain the straight line of the grinding wheel profile as the basis of the rotating image; 步骤2-6,旋转图像:Steps 2-6, rotate the image: 选取一条竖直直线与霍夫直线检测得到的直线,利用向量点乘计算得出夹角,将图像旋转至砂轮杆处于竖直位置。Select a vertical straight line and the straight line detected by the Hough straight line, use the vector dot product to calculate the angle, and rotate the image until the grinding wheel bar is in the vertical position. 3.根据权利要求2所述的陶瓷砂轮头轮廓尺寸视觉检测方法,其特征在于,若相机设置获取灰度图像,则步骤2从步骤2-2开始执行。3 . The method for visual inspection of the outline size of a ceramic grinding wheel head according to claim 2 , wherein if the camera is set to acquire a grayscale image, step 2 is performed from step 2-2. 4 . 4.根据权利要求1所述的陶瓷砂轮头轮廓尺寸视觉检测方法,其特征在于,所述步骤3中,在获取的图像中设定或选取有效的检测视场,避免检测到无效区域。4 . The method for visual inspection of the outline size of a ceramic grinding wheel head according to claim 1 , wherein in the step 3, an effective detection field of view is set or selected in the acquired image to avoid detection of an invalid area. 5 . 5.根据权利要求2或3所述的陶瓷砂轮头轮廓尺寸视觉检测方法,其特征在于,所述步骤4中,首先进行相机标定,在步骤2-6中得到的图像以一侧轮廓为开始,以另一侧轮廓为结束获取轮廓直径线,逐层计算得到检测目标的轮廓直径尺寸,再与标准设计图进行比较,获取关键位置的尺寸误差,判断检测工件是否合格。5. The method for visual inspection of the outline size of a ceramic grinding wheel head according to claim 2 or 3, wherein in the step 4, the camera is calibrated first, and the image obtained in the steps 2-6 starts with a side profile , take the other side contour as the end to obtain the contour diameter line, calculate the contour diameter size of the detection target layer by layer, and then compare it with the standard design drawing to obtain the dimensional error of the key position, and judge whether the inspection workpiece is qualified.
CN202010404173.5A 2020-05-13 2020-05-13 A visual detection method for the contour size of ceramic grinding wheel head Active CN111539951B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010404173.5A CN111539951B (en) 2020-05-13 2020-05-13 A visual detection method for the contour size of ceramic grinding wheel head

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010404173.5A CN111539951B (en) 2020-05-13 2020-05-13 A visual detection method for the contour size of ceramic grinding wheel head

Publications (2)

Publication Number Publication Date
CN111539951A true CN111539951A (en) 2020-08-14
CN111539951B CN111539951B (en) 2022-12-09

Family

ID=71977926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010404173.5A Active CN111539951B (en) 2020-05-13 2020-05-13 A visual detection method for the contour size of ceramic grinding wheel head

Country Status (1)

Country Link
CN (1) CN111539951B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112763495A (en) * 2020-12-24 2021-05-07 苏州赛众自动化科技有限公司 Mobile phone battery size and appearance defect detection system and detection method
CN116341002A (en) * 2023-03-17 2023-06-27 南通创越时空数据科技有限公司 Map data desensitizing method and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102005035410A1 (en) * 2005-07-28 2007-02-01 Robert Bosch Gmbh Optical detecting device for packaged foods, has camera for visual detection of packaged goods that are fed on conveyor, and mirrors deflecting beam paths of camera to form beam paths, which are larger than vertical dimension of housing
CN103292701A (en) * 2013-06-24 2013-09-11 哈尔滨工业大学 Machine-vision-based online dimensional measurement method of precise instrument
CN104742017A (en) * 2013-02-07 2015-07-01 常州工学院 Accurate control method of contour detecting and grinding device for planar conjugate cam
CN109900719A (en) * 2019-03-04 2019-06-18 华中科技大学 A kind of visual detection method of blade surface knife pattern
CN110288651A (en) * 2019-06-21 2019-09-27 湖南大学 Tolerance visual inspection method, device and computing device for large-size workpieces
CN110969357A (en) * 2019-12-03 2020-04-07 西安交通大学 Visual detection method for holes of aluminum alloy machined part
CN111047588A (en) * 2019-12-26 2020-04-21 电子科技大学 A Graphical Measurement Method for Dimension of Small Shaft Parts
CN111102927A (en) * 2018-10-25 2020-05-05 华北电力大学扬中智能电气研究中心 Bus duct size detection system, method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102005035410A1 (en) * 2005-07-28 2007-02-01 Robert Bosch Gmbh Optical detecting device for packaged foods, has camera for visual detection of packaged goods that are fed on conveyor, and mirrors deflecting beam paths of camera to form beam paths, which are larger than vertical dimension of housing
CN104742017A (en) * 2013-02-07 2015-07-01 常州工学院 Accurate control method of contour detecting and grinding device for planar conjugate cam
CN103292701A (en) * 2013-06-24 2013-09-11 哈尔滨工业大学 Machine-vision-based online dimensional measurement method of precise instrument
CN111102927A (en) * 2018-10-25 2020-05-05 华北电力大学扬中智能电气研究中心 Bus duct size detection system, method and device
CN109900719A (en) * 2019-03-04 2019-06-18 华中科技大学 A kind of visual detection method of blade surface knife pattern
CN110288651A (en) * 2019-06-21 2019-09-27 湖南大学 Tolerance visual inspection method, device and computing device for large-size workpieces
CN110969357A (en) * 2019-12-03 2020-04-07 西安交通大学 Visual detection method for holes of aluminum alloy machined part
CN111047588A (en) * 2019-12-26 2020-04-21 电子科技大学 A Graphical Measurement Method for Dimension of Small Shaft Parts

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
SHANGGONG CHEN ET AL: "Automated inspection of engineering ceramic grinding surface damage based on image recognition", 《INT J ADV MANUF TECHNOL》 *
冯西等: "基于机器视觉的大尺寸工件自动测量系统", 《传感器与微系统》 *
胡一星等人: "曲线磨削砂轮廓形的原位视觉检测和误差补偿", 《上海交通大学学报》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112763495A (en) * 2020-12-24 2021-05-07 苏州赛众自动化科技有限公司 Mobile phone battery size and appearance defect detection system and detection method
CN116341002A (en) * 2023-03-17 2023-06-27 南通创越时空数据科技有限公司 Map data desensitizing method and system
CN116341002B (en) * 2023-03-17 2023-12-12 南通创越时空数据科技有限公司 Map data desensitizing method and system

Also Published As

Publication number Publication date
CN111539951B (en) 2022-12-09

Similar Documents

Publication Publication Date Title
CN109003258B (en) A high-precision sub-pixel circular part measurement method
US20200364849A1 (en) Method and device for automatically drawing structural cracks and precisely measuring widths thereof
CN108355981B (en) Battery connector quality detection method based on machine vision
CN107341802B (en) Corner sub-pixel positioning method based on curvature and gray scale compounding
CN105067638B (en) Tire fetal membrane face character defect inspection method based on machine vision
CN112651968B (en) A method for detecting the deformation and pits of wooden boards based on depth information
CN102799867B (en) Meter pointer angle identification method based on image processing
CN108447070B (en) Industrial part defect detection algorithm based on pixel vector invariant relation features
CN111862037A (en) Method and system for geometric feature detection of precision hole parts based on machine vision
CN104318548A (en) Rapid image registration implementation method based on space sparsity and SIFT feature extraction
CN107742289A (en) A detection method of rotating body workpiece based on machine vision
CN104809738A (en) Airbag overall dimension detection method based on binocular vision
JP5806786B1 (en) Image recognition device
CN104134211B (en) A Strip Defect Detection Method Based on Gaussian Filter Multi-resolution Filtering
CN112767359B (en) Method and system for detecting corner points of steel plate under complex background
CN111539927B (en) Detection method for lack of installation detection device for fastening buckles of automobile plastic assemblies
CN115096206A (en) Part size high-precision measurement method based on machine vision
CN113012098A (en) Iron tower angle steel punching defect detection method based on BP neural network
CN110619146A (en) Polycrystalline silicon cell crack defect detection method based on structural similarity measurement
CN110260818A (en) A kind of electric power connector Robust Detection Method based on binocular vision
CN111539951A (en) A kind of visual detection method of ceramic grinding wheel head profile size
CN117522778A (en) Hollow brick flaw detection system
CN105258647A (en) Visual detection method of automobile lock catch rivet point
CN114022441A (en) A kind of defect detection method of irregular hardware
CN103337067B (en) The visible detection method of single needle scan-type screw measurement instrument probe X-axis rotating deviation

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