CN102688823B - Atomizing positioning device and method based on hand-eye atomizing mechanical arm - Google Patents
Atomizing positioning device and method based on hand-eye atomizing mechanical arm Download PDFInfo
- Publication number
- CN102688823B CN102688823B CN201210203745.9A CN201210203745A CN102688823B CN 102688823 B CN102688823 B CN 102688823B CN 201210203745 A CN201210203745 A CN 201210203745A CN 102688823 B CN102688823 B CN 102688823B
- Authority
- CN
- China
- Prior art keywords
- target
- image
- mechanical arm
- camera
- desired location
- 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
Links
Images
Landscapes
- Catching Or Destruction (AREA)
- Image Processing (AREA)
Abstract
Description
技术领域 technical field
本发明属于机器视觉和图像处理技术领域,尤其涉及一种基于手眼喷雾机械臂的喷雾定位装置及方法。The invention belongs to the technical field of machine vision and image processing, and in particular relates to a spray positioning device and method based on a hand-eye spray mechanical arm.
背景技术 Background technique
在农业生产过程中,为防治病虫害,往往需要经过多次农药喷洒。而施药的过程会对环境和操作人员的健康造成一定的危害,特别是在温室条件下,空间相对封闭,施药次数多,因此危害更为明显。通过研制自动化精准施药系统,可将药液直接喷洒到作物表面,避免药液浪费,提高药液使用效率、减少环境污染、保障劳动者健康、减轻劳动强度。研制自动化施药系统有着重要的现实意义和社会价值。In the process of agricultural production, in order to prevent pests and diseases, it is often necessary to spray pesticides many times. The process of applying pesticides will cause certain harm to the environment and the health of operators, especially in greenhouse conditions, where the space is relatively closed and the frequency of pesticide application is high, so the hazards are more obvious. Through the development of an automated precision pesticide application system, the liquid medicine can be sprayed directly on the surface of the crops, avoiding waste of the liquid medicine, improving the use efficiency of the medicine liquid, reducing environmental pollution, ensuring the health of workers, and reducing labor intensity. The development of automatic pesticide application system has important practical significance and social value.
在自动化施药系统中,目前主要存在的问题有:In the automated pesticide application system, the main problems currently are:
1.喷药定位不够准确,药液浪费严重。根据2010年国际植保机械与施药技术学术会议资料显示我国农药平均利用率极低,只有20%左右。大部分的农药都没有得到充分有效的利用,究其根源一方面在于施药方法和手段不够科学合理,另外在农药的使用上多采用粗放式喷药,缺乏精准施药的技术与条件。1. The positioning of spraying is not accurate enough, and the waste of liquid medicine is serious. According to the 2010 International Conference on Plant Protection Machinery and Pesticide Application Technology, the average utilization rate of pesticides in my country is extremely low, only about 20%. Most of the pesticides have not been fully and effectively used. The root cause is that the methods and methods of pesticide application are not scientific and reasonable. In addition, extensive spraying is often used in the use of pesticides, and the technology and conditions for precise pesticide application are lacking.
2.农药喷洒不够均匀,作物表面药液残留超标,尤其在温室中生产的作物更为明显。药液喷洒时的雾化效果和喷雾作业方式对喷雾的均匀性有着很大的影响。资料显示,采用静电喷雾可以形成微小的雾滴颗粒,并具有良好的附着性,有利于减少重喷和漏喷,提高喷雾的均匀性。采用防漂移等技术也可一定程度上改善喷雾效果,但从根本上讲喷雾定位的准确性直接会影响到喷雾质量。2. The spraying of pesticides is not uniform enough, and the residual pesticide solution on the surface of crops exceeds the standard, especially for crops produced in greenhouses. The atomization effect and spray operation mode of the chemical liquid spray have a great influence on the uniformity of the spray. According to the data, the use of electrostatic spraying can form tiny droplet particles with good adhesion, which is beneficial to reduce re-spraying and missed spraying, and improve the uniformity of spraying. Anti-drift and other technologies can also improve the spray effect to a certain extent, but fundamentally speaking, the accuracy of spray positioning will directly affect the spray quality.
3.喷雾农机具的使用适应性有限。例如国外在果树园中使用的喷雾机,采用超生波喷雾定位,这种方式要求果树以特定的距离和排列方式栽培,只要在超声波检测范围内存在物体,就会进行喷雾。喷雾时不论作物形态如何,都以同样方式工作。因此,当环境和作物发生变化后就很难有效工作。3. The use adaptability of spray agricultural machinery is limited. For example, sprayers used in foreign orchards use ultrasonic spray positioning. This method requires fruit trees to be cultivated at a specific distance and arrangement. As long as there is an object within the ultrasonic detection range, it will be sprayed. It works the same way regardless of the crop form when spraying. Therefore, it is difficult to work effectively when the environment and crops change.
4.用于自动化精准喷雾的机器人定位检测效果不够理想,实时性较差。例如,运用视觉检测技术对特定病虫害区域进行喷雾的机器人,其定位检测的算法上,往往较为复杂,需要一定的计算时间。同时,对需要施药的目标作物检测也存在一定的错误率。4. The robot positioning detection effect for automatic and precise spraying is not ideal, and the real-time performance is poor. For example, for a robot that uses visual detection technology to spray a specific area of pests and diseases, its positioning detection algorithm is often complicated and requires a certain amount of computing time. At the same time, there is also a certain error rate in the detection of target crops that need to be sprayed.
5.对农作物喷雾施药基本使用的都属于二维定位系统。在工作过程中,一般都是先通过特定的传感器或摄像头先检测并获取喷雾对象的二维信息,将喷头移动到指定位置或对多个喷头的开闭进行控制,而喷头与目标作物的距离往往都是事先设定好的,工作过程中并不调整。因此,当作物形态、大小存在一定差异时,就会造成不同的喷雾效果。5. The two-dimensional positioning system is basically used for the spraying and application of crops. During the working process, it is generally first to detect and obtain the two-dimensional information of the spray object through a specific sensor or camera, to move the nozzle to the specified position or to control the opening and closing of multiple nozzles, and the distance between the nozzle and the target crop It is often set in advance and is not adjusted during the work process. Therefore, when there is a certain difference in the shape and size of the crops, different spray effects will be caused.
6.农药喷洒自动化系统的性价比同样是制约其广泛应用的一个问题。但是,随着设施农业数量和技术的不断发展,同时与老龄化社会到来相伴随的劳动力成本不断上升,自动化喷雾作业的将有着广阔的应用前景。6. The cost performance of the pesticide spraying automation system is also a problem that restricts its wide application. However, with the continuous development of the number and technology of facility agriculture, and the rising labor costs associated with the arrival of an aging society, automated spraying operations will have broad application prospects.
综上所述,当前最重要的问题是解决喷雾目标的识别和定位问题,开发一种具有良好适应性、定位准确、实时性好、性价比高的喷雾定位系统。To sum up, the most important problem at present is to solve the problem of spray target identification and positioning, and to develop a spray positioning system with good adaptability, accurate positioning, good real-time performance and high cost performance.
目前,对于物体空间三维信息获取的方法主要有激光、超声波、雷达、红外和双目视觉等。前四者工作时通常是以通过反射波时间或相位差来计算距离信息,双目视觉主要通过三角测距原理,通过左右图像匹配来实现定位信息获取。双目视觉定位系统的优点在于,适用范围广泛,可通过一定的算法配合直接实现对目标的识别和定位;其缺点是识别与定位算法往往较为复杂,实时性和鲁棒性较差,特别是对物体形态不规则、环境复杂、光照条件差的场合更加难以检测。At present, the methods for obtaining three-dimensional information in object space mainly include laser, ultrasonic, radar, infrared and binocular vision. When the first four work, the distance information is usually calculated through the reflected wave time or phase difference. The binocular vision mainly uses the triangular ranging principle to achieve positioning information acquisition through left and right image matching. The advantage of the binocular vision positioning system is that it has a wide range of applications, and it can directly realize the recognition and positioning of the target through a certain algorithm; its disadvantage is that the recognition and positioning algorithms are often complicated, and the real-time performance and robustness are poor. It is more difficult to detect objects with irregular shapes, complex environments, and poor lighting conditions.
发明内容 Contents of the invention
针对上述背景技术中提到目标特征尺寸提取计算方法复杂,易受目标形态、光照等因素影响等不足,本发明提出了一种基于手眼喷雾机械臂的喷雾定位装置及方法。Aiming at the disadvantages mentioned in the above-mentioned background technology that the method of extracting and calculating the target feature size is complex and easily affected by factors such as target shape and illumination, the present invention proposes a spray positioning device and method based on a hand-eye spray robot arm.
本发明的技术方案是,一种基于手眼喷雾机械臂的喷雾定位装置,其特征是该装置包括机械臂基座、机械臂、摄像机和喷头;The technical solution of the present invention is a spray positioning device based on a hand-eye spray robot arm, which is characterized in that the device includes a robot arm base, a robot arm, a camera and a nozzle;
所述机械臂固定在机械臂基座上;摄像机和喷头分别安装在机械臂末端。The mechanical arm is fixed on the base of the mechanical arm; the camera and the spray head are respectively installed at the end of the mechanical arm.
所述机械臂为四自由度喷雾机械臂。The manipulator is a four-degree-of-freedom spray manipulator.
一种基于手眼喷雾机械臂的喷雾定位方法,通过机械臂和摄像头对目标进行定位,其特征是该方法包括以下步骤:A spray positioning method based on a hand-eye spray mechanical arm, which locates a target through a mechanical arm and a camera, is characterized in that the method includes the following steps:
步骤1:确定摄像机坐标和喷头坐标的转换公式;Step 1: Determine the conversion formula of camera coordinates and nozzle coordinates;
步骤2:移动机械臂,分别从主视、俯视和左视三个方向采集图像;Step 2: Move the robotic arm to collect images from three directions: main view, top view and left view;
步骤3:对图像进行形态学运算,消除噪声干扰区域,确定目标的外接轮廓和形心;Step 3: Perform morphological operations on the image, eliminate noise interference areas, and determine the circumscribed contour and centroid of the target;
步骤4:移动机械臂,使摄像机的光轴对准形心,获取目标的第一设定位置的图像,计算第一设定位置的图像的特征尺寸;Step 4: Move the robotic arm so that the optical axis of the camera is aligned with the centroid, acquire the image at the first set position of the target, and calculate the feature size of the image at the first set position;
步骤5:继续移动机械臂至设定位置,获取目标的第二设定位置的图像,计算第二设定位置的图像的特征尺寸,通过第一设定位置的图像和第二设定位置的图像计算摄像机与目标的距离;Step 5: Continue to move the robotic arm to the set position, acquire the image of the second set position of the target, calculate the feature size of the image at the second set position, and pass the image of the first set position and the image of the second set position The image calculates the distance between the camera and the target;
步骤6:在步骤5的基础上,求得目标在摄像机所在坐标系中的位置和空间尺寸;Step 6: On the basis of step 5, obtain the position and spatial size of the target in the coordinate system where the camera is located;
步骤7:计算目标在机械臂基座所在坐标系中的的坐标位置,进而获得目标轮廓的三维尺寸及目标相对于机械臂基座的位置信息。Step 7: Calculate the coordinate position of the target in the coordinate system of the manipulator base, and then obtain the three-dimensional size of the target outline and the position information of the target relative to the manipulator base.
所述确定目标的外接轮廓和形心的方法为:从上、下、左和右四个方向扫描图像,确定目标的轮廓,并以目标的轮廓的矩形框的中心做为目标的形心。The method for determining the circumscribed contour and centroid of the target is: scan the image from four directions, up, down, left and right, determine the contour of the target, and use the center of the rectangular frame of the target's contour as the centroid of the target.
本发明提供了一种基于手眼机械臂的农作物自动化喷雾定位装置及方法。可以实现对目标的三维信息轮廓提取与定位。该方法定位准确、计算量适中,可以满足喷雾实时性要求,并且工作过程中具有较高的灵活性和适应能力,为实现精准自动化喷雾,减少环境污染,提高农药利用率,提供了一种有效的实现方法。The invention provides a crop automatic spray positioning device and method based on a hand-eye mechanical arm. It can realize the three-dimensional information contour extraction and positioning of the target. The method is accurate in positioning and moderate in calculation, which can meet the real-time requirements of spraying, and has high flexibility and adaptability in the working process. It provides an effective method for realizing precise automatic spraying, reducing environmental pollution, and improving the utilization rate of pesticides. implementation method.
附图说明 Description of drawings
图1为重构植物轮廓空间图示;Fig. 1 is a schematic representation of reconstructed plant outline space;
图2为目标距离检测原理图;Figure 2 is a schematic diagram of target distance detection;
图3为主视植物轮廓检测图像处理过程示意图;图3a为沿光轴第一位置图像;图3b为沿光轴第二位置图像;Fig. 3 is a schematic diagram of the image processing process of main-view plant contour detection; Fig. 3a is an image of the first position along the optical axis; Fig. 3b is an image of the second position along the optical axis;
图4为以主视图为例的图像处理与控制流程图;Figure 4 is an image processing and control flow chart taking the main view as an example;
图5为四自由度喷雾机械臂应用实例。Figure 5 is an application example of a four-degree-of-freedom spray robot arm.
具体实施方式 Detailed ways
下面结合附图,对优选实施例作详细说明。应该强调的是,下述说明仅仅是示例性的,而不是为了限制本发明的范围及其应用。The preferred embodiments will be described in detail below in conjunction with the accompanying drawings. It should be emphasized that the following description is only exemplary and not intended to limit the scope of the invention and its application.
本发明要解决的技术问题是:提供一种基于手眼喷雾臂的农作物轮廓检测和定位方法,能够快速准确的计算出目标作物的大致外形轮廓信息和距离喷雾臂的相对位置关系,算法具有良好适应性和实时性。该方法克服了固定摄像机双目视觉系统视场范围有限、对相机标定精度要求高、遮挡时容易出现错误匹配等问题。The technical problem to be solved by the present invention is to provide a crop contour detection and positioning method based on the hand-eye spray arm, which can quickly and accurately calculate the approximate contour information of the target crop and the relative positional relationship from the spray arm, and the algorithm has good adaptability and real-time. This method overcomes the limited field of view of the fixed camera binocular vision system, the high requirement for camera calibration accuracy, and the error matching that is easy to occur when occluded.
为解决以上问题,本发明提供了一种基于手眼喷雾机械臂的喷雾定位方法。包括机械臂基座、机械臂、摄像机和喷头;机械臂固定在机械臂基座上;摄像机和喷头分别安装在机械臂末端。机械臂为四自由度喷雾机械臂。To solve the above problems, the present invention provides a spray positioning method based on a hand-eye spray robot. Including the base of the robotic arm, the robotic arm, the camera and the nozzle; the robotic arm is fixed on the base of the robotic arm; the camera and the nozzle are respectively installed at the end of the robotic arm. The robotic arm is a four-degree-of-freedom spray robotic arm.
该方法利用机械臂控制系统可根据指定要求将固定于机械臂末端的摄像机按指定的方式运动,摄像机可以获得不同位置的图像,根据摄像机针孔成像模型原理,只要找到对应目标物在不同位置时的图像中对应的特征尺寸,就可以结合相机标定参数,求得目标作物与摄像机镜头的直线距离,即获得了目标作物与相机之间的深度信息,并可计算出目标作物在二维平面中的实际尺寸范围。控制机械臂变换摄像机成像角度,分别沿目标作物为中心正交的主视、俯视和左视三个方向移动机械臂并拍摄,最终可获得三个方向的目标作物实际外接矩形轮廓尺寸,并根据投影对应关系重构出作物的三维矩形块轮廓信息(如图1所示)。This method uses the control system of the manipulator to move the camera fixed at the end of the manipulator in a specified way according to the specified requirements, and the camera can obtain images at different positions. According to the principle of the camera pinhole imaging model, as long as the corresponding target is found at different positions The corresponding feature size in the image can be combined with the camera calibration parameters to obtain the linear distance between the target crop and the camera lens, that is, the depth information between the target crop and the camera can be obtained, and the distance between the target crop and the camera can be calculated. actual size range. Control the manipulator to change the imaging angle of the camera, move the manipulator along the three directions of the main view, top view and left view, which are orthogonal to the center of the target crop, and take pictures. Finally, the actual circumscribed rectangle outline size of the target crop in the three directions can be obtained, and according to The three-dimensional rectangular block outline information of crops is reconstructed from the projection correspondence (as shown in Figure 1).
根据摄像机成像原理,空间点P在图像平面上的坐标值与摄像机坐标系上坐标值之间的关系为:According to the principle of camera imaging, the relationship between the coordinate value of the spatial point P on the image plane and the coordinate value of the camera coordinate system is:
其中:c为摄像机坐标系,点P在摄像机坐标系中的坐标为(xc,yc,zc),x、y为点P图像平面上的横坐标和纵坐标;f为摄像机镜头的焦距。Among them: c is the camera coordinate system, the coordinates of point P in the camera coordinate system are (x c , y c , z c ), x and y are the abscissa and ordinate of point P on the image plane; f is the camera lens focal length.
由式(1)可得:From formula (1) can get:
xzc=fxc x z c =f x c
式中,摄像机的焦距f是定值,如果将摄像机沿其光轴的方向移动的距离为s,点P在摄像机坐标系中的坐标xc和yc是保持不变的。可得:xzc=常数。In the formula, the focal length f of the camera is a fixed value, if the distance of moving the camera along its optical axis is s, the coordinates x c and y c of point P in the camera coordinate system remain unchanged. Available: xz c = constant.
工作时,首先,在第1个位置获得目标的一幅图像,然后,摄像机沿其光轴方向移动一定的距离,获得第2幅图像(图2)。这样,由上式可得:When working, firstly, an image of the target is obtained at the first position, and then the camera moves a certain distance along its optical axis to obtain the second image (Figure 2). Thus, it can be obtained from the above formula:
x1zc1=x2zc2;x1(zc2+s)=x2zc2; x 1 z c1 =x 2 z c2 ; x 1 (z c2 +s)=x 2 z c2 ;
其中,x1、x2分别为第一和第二位置时的图像坐标系中目标特征的横轴坐标值;zc1和zc2分别为两个位置摄像机坐标系下的目标点z轴方向的坐标。Among them, x 1 and x 2 are the abscissa coordinates of the target feature in the image coordinate system at the first and second positions respectively; z c1 and z c2 are the coordinates of the target point in the z-axis direction of the camera coordinate system at the two positions respectively. coordinate.
将两次位置变化的植物冠层外廓尺寸值代入由上式即可进行深度信息的计算。The depth information can be calculated by substituting the outer dimension value of the plant canopy with two position changes into the above formula.
基于以上计算原理,在获取有关深度信息计算参数时的图像处理过程如图3所示。图中以获取作物主视图图像为例,反映了对作物的图像处理与其外接矩形轮廓提取过程。Based on the above calculation principles, the image processing process when obtaining the relevant depth information calculation parameters is shown in Figure 3. In the figure, the crop main view image is taken as an example, which reflects the crop image processing and its circumscribed rectangle contour extraction process.
图像处理过程及方法如下:The image processing process and method are as follows:
1.图像预处理滤除噪声并由作物的颜色特征分割图像,提取目标作物。1. Image preprocessing to filter out noise and segment the image by the color features of the crops to extract the target crops.
2.识别和初步定位目标作物。通过计算作物面积占整个图像比例来确定是否检到作物,并以此判断机械臂是否达到与作物相对合适的位置。(摄像头移动优先顺序为先平移,后垂直)。2. Identify and initially locate target crops. Determine whether the crop is detected by calculating the ratio of the crop area to the entire image, and use this to judge whether the robotic arm has reached a relatively suitable position for the crop. (The priority order of camera movement is translation first, then vertical).
3.形态学运算,滤除小的干扰区域面积。3. Morphological operation to filter out small interference areas.
4.四边扫描图像,确定目标作物外接轮廓,并以矩形框中心做为目标作物形心。4. Scan the image on four sides, determine the circumscribed contour of the target crop, and use the center of the rectangular frame as the centroid of the target crop.
5.移动机械臂使摄像机对准形心后,计算第一位置图像的特征尺寸。5. After moving the robotic arm to align the camera to the centroid, calculate the feature size of the first position image.
6.沿光轴移动机械臂后,计算第二位置图像的特征尺寸。6. After moving the arm along the optical axis, calculate the feature size of the second position image.
7.代入相应长宽,由式2计算距离。7. Substitute in the corresponding length and width, and calculate the distance from formula 2.
8.已知距离和图像坐标代入式1反求摄像机坐标下的目标点位置和尺寸。8. Substitute the known distance and image coordinates into Equation 1 to find the position and size of the target point under the camera coordinates.
9.转换位置,重复以上过程。获得摄像机坐标下的目标作物位置与空间尺寸。9. Change the position and repeat the above process. Obtain the target crop position and spatial size under the camera coordinates.
10.根据机械臂手眼标定信息及控制系统位置信息,计算目标相对于机械臂基座的坐标位置。最终获得轮廓及目标作物相对于喷雾基座的位置信息。10. Calculate the coordinate position of the target relative to the base of the manipulator based on the hand-eye calibration information of the manipulator and the position information of the control system. Finally, the contour and the position information of the target crop relative to the spray base are obtained.
控制机械臂移动到其它两个位置,以同样的方法计算轮廓长宽,最终获得作物的三维长宽高尺寸及位置信息。Control the robotic arm to move to the other two positions, calculate the length and width of the outline in the same way, and finally obtain the three-dimensional length, width, height and position information of the crop.
图像处理与控制流程如图4所示:The image processing and control process is shown in Figure 4:
第1步:确定摄像机坐标和喷头坐标的转换公式;Step 1: Determine the conversion formula of camera coordinates and nozzle coordinates;
在如图5所示的四自由度喷雾机械臂上安装摄像机。机械臂控制系统可以对安装在机械臂末端的摄像机实现准确的定位和移动控制。可实时控制末端执行器位置(喷头)相对于喷雾臂基座的坐标位置及运动轨迹。Install the camera on the four-degree-of-freedom spray manipulator shown in Figure 5. The robotic arm control system can realize accurate positioning and movement control of the camera installed at the end of the robotic arm. The coordinate position and motion trajectory of the end effector position (spray head) relative to the spray arm base can be controlled in real time.
对摄像头进行手眼标定。即确定摄像头坐标与喷头坐标的相对转换关系。标定方法如下:Hand-eye calibration of the camera. That is to determine the relative conversion relationship between the camera coordinates and the nozzle coordinates. The calibration method is as follows:
1.固定黑白格平面标定模板在摄像机视场范围内,移动机械臂采集多幅标定模板图像,并按张正友标定方法求出摄像机内外参数。1. Fix the black and white grid plane calibration template within the field of view of the camera, move the robotic arm to collect multiple calibration template images, and calculate the internal and external parameters of the camera according to Zhang Zhengyou's calibration method.
2.求相对于标定模板不同位置时两摄像机坐标相对位置关系2. Find the relative positional relationship between the coordinates of the two cameras at different positions relative to the calibration template
设摄像机由空间位置a点运动到b点,相对于固定标定模板的各自的外参矩阵A和B均可通过上一步标定过程获得,为已知参数矩阵。故摄像机由a到b的旋转平移矩阵C可由式C=AB-1获得。Assuming that the camera moves from the spatial position a to point b, the respective extrinsic parameter matrices A and B relative to the fixed calibration template can be obtained through the previous calibration process, which are known parameter matrices. Therefore, the rotation and translation matrix C of the camera from a to b can be obtained by the formula C=AB -1 .
3.对应上一步,利用已知机械臂控制系统信息可获得喷头(末端执行器)两个对应位置的相对空间关系矩阵D。结合上步所求得的摄像机相对位置关系矩阵C,可进一步求取手眼关系矩阵X。3. Corresponding to the previous step, the relative spatial relationship matrix D of the two corresponding positions of the nozzle (end effector) can be obtained by using the known control system information of the manipulator. Combined with the camera relative position relationship matrix C obtained in the previous step, the hand-eye relationship matrix X can be further obtained.
根据各坐标系之间的转换关系,可得到以上参数矩阵满足关系式CX=XD。将上式改写为采用旋转平移参数表达的关系式:According to the conversion relationship between the coordinate systems, the above parameter matrix can be obtained to satisfy the relationship CX=XD. Rewrite the above formula as a relationship expressed by the rotation and translation parameters:
展开上式可得:Expand the above formula to get:
RcR=RRd (4)R c R = RR d (4)
Rct+tc=Rtd+tR c t + t c = Rt d + t
上式中已知的是Rc、Rd、tc、td,且R、Rc、Rd均为正交单位矩阵,R与t需要求解。由于一组关系式无法获得确定的解,以同样的方法控制机械臂再移动到下一个位置。因此,可得到新的方程。应用最小二乘法求解,可最终获得X矩阵。What are known in the above formula are R c , R d , t c , and t d , and R, R c , and R d are all orthogonal identity matrices, and R and t need to be solved. Since a set of relational expressions cannot obtain a definite solution, the manipulator is controlled to move to the next position in the same way. Therefore, new equations can be obtained. Applying the least squares method to solve, the X matrix can be finally obtained.
有了手眼关系矩阵X即可根据喷头(机械臂末端执行器)相对于机械臂基座的关系矩阵,获得任意位置摄像机相对于机械臂基座的关系矩阵。当求得目标作物相对于摄像机的当前位置关系,即可根据目标作物相对于机械臂基座的坐标关系实现摄像机相对于作物的指定运动。同样,根据机械臂控制信号的位置信息亦可求得在任意不同位置时摄像机之间的相对位置关系。对已知系统事先标定,并在工作过程中采用固定相对位置采集图像,可避免实时求解大量复杂计算,直接利用已知的标定信息,根据检测到的作物图像,运用特征点对应关系,求解三维空间信息。由于各图像采集位置相机的相对位置关系已知,可利用极线约束、唯一性约束等匹配约束条件提高定位匹配的计算速度和准确性。计算结果可用于进一步提高定位算法的准确性和鲁棒性。With the hand-eye relationship matrix X, the relationship matrix of the camera at any position relative to the base of the manipulator can be obtained according to the relationship matrix of the nozzle (end effector of the manipulator) relative to the base of the manipulator. When the current positional relationship of the target crop relative to the camera is obtained, the specified motion of the camera relative to the crop can be realized according to the coordinate relationship of the target crop relative to the base of the manipulator. Similarly, according to the position information of the control signal of the manipulator, the relative position relationship between the cameras at any different positions can also be obtained. Calibrate the known system in advance, and use a fixed relative position to collect images during the work process, which can avoid solving a large number of complex calculations in real time, directly use the known calibration information, and use the corresponding relationship of feature points according to the detected crop images to solve the three-dimensional spatial information. Since the relative positions of the cameras at each image acquisition position are known, matching constraints such as epipolar constraints and uniqueness constraints can be used to improve the calculation speed and accuracy of positioning matching. The calculation results can be used to further improve the accuracy and robustness of the localization algorithm.
第2步:移动机械臂,分别从主视、俯视和左视三个方向采集图像;Step 2: Move the robotic arm to collect images from three directions: main view, top view and left view;
喷雾机械臂视觉定位系统以主视方向为初始位置,沿作物行移动行走平台,并采集图像。通过颜色特征检测作物。采用超绿图像分割算法实时计算绿色目标区域与整个图像面积所占比例。当达到规定的数值,说明有目标作物出现。放慢移动平台速度,连续几幅图所得比例数值不再增大,数值在误差范围内相同时,可认为发现单株作物,停车,小范围移动机械臂,使摄像机相对作物的初始位置达到指定的位置。判断依据为目标作物图像面积占总图像面积的比例是否达到规定范围。The visual positioning system of the spray manipulator takes the main viewing direction as the initial position, moves the walking platform along the crop row, and collects images. Crop detection by color features. The ultra-green image segmentation algorithm is used to calculate the proportion of the green target area to the entire image area in real time. When the specified value is reached, it means that the target crop appears. Slow down the speed of the mobile platform, and the ratio value obtained from several consecutive pictures will no longer increase. When the value is the same within the error range, it can be considered that a single crop has been found. Stop and move the robotic arm in a small range to make the initial position of the camera relative to the crop reach the specified value. s position. The basis for judging is whether the ratio of the target crop image area to the total image area reaches the specified range.
第3步:对图像进行形态学运算,消除噪声干扰区域。四边扫描图像,确定目标作物外接矩形轮廓,并以矩形框中心做为目标作物形心。当扫描到第一个目标像素点位置时,计算其连通域的像素个数必须大于设定值才认为有效,避免因干扰信息错误判断轮廓边界。Step 3: Perform morphological operations on the image to eliminate noise interference areas. Scan the image on four sides, determine the outline of the rectangle circumscribing the target crop, and use the center of the rectangle as the centroid of the target crop. When scanning to the position of the first target pixel, the number of pixels in the calculated connected domain must be greater than the set value to be considered valid, so as to avoid misjudgment of the contour boundary due to interference information.
步骤4:移动机械臂,使摄像机的光轴对准形心,获取目标的第一设定位置的图像,计算第一设定位置的图像的特征尺寸;Step 4: Move the robotic arm so that the optical axis of the camera is aligned with the centroid, acquire the image at the first set position of the target, and calculate the feature size of the image at the first set position;
步骤5:移动机械臂至第二设定位置,获取目标的第二设定位置的图像,计算第二设定位置的图像的特征尺寸,通过第一设定位置的图像和第二设定位置的图像计算摄像机与目标的距离;Step 5: Move the robotic arm to the second set position, acquire the image of the target at the second set position, calculate the feature size of the image at the second set position, and pass the image at the first set position and the second set position The image calculates the distance between the camera and the target;
步骤6:在步骤5的基础上,求得目标在摄像机所在坐标系中的位置和空间尺寸;Step 6: On the basis of step 5, obtain the position and spatial size of the target in the coordinate system where the camera is located;
步骤7:计算目标在机械臂基座所在坐标系中的的坐标位置,进而获得目标轮廓的三维尺寸及目标相对于喷雾基座的位置信息。Step 7: Calculate the coordinate position of the target in the coordinate system of the manipulator base, and then obtain the three-dimensional size of the target outline and the position information of the target relative to the spray base.
根据机械臂手眼标定信息及控制系统位置信息,计算目标作物相对于机械臂基座的坐标位置。最终获得作物轮廓三维尺寸及目标作物相对于机械臂基座的位置信息。According to the calibration information of the hand-eye of the manipulator and the position information of the control system, the coordinate position of the target crop relative to the base of the manipulator is calculated. Finally, the three-dimensional size of the crop outline and the position information of the target crop relative to the base of the robotic arm are obtained.
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of changes or modifications within the technical scope disclosed in the present invention. Replacement should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210203745.9A CN102688823B (en) | 2012-06-19 | 2012-06-19 | Atomizing positioning device and method based on hand-eye atomizing mechanical arm |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210203745.9A CN102688823B (en) | 2012-06-19 | 2012-06-19 | Atomizing positioning device and method based on hand-eye atomizing mechanical arm |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102688823A CN102688823A (en) | 2012-09-26 |
CN102688823B true CN102688823B (en) | 2014-06-11 |
Family
ID=46854654
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210203745.9A Expired - Fee Related CN102688823B (en) | 2012-06-19 | 2012-06-19 | Atomizing positioning device and method based on hand-eye atomizing mechanical arm |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102688823B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102893969B (en) * | 2012-10-12 | 2014-05-07 | 浙江大学 | Packaged target spray device |
CN104376323B (en) * | 2013-08-12 | 2018-01-23 | 联想(北京)有限公司 | A kind of method and device for determining target range |
CN104604833B (en) * | 2015-02-09 | 2016-12-28 | 聊城大学 | A kind of fall webworms larva net curtain spraying machine device people's mechanical system |
CN106689096A (en) * | 2016-12-15 | 2017-05-24 | 苏州迪芬德物联网科技有限公司 | Electrostatic spraying system |
CN109658460A (en) * | 2018-12-11 | 2019-04-19 | 北京无线电测量研究所 | A kind of mechanical arm tail end camera hand and eye calibrating method and system |
CN109978949B (en) * | 2019-03-26 | 2023-04-28 | 南开大学 | A method of crop recognition and three-dimensional coordinate extraction of feature points based on computer vision |
CN111436414B (en) * | 2020-04-01 | 2021-11-23 | 江苏大学 | Greenhouse strawberry canopy inner circumference wind-conveying pesticide applying robot and implementation method thereof |
CN112053345B (en) * | 2020-09-02 | 2023-12-05 | 长春大学 | Automatic extraction method and system for GDI gasoline engine spraying wall collision parameters based on machine vision |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6714662B1 (en) * | 2000-07-10 | 2004-03-30 | Case Corporation | Method and apparatus for determining the quality of an image of an agricultural field using a plurality of fuzzy logic input membership functions |
CN1628513A (en) * | 2003-12-18 | 2005-06-22 | 南京林业大学 | Method for employing agricultural chemicals to target accurately |
CN102696570A (en) * | 2012-06-18 | 2012-10-03 | 中国农业大学 | Flexibly operable hand-eye mode spraying robot device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7765780B2 (en) * | 2003-12-12 | 2010-08-03 | Vision Robotics Corporation | Agricultural robot system and method |
-
2012
- 2012-06-19 CN CN201210203745.9A patent/CN102688823B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6714662B1 (en) * | 2000-07-10 | 2004-03-30 | Case Corporation | Method and apparatus for determining the quality of an image of an agricultural field using a plurality of fuzzy logic input membership functions |
CN1628513A (en) * | 2003-12-18 | 2005-06-22 | 南京林业大学 | Method for employing agricultural chemicals to target accurately |
CN102696570A (en) * | 2012-06-18 | 2012-10-03 | 中国农业大学 | Flexibly operable hand-eye mode spraying robot device |
Non-Patent Citations (4)
Title |
---|
机器视觉高精度测量技术在农业工程中的应用;李晓斌;《农机化研究》;20120531(第5期);第8页倒数第4段 * |
李晓斌.机器视觉高精度测量技术在农业工程中的应用.《农机化研究》.2012,(第5期), |
杨娜.果园自动喷雾控制系统研究.《中国优秀硕士学位论文全文数据库》.2010, |
果园自动喷雾控制系统研究;杨娜;《中国优秀硕士学位论文全文数据库》;20101231;正文第5,12页及附图3-1 * |
Also Published As
Publication number | Publication date |
---|---|
CN102688823A (en) | 2012-09-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102688823B (en) | Atomizing positioning device and method based on hand-eye atomizing mechanical arm | |
CN102800083B (en) | Crop spraying positioning method based on binocular vision gridding partition matching algorithm | |
CN105116911B (en) | Unmanned plane spray method | |
US12172175B2 (en) | Variable-rate spray control system based on annular application structure and tree canopy volume calculation method thereof | |
Qingchun et al. | Design of structured-light vision system for tomato harvesting robot | |
CN108932736A (en) | Two-dimensional laser radar Processing Method of Point-clouds and dynamic robot pose calibration method | |
CN104615150B (en) | A kind of adaptive accurate spraying apparatus and method based on machine vision | |
KR101109337B1 (en) | Automatic pest recognition and control system and method | |
CN109032174B (en) | Unmanned aerial vehicle operation route planning method and operation execution method | |
CN117021059B (en) | Picking robot and fruit positioning method, device, electronic equipment and medium | |
CN102907406A (en) | Accurately targeted drug applying device and method for fruit tree rootstock | |
CN102422832B (en) | Visual spraying location system and location method | |
Li et al. | Identification of the operating position and orientation of a robotic kiwifruit pollinator | |
Chen et al. | Global path planning in mobile robot using omnidirectional camera | |
Yan et al. | Detection of 3-D objects with a 2-D laser scanning sensor for greenhouse spray applications | |
Jeon et al. | Stereo vision controlled variable rate sprayer for specialty crops: Part I. Controller development | |
CN113749078A (en) | Independent control method and system for multiple spray heads | |
Chen et al. | Development and performance test of a height-adaptive pesticide spraying system | |
CN115760893A (en) | Single droplet particle size and speed measuring method based on nuclear correlation filtering algorithm | |
CN209281477U (en) | A Sole Glue Spraying Equipment Based on Monocular Vision | |
Chu et al. | High-precision fruit localization using active laser-camera scanning: Robust laser line extraction for 2D-3D transformation | |
CN111288934B (en) | An online calculation method of target leaf area based on mobile laser scanning | |
Natarajan et al. | Robust stereo-vision based 3D modelling of real-world objects for assistive robotic applications | |
CN114332629A (en) | A method for measuring the delay of multi-pesticide droplets impacting leaves based on high-speed vision coupled contour feature extraction | |
Zhao et al. | Theoretical Design and First Test in Laboratory of a Composite Visual Servo‐Based Target Spray Robotic System |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
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: 20140611 Termination date: 20150619 |
|
EXPY | Termination of patent right or utility model |