A robot visual inspection method and a grasping system based on the visual inspection method

By introducing the fusion-enhanced grasping detection network into robot visual detection, and using the serial branch residual extrusion module, the parallel channel-pixel attention skip connection module and the cross-level feature multi-level fusion module, we solve the problem of weak feature extraction capabilities and semantic issues. It solves the problem of insufficient information and realizes efficient crawling tasks in complex scenes, improving the accuracy and adaptability of crawling.

CN118143970BActive Publication Date: 2024-08-23ANHUI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410377500.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-29
Publication Date
2024-08-23
Estimated Expiration
2044-03-29

AI Technical Summary

Technical Problem

Existing robot visual detection methods suffer from weak feature extraction capabilities, insufficient semantic information, and low grasping accuracy in complex scenes, resulting in the inability to effectively extract global context information, ignoring important grasping area features, and reducing grasping accuracy and quality.

Method used

A fusion-enhanced grasping detection network based on visual detection is adopted, including a serial branch residual extrusion module, a parallel channel-pixel attention skip connection module and a cross-level feature multi-level fusion module. Through adaptive weight allocation and feature fusion, capture Spatial dependence, optimize the attention mechanism, and improve the accuracy and efficiency of feature extraction.

Benefits of technology

Significantly enhance the ability to express the characteristics of target objects, realize the complementary advantages between high-level and low-level feature maps, improve the feature extraction effect, improve the processing capabilities of complex target objects, realize the task of grasping arbitrary shapes and postures, and adapt to complex environmental changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118143970B
    Figure CN118143970B
Patent Text Reader

Abstract

The present invention relates to the field of robot intelligent control, and in particular to a robot visual detection method and a grasping system based on the visual detection method. The method comprises: obtaining visual detection results according to RGBD image data and a fusion enhanced grasping detection network; the network comprises a serial branch residual squeezing, a parallel channel-pixel attention jump connection and a cross-level feature multi-level fusion module. Stable and reliable grasping posture detection of unknown objects is achieved in a variety of unknown scenes. The designed network extracts and fuses global position and spatial local information features in spatial and channel dimensions respectively, captures information at different scales and adaptively fuses, extracts high-resolution fine-grained surface information and high-level abstract semantic information, and effectively processes objects of different sizes, colors and shapes. A high success rate is maintained during the efficient grasping process to ensure the rapidity of grasping posture reasoning, meet real-time requirements and ensure the accuracy and efficiency of grasping operations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of robot intelligent control, and in particular to a robot visual detection method and a grasping system based on the visual detection method. Background Art

[0002] With the continuous advancement of robot technology, the demand for its intelligence is also growing. Traditional robot grasping methods require manual programming to complete grasping tasks, and can only repeat the same actions according to the pre-entered program. Once the position, shape or posture of the object and the grasping environment change, the entire grasping task will end in failure. Robots cannot adapt to complex environmental changes or unknown working scenes, and lack the ability to perceive and make decisions autonomously. With the breakthrough of deep learning technology, this provides a certain basic guarantee for the field of robot visual detection and grasping. Deep learning has a strong feature extraction ability, can autonomously learn information from a large amount of big data, and effectively cope with a variety of grasping environments. With the support of deep learning technology, robots can face different grasping scenarios and multiple types of grasping objects, can autonomously complete grasping tasks, and realize intelligence. In summary, deep learning technology has become an important direction of robot intelligent grasping research, providing strong technical support for the realization of intelligent grasping.

[0003] Although deep learning has been studied and applied to a certain extent in the field of robot grasping, there are still many problems, such as weak model feature extraction ability, insufficient attention to the features of important grasping areas, insufficient utilization of features at different levels, low robustness, and low grasping accuracy in complex scenes. Existing research methods have introduced technologies such as attention mechanisms and feature fusion to help robot grasping detection models extract important features, but they still face many challenges. The current processing method is too simple in processing features and only stays at the level of linear operations, which is obviously not the most ideal solution. The fusion of this processing method is redundant and cannot make substantial contributions to information gain. In addition, the extracted features may show large inconsistencies in scale and semantic levels, which also seriously restricts the quality of fusion weights. More importantly, the current method fails to fully utilize the complementary advantages of multi-level features. The rich detail information contained in the low-level features and the powerful semantic information displayed by the high-level features are processed in isolation from each other, lacking the necessary fusion and complementarity. This results in the existing methods being obviously insufficiently adaptable when robots deal with target objects of varying sizes and complex shapes, and problems such as missed detection and false detection are prone to occur, which seriously affects the overall accuracy and reliability. Summary of the invention

[0004] In order to solve the existing problems in the prior art, such as the weak feature extraction capability of the existing grasping detection network, insufficient semantic information and thus inability to effectively extract global context information, less pixel information for grasping and detecting small-sized objects, easy to ignore or even lose important grasping area features in the encoder, resulting in the inability to restore during the upsampling process of decoding, greatly reducing the grasping accuracy and grasping quality, the existing methods only add or splice and aggregate features, which greatly weakens the important features of the grasping area and cannot fully combine the rich spatial information of low-level features with the semantic information advantages of high-level features, and the technical problems of the complexity of the existing robot intelligent grasping system during operation, the embodiments of the present invention provide a robot visual detection method and a grasping system based on the visual detection method. The technical solution is as follows:

[0005] On the one hand, a robot visual inspection method is provided, which is implemented by a grasping system based on a visual inspection method, and the method includes:

[0006] S1. Obtain RGBD image data to be detected.

[0007] S2. Input the RGBD image data into the constructed fusion enhanced grasping and detection network.

[0008] Among them, the fusion enhanced grasping detection network includes a serial branch residual squeezing module, a parallel channel-pixel attention jump connection module and a cross-level feature multi-level fusion module.

[0009] S3. Based on the RGBD image data and the fusion enhanced grasping detection network, the grasping quality heat map, grasping width heat map and grasping angle heat map are obtained, and then the visual inspection results are obtained.

[0010] Optionally, the construction process of the fusion enhanced grasping detection network in S2 includes:

[0011] S21. Obtain a data set, preprocess the data set, and obtain a training data set.

[0012] S22. Input the training data set into the encoder of the fusion enhanced grasping detection network to obtain the encoder output features.

[0013] S23. Input the encoder output features into the parallel channel-pixel attention jump connection module for feature optimization and fusion to obtain the key capture features.

[0014] S24. Input the key grasping features into the decoder of the fusion enhanced grasping detection network to obtain the grasping quality heat map, grasping width heat map and grasping angle heat map, and then obtain the visual inspection results.

[0015] Optionally, the encoder of the fused enhanced grasp detection network includes multiple convolutional layers and multiple serial branch residual squeezing modules.

[0016] In S22, the training data set is input into the encoder of the fusion enhanced grasping detection network to obtain the encoder output features, including:

[0017] S221. Input the training data set into the first convolutional layer for feature extraction to obtain preliminary features of the first convolutional layer.

[0018] S222. Input the preliminary features of the first convolutional layer into the first serial branch residual squeezing module for adaptive weight allocation to obtain the output features of the first serial branch residual squeezing module.

