Vision-based AGV tail end operation object height measuring and positioning method
By installing a depth camera on the AGV forklift and calibrating its external parameters, the pose of the pallet is identified and calculated, and the forklift moving path is formed by combining the Bezier curve, which solves the problem of height measurement and positioning in multi-layer stacking scenarios and realizes the AGV The forklift's accurate forklift improves work efficiency.
Patent Information
- Application Number
- CN202410793344.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-10-29
AI Technical Summary
It is difficult to accurately measure and position the height of the operating object at the end of an AGV forklift in a multi-layer stacking scenario with existing technology, resulting in application limitations in multi-layer stacking smart logistics application scenarios.
Using a vision-based method, a depth camera is installed at the root of the fork, its external parameters are calibrated, RGB images and depth data of the pallet area are collected, the pallet end face, support column and jack area are identified, and its position in the world coordinate system is calculated. posture, and the forklift movement path is formed through the Bezier curve, and the height of the fork is adjusted in real time to achieve accurate forking.
It achieves accurate measurement and positioning of pallet height in multi-layer stacking scenarios, improves forklift accuracy and work efficiency, and expands the applicability of AGV forklift applications.
Smart Images

Figure CN118864352A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of AGV forklifts, and in particular to terminal operation scene applications in the AGV forklift industry, and studies a method for height measurement and positioning of AGV terminal operation objects based on vision. Background Art
[0002] AGV is a key device in automated logistics and transportation systems and flexible production systems, and plays an important role in automated logistics warehouses. AGV plays a vital role in reducing logistics costs and improving enterprise operational efficiency. As an automated unmanned handling device, AGV can significantly reduce the labor intensity of workers, reduce the number of employees, and greatly improve the degree of loading and unloading automation.
[0003] With the changes in mixed and complex handling scenarios of AGV forklifts, such as automatic loading and unloading, loading and unloading shelves, multi-layer stacking, etc., especially when it comes to multi-layer stacking scenarios, the AGV end-operation objects such as pallets and cages have uncertain states such as position and posture deviation, dynamic changes in stacking height, etc., and cannot be picked up from multiple layers. Therefore, how to accurately measure the height of the AGV end-operation objects in real time is the key technology to realize the multi-layer stacking intelligent logistics application scenario.
[0004] For AGV terminal operations, the existing technology mainly focuses on identifying pallets on standardized and structured ground surfaces, or using visual labels for identification and positioning. The scenarios are limited to the requirements of pallet ground scenarios, and it is impossible to measure the height of pallets in multi-layer stacking scenarios, or it needs to be assisted by labels, and the application scenarios have certain limitations.
[0005] At present, AGV forklifts usually use depth vision, laser radar, millimeter wave radar and other depth sensors to identify and locate pallets. AGV forklifts can identify and locate pallets within a certain range. However, for multi-layer stacking scenarios, the height of the stacked materials must be determined in advance. When the AGV reaches the pickup point, it can lift the fork to the corresponding height to pick up the goods; or use label-assisted identification and positioning, which results in certain limitations in its application scenarios. Summary of the invention
[0006] The purpose of the present invention is to provide a method for height measurement and positioning of AGV end-operation objects based on vision, so as to realize the identification, measurement and positioning of the position of the socket in the pallet, and then realize the control of the movement of the forklift and the fork to achieve the purpose of accurate forking.
[0007] The specific technical solutions of the present invention are as follows:
[0008] The method for height measurement and positioning of an AGV end-operation object based on vision includes the following steps:
[0009] S1. Install a depth camera at the root of the fork, use the center of the forklift body as a reference, calibrate the external parameters of the depth camera, and detect the vertical distance H1 between the center of the depth camera and the fork tip;
[0010] S2. The AGV forklift drives to the front point of the terminal operation, and the depth camera collects the RGB image and depth data of the area where the pallet to be forked is located; the pallet in the RGB image is identified and the image is segmented to obtain the pallet end surface area, the support column area in the pallet and the socket area for fork insertion, and the pixel coordinates of the center point of the pallet end surface area and the center point of the socket area are determined;
[0011] S3, calculating the pixel coordinates of the center point of the support column area in the RGB image according to the size of the tray and the pixel coordinates of the center point of the socket area;
[0012] S4, aligning the RGB data and the depth data in the depth camera, calculating the horizontal offset, vertical offset and relative height of the center point of the end face area of the pallet relative to the center point of the depth camera and the horizontal plane where the center point of the depth camera is located, that is, obtaining the yaw angle of the end face of the pallet relative to the front of the depth camera, and finally obtaining the camera coordinates of the center point of the end face area of the pallet and the center point of the support column area under the camera coordinates;
[0013] S5, according to the external parameters of the depth camera in step S1 and the real-time posture of the forklift body in the world coordinate system, convert the camera coordinates of the center point of the pallet end surface area and the center point of the support column area into the pallet posture in the world coordinate system;
[0014] S6. According to the pallet posture and the vertical distance H1 between the depth camera and the fork tip, the route point information of the forklift movement is obtained according to the Bezier curve, a forklift movement path is formed, and the forklift is controlled to move to the fork pick-up position according to the movement path;
[0015] S7. According to the pallet posture and the vertical distance H1 between the center of the depth camera and the fork tip, the height of the center point of the socket area from the ground is obtained to be H2=H1-Hx / 2, where HX is the thickness between the upper edge of the socket area and the upper edge of the pallet; at the same time, the real-time height H3 of the fork tip is detected, and the fork is driven to rise or fall according to the difference between H2 and H3, and the height of the fork lifting is adjusted in real time.
[0016] In a further solution, the depth camera is installed at the center of the root of the fork, and the external parameters of the depth camera include horizontal offset dx, relative height dy, vertical offset dz, yaw angle, roll angle and pitch angle.
[0017] In a further solution, the calibration of the external parameters of the depth camera in step S1 is performed using a checkerboard calibration method, and the specific steps are as follows:
[0018] S11. Construct a checkerboard calibration plate, and place the calibration plate in front of the fork tip of the forklift, so that it coincides with or is parallel to the center line of the forklift body;
[0019] S12, collecting a chessboard image, calibrating the coordinates of each corner point in the chessboard image, and converting the coordinates into the coordinates in the camera coordinate system;
[0020] S13, select two corner points A and B at the same height, and calculate the height difference ΔH of the two points in the vertical direction of the ground through the depth data of the depth camera, then the camera roll angle roll is:
[0021]
[0022] Where dA and dB represent the pixel depth values of the known calibration positions of points A and B, respectively; pxA and pxB represent the horizontal pixel coordinates of the known calibration positions of points A and B, respectively; fx represents the horizontal pixel focal length of the depth camera, Cx represents the coordinates of the optical center of the depth camera in the pixel coordinate system; L is the measured physical distance between points A and B;
[0023] S14. Select two corner points A and C on the same vertical line and calculate the yaw angle and pitch angle of the depth camera relative to the center of the vehicle body:
[0024]
[0025] In the above formula: dA and dC represent the pixel depth values of the known calibration positions of points A and C, respectively, pxA and pxC represent the pixel coordinates in the horizontal direction of the known calibration positions of points A and C, respectively, pyA and pyC represent the pixel coordinates in the vertical direction of the known calibration positions of points A and C, respectively, fx and fy represent the pixel focal lengths of the depth camera in the horizontal and vertical directions, respectively, and Cx and Cy represent the coordinates of the optical center of the depth camera in the pixel coordinate system, respectively.
[0026] S15. Select any point in the chessboard and calculate its horizontal offset dx, relative height dy and vertical offset dz:
[0027]
[0028] Where d represents the pixel depth value of the calibration position of the point; px represents the pixel coordinate of the horizontal direction of the calibration position of the point; fx represents the horizontal pixel focal length of the depth camera, and Cx and Cy represent the coordinates of the optical center of the depth camera in the pixel coordinate system;
[0029] S16. Repeat steps S11-S15 and calculate the average value to obtain the external parameters of the depth camera.
[0030] In a further solution, the pixel coordinates of the center point of the socket area in step S2 are obtained by calibrating the peripheral corner points of the segmented socket area and then obtaining the pixel coordinates of the center point thereof.
[0031] In a further solution, the steps of calculating the pixel coordinates of the center point of the support column region in the RGB image in step S3 are as follows:
[0032] S31, according to the pixel coordinates of the center point of the socket area, obtain the pixel coordinates of the four corner points of the middle support column area connecting the two socket areas, thereby obtaining the pixel coordinates of the center point thereof;
[0033] S32. Calculate the pixel coordinates of the center points of the other two support column areas according to the size of the tray.
[0034] In summary, in order to solve the application scenario of multi-layer stacking end-of-line operations, the present invention adopts a depth camera as an image collector and accurately locates the three-dimensional coordinates and posture of the pallet in the camera coordinate system.
[0035] The present invention accurately calculates the position and posture of the pallet in the world coordinate system based on the external parameters of a pre-calibrated depth camera installed on the AGV body and the real-time position and posture of the forklift body in the world coordinate system, and obtains the forklift movement route point information according to the Bezier curve, thereby forming a local path in the process of the forklift forking goods; then, by calculating the height of the center point of the pallet socket from the ground in a multi-layer scene, according to the real-time height of the fork tip, the height that the fork needs to be lifted or lowered is calculated, thereby adjusting the height of the fork during the forking process to fork the goods, thereby improving the forking accuracy and work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 This is a schematic diagram of a chessboard calibration board;
[0037] Figure 2 It is a schematic diagram of the end surface structure of the tray;
[0038] Figure 3 Schematic diagram of the conversion relationship between coordinate systems. DETAILED DESCRIPTION
[0039] In order to facilitate the understanding of the present invention, the present invention will be described more comprehensively below in conjunction with specific embodiments. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thoroughly understood.
[0040] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0041] The method for height measurement and positioning of an AGV end-operation object based on vision includes the following steps:
[0042] S1. Install a depth camera at the root of the fork, use the center of the forklift body as a reference, calibrate the external parameters of the depth camera, and detect the vertical distance H1 between the center of the depth camera and the fork tip;
[0043] The depth camera in the present invention is installed at the connection between the horizontal section and the vertical section of the fork, and is located in the middle of the two fork tips. The installation position is preferably above the horizontal plane of the horizontal section, such as 300mm-400mm above the horizontal plane of the horizontal section. This ensures that the forklift can capture the entire image of the pallet insertion area when it is at the pickup point. The fork tip in the present invention refers to the end of the horizontal section of the fork, which is used to pick up the front end of the fork for the pallet.
[0044] Because different AGV forklifts have different body structures, it is necessary to calibrate the external parameters of the depth camera. The external parameters of the depth camera include horizontal offset dx, relative height dy, vertical offset dz, yaw angle, roll angle and pitch angle.
[0045] The calibration of the external parameters of the depth camera is performed using a checkerboard calibration method, and the specific steps are as follows:
[0046] S11, construct a checkerboard calibration plate (such as Figure 1 As shown in the figure), place the calibration plate in front of the fork tip of the forklift, and make it coincide with or parallel to the center line of the forklift body. If it is parallel, the parallel offset needs to be measured;
[0047] S12, collecting a chessboard image, calibrating the coordinates of each corner point in the chessboard image, and converting the coordinates into the coordinates in the camera coordinate system;
[0048] Because the depth camera has measurement errors, each corner point takes the average depth of itself and the surrounding 9 corner points as the depth of the current corner point, such as Figure 1 Collect 12 corner points in the image; transform them into coordinates in the camera coordinate system according to the camera intrinsic parameters;
[0049] S13, select two corner points A and B at the same height, and calculate the height difference ΔH of the two points in the vertical direction of the ground through the depth data of the depth camera, then the camera roll angle roll is:
[0050]
[0051] Where dA and dB represent the pixel depth values of the known calibration positions of points A and B, respectively; pxA and pxB represent the horizontal pixel coordinates of the known calibration positions of points A and B, respectively; fx represents the horizontal pixel focal length of the depth camera, Cx represents the coordinates of the optical center of the depth camera in the pixel coordinate system; L is the measured physical distance between points A and B;
[0052] S14. Select two corner points A and C on the same vertical line and calculate the yaw angle and pitch angle of the depth camera relative to the center of the vehicle body:
[0053]
[0054] In the above formula: dA and dC represent the pixel depth values of the known calibration positions of points A and C, respectively, pxA and pxC represent the pixel coordinates in the horizontal direction of the known calibration positions of points A and C, respectively, pyA and pyC represent the pixel coordinates in the vertical direction of the known calibration positions of points A and C, respectively, fx and fy represent the pixel focal lengths of the depth camera in the horizontal and vertical directions, respectively, and Cx and Cy represent the coordinates of the optical center of the depth camera in the pixel coordinate system, respectively.
[0055] S15. Select any point in the chessboard and calculate its horizontal offset dx, relative height dy(h) and vertical offset dz:
[0056]
[0057] Where d represents the pixel depth value of the calibration position of the point; px represents the pixel coordinate of the horizontal direction of the calibration position of the point; fx represents the horizontal pixel focal length of the depth camera, and Cx and Cy represent the coordinates of the optical center of the depth camera in the pixel coordinate system;
[0058] S16. Repeat steps S11-S15 and calculate the average value to obtain the external parameters of the depth camera.
[0059] S2. The AGV forklift drives to the front point of the terminal operation, and the depth camera collects the RGB image and depth data of the area where the pallet to be forked is located; the pallet in the RGB image is identified and the image is segmented to obtain the pallet end surface area, the support column area in the pallet and the socket area for fork insertion, and the pixel coordinates of the center point of the pallet end surface area and the center point of the socket area are determined;
[0060] The pixel coordinates of the center point of the socket area are obtained by calibrating the peripheral corner points of the segmented socket area and then obtaining the pixel coordinates of the center point.
[0061] In the case of multi-layer stacking, RGB images and multi-frame depth data of the end operation area are collected. The RGB images are calibrated and trained using the open source tool LabImg. The detection and classification algorithms are designed through deep learning methods to quickly detect and accurately locate the position of the pallet area. Specifically:
[0062] (1) Data construction: When collecting RGB image data, the collection angle, ambient light intensity, distance between the depth camera and the pallet, and other factors are constantly changed to build an image dataset and perform enhanced image processing to obtain a pallet recognition model;
[0063] (2) Pallet detection and positioning: During the on-site terminal operation, the real-time RGB image and RGB information of the depth camera are input into the pallet recognition model to calculate the pixel coordinates of the pallet recognition and complete the detection and positioning of the pallet on the original image;
[0064] (4) Image segmentation: Segment the RGB image to obtain a tray end surface area including the entire tray end surface, the tray support column area, and the socket area. Find the circumscribed rectangle of the socket area and calculate the coordinates of its center point;
[0065] (5) Multi-frame depth data fusion: Affected by the accuracy of the depth camera, traditional single-frame data contains a lot of noise and interference information. The number of frames fused by the present invention can be configured (such as 5-15 frames of data), and the mean and variance (standard deviation) of the depth value of each pixel are counted, and the residual between each frame of data and the corresponding mean is calculated to see if it is greater than the preset threshold; for each pixel, when the standard deviation is greater than the preset threshold of 100, it is considered to be jump noise data, and the depth value of the pixel in the current frame is directly eliminated; the residual value between each frame of data and the corresponding mean is calculated, and if it is greater than 2 times the standard deviation, it is considered to be noise data, and the depth information corresponding to the current pixel is also directly eliminated. Finally, the depth mean is recalculated as the pixel depth value. Noise data greater than the threshold is eliminated, and the mean is recalculated as the pixel depth value.
[0066] S3, calculating the pixel coordinates of the center point of the support column area in the RGB image according to the size of the tray and the pixel coordinates of the center point of the socket area;
[0067] The steps for calculating the pixel coordinates of the center point of the support column area in the RGB image are as follows:
[0068] S31, according to the pixel coordinates of the center point of the socket area, obtain the pixel coordinates of the four corner points of the middle support column area connecting the two socket areas, thereby obtaining the pixel coordinates of the center point thereof;
[0069] S32. Calculate the pixel coordinates of the center points of the other two support column areas according to the size of the tray.
[0070] The pallet in the present invention is a standard structural member, and its end surface is provided with two insertion holes for fork insertion and three support columns located on both sides of the insertion holes, such as Figure 2 The end faces, sockets and support columns of the standard pallet are all rectangular structures.
[0071] According to the socket area, determine the two largest circumscribed rectangular boxes ABCD and EFGH (if multiple socket areas are detected, select the two largest areas as the socket areas), and calculate the pixel coordinates P1 and P2 of their respective center points. According to the pixel coordinates of the four points of the quadrilateral BEHC, considering that the tray may be tilted and the quadrilateral BEHC is not necessarily a rectangle, calculate the coordinates of its center point PO through the average value of the four-point coordinates and the coordinates of the center point of the P1-P2 line segment, and calculate the equation of the straight line P1-P2;
[0072] Considering the tilt of the pallet and the physical structure of the pallet, P1, P2, P3, and P4 must be on the straight line P1-P2. Based on the physical widths of the three support columns of the pallet (QA=FR=100mm and BE=120mm) and the pixel horizontal coordinate P(BE) of the middle support column, that is, the pixel width between BC and EH, according to the camera principle, the pixel distance P(P3-U) between P3-U and V-P4 is estimated. According to (P3-U) / P(P3-U)=(BE) / P(BE), P3-U=QA / 2=50mm, and it is substituted into the equation of the straight line P1-P2 to calculate its pixel vertical coordinate value.
[0073] S4. Align the RGB data and the depth data in the depth camera, because the resolution of the RGB data is the same as the resolution of the depth data, and each RGB pixel represents a distance that corresponds one-to-one in the depth data, that is, the RGB data and the depth data are aligned. Calculate the horizontal offset, vertical offset, and relative height of the center point of the pallet end area relative to the center point of the depth camera, that is, obtain the yaw angle of the pallet end relative to the front of the depth camera, and finally obtain the camera coordinates of the center point of the pallet end area and the center point of the support column area under the camera coordinates;
[0074] The conversion between pixel coordinates, camera coordinates and world coordinates is as follows:
[0075] Let P be any point in the three-dimensional world, such as Figure 3 As shown, the world coordinate system OW is used to represent the three-dimensional coordinates of an object in the real world; the camera coordinate system Oc represents the coordinate system with the optical center of the camera as the origin, and the optical axis Z axis coincides; the image coordinate system Op represents the coordinate system of the image taken by the camera, and the origin is the intersection of the camera optical axis and the imaging plane, which is the center point of the image; the image coordinate system O is the pixel position of the image point in the image storage matrix, and the coordinate origin is in the upper left corner.
[0076] (1) The transformation from the world coordinate system to the camera coordinate system can be regarded as a rigid body motion process, where R is the rotation matrix and t is the translation matrix. The transformation relationship is as follows:
[0077]
[0078] The process of transforming an object from the camera coordinate system to the image coordinate system can be regarded as a projective transformation. According to the principle of similar triangles, between any point P in the three-dimensional world and its projection point on the imaging plane of the camera, fx, fy are the focal lengths, and Zc is the distance from the object to the camera (that is, the depth measured by the depth camera).
[0079]
[0080] The image coordinate system and the pixel coordinate system are on the same plane, so the difference between the two lies in the position and unit of the coordinate origin. The origin of the image coordinate system is at the center of the image plane, while the origin of the pixel plane is at the upper left corner of the image. Therefore, the relationship between the image plane and the pixel plane is that (xp, yp) is the coordinate value of the point in the image coordinate system, (xo, yo) is the coordinate value of the point in the pixel coordinate system, and (cx, cy) represents the offset of each pixel point in the pixel coordinate system in the x and y directions.
[0081]
[0082] The coordinate transformation between the camera 3D coordinate system and the pixel coordinate system is obtained comprehensively. In the actual scene, the R and t information is obtained according to the calibration results to estimate the position and posture of the pallet:
[0083]
[0084] Substituting PO(u1,v1), P3(u,v) and P4(u2,v2) into the above formula, we can get the 3D coordinates of these three points in the camera coordinate system, as follows: Figure 2 The camera coordinates of the corresponding points are expressed as P3(X1,Y1,Z1), PO(Xc,Yc,Zc), and P4(X2,Y2,Z2).
[0085] Measurement of the height (ΔH) of the center point of the tray relative to the center of the camera: In the camera coordinate system, ΔH is affected by the camera pitch angle (pitch) and roll angle (roll).
[0086]
[0087] Wherein, d is the depth value of point PO at the center of the middle support column of the pallet; pitch and roll are the pitch angle and calibrated roll angle of the camera relative to the vehicle body, respectively, which are determined during installation and calibration; px and py are the pixel coordinates of point O at the center of the middle support column of the pallet, fx and fy represent the pixel focal lengths of the depth camera in the horizontal and vertical directions, respectively, and Cx and Cy represent the coordinates of the optical center of the depth camera in the pixel coordinate system, respectively (fx, fy, Cx, Cy are the same as above).
[0088] Measurement of the yaw angle θ of the pallet relative to the camera: In the camera coordinate system, the calculation formula is as follows:
[0089]
[0090] Among them, dO3 and dO4 are the depth values of points P3 and P4 at the center of the support columns on both sides of the pallet; pxO3 and pxO4 are the pixel horizontal coordinates of points P3 and P4 at the center of the support columns on both sides of the pallet, fx is the pixel focal length of the depth camera in the horizontal direction, and Cx is the horizontal coordinate of the optical center of the depth camera in the pixel coordinate system.
[0091] S5, according to the external parameters of the depth camera in step S1 and the real-time posture of the forklift body in the world coordinate system, convert the camera coordinates of the center point of the pallet end surface area and the center point of the support column area into the pallet posture in the world coordinate system;
[0092] According to the calculation in step 4, the coordinates of the center point PO of the middle support column of the pallet in the camera coordinate system are obtained, combined with the external parameters relative to the forklift body calibrated when the depth camera is installed and the position of the body in the world coordinate system. The coordinate conversion between the world three-dimensional coordinate system and the pixel coordinate system is performed, and the R and t information is obtained according to the calibration results in the actual scene, so as to estimate the position and posture of the pallet:
[0093]
[0094] Among them, R1 and t1 are the external parameters calibrated when the depth camera is installed, and R2 and t2 are the real-time posture parameters of the AGV body relative to the world coordinate system. Through rigid body motion calculation, the coordinates PO (Xw, Yw, Zw) of the center point PO of the middle support column of the pallet in the world coordinate system are obtained.
[0095] S6. According to the pallet posture and the vertical distance H1 between the depth camera and the fork tip, the route point information of the forklift movement is obtained according to the Bezier curve, a forklift movement path is formed, and the forklift is controlled to move to the fork pick-up position according to the movement path;
[0096] That is, the AGV forklift's terminal operation front point adjusts its travel path according to the moving path so that the fork tip is just vertically aligned with the vertical line of the center point of the socket on the pallet.
[0097] Among them, the Bezier curve is known. For details, please refer to "Research on Obstacle Avoidance Path Planning Method for Intelligent Vehicles" (Journal of Nanjing University of Science and Technology, Vol. 47, No. 2), which explores the obstacle avoidance path planning method for intelligent vehicles and conducts research on obstacle avoidance paths using quintic Bezier curves, cubic Bezier curves, quintic spline curves and cubic spline curves.
[0098] In this application, since the distance between the forklift's end operation leading point and the center of the pallet is relatively close, about 2 meters, and the time complexity of multiple Bezier curve calculations is too large, three Bezier curves are selected in this application to obtain route point information.
[0099] S7. According to the pallet posture and the vertical distance H1 between the center of the depth camera and the fork tip, the height H2=H1-Hx / 2 of the center point of the insertion area from the ground is obtained, where HX is the thickness between the upper edge of the insertion area and the upper edge of the pallet, and HX is set to 60mm in the present invention; at the same time, the real-time height H3 of the fork tip is detected, and the fork is driven to rise or fall according to the difference between H2 and H3, and the height of the fork lifting is adjusted in real time.
[0100] While adjusting the height of the fork, the fork moves forward toward the pallet. When the fork tip is adjusted to the center point of the pallet socket, the fork moves forward and is inserted into the socket of the pallet, thereby achieving accurate forking.
[0101] The present invention is mainly used for height measurement and positioning of pallets as the terminal operation object of AGV. Other terminal operation objects such as material cages can also be height measured and positioned according to the inventive concept of the present invention.
[0102] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A method for measuring and positioning the height of an AGV end-operation object based on vision, characterized in that: The following steps are involved: S1. Install a depth camera at the root of the fork, use the center of the forklift body as a reference, calibrate the external parameters of the depth camera, and detect the vertical distance H1 between the center of the depth camera and the fork tip; S2. The AGV forklift drives to the front point of the terminal operation, and the depth camera collects the RGB image and depth data of the area where the pallet to be forked is located; the pallet in the RGB image is identified and the image is segmented to obtain the pallet end surface area, the support column area in the pallet and the socket area for fork insertion, and the pixel coordinates of the center point of the pallet end surface area and the center point of the socket area are determined; S3, calculating the pixel coordinates of the center point of the support column area in the RGB image according to the size of the tray and the pixel coordinates of the center point of the socket area; S4, aligning the RGB data and the depth data in the depth camera, calculating the horizontal offset, vertical offset and relative height of the center point of the end face area of the pallet relative to the center point of the depth camera and the horizontal plane where the center point of the depth camera is located, that is, obtaining the yaw angle of the end face of the pallet relative to the front of the depth camera, and finally obtaining the camera coordinates of the center point of the end face area of the pallet and the center point of the support column area under the camera coordinates; S5, according to the external parameters of the depth camera in step S1 and the real-time posture of the forklift body in the world coordinate system, convert the camera coordinates of the center point of the pallet end surface area and the center point of the support column area into the pallet posture in the world coordinate system; S6. According to the pallet posture and the vertical distance H1 between the depth camera and the fork tip, the route point information of the forklift movement is obtained according to the Bezier curve, a forklift movement path is formed, and the forklift is controlled to move to the fork pick-up position according to the movement path; S7. According to the pallet posture and the vertical distance H1 between the center of the depth camera and the fork tip, the height of the center point of the socket area from the ground is obtained to be H2=H1-Hx / 2, where HX is the thickness between the upper edge of the socket area and the upper edge of the pallet; at the same time, the real-time height H3 of the fork tip is detected, and the fork is driven to rise or fall according to the difference between H2 and H3, and the height of the fork lifting is adjusted in real time.
2. The method according to claim 1, characterized in that: The depth camera is installed at the center of the root of the fork, and the external parameters of the depth camera include horizontal offset dx, relative height dy, vertical offset dz, yaw angle, roll angle and pitch angle.
3. The method according to claim 1, characterized in that: The calibration of the external parameters of the depth camera in step S1 is performed using a checkerboard calibration method, and the specific steps are as follows: S11. Construct a checkerboard calibration plate, and place the calibration plate in front of the fork tip of the forklift, so that it coincides with or is parallel to the center line of the forklift body; S12, collecting a chessboard image, calibrating the coordinates of each corner point in the chessboard image, and converting the coordinates into the coordinates in the camera coordinate system; S13, select two corner points A and B at the same height, and calculate the height difference ΔH of the two points in the vertical direction of the ground through the depth data of the depth camera, then the camera roll angle roll is: Where dA and dB represent the pixel depth values of the known calibration positions of points A and B, respectively; pxA and pxB represent the horizontal pixel coordinates of the known calibration positions of points A and B, respectively; fx represents the horizontal pixel focal length of the depth camera, Cx represents the coordinates of the optical center of the depth camera in the pixel coordinate system; L is the measured physical distance between points A and B; S14. Select two corner points A and C on the same vertical line and calculate the yaw angle and pitch angle of the depth camera relative to the center of the vehicle body: In the above formula: dA and dC represent the pixel depth values of the known calibration positions of points A and C, respectively, pxA and pxC represent the pixel coordinates in the horizontal direction of the known calibration positions of points A and C, respectively, pyA and pyC represent the pixel coordinates in the vertical direction of the known calibration positions of points A and C, respectively, fx and fy represent the pixel focal lengths of the depth camera in the horizontal and vertical directions, respectively, and Cx and Cy represent the coordinates of the optical center of the depth camera in the pixel coordinate system, respectively. S15. Select any point in the chessboard and calculate its horizontal offset dx, relative height dy and vertical offset dz: Where d represents the pixel depth value of the calibrated position of the point; px represents the horizontal pixel coordinate of the calibration position of the point; fx represents the horizontal pixel focal length of the depth camera, and Cx and Cy represent the coordinates of the optical center of the depth camera in the pixel coordinate system; S16. Repeat steps S11-S15 and calculate the average value to obtain the external parameters of the depth camera.
4. The method according to claim 1, characterized in that: The pixel coordinates of the center point of the socket area in step S2 are obtained by calibrating the peripheral corner points of the segmented socket area and then obtaining the pixel coordinates of the center point.
5. The method according to claim 1, characterized in that: The steps for calculating the pixel coordinates of the center point of the support column area in the RGB image in step S3 are as follows: S31, according to the pixel coordinates of the center point of the socket area, obtain the pixel coordinates of the four corner points of the middle support column area connecting the two socket areas, thereby obtaining the pixel coordinates of the center point thereof; S32. Calculate the pixel coordinates of the center points of the other two support column areas according to the size of the tray.
Citation Information
Cited By
Cargo size detection device and detection method thereof
CN120488944A
Portal frame lifting height detection device and method based on visual technology
CN121207051A
A gantry lifting height detection device and method based on visual technology
CN121207051B
Automatic loading and unloading method and system based on AGV
CN121559986A
Automatic heavy truck battery replacing method and system based on AGV forklift
CN121671419A
