[go: up one dir, main page]

CN205466320U - Intelligent machine hand based on many camera lenses - Google Patents

Intelligent machine hand based on many camera lenses Download PDF

Info

Publication number
CN205466320U
CN205466320U CN201620083027.6U CN201620083027U CN205466320U CN 205466320 U CN205466320 U CN 205466320U CN 201620083027 U CN201620083027 U CN 201620083027U CN 205466320 U CN205466320 U CN 205466320U
Authority
CN
China
Prior art keywords
manipulator
biological contact
image
contact device
model
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.)
Expired - Fee Related
Application number
CN201620083027.6U
Other languages
Chinese (zh)
Inventor
杜娟
谭健胜
冯颖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
South China University of Technology SCUT
Original Assignee
South China University of Technology SCUT
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 South China University of Technology SCUT filed Critical South China University of Technology SCUT
Priority to CN201620083027.6U priority Critical patent/CN205466320U/en
Application granted granted Critical
Publication of CN205466320U publication Critical patent/CN205466320U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)

Abstract

The utility model discloses an intelligent machine hand based on many camera lenses, include many joints multifunctional machinery hand, be used for to gather to wait to assemble the CCD camera of PCB board image, biological contact device and computer, the CCD camera install many joints multifunctional machinery on hand, biological contact device installs the finger tip at many functions of joint manipulator, CCD camera, biological contact device and many joints multifunctional machinery hand and computer link. The utility model discloses on the basis of two meshes location, biological contact device has added in the manipulator, can carry out the accurate positioning to the assembly target area, improved the rate of accuracy of special -shaped assembly, the utilization be the sensitive material's among the biological contact device pressure - electric output conversion relationship and the manipulator position and the mathematic model of pressure, the utility model discloses a high accuracy and the real -time of dysmorphism components and parts are assembled, have improved the production efficiency of electron assembly industry.

Description

一种基于多镜头的智能机械手An intelligent manipulator based on multi-lens

技术领域technical field

本实用新型涉及电子装配领域,具体涉及一种基于多镜头的智能机械手。The utility model relates to the field of electronic assembly, in particular to an intelligent manipulator based on multiple lenses.

背景技术Background technique

目前,在机械电子装配行业中,把异形元器件安装到PCB上往往依靠流水线上的工人进行手动装配。人力装配主要是依靠人眼和经验,在长时间的工作后无法保证生产效率,而且手动装配带有一定的主观性,也不能维持每件产品的同等质量,因此把自动化技术引入到电子装配业迫在眉睫。将自动化技术取代人力装配能有效地提高生产效率,节省人力资源,保证装配的质量。At present, in the mechanical and electronic assembly industry, the installation of special-shaped components on the PCB often relies on manual assembly by workers on the assembly line. Manpower assembly mainly relies on human eyes and experience, and cannot guarantee production efficiency after a long time of work. Moreover, manual assembly is subjective and cannot maintain the same quality of each product. Therefore, automation technology is introduced into the electronic assembly industry imminent. Replacing human assembly with automation technology can effectively improve production efficiency, save human resources, and ensure assembly quality.

相关企业已经利用机械手代替人手在装配流水线进行工作,但由于机械手没有人的双眼来进行定位,也不像工人可以依靠手部的触感经验来提示装配,因此机械手的装配准确率反而不如人力装配,生产效率无法得到提高。Relevant enterprises have used manipulators instead of human hands to work on the assembly line, but because the manipulators do not have human eyes for positioning, and unlike workers who can rely on the tactile experience of the hands to prompt assembly, the assembly accuracy of manipulators is not as good as human assembly. Production efficiency cannot be improved.

实用新型内容Utility model content

为了克服现有技术存在的缺点与不足,本实用新型提供一种基于多镜头的智能机械手。In order to overcome the shortcomings and deficiencies of the prior art, the utility model provides an intelligent manipulator based on multi-lens.

本实用新型采用如下技术方案:The utility model adopts the following technical solutions:

一种基于多镜头的智能机械手,包括多关节多功能机械手、用于采集待装配PCB板图像的CCD摄像机、生物触点装置及计算机,所述CCD摄像机安装在多关节多功能机械手上,生物触点装置安装在多关节多功能机械手的手指尖,所述CCD摄像机、生物触点装置及多关节多功能机械手与计算机连接。A multi-lens-based intelligent manipulator includes a multi-joint multi-functional manipulator, a CCD camera for collecting images of PCB boards to be assembled, a biological contact device and a computer, the CCD camera is installed on the multi-joint multi-functional manipulator, and the biological touch The point device is installed on the fingertip of the multi-joint multifunctional manipulator, and the CCD camera, the biological contact device and the multi-joint multifunctional manipulator are connected with the computer.

所述CCD摄像机具体为两个,分别安装在多关节多功能机械手前臂的左侧及右侧。There are specifically two CCD cameras, which are respectively installed on the left side and the right side of the forearm of the multi-joint multifunctional manipulator.

所述生物触点装置包括用敏感材料制成的贴片及用于测量贴片形变并输出电信号的信号测量电路,所述贴片覆盖在机械手的手指尖上,所述贴片与信号测量电路连接,信号测量电路与计算机连接,所述信号测量电路内置在多关节多功能机械手内部。The biological contact device includes a patch made of sensitive materials and a signal measurement circuit for measuring the deformation of the patch and outputting an electrical signal. The patch is covered on the fingertip of the manipulator, and the patch is connected with the signal measurement circuit The circuit is connected, and the signal measurement circuit is connected with the computer, and the signal measurement circuit is built in the multi-joint multifunctional manipulator.

所述贴片的形状为指套式。The shape of the patch is finger cuff type.

所述敏感材料具体为导电橡胶。The sensitive material is specifically conductive rubber.

