Pallet posture positioning method, device, equipment and storage medium
By combining RGBD image and point cloud processing, the pallet identification information and heading angle are extracted, which solves the shortcomings in the positioning accuracy and robustness of various types of pallets in the existing technology, and achieves high-precision pallet positioning in various environments. Pose detection.
Patent Information
- Application Number
- CN202011029159.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-25
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-09-25
AI Technical Summary
Existing technology cannot position multiple types of pallets with high precision and robustness. Especially in an unmanned forklift environment, existing methods have high requirements on environmental conditions and poor universality.
By acquiring RGBD images and point cloud images, combined with deep learning and point cloud processing, the pallet identification information and heading angle are extracted, a coordinate system is established, and the center point and heading angle of the pallet are determined, thereby achieving high-precision positioning of various types of pallets. .
It improves the universality and robustness of pallet posture detection, enables high-precision pallet posture positioning in a variety of environments, and improves the operational reliability of unmanned forklifts.
Smart Images

Figure CN112001972B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent warehousing technology, and in particular to a pallet posture positioning method, device, equipment and storage medium. Background Art
[0002] With the development of intelligent warehousing technology, traditional manufacturing is also constantly developing in the direction of digitalization, intelligence, and unmanned operation. Correspondingly, in actual production, the demand for unmanned forklifts is also increasing. How to achieve the "correct placement" of unmanned forklifts has always been a difficult problem in the industry. Most of the existing technologies can only perform posture positioning for pallets of specific shapes, and the generalization ability is not strong. When positioning the posture of pallets based on two-dimensional images, the environmental conditions are required to be high and the robustness is poor. Therefore, how to solve the problem that the existing technology cannot perform high-precision and high-robust positioning of various types of pallets has become an urgent problem to be solved.
[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present invention is to provide a pallet posture positioning method, device, equipment and storage medium, aiming to solve the technical problem that the prior art cannot perform high-precision and high-robust positioning of various types of pallets.
[0005] To achieve the above object, the present invention provides a method for positioning a pallet, the method comprising the following steps:
[0006] Acquire an RGBD image and a point cloud image of a preset pallet area, and perform image recognition processing on the RGBD image to obtain pallet identification information;
[0007] Establishing a corresponding coordinate system based on the pallet identification information, and determining the coordinates of the center point of the pallet according to the pallet identification information;
[0008] Extracting pallet point cloud data from the point cloud image according to the pallet identification information, and determining a pallet heading angle according to the pallet point cloud data;
[0009] The pallet position data is obtained according to the pallet center point coordinates and the pallet heading angle.
[0010] Preferably, the step of acquiring an RGBD image and a point cloud image of a preset pallet area, and performing image recognition processing on the RGBD image to obtain pallet identification information specifically includes:
[0011] Obtain RGBD image and point cloud image of the preset pallet area;
[0012] Performing grayscale value conversion processing on the RGBD image to obtain a grayscale depth map;
[0013] Performing edge detection on the grayscale depth map to obtain a pallet anchor frame;
[0014] Accordingly, the step of establishing a corresponding coordinate system based on the pallet identification information and determining the coordinates of the center point of the pallet according to the pallet identification information specifically includes:
[0015] A corresponding coordinate system is established based on the pallet anchor frame, and the coordinates of the pallet center point are determined according to the pallet anchor frame.
[0016] Preferably, the step of acquiring an RGBD image and a point cloud image of a preset pallet area, and performing image recognition processing on the RGBD image to obtain pallet identification information specifically includes:
[0017] Obtain RGBD image and point cloud image of the preset pallet area;
[0018] Inputting the RGBD image into a preset key point detection model to obtain a model output result, and extracting the key point information of the pallet from the model output result;
[0019] Accordingly, the step of establishing a corresponding coordinate system based on the pallet identification information and determining the coordinates of the center point of the pallet according to the pallet identification information specifically includes:
[0020] A corresponding coordinate system is established based on the key points of the pallet, and the coordinates of the center point of the pallet are determined according to the key points of the pallet.
[0021] Preferably, before the step of inputting the RGBD image into a preset key point detection model to obtain the key points of the pallet, the step further includes:
[0022] Obtain training samples corresponding to different pallet types, and obtain sample key point information corresponding to the training samples according to the pallet type;
[0023] Obtaining a sample RGBD image of the training sample;
[0024] The preset neural network model is trained with a central network according to the sample RGBD image and the sample key point information to obtain a preset key point detection model.
[0025] Preferably, the step of establishing a corresponding coordinate system based on the key points of the pallet and determining the coordinates of the center point of the pallet according to the key points of the pallet specifically includes:
[0026] extracting a pallet type from the model output;
[0027] Filtering the pallet point cloud data according to the pallet type to obtain point cloud data corresponding to the key points of the pallet;
[0028] A corresponding coordinate system is established based on the key points of the pallet, and the coordinates of the center point of the pallet are obtained according to the point cloud data corresponding to the key points of the pallet.
[0029] Preferably, the step of determining the heading angle of the pallet according to the pallet point cloud data specifically includes:
[0030] Projecting the pallet point cloud data along a preset normal vector to generate a raster image;
[0031] Performing a preset morphological operation on the raster image to obtain a preset bounding box;
[0032] Surface fitting is performed on the plane where the preset bounding box is located to obtain a pallet heading angle between the plane where the preset bounding box is located and the normal vector.
[0033] Preferably, the step of extracting pallet point cloud data from the point cloud image according to the pallet identification information specifically includes:
[0034] Extracting preliminary point cloud data from the point cloud image according to the pallet identification information;
[0035] Performing a preset filtering process on the preliminary point cloud data to obtain noise-reduced point cloud data;
[0036] Point cloud registration is performed on the noise reduction point cloud data to obtain pallet point cloud data.
[0037] In addition, to achieve the above-mentioned purpose, the present invention also proposes a pallet posture positioning device, the device comprising:
[0038] An information acquisition module is used to acquire an RGBD image and a point cloud image of a preset pallet area, and perform image recognition processing on the RGBD image to obtain pallet identification information;
[0039] A coordinate determination module, used to establish a corresponding coordinate system based on the pallet identification information, and determine the coordinates of the center point of the pallet according to the pallet identification information;
[0040] A heading angle determination module, used to extract pallet point cloud data from the point cloud image according to the pallet identification information, and determine the pallet heading angle according to the pallet point cloud data;
[0041] The posture positioning module is used to obtain the posture data of the pallet according to the coordinates of the center point of the pallet and the heading angle of the pallet.
[0042] In addition, to achieve the above-mentioned objectives, the present invention also proposes a pallet posture positioning device, which includes: a TOF camera, a memory, a processor, and a pallet posture positioning program stored in the memory and executable on the processor, wherein the pallet posture positioning program is configured to implement the steps of the pallet posture positioning method described above.
[0043] In addition, to achieve the above-mentioned purpose, the present invention further proposes a storage medium, on which a pallet posture positioning program is stored, and when the pallet posture positioning program is executed by a processor, the steps of the pallet posture positioning method described above are implemented.
[0044] The present invention obtains an RGBD image and a point cloud image of a preset pallet area, performs image recognition processing on the RGBD image, obtains pallet identification information, establishes a corresponding coordinate system based on the pallet identification information, determines the coordinates of the pallet center point according to the pallet identification information, extracts pallet point cloud data from the point cloud image according to the pallet identification information, determines the pallet heading angle according to the pallet point cloud data, and obtains pallet posture data according to the pallet center point coordinates and the pallet heading angle. Different from the prior art that only performs posture analysis on a pallet of a specific shape in a two-dimensional image or three-dimensional point cloud, the present invention combines deep learning and point cloud processing, and locates the pallet posture according to the obtained pallet center point coordinates and pallet heading angle, so as to achieve high-precision and high-robust positioning of various types of pallet postures, thereby improving the universality and robustness of pallet posture detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a structural schematic diagram of a pallet posture positioning device in a hardware operating environment involved in an embodiment of the present invention;
[0046] Figure 2 It is a schematic diagram of the process of the first embodiment of the pallet posture positioning method of the present invention;
[0047] Figure 3 This is a structural block diagram of the first embodiment of the pallet posture positioning device of the present invention.
[0048] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0049] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0050] Reference Figure 1 , Figure 1 It is a schematic diagram of the structure of the pallet posture positioning device in the hardware operating environment involved in the embodiment of the present invention.
[0051] like Figure 1 As shown, the pallet posture positioning device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005, and a TOF (Time Of Flight) camera 1006. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001. The TOF camera 1006 is used to collect amplitude images, depth images and point cloud images of a preset pallet area. The preset pallet area can be understood as the framing area of the camera head of the TOF camera 1006. In a specific implementation, in order to improve imaging efficiency, the camera function can be turned on only when the pallet is within the preset imaging range of the TOF camera 1006. The preset imaging range can be set according to actual needs, and this embodiment is not limited here.
[0052] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the pallet posture positioning device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0053] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module, and a tray posture positioning program.
[0054] exist Figure 1 In the pallet posture positioning device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the pallet posture positioning device of the present invention can be set in the pallet posture positioning device, and the pallet posture positioning device calls the pallet posture positioning program stored in the memory 1005 through the processor 1001, and executes the pallet posture positioning method provided by the embodiment of the present invention.
[0055] The embodiment of the present invention provides a method for positioning a pallet. Figure 2 , Figure 2 Schematic diagram of the process of the first embodiment of the pallet posture positioning method of the present invention.
[0056] In this embodiment, the pallet posture positioning method includes the following steps:
[0057] Step S10: acquiring an RGBD image and a point cloud image of a preset pallet area, and performing image recognition processing on the RGBD image to obtain pallet identification information;
[0058] It is easy to understand that the execution subject of this embodiment is the above-mentioned pallet posture positioning device, and the TOF (Time Of Flight) camera 1006 contained in the pallet posture positioning device can be used to collect the amplitude image, depth image and point cloud image of the preset pallet area, and then send the amplitude image and the depth image to the processor 1001 of the pallet posture positioning device, and the processor 1001 integrates the amplitude image and the depth image to obtain an RGBD image, and the RGBD image can be understood as a combination of a color image of three color channels of red (R), green (G), and blue (B) and a corresponding depth image (Depth map), wherein the color image and the depth image are registered, that is, there is a one-to-one correspondence between the pixels of the two. The preset pallet area can be understood as the viewfinder area of the camera of the TOF camera 1006. In a specific implementation, in order to improve the imaging efficiency, the camera function can be turned on only when the pallet is within the preset imaging range of the TOF camera 1006. The preset imaging range can be set according to actual needs, and this embodiment is not limited here.
[0059] It should be noted that in order to achieve the position positioning of various types of pallets, after obtaining the RGBD image, the RGBD image can be subjected to image recognition processing to obtain the pallet identification information, wherein the pallet identification information includes but is not limited to the pallet key point information and the pallet anchor frame, wherein the pallet key point information can be understood as the position of the pallet feet of the pallet, and the pallet anchor frame can be understood as when edge detection is performed on the pallet to extract the pallet contour, the pallet contour can be detected by a straight line, and then the minimum rectangular frame that can be completely enclosed with the straight line as a constraint is used as the pallet anchor frame. In a specific implementation, the RGBD image can be input into a preset deep learning model to obtain the pallet key point information or the pallet anchor frame, wherein the preset deep learning model can be obtained in the following manner: first, training samples corresponding to different pallet types are obtained, and sample RGBD images of the training samples are obtained, wherein the sample RGBD images can be understood as the RGBD images corresponding to the training samples, and then, image recognition processing is performed on the sample RGBD images to obtain sample identification information (the sample identification information corresponding to the training samples stored in a preset sample database can also be directly read), wherein the sample identification information can be understood as the pallet key point information and the pallet anchor frame corresponding to the training samples, and then, the preset neural network model is trained according to the sample RGBD image and the sample identification information to obtain the preset deep learning model, wherein the preset neural network model can be a convolutional neural network model, and accordingly, the sample RGBD image can be used as the input feature of the input layer of the convolutional neural network model, and the sample identification information can be used as the output feature of the neural network output layer of the convolutional neural network model, and then the convolutional neural network model is trained according to the input feature and the output feature to obtain the preset deep learning model.
[0060] In another implementation, in order to improve the positioning accuracy and robustness of the pallet posture, an RGBD image of a preset pallet area can be obtained, and then the RGBD image is converted into a grayscale value to obtain a grayscale depth map, and then the grayscale depth map is edge detected to obtain a pallet anchor frame. The grayscale value conversion process can be understood as converting the depth value of each pixel in the RGBD image into a grayscale value of 0-255 to obtain a grayscale depth map, and then edge detection is performed on the grayscale depth map to extract the pallet contour, and then the pallet contour is detected by straight line detection, and the minimum enclosing rectangle is obtained with the straight line angle as a constraint, that is, the pallet anchor frame. The target detection method based on the anchor frame YOLOv5 (You Only Look Once v5, the fifth generation of YOLO, YOLO is a real-time target detection framework) can also be used, by combining the genetic algorithm (Genetic Algorithm, GA) and the k-means clustering algorithm (k-means clustering algorithm) to train a convolutional neural network model to obtain a preset anchor frame model that can output a tray anchor frame according to the RGBD image. In a specific implementation, sample trays corresponding to different tray types can be first obtained, and sample RGBD images of the sample trays can be obtained. The sample RGBD images can be understood as RGBD images corresponding to the sample trays. Then, edge detection processing is performed on the sample RGBD images to obtain a tray anchor frame (the sample tray anchor frame corresponding to the sample tray stored in a preset sample database can also be directly read). Then, the sample RGBD image is used as the input feature of the input layer of the convolutional neural network model, and the sample tray anchor frame is used as the output feature of the neural network output layer of the convolutional neural network model. Then, according to the input feature and the output feature, the anchor frame-based target detection method YOLOv5 is used, and the convolutional neural network model is trained in combination with the genetic algorithm and the k-means clustering algorithm to obtain a preset anchor frame model.
[0061] In another implementation, in order to improve the positioning accuracy and robustness of the pallet posture, an RGBD image of a preset pallet area can be obtained, and then the RGBD image is input into a preset key point detection model to obtain a model output result, and then the pallet key point information is extracted from the model output result. The pallet key point information can be understood as the position of the pallet feet of the pallet. The model output result includes but is not limited to the pallet key point information and the pallet type. The preset key point detection model can be obtained in the following manner: obtain pallet samples corresponding to different pallet types, and obtain sample key point information corresponding to the pallet sample according to the pallet type (which can be understood as the position of the pallet feet corresponding to the pallet sample), obtain a sample RGBD image of the pallet sample (which can be understood as the RGBD image corresponding to the pallet sample), perform central network training on the preset neural network model according to the sample RGBD image and the sample key point information, and obtain a preset key point detection model. Among them, the preset neural network model can be a convolutional neural network model. In a specific implementation, the convolutional neural network model can be trained by an anchor-free target detection method, namely, CenterNet training. Accordingly, the sample RGBD image can be used as the input feature of the input layer of the convolutional neural network model, and the sample key point information can be used as the output feature of the neural network output layer of the convolutional neural network model. The convolutional neural network model is then trained according to the input feature and the output feature to obtain a preset key point detection model.
[0062] Step S20: establishing a corresponding coordinate system based on the pallet identification information, and determining the coordinates of the center point of the pallet according to the pallet identification information;
[0063] In one implementation, it can be understood that in the process of realizing pallet positioning based on the pallet anchor frame, a corresponding coordinate system can be established based on the pallet anchor frame, and the coordinates of the center point of the pallet can be determined based on the pallet anchor frame. For example, the coordinates of the intersection of the diagonals of the pallet anchor frame are used as the coordinates of the center point of the pallet. The specific method for determining the coordinates of the center point of the pallet can be determined according to actual needs. For example, the coordinates of the center point of the pallet can also be obtained by combining the method for determining the coordinates of the center point of the pallet in the historical records. This embodiment is not limited here.
[0064] In one implementation, it can be understood that in the process of realizing pallet positioning based on pallet key points, a corresponding coordinate system can be established based on the pallet key points, and the coordinates of the pallet center point can be determined based on the pallet key points. Specifically, the pallet type can be extracted from the model output result, and then the pallet point cloud data can be filtered according to the pallet type to obtain the point cloud data corresponding to the pallet key points, and then the corresponding coordinate system can be established based on the pallet key points, and the coordinates of the pallet center point can be obtained based on the point cloud data corresponding to the pallet key points.
[0065] Step S30: extracting pallet point cloud data from the point cloud image according to the pallet identification information, and determining the pallet heading angle according to the pallet point cloud data;
[0066] It should be noted that, in the process of determining the heading angle of the pallet, the primary point cloud data can be first extracted from the point cloud image according to the pallet identification information, and then the primary point cloud data is subjected to a preset filtering process to obtain the de-noised point cloud data. The preset filtering process includes but is not limited to discrete point filtering, normal vector filtering, point cloud smoothing, and plane segmentation, so as to improve the unevenness of the density of the primary point cloud data and remove the outliers outside the standard range. The standard range can be determined according to actual needs, and this embodiment does not limit this. In a specific implementation, point cloud filtering can also be performed based on any one of a straight-through filter, a voxel filter, a statistical filter, a conditional filter, or a radius filter, or a combination thereof, and this embodiment does not limit this. Then, the obtained de-noised point cloud data is subjected to point cloud registration to obtain the pallet point cloud data. The point cloud registration can be understood as finding the rotation and translation matrix (rigid transform or euclidean transform) between point clouds, and transforming the source point cloud to the same coordinate system as the target point cloud.
[0067] In a specific implementation, in order to further improve the positioning accuracy and robustness of the pallet position, after obtaining the pallet point cloud data, the pallet point cloud data can be projected along a preset normal vector to generate a raster image. The preset normal vector is the normal vector corresponding to the coordinate system where the pallet point cloud data is located. Then, a preset morphological operation is performed on the raster image to obtain a preset bounding box (in a specific implementation, a large bounding box and two small bounding boxes can be extracted from the bounding box obtained by the preset morphological operation, and the two located small bounding boxes are the determined pallet fork positions). The preset morphological operation can select one of the following or a combination thereof: opening operation (CV_MOP_OPEN), closing operation (CV_MOP_CLOSING), and closing operation (CV_MOP_OPEN). Operation (CV_MOP_CLOSE), morphological gradient (CV_MOP_GRADIENT), top hat operation (CV_MOP_TOPHAT) and black hat operation (CV_MOP_BLACKHAT), the opening operation can be understood as first corroding the raster image and then dilating it, the closing operation can be understood as first dilating the raster image and then corroding it, the morphological gradient is the gradient image between the image after dilation and the image after corrosion, the top hat operation is the difference image between the raster image and the image after the opening operation, and the black hat operation is the difference image between the raster image and the image after the closing operation. Finally, the plane where the preset bounding box is located is subjected to surface fitting to obtain the pallet heading angle between the plane where the preset bounding box is located and the normal vector (which can be understood as determining the heading angle through the rotation and translation transformation between the normal vector fitted by the pallet plane and the camera surface).
[0068] Step S40: Obtaining pallet position data according to the pallet center point coordinates and the pallet heading angle.
[0069] It is easy to understand that after obtaining the coordinates of the center point of the pallet and the heading angle of the pallet, the pallet posture data can be integrated according to the coordinates of the center point of the pallet and the heading angle of the pallet, and the pallet posture can be positioned according to the pallet posture data to achieve the grasping of the pallet.
[0070] This embodiment obtains an RGBD image and a point cloud image of a preset pallet area, performs image recognition processing on the RGBD image, obtains pallet identification information, establishes a corresponding coordinate system based on the pallet identification information, determines the coordinates of the pallet center point according to the pallet identification information, extracts pallet point cloud data from the point cloud image according to the pallet identification information, determines the pallet heading angle according to the pallet point cloud data, and obtains pallet posture data according to the pallet center point coordinates and the pallet heading angle. Different from the prior art that only performs posture analysis on a pallet of a specific shape in a two-dimensional image or three-dimensional point cloud, this embodiment combines deep learning and point cloud processing, and locates the pallet posture according to the obtained pallet center point coordinates and pallet heading angle, so as to achieve high-precision and high-robust positioning of various types of pallet postures, thereby improving the universality and robustness of pallet posture detection.
[0071] In addition, an embodiment of the present invention further proposes a storage medium, on which a pallet posture positioning program is stored, and when the pallet posture positioning program is executed by a processor, the steps of the pallet posture positioning method described above are implemented.
[0072] Reference Figure 3 , Figure 3 This is a structural block diagram of the first embodiment of the pallet posture positioning device of the present invention.
[0073] like Figure 3 As shown, the pallet posture positioning device proposed in the embodiment of the present invention includes:
[0074] The information acquisition module 10 is used to acquire an RGBD image and a point cloud image of a preset pallet area, and perform image recognition processing on the RGBD image to obtain pallet identification information;
[0075] A coordinate determination module 20, used to establish a corresponding coordinate system based on the pallet identification information, and determine the coordinates of the center point of the pallet according to the pallet identification information;
[0076] A heading angle determination module 30, configured to extract pallet point cloud data from the point cloud image according to the pallet identification information, and determine a pallet heading angle according to the pallet point cloud data;
[0077] The posture positioning module 40 is used to obtain the posture data of the pallet according to the coordinates of the center point of the pallet and the heading angle of the pallet.
[0078] The present invention obtains an RGBD image and a point cloud image of a preset pallet area, performs image recognition processing on the RGBD image, obtains pallet identification information, establishes a corresponding coordinate system based on the pallet identification information, determines the coordinates of the pallet center point according to the pallet identification information, extracts pallet point cloud data from the point cloud image according to the pallet identification information, determines the pallet heading angle according to the pallet point cloud data, and obtains pallet posture data according to the pallet center point coordinates and the pallet heading angle. Different from the prior art that only performs posture analysis on a pallet of a specific shape in a two-dimensional image or three-dimensional point cloud, the present invention combines deep learning and point cloud processing, and locates the pallet posture according to the obtained pallet center point coordinates and pallet heading angle, so as to achieve high-precision and high-robust positioning of various types of pallet postures, thereby improving the universality and robustness of pallet posture detection.
[0079] Based on the above-mentioned first embodiment of the pallet posture positioning device of the present invention, a second embodiment of the pallet posture positioning device of the present invention is proposed.
[0080] In this embodiment, the information acquisition module 10 is also used to acquire an RGBD image and a point cloud image of a preset pallet area;
[0081] The information acquisition module 10 is further used to perform grayscale value conversion processing on the RGBD image to obtain a grayscale depth map;
[0082] The information acquisition module 10 is further used to perform edge detection on the grayscale depth map to obtain a pallet anchor frame;
[0083] The coordinate determination module 20 is further used to establish a corresponding coordinate system based on the pallet anchor frame, and determine the coordinates of the pallet center point according to the pallet anchor frame.
[0084] The information acquisition module 10 is also used to acquire an RGBD image and a point cloud image of a preset pallet area;
[0085] The information acquisition module 10 is further used to input the RGBD image into a preset key point detection model to obtain a model output result, and extract the key point information of the pallet from the model output result;
[0086] The coordinate determination module 20 is further used to establish a corresponding coordinate system based on the key points of the pallet, and determine the coordinates of the center point of the pallet according to the key points of the pallet.
[0087] The information acquisition module 10 is further used to acquire training samples corresponding to different pallet types, and acquire sample key point information corresponding to the training samples according to the pallet type;
[0088] The information acquisition module 10 is also used to obtain a sample RGBD image of the training sample;
[0089] The information acquisition module 10 is further used to perform central network training on a preset neural network model according to the sample RGBD image and the sample key point information to obtain a preset key point detection model.
[0090] The coordinate determination module 20 is further used to extract the pallet type from the model output result;
[0091] The coordinate determination module 20 is further used to filter the pallet point cloud data according to the pallet type to obtain the point cloud data corresponding to the key points of the pallet;
[0092] The coordinate determination module 20 is further used to establish a corresponding coordinate system based on the key points of the pallet, and obtain the coordinates of the center point of the pallet according to the point cloud data corresponding to the key points of the pallet.
[0093] The heading angle determination module 30 is further used to project the pallet point cloud data along a preset normal vector to generate a raster image;
[0094] The heading angle determination module 30 is further used to perform a preset morphological operation on the grid image to obtain a preset bounding box;
[0095] The heading angle determination module 30 is further used to perform surface fitting on the plane where the preset bounding box is located, so as to obtain the heading angle of the pallet between the plane where the preset bounding box is located and the normal vector.
[0096] The heading angle determination module 30 is further used to extract preliminary point cloud data from the point cloud image according to the pallet identification information;
[0097] The heading angle determination module 30 is further used to perform a preset filtering process on the primary point cloud data to obtain noise-reduced point cloud data;
[0098] The heading angle determination module 30 is further used to perform point cloud registration on the noise reduction point cloud data to obtain pallet point cloud data.
[0099] Other embodiments or specific implementations of the pallet posture positioning device of the present invention can refer to the above-mentioned method embodiments and will not be described in detail here.
[0100] 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 system 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 system. 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 system including the element.
[0101] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0102] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0103] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A pallet position positioning method, characterized in that: The method comprises the following steps: Acquire an RGBD image and a point cloud image of a preset pallet area, and perform image recognition processing on the RGBD image to obtain pallet identification information; Establishing a corresponding coordinate system based on the pallet identification information, and determining the coordinates of the center point of the pallet according to the pallet identification information; Extracting pallet point cloud data from the point cloud image according to the pallet identification information, and determining a pallet heading angle according to the pallet point cloud data; Obtaining pallet position data according to the coordinates of the pallet center point and the pallet heading angle; The step of determining the pallet heading angle according to the pallet point cloud data specifically includes: Projecting the pallet point cloud data along a preset normal vector to generate a raster image; Performing a preset morphological operation on the raster image to obtain a preset bounding box; Performing surface fitting on the plane where the preset bounding box is located to obtain a pallet heading angle between the plane where the preset bounding box is located and the normal vector; The step of acquiring an RGBD image and a point cloud image of a preset pallet area, and performing image recognition processing on the RGBD image to obtain pallet identification information specifically includes: Obtain RGBD image and point cloud image of the preset pallet area; Inputting the RGBD image into a preset key point detection model to obtain a model output result, and extracting the key point information of the pallet from the model output result; Accordingly, the step of establishing a corresponding coordinate system based on the pallet identification information and determining the coordinates of the center point of the pallet according to the pallet identification information specifically includes: Establishing a corresponding coordinate system based on the key points of the pallet, and determining the coordinates of the center point of the pallet according to the key points of the pallet; The step of establishing a corresponding coordinate system based on the key points of the pallet and determining the coordinates of the center point of the pallet according to the key points of the pallet specifically includes: extracting a pallet type from the model output; Filtering the pallet point cloud data according to the pallet type to obtain point cloud data corresponding to the key points of the pallet; A corresponding coordinate system is established based on the key points of the pallet, and the coordinates of the center point of the pallet are obtained according to the point cloud data corresponding to the key points of the pallet.
2. The method according to claim 1, characterized in that The step of acquiring an RGBD image and a point cloud image of a preset pallet area, and performing image recognition processing on the RGBD image to obtain pallet identification information specifically includes: Obtain RGBD image and point cloud image of the preset pallet area; Performing grayscale value conversion processing on the RGBD image to obtain a grayscale depth map; Performing edge detection on the grayscale depth map to obtain a pallet anchor frame; Accordingly, the step of establishing a corresponding coordinate system based on the pallet identification information and determining the coordinates of the center point of the pallet according to the pallet identification information specifically includes: A corresponding coordinate system is established based on the pallet anchor frame, and the coordinates of the pallet center point are determined according to the pallet anchor frame.
3. The method according to claim 1, characterized in that Before the step of inputting the RGBD image into a preset key point detection model to obtain the key points of the pallet, the method further includes: Obtain training samples corresponding to different pallet types, and obtain sample key point information corresponding to the training samples according to the pallet type; Obtaining a sample RGBD image of the training sample; The preset neural network model is trained with a central network according to the sample RGBD image and the sample key point information to obtain a preset key point detection model.
4. The method according to claim 1, characterized in that The step of extracting pallet point cloud data from the point cloud image according to the pallet identification information specifically includes: Extracting preliminary point cloud data from the point cloud image according to the pallet identification information; Performing a preset filtering process on the preliminary point cloud data to obtain noise-reduced point cloud data; Point cloud registration is performed on the noise reduction point cloud data to obtain pallet point cloud data.
5. A pallet position positioning device, characterized in that: The device comprises: An information acquisition module is used to acquire an RGBD image and a point cloud image of a preset pallet area, and perform image recognition processing on the RGBD image to obtain pallet identification information; A coordinate determination module, used to establish a corresponding coordinate system based on the pallet identification information, and determine the coordinates of the center point of the pallet according to the pallet identification information; A heading angle determination module, used to extract pallet point cloud data from the point cloud image according to the pallet identification information, and determine the pallet heading angle according to the pallet point cloud data; A posture positioning module, used for obtaining the posture data of the pallet according to the coordinates of the center point of the pallet and the heading angle of the pallet; The heading angle determination module is further used to project the pallet point cloud data along a preset normal vector to generate a raster image; perform a preset morphological operation on the raster image to obtain a preset bounding box; perform surface fitting on the plane where the preset bounding box is located to obtain the pallet heading angle between the plane where the preset bounding box is located and the normal vector; The information acquisition module is further used to acquire an RGBD image and a point cloud image of a preset pallet area; input the RGBD image into a preset key point detection model to obtain a model output result, and extract the pallet key point information from the model output result; The coordinate determination module is further used to establish a corresponding coordinate system based on the key points of the pallet, and determine the coordinates of the center point of the pallet according to the key points of the pallet; The coordinate determination module is also used to extract the pallet type from the model output result; filter the pallet point cloud data according to the pallet type to obtain the point cloud data corresponding to the pallet key points; establish a corresponding coordinate system based on the pallet key points, and obtain the coordinates of the pallet center point according to the point cloud data corresponding to the pallet key points.
6. A pallet position positioning device, characterized in that: The device comprises: a TOF camera, a memory, a processor, and a pallet posture positioning program stored in the memory and executable on the processor, wherein the pallet posture positioning program is configured to implement the steps of the pallet posture positioning method according to any one of claims 1 to 4.
7. A storage medium, characterized in that: The storage medium stores a pallet posture positioning program, and when the pallet posture positioning program is executed by the processor, the steps of the pallet posture positioning method according to any one of claims 1 to 4 are implemented.