[0019] S223, input the output features of the first serial branch residual squeezing module into the second convolutional layer for feature extraction to obtain preliminary features of the second convolutional layer.

[0020] S224. Input the preliminary features of the second convolutional layer into the second serial branch residual squeezing module for adaptive weight allocation to obtain output features of the second serial branch residual squeezing module.

[0021] S225. Input the output features of the second serial branch residual squeezing module into the third convolutional layer for feature extraction to obtain preliminary features of the third convolutional layer.

[0022] S226. Input the preliminary features of the third convolutional layer into the third serial branch residual squeezing module for adaptive weight allocation to obtain encoder output features.

[0023] Optionally, the first serial branch residual squeezing module includes a SE attention unit and a feature refinement unit.

[0024] In S222, the preliminary features of the first convolutional layer are input into the first serial branch residual squeezing module for adaptive weight allocation to obtain the output features of the first serial branch residual squeezing module, including:

[0025] The preliminary features of the first convolutional layer are input into the SE attention unit to obtain the output features of the SE attention unit.

[0026] The output features of the SE attention unit are input into the feature refinement unit, and the output features of the feature refinement unit are added to the preliminary features of the first convolutional layer to obtain the output features of the first serial branch residual squeezing module.

[0027] Optionally, the parallel channel-pixel attention skip connection module includes a pixel attention layer, a dual-branch pixel attention layer and a channel focusing layer.

[0028] In S23, the encoder output features are input into the parallel channel-pixel attention jump connection module for feature optimization fusion to obtain key capture features, including:

[0029] S231. Process the encoder output features to obtain processed input features.

[0030] S232. Input the processed input features into the pixel attention layer to obtain the pixel attention layer output.

[0031] S233. Input the processed input features into the dual-branch pixel attention layer to obtain the dual-branch pixel attention layer output.

[0032] S234, inputting the processed input features into the channel focusing layer to obtain the channel focusing layer output;

[0033] S235. Obtain key capture features based on the pixel attention layer output, the dual-branch pixel attention layer output, and the channel focusing layer output.

[0034] Optionally, the attention layer output is as shown in equation (1):

[0035]

[0036] Where, PA c express The global pixel gating signal, PWConv 1×1 represents point-by-point convolution, V3 represents the pixel attention layer output, represents the processed input features, Represents element-wise product.

[0037] Optionally, the dual-branch pixel attention layer includes a first dual-branch pixel attention layer and a second dual-branch pixel attention layer.

[0038] The output of the dual-branch pixel attention layer in S233 is shown in equation (2):

[0039]

[0040] Where DBPA1 represents the output of the first dual-branch pixel attention layer, Conv 3×3 It represents a convolution with a convolution kernel of 3×3, DBPA2 represents the output of the second dual-branch pixel attention layer, AveragePooling represents adaptive average pooling, and V1 represents the output of the dual-branch pixel attention layer.

[0041] Optionally, the decoder of the fusion enhanced grasping detection network in S24 includes multiple deconvolution layers and multiple cross-level feature multi-level fusion modules.

[0042] In S24, the key grasping features are input into the decoder of the fusion enhanced grasping detection network to obtain the grasping quality heat map, grasping width heat map and grasping angle heat map, and then obtain the visual inspection results, including:

[0043] S241. Input the key captured features into the first deconvolution layer for image restoration to obtain the output of the first deconvolution layer.

[0044] S242. Input the first deconvolution layer output and the encoder output features into the first cross-level feature multi-level fusion module to obtain the first cross-level feature multi-level fusion module output.

[0045] S243. Input the output of the first cross-level feature multi-layer fusion module to the second deconvolution layer for image restoration to obtain the output of the second deconvolution layer.

[0046] S244, inputting the output of the second deconvolution layer and the output features of the second serial branch residual squeezing module into the second cross-level feature multi-level fusion module to obtain the output of the second cross-level feature multi-level fusion module.

[0047] S245. Input the output of the second cross-level feature multi-layer fusion module into the third deconvolution layer for image restoration to obtain a grasping quality heat map, a grasping width heat map, and a grasping angle heat map.

[0048] S246. Obtain visual inspection results according to the grasping quality heat map, the grasping width heat map, and the grasping angle heat map.

[0049] Optionally, the first cross-level feature multi-level fusion module includes a global branch and a local branch.

[0050] Inputting the first deconvolution layer output and the encoder output feature into the first cross-level feature multi-level fusion module in S242 to obtain the first cross-level feature multi-level fusion module output includes:

[0051] The output of the first deconvolution layer and the encoder output features are fused to obtain fused features;

[0052] The fused features are input into the global branch to obtain the global branch weight graph.

[0053] The fused features are input into the local branch to obtain the local branch weight map.

[0054] The global branch weight map and the local branch weight map are added together to obtain the added feature map.

[0055] The output of the first deconvolution layer is subjected to a 3×3 convolution and element-wise multiplication operation is performed with the added feature map to obtain the processed first deconvolution layer features.

[0056] The encoder output features are convolved by 3×3 and element-wise multiplied with the added feature map to obtain the processed encoder output features.

[0057] The processed first deconvolution layer features and the processed encoder output features are aggregated in series to obtain the first cross-level feature multi-level fusion module output.

[0058] On the other hand, a grasping system based on a visual detection method is provided. The system is applied to the visual detection method. The system includes a visual acquisition module built based on ROS, a grasping detection module and a grasping execution module.

[0059] Among them, the visual acquisition module is used to obtain the RGBD image data to be detected.

[0060] The grasping and detection module is used to input the RGBD image data into the constructed fusion enhanced grasping and detection network.

[0061] Among them, the fusion enhanced grasping detection network includes a serial branch residual squeezing module, a parallel channel-pixel attention jump connection module and a cross-level feature multi-level fusion module.

[0062] According to the RGBD image data and the fusion enhanced grasping detection network, the grasping quality heat map, grasping width heat map and grasping angle heat map are obtained, and then the visual inspection results are obtained.

[0063] The grasping execution module is used to map the visual inspection results into the grasping posture in the robot coordinates, input the grasping posture into the robot, and obtain the collision-free grasping path through inverse kinematics solution to complete the grasping.

[0064] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0065] In the embodiment of the present invention, the expressive ability of the target object features is significantly enhanced, thereby guiding the network to focus more on key features. At the same time, the fusion structure of high-level and low-level features is reconstructed to achieve complementary advantages between high-level and low-level feature maps, effectively improving the overall feature extraction effect.

[0066] The present invention achieves global optimization of the attention mechanism by accurately extracting position dependencies and sharing global information from the original features. An innovative strategy is adopted to capture and integrate the spatial dependencies in the original features, thereby ensuring effective allocation and optimization of attention on a global scale. In this way, not only the accuracy and efficiency of feature extraction are improved, but also the model's processing ability for complex target objects is further enhanced.

[0067] A complete robot host computer grasping system platform is built based on ROS. Functions such as visual acquisition, grasping detection, and grasping execution are encapsulated into different ROS nodes. The nodes transmit robot-related data information through topics and service communication mechanisms. The system can achieve high-level automation and intelligence, and has good scalability and integration.