所述两个CCD摄像机的型号及参数完全相同,两个CCD摄像机的坐标系共面,且各坐标轴平行放置。The models and parameters of the two CCD cameras are identical, the coordinate systems of the two CCD cameras are coplanar, and the coordinate axes are placed in parallel.

一种智能机械手的定位装配方法,包括如下步骤:A method for positioning and assembling an intelligent manipulator, comprising the steps of:

S1待装配PCB板移动至机械手前方,打开两个CCD摄像机获取两张待装配PCB板的图像,分别为左、右图像;S1 The PCB board to be assembled moves to the front of the manipulator, and two CCD cameras are turned on to obtain two images of the PCB board to be assembled, which are left and right images respectively;

S2计算机将获得的两张PCB板图像与计算机内预先输入的PCB模板进行匹配,确定在两张图像中异形件待装配的目标区域;The S2 computer matches the obtained two PCB board images with the pre-input PCB template in the computer, and determines the target area to be assembled of the special-shaped parts in the two images;

S3利用双目定位算法测量得到待装配的目标区域与机械手指尖的距离,计算机控制机械手进行移动至待装配的目标区域,完成初步定位;S3 uses the binocular positioning algorithm to measure the distance between the target area to be assembled and the tip of the manipulator, and the computer controls the manipulator to move to the target area to be assembled to complete the preliminary positioning;

S4利用机械手指尖的生物触点装置与S3中初步定位后的目标区域进行接触,将贴片产生的形变电信号通过信号测量电路输出到计算机,计算机进行位置的微调,实现精确定位,完成装配。S4 uses the biological contact device at the tip of the robotic finger to contact the target area after the initial positioning in S3, and outputs the deformation electrical signal generated by the patch to the computer through the signal measurement circuit, and the computer fine-tunes the position to achieve precise positioning. assembly.

所述S2具体为:对两个CCD摄像机获取的待装配PCB板的图像进行滤波去噪,再利用边缘检测算子提取PCB板的边缘部分,去除背景部分,然后采用分段线性变换对图像增强,提高图像的对比度,最后采用基于灰度值的模板匹配方法确定待装配的目标区域。Said S2 is specifically: filter and denoise the images of the PCB board to be assembled acquired by two CCD cameras, and then use the edge detection operator to extract the edge part of the PCB board, remove the background part, and then use piecewise linear transformation to enhance the image , improve the contrast of the image, and finally use the template matching method based on the gray value to determine the target area to be assembled.

所述S3利用双目定位算法测量得到待装配的目标区域与机械手指尖的距离,计算机控制机械手进行移动至待装配的目标区域,完成初步定位,具体为:The S3 uses the binocular positioning algorithm to measure the distance between the target area to be assembled and the tip of the manipulator, and the computer controls the manipulator to move to the target area to be assembled to complete the preliminary positioning, specifically:

S3.1采用张正友标定算法求解CCD摄像机的内部参数矩阵及外部参数矩阵,再进行双目立体定标,确定两个摄像机之间的相对位置关系,所述相对位置关系包括旋转矩阵R及平移向量T;S3.1 Use Zhang Zhengyou's calibration algorithm to solve the internal parameter matrix and external parameter matrix of the CCD camera, and then perform binocular stereo calibration to determine the relative positional relationship between the two cameras. The relative positional relationship includes the rotation matrix R and the translation vector T;

S3.2采用基于模板匹配的灰度互相关匹配方法完成两张图像的像素点匹配;S3.2 Use the template matching-based gray level cross-correlation matching method to complete the pixel point matching of the two images;

S3.3利用双目定位算法即双目测距系统成像原理测得待装配的目标区域与机械手指尖的距离l;S3.3 Use the binocular positioning algorithm, that is, the imaging principle of the binocular ranging system, to measure the distance l between the target area to be assembled and the tip of the manipulator;

ll == BB ff xx xx == xx ll ee ff tt -- xx rr ii gg hh tt

其中,左右两摄像机的投影中心的距离为基线距B,目标点A经过由两光轴平行的左右摄像机组成的双目测距系统时,分别成像于左CCD像面上的A1点及右CCD像面上的A2点,其在左右像面上的位置分别为xleft和xright,两摄像机的焦距为f,x为目标点A通过双目摄像机分别成像在左右CCD像面上成像点的位置差。Among them, the distance between the projection centers of the left and right cameras is the baseline distance B. When the target point A passes through the binocular ranging system composed of two left and right cameras with parallel optical axes, it will be imaged on the A1 point on the left CCD image surface and the right CCD respectively. Point A2 on the image plane, its positions on the left and right image planes are x left and x right respectively, the focal length of the two cameras is f, and x is the target point A imaged on the left and right CCD image planes by binocular cameras Poor location.

所述S4具体为:机械手指尖的生物触点装置在完成初步定位后,与待装配PCB板接触,敏感材料会发生形变导致受到压力的改变,输出的电信号改变,计算机根据输出的信号以及压力与位置的数学模型对机械手的位置进行调整,从而达到精确定位装配异形件的目的。The S4 is specifically: after the preliminary positioning of the biological contact device at the tip of the robot finger, it contacts the PCB board to be assembled, the sensitive material will be deformed and the pressure will be changed, and the output electrical signal will be changed. The mathematical model of pressure and position adjusts the position of the manipulator, so as to achieve the purpose of accurately positioning and assembling special-shaped parts.

本实用新型的有益效果:The beneficial effects of the utility model:

(1)本实用新型可以在无人工干预的状态下完成对PCB板待装配区域的自动精确定位,完成异形件的装配工作;(1) The utility model can complete the automatic and precise positioning of the area to be assembled on the PCB without manual intervention, and complete the assembly of special-shaped parts;

(2)本实用新型采用两个CCD摄像头分别采集一幅PCB板的图像进行处理,满足了工业电子装配的快速性和实时性要求;(2) The utility model adopts two CCD cameras to respectively collect an image of a PCB board for processing, which meets the rapidity and real-time requirements of industrial electronic assembly;

