A method, device and equipment for object texture recognition for robot grasping
By processing video images with LBP and MDS algorithms and combining them with texture recognition networks, the problem of robots identifying complex object textures in intelligent manufacturing is solved, and the accuracy and robustness of grabbing tasks are improved.
Patent Information
- Application Number
- CN202210162181.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-22
- Publication Date
- 2024-09-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the field of smart manufacturing, it is difficult for robots to quickly and reliably identify and classify multiple similar objects, resulting in limitations in the accuracy and robustness of grasping tasks.
The LBP algorithm and MDS multi-dimensional mapping algorithm are used to process the video images collected by the robot camera to generate an LBP coded mapping image, and the original image and the LBP coded mapping image are input into the texture recognition network. Through feature extraction, deep residual pooling and full connection The classification layer performs object texture recognition.
It improves the accuracy of object texture recognition, can more effectively identify and classify complex object textures, and supports the grasping tasks of robots in intelligent manufacturing.
Smart Images

Figure CN115091445B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, apparatus, computer equipment, and storage medium for object texture recognition for robot grasping. Background Art
[0002] With the rapid development and in-depth application of artificial intelligence, everyday production processes are continuously evolving towards automation and intelligence. Among the most repetitive and laborious tasks in production and daily life is the handling of products and raw materials. Therefore, research into robots that can replace humans in grasping tasks is essential. Grasping tasks that seem simple for humans are extremely challenging for robots. Robots are required to simultaneously integrate data from multiple sensors, such as vision and touch. They must also detect and recognize objects, classify them, and generate grasping gestures. Finally, they must plan collision-free motion trajectories. Before a robotic arm can perform a grasping operation, it must first detect and identify objects in the environment before executing subsequent precise movements. The primary challenge lies in rapidly detecting and reliably identifying a wide range of objects. This is particularly true in the field of intelligent manufacturing, where hundreds or even thousands of similar objects can be encountered. Accurate detection and robust recognition present a significant challenge for machine vision. Summary of the Invention
[0003] Based on this, it is necessary to provide an object texture recognition method, device, computer equipment and storage medium for robot grasping, which can determine the object texture category in real time based on the video image obtained by the robot to address the above technical problems.
[0004] A method for object texture recognition for robot grasping, the method comprising:
[0005] Obtaining a video image of an object captured by a camera of the manipulator, preprocessing the video image to obtain a multi-object image dataset, and forming a training dataset with the multi-object image dataset;
[0006] Processing the original image in the training data set by the LBP algorithm to obtain an LBP image;
[0007] Obtain an LBP coded mapping image according to the LBP image by using an MDS multi-dimensional mapping algorithm;
[0008] Inputting the original image and the LBP coded mapping image into a texture recognition network; the texture recognition network includes a feature extraction network, a deep residual layer and a fully connected classification layer;
[0009] Perform feature extraction on the original image and the LBP coded mapping image respectively through the feature extraction network to obtain corresponding original image features and LBP coded mapping image features;
[0010] Pooling the original image features and the LBP coded mapping image features respectively through the depth residual layer to obtain corresponding original image feature vectors and LBP coded mapping image feature vectors;
[0011] Performing fusion classification on the original image feature vector and the LBP coding mapping image feature vector through the fully connected classification layer, and outputting the object texture recognition result of the original image;
[0012] Training the texture recognition network according to a preset loss function to obtain a trained texture recognition network;
[0013] The trained texture recognition network is used to collect video images of the manipulator to be detected to perform object texture recognition.
[0014] In one embodiment, the method further includes: obtaining a video image of the object captured by a camera of the manipulator;
[0015] Performing frame extraction preprocessing on the video image to obtain a frame image;
[0016] Gray-scaling the frame image to obtain a multi-object image dataset;
[0017] In one embodiment, the method further includes: forming a training dataset from the multi-object image dataset; obtaining an LBP coded mapping image from the LBP image using an MDS algorithm; wherein the difference between the two LBP images is described by the land movement distance.
[0018] In one of the embodiments, it also includes: performing feature extraction on the original image and the LBP coding mapping image respectively through the feature extraction network to obtain corresponding original image features and LBP coding mapping image features; the feature extraction network is a universal feature extraction network.
[0019] In one embodiment, it also includes: pooling the original image features and the LBP coding mapping image features respectively through the depth residual layer to obtain the corresponding original image feature vector and LBP coding mapping image feature vector; the depth residual layer includes a residual coding module and an aggregation module; the residual coding module is used to activate the input feature map through the sigmoid function, perform residual calculation on the feature map of the original input, and input the residual calculation result into the aggregation module; the aggregation module is used to pool the residual.
[0020] In one embodiment, the method further includes: fusing the original image feature vector and the LBP coding mapping image feature vector to obtain:
[0021] Y=Y0+a1Y1
[0022] Wherein, Y is the fusion result, Y0 is the original image feature vector, Y1 is the LBP code mapping image feature vector, and a1 represents the weight relationship between the original image feature vector and the LBP code mapping image feature vector;
[0023] Classification is performed according to the fusion result through the fully connected classification layer, and an object texture recognition result of the original image is output.
[0024] In one embodiment, the method further includes: constraining the network through cross entropy loss, updating network parameters through back propagation, training the texture recognition network, and obtaining a trained texture recognition network.
[0025] In one embodiment, the method further includes: pre-processing the video image collected from the manipulator to be inspected to obtain an image data set;
[0026] Processing the original image in the image data set by the LBP algorithm to obtain an LBP image;
[0027] Obtain an LBP coded mapping image according to the LBP image by using an MDS multi-dimensional mapping algorithm;
[0028] The original image and the LBP coding mapping image are input into the trained texture recognition network, and the object texture recognition result is output.
[0029] A device for identifying texture of an object for grasping by a robot arm, comprising:
[0030] A training data set acquisition module is used to acquire video images of objects captured by a robot camera, pre-process the video images to obtain a multi-object image data set, and the multi-object image data set constitutes a training data set;
[0031] An LBP algorithm module is used to process the original image in the training data set using the LBP algorithm to obtain an LBP image;
[0032] An MDS algorithm module is used to obtain an LBP coded mapping image according to the LBP image through an MDS multi-dimensional mapping algorithm;
[0033] A network processing module is used to input the original image and the LBP coded map image into a texture recognition network; the texture recognition network includes a feature extraction network, a deep residual layer and a fully connected classification layer; the feature extraction network is used to extract features of the original image and the LBP coded map image respectively to obtain corresponding original image features and LBP coded map image features; the deep residual layer is used to pool the original image features and the LBP coded map image features respectively to obtain corresponding original image feature vectors and LBP coded map image feature vectors; the fully connected classification layer is used to fuse and classify the original image feature vectors and the LBP coded map image feature vectors, and output the object texture recognition result of the original image;
[0034] A network training module, used to train the texture recognition network according to a preset loss function to obtain a trained texture recognition network;
[0035] The network application module is used to perform object texture recognition on the video image collected by the manipulator to be detected through the trained texture recognition network.
[0036] A computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0037] Obtaining a video image of an object captured by a camera of the manipulator, preprocessing the video image to obtain a multi-object image dataset, and forming a training dataset with the multi-object image dataset;
[0038] Processing the original image in the training data set by the LBP algorithm to obtain an LBP image;
[0039] Obtain an LBP coded mapping image according to the LBP image by using an MDS multi-dimensional mapping algorithm;
[0040] Inputting the original image and the LBP coded mapping image into a texture recognition network; the texture recognition network includes a feature extraction network, a deep residual layer and a fully connected classification layer;
[0041] Perform feature extraction on the original image and the LBP coded mapping image respectively through the feature extraction network to obtain corresponding original image features and LBP coded mapping image features;
[0042] Pooling the original image features and the LBP coded mapping image features respectively through the depth residual layer to obtain corresponding original image feature vectors and LBP coded mapping image feature vectors;
[0043] Performing fusion classification on the original image feature vector and the LBP coding mapping image feature vector through the fully connected classification layer, and outputting the object texture recognition result of the original image;
[0044] Training the texture recognition network according to a preset loss function to obtain a trained texture recognition network;
[0045] The trained texture recognition network is used to collect video images of the manipulator to be detected to perform object texture recognition.
[0046] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0047] Obtaining a video image of an object captured by a camera of the manipulator, preprocessing the video image to obtain a multi-object image dataset, and forming a training dataset with the multi-object image dataset;
[0048] Processing the original image in the training data set by the LBP algorithm to obtain an LBP image;
[0049] Obtain an LBP coded mapping image according to the LBP image by using an MDS multi-dimensional mapping algorithm;
[0050] Inputting the original image and the LBP coded mapping image into a texture recognition network; the texture recognition network includes a feature extraction network, a deep residual layer and a fully connected classification layer;
[0051] Perform feature extraction on the original image and the LBP coded mapping image respectively through the feature extraction network to obtain corresponding original image features and LBP coded mapping image features;
[0052] Pooling the original image features and the LBP coded mapping image features respectively through the depth residual layer to obtain corresponding original image feature vectors and LBP coded mapping image feature vectors;
[0053] Performing fusion classification on the original image feature vector and the LBP coding mapping image feature vector through the fully connected classification layer, and outputting the object texture recognition result of the original image;
[0054] Training the texture recognition network according to a preset loss function to obtain a trained texture recognition network;
[0055] The trained texture recognition network is used to collect video images of the manipulator to be detected to perform object texture recognition.
[0056] The above-mentioned object texture recognition method, device, computer equipment and storage medium for robot grasping are as follows: the video image of the object captured by the robot camera is processed by the LBP algorithm to obtain an LBP image, the LBP coded mapping image is obtained from the LBP image by the MDS multidimensional mapping algorithm, the original image and the LBP coded mapping image are input into the texture recognition network, the feature vectors are fused after feature extraction and residual pooling operations, and the object texture is recognized and classified by the fully connected layer; after training the texture recognition network with a training data set to obtain a trained texture recognition network, the trained texture recognition network is used for object texture recognition in the video captured by the robot. The present invention obtains the LBP coded mapping image by the LBP algorithm and the MDS multidimensional mapping algorithm, uses the original video image and the LBP coded mapping image to input the dual-stream network, and gives the texture recognition result based on the deep learning algorithm, thereby improving the accuracy of texture recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 1 is a flow chart of a method for texture recognition of an object for robot grasping in one embodiment;
[0058] Figure 2 Schematic diagram of the comparison of an original image, an LBP image, and an LBP-coded mapped image in one embodiment, wherein (a) is the original image, (b) is the LBP image, and (c) is the LBP-coded mapped image;
[0059] Figure 3 Schematic diagram of a process for obtaining an LBP-coded mapping image in one embodiment;
[0060] Figure 4 A schematic diagram of the overall structure of a texture recognition network in one embodiment;
[0061] Figure 5 Schematic diagram of a residual pooling layer in one embodiment;
[0062] Figure 6 Schematic diagram of a convolutional transmission module in one embodiment;
[0063] Figure 7 A schematic diagram of an aggregation module in one embodiment;
[0064] Figure 8 1 is a structural block diagram of an object texture recognition device for robot grasping in one embodiment;
[0065] Figure 9 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0066] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0067] In one embodiment, Figure 1 As shown, a method for object texture recognition for robot grasping is provided, comprising the following steps:
[0068] Step 102 : obtaining a video image of the object captured by the robot camera, pre-processing the video image to obtain a multi-object image dataset, and forming a training dataset from the multi-object image dataset.
[0069] General texture datasets can also be added to the training set, such as FMD datasets and DTD-descriptive texture datasets.
[0070] Step 104: Process the original image in the training data set using the LBP algorithm to obtain an LBP image.
[0071] The LBP algorithm is an operator used to describe the local texture features of an image; it has significant advantages such as rotation invariance and grayscale invariance. LBP coding is generated by applying a threshold to the intensity values of a small neighborhood of pixels. The original LBP is defined in a window of size 3×3. The value of the center pixel of the window is the threshold, and the values of other pixels in the 3×3 window are compared with it. If it is greater than the center pixel value, the pixel position is marked as 1, and if it is less than the center pixel value, it is marked as 0. An 8-bit binary number is composed of the values at the eight positions around the window position, which is usually converted into a decimal number as the LBP value at the center position of the window, and this value is used to reflect the texture information of the area. The final image representation is obtained by calculating the histogram as the distribution of the LBP code in the entire image area. The obtained feature vector is normalized for translation and is invariant to monotonic changes in grayscale. The specific public is as follows:
[0072]
[0073] Among them, X i Y i represents the center pixel of the 3x3 window, z i is the pixel value of the center pixel, z j is the pixel value of the adjacent pixel, and T(·) is a function:
[0074]
[0075] Step 106: Obtain an LBP coded mapping image according to the LBP image using the MDS multi-dimensional mapping algorithm.
[0076] Using the Multi-Dimensional Scaling (MDS) method, the disordered LBP image is mapped into the metric space to obtain the LBP code mapping image, so that the distance between the mapped codes is close to the distance between the original code pairs, and can meaningfully participate in the convolution operation. When describing the difference between two LBPs, the Hamming distance is not used, as the Hamming distance cannot accurately represent the difference between the two LBP codes. The Earth Mover's Distance (EMD) is used. EMD is defined as the minimum effort required to describe the transformation of one distribution into another. EMD can consider both different locations and values at different locations.
[0077] Dis i,j =||MDS(LBP i )-MDS(LBP j )||
[0078] Among them, Dis i,j Represents LBP image LBP i and LBP i This difference uses multidimensional scaling analysis to convert the traditional LBP image into another form that can directly participate in convolution operations as the input of CNN.
[0079] The original image, LBP image and LBP coded mapping image comparison Figure 2 shown.
[0080] The flow chart for generating LBP coding mapping dataset is as follows Figure 3 As shown in FIG, the original image is grayed out, and after the LBP algorithm, MDS multi-scale scaling algorithm and EMD distance measurement, the LBP coding mapping image is obtained.
[0081] Step 108: Input the original image and the LBP-coded mapped image into a texture recognition network.
[0082] The texture recognition network includes a feature extraction network, a deep residual layer, and a fully connected classification layer. The overall structure of the texture recognition network is as follows: Figure 4 shown.
[0083] Step 110: extract features from the original image and the LBP coded mapping image respectively through a feature extraction network to obtain corresponding original image features and LBP coded mapping image features.
[0084] This method is compatible with a variety of feature extraction networks and can be selected according to the needs of the task. Commonly used feature extraction networks include VGG19, Resnet50, Resent101, Resent161, etc.
[0085] Step 112: Pooling the original image features and the LBP coded map image features respectively through the depth residual layer to obtain the corresponding original image feature vector and LBP coded map image feature vector.
[0086] Specifically, the structure of the residual pooling layer is as follows Figure 5 As shown in the figure, the residual pooling layer is divided into a residual coding module and an aggregation module. The feature map is activated by sigmoid, and the feature map is processed by the convolution transmission module. The residual calculation is performed on the two and the result is input into the aggregation module. The aggregation module processes it and finally the residual pooling layer outputs the high and feature Figure 1 The structure of the convolutional transmission module is as follows: Figure 6 As shown, the structure of the aggregation module is as follows Figure 7 shown.
[0087] Step 114 , performing fusion classification on the original image feature vector and the LBP coding mapping image feature vector through a fully connected classification layer, and outputting the object texture recognition result of the original image.
[0088] Specifically, the original image feature vector and the LBP coding mapping image feature vector are fused as follows:
[0089] Y=Y0+a1Y1
[0090] Where Y is the fusion result, Y0 is the original image feature vector, Y1 is the LBP code mapping image feature vector, and a1 represents the weight relationship between the original image feature vector and the LBP code mapping image feature vector. The shape of Y is 1×1×N (N is the depth of the features extracted by the basic feature extraction network). A fully connected layer is used to complete the classification task, with N input nodes and M output nodes (M is the number of categories to be classified). Finally, the softmax function is used to obtain the output result.
[0091] Step 116: Train the texture recognition network according to a preset loss function to obtain a trained texture recognition network.
[0092] Step 118: Use the trained texture recognition network to perform object texture recognition on the video image of the robot arm to be inspected.
[0093] In the above-mentioned object texture recognition method for robot grasping, the video image of the object captured by the robot camera is processed by the LBP algorithm to obtain an LBP image, and the LBP coded mapping image is obtained from the LBP image by the MDS multidimensional mapping algorithm. The original image and the LBP coded mapping image are input into the texture recognition network. After feature extraction and residual pooling operations, the feature vectors are fused, and the object texture is identified and classified by the fully connected layer; after the texture recognition network is trained with a training data set to obtain a trained texture recognition network, the trained texture recognition network is used for object texture recognition in the video captured by the robot. The present invention obtains the LBP coded mapping image by the LBP algorithm and the MDS multidimensional mapping algorithm, uses the original video image and the LBP coded mapping image to input the dual-stream network, and gives the texture recognition result based on the deep learning algorithm, thereby improving the accuracy of texture recognition.
[0094] In one embodiment, the method further includes: obtaining a video image of an object captured by a robot camera; performing frame preprocessing on the video image to obtain a frame image; performing grayscale processing on the frame image to obtain a multi-object image dataset; and forming a training dataset from the multi-object image dataset.
[0095] In one embodiment, it also includes: extracting features from the original image and the LBP coded mapping image respectively through a feature extraction network to obtain corresponding original image features and LBP coded mapping image features; the feature extraction network is a universal feature extraction network.
[0096] In one embodiment, the method further includes: constraining the network through cross entropy loss, updating network parameters through back propagation, training the texture recognition network, and obtaining a trained texture recognition network.
[0097] In one embodiment, the method further includes: pre-processing a video image of the robot arm to be inspected to obtain an image data set; processing the original image in the image data set by the LBP algorithm to obtain an LBP image; obtaining an LBP coded mapping image based on the LBP image by the MDS multidimensional mapping algorithm; inputting the original image and the LBP coded mapping image into a trained texture recognition network, and outputting the object texture recognition result.
[0098] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. In addition, Figure 1At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0099] In one embodiment, Figure 8 As shown, a device for object texture recognition for robot grasping is provided, comprising: a training data set acquisition module 802, an LBP algorithm module 804, an MDS algorithm module 806, a network processing module 808, a network training module 810 and a network application module 812, wherein:
[0100] The training data set acquisition module 802 is used to acquire video images of objects captured by the robot camera, pre-process the video images to obtain a multi-object image dataset, and the multi-object image dataset constitutes a training data set;
[0101] LBP algorithm module 804, used to process the original image in the training data set using the LBP algorithm to obtain an LBP image;
[0102] An MDS algorithm module 806 is configured to obtain an LBP coded mapping image from the LBP image using an MDS multi-dimensional mapping algorithm;
[0103] The network processing module 808 is used to input the original image and the LBP coded mapping image into the texture recognition network; the texture recognition network includes a feature extraction network, a deep residual layer and a fully connected classification layer; the feature extraction network extracts features from the original image and the LBP coded mapping image respectively to obtain corresponding original image features and LBP coded mapping image features; the deep residual layer pools the original image features and the LBP coded mapping image features respectively to obtain corresponding original image feature vectors and LBP coded mapping image feature vectors; the fully connected classification layer fuses and classifies the original image feature vectors and the LBP coded mapping image feature vectors to output the object texture recognition result of the original image;
[0104] The network training module 810 is used to train the texture recognition network according to a preset loss function to obtain a trained texture recognition network;
[0105] The network application module 812 is used to perform object texture recognition on the video image collected by the robot to be inspected through the trained texture recognition network.
[0106] The training data set acquisition module 802 is also used to obtain video images of objects captured by the robot camera; perform frame extraction preprocessing on the video images to obtain frame images; grayscale the frame images to obtain a multi-object image data set; and the multi-object image data set constitutes a training data set.
[0107] The network processing module 808 is also used to extract features from the original image and the LBP coded mapping image respectively through a feature extraction network to obtain corresponding original image features and LBP coded mapping image features; the feature extraction network is a general feature extraction network.
[0108] The network processing module 808 is also used to pool the original image features and the LBP coding mapping image features respectively through the deep residual layer to obtain the corresponding original image feature vector and LBP coding mapping image feature vector; the deep residual layer includes a residual coding module and an aggregation module; the residual coding module is used to activate the input feature map through the sigmoid function, perform residual calculation on the feature map of the original input, and input the residual calculation result into the aggregation module; the aggregation module is used to pool the residual.
[0109] The network processing module 808 is further configured to fuse the original image feature vector and the LBP coding mapping image feature vector into:
[0110] Y=Y0+a1Y1
[0111] Among them, Y is the fusion result, Y0 is the original image feature vector, Y1 is the LBP coding mapping image feature vector, and a1 represents the weight relationship between the original image feature vector and the LBP coding mapping image feature vector;
[0112] The fully connected classification layer is used to classify the fusion results and output the object texture recognition results of the original image.
[0113] The network training module 810 is further used to constrain the network through cross entropy loss, update network parameters through back propagation, train the texture recognition network, and obtain a trained texture recognition network.
[0114] The network application module 812 is also used to pre-process the video images collected by the robot to be inspected to obtain an image data set; process the original image in the image data set through the LBP algorithm to obtain an LBP image; obtain an LBP coded mapping image based on the LBP image through the MDS multi-dimensional mapping algorithm; input the original image and the LBP coded mapping image into the trained texture recognition network, and output the object texture recognition result.
[0115] Regarding the specific definition of the object texture recognition device for robot grasping, please refer to the definition of the object texture recognition method for robot grasping above, which will not be repeated here. The various modules in the above-mentioned object texture recognition device for robot grasping can be implemented in whole or in part by software, hardware, and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0116] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 9 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for object texture recognition for robot grasping is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad provided on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0117] Those skilled in the art will understand that Figure 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0118] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiment when executing the computer program.
[0119] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiment are implemented.
[0120] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0121] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0122] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.
Claims
1. A method for object texture recognition for robot grasping, characterized in that: The method comprises: Acquire a video image of an object captured by a camera of the manipulator, pre-process the video image to obtain a multi-object image data set, and use the multi-object image data set to form a training data set; The original image in the training data set is processed by the LBP algorithm to obtain an LBP image; Obtaining an LBP coded mapping image according to the LBP image by using an MDS algorithm; Inputting the original image and the LBP coded mapping image into a texture recognition network; the texture recognition network includes a feature extraction network, a deep residual layer and a fully connected classification layer; Perform feature extraction on the original image and the LBP coded mapping image respectively through the feature extraction network to obtain corresponding original image features and LBP coded mapping image features; Pooling the original image features and the LBP coded mapping image features respectively through the depth residual layer to obtain corresponding original image feature vectors and LBP coded mapping image feature vectors; The original image feature vector and the LBP coding mapping image feature vector are fused and classified by the fully connected classification layer, and the object texture recognition result of the original image is output; Training the texture recognition network according to a preset loss function to obtain a trained texture recognition network; The trained texture recognition network is used to perform object texture recognition on the video image collected from the robot to be inspected.
2. The method according to claim 1, characterized in that Obtaining a video image of an object captured by a robot camera, preprocessing the video image to obtain a multi-object image dataset, and forming a training dataset from the multi-object image dataset, including: Obtaining a video image of the object captured by the robot camera; Performing frame extraction preprocessing on the video image to obtain a frame image; Gray-scale the frame image to obtain a multi-object image data set; The multi-object image dataset constitutes a training dataset.
3. The method according to claim 2, characterized in that Obtaining an LBP coded mapping image according to the LBP image by using an MDS algorithm, including: An LBP coded mapping image is obtained according to the LBP image by using an MDS algorithm; wherein the difference between the two LBP images is described by the land movement distance.
4. The method according to claim 3, characterized in that The feature extraction network is used to extract features from the original image and the LBP coded mapping image respectively, to obtain corresponding original image features and LBP coded mapping image features, including: The feature extraction network is used to extract features from the original image and the LBP coded mapping image respectively to obtain corresponding original image features and LBP coded mapping image features; the feature extraction network is a universal feature extraction network.
5. The method according to claim 4, characterized in that The original image features and the LBP coded mapping image features are respectively pooled through the depth residual layer to obtain corresponding original image feature vectors and LBP coded mapping image feature vectors, including: The original image features and the LBP coded mapping image features are pooled respectively through the deep residual layer to obtain the corresponding original image feature vector and LBP coded mapping image feature vector; the deep residual layer includes a residual coding module and an aggregation module; the residual coding module is used to activate the input feature map through a sigmoid function, perform residual calculation on the feature map of the original input, and input the residual calculation result into the aggregation module; the aggregation module is used to pool the residual.
6. The method according to claim 5, characterized in that The original image feature vector and the LBP coding mapping image feature vector are fused and classified by the fully connected classification layer, and the object texture recognition result of the original image is output, including: The original image feature vector and the LBP coding mapping image feature vector are fused as follows: Y=Y0+a1Y1 Wherein, Y is the fusion result, Y0 is the original image feature vector, Y1 is the LBP code mapping image feature vector, and a1 represents the weight relationship between the original image feature vector and the LBP code mapping image feature vector; Classification is performed according to the fusion result through the fully connected classification layer, and the object texture recognition result of the original image is output.
7. The method according to claim 6, characterized in that The texture recognition network is trained according to a preset loss function to obtain a trained texture recognition network, including: The texture recognition network is trained by constraining the network through cross entropy loss and updating the network parameters through back propagation to obtain a trained texture recognition network.
8. The method according to claim 7, characterized in that The trained texture recognition network is used to perform object texture recognition on the video image of the manipulator to be detected, including: The image data set is obtained by preprocessing the video image collected by the robot to be inspected; The original image in the image data set is processed by the LBP algorithm to obtain an LBP image; Obtaining an LBP coded mapping image according to the LBP image by using an MDS algorithm; The original image and the LBP coding mapping image are input into the trained texture recognition network, and the object texture recognition result is output.
9. An object texture recognition device for robot grasping, characterized in that: The device comprises: A training data set acquisition module is used to acquire video images of objects captured by a robot camera, and obtain a multi-object image data set after preprocessing the video images, and the multi-object image data set constitutes a training data set; An LBP algorithm module is used to process the original image in the training data set by using the LBP algorithm to obtain an LBP image; An MDS algorithm module, used for obtaining an LBP coding mapping image according to the LBP image by using an MDS algorithm; A network processing module is used to input the original image and the LBP coded mapping image into a texture recognition network; the texture recognition network includes a feature extraction network, a deep residual layer and a fully connected classification layer; the feature extraction network is used to extract features of the original image and the LBP coded mapping image respectively to obtain corresponding original image features and LBP coded mapping image features; the deep residual layer is used to pool the original image features and the LBP coded mapping image features respectively to obtain corresponding original image feature vectors and LBP coded mapping image feature vectors; the fully connected classification layer is used to fuse and classify the original image feature vectors and the LBP coded mapping image feature vectors, and output the object texture recognition result of the original image; A network training module, used to train the texture recognition network according to a preset loss function to obtain a trained texture recognition network; The network application module is used to perform object texture recognition on the video image collected by the robot to be detected through the trained texture recognition network.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