[0068] The present invention can effectively perform grasping tasks for complex target objects of any shape and posture at any position. Even in complex multi-object scenes, this method can still accurately identify the position of the object and quickly infer the highest quality grasping posture, which can adapt to complex environmental changes and the needs of different work tasks. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0070] Figure 1 is a flow chart of a robot vision detection method provided by an embodiment of the present invention;

[0071] Figure 2 This is a diagram of the fusion enhanced crawling detection network architecture provided by an embodiment of the present invention;

[0072] Figure 3 1. The overall structure of the serial branch residual squeezing module (a) and the detailed information of SE-Resnet (b) provided in an embodiment of the present invention;

[0073] Figure 4 It is a structural diagram of a parallel channel-pixel attention jump connection module provided by an embodiment of the present invention;

[0074] Figure 5 It is a detailed diagram of Dual Branch Pixel Attention, Channel Focus, and Pixel Attention provided by an embodiment of the present invention;

[0075] Figure 6 It is a cross-level feature multi-level fusion module diagram provided by an embodiment of the present invention;

[0076] Figure 7 is a block diagram of a grasping system based on a visual detection method provided by an embodiment of the present invention;

[0077] Figure 8 This is a robot grasping process architecture diagram provided by an embodiment of the present invention;

[0078] Fig. 9 This is a diagram of an interface for starting a driver program and connecting to a physical robot provided by an embodiment of the present invention;

[0079] Fig.10 It is a synchronization diagram of the robot in Rviz and the actual robot state provided by the embodiment of the present invention;

[0080] Fig.11 It is a diagram for establishing the relationship between the physical space position of the depth camera and the robot provided by an embodiment of the present invention;

[0081] Fig.12 is a grab detection node result output diagram provided by an embodiment of the present invention;

[0082] Fig.13 The upper system terminal according to the embodiment of the present invention outputs the joint status information diagram of the robot in the grasping execution process in real time;

[0083] Fig.14 is a grasping detection diagram on the Cornell and Jacquard datasets provided by an embodiment of the present invention;

[0084] Fig.15 is a grasping representation model diagram in a single object scene provided by an embodiment of the present invention;

[0085] Fig.16 It is a grasping representation model diagram in a complex multi-object scene provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0086] The technical solution of the present invention is described below in conjunction with the accompanying drawings.

[0087] In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "example" is intended to present the concept in a specific way. In addition, in the embodiments of the present invention, the meaning expressed by "and / or" can be both, or it can be either of the two.

[0088] In the embodiments of the present invention, "image" and "picture" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same. "of", "corresponding, relevant" and "corresponding" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same.

[0089] In the embodiments of the present invention, sometimes a subscript such as W1 may be written as a non-subscript such as W1. When the difference is not emphasized, the meanings to be expressed are the same.

[0090] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0091] The embodiment of the present invention provides a robot visual detection method, which can be implemented by a grasping system based on the visual detection method. Figure 1 The flowchart of the robot vision detection method shown in the figure may include the following steps:

[0092] S1. Obtain RGBD image data to be detected.

[0093] S2. Input the RGBD image data into the constructed fusion enhanced grasping and detection network.

[0094] Among them, the fusion enhanced grasping detection network includes a serial branch residual squeezing module, a parallel channel-pixel attention jump connection module and a cross-level feature multi-level fusion module.

[0095] Optionally, the construction process of the fusion enhanced grasping detection network in S2 may include S21-S24:

[0096] S21. Obtain a data set, preprocess the data set, and obtain a training data set.

[0097] In a feasible implementation, the Cornell dataset and the Jacquard dataset are obtained. Since the Cornell dataset has only 885 images, the dataset is expanded by cropping, rotating, scaling, and other operations, and the expanded Cornell dataset is divided into a training set and a test set at a ratio of 9:1. The Jacquard dataset is large enough to meet the requirements of training and testing, so the dataset is directly divided into a training set and a test set at a ratio of 9:1.

[0098] The present invention designs an innovative encoder-decoder network architecture: an enhanced fusion grasping detection network. The network takes RGBD images as input, can accurately output multiple reliable grasping rectangles, and can effectively screen out the grasping rectangles with the best quality. While achieving excellent performance, the network does not increase the number of network parameters, thus achieving a perfect balance between efficient reasoning speed and high-precision grasping.

[0099] Furthermore, the core of the network architecture consists of three modules: the serial branch residual squeezing module (SebSE-Resnet), the parallel channel-pixel attention jump connection module (PCPASC) and the cross-level feature multi-level fusion module (CFMF). Among them, the serial branch residual squeezing module effectively reduces redundant information and improves recognition ability by adaptively learning channel feature weights. The parallel channel-pixel attention jump connection module extracts important features in both spatial and channel dimensions. It can not only capture global position information, but also fuse spatial local information features, thereby significantly improving the ability to process objects of different sizes, colors and shapes. Finally, the cross-level feature multi-level fusion module focuses on capturing and fusing information at different scales, improving the perception of contextual information, capturing information at different levels of abstraction, and providing comprehensive and rich information support for grasping decisions. Such as Figure 2 Shown is the core architecture of the entire fusion enhanced grasping and detection network.

[0100] The network takes a 224×244 RGBD image as input and outputs a grasp quality heatmap, a grasp width heatmap, and a grasp angle heatmap. Compared with existing networks, the fusion-enhanced grasping network not only supports the output of multiple reliable grasp representation models, but also accurately infers the highest quality grasp representation model. In terms of the processing flow, the network first extracts preliminary features from the input RGBD image through a convolutional layer. Subsequently, the serial branch residual squeezing module in the encoder adaptively weights these forward-propagated feature information to highlight the saliency of feature maps of different channels. Next, the extracted features are fed into the parallel channel-pixel attention jump connection module, which performs feature optimization fusion on spatial and channel information on three parallel branches respectively. In this way, the parallel channel-pixel attention jump connection module can extract key grasp features and effectively suppress features that are not related to the regional background. Finally, in the decoder stage, the cross-level feature multi-level fusion module and deconvolution operations further process these features. Deconvolution restores the feature map to the same size as the input image, while the input of the cross-level feature multi-level fusion module comes from two sources: one is the high-level semantic features of the previous layer in the decoder, and the other is the low-level features of the same dimension in the encoder, which are rich in positional detail information. Through such multi-level feature fusion, high-precision grasping detection at the pixel level can be achieved.

[0101] S22. Input the training data set into the encoder of the fusion enhanced grasping detection network to obtain the encoder output features.

[0102] Optionally, the encoder of the fused enhanced grasp detection network includes multiple convolutional layers and multiple serial branch residual squeezing modules.

[0103] The above step S22 may include the following steps S221-S226:

[0104] S221. Input the training data set into the first convolutional layer for feature extraction to obtain preliminary features of the first convolutional layer.

[0105] In a feasible implementation, the feature extraction stage in the encoder: the 224×244 pixel RGBD image first passes through a convolution layer to initially extract useful features and reduce irrelevant pixels. BN (Batch Normalization) normalizes the input to a uniform interval, reduces the degree of divergence, and does not change the feature dimension. After the batch normalization operation, the feature map is sent to the Mish function for activation. At this time, the feature map dimension is the same as the feature dimension after the convolution layer and does not change.