(3)本实用新型在机械手中加入生物触觉装置,能对装配目标区域进行精确定位,提高了异形件装配的准确率;(3) The utility model adds a biological tactile device in the manipulator, which can accurately locate the assembly target area and improve the accuracy of the assembly of special-shaped parts;

(4)本实用新型在机械手的定位中使用了数字图像处理技术中的双目定位算法,能有效地测量得到机械手与目标装配区域间的距离;(4) The utility model uses the binocular positioning algorithm in the digital image processing technology in the positioning of the manipulator, which can effectively measure the distance between the manipulator and the target assembly area;

(5)本实用新型利用模板匹配的方法来确定异形件装配的目标区域,提高了后续定位工作的准确性。(5) The utility model uses the method of template matching to determine the target area for assembling special-shaped parts, which improves the accuracy of subsequent positioning work.

附图说明Description of drawings

图1是本实用新型的智能机械手的结构示意图;Fig. 1 is the structural representation of the intelligent manipulator of the present utility model;

图2是本实用新型生物触点装置的结构示意图;Fig. 2 is a structural schematic diagram of the biological contact device of the present utility model;

图3a是本实用新型的模板匹配法的被搜索图;Fig. 3 a is the searched figure of the template matching method of the present utility model;

图3b是本实用新型的匹配模板示意图;Fig. 3b is a schematic diagram of a matching template of the present invention;

图4是本实用新型的工作流程图。Fig. 4 is a work flow diagram of the utility model.

具体实施方式detailed description

下面结合实施例及附图,对本实用新型作进一步地详细说明,但本实用新型的实施方式不限于此。The utility model will be described in further detail below in conjunction with the embodiments and accompanying drawings, but the implementation of the utility model is not limited thereto.

实施例Example

如图1所示,一种基于多镜头的智能机械手,包括一个多关节多功能机械手1、用于采集待装配PCB板图像的CCD摄像机2、生物触点装置3及计算机,所述CCD摄像机具体为两个,分别安装在机械手前臂的左侧及右侧,摄像机的具体位置可以根据实际情况安装在机械手的不同部位,生物触点装置可以将待装配区域的位置信息转化为电信号反馈到计算机。生物触点的数目可以根据实际需求加以调整。计算机负责对采集的图像以及反馈的电信号进行处理并发出控制信号,指挥机械手完成最终的定位及装配异形件的工作,所述机械手内置机械手的控制电路,控制电路与计算机连接。As shown in Figure 1, a kind of intelligent manipulator based on multi-lens, comprises a multi-joint multifunctional manipulator 1, is used for collecting the CCD camera 2 of PCB board image to be assembled, biological contact device 3 and computer, and described CCD camera is specific There are two cameras, which are respectively installed on the left and right sides of the forearm of the manipulator. The specific position of the camera can be installed on different parts of the manipulator according to the actual situation. The biological contact device can convert the position information of the area to be assembled into an electrical signal and feed it back to the computer. . The number of biological contacts can be adjusted according to actual needs. The computer is responsible for processing the collected images and feedback electrical signals and sending out control signals to instruct the manipulator to complete the final positioning and assembly of special-shaped parts. The manipulator has a built-in control circuit of the manipulator, and the control circuit is connected to the computer.

本实用新型采用的两个CCD摄像机型号、参数保持一致,基本保持光轴平行、双目摄像机坐标系共面且各坐标轴平行放置,同步采集的左右图像大小、比例一致,图像的灰度信息保持比较完整,The models and parameters of the two CCD cameras used in the utility model are consistent, the optical axes are basically kept parallel, the coordinate systems of the binocular cameras are coplanar and the coordinate axes are placed in parallel, the left and right images collected synchronously have the same size and proportion, and the grayscale information of the images keep relatively intact,

如图2所示,所述生物触点装置包括用敏感材料制成的贴片5及用于测量指套形变并输出电信号的信号测量电路4,所述贴片5覆盖在机械手的手指尖上,所述贴片与信号测量电路连接,信号测量电路4与计算机连接,所述信号测量电路内置在多关节多功能机械手内部。本实施例中贴片选用指套式,并且采用三个贴片,套在机械手的手指尖上。As shown in Figure 2, the biological contact device includes a patch 5 made of sensitive materials and a signal measurement circuit 4 for measuring the deformation of the finger cuff and outputting an electrical signal. The patch 5 is covered on the fingertip of the manipulator. Above, the patch is connected to the signal measurement circuit, the signal measurement circuit 4 is connected to the computer, and the signal measurement circuit is built in the multi-joint multifunctional manipulator. In this embodiment, the patch adopts a finger cot type, and three patches are used to be placed on the fingertips of the manipulator.

所述敏感材料具有压力-电输出特性,可以将受到的压力转化为电信号输出。本实施例中贴片的形状为指套式,采用的敏感材料为导电橡胶,用该敏感材料制成的生物触点装置像指套一般安装在机械手的指尖上,当指尖接触到PCB板时,生物触点装置上的敏感材料的由于形变受到的压力会发生改变,从而导致输出电信号的改变。通过信号测量电路,可以测量得到生物触点装置由于形变而发生改变的输出电信号作为输出信号传送至计算机,计算机根据预先得到的数学模型即可得到目前机械手所处的位置,并输出相应的控制信号进行调整。The sensitive material has pressure-electrical output characteristics, and can convert received pressure into electrical signal output. In this embodiment, the shape of the patch is a fingertip, and the sensitive material used is conductive rubber. The biological contact device made of this sensitive material is installed on the fingertip of the manipulator like a fingertip. When the fingertip touches the PCB When the board is pressed, the pressure on the sensitive material on the biological contact device due to deformation will change, resulting in a change in the output electrical signal. Through the signal measurement circuit, the output electrical signal of the biological contact device changed due to deformation can be measured and sent to the computer as the output signal, and the computer can obtain the current position of the manipulator according to the pre-obtained mathematical model, and output the corresponding control The signal is adjusted.

