Pallet identification method and device, computer equipment, and storage medium

By acquiring the point cloud data of the pallet through the depth camera and using gradient calculation and fitting technology, it solves the problem of high computing power and hardware resources in the existing technology, achieves high-precision and low-cost pallet identification, and simplifies the industrial implementation process.

CN116246267BActive Publication Date: 2024-08-30WUHAN JIDONG INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310233226.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-06
Publication Date
2024-08-30
Estimated Expiration
2043-03-06

AI Technical Summary

Technical Problem

Existing pallet recognition technology requires a large amount of data for scene training and model matching, which results in high requirements for computing power and hardware resources, increases the mass production cost of the equipment, and is difficult to implement efficiently in industrial scenarios.

Method used

The point cloud data of the pallet is obtained through the depth camera, and gradient calculation and fitting technology are used to determine the point cloud data of the pallet on the target plane to achieve high-precision identification of the pallet and reduce the requirements for computer or chip computing power.

Benefits of technology

It achieves fast and accurate pallet identification, reduces the industrial implementation cost of identification equipment, and simplifies the implementation process of pallet identification technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116246267B
    Figure CN116246267B
Patent Text Reader

Abstract

The present disclosure provides a method and device for identifying a pallet, a computer device, and a storage medium, the method comprising: obtaining first point cloud data containing the pallet based on a depth camera; performing gradient calculation based on the first point cloud data to determine second point cloud data belonging to the pallet in a target plane in the first point cloud data; wherein the target plane is the plane of the pallet facing the depth camera; and locating the pallet based on the second point cloud data. Through the above method, gradient calculation is used to quickly and accurately eliminate interference data, improve the speed and accuracy of pallet identification, and reduce the cost of industrial implementation of pallet identification technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to, but is not limited to, the computer field, and in particular to a tray identification method and device, computer equipment, and storage medium. Background Art

[0002] With the vigorous development of logistics technology, pallet transportation technology plays an increasingly important role in the fields of intelligent warehousing, logistics and transportation. The core of pallet transportation technology is the detection and identification of pallets. Therefore, how to achieve intelligent identification of pallets in industrial scenarios has attracted much attention.

[0003] In related technologies, a large amount of data is required for scenario training to achieve pallet recognition, which places high demands on the computing power and hardware resources of the pallet recognition equipment, resulting in high mass production costs for the pallet recognition equipment. Summary of the invention

[0004] In view of this, the embodiments of the present disclosure are intended to provide a method and apparatus for identifying a pallet, a computer device, and a storage medium.

[0005] In a first aspect, an embodiment of the present disclosure provides a method for identifying a pallet, the method comprising:

[0006] Acquire first point cloud data including the pallet based on a depth camera;

[0007] Performing gradient calculation based on the first point cloud data to determine second point cloud data belonging to the pallet on a target plane in the first point cloud data; wherein the target plane is a plane of the pallet facing the depth camera;

[0008] The pallet is positioned based on the second point cloud data.

[0009] In some embodiments, performing gradient calculation based on the first point cloud data to determine second point cloud data belonging to the pallet on the target plane in the first point cloud data includes:

[0010] Performing plane mapping on the distance in the target direction in the first point cloud data to obtain a first plane image; wherein the target direction is a direction representing the distance between the tray and the depth camera;

[0011] Performing gradient calculation on each pixel point in the first plane image to obtain a gradient calculation result of each pixel point;

[0012] Based on the gradient calculation result, determining third point cloud data corresponding to the candidate area of ​​the tray on the target plane in the first point cloud data;

[0013] Fitting is performed based on the third point cloud data to determine the second point cloud data belonging to the pallet on the target plane.

[0014] In some embodiments, determining, based on the gradient calculation result, third point cloud data corresponding to the candidate area of ​​the tray in the target plane in the first point cloud data includes:

[0015] Based on the gradient value of each of the pixel points, determine a target pixel point whose gradient value is less than a preset gradient threshold;

[0016] Performing histogram statistics on the target pixel points in the first plane image to obtain a histogram statistics result;

[0017] The distance with the largest proportion in the histogram statistics result is determined as the distance value between the tray and the depth camera;

[0018] A point in the first point cloud data, for which the difference between the distance in the target direction and the spacing value is within a preset difference range, is determined as the third point cloud data.

[0019] In some embodiments, the fitting based on the third point cloud data to determine the second point cloud data belonging to the pallet on the target plane includes:

[0020] Perform edge fitting based on the third point cloud data to determine fourth point cloud data in the third point cloud data that is within a fitting edge range of the pallet on the target plane;

[0021] Plane fitting is performed on the fourth point cloud data to determine the second point cloud data belonging to the pallet on the target plane.

[0022] In some embodiments, performing edge fitting based on the third point cloud data to determine fourth point cloud data in the third point cloud data that is within a fitting edge range of the pallet on the target plane includes:

[0023] Performing plane mapping on the distance in the target direction in the third point cloud data to obtain a second plane image;

[0024] Performing edge fitting on each pixel point in the second plane image to estimate a tray hole of the tray;

[0025] Based on the estimation result of the tray hole, fourth point cloud data belonging to the fitting edge range of the tray on the target plane in the third point cloud data is determined.