[0106] S222. Input the preliminary features of the first convolutional layer into the first serial branch residual squeezing module for adaptive weight allocation to obtain the output features of the first serial branch residual squeezing module.

[0107] Optionally, the first serial branch residual squeezing module includes a SE attention unit and a feature refinement unit.

[0108] In S222, the preliminary features of the first convolutional layer are input into the first serial branch residual squeezing module for adaptive weight allocation to obtain the output features of the first serial branch residual squeezing module, including:

[0109] The preliminary features of the first convolutional layer are input into the SE attention unit to obtain the output features of the SE attention unit.

[0110] The output features of the SE attention unit are input into the feature refinement unit, and the output features of the feature refinement unit are added to the preliminary features of the first convolutional layer to obtain the output features of the first serial branch residual squeezing module.

[0111] In a feasible implementation, the serial branch residual squeezing module (SebSE-Resnet): After the convolution layer, BN regularization layer and Mish activation function, the processed features enter the serial branch residual squeezing module. This module consists of SE attention (channel attention) and feature refinement unit. SE attention consists of a squeeze part and an excitation part, which is used to model the correlation between channels and enhance the feature extraction ability of the convolution layer. The features processed by SE attention are effectively used by subsequent convolution layers to improve the network's sensitivity and utilization of feature information. Specifically, the input feature X is feature compressed by average pooling to obtain global distribution information, so that the layer close to the input layer can also perceive the global information. In the Excitation operation, weight parameters are generated for each feature channel to explicitly model the correlation between feature channels. These weights represent the importance of each feature channel, and are weighted by multiplication to the input feature X to recalibrate the original features in the channel dimension. In order to further extract features, the features after SE attention will pass through the feature refinement unit, perform convolution and ReLu activation function operations, which is helpful for pose prediction tasks. As the network depth increases, the gradient gradually decreases during back propagation, making it difficult to effectively update the parameters of the deep network. Therefore, the residual structure is introduced, which directly adds the input information to the output information through cross-layer connections, thereby effectively promoting the flow of gradients. Figure 3 This is the structure of the serial branch residual squeezing module.

[0112] Furthermore, the feature map obtained by the serial branch residual squeezing module explicitly models the interdependence between the convolutional feature channels, the weights of each feature channel are adjusted, the important feature information is effectively enhanced, and the distinguishability of the features is improved.

[0113] S223, input the output features of the first serial branch residual squeezing module into the second convolutional layer for feature extraction to obtain preliminary features of the second convolutional layer.

[0114] S224. Input the preliminary features of the second convolutional layer into the second serial branch residual squeezing module for adaptive weight allocation to obtain output features of the second serial branch residual squeezing module.

[0115] S225. Input the output features of the second serial branch residual squeezing module into the third convolutional layer for feature extraction to obtain preliminary features of the third convolutional layer.

[0116] S226. Input the preliminary features of the third convolutional layer into the third serial branch residual squeezing module for adaptive weight allocation to obtain encoder output features.

[0117] S23. Input the encoder output features into the parallel channel-pixel attention jump connection module for feature optimization and fusion to obtain the key capture features.

[0118] Optionally, the parallel channel-pixel attention skip connection module includes a pixel attention layer, a dual-branch pixel attention layer and a channel focusing layer.

[0119] In a feasible implementation, the previous layer of serial branch residual squeezing module will still lose some important features of the grasped area, so the features obtained by this module are sent to the parallel channel-pixel attention jump connection module again, and the global channel information and local important pixel information of the original features are extracted in parallel in three-line online mode. Figure 4 This is the structure diagram of the parallel channel-pixel attention jump connection module. Figure 5 The detailed architecture of each part of this module is shown below. The parallel channel-pixel attention jump connection module contains three parallel branches, namely pixel attention, dual branch pixel attention, and channel focus.

[0120] The above step S23 may include the following steps S231-S235:

[0121] S231, first use formula (1) to speed up the model convergence:

[0122]

[0123] Where x is the input feature of the module.

[0124] S232. Input the processed input features into the pixel attention layer to obtain the pixel attention layer output.

[0125] In a feasible implementation, Figure 5 As shown in (3) in the figure, pixel attention first uses 1×1 convolution to reduce the number of channels of the input feature map to achieve feature dimensionality reduction and compression. The added ReLu activation function improves its expressiveness. The subsequent 1×1 convolution restores the feature map to its original number of channels to achieve integrated optimization of features from different channels. Finally, the input feature map With PA c The output of the branch is multiplied element by element to complete the information fusion of the two. The specific implementation is as follows:

[0126]

[0127] Where, PA c express The global pixel gating signal, PWConv 1×1represents point-by-point convolution, V3 represents the pixel attention layer output, represents the input features, Represents element-wise product.

[0128] S233. Input the processed input features into the dual-branch pixel attention layer to obtain the dual-branch pixel attention layer output.

[0129] In a feasible implementation, dual branch pixel attention (Dual Branch Pixel Attention): Dual branch pixel attention consists of two branches, DBPA1 and DBPA2, such as Figure 5 As shown in (1). DBPA1 combines 1×1 convolution and 3×3 convolution in series to increase the network's expressive power while keeping the model lightweight. 1×1 convolution increases nonlinearity, and 3×3 convolution captures richer spatial features. DBPA2 connects adaptive average pooling, 1×1 convolution, and activation function in series. Average pooling reduces the spatial dimension of the feature map, and 1×1 convolution achieves compression and extraction of the feature map. The feature maps output by DBPA1 and DBPA2 are multiplied element by element to further fuse the information. This method enhances common features and weakens unimportant features. The specific implementation is achieved through formula (3):

[0130]

[0131] Where DBPA1 represents the output of the first dual-branch pixel attention layer, Conv 3×3 It represents a convolution with a convolution kernel of 3×3, DBPA2 represents the output of the second dual-branch pixel attention layer, AveragePooling represents adaptive average pooling, and V1 represents the output of the dual-branch pixel attention layer.

[0132] S234. Input the processed input features into the channel focusing layer to obtain the channel focusing layer output.

[0133] In one possible implementation, the channel focusing has a CF k Branches can extract the features of the entire channel. Figure 5 As shown in (2) in CF k The branch uses adaptive average pooling, point-by-point convolution, ReLu activation function and Sigmoid function to extract global channel gating features. k As the global channel gating signal. The specific implementation is achieved through formula (4):

[0134]

[0135] S235. Obtain key capture features based on the pixel attention layer output, the dual-branch pixel attention layer output, and the channel focusing layer output.

[0136] In one feasible implementation, three different attention gate features are aggregated in series in the channel dimension. The aggregated features are input to the shared feature layer (Conv-ReLu-Conv), where the feature dimension is reduced to the same dimension as the input feature x. In order to avoid the network degradation problem caused by the increase in the number of network layers, the following scheme is applied: the output of the shared feature layer is added to the input feature x to achieve a jump connection, maintaining the integrity of the effective features.