图3a为被搜索图,图3b为匹配模板,设匹配模板叠放在被搜索图上进行平移,模板覆盖下的那块被搜索图为子图,比较子图和匹配模板中的内容,若两者相似度量最大则表示两者内容一致,此时的子图则为待寻找的匹配区域。Figure 3a is the searched image, and Figure 3b is the matching template. Let the matching template be superimposed on the searched image for translation, and the searched image covered by the template is a subgraph. Compare the contents of the subgraph and the matching template. If The largest similarity measure between the two means that the content of the two is consistent, and the subgraph at this time is the matching area to be found.

如图4所示,采用本机械手实现的定位装配方法,包括如下步骤:As shown in Figure 4, the positioning and assembly method implemented by this manipulator includes the following steps:

S1获取待装配PCB板的图像。S1 acquires the image of the PCB board to be assembled.

待装配的PCB板经流水线运送至机械手的前方,调节好光源的亮度,通过左右两个CCD摄像机分别拍摄得到标PCB板图像,安装在左侧的CCD摄像机成为左CCD摄像机,图像称为左图像,右CCD摄像机拍摄的图像称为右图像。The PCB board to be assembled is transported to the front of the manipulator through the assembly line, the brightness of the light source is adjusted, and the images of the marked PCB board are obtained by shooting with two CCD cameras on the left and right respectively. The CCD camera installed on the left becomes the left CCD camera, and the image is called the left image. , the image captured by the right CCD camera is called the right image.

S2模板匹配寻找待装配目标区域。S2 template matching finds the target region to be assembled.

从工业现场采集得到的PCB板图像存在较多噪声,因此首先要对图像进行滤波去噪。摄像机采集的图像包括了待装配的PCB板,称为前景,同时图像上还包括了背景部分,要对目标区域进行辨识和分析,首先就要把它从背景中提取出来,因此要对图像进行图像分割处理。由于目标(PCB板)是规则的几何形状,可以利用边缘检测算子提取PCB板的边缘部分,去取背景部分。There is a lot of noise in the PCB board image collected from the industrial site, so it is necessary to filter and denoise the image first. The image collected by the camera includes the PCB board to be assembled, which is called the foreground. At the same time, the image also includes the background part. To identify and analyze the target area, it must first be extracted from the background, so the image must be processed Image segmentation processing. Since the target (PCB board) is a regular geometric shape, an edge detection operator can be used to extract the edge part of the PCB board to extract the background part.

为了提高图像的辨识度,将图像的细节信息以及边缘进行突出和强化,有利于后续待装配目标区域的模板匹配,需要对PCB板图像进行图像增强,提高图像的对比度,将原灰度值区间范围按照某种映射关系进行转换,借此实现背景图像与目标图像对比度增强的效果。本实用新型采用的是分段线性变换增强方法。设原始图像的灰度函数为f(r,c),灰度范围为[0,Mf],变换后的图像函数表示为g(r,c),灰度范围为[0,Mg],变换公式可以表示为:In order to improve the recognition of the image, highlight and strengthen the details and edges of the image, which is beneficial to the template matching of the target area to be assembled, it is necessary to enhance the image of the PCB board image, improve the contrast of the image, and convert the original gray value interval The range is converted according to a certain mapping relationship, thereby achieving the effect of enhancing the contrast between the background image and the target image. The utility model adopts a piecewise linear transformation enhancement method. Suppose the grayscale function of the original image is f(r,c), the grayscale range is [0,M f ], the transformed image function is expressed as g(r,c), and the grayscale range is [0,M g ] , the transformation formula can be expressed as:

Mm gg -- dd Mm ff -- bb &lsqb;&lsqb; ff (( rr ,, cc )) -- bb &rsqb;&rsqb; ++ dd bb &le;&le; ff (( rr ,, cc )) &le;&le; Mm ff dd -- cc bb -- aa &lsqb;&lsqb; ff (( rr ,, cc )) -- aa &rsqb;&rsqb; ++ cc aa &le;&le; ff (( rr ,, cc )) << bb cc aa ff (( rr ,, cc )) 00 &le;&le; ff (( rr ,, cc )) &le;&le; aa

模板匹配是通过计算模板图像和待搜索图像的相似度量,从而在待搜索图像中找到模板图像的过程。模板匹配的过程可以表述为:首先按像素计算模板图像与待搜索图像的相似度量,然后找到最大的相似度量区域作为匹配位置,其原理如图3a及图3b所示。Template matching is the process of finding the template image in the image to be searched by calculating the similarity measure between the template image and the image to be searched. The process of template matching can be described as: first calculate the similarity measure between the template image and the image to be searched pixel by pixel, and then find the largest similarity measure region as the matching position. The principle is shown in Figure 3a and Figure 3b.

在对PCB板图像进行图像增强以后,由于PCB板图像各区域的灰度值分布是均匀固定的,故本实用新型采用了基于灰度值的模板匹配方法。基于灰度值的模板匹配方法将整幅图像的灰度值作为相似度量,利用定义好的搜索策略按照从上到下、从左到右的顺序在待搜索图像中搜索符合条件的区域,通过设定一个指定大小的搜索窗口,在搜索窗口中进行搜索比较。After image enhancement is performed on the PCB board image, since the distribution of gray values in each area of the PCB board image is uniform and fixed, the utility model adopts a template matching method based on gray values. The template matching method based on gray value takes the gray value of the whole image as a similarity measure, and uses the defined search strategy to search for qualified regions in the image to be searched in order from top to bottom and from left to right. Set a search window with a specified size, and perform search comparison in the search window.