[0026] In some embodiments, performing plane fitting on the fourth point cloud data to determine the second point cloud data belonging to the pallet on the target plane includes:

[0027] Performing plane fitting on the fourth point cloud data to determine a first fitting plane of the pallet;

[0028] The points in the fourth point cloud data whose distance from the first fitting plane of the pallet is less than a preset distance threshold are determined as the second point cloud data.

[0029] In some embodiments, positioning the pallet based on the second point cloud data includes:

[0030] Performing edge fitting based on the second point cloud data to determine contour information of the pallet;

[0031] Determining the center point information of the pallet based on the contour information of the pallet;

[0032] Performing plane fitting on the second point cloud data to determine a second fitting plane of the pallet;

[0033] Based on the second fitting plane, angle information between the tray and the depth camera is determined.

[0034] In a second aspect, an embodiment of the present disclosure provides a pallet identification device, the device comprising:

[0035] An acquisition module, configured to acquire first point cloud data containing the pallet based on a depth camera;

[0036] A determination module, configured to perform gradient calculation based on the first point cloud data to determine second point cloud data belonging to the pallet on a target plane in the first point cloud data; wherein the target plane is a plane of the pallet facing the depth camera;

[0037] A positioning module is used to position the pallet based on the second point cloud data.

[0038] In some embodiments, the determination module is also used to perform planar mapping on the distance in the target direction in the first point cloud data to obtain a first plane image; wherein the target direction is the direction representing the distance between the pallet and the depth camera; perform gradient calculation on each pixel point in the first plane image to obtain a gradient calculation result for each pixel point; based on the gradient calculation result, determine the third point cloud data corresponding to the candidate area of ​​the pallet in the target plane in the first point cloud data; and perform fitting based on the third point cloud data to determine the second point cloud data belonging to the pallet on the target plane.

[0039] In some embodiments, the determination module is also used to determine, based on the gradient values ​​of each of the pixel points, a target pixel point whose gradient value is less than a preset gradient threshold; and based on the target pixel point in the first plane image, determine the third point cloud data belonging to the candidate area of ​​the pallet in the first point cloud data.

[0040] In some embodiments, the determination module is further used to perform histogram statistics on the target pixel points in the first plane image to obtain a histogram statistical result; the distance with the largest proportion in the histogram statistical result is determined as the spacing value between the pallet and the depth camera; and the point in the first point cloud data where the difference between the distance in the target direction and the spacing value is within a preset difference range is determined as the third point cloud data.

[0041] In some embodiments, the determination module is also used to perform edge fitting based on the third point cloud data to determine fourth point cloud data in the third point cloud data that belongs to the pallet within the fitting edge range on the target plane; and perform plane fitting on the fourth point cloud data to determine the second point cloud data that belongs to the pallet on the target plane.

[0042] In some embodiments, the determination module is further used to perform planar mapping on the distance in the target direction in the third point cloud data to obtain a second plane image; perform edge fitting on each pixel point in the second plane image to estimate the pallet hole of the pallet; and determine, based on the estimation result of the pallet hole, fourth point cloud data in the third point cloud data that is within the fitting edge range of the pallet on the target plane.

[0043] In some embodiments, the determination module is also used to perform plane fitting on the fourth point cloud data to determine the first fitting plane of the pallet; and determine the points in the fourth point cloud data whose distance from the first fitting plane of the pallet is less than a preset distance threshold as the second point cloud data.

[0044] In some embodiments, the positioning module is also used to perform edge fitting based on the second point cloud data to determine the contour information of the pallet; determine the center point information of the pallet based on the contour information of the pallet; perform plane fitting on the second point cloud data to determine the second fitting plane of the pallet; and determine the angle information between the pallet and the depth camera based on the second fitting plane.

[0045] In a third aspect, an embodiment of the present disclosure provides a computer device, including a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor implements the method described in the first aspect when executing the program.

[0046] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which implements the method described in the first aspect when executed by a processor.

[0047] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0048] In the disclosed embodiment, first point cloud data including a pallet is obtained, gradient calculation is performed based on the first point cloud data, second point cloud data belonging to the pallet on a target plane in the first point cloud data is determined, and the pallet is positioned based on the second point cloud data. This method adopts a traditional image processing method. By utilizing gradient calculation, point cloud data in the first point cloud data that is not on the target plane of the pallet can be quickly and accurately determined and eliminated, thereby achieving high-precision recognition of the pallet. There is no need to perform deep learning, model matching, etc. based on a large amount of data, thereby reducing the requirements of the pallet recognition device on the computing power of computers or chips, making the industrial implementation of the pallet recognition technology easier and with lower implementation costs.

[0049] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used to explain the technical solutions of the present disclosure together with the specification.

[0051] Figure 1 A schematic diagram of the implementation flow of a pallet identification method provided in an embodiment of the present disclosure;

[0052] Figure 2 A schematic diagram of a pallet identification device provided in an embodiment of the present disclosure;

[0053] Figure 3 A hardware entity schematic diagram of a computer device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the technical solutions of the present disclosure are further elaborated in detail below in conjunction with the drawings and embodiments. The described embodiments should not be regarded as limiting the present disclosure. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.