[0137] S24. Input the key grasping features into the decoder of the fusion enhanced grasping detection network to obtain the grasping quality heat map, grasping width heat map and grasping angle heat map, and then obtain the visual inspection results.

[0138] Optionally, the decoder of the fusion enhanced grasp detection network includes multiple deconvolution layers and multiple cross-level feature multi-level fusion modules.

[0139] The above step S24 may include the following steps S241-S246:

[0140] S241. Input the key captured features into the first deconvolution layer for image restoration to obtain the output of the first deconvolution layer.

[0141] S242. Input the first deconvolution layer output and the encoder output features into the first cross-level feature multi-level fusion module to obtain the first cross-level feature multi-level fusion module output.

[0142] Optionally, the first cross-level feature multi-level fusion module includes a global branch and a local branch.

[0143] The above step S242 may include the following steps S2421-S2427:

[0144] S2421, fusing the first deconvolution layer output and the encoder output features to obtain fused features;

[0145] S2422. Input the fused features into the global branch to obtain a global branch weight map.

[0146] S2423. Input the fused features into the local branch to obtain a local branch weight map.

[0147] S2424: Add the global branch weight map and the local branch weight map to obtain an added feature map.

[0148] S2425. The output of the first deconvolution layer is subjected to a 3×3 convolution, and an element-wise multiplication operation is performed on the output of the first deconvolution layer, to obtain the processed first deconvolution layer features.

[0149] S2426. The encoder output features are subjected to 3×3 convolution, and element-wise multiplication operation is performed with the added feature map to obtain the processed encoder output features.

[0150] S2427. Aggregate the processed first deconvolution layer features and the processed encoder output features in series to obtain the output of the first cross-level feature multi-level fusion module.

[0151] In one feasible implementation, the architecture of the entire module for cross-level feature multi-level fusion is as follows: Figure 6 As shown in the figure, two input features T1 and T2, T1 feature comes from the bottom layer feature of the encoder, and T2 feature comes from the previous transposed convolution layer in the decoder. T1 and T2 are added and fused to complete the integration of the advantages of strong semantics of deep features and strong spatial information expression of shallow features. After integration, the feature T z They are input to the global branch G1 and the local branch L2 respectively, and the scales of these two branches are different. In the local branch L2, the present invention uses two point-by-point convolutions as channel context fusers, and utilizes the point-to-channel fusion of each spatial position to achieve channel attention of local features. In the global branch G1, average pooling is used to retain the overall data features, and the two point-by-point convolutions focus on the scale of the channel to achieve attention of global features.

[0152] Furthermore, the two weight maps of different scales generated by the global branch G1 and the local branch L2 are not directly output after addition and fusion. Instead, the feature maps of the input features T1 and T2 after 3×3 convolution are element-wise multiplied. Finally, the two are aggregated in series in the channel dimension to output the final fused feature. The dimension of the output fused feature is the same as the dimension of the two input features.

[0153]

[0154]

[0155] S243. Input the output of the first cross-level feature multi-layer fusion module to the second deconvolution layer for image restoration to obtain the output of the second deconvolution layer.

[0156] S244, inputting the output of the second deconvolution layer and the output features of the second serial branch residual squeezing module into the second cross-level feature multi-level fusion module to obtain the output of the second cross-level feature multi-level fusion module.

[0157] S245. Input the output of the second cross-level feature multi-layer fusion module into the third deconvolution layer for image restoration to obtain a grasping quality heat map, a grasping width heat map, and a grasping angle heat map.

[0158] S246. Obtain visual inspection results according to the grasping quality heat map, the grasping width heat map, and the grasping angle heat map.

[0159] In one feasible implementation, before generating the grasp quality map, grasp width map, and grasp angle map, four 2×2 convolution filters are first used. Act on the output features. After the action, the capture quality map is output. After the action, the final grab angle diagram is obtained through formula (7): After the action, the captured angle diagram is output.

[0160]

[0161] Finally, the fusion enhanced grasp detection network automatically selects the pixel grasp points corresponding to the highest quality grasp from the grasp quality map, and then matches the grasp width and grasp angle corresponding to the pixel grasp point from the grasp width map and grasp angle map, together forming a set of the highest quality two-dimensional grasp representation g = (x, y, θ, w).

[0162] Furthermore, the public dataset is processed and sent to the fusion enhanced grasping detection network for training. The loss function Λ loss =Λ (x,y) +Λ cos(2θ) +Λ sin(2θ) +Λ width To perform gradient back propagation on the network, so that the performance of the network can reach the optimal level.

[0163] S3. Based on the RGBD image data and the fusion enhanced grasping detection network, the grasping quality heat map, grasping width heat map and grasping angle heat map are obtained, and then the visual inspection results are obtained.

[0164] Furthermore, the physical spatial position relationship between the depth camera and the robot is established: when the depth camera obtains visual information of the external environment and infers the grasping posture of the grasped object, the position of the grasped object is known to the camera, but unknown to the robot itself. Therefore, after the depth camera recognizes and locates the position of the object, the physical spatial position relationship between the depth camera and the robot is established, and the robot performs the final grasping task after obtaining the position of the target object.

[0165] Get the camera intrinsic parameter T through the depth camera's own properties ci , based on the Halcon calibration method, obtain the rotation matrix T between the camera coordinate system and the robot end coordinate system rc , the grasping posture representation G of the grasping point in the final three-dimensional world is obtained through formula (8) w :

[0166] Gw =T rc (T ci (g)) (8)

[0167] Building a robot host computer grasping system platform: In the robot grasping system platform, the depth camera's view is perpendicular to the workbench plane, the robot's end uses a three-finger bionic finger, and the depth camera is fixed above the robot's wrist. The host computer control system uses the Ubuntu18.04 system, the computer control platform connects the depth camera and the physical robot, and the entire robot grasping system framework is based on the robot operating system ROS. In the automatic grasping process, visual acquisition, grasping detection, and grasping posture mapping are executed in the control system, and the robot's grasping control receives instructions issued by the control system through USB or Ethernet. The robot grasping detection algorithm is programmed in Python, and other algorithms are implemented in C++. ROS uses independently running functional nodes to distribute subtasks and complete information transmission between nodes through a variety of communication mechanisms to improve algorithm reusability and writing efficiency. In addition, the PyTorch framework is used to build and train the fusion enhanced grasping detection network during the development process, and OpenCV is used for image preprocessing and data enhancement. The functional modules of the robot automatic grasping system are encapsulated as independent ROS nodes, and data is transmitted between them through communication mechanisms such as subscription publishing and service requests, including visual acquisition nodes, grasping detection nodes, and grasping execution nodes.

[0168] To address the problems that the existing crawling and detection networks have weak feature extraction capabilities and insufficient semantic information, making it impossible to effectively extract global context information, and are limited to focusing on spatial feature information, the present invention proposes a serial branch residual squeezing module to explicitly model the interdependence between convolutional feature channels and adjust the weights of each channel.