待搜索图像中目标物的位置可以通过平移来描述。模板由图像t(r,c)来表示,其中的感兴趣区域指定为T,模板匹配就是在待匹配图像中按照一定顺序平移模板感兴趣区域T,然后计算待匹配图像中该区域与模板感兴趣区域的相似度量值s。相似度量由下式描述:The position of the object in the image to be searched can be described by translation. The template is represented by an image t(r,c), where the region of interest is designated as T. Template matching is to translate the region of interest T of the template in a certain order in the image to be matched, and then calculate the relationship between the region and the template in the image to be matched. The similarity measure s for the region of interest. The similarity measure is described by the following formula:

s(r,c)=s{t(u,v),f(r+u,c+v);(u,v)∈T}s(r,c)=s{t(u,v),f(r+u,c+v);(u,v)∈T}

其中s(r,c)表示基于灰度值计算的相似度量,t(u,v)表示模板中各点的灰度值,f(r+u,c+v)表示模板感兴趣区域移到图像当前位置的灰度值。Where s(r,c) represents the similarity measure calculated based on the gray value, t(u,v) represents the gray value of each point in the template, f(r+u,c+v) represents the region of interest of the template moved to The grayscale value of the image's current position.

求取相似度量的最简单方法是计算两图像之间灰度值差值的绝对值之和(SAD)或所有差值的平方和(SSD),SAD和SSD可以分别用以下两式表示:The easiest way to obtain the similarity measure is to calculate the sum of absolute values (SAD) or the sum of squares (SSD) of all differences in gray values between two images. SAD and SSD can be expressed by the following two formulas respectively:

sthe s aa dd (( rr ,, cc )) == 11 nno &Sigma;&Sigma; (( uu ,, vv )) &Element;&Element; TT || tt (( uu ,, vv )) -- ff (( rr ++ uu ,, cc ++ vv )) ||

sthe s sthe s dd (( rr ,, cc )) == 11 nno &Sigma;&Sigma; (( uu ,, vv )) &Element;&Element; TT &lsqb;&lsqb; tt (( uu ,, vv )) -- ff (( rr ++ uu ,, cc ++ vv )) &rsqb;&rsqb; 22

其中,n表示模板该兴趣区域内像素点的数量,即n=|T|。对于SAD和SSD来说,相似度量的值越大,待搜索图像与模板之间的差别也就越大。采用基于灰度值的模板匹配方法即可确定待装配目标区域。Wherein, n represents the number of pixels in the region of interest of the template, that is, n=|T|. For SAD and SSD, the greater the value of the similarity measure, the greater the difference between the image to be searched and the template. The target area to be assembled can be determined by using the template matching method based on the gray value.

S3利用双目定位算法测量得到待装配的目标区域与机械手指尖的距离,计算机控制机械手进行移动至待装配的目标区域,完成初步定位;S3 uses the binocular positioning algorithm to measure the distance between the target area to be assembled and the tip of the manipulator, and the computer controls the manipulator to move to the target area to be assembled to complete the preliminary positioning;

S3.1对双目摄像机进行标定。S3.1 Calibrate the binocular camera.

由于本文采用的是参数完全相同的两台摄像机组成双目立体系统,因此提出了先分别对两台摄像机进行定标,求解其内外参数。图像坐标系与世界坐标系之间的转换关系为:Since this paper uses two cameras with identical parameters to form a binocular stereo system, it is proposed to calibrate the two cameras first, and then solve their internal and external parameters. The conversion relationship between the image coordinate system and the world coordinate system is:

sthe s uu vv 11 == ff xx 00 uu 00 00 00 ff ythe y vv 00 00 00 00 11 00 RR 33 &times;&times; 33 TT 33 &times;&times; 11 00 TT 11 Xx ww YY ww ZZ ww 11 == AA Mm Xx ww YY ww ZZ ww 11 == Hh Xx ww YY ww ZZ ww 11

A为摄像机的内参数矩阵,M由摄像机相对于世界坐标系的位置和方向所决定,与摄像机的内部参数图针孔摄像机模型无关,称M为摄像机外部参数矩阵,使用张正友标定算法求解摄像机的内部参数矩阵和外部参数矩阵。A is the internal parameter matrix of the camera, M is determined by the position and direction of the camera relative to the world coordinate system, and has nothing to do with the pinhole camera model of the internal parameter map of the camera. M is called the external parameter matrix of the camera, and the calibration algorithm of the camera is used to solve the camera Intrinsic parameter matrix and extrinsic parameter matrix.

在完成对单个相机的标定,获取单个相机的内外参数后,再进行一次双目立体定标,计算左右两摄像机之间的相对位置即外参数,即左右两摄像机的相对位置关系,包括旋转矩阵R和平移向量T。After completing the calibration of a single camera and obtaining the internal and external parameters of a single camera, perform binocular stereo calibration again to calculate the relative position between the left and right cameras, that is, the external parameters, that is, the relative positional relationship between the left and right cameras, including the rotation matrix R and translation vector T.

假设棋盘格标定板上点P的三维世界坐标为Xw,使用两摄像机同时采集图像,P点在左右摄像机坐标系下的坐标分别为XL和XR,左右摄像机的外参矩阵分别为(RL,tL)和(RR,tR),根据世界坐标系与摄像机坐标系的转换关系有:Assuming that the three-dimensional world coordinates of point P on the checkerboard calibration board are X w , and two cameras are used to collect images at the same time, the coordinates of point P in the coordinate system of the left and right cameras are X L and X R respectively, and the external parameter matrices of the left and right cameras are respectively ( R L ,t L ) and (R R ,t R ), according to the conversion relationship between the world coordinate system and the camera coordinate system:

Xx LL == RR LL Xx WW ++ tt LL Xx RR == RR RR Xx WW ++ tt RR