[0055] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0056] The terms "first / second / third" involved in the present disclosure are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first / second / third" can be interchanged with the specific order or sequence where permitted, so that the embodiments of the present disclosure described herein can be implemented in an order other than that illustrated or described herein.

[0057] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used herein are only for the purpose of describing the present disclosure and are not intended to limit the present disclosure.

[0058] Figure 1 A schematic diagram of the implementation flow of a tray identification method provided in an embodiment of the present disclosure is shown in FIG. Figure 1 As shown, the method comprises the following steps:

[0059] S101, acquiring first point cloud data containing the pallet based on a depth camera;

[0060] S102, performing gradient calculation based on the first point cloud data to determine second point cloud data belonging to the pallet on a target plane in the first point cloud data; wherein the target plane is a plane of the pallet facing the depth camera;

[0061] S103: Positioning the pallet based on the second point cloud data.

[0062] The pallet identification method of the disclosed embodiment can be applied to pallet identification equipment, which can be a shipping device that directly transports goods in industrial scenarios such as smart forklifts and automated guided vehicles (AGVs); or other computer devices that are connected to and control the shipping device through a wired or wireless network. The pallet identification method can realize intelligent identification and shipping integration of pallets in scenarios such as logistics transportation and robot handling.

[0063] In step S101, the depth camera may be a structured light depth camera, a time of flight depth camera (TOF), a binocular stereo depth camera, etc. By photographing the pallet with the depth camera, a depth image (RGB-D, RGB-Depth) containing the pallet may be obtained, and point cloud data containing the pallet may be generated based on the depth image.

[0064] It should be noted that in the disclosed embodiment, the depth camera can be independently installed on the pallet recognition device or can be a component of the pallet recognition device, and the pallet recognition device and the depth camera can be connected by wire or wirelessly. There are multiple ways to obtain the first point cloud data of the pallet, which can be captured by the depth camera and generate the first point cloud data; or the pallet recognition device can receive the depth image captured by the depth camera and generate the first point cloud data based on the depth image.

[0065] It should be noted that since the relative position of the depth camera and the pallet may vary in the application of various storage environments, it is easy to cause a certain offset between the depth image captured by the depth camera and the actual position of the pallet. Therefore, the depth image captured by the depth camera can be corrected.

[0066] For example, based on the installation conditions of the pallet and the depth camera, the data of the region of interest (ROI) of the pallet and the three-dimensional angle of the depth camera relative to the plane of the pallet can be obtained, and the ROI area can be rotationally corrected using the following rotation correction formulas (1)-(3).

[0067]

[0068]

[0069]

[0070] Where θ represents the 3D angle of the depth camera relative to the plane of the pallet, R x (θ) represents the rotation correction parameter along the x-axis, R y (θ) represents the rotation correction parameter along the y-axis, R z (θ ) Characterizes the rotation correction parameter along the z-axis.

[0071] In the disclosed embodiment, rotation correction is performed on the region of interest corresponding to the pallet, so as to improve the accuracy of the first point cloud data and help improve the accuracy of pallet recognition.

[0072] It should be noted that the automated guided vehicle cooperates with the pallet holes of the pallet through the robotic arm to realize the integrated functions of identification, loading and transportation in the smart warehouse. However, in the smart warehouse environment, in addition to pallets and automated guided vehicles, there are usually multiple objects such as shelves and goods. The purpose of pallet recognition is to quickly and accurately identify the pallet and enable the automated guided vehicle to perform relevant operations on the pallet according to the identified pallet holes. Therefore, the most important thing for pallet recognition is the information of the plane of the pallet facing the automated guided vehicle, that is, the target plane. The first point cloud data is obtained by the depth camera, which contains a lot of data that is not related to the pallet target plane. Therefore, it is necessary to eliminate the data that does not belong to the pallet target plane in the first point cloud data, and locate it according to the pallet target plane.

[0073] In step S102, the gradient calculation is performed based on the first point cloud data. The gradient calculation can be performed directly based on the depth information of each point in the first point cloud data; or the gradient calculation can be performed based on the grayscale information corresponding to each point in the first point cloud data. In the embodiment of the present disclosure, the target plane of the tray is the plane of the tray facing the depth camera, and based on the gradient calculation result, the second point cloud data belonging to the plane of the tray facing the depth camera in the first point cloud data is determined.

[0074] It should be noted that the gradient value obtained by gradient calculation can represent the numerical change per unit distance in the specified direction. As described above, the depth information of each point in the first point cloud data represents the distance between each point and the target plane of the pallet. Therefore, the depth gradient can reflect the change in the distance between each point in the first point cloud data and the target plane of the pallet. If the gradient value of a point is large, it means that the distance between the point and the adjacent point is very different, that is, it may not be a point on the target plane of the pallet; in addition, the gray gradient can reflect the difference in color. If the gray gradient of a point is large, it means that the color of the point is very different from that of the adjacent point. Since the color of the pallet is usually single, the point with a large gray gradient may not be a point on the target plane of the pallet. Since the gradient calculation is relatively simple and fast, the gradient can be used to quickly find points with large distance and / or color changes in the first point cloud data, so that interference can be quickly and effectively eliminated. In step S103, the pallet is positioned based on the second point cloud data of the pallet. Generally, when the automatic guided vehicle performs relevant operations on the pallet, it needs to know the four-posture information of the pallet, that is, the three-dimensional information of the center point and the angle information between the pallet and the depth camera. In the disclosed embodiment, edge fitting can be performed based on the second point cloud data of the pallet to determine the three-dimensional information of the center point of the pallet; plane fitting can also be performed based on the second point cloud data of the pallet to determine the angle information between the pallet and the depth camera.