[0169] For small-sized objects in grasp detection, there is less pixel information, and it is easy to ignore or even lose important grasp area features in the encoder, which makes it impossible to restore them during the upsampling process of decoding, greatly reducing the grasping accuracy and grasping quality. The present invention proposes a parallel channel-pixel attention jump connection module, which extracts the global channel information and local important pixel information of the original features in three-line online parallel manner, thereby realizing global optimization of the attention mechanism.

[0170] Existing methods only add or concatenate features, which greatly weakens the important features of the captured area and cannot fully combine the rich spatial information of low-level features with the semantic information advantages of high-level features. Therefore, the present invention proposes a cross-level feature multi-level fusion module, which enables the network to synchronously perceive high- and low-level multi-level features, and combines the respective advantages of high- and low-level features to achieve the optimization of feature integration.

[0171] In view of the complexity of the operation of the existing robot intelligent grasping system, a host robot system platform is built based on ROS (Robot Operating System), and the Moveit (motion planning library) interface is introduced to integrate the grasping detection and grasping path planning functions to achieve a high level of automation and intelligence and improve system efficiency.

[0172] In the embodiment of the present invention, the expressive ability of the target object features is significantly enhanced, thereby guiding the network to focus more on key features. At the same time, the fusion structure of high-level and low-level features is reconstructed to achieve complementary advantages between high-level and low-level feature maps, effectively improving the overall feature extraction effect.

[0173] The present invention achieves global optimization of the attention mechanism by accurately extracting position dependencies and sharing global information from the original features. An innovative strategy is adopted to capture and integrate the spatial dependencies in the original features, thereby ensuring effective allocation and optimization of attention on a global scale. In this way, not only the accuracy and efficiency of feature extraction are improved, but also the model's processing ability for complex target objects is further enhanced.

[0174] A complete robot host computer grasping system platform is built based on ROS. Functions such as visual acquisition, grasping detection, and grasping execution are encapsulated into different ROS nodes. The nodes transmit robot-related data information through topics and service communication mechanisms. The system can achieve high-level automation and intelligence, and has good scalability and integration.

[0175] The present invention can effectively perform grasping tasks for complex target objects of any shape and posture at any position. Even in complex multi-object scenes, this method can still accurately identify the position of the object and quickly infer the highest quality grasping posture, which can adapt to complex environmental changes and the needs of different work tasks.

[0176] Figure 7 is a block diagram of a grasping system based on a visual detection method according to an exemplary embodiment, the system is used based on a visual detection method. Figure 7 ,The system includes a visual acquisition module, a grasping detection module and a grasping ,execution module built based on ROS.

[0177] Among them, the visual acquisition module is used to collect visual information in the captured scene through a depth camera and obtain RGBD image data of the captured object.

[0178] The grasping and detection module is used to input the RGBD image data into the constructed fusion enhanced grasping and detection network.

[0179] Among them, the fusion enhanced grasping detection network includes a serial branch residual squeezing module, a parallel channel-pixel attention jump connection module and a cross-level feature multi-level fusion module.

[0180] According to the RGBD image data and the fusion enhanced grasping detection network, the grasping quality heat map, grasping width heat map and grasping angle heat map are obtained, and then the visual inspection results are obtained.

[0181] In a feasible implementation, the RGBD image of the object published by the visual acquisition node is subscribed, and after preprocessing such as cropping and rotating the image, the preprocessed image is input into the fusion enhanced grasping network. The network outputs the highest quality grasping pose representation model and publishes it through topic communication.

[0182] The grasping execution module is used to map the visual inspection results into the grasping posture in the robot coordinates, input the grasping posture into the robot, and obtain the collision-free grasping path through inverse kinematics solution to complete the grasping.

[0183] In a feasible implementation, the robot grasping execution node subscribes to the grasping posture representation model published by the grasping detection node and maps it to the grasping posture in the robot coordinates. The posture is input into the robot, and through inverse kinematics solution, a collision-free grasping path is solved to finally execute the grasping.

[0184] The entire crawling process architecture is as follows Figure 8 shown.

[0185] For example, first, connect the robot to the robot host computer grasping system via USB or Ethernet, and start the robot driver to establish a connection between the host computer and the robot body, such as Fig. 9 After the upper computer system successfully connects to the robot, the upper system detects the robot joint status and end effector status information, and then synchronously displays the robot status in Rviz. At this time, the robot status in the real world is consistent with the robot status in the upper Rviz interface of the system, as shown in the figure below. Fig.10 As shown, the left side is the state mapping of the real robot in the robot upper system, and the right side is the real robot joint state.

[0186] Then, if Fig.11 As shown, the depth camera is connected to the upper robot grasping system via USB, the Halcon calibration method is used to establish the physical space position connection between the depth camera and the robot, and the camera vision acquisition node program is started to obtain visual information of the external environment and the target object.

[0187] The fusion enhanced grasp detection network in the grasp detection node is executed to locate and output the grasp pose representation model of the object, and the grasp quality heat map, grasp angle heat map and grasp width heat map are displayed at the same time. Fig.12 shown.

[0188] The grasping execution node receives the grasping posture representation model from the grasping detection node and converts it into the grasping posture representation model in the robot coordinate system. After the robot obtains the posture, it solves a series of joint angle information of the robot according to the inverse kinematics algorithm of Moveit, and finally the robot places the grasped object to the specified position. Fig.13 The figure shows that the terminal of the robot's upper grasping system outputs the robot's various joint angles, speeds and torque information in real time during the grasping execution process.

[0189] In order to test the effectiveness of the proposed fusion enhanced grasping detection network and module, the present invention conducted grasping tests and robot grasping experiments in the physical world under two data sets. The grasping experiments in the real world include grasping of a single object scene and grasping of multiple objects in a multi-object cluttered scene. Fig.14 Visualization of the two-dimensional grasp representation model inferred by the fusion enhanced grasp detection network on the Cornell and Jacquard datasets.

[0190] Even when faced with objects of different sizes, complex shapes and complex texture information, the network structure proposed by the present invention can still accurately output the grasping representation model of the object. The grasping representation model can adaptively change the grasping width and grasping angle according to the size of the object, and has precision. In addition, since the module proposed by the present invention pays attention to both spatial and channel information, the fusion enhanced grasping detection network is not affected by the grasping background color. Even if the color of the object is extremely similar or even consistent with the background, the method can still fully extract discriminative features and focus on key grasping areas, thereby inferring the highest quality grasping representation model with extremely high robustness.

[0191] In a single-object scenario in the real world, common objects in life but never seen by the robot are selected, and each object is randomly placed in an arbitrary position with an arbitrary posture. In the experiment, the change of the position and posture of the object did not affect the entire grasping task. The network was able to successfully infer the grasping representation model of various objects, indicating that the fusion-enhanced grasping detection network proposed in the present invention has a strong generalization ability. Among 500 grasping attempts, there were only 15 failed grasps, and the grasping success rate reached 97%, indicating that the network can handle single-object grasping scenarios well. Fig.15 A representation model for grasping a single object in a single-object scene in the real world.