根据上式可以得到从左摄像机到右摄像机的变换关系:According to the above formula, the transformation relationship from the left camera to the right camera can be obtained:

XR=RXL+TX R = RX L +T

其中in

R=RRRL -1,T=tR-RtL R=R R R L -1 , T=t R -Rt L

那么根据左右摄像机各自的外参数就可以获取双目视觉系统中立体相机的关系参数,即立体相机的位置关系,至此完成双目摄像机的标定工作。Then, according to the respective external parameters of the left and right cameras, the relationship parameters of the stereo cameras in the binocular vision system, that is, the positional relationship of the stereo cameras, can be obtained, and the calibration of the binocular cameras is thus completed.

S3.2采用基于模板匹配的灰度互相关匹配方法完成两张图像的像素点匹配;S3.2 Use the template matching-based gray level cross-correlation matching method to complete the pixel point matching of the two images;

本实用新型所采用的左右摄像机型号、参数保持一致,基本保持光轴平行、双目摄像机坐标系共面且各坐标轴平行放置,同步采集的左右图像大小、比例一致,图像的灰度信息保持比较完整,且待装配的目标区域图像已在S2中确定。因此本实用新型采用基于模板匹配的灰度互相关匹配方法完成目标图像区域的高精度匹配。The models and parameters of the left and right cameras used in the utility model are consistent, the optical axes are basically kept parallel, the coordinate systems of the binocular cameras are coplanar and the coordinate axes are placed in parallel, the left and right images collected synchronously have the same size and proportion, and the gray information of the images remains It is relatively complete, and the image of the target area to be assembled has been determined in S2. Therefore, the utility model adopts the gray-scale cross-correlation matching method based on the template matching to complete the high-precision matching of the target image area.

归一化互相关匹配算法根据模板图像与待匹配图像上搜索子图之间建立的互相关函数来判断是否匹配,使用互相关函数表达式如下:The normalized cross-correlation matching algorithm judges whether the match is based on the cross-correlation function established between the template image and the search sub-image on the image to be matched. The expression of the cross-correlation function is as follows:

NN (( ii ,, jj )) == &Sigma;&Sigma; mm == 11 Mm &Sigma;&Sigma; nno == 11 NN TT (( mm ,, nno )) SS ii ,, jj (( mm ,, nno )) &Sigma;&Sigma; mm == 11 Mm &Sigma;&Sigma; nno == 11 NN TT 22 (( mm ,, nno )) &Sigma;&Sigma; mm == 11 Mm &Sigma;&Sigma; nno == 11 NN &lsqb;&lsqb; SS ii ,, jj (( mm ,, nno )) &rsqb;&rsqb; 22

NN (( ii ,, jj )) == &Sigma;&Sigma; mm == 11 Mm &Sigma;&Sigma; nno == 11 NN (( TT (( mm ,, nno )) -- TT (( mm ,, nno )) &OverBar;&OverBar; )) (( SS ii ,, jj (( mm ,, nno )) -- SS ii ,, jj (( mm ,, nno )) &OverBar;&OverBar; )) &Sigma;&Sigma; mm == 11 Mm &Sigma;&Sigma; nno == 11 NN &lsqb;&lsqb; TT (( mm ,, nno )) -- TT (( mm ,, nno )) &OverBar;&OverBar; &rsqb;&rsqb; 22 &Sigma;&Sigma; mm == 11 Mm &Sigma;&Sigma; nno == 11 NN &lsqb;&lsqb; SS ii ,, jj (( mm ,, nno )) -- SS ii ,, jj (( mm ,, nno )) &OverBar;&OverBar; &rsqb;&rsqb; 22

TT (( mm ,, nno )) &OverBar;&OverBar; == 11 Mm &times;&times; NN &Sigma;&Sigma; mm == 11 Mm &Sigma;&Sigma; nno == 11 NN TT (( mm ,, nno ))

SS ii ,, jj (( mm ,, nno )) &OverBar;&OverBar; == 11 Mm &times;&times; NN &Sigma;&Sigma; mm == 11 Mm &Sigma;&Sigma; nno == 11 NN SS ii ,, jj (( mm ,, nno ))

在上式中,模板图像为T(m,n),模板图像大小为M×N,为T(m,n)上所有像素灰度的平均值;在参考图像上以(i,j)为左上角像素点的搜索图像区域为Si,j(m,n),为搜索图像上所有像素灰度的平均值。图像匹配是匹配目标图像区域即模板的左上角像素点。互相关函数值N(i,j)的取值范围是0≤N(i,j)≤1,它的值的大小取决于参考图像上以(i,j)为左上角像素点的搜索图像区域与模板图像的匹配程度。某像素点对应的互相关函数值越大,说明该像素点匹配程度越高,选取互相关函数值最大的像素点,即为最匹配像素点。In the above formula, the template image is T(m,n), and the size of the template image is M×N, is the average gray value of all pixels on T(m,n); the search image area with (i,j) as the upper left corner pixel on the reference image is S i,j (m,n), is the average of the gray values of all pixels in the search image. Image matching is to match the upper left pixel of the target image area, that is, the template. The value range of the cross-correlation function value N(i,j) is 0≤N(i,j)≤1, and its value depends on the search image with (i,j) as the upper left corner pixel on the reference image How well the region matches the template image. The larger the value of the cross-correlation function corresponding to a certain pixel point, the higher the matching degree of the pixel point is, and the pixel point with the largest cross-correlation function value is selected as the most matching pixel point.

在完成左右图像像素点的匹配以后,如图所示,根据双目测距系统成像原理,左右两型号一致的CCD摄像机在同一平面上平行放置,左右两摄像机的投影中心的距离为基线距B。After completing the matching of the left and right image pixels, as shown in the figure, according to the imaging principle of the binocular ranging system, the left and right CCD cameras of the same model are placed in parallel on the same plane, and the distance between the projection centers of the left and right cameras is the baseline distance B .

