CN108593653A - A kind of screw classification of view-based access control model and damage detection device and method - Google Patents
A kind of screw classification of view-based access control model and damage detection device and method Download PDFInfo
- Publication number
- CN108593653A CN108593653A CN201711495112.9A CN201711495112A CN108593653A CN 108593653 A CN108593653 A CN 108593653A CN 201711495112 A CN201711495112 A CN 201711495112A CN 108593653 A CN108593653 A CN 108593653A
- Authority
- CN
- China
- Prior art keywords
- screw
- image
- industrial computer
- screws
- vibrating table
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 60
- 238000000034 method Methods 0.000 title claims description 15
- 238000001914 filtration Methods 0.000 claims description 8
- 230000003044 adaptive effect Effects 0.000 claims description 4
- 230000000877 morphologic effect Effects 0.000 claims description 4
- 238000011084 recovery Methods 0.000 claims description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000003707 image sharpening Methods 0.000 description 2
- 238000004064 recycling Methods 0.000 description 2
- 230000007812 deficiency Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/84—Systems specially adapted for particular applications
- G01N21/88—Investigating the presence of flaws or contamination
- G01N21/8851—Scan 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
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B21/00—Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
- G01B21/02—Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring length, width, or thickness
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B21/00—Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
- G01B21/10—Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring diameters
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B21/00—Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
- G01B21/20—Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring contours or curvatures, e.g. determining profile
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/84—Systems specially adapted for particular applications
- G01N21/88—Investigating the presence of flaws or contamination
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/84—Systems specially adapted for particular applications
- G01N21/88—Investigating the presence of flaws or contamination
- G01N21/8851—Scan 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/8854—Grading and classifying of flaws
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Chemical & Material Sciences (AREA)
- Analytical Chemistry (AREA)
- Biochemistry (AREA)
- General Health & Medical Sciences (AREA)
- Immunology (AREA)
- Pathology (AREA)
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Signal Processing (AREA)
- Image Processing (AREA)
- Length Measuring Devices By Optical Means (AREA)
- Manipulator (AREA)
Abstract
本发明公开了一种基于视觉的螺钉分类和破损检测装置,包括检测工位、顶部相机、侧面相机、光源、工控机,检测工位上设置螺钉,所述的顶部相机用于拍摄螺钉的头部图像,所述的侧面相机用于检测螺钉的螺杆图像,光源用于为顶部相机、侧面相机的拍摄提供所需灯光,所述的顶部相机、侧面相机将拍摄的图像数据分别传递至工控机中进行图像识别处理,所述的工控机通过图像识别处理对螺钉进行分类和破损检测。本发明的优点在于:通过上下料子系统能够有效将螺钉分散开,并利用机器人和工业相机实现对螺钉进行夹持,为后续的分类检测奠定基础;通过对螺钉头部和螺杆的边界获取槽口面积、螺纹高度等信息来判断磨损情况。
The invention discloses a vision-based screw classification and damage detection device, which includes a detection station, a top camera, a side camera, a light source, and an industrial computer. Screws are set on the detection station, and the top camera is used to photograph the head of the screw. The side image, the side camera is used to detect the screw image of the screw, the light source is used to provide the required light for the shooting of the top camera and the side camera, and the top camera and the side camera transmit the image data taken to the industrial computer respectively The image recognition processing is carried out in the computer, and the industrial computer classifies and detects the damage of the screws through the image recognition processing. The advantages of the present invention are: the screws can be effectively dispersed through the loading and unloading subsystem, and the screws can be clamped by robots and industrial cameras, laying the foundation for subsequent classification and detection; the notch can be obtained by the boundary between the screw head and the screw rod Area, thread height and other information to judge the wear condition.
Description
技术领域technical field
本发明涉及自动化技术领域,特别涉及一种检测螺钉头部及螺纹部分的破损程度和螺钉参数,实现对螺钉的分类和对破损螺钉的检测的装置及方法。The invention relates to the field of automation technology, in particular to a device and method for detecting the damage degree and screw parameters of screw heads and threaded parts, and realizing the classification of screws and the detection of damaged screws.
背景技术Background technique
螺钉是工业中最常用的一种小零件,通常螺钉在工业现场的使用量很大,种类、型号和材质也很多。针对一些使用量大,材质比较珍贵的螺钉进行回收再次利用,有很大意义,因此需要对使用过的螺钉进行分检。现有的螺钉分类系统是对标准螺钉进行分类,无法实现对有磨损的螺钉进行分类,更无法检测螺钉的磨损程度。本专利使用非接触式的视觉方案对螺钉进行分检,能够有效检测螺钉磨损程度,并对磨损螺钉进行分类。Screws are the most commonly used small parts in industry. Usually, screws are widely used in industrial sites, and there are many types, models and materials. It is of great significance to recycle and reuse some screws that are used in large quantities and whose materials are relatively precious. Therefore, it is necessary to sort the used screws. The existing screw classification system is to classify standard screws, which cannot classify worn screws, let alone detect the degree of wear of screws. This patent uses a non-contact visual scheme to sort screws, which can effectively detect the degree of screw wear and classify worn screws.
发明内容Contents of the invention
本发明的目的在于克服现有技术的不足,提供一种基于视觉的螺钉分类和破损检测装置及方法,实现对螺钉破损检测。The object of the present invention is to overcome the deficiencies of the prior art, provide a vision-based screw classification and damage detection device and method, and realize screw damage detection.
为了实现上述目的,本发明采用的技术方案为:一种基于视觉的螺钉分类和破损检测装置,包括检测工位、顶部相机、侧面相机、光源、工控机,检测工位上设置螺钉,所述的顶部相机用于拍摄螺钉的头部图像,所述的侧面相机用于检测螺钉的螺杆图像,光源用于为顶部相机、侧面相机的拍摄提供所需灯光,所述的顶部相机、侧面相机将拍摄的图像数据分别传递至工控机中进行图像识别处理,所述的工控机通过图像识别处理对螺钉进行分类和破损检测。In order to achieve the above object, the technical solution adopted by the present invention is: a vision-based screw classification and damage detection device, including a detection station, a top camera, a side camera, a light source, and an industrial computer. Screws are set on the detection station. The top camera is used to take the head image of the screw, the side camera is used to detect the screw image of the screw, the light source is used to provide the required light for the top camera and the side camera, and the top camera and the side camera will The captured image data are respectively transmitted to the industrial computer for image recognition processing, and the industrial computer classifies the screws and detects damage through the image recognition processing.
所述的工控机通过对图像进行处理获取螺钉的磨损数据进行破损检测以及通过获取的螺钉的形状、大小对螺钉进行分类。The industrial computer obtains the wear data of the screws by processing the image to detect the damage and classifies the screws by the shape and size of the obtained screws.
所述的工控机连接机器人系统,所述的机器人系统根据工控机发出的控制信号将螺钉按照分类进行存储。The industrial computer is connected to the robot system, and the robot system stores the screws according to the classification according to the control signal sent by the industrial computer.
所述的机器人系统包括机器人控制器、机器人本体和夹具系统,所述的机器人控制器根据接收的信号控制机器人本体和夹具移动,将夹取的螺钉放置在对应的回收位置。The robot system includes a robot controller, a robot body and a gripper system. The robot controller controls the movement of the robot body and the gripper according to the received signal, and places the clamped screw at a corresponding recovery position.
该装置还包括上下料系统,所述的上下料系统包括物料台以及放置在物料台上的螺钉,所述的机器人系统将物料台上的螺钉夹取后放置在检测工位上用于分类破损检测。The device also includes a loading and unloading system. The loading and unloading system includes a material platform and screws placed on the material platform. The robot system clamps the screws on the material platform and places them on the detection station for classifying damage. detection.
所述的物料台为振动台,与振动台连接的倾斜设置的物料盒,所述的振动台由振动台控制器控制振动,所述的振动台控制器与工控机连接,振动台上方设置工业摄像机,用于采集振动台上的螺钉图像数据并将图像送入到工控机中;物料盒中的螺钉沿倾斜的物料盒滚落在振动台上,所述的振动台工作将螺钉分散开,所述的工业摄像机拍摄振动台上的图像数据送入工控机中,工控机根据图像识别出螺钉的位置并控制机器人系统抓取螺钉放置在检测工位上。The material table is a vibrating table, an inclined material box connected with the vibrating table, the vibration of the vibrating table is controlled by a vibrating table controller, the vibrating table controller is connected with an industrial computer, and an industrial computer is set above the vibrating table. The camera is used to collect the screw image data on the vibrating table and send the image to the industrial computer; the screws in the material box roll down on the vibrating table along the inclined material box, and the vibrating table works to disperse the screws, The image data on the vibrating table captured by the industrial camera is sent to the industrial computer, and the industrial computer recognizes the position of the screw according to the image and controls the robot system to grab the screw and place it on the detection station.
基于视觉的螺钉分类和破损检测装置的检测方法,包括如下步骤:The detection method of the screw classification and damage detection device based on vision comprises the following steps:
(1)将螺钉放置物料盒中,物料盒的螺钉部分进入振动台,工控机控制振动台控制器工作,振动台控制器控制振动台振动,将振动台上的螺钉分散开;(1) Put the screw in the material box, the screw part of the material box enters the vibrating table, the industrial computer controls the vibrating table controller to work, the vibrating table controller controls the vibration of the vibrating table, and disperses the screws on the vibrating table;
(2)振动台上方的工业相机拍摄振动台上的图像数据,并将图像送入到工控机中,工控机对图像进行处理,识别中图像中的螺钉并获取螺钉位置信息;(2) The industrial camera above the vibrating table captures the image data on the vibrating table, and sends the image to the industrial computer, which processes the image, identifies the screw in the image and obtains the screw position information;
(3)工控机发出控制信号至机器人系统,由机器人根据坐标信息抓取振动台上的螺钉,并将螺钉放置在检测工位上;(3) The industrial computer sends a control signal to the robot system, and the robot grabs the screws on the vibration table according to the coordinate information, and places the screws on the detection station;
(4)检测工位上的顶部相机、侧面相机分别拍摄螺钉的头部图像、螺杆图像并送入到工控机;(4) The top camera and side camera on the detection station take pictures of the head image and screw rod image of the screw respectively and send them to the industrial computer;
(5)工控机根据螺钉的头部图像、螺杆图像获取螺钉的头部形状、轮廓以及螺杆的螺纹长度、直径;并根据该数据进行分类和破损判断。(5) The industrial computer obtains the head shape and profile of the screw and the thread length and diameter of the screw according to the head image of the screw and the image of the screw rod; and classifies and judges damage according to the data.
(6)工控机控制机器人将螺钉夹取后存储在与螺钉对应的分类存储中。(6) The industrial computer controls the robot to pick up the screws and store them in the classified storage corresponding to the screws.
步骤(2)中,工控机对采集的图像首先进行高斯滤波,采用Canny算子求取图像的边界,获得较为稳定边界特征,按照螺钉定义的特征值,对获取的边界进行形态学开运算,筛选出螺钉的边界,基于螺钉的边界特征,计算出螺钉的方向和预定义的中心坐标值。In step (2), the industrial computer first performs Gaussian filtering on the collected image, uses the Canny operator to obtain the boundary of the image, and obtains a relatively stable boundary feature, and performs a morphological opening operation on the acquired boundary according to the eigenvalue defined by the screw. The boundary of the screw is screened out, and the direction of the screw and the predefined center coordinate value are calculated based on the boundary characteristics of the screw.
工控机对螺钉头部图像处理包括:识别图像中的螺钉头部外圈边界以及螺钉槽口边界,根据边界求取槽口面积以及螺钉头部面积,根据螺钉头部面积获取预设的与之对应的标准槽口面积,通过标准槽口面积与求取的槽口面积的差值判断螺钉头部磨损情况。The image processing of the screw head by the industrial computer includes: identifying the outer circle boundary of the screw head and the boundary of the screw notch in the image, calculating the area of the notch and the area of the screw head according to the boundary, and obtaining the preset value according to the area of the screw head For the corresponding standard notch area, the wear condition of the screw head is judged by the difference between the standard notch area and the obtained notch area.
工控机对螺杆图像处理包括:对原始图像进行高斯滤波和拉普拉斯算子方法进行图像锐化,之后采用自适应二值化算法,找出螺杆部分的连通域,获取螺杆部分的边界信息,基于螺杆的连通域计算出待检测螺杆的螺纹信息,根据螺纹高度判断螺纹磨损情况。The processing of the screw image by the industrial computer includes: performing Gaussian filtering on the original image and image sharpening with the Laplacian operator method, and then using an adaptive binarization algorithm to find the connected domain of the screw part and obtain the boundary information of the screw part , the thread information of the screw to be detected is calculated based on the connected domain of the screw, and the thread wear is judged according to the thread height.
本发明的优点在于:通过上下料子系统能够有效将螺钉分散开,并利用机器人和工业相机实现对螺钉进行夹持,为后续的分类检测奠定基础;通过对螺钉头部和螺杆的边界获取槽口面积、螺纹高度等信息来判断磨损情况,能够对螺钉的磨损程度进行检测,并且可以通过获取的螺钉的形状、大小对螺钉进行分类。The advantages of the present invention are: the screws can be effectively dispersed through the loading and unloading subsystem, and the screws can be clamped by robots and industrial cameras, laying the foundation for subsequent classification and detection; the notch can be obtained by the boundary between the screw head and the screw rod The area, thread height and other information can be used to judge the wear condition, the wear degree of the screw can be detected, and the screw can be classified according to the shape and size of the obtained screw.
附图说明Description of drawings
下面对本发明说明书各幅附图表达的内容及图中的标记作简要说明:The content expressed in each accompanying drawing of the description of the present invention and the marks in the figure are briefly described below:
图1为本发明振动台原理图;Fig. 1 is a schematic diagram of a vibrating table of the present invention;
图2为本发明工控机获取检测工位螺钉图像原理图。Fig. 2 is a principle diagram of obtaining the image of the screw at the detection station by the industrial computer of the present invention.
具体实施方式Detailed ways
下面对照附图,通过对最优实施例的描述,对本发明的具体实施方式作进一步详细的说明。The specific implementation manner of the present invention will be described in further detail below by describing the best embodiment with reference to the accompanying drawings.
如图1,上下料系统包括物料台以及放置在物料台上的螺钉,机器人系统将物料台上的螺钉夹取后放置在检测工位上用于分类破损检测。As shown in Figure 1, the loading and unloading system includes a material table and screws placed on the material table. The robot system picks up the screws on the material table and places them on the detection station for classification and damage detection.
物料台为振动台,与振动台连接的倾斜设置的物料盒,振动台由振动台控制器控制振动,振动台控制器与工控机连接,振动台上方设置工业摄像机,用于采集振动台上的螺钉图像数据并将图像送入到工控机中;物料盒中的螺钉沿倾斜的物料盒滚落在振动台上,振动台工作将螺钉分散开,工业摄像机拍摄振动台上的图像数据送入工控机中,工控机根据图像识别出螺钉的位置并控制机器人系统抓取螺钉放置在检测工位上。The material table is a vibrating table, and the obliquely set material box is connected with the vibrating table. The vibrating table is controlled by the vibrating table controller. Screw image data and send the image to the industrial computer; the screw in the material box rolls down on the vibrating table along the inclined material box, the vibrating table works to disperse the screws, and the industrial camera captures the image data on the vibrating table and sends it to the industrial control In the machine, the industrial computer recognizes the position of the screw according to the image and controls the robot system to grab the screw and place it on the detection station.
机器人系统包括机器人控制器、机器人本体以及夹具系统,具体包括机器人本体的机械臂上设置夹具系统用于夹取螺钉,机器人的机械臂的运动由机器人控制器根据接收到的工控机的控制指令运行。机器人控制器根据接收的信号控制机器人本体和夹具移动,将夹取的螺钉放置在相应的位置,这里机器人由振动台的位置移动将螺钉放置在检测工位的所在的位置,用于对螺钉图像采集处理以检测。The robot system includes a robot controller, a robot body, and a fixture system. Specifically, a fixture system is set on the mechanical arm of the robot body for clamping screws. The movement of the robotic arm of the robot is run by the robot controller according to the received control instructions from the industrial computer. . The robot controller controls the movement of the robot body and the fixture according to the received signal, and places the clamped screw at the corresponding position. Here, the robot moves from the position of the vibrating table to place the screw at the position of the detection station, which is used to image the screw. Collect and process for detection.
工控机控制机器人通过机械臂夹取的螺钉,然后将螺钉移动到预设的固定位置也就是检测工位所在的位置上,通过夹具加持或放置在检测工位上的固定工具上,顶部相机用于拍摄螺钉的头部图像,所述的侧面相机用于检测螺钉的螺杆图像,光源用于为顶部相机、侧面相机的拍摄提供所需灯光,所述的顶部相机、侧面相机将拍摄的图像数据分别传递至工控机中进行图像识别处理,所述的工控机通过图像识别处理对螺钉进行分类和破损检测。工控机通过对图像进行处理获取螺钉的磨损数据进行破损检测以及通过获取的螺钉的形状、大小对螺钉进行分类。螺钉的磨损数据根据螺钉头部槽口面积和标准面积的比值确定,螺纹磨损情况根据螺纹磨损的长度确定。The industrial computer controls the screw that the robot grips through the mechanical arm, and then moves the screw to the preset fixed position, that is, the position where the detection station is located. It is held by the fixture or placed on the fixed tool on the detection station. The top camera uses For shooting the head image of the screw, the side camera is used to detect the screw image of the screw, the light source is used to provide the required light for the shooting of the top camera and the side camera, and the image data captured by the top camera and the side camera They are respectively transmitted to the industrial computer for image recognition processing, and the industrial computer classifies the screws and detects damage through the image recognition processing. The industrial computer obtains the wear data of the screw by processing the image for damage detection and classifies the screw by the shape and size of the obtained screw. The wear data of the screw is determined according to the ratio of the notch area of the screw head to the standard area, and the thread wear is determined according to the length of the thread wear.
基于视觉的螺钉分类和破损检测装置的检测方法,Vision-based detection method for screw classification and breakage detection device,
(1)将螺钉放置物料盒中,物料盒的螺钉部分进入振动台,工控机控制振动台控制器工作,振动台控制器控制振动台振动,将振动台上的螺钉分散开;(1) Put the screw in the material box, the screw part of the material box enters the vibrating table, the industrial computer controls the vibrating table controller to work, the vibrating table controller controls the vibration of the vibrating table, and disperses the screws on the vibrating table;
(2)振动台上方的工业相机拍摄振动台上的图像数据,并将图像送入到工控机中,工控机对图像进行处理,识别中图像中的螺钉并获取螺钉位置信息;具体包括工控机对采集的图像首先进行高斯滤波,采用Canny算子求取图像的边界,获得较为稳定边界特征,按照螺钉定义的特征值,对获取的边界进行形态学开运算,筛选出螺钉的边界,基于螺钉的边界特征,计算出螺钉的方向和预定义的中心坐标值。(2) The industrial camera above the vibrating table captures the image data on the vibrating table, and sends the image to the industrial computer, which processes the image, identifies the screws in the image and obtains the screw position information; specifically, the industrial computer Gaussian filtering is first performed on the collected image, and the Canny operator is used to obtain the boundary of the image to obtain a relatively stable boundary feature. According to the eigenvalue defined by the screw, the morphological opening operation is performed on the acquired boundary to filter out the boundary of the screw. Based on the screw The boundary feature of the screw, calculate the direction of the screw and the predefined center coordinate value.
(3)工控机发出控制信号至机器人系统,由机器人根据坐标信息抓取振动台上的螺钉,并将螺钉放置在检测工位上;检测工位为固定位置,可以预先标定其位置坐标,存储于机器人控制器中。(3) The industrial computer sends a control signal to the robot system, and the robot grabs the screws on the vibrating table according to the coordinate information, and places the screws on the detection station; the detection station is a fixed position, and its position coordinates can be calibrated in advance, stored in the robot controller.
(4)检测工位上的顶部相机、侧面相机分别拍摄螺钉的头部图像、螺杆图像并送入到工控机;(4) The top camera and side camera on the detection station take pictures of the head image and screw rod image of the screw respectively and send them to the industrial computer;
(5)工控机根据螺钉的头部图像、螺杆图像获取螺钉的头部形状、轮廓以及螺杆的螺纹长度、直径;并根据该数据进行分类和破损判断。工控机对螺钉头部图像处理包括:识别图像中的螺钉头部外圈边界以及螺钉槽口边界,根据边界求取槽口面积以及螺钉头部面积,根据螺钉头部面积获取预设的与之对应的标准槽口面积,通过标准槽口面积与求取的槽口面积的差值判断螺钉头部磨损情况。工控机对螺杆图像处理包括:对原始图像进行高斯滤波和拉普拉斯算子方法进行图像锐化,之后采用自适应二值化算法,找出螺杆部分的连通域,获取螺杆部分的边界信息,基于螺杆的连通域计算出待检测螺杆的螺纹信息,根据螺纹高度判断螺纹磨损情况。(5) The industrial computer obtains the head shape and profile of the screw and the thread length and diameter of the screw according to the head image of the screw and the image of the screw rod; and classifies and judges damage according to the data. The image processing of the screw head by the industrial computer includes: identifying the outer circle boundary of the screw head and the boundary of the screw notch in the image, calculating the area of the notch and the area of the screw head according to the boundary, and obtaining the preset value according to the area of the screw head For the corresponding standard notch area, the wear condition of the screw head is judged by the difference between the standard notch area and the obtained notch area. The processing of the screw image by the industrial computer includes: performing Gaussian filtering on the original image and image sharpening with the Laplacian operator method, and then using an adaptive binarization algorithm to find the connected domain of the screw part and obtain the boundary information of the screw part , the thread information of the screw to be detected is calculated based on the connected domain of the screw, and the thread wear is judged according to the thread height.
(6)工控机控制机器人将螺钉夹取后存储在与螺钉对应的分类存储中。根据磨损情况判断螺钉磨损是否合格,不合格的不允许回收,直接由机器人夹取放置在不合格回收装置中,合格的螺钉根据识别的螺钉的边界信息获取螺钉的大小、形状、螺纹形状大小,通过预设的分类将标准,按照检测的螺钉的大小、形状、螺纹形状大小将合格螺钉夹取后放置在相对应的分类装置中存储。(6) The industrial computer controls the robot to pick up the screws and store them in the classified storage corresponding to the screws. Judging whether the screw wear is qualified according to the wear condition, unqualified ones are not allowed to be recycled, and are directly picked up by the robot and placed in the unqualified recycling device. The qualified screws obtain the size, shape, and thread shape of the screw according to the boundary information of the identified screw. Through the preset classification, the standard, according to the size, shape and thread shape of the detected screws, the qualified screws are clamped and placed in the corresponding classification device for storage.
螺栓头部bolt head
螺栓头部十字槽的磨损面积超过20%即为不合格,20%以内的为可以打磨的零件。通过预先设置的标准螺钉槽口面积和检测的螺钉槽口面积,根据两者的比值判断是否是合格的,如设标准的螺钉十字槽的面积设定为S,使用后的螺钉十字槽的面积为S1,当S1/S>1.2时,螺钉不合格;当S1/S<1.2时,螺钉合格。检测的螺钉面积根据对顶部相机的图像获取螺钉边界数据获得。由于螺钉的槽口面积和螺钉头部大小以及槽口形状有关系,在因此预先设置的标准槽口面积为多个与螺钉头部大小和槽口形状一一对应的标准槽口面积,在根据边界很容易获取螺钉大小和槽口形状,因此可以获得标准槽口面积。If the wear area of the bolt head cross groove exceeds 20%, it is unqualified, and if it is less than 20%, it is a part that can be polished. Through the pre-set standard screw notch area and the detected screw notch area, judge whether it is qualified according to the ratio of the two. For example, if the area of the standard screw cross groove is set as S, the area of the screw cross groove after use It is S1, when S1/S>1.2, the screw is unqualified; when S1/S<1.2, the screw is qualified. The detected screw area is obtained from the screw boundary data obtained from the image of the top camera. Since the notch area of the screw is related to the size of the screw head and the shape of the notch, the preset standard notch area is a plurality of standard notch areas corresponding to the size of the screw head and the shape of the notch. Boundary is easy to get screw size and notch shape, so standard notch area can be obtained.
螺杆部分Screw part
螺纹磨损部分长度超过螺栓或螺钉总螺纹长度的1/2时,即为不合格。螺纹磨损的判断规则为当螺纹某点剩余高度为低于螺纹标准高度的1/2时,设定以该螺纹检测点为中心,1/4个螺纹导程内的螺纹不合格。When the thread wear part length exceeds 1/2 of the total thread length of the bolt or screw, it is unqualified. The judgment rule for thread wear is that when the remaining height of a certain point of the thread is lower than 1/2 of the standard thread height, set the thread detection point as the center, and the thread within 1/4 of the thread lead is unqualified.
上下料子系统中的摄像头主要用于对分散开的螺栓螺钉进行定位,即经过图像处理获取螺钉在振动盘上的位置坐标,通过TCP/IP协议将该坐标传给机器人系统,机器人据此坐标实现对螺钉螺栓的抓取任务。The camera in the loading and unloading subsystem is mainly used to locate the scattered bolts and screws, that is, to obtain the position coordinates of the screws on the vibrating plate through image processing, and transmit the coordinates to the robot system through the TCP/IP protocol, and the robot realizes Grabbing tasks for screws and bolts.
由于拆下螺钉的表面灰度有一定的差距,且机器人抓取对螺钉位置坐标的准确度要求较高,因此图像处理算法中需要准确识别螺钉和计算螺钉位置,且对螺钉表面灰度等具有较好的鲁棒性。对采集的图像首先进行高斯滤波,采用Canny算子求取图像的边界,获得较为稳定边界特征。为了图像处理的稳定和减少计算量,按照螺钉定义的特征值,对获取的边界进行形态学开运算,筛选出螺钉的边界。基于螺钉的边界特征,计算出螺钉的方向和预定义的中心坐标值。Since there is a certain gap in the surface gray level of the removed screw, and the accuracy of the screw position coordinates is high for robot grasping, the image processing algorithm needs to accurately identify the screw and calculate the screw position, and the gray level of the screw surface, etc. Better robustness. Gaussian filtering is performed on the collected image first, and the boundary of the image is obtained by using the Canny operator to obtain a relatively stable boundary feature. In order to stabilize the image processing and reduce the amount of calculation, according to the eigenvalues defined by the screw, the morphological opening operation is performed on the acquired boundary, and the boundary of the screw is screened out. Based on the boundary features of the screw, the direction of the screw and the predefined center coordinate value are calculated.
在待检测螺栓的正上方安装一个相机,成为顶部相机;在待检测螺栓的周围分布1个相机用于检测螺栓的螺纹情况。其主要功能为:A camera is installed directly above the bolt to be detected, which becomes the top camera; a camera is distributed around the bolt to be detected to detect the thread condition of the bolt. Its main functions are:
(1)顶部相机用于检测螺栓头部状况,检测十字槽或一字槽的槽型损坏情况;(1) The top camera is used to detect the condition of the bolt head and detect the damage of the cross groove or slot;
(2)侧边相机检测螺杆情况,包括全螺纹和半螺纹情况,螺纹损坏情况;(2) The side camera detects the condition of the screw, including full thread and half thread, and thread damage;
螺钉头部磨损检测是否合格判断指标为槽口面积,因此在图像中需要准确计算出槽口面积。槽口面积计算基于槽口边界的提取。对采集的原始图像进行中值滤波,然后对图像进行锐化处理,如采用梯度算法或者sobel算子,用于加强图像中物体的边界。基于Canny算子求取图像中的边界,由于螺钉检测放置在固定的检测工位上,因此只需在图像中固定的区域中找出螺钉槽口的边界和螺钉顶部外圈的边界。在图像中通过计算找出的两个边界包络的面积,即可判断螺钉磨损情况。The judgment index for whether the screw head wear detection is qualified is the notch area, so the notch area needs to be accurately calculated in the image. The slot area calculation is based on the extraction of slot boundaries. Perform median filtering on the collected original image, and then sharpen the image, such as using gradient algorithm or sobel operator, to strengthen the boundary of the object in the image. The boundary in the image is obtained based on the Canny operator. Since the screw detection is placed on a fixed detection station, it is only necessary to find the boundary of the screw notch and the boundary of the outer circle of the screw top in the fixed area in the image. The screw wear can be judged by calculating the area of the two boundary envelopes found in the image.
螺钉螺栓的螺纹检测部分采用的是背光打光方式,通过二值化既可以获得螺钉螺栓的螺杆部分的边界。其图像处理流程为,对原始图像进行高斯滤波和拉普拉斯算子方法进行图像锐化,之后采用自适应二值化算法,找出螺杆部分的连通域。基于螺杆的连通域计算出待检测螺杆的螺纹的大径、小径、螺纹长度、螺纹个数、每个螺纹的高度等信息。在工控机获取相关信息后根据槽口面积判断螺钉头部磨损是否满足要求,同时判断螺杆的螺纹磨损长度是否满足要求,头部磨损以磨损后的面积与标准面积的比值判断,螺杆磨损以磨损螺纹的长度占总螺纹长度的比值判断,将螺钉分为合格和不合格两种,将不合格的螺钉放置在对应的收集装置中,然后将合格的螺钉,根据螺钉头部大小、槽口形状、螺杆长度等设置分类,根据获取的螺钉头部大小、槽口形状、螺杆长度信息将螺钉分别放置在对应的回收装置中,从而完成对螺钉的磨损识别以及对合格的螺钉根据形状大小槽口等进行分类回收。The thread detection part of the screw and bolt adopts the backlight lighting method, and the boundary of the screw part of the screw and bolt can be obtained through binarization. The image processing flow is to perform Gaussian filtering and Laplacian operator method on the original image to sharpen the image, and then use the adaptive binarization algorithm to find the connected domain of the screw part. Based on the connected domain of the screw, the major diameter, minor diameter, thread length, number of threads, and height of each thread of the screw to be detected are calculated. After the industrial computer obtains the relevant information, judge whether the wear of the screw head meets the requirements according to the notch area, and judge whether the thread wear length of the screw meets the requirements at the same time. The head wear is judged by the ratio of the worn area to the standard area, and the screw wear is judged by wear Determine the ratio of the thread length to the total thread length, divide the screws into qualified and unqualified, put the unqualified screws in the corresponding collection device, and then put the qualified screws according to the size of the screw head and the shape of the notch According to the obtained screw head size, notch shape, and screw length information, the screws are respectively placed in the corresponding recovery device, so as to complete the wear identification of the screws and the qualified screws according to the shape and size of the notch And so on for sorting and recycling.
显然本发明具体实现并不受上述方式的限制,只要采用了本发明的方法构思和技术方案进行的各种非实质性的改进,均在本发明的保护范围之内。Apparently, the specific implementation of the present invention is not limited by the above methods, as long as various insubstantial improvements are made by adopting the method concept and technical solutions of the present invention, they all fall within the protection scope of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711495112.9A CN108593653A (en) | 2017-12-31 | 2017-12-31 | A kind of screw classification of view-based access control model and damage detection device and method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711495112.9A CN108593653A (en) | 2017-12-31 | 2017-12-31 | A kind of screw classification of view-based access control model and damage detection device and method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN108593653A true CN108593653A (en) | 2018-09-28 |
Family
ID=63633615
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201711495112.9A Pending CN108593653A (en) | 2017-12-31 | 2017-12-31 | A kind of screw classification of view-based access control model and damage detection device and method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108593653A (en) |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109945789A (en) * | 2019-04-08 | 2019-06-28 | 安庆帝伯粉末冶金有限公司 | A kind of valve guide bushing dimensional inspection device |
| CN110059540A (en) * | 2019-02-28 | 2019-07-26 | 南京航空航天大学 | A kind of image processing method positioned for dissipating the identification of heap self-plugging rivet |
| CN112082946A (en) * | 2019-06-13 | 2020-12-15 | 撼讯科技股份有限公司 | Automatic detection system and method thereof |
| CN112657869A (en) * | 2020-12-24 | 2021-04-16 | 广州中设机器人智能装备股份有限公司 | Nut sorting equipment based on vision and sorting method thereof |
| CN114435925A (en) * | 2022-01-04 | 2022-05-06 | 中航华东光电(上海)有限公司 | Assembly screw automatic distribution device and distribution method thereof |
| CN115178492A (en) * | 2022-07-07 | 2022-10-14 | 山东中博智云计算机科技有限公司 | Dynamic positioning detection method and device for screw screening target in industry |
| CN115193679A (en) * | 2022-09-16 | 2022-10-18 | 江苏南江减速机有限公司 | Speed reducer shaft body machining system and working method |
| CN115239811A (en) * | 2022-07-15 | 2022-10-25 | 苏州汉特士视觉科技有限公司 | A positioning method, system, computer and storage medium based on binocular vision detection |
| CN115326517A (en) * | 2022-09-02 | 2022-11-11 | 齐齐哈尔华工机床股份有限公司 | A kind of impact sample machining accuracy detection system and detection method |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1898033A (en) * | 2003-12-30 | 2007-01-17 | 赞鸿制造业私人有限公司 | Fastener inspection system |
| CN102034098A (en) * | 2010-12-21 | 2011-04-27 | 上海电机学院 | Automatic bolt sorting system and automatic bolt sorting method |
| CN103206949A (en) * | 2013-04-11 | 2013-07-17 | 野象自动化机械(上海)有限公司 | Self-detecting self-positioning universal screw machine and positioning method thereof |
| CN104122265A (en) * | 2013-04-28 | 2014-10-29 | 郑州大学 | Method and system for checking screw hole thread missing of metal plate |
| CN103406284B (en) * | 2013-05-06 | 2015-06-03 | 吴守祥 | Method for detecting fastener image by using automatic fastener sorting machine |
-
2017
- 2017-12-31 CN CN201711495112.9A patent/CN108593653A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1898033A (en) * | 2003-12-30 | 2007-01-17 | 赞鸿制造业私人有限公司 | Fastener inspection system |
| CN102034098A (en) * | 2010-12-21 | 2011-04-27 | 上海电机学院 | Automatic bolt sorting system and automatic bolt sorting method |
| CN103206949A (en) * | 2013-04-11 | 2013-07-17 | 野象自动化机械(上海)有限公司 | Self-detecting self-positioning universal screw machine and positioning method thereof |
| CN104122265A (en) * | 2013-04-28 | 2014-10-29 | 郑州大学 | Method and system for checking screw hole thread missing of metal plate |
| CN103406284B (en) * | 2013-05-06 | 2015-06-03 | 吴守祥 | Method for detecting fastener image by using automatic fastener sorting machine |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110059540A (en) * | 2019-02-28 | 2019-07-26 | 南京航空航天大学 | A kind of image processing method positioned for dissipating the identification of heap self-plugging rivet |
| CN109945789A (en) * | 2019-04-08 | 2019-06-28 | 安庆帝伯粉末冶金有限公司 | A kind of valve guide bushing dimensional inspection device |
| CN109945789B (en) * | 2019-04-08 | 2024-05-28 | 安庆帝伯粉末冶金有限公司 | Valve guide pipe size inspection device |
| CN112082946A (en) * | 2019-06-13 | 2020-12-15 | 撼讯科技股份有限公司 | Automatic detection system and method thereof |
| CN112657869A (en) * | 2020-12-24 | 2021-04-16 | 广州中设机器人智能装备股份有限公司 | Nut sorting equipment based on vision and sorting method thereof |
| CN114435925A (en) * | 2022-01-04 | 2022-05-06 | 中航华东光电(上海)有限公司 | Assembly screw automatic distribution device and distribution method thereof |
| CN114435925B (en) * | 2022-01-04 | 2023-08-01 | 中航华东光电(上海)有限公司 | Automatic distributing device for assembly screw and distributing method thereof |
| CN115178492A (en) * | 2022-07-07 | 2022-10-14 | 山东中博智云计算机科技有限公司 | Dynamic positioning detection method and device for screw screening target in industry |
| CN115239811A (en) * | 2022-07-15 | 2022-10-25 | 苏州汉特士视觉科技有限公司 | A positioning method, system, computer and storage medium based on binocular vision detection |
| CN115326517A (en) * | 2022-09-02 | 2022-11-11 | 齐齐哈尔华工机床股份有限公司 | A kind of impact sample machining accuracy detection system and detection method |
| CN115193679A (en) * | 2022-09-16 | 2022-10-18 | 江苏南江减速机有限公司 | Speed reducer shaft body machining system and working method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108593653A (en) | A kind of screw classification of view-based access control model and damage detection device and method | |
| CN109785317B (en) | Automatic pile up neatly truss robot's vision system | |
| CN109772733B (en) | A vision-based defective bamboo block detection and sorting device and method | |
| CN108226164B (en) | Robot polishing method and system based on visual detection | |
| CN110314854A (en) | A kind of device and method of the workpiece sensing sorting of view-based access control model robot | |
| CN103464383A (en) | Industrial robot sorting system and method | |
| CN111537517A (en) | An unmanned intelligent stamping defect identification method | |
| CN103090792A (en) | Method and device which are based on machine vision and used for automatic and separate detection of unaccepted ball-pin product | |
| CN106872487A (en) | The surface flaw detecting method and device of a kind of view-based access control model | |
| CN104281838B (en) | High ferro contact net support meanss auricle fracture defect detection method based on HOG features | |
| CN107764839A (en) | A kind of steel wire rope surface defect online test method and device based on machine vision | |
| CN103785622B (en) | Based on the part method for sorting of the part sorting equipment of machine vision | |
| CN103913468A (en) | Multi-vision defect detecting equipment and method for large-size LCD glass substrate in production line | |
| CN107101598B (en) | An automatic detection method and device for concentricity quality of piezoelectric ceramic silver sheets | |
| CN109500657B (en) | A method and system for detecting broken knife based on vision | |
| CN113744247A (en) | PCB welding spot defect identification method and system | |
| CN116309277A (en) | Steel detection method and system based on deep learning | |
| CN107084992A (en) | A capsule detection method and system based on machine vision | |
| CN116277025A (en) | Object sorting control method and system of a robot for intelligent manufacturing | |
| CN108212807A (en) | A kind of method, apparatus and mechanical arm of robot segregating articles | |
| CN203508417U (en) | Sorting system of industrial robot | |
| CN114346821A (en) | Workpiece processing method and system and readable storage medium | |
| CN109358067A (en) | Computer vision-based motor ring varistor defect detection system and method | |
| CN110983609A (en) | Yarn joint detection device and using method thereof | |
| CN107398778A (en) | HSC Milling Tools wear vision in-situ monitor system and method |
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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180928 |
|
| RJ01 | Rejection of invention patent application after publication |