[0192] In a real complex multi-object scene, 6-12 objects of different sizes, shapes and colors are set in each multi-object scene, and a total of 50 sets of multi-object complex scenes are set. The size, color, shape, and surface texture information of the grasped objects in each set of scenes are different, including a deformable flexible rag doll, which fully illustrates the complexity of the grasping environment. Fig.16 It is a representation model for grasping multiple objects in complex multi-object scenes in the real world. Finally, the present invention achieves an average grasping success rate of 94.5%. This fully proves that the proposed fusion enhanced grasping detection network has excellent performance, can effectively handle the grasping of multiple objects in complex grasping environments, and can be applied to real-world scenarios such as industrial production, family life, and warehousing and logistics.

[0193] The present invention designs a serial branch residual squeezing module to selectively enhance feature information, improve the distinguishability of features, increase the network's attention to important features, and improve the ability to express target object features. For complex scenes with background interference and scale differences between different target objects, a parallel channel-pixel attention jump connection module is proposed to extract position dependence and shared global information from the original features to achieve global optimization of the attention mechanism. The designed cross-level feature multi-level fusion module reconstructs the high- and low-level feature fusion structure to make full use of the rich detail information of low-level features and the sufficient semantic information of high-level features. While aggregating global and local contextual information, the optimization of important feature integration is achieved. The proposed fusion-enhanced grasping detection network can capture and learn the relevant important features of the grasped object, and quickly and accurately obtain effective information in the image. In addition, the present invention builds a complete set of robot grasping system platforms based on ROS, effectively integrates the robot grasping detection algorithm and motion control algorithm, enables the grasping operation application based on artificial intelligence, and realizes rapid deployment and implementation.

[0194] In the embodiment of the present invention, the expressive ability of the target object features is significantly enhanced, thereby guiding the network to focus more on key features. At the same time, the fusion structure of high-level and low-level features is reconstructed to achieve complementary advantages between high-level and low-level feature maps, effectively improving the overall feature extraction effect.

[0195] The present invention achieves global optimization of the attention mechanism by accurately extracting position dependencies and sharing global information from the original features. An innovative strategy is adopted to capture and integrate the spatial dependencies in the original features, thereby ensuring effective allocation and optimization of attention on a global scale. In this way, not only the accuracy and efficiency of feature extraction are improved, but also the model's processing ability for complex target objects is further enhanced.

[0196] A complete robot host computer grasping system platform is built based on ROS. Functions such as visual acquisition, grasping detection, and grasping execution are encapsulated into different ROS nodes. The nodes transmit robot-related data information through topics and service communication mechanisms. The system can achieve high-level automation and intelligence, and has good scalability and integration.

[0197] The present invention can effectively perform grasping tasks for complex target objects of any shape and posture at any position. Even in complex multi-object scenes, this method can still accurately identify the position of the object and quickly infer the highest quality grasping posture, which can adapt to complex environmental changes and the needs of different work tasks.

[0198] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.

[0199] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.

[0200] In the present invention, "at least one" means one or more, and "more than one" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0201] It should be understood that in various embodiments of the present invention, the size of the serial numbers 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 invention.

[0202] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0203] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0204] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, 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 integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0205] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, 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 solution of this embodiment.

[0206] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0207] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0208] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A robot vision detection method, It is characterized in that The method comprises: S1. Obtain RGBD image data to be detected; S2, inputting the RGBD image data into the constructed fusion enhanced grasping and detection network; The fusion enhanced grasping detection network includes a serial branch residual squeezing module, a parallel channel-pixel attention jump connection module and a cross-level feature multi-level fusion module; S3. Obtain a grasping quality heat map, a grasping width heat map, and a grasping angle heat map according to the RGBD image data and the fusion enhanced grasping detection network, and then obtain a visual detection result; The construction process of the fusion enhanced grasping detection network in S2 includes: S21, obtaining a data set, and preprocessing the data set to obtain a training data set; S22, inputting the training data set into the encoder of the fusion enhanced grasping detection network to obtain encoder output features; S23, inputting the encoder output features into the parallel channel-pixel attention jump connection module for feature optimization and fusion to obtain key capture features; S24, inputting the key grasping features into the decoder of the fusion enhanced grasping detection network to obtain a grasping quality heat map, a grasping width heat map and a grasping angle heat map, and then obtaining a visual detection result; The encoder of the fusion enhanced grasping detection network includes multiple convolutional layers and multiple serial branch residual squeezing modules; The step S22 of inputting the training data set into the encoder of the fusion enhanced grasping detection network to obtain encoder output features includes: S221, inputting the training data set into the first convolutional layer for feature extraction to obtain preliminary features of the first convolutional layer; S222, inputting the preliminary features of the first convolutional layer into the first serial branch residual squeezing module for adaptive weight allocation, to obtain output features of the first serial branch residual squeezing module; S223, inputting the output features of the first serial branch residual squeezing module into the second convolutional layer for feature extraction to obtain preliminary features of the second convolutional layer; S224, inputting the preliminary features of the second convolutional layer into the second serial branch residual squeezing module for adaptive weight allocation to obtain output features of the second serial branch residual squeezing module; S225, inputting the output features of the second serial branch residual squeezing module into the third convolutional layer for feature extraction to obtain preliminary features of the third convolutional layer; S226, inputting the preliminary features of the third convolutional layer into the third serial branch residual squeezing module for adaptive weight allocation to obtain encoder output features; The parallel channel-pixel attention jump connection module includes a pixel attention layer, a dual-branch pixel attention layer and a channel focusing layer; The step S23 of inputting the encoder output features into the parallel channel-pixel attention jump connection module for feature optimization fusion to obtain key capture features includes: S231, processing the encoder output feature to obtain processed input feature; S232, inputting the processed input features into the pixel attention layer to obtain a pixel attention layer output; S233, inputting the processed input features into the dual-branch pixel attention layer to obtain a dual-branch pixel attention layer output; S234, inputting the processed input features into the channel focusing layer to obtain a channel focusing layer output; S235, obtaining key capture features according to the pixel attention layer output, the dual-branch pixel attention layer output and the channel focus layer output; The decoder of the fusion enhanced grasping detection network in S24 includes multiple deconvolution layers and multiple cross-level feature multi-level fusion modules; In S24, the key grasping features are input into the decoder of the fusion enhanced grasping detection network to obtain a grasping quality heat map, a grasping width heat map and a grasping angle heat map, and then obtain visual detection results, including: S241, inputting the key captured features into the first deconvolution layer for image restoration, and obtaining the first deconvolution layer output; S242, inputting the first deconvolution layer output and the encoder output feature into a first cross-level feature multi-level fusion module to obtain a first cross-level feature multi-level fusion module output; S243, inputting the output of the first cross-level feature multi-level fusion module into the second deconvolution layer for image restoration to obtain a second deconvolution layer output; S244, inputting the second deconvolution layer output and the second serial branch residual squeezing module output features into a second cross-level feature multi-level fusion module to obtain a second cross-level feature multi-level fusion module output; S245, inputting the output of the second cross-level feature multi-level fusion module into the third deconvolution layer for image restoration, to obtain a grasping quality heat map, a grasping width heat map, and a grasping angle heat map; S246. Obtain visual inspection results according to the grasping quality thermogram, the grasping width thermogram and the grasping angle thermogram.