目标点A经过由两光轴平行的左右摄像机组成的双目测距系统时,分别成像于左CCD像面上的A1点及右CCD像面上的A2点,其在左右像面上的位置分别为xleft和xright。已知两摄像机焦距均为f,根据三角形相似原理可推导出被测距离l:When the target point A passes through the binocular ranging system composed of two left and right cameras with parallel optical axes, it will be imaged on the A1 point on the left CCD image plane and the A2 point on the right CCD image plane respectively, and its position on the left and right image planes are x left and x right respectively. It is known that the focal length of the two cameras is f, and the measured distance l can be deduced according to the triangle similarity principle:

ll == BB ff xx xx == xx ll ee ff tt -- xx rr ii gg hh tt

x为A点通过双目摄像机分别成像在左右CCD像面上成像点的位置差,又被称为双目视差。可见在双目摄像机光轴严格平行的理想状态下,并且同时获取目标物体的图像,通过图像匹配算法确定同一目标在左右CCD图像中的相应位置,计算出双目视差x,又己知焦距和基线大小,可以通过上式得到目标距离,至此完成待装配目标区域的初定位。x is the position difference between the imaging points of point A on the left and right CCD image planes respectively imaged by binocular cameras, which is also called binocular parallax. It can be seen that under the ideal state that the optical axes of the binocular cameras are strictly parallel, and the image of the target object is acquired at the same time, the corresponding position of the same target in the left and right CCD images is determined by the image matching algorithm, and the binocular parallax x is calculated. Baseline size, the target distance can be obtained through the above formula, so far the initial positioning of the target area to be assembled is completed.

S4利用机械手指尖的生物触点装置与S3中初步定位后的目标区域进行接触,将贴片产生的形变电信号通过信号测量电路输出到计算机,计算机进行位置的微调,实现精确定位,完成装配。S4 uses the biological contact device at the tip of the robotic finger to contact the target area after the initial positioning in S3, and outputs the deformation electrical signal generated by the patch to the computer through the signal measurement circuit, and the computer fine-tunes the position to achieve precise positioning. assembly.

机械手在进行装配时,会与PCB板进行接触,机械手的指尖会受到压力的作用。当异形元器件与待装配区域准确接触以及异形元器件接触到PCB板的其它区域时受到的压力作用是不同的,因此可以建立压力与位置的数学模型,通过指尖受到的压力作用来调整机械手的位置,从而完成对待装配目标区域的精确定位。When the manipulator is assembling, it will be in contact with the PCB board, and the fingertips of the manipulator will be under pressure. When the special-shaped components are in accurate contact with the area to be assembled and when the special-shaped components are in contact with other areas of the PCB board, the pressure is different. Therefore, a mathematical model of pressure and position can be established, and the manipulator can be adjusted by the pressure of the fingertips. position, so as to complete the precise positioning of the target area to be assembled.

本实用新型采用了一种敏感材料设计了生物触点装置,该敏感材料具有压力-电输出特性,可以将受到的压力转化为电信号输出。用该敏感材料制成的生物触点装置像指套一般安装在机械手的指尖上,当指尖接触到PCB板时,生物触点装置上的导电材料的由于形变受到的压力会发生改变,从而导致输出电信号的改变。在敏感材料与机械手指尖之间有信号测量电路,可以测量得到生物触点装置由于形变而发生改变的输出电信号作为输出信号传送至计算机,计算机根据预先得到的数学模型即可得到目前机械手所处的位置,并输出相应的控制信号进行调整。The utility model adopts a sensitive material to design a biological contact device. The sensitive material has pressure-electrical output characteristics and can convert the received pressure into an electrical signal output. The biological contact device made of this sensitive material is installed on the fingertip of the manipulator like a finger cot. When the fingertip touches the PCB board, the pressure on the conductive material on the biological contact device will change due to deformation. This results in a change in the output electrical signal. There is a signal measurement circuit between the sensitive material and the tip of the manipulator, which can measure the output electrical signal of the biological contact device due to deformation and send it to the computer as the output signal. The computer can obtain the current manipulator according to the pre-obtained mathematical model. position, and output the corresponding control signal for adjustment.

机械手在S3步骤中完成了待装配区域的初定位,移动机械手到该区域,在机械手与PCB板发生接触后根据指尖上的生物触点装置的输出信号对机械手的位置进行微调,最终达到精确定位并完成异形件的装配。The manipulator completed the initial positioning of the area to be assembled in step S3, moved the manipulator to this area, and fine-tuned the position of the manipulator according to the output signal of the biological contact device on the fingertip after the manipulator came into contact with the PCB board, and finally achieved accurate Locate and complete the assembly of special-shaped parts.

上述实施例为本实用新型较佳的实施方式,但本实用新型的实施方式并不受所述实施例的限制,其他的任何未背离本实用新型的精神实质与原理下所作的改变、修饰、替代、组合、简化,均应为等效的置换方式,都包含在本实用新型的保护范围之内。The above-mentioned embodiment is a preferred implementation mode of the present utility model, but the implementation mode of the present utility model is not limited by the described embodiment, and any other changes, modifications, modifications, Substitution, combination, and simplification should all be equivalent replacement methods, and are all included in the protection scope of the present utility model.

Claims (6)