[0075] In the related technologies, pallet recognition mostly relies on the combination of deep learning and point cloud template matching, or the combination of deep learning and traditional image processing. Such solutions require the collection of a large amount of data and the training of scenes or matching of models based on the data. They have problems such as large amount of calculation and high hardware requirements, resulting in high mass production costs of pallet recognition equipment, which is not conducive to the implementation of pallet recognition technology in industry.

[0076] Relatively speaking, in the embodiment of the present disclosure, the first point cloud data including the pallet is obtained, and gradient calculation is performed based on the first point cloud data, the second point cloud data belonging to the pallet in the target plane in the first point cloud data is determined, and the pallet is positioned based on the second point cloud data. This method adopts the traditional image processing method. The point cloud data that is not on the target plane of the pallet in the first point cloud data can be quickly and accurately determined and eliminated by gradient calculation, thereby achieving high-precision recognition of the pallet. There is no need for deep learning, model matching, etc. based on a large amount of data, which reduces the requirements of the pallet recognition equipment on the computing power of computers or chips, making the industrial implementation of pallet recognition technology easier and with lower implementation costs.

[0077] In some embodiments, performing gradient calculation based on the first point cloud data to determine second point cloud data belonging to the pallet on the target plane in the first point cloud data includes:

[0078] Performing plane mapping on the distance in the target direction in the first point cloud data to obtain a first plane image; wherein the target direction is a direction representing the distance between the tray and the depth camera;

[0079] Performing gradient calculation on each pixel point in the first plane image to obtain a gradient calculation result of each pixel point;

[0080] Based on the gradient calculation result, determining third point cloud data corresponding to the candidate area of ​​the tray on the target plane in the first point cloud data;

[0081] Fitting is performed based on the third point cloud data to determine the second point cloud data belonging to the pallet on the target plane.

[0082] It should be noted that the three-dimensional point cloud data can be converted into a two-dimensional plane image, so as to facilitate the subsequent screening and obtaining of the second point cloud data through gradient calculation. In the embodiment of the present disclosure, the first point cloud data can be projected to the target plane, and the pixel coordinates of each pixel in the first plane image can be determined based on the three-dimensional coordinates of each point in the first point cloud data, and the pixel value of each pixel in the first plane image can be determined based on the distance in the target direction in the first point cloud data, so as to obtain the corresponding first plane image by plane mapping the first point cloud data. Among them, the target direction is the direction that characterizes the distance between the pallet and the depth camera. For example, when the pallet and the depth camera are both installed perpendicular to the z-axis, each point in the first point cloud data characterizes the direction of the distance between the pallet and the depth camera in the z-axis direction.

[0083] In the disclosed embodiment, the gradient calculation is performed on each pixel point in the first plane image to obtain the gradient calculation result of each pixel point, wherein the gradient calculation can be implemented by using a variety of gradient calculation methods such as numerical method, partial derivative method, vector derivative method, etc. Exemplarily, the gradient calculation can be performed using the following formula (4):

[0084]

[0085] Wherein, f represents the distance data of each pixel point in the first plane image, x, y represent the coordinate values ​​of each pixel point on the first plane image on the x and y axes respectively, △ 2 f represents the gradient calculation result of the pixel value (distance value in the target direction) of each pixel point in the first plane image.

[0086] It should be noted that there are usually multiple items such as goods, pallets, and shelves in a warehouse environment. Usually, the goods and pallets are basically in the same spatial layer, while the shelves are far away from the pallets and are not in the same spatial layer as the pallets. Therefore, in the process of pallet recognition, it is necessary to eliminate the data of various interference objects to accurately recognize the pallet.

[0087] In the disclosed embodiment, based on the gradient calculation result of each pixel point in the first plane image, interference objects (such as shelves) that are not on the same layer as the pallet are eliminated, and the third point cloud data corresponding to the candidate area of ​​the pallet in the target plane in the first point cloud data (i.e., the point cloud data of the pallet and the goods) are determined; fitting is performed based on the third point cloud data, and interference objects (such as goods) that are on the same layer as the pallet but belong to the non-pallet area are eliminated, and the second point cloud data belonging to the pallet on the target plane (i.e., the point cloud data of the pallet) are determined.

[0088] As described above, in the embodiments of the present disclosure, the spatial information of the warehouse environment is processed in layers based on the depth camera, and the layered idea of ​​image processing is combined with gradient calculation to perform pallet recognition layer by layer and eliminate a large number of interference objects in non-pallet target plane parts, thereby removing unnecessary interference object data, improving the accuracy of pallet recognition, reducing the calculation amount of pallet recognition, and reducing the industrialization cost of pallet recognition technology.

[0089] In some embodiments, determining, based on the gradient calculation result, third point cloud data corresponding to the candidate area of ​​the tray in the target plane in the first point cloud data includes:

[0090] Based on the gradient value of each of the pixel points, determine a target pixel point whose gradient value is less than a preset gradient threshold;

[0091] Performing histogram statistics on the target pixel points in the first plane image to obtain a histogram statistics result;

[0092] The distance with the largest proportion in the histogram statistics result is determined as the distance value between the tray and the depth camera;

[0093] A point in the first point cloud data, for which the difference between the distance in the target direction and the spacing value is within a preset difference range, is determined as the third point cloud data.

[0094] In the disclosed embodiment, as described above, the pixel value of each pixel point in the first plane image is used to characterize the distance of each point in the first point cloud data in the target direction, so the gradient value of each pixel point can characterize the change in the distance of each point in the first point cloud data in the target direction. Exemplarily, the larger the gradient value of each pixel point in the first plane, the larger the change in the distance of the point in the first point cloud data corresponding to each pixel point, and the point may be a point on the target plane far away from the pallet; the smaller the gradient value of each pixel point in the first plane, the smaller the change in the distance of the point in the first point cloud data corresponding to each pixel point, and the point may be a point on the target plane of the pallet. Therefore, each pixel point with a gradient value less than a preset gradient threshold can be determined as a target pixel point that needs to be retained, thereby eliminating interference objects that are not in the same plane as the pallet.

[0095] In the disclosed embodiment, the third point cloud data belonging to the candidate area of ​​the pallet in the first point cloud data can be determined based on the target pixel point in the first plane image. For example, the point in the first point cloud data corresponding to the target pixel point in the first plane image can be directly determined as the third point cloud data belonging to the candidate area of ​​the pallet in the first point cloud data through the correspondence between the first plane image and the first point cloud data; the target pixel point in the first plane image can also be histogrammed to estimate the distance value between the depth camera and the plane of the pallet, and the point in the first point cloud data where the difference between the distance in the target direction and the distance value is within a preset difference range can be determined as the third point cloud data.

[0096] In the disclosed embodiment, the target pixel point in the first plane image corresponds to the point on the target plane of the pallet in the first point cloud data, and the pixel value of the target pixel point in the first plane image corresponds to the distance of each point in the first point cloud data in the target direction. Therefore, the statistical result obtained by performing histogram statistics on the target pixel points in the first plane image can determine the proportion of each distance in the first point cloud data. Since the pallet and the goods are in the same plane (same distance) in the first plane image, they occupy most of the first plane image, that is, the distance with the largest proportion in the histogram statistics can represent the spacing value between the pallet and the depth camera, and the point in the first point cloud data where the difference between the distance in the target direction and the spacing value is within the preset difference range is determined as the third point cloud data. For example, by performing histogram statistics on the first plane image to determine that the distance value between the depth camera and the pallet is 1.2m, it can be determined that the points in the first point cloud data with depth values ​​in the range of 1.1m to 1.3m are most likely points on the target plane of the pallet.

[0097] In the disclosed embodiment, each pixel whose gradient value is less than a preset gradient threshold is determined as a target pixel, and the distance value between the depth camera and the pallet is estimated based on the target pixel by performing histogram statistics, and the third point cloud data of the candidate area of ​​the pallet is further determined based on the distance value, and the accuracy of pallet recognition is further improved by performing rapid screening through gradient values ​​and histogram statistics. In addition, this method simply and effectively reduces invalid data of non-pallet target planes, and can improve the accuracy of pallet recognition.

[0098] In some embodiments, the fitting based on the third point cloud data to determine the second point cloud data belonging to the pallet on the target plane includes:

[0099] Perform edge fitting based on the third point cloud data to determine fourth point cloud data in the third point cloud data that is within a fitting edge range of the pallet on the target plane;

[0100] Plane fitting is performed on the fourth point cloud data to determine the second point cloud data belonging to the pallet on the target plane.

[0101] In the disclosed embodiment, edge fitting is performed based on the third point cloud data, and the third point cloud data may be mapped into a two-dimensional image, and edge fitting is performed based on the mapped two-dimensional image to obtain fitting edge information of the pallet. Exemplarily, the outer dimension information of the pallet (e.g., the length and width of the pallet) and the inner dimension information of the pallet (e.g., the size of the pallet hole) may be determined based on the fitting edge, and based on the fitting edge information of the pallet, the points of the third point cloud data corresponding to each pixel point in the two-dimensional image within the fitting edge range are determined as the fourth point cloud data of the pallet.

[0102] In the disclosed embodiment, plane fitting is performed on the fourth point cloud data. The plane fitting is performed based on the fourth point cloud data, and the points in the fourth point cloud data whose distance to the fitting plane of the pallet is less than a preset distance threshold are used to determine the second point cloud data belonging to the pallet on the target plane.

[0103] It should be noted that the candidate area of ​​the pallet is determined in the third point cloud data, but there will still be interference data such as cargo data and data of the recessed parts of the pallet holes in the area. In the embodiment of the present disclosure, on the one hand, edge fitting is performed based on the third point cloud data to eliminate cargo data outside the pallet fitting edge range; on the other hand, plane fitting is performed based on the third point cloud data to eliminate data of the recessed parts of the pallet holes that are not on the pallet plane. Interference data outside the target plane of the pallet is eliminated from multiple aspects, thereby further improving the accuracy of pallet recognition.