2. The robot vision detection method according to claim 1, It is characterized in that The first serial branch residual squeezing module includes a SE attention unit and a feature refinement unit; The step S222 of inputting the preliminary features of the first convolutional layer into the first serial branch residual squeezing module for adaptive weight allocation to obtain the output features of the first serial branch residual squeezing module includes: Inputting the preliminary features of the first convolutional layer into the SE attention unit to obtain the SE attention unit output features; The output features of the SE attention unit are input into the feature refinement unit, and the output features of the feature refinement unit are added to the preliminary features of the first convolutional layer to obtain the output features of the first serial branch residual squeezing module.

3. The robot vision detection method according to claim 1, It is characterized in that The pixel attention layer output in S232 is shown in the following formula (1): Where, PA c express The global pixel gating signal, PWConv 1×1 represents point-wise convolution, V 3 represents the pixel attention layer output, represents the processed input features, Represents element-wise product.

4. The robot vision detection method according to claim 3, It is characterized in that The dual-branch pixel attention layer includes a first dual-branch pixel attention layer and a second dual-branch pixel attention layer; The output of the dual-branch pixel attention layer in S233 is shown in the following formula (2): In the formula, DBPA 1 represents the output of the first dual-branch pixel attention layer, Cond 3×3 Indicates a convolution with a convolution kernel of 3×3, DBPA 2 represents the output of the second dual-branch pixel attention layer, AveragePooling represents adaptive average pooling, V 1 Represents the output of the two-branch pixel attention layer.

5. The robot vision detection method according to claim 1, It is characterized in that The first cross-level feature multi-level fusion module includes a global branch and a local branch; The step of inputting the first deconvolution layer output and the encoder output feature into a first cross-level feature multi-level fusion module in S242 to obtain the first cross-level feature multi-level fusion module output includes: Fusing the output of the first deconvolution layer and the encoder output features to obtain fused features; Inputting the fused features into the global branch to obtain a global branch weight graph; Inputting the fused features into the local branch to obtain a local branch weight map; Adding the global branch weight map and the local branch weight map to obtain an added feature map; The output of the first deconvolution layer is subjected to a 3×3 convolution, and an element-wise multiplication operation is performed on the output of the first deconvolution layer and the added feature map to obtain a processed first deconvolution layer feature; The encoder output feature is subjected to a 3×3 convolution, and an element-wise multiplication operation is performed on the added feature map to obtain a processed encoder output feature; The processed first deconvolution layer features and the processed encoder output features are aggregated in series to obtain a first cross-level feature multi-level fusion module output.

6. A grasping system based on a visual detection method, wherein the grasping system based on a visual detection method is used to implement the robot visual detection method according to any one of claims 1 to 5, It is characterized in that The system includes a visual acquisition module, a grasping detection module and a grasping execution module built on ROS; Wherein, the visual acquisition module is used to obtain RGBD image data to be detected; The grasping detection module is used to input the RGBD image data into the constructed fusion enhanced grasping detection network; The fusion enhanced grasping detection network includes a serial branch residual squeezing module, a parallel channel-pixel attention jump connection module and a cross-level feature multi-level fusion module; According to the RGBD image data and the fusion enhanced grasping detection network, a grasping quality heat map, a grasping width heat map and a grasping angle heat map are obtained, and then a visual detection result is obtained; The grasping execution module is used to map the visual detection result into a grasping posture in the robot coordinates, input the grasping posture into the robot, obtain a collision-free grasping path through inverse kinematics solution, and complete the grasping; The construction process of the fusion enhanced grasping detection network includes: S21, obtaining a data set, and preprocessing the data set to obtain a training data set; S22, inputting the training data set into the encoder of the fusion enhanced grasping detection network to obtain encoder output features; S23, inputting the encoder output features into the parallel channel-pixel attention jump connection module for feature optimization and fusion to obtain key capture features; S24, inputting the key grasping features into the decoder of the fusion enhanced grasping detection network to obtain a grasping quality heat map, a grasping width heat map and a grasping angle heat map, and then obtaining a visual detection result; The encoder of the fusion enhanced grasping detection network includes multiple convolutional layers and multiple serial branch residual squeezing modules; The step S22 of inputting the training data set into the encoder of the fusion enhanced grasping detection network to obtain encoder output features includes: S221, inputting the training data set into the first convolutional layer for feature extraction to obtain preliminary features of the first convolutional layer; S222, inputting the preliminary features of the first convolutional layer into the first serial branch residual squeezing module for adaptive weight allocation, to obtain output features of the first serial branch residual squeezing module; S223, inputting the output features of the first serial branch residual squeezing module into the second convolutional layer for feature extraction to obtain preliminary features of the second convolutional layer; S224, inputting the preliminary features of the second convolutional layer into the second serial branch residual squeezing module for adaptive weight allocation to obtain output features of the second serial branch residual squeezing module; S225, inputting the output features of the second serial branch residual squeezing module into the third convolutional layer for feature extraction to obtain preliminary features of the third convolutional layer; S226, inputting the preliminary features of the third convolutional layer into the third serial branch residual squeezing module for adaptive weight allocation to obtain encoder output features; The parallel channel-pixel attention jump connection module includes a pixel attention layer, a dual-branch pixel attention layer and a channel focusing layer; The step S23 of inputting the encoder output features into the parallel channel-pixel attention jump connection module for feature optimization fusion to obtain key capture features includes: S231, processing the encoder output feature to obtain processed input feature; S232, inputting the processed input features into the pixel attention layer to obtain a pixel attention layer output; S233, inputting the processed input features into the dual-branch pixel attention layer to obtain a dual-branch pixel attention layer output; S234, inputting the processed input features into the channel focusing layer to obtain a channel focusing layer output; S235, obtaining key capture features according to the pixel attention layer output, the dual-branch pixel attention layer output and the channel focus layer output; The decoder of the fusion enhanced grasping detection network in S24 includes multiple deconvolution layers and multiple cross-level feature multi-level fusion modules; In S24, the key grasping features are input into the decoder of the fusion enhanced grasping detection network to obtain a grasping quality heat map, a grasping width heat map and a grasping angle heat map, and then obtain visual detection results, including: S241, inputting the key captured features into the first deconvolution layer for image restoration, and obtaining the first deconvolution layer output; S242, inputting the first deconvolution layer output and the encoder output feature into a first cross-level feature multi-level fusion module to obtain a first cross-level feature multi-level fusion module output; S243, inputting the output of the first cross-level feature multi-level fusion module into the second deconvolution layer for image restoration to obtain a second deconvolution layer output; S244, inputting the second deconvolution layer output and the second serial branch residual squeezing module output features into a second cross-level feature multi-level fusion module to obtain a second cross-level feature multi-level fusion module output; S245, inputting the output of the second cross-level feature multi-level fusion module into the third deconvolution layer for image restoration, to obtain a grasping quality heat map, a grasping width heat map, and a grasping angle heat map; S246. Obtain visual inspection results according to the grasping quality thermogram, the grasping width thermogram and the grasping angle thermogram.