1. a puma manipulator based on many camera lenses, it is characterized in that, including multi-joint multifunction manipulator, for gathering the ccd video camera of pcb board image to be assembled, biological contact making device and computer, described ccd video camera is arranged on multi-joint multi-functional mechanical on hand, biological contact making device is arranged on the finger tip of multi-joint multifunction manipulator, and described ccd video camera, biological contact making device and multi-joint multifunction manipulator are connected with computer.
Puma manipulator the most according to claim 1, it is characterised in that described ccd video camera is specially two, is separately mounted to left side and the right side of multi-joint multifunction manipulator forearm.
Puma manipulator the most according to claim 1, it is characterized in that, described biological contact making device includes the paster made with sensitive material and for measuring paster deformation and exporting the circuitry for signal measurement of the signal of telecommunication, described paster covers on the finger tip of mechanical hand, described paster is connected with circuitry for signal measurement, circuitry for signal measurement is connected with computer, and described circuitry for signal measurement is built in inside multi-joint multifunction manipulator.
Puma manipulator the most according to claim 3, it is characterised in that described paster be shaped as finger cot type.
Puma manipulator the most according to claim 3, it is characterised in that described sensitive material is specially conductive rubber.
Puma manipulator the most according to claim 2, it is characterised in that model and the parameter of said two ccd video camera are identical, and the coordinate system of two ccd video cameras is coplanar, and each coordinate axes is placed in parallel.
CN201620083027.6U 2016-01-27 2016-01-27 Intelligent machine hand based on many camera lenses Expired - Fee Related CN205466320U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201620083027.6U CN205466320U (en) 2016-01-27 2016-01-27 Intelligent machine hand based on many camera lenses

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201620083027.6U CN205466320U (en) 2016-01-27 2016-01-27 Intelligent machine hand based on many camera lenses

Publications (1)

Publication Number Publication Date
CN205466320U true CN205466320U (en) 2016-08-17

Family

ID=56619832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201620083027.6U Expired - Fee Related CN205466320U (en) 2016-01-27 2016-01-27 Intelligent machine hand based on many camera lenses

Country Status (1)

Country Link
CN (1) CN205466320U (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105538345A (en) * 2016-01-27 2016-05-04 华南理工大学 Intelligent mechanical arm based on multiple cameras and positioning and assembling method
CN106672634A (en) * 2016-12-08 2017-05-17 广东工业大学 Aluminum profile automatic stacking system and control method thereof
CN108098768A (en) * 2016-11-24 2018-06-01 财团法人资讯工业策进会 Anti-collision system and anti-collision method
CN108098746A (en) * 2017-11-14 2018-06-01 歌尔科技有限公司 Mechanical arm and mechanical arm bootstrap operating method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105538345A (en) * 2016-01-27 2016-05-04 华南理工大学 Intelligent mechanical arm based on multiple cameras and positioning and assembling method
WO2017128865A1 (en) * 2016-01-27 2017-08-03 华南理工大学 Multiple lens-based smart mechanical arm and positioning and assembly method
CN105538345B (en) * 2016-01-27 2017-09-26 华南理工大学 A kind of puma manipulator and positioning assembly method based on many camera lenses
US10899014B2 (en) 2016-01-27 2021-01-26 South China University Of Technology Multiple lens-based smart mechanical arm and positioning and assembly method thereof
CN108098768A (en) * 2016-11-24 2018-06-01 财团法人资讯工业策进会 Anti-collision system and anti-collision method
CN106672634A (en) * 2016-12-08 2017-05-17 广东工业大学 Aluminum profile automatic stacking system and control method thereof
CN106672634B (en) * 2016-12-08 2022-08-02 广东工业大学 Automatic aluminum profile stacking system and control method thereof
CN108098746A (en) * 2017-11-14 2018-06-01 歌尔科技有限公司 Mechanical arm and mechanical arm bootstrap operating method
WO2019095506A1 (en) * 2017-11-14 2019-05-23 歌尔科技有限公司 Mechanical arm and self-guiding operation method for mechanical arm
CN108098746B (en) * 2017-11-14 2019-08-20 歌尔科技有限公司 Mechanical arm and mechanical arm bootstrap operating method

Similar Documents

Publication Publication Date Title
CN105538345B (en) A kind of puma manipulator and positioning assembly method based on many camera lenses
CN109255813B (en) Man-machine cooperation oriented hand-held object pose real-time detection method
CN110599540B (en) Real-time three-dimensional human body shape and posture reconstruction method and device under multi-viewpoint camera
CN111089569B (en) Large box body measuring method based on monocular vision
US8600192B2 (en) System and method for finding correspondence between cameras in a three-dimensional vision system
CN111476841B (en) A method and system for recognition and positioning based on point cloud and image
CN109658457B (en) Method for calibrating arbitrary relative pose relationship between laser and camera
CN110555889A (en) CALTag and point cloud information-based depth camera hand-eye calibration method
US11488322B2 (en) System and method for training a model in a plurality of non-perspective cameras and determining 3D pose of an object at runtime with the same
CN205466320U (en) Intelligent machine hand based on many camera lenses
CN114029946A (en) Method, device and equipment for guiding robot to position and grab based on 3D grating
CN109018591A (en) A kind of automatic labeling localization method based on computer vision
CN103198477B (en) Apple fruitlet bagging robot visual positioning method
CN107635129A (en) Three-dimensional three mesh camera devices and depth integration method
CN104760812B (en) Product real-time positioning system and method on conveyer belt based on monocular vision
TWI499879B (en) Workflow monitoring and analysis system and method thereof
CN109297413A (en) A visual measurement method for large-scale cylindrical structures
JP4765075B2 (en) Object position and orientation recognition system using stereo image and program for executing object position and orientation recognition method
CN115042175B (en) Method for adjusting tail end gesture of mechanical arm of robot
JP2020047049A (en) Image processing device and image processing method
CN106296825A (en) A kind of bionic three-dimensional information generating system and method
CN108171753A (en) Stereoscopic vision localization method based on centroid feature point Yu neighborhood gray scale cross correlation
CN116749198A (en) Binocular stereoscopic vision-based mechanical arm grabbing method
CN117428777A (en) A hand-eye calibration method for bag-unpacking robots
CN113269729B (en) Assembly body multi-view detection method and system based on depth image contrast

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160817

Termination date: 20190127

CF01 Termination of patent right due to non-payment of annual fee