[0104] In some embodiments, performing edge fitting based on the third point cloud data to determine fourth point cloud data in the third point cloud data that is within a fitting edge range of the pallet on the target plane includes:

[0105] Performing plane mapping on the distance in the target direction in the third point cloud data to obtain a second plane image;

[0106] Performing edge fitting on each pixel point in the second plane image to estimate a tray hole of the tray;

[0107] Based on the estimation result of the tray hole, fourth point cloud data belonging to the fitting edge range of the tray on the target plane in the third point cloud data is determined.

[0108] In the disclosed embodiment, the distance in the target direction in the third point cloud data is planar mapped to obtain a second plane image with the distance in the target direction as the pixel value, and a gradient calculation is performed on each pixel point in the second plane image to obtain a gradient calculation result. Edge fitting is performed based on the gradient calculation result of each pixel point in the second plane image to estimate the tray hole of the tray.

[0109] For example, the following formulas (5) and (6) may be used to perform edge fitting on each pixel point in the second plane image:

[0110]

[0111]

[0112] Among them, G x , G y They represent the partial derivatives of the pixel in the x and y directions respectively, G represents the increase in the unit distance of the pixel in the direction of the maximum gradient change rate, and θ represents the direction of gradient non-maximum suppression.

[0113] In the disclosed embodiment, the pallet hole can be estimated by rectangle fitting. For example, when the length and width of the fitted rectangle meet the preset information of the pallet hole, the hole information is determined to be a valid pallet hole and stored in the pallet hole set. In the disclosed embodiment, a judgment is made based on the information of each pallet hole in the data of the pallet hole set. If the spatial information between adjacent pallet holes meets the preset conditions, the center point information of the pallet and the inner size (pallet hole size) and outer size (length and width of the outer edge of the pallet) of the pallet are determined based on the information of the two adjacent pallet holes. Based on the center point information of the pallet and the inner and outer size information of the pallet, the fourth point cloud data belonging to the pallet fitting edge range on the target plane in the third point cloud data is determined.

[0114] In the disclosed embodiment, plane mapping is performed based on the third point cloud data to obtain a second plane image and perform edge fitting to obtain the fitting edge of the pallet, and the fourth point cloud data within the fitting edge range of the pallet is determined. Through plane mapping and edge fitting, points in the third point cloud data that are not within the fitting edge range of the pallet are quickly and efficiently eliminated, thereby reducing the computational complexity of pallet recognition, reducing the dependence of pallet recognition on the computing power of hardware equipment, and thereby reducing the cost of industrializing pallet recognition.

[0115] In some embodiments, performing plane fitting on the fourth point cloud data to determine the second point cloud data belonging to the pallet on the target plane includes:

[0116] Performing plane fitting on the fourth point cloud data to determine a first fitting plane of the pallet;

[0117] The points in the fourth point cloud data whose distance from the first fitting plane of the pallet is less than a preset distance threshold are determined as the second point cloud data.

[0118] In the disclosed embodiment, plane fitting is performed on the fourth point cloud data to determine the first fitting plane of the tray. The plane fitting method may be a least square method, a Chebyshev method, etc. Exemplarily, the following formulas (7)-(12) may be used to perform plane fitting on the fourth point cloud data.

[0119] A*x + B*y+C*z+D =0(C≠0) (7)

[0120] z = a*x + b*y+c (8)

[0121] a=-A / C; b=-B / C; c=-D / C; (9)

[0122] ∑2(a*x i +b*y i +cz i )*x i =0 (10)

[0123] ∑2(a*x i +b*y i +cz i )*y i =0 (11)

[0124] ∑2(a*x i +by i +cz i )=0 (12)

[0125] Among them, formula (7) is the expression of the plane equation of the first fitting plane of the fourth point cloud data, formula (8) is the plane expression of the first fitting plane obtained by plane equation conversion, formula (9) is the parameter value of the plane equation, and formulas (10)-(12) are used to calculate the fitting parameters of the least squares method. The data of each point in the fourth point cloud data {(x, y, z)|(x, y, z)∈(x i ,y i ,z i ),i=0,1,...,n-1} into formulas (10)-(12) to obtain the parameters a, b, c of the equation of the fitting plane of the fourth point cloud data. By substituting the equation parameters of the fitting plane into formula (8), the plane equation of the first fitting plane can be obtained.

[0126] In the embodiment of the present disclosure, a point in the fourth point cloud data whose distance from the first fitting plane of the pallet is less than a preset distance threshold is determined as the second point cloud data. It should be noted that the pallet hole on the pallet is usually concave inward, so the preset distance threshold can be set to the depth value of the inward concave of the pallet hole. For example, when the pallet hole is concave inward by 3 cm, the distance threshold is set to 2 cm.

[0127] In the disclosed embodiment, the fourth point cloud data is fitted to obtain the first fitting plane of the pallet, and the points in the fourth point cloud data whose distance from the first fitting plane of the pallet is less than a preset distance threshold are determined as the second point cloud data. Through the plane fitting method, the inwardly concave noise points of the pallet hole that are very close to the pallet can be eliminated, thereby effectively improving the accuracy of pallet recognition.

[0128] In some embodiments, positioning the pallet based on the second point cloud data includes:

[0129] Performing edge fitting based on the second point cloud data to determine contour information of the pallet;

[0130] Determining the center point information of the pallet based on the contour information of the pallet;

[0131] Performing plane fitting on the second point cloud data to determine a second fitting plane of the pallet;

[0132] Based on the second fitting plane, angle information between the tray and the depth camera is determined.

[0133] In the disclosed embodiment, edge fitting is performed based on the second point cloud data, and the process of edge fitting can refer to the method of edge fitting based on the third point cloud data mentioned above; in addition, based on the contour information of the pallet, the center point information of the pallet is determined, and the two-dimensional coordinates of the center point of the pallet contour can be determined through the contour information of the pallet. Based on the correspondence between the two-dimensional image and the three-dimensional point cloud, the center point information of the pallet can be determined.

[0134] In the disclosed embodiment, a plane fitting is performed on the second point cloud data to determine the second fitting plane of the tray, thereby determining the angle information between the tray and the depth camera. The fitting of the second fitting plane can refer to the fitting method of the first fitting plane. For example, the second fitting plane of the tray can be obtained by fitting using the following plane equation (13).

[0135] a1*x + b1*y-z+c1 = 0 (13)

[0136] Wherein, a1, b1, c1 are the plane equation parameters of the second fitting plane, so that the plane normal vector of the second fitting plane can be determined to be (a1, b1, -1).

[0137] In the embodiment of the present disclosure, the angle information between the tray and the depth camera is determined based on the second fitting plane. Exemplarily, the angle information between the tray and the depth camera can be calculated using the following formula (14).

[0138]

[0139] Where a1, b1 are the plane equation parameters of the second fitting plane, and θ is the angle between the tray and the depth camera.

[0140] In the disclosed embodiment, edge fitting and plane fitting are performed based on the second point cloud data, and the center point information of the pallet and the angle information between the pallet and the depth camera can be output respectively, thereby completing the four-posture information recognition of the pallet. Through multiple edge and plane fitting operations, points that are not on the target plane of the pallet can be accurately removed, thereby improving the pallet recognition accuracy, so that the pallet recognition accuracy can reach the millimeter level, which is conducive to the widespread application of the pallet recognition method in industry.

[0141] Figure 2 A schematic diagram of a pallet identification device provided in an embodiment of the present disclosure, such as Figure 2 As shown, the pallet identification device 600 includes:

[0142] An acquisition module 601 is used to acquire first point cloud data containing the pallet based on a depth camera;

[0143] A determination module 602 is used to perform gradient calculation based on the first point cloud data to determine second point cloud data belonging to the pallet on a target plane in the first point cloud data; wherein the target plane is a plane of the pallet facing the depth camera;

[0144] The positioning module 603 is used to position the pallet based on the second point cloud data.

[0145] In some embodiments, the determination module 602 is further used to perform planar mapping on the distance in the target direction in the first point cloud data to obtain a first plane image; wherein the target direction is the direction representing the distance between the pallet and the depth camera; perform gradient calculation on each pixel point in the first plane image to obtain a gradient calculation result for each pixel point; based on the gradient calculation result, determine the third point cloud data corresponding to the candidate area of ​​the pallet in the target plane in the first point cloud data; and perform fitting based on the third point cloud data to determine the second point cloud data belonging to the pallet on the target plane.

[0146] In some embodiments, the determination module 602 is further used to determine, based on the gradient values ​​of each of the pixel points, a target pixel point whose gradient value is less than a preset gradient threshold; perform histogram statistics on the target pixel points in the first plane image to obtain a histogram statistical result; determine the distance with the largest proportion in the histogram statistical result as the spacing value between the pallet and the depth camera; and determine the point in the first point cloud data where the difference between the distance in the target direction and the spacing value is within a preset difference range as the third point cloud data.

[0147] In some embodiments, the determination module 602 is also used to perform edge fitting based on the third point cloud data to determine fourth point cloud data in the third point cloud data that belongs to the pallet within the fitting edge range on the target plane; and perform plane fitting on the fourth point cloud data to determine the second point cloud data that belongs to the pallet on the target plane.

[0148] In some embodiments, the determination module 602 is further used to perform planar mapping on the distance in the target direction in the third point cloud data to obtain a second plane image; perform edge fitting on each pixel point in the second plane image to estimate the pallet hole of the pallet; and determine, based on the estimation result of the pallet hole, fourth point cloud data in the third point cloud data that is within the fitting edge range of the pallet on the target plane.

[0149] In some embodiments, the determination module 602 is also used to perform plane fitting on the fourth point cloud data to determine the first fitting plane of the pallet; and determine the points in the fourth point cloud data whose distance from the first fitting plane of the pallet is less than a preset distance threshold as the second point cloud data.

[0150] In some embodiments, the positioning module 603 is also used to perform edge fitting based on the second point cloud data to determine the contour information of the pallet; determine the center point information of the pallet based on the contour information of the pallet; perform plane fitting on the second point cloud data to determine the second fitting plane of the pallet; and determine the angle information between the pallet and the depth camera based on the second fitting plane.

[0151] Figure 3 is a schematic diagram of a hardware entity of a computer device in an embodiment of the present disclosure, such as Figure 3 As shown, the hardware entity of the computer device 800 includes: a processor 801, a communication interface 802 and a memory 803, wherein: the processor 801 generally controls the overall operation of the computer device 800. The communication interface 802 enables the computer device to communicate with other terminals or servers through a network.

[0152] The memory 803 is configured to store instructions and applications executable by the processor 801, and can also cache data to be processed or processed by the processor 801 and each module in the computer device 800 (for example, image data, audio data, voice communication data, and video communication data), which can be implemented by flash memory (FLASH) or random access memory (Random Access Memory, RAM). Data can be transmitted between the processor 801, the communication interface 802, and the memory 803 through the bus 804. Among them, the processor 801 is used to execute some or all of the steps in the above method.

[0153] Correspondingly, an embodiment of the present disclosure provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, part or all of the steps in the above method are implemented.

[0154] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of the present disclosure, please refer to the description of the method embodiments of the present disclosure for understanding.

[0155] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present disclosure. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in the various embodiments of the present disclosure, the size of the serial number of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure. The serial numbers of the embodiments of the present disclosure are for description only and do not represent the advantages and disadvantages of the embodiments.

[0156] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0157] In the several embodiments provided in the present disclosure, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0158] The units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0159] In addition, all functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may be separately configured as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0160] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0161] Alternatively, if the above-mentioned integrated unit of the present disclosure is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0162] The above is only an embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A method for identifying a pallet, characterized in that: The method comprises: Acquire first point cloud data including the pallet based on a depth camera; Performing gradient calculation based on the first point cloud data to determine second point cloud data belonging to the pallet on a target plane in the first point cloud data; wherein the target plane is a plane of the pallet facing the depth camera; Positioning the pallet based on the second point cloud data; The step of performing gradient calculation based on the first point cloud data to determine second point cloud data belonging to the pallet on the target plane in the first point cloud data includes: Performing plane mapping on the distance in the target direction in the first point cloud data to obtain a first plane image; wherein the target direction is a direction representing the distance between the tray and the depth camera; Performing gradient calculation on each pixel point in the first plane image to obtain a gradient calculation result of each pixel point; Based on the gradient calculation result, determining third point cloud data corresponding to the candidate area of ​​the tray on the target plane in the first point cloud data; Perform fitting based on the third point cloud data to determine the second point cloud data belonging to the pallet on the target plane; The determining, based on the gradient calculation result, third point cloud data corresponding to the candidate area of ​​the tray in the target plane in the first point cloud data comprises: Based on the gradient value of each of the pixel points, determine a target pixel point whose gradient value is less than a preset gradient threshold; Performing histogram statistics on the target pixel points in the first plane image to obtain a histogram statistics result; Determine the distance with the largest proportion in the histogram statistics as the distance value between the tray and the depth camera; A point in the first point cloud data, for which the difference between the distance in the target direction and the spacing value is within a preset difference range, is determined as the third point cloud data.

2. The method according to claim 1, characterized in that The fitting based on the third point cloud data to determine the second point cloud data belonging to the pallet on the target plane includes: Perform edge fitting based on the third point cloud data to determine fourth point cloud data in the third point cloud data that is within a fitting edge range of the pallet on the target plane; Plane fitting is performed on the fourth point cloud data to determine the second point cloud data belonging to the pallet on the target plane.

3. The method according to claim 2, characterized in that The performing edge fitting based on the third point cloud data to determine fourth point cloud data in the third point cloud data that is within the fitting edge range of the pallet on the target plane includes: Performing plane mapping on the distance in the target direction in the third point cloud data to obtain a second plane image; Performing edge fitting on each pixel point in the second plane image to estimate a tray hole of the tray; Based on the estimation result of the tray hole, fourth point cloud data belonging to the fitting edge range of the tray on the target plane in the third point cloud data is determined.

4. The method according to claim 2, characterized in that: The performing plane fitting on the fourth point cloud data to determine the second point cloud data belonging to the pallet on the target plane includes: Performing plane fitting on the fourth point cloud data to determine a first fitting plane of the pallet; The points in the fourth point cloud data whose distance from the first fitting plane of the pallet is less than a preset distance threshold are determined as the second point cloud data.

5. The method according to claim 1, characterized in that Positioning the pallet based on the second point cloud data includes: Performing edge fitting based on the second point cloud data to determine contour information of the pallet; Determining the center point information of the pallet based on the contour information of the pallet; Performing plane fitting on the second point cloud data to determine a second fitting plane of the pallet; Based on the second fitting plane, angle information between the tray and the depth camera is determined.

6. A pallet identification device, characterized in that: The device comprises: An acquisition module, configured to acquire first point cloud data containing the pallet based on a depth camera; A determination module, configured to perform gradient calculation based on the first point cloud data to determine second point cloud data belonging to the pallet on a target plane in the first point cloud data; wherein the target plane is a plane of the pallet facing the depth camera; A positioning module is used to position the pallet based on the second point cloud data.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Target recognition method, device and system based on laser radar

    CN110969174A