A data processing method and related device

By using a neural network model with multiple sets of encoders and decoders in autonomous driving technology, the problem of inaccurate depth recognition of objects in images to be detected is solved, and the accuracy of object depth recognition and the position awareness of autonomous vehicles are improved.

CN116721151BActive Publication Date: 2024-09-10TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210192082.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-28
Publication Date
2024-09-10
Estimated Expiration
2042-02-28

AI Technical Summary

Technical Problem

In existing autonomous driving technology, the accuracy of depth recognition of objects in images to be detected is not high, resulting in inaccurate distance detection.

Method used

A neural network model using multiple sets of encoders and decoders is used to increase the number of paths within the neural network, fully integrate the semantic information and spatial information in the image to be detected, and determine each step through the semantic information output by the first decoder of the neural network model. pixel depth, thereby improving the accuracy of object depth recognition.

Benefits of technology

It improves the accuracy of depth recognition of objects in images to be detected, enhances the depth estimation accuracy of neural network models in images to be detected, and improves the location awareness of autonomous vehicles to the environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116721151B
    Figure CN116721151B
Patent Text Reader

Abstract

The embodiment of the present application discloses a data processing method and related devices, which can be applied to various scenarios such as cloud technology, artificial intelligence, smart transportation, and assisted driving. An image to be detected is obtained, and the image to be detected is input into a neural network model including I encoders and I decoders. The depth of each pixel in the image to be detected is determined by the semantic information output by the Ith decoder of the neural network model, and the depth of the object included in the image to be detected is determined according to the depth of each pixel in the image to be detected, and then the distance between the camera and the object included in the image to be detected is determined. Thus, the number of paths inside the neural network is increased by I groups of encoders and decoders to improve the information flow in the neural network, fully integrate the semantic information and spatial information in the image to be detected, improve the accuracy of the neural network model in estimating the depth, and then improve the accuracy of the depth recognition of objects in the image to be detected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of autonomous driving technology, and in particular to a data processing method and related devices. Background Art

[0002] With the development of science and technology, driverless technology has attracted widespread attention from scholars in various fields. Vehicles equipped with driverless technology are called autonomous vehicles. Autonomous vehicles can update their map information by sensing the surrounding environment, allowing vehicles to continuously sense their location.

[0003] In related technologies, an autonomous vehicle uses a camera to capture the surrounding environment to obtain an image to be detected, identifies the depth of an object in the surrounding environment in the image to be detected, and then obtains information such as the distance between the object and the autonomous vehicle. For example, the current vehicle captures an image in front of the vehicle to obtain an image to be detected, identifies the depth of the vehicle in front of the vehicle in the image to be detected, and then obtains the distance between the current vehicle and the vehicle in front.

[0004] However, in the related art, the accuracy of depth recognition of objects in the image to be detected is not high. Summary of the invention

[0005] In order to solve the above technical problems, the present application provides a data processing method and related devices for improving the accuracy of depth recognition of objects in images to be detected.

[0006] The embodiments of the present application disclose the following technical solutions:

[0007] On the one hand, an embodiment of the present application provides a data processing method, the method comprising:

[0008] Acquire the image to be detected;

[0009] The image to be detected is input into a neural network model including I encoders and I decoders, and the depth of each pixel in the image to be detected is determined by the semantic information output by the I decoder of the neural network model; wherein each encoder includes N encoding units, each decoder includes N decoding units, the input of the nth encoding unit of the ith encoder is the semantic feature output by the nth encoding unit of the i-1th encoder, the semantic information output by the nth decoding unit of the i-1th decoder, and the semantic feature output by the n-1th encoding unit of the ith encoder, the semantic feature output by the nth encoding unit of the ith encoder is input to the n+1th encoding unit of the ith encoder and the nth decoding unit of the ith decoder, the I and the N are integers greater than 1, the i is a positive integer less than or equal to the I, and the n is a positive integer less than or equal to the N;

[0010] The depth of the object in the image to be detected is determined according to the depth of each pixel in the image to be detected.

[0011] On the other hand, an embodiment of the present application provides a data processing device, the device comprising: an acquisition unit, a neural network model unit, and a determination unit;

[0012] The acquisition unit is used to acquire the image to be detected;

[0013] The neural network model unit is used to input the image to be detected into a neural network model including I encoders and I decoders, and determine the depth of each pixel in the image to be detected by the semantic information output by the I decoder of the neural network model; wherein each encoder includes N encoding units, each decoder includes N decoding units, the input of the nth encoding unit of the ith encoder is the semantic feature output by the nth encoding unit of the i-1th encoder, the semantic information output by the nth decoding unit of the i-1th decoder and the semantic feature output by the n-1th encoding unit of the ith encoder, the semantic feature output by the nth encoding unit of the ith encoder is input to the n+1th encoding unit of the ith encoder and the nth decoding unit of the ith decoder, the I and the N are integers greater than 1, the i is a positive integer less than or equal to the I, and the n is a positive integer less than or equal to the N;

[0014] The determining unit is used to determine the depth of the object included in the image to be detected according to the depth of each pixel point in the image to be detected.

[0015] On the other hand, an embodiment of the present application provides a computer device, the device comprising a processor and a memory:

[0016] The memory is used to store program code and transmit the program code to the processor;

[0017] The processor is used to execute the method described in the above aspects according to the instructions in the program code.

[0018] On the other hand, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method described in the above aspects.

[0019] On the other hand, an embodiment of the present application provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method described in the above aspects.

[0020] It can be seen from the above technical solution that the acquired image to be detected is input into the neural network model, which includes I encoders and I decoders, each encoder includes N units, and each decoder includes N decoding units. Taking the nth encoding unit of the i-th encoder as an example, its input is the semantic features output by the nth encoding unit of the i-1th encoder, the semantic information output by the nth decoding unit of the i-1th decoder, and the semantic features output by the n-1th encoding unit of the i-th encoder. The output semantic features will be used as the input of the n+1th encoding unit of the i-th encoder and the nth decoding unit of the i-th decoder until the i-th decoder outputs semantic information, and the depth of each pixel in the image to be detected is determined according to the semantic information output by the i-th decoder, thereby determining the depth of the object included in the image to be detected. Thus, the number of paths inside the neural network is increased by I groups of encoders and decoders to improve the information flow in the neural network, fully integrate the semantic information and spatial information in the image to be detected, improve the accuracy of the neural network model in estimating the depth, and thus improve the accuracy of the depth recognition of the object in the image to be detected. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0022] Figure 1 A schematic diagram of an application scenario of a data processing method provided in an embodiment of the present application;

[0023] Figure 2 A flowchart of a data processing method provided in an embodiment of the present application;

[0024] Figure 3 A schematic diagram of a neural network model provided in an embodiment of the present application;

[0025] Figure 4 A schematic diagram of a feature fusion module provided in an embodiment of the present application;

[0026] Figure 5 A schematic diagram of a basic module provided in an embodiment of the present application;

[0027] Figure 6 A schematic diagram of a basic module provided in an embodiment of the present application;

[0028] Figure 7A schematic diagram of visualization results of a data processing method provided in an embodiment of the present application on the KITTI2015 test set;

[0029] Figure 8 A schematic diagram of a data processing device provided in an embodiment of the present application;

[0030] Fig. 9 A schematic diagram of the structure of a server provided in an embodiment of the present application;

[0031] Fig.10 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] The embodiments of the present application are described below in conjunction with the accompanying drawings.

[0033] In the related art, after obtaining the image to be detected, the image to be detected is input into a deep neural network model, and the deep neural network model adopts a set of encoder-decoder structures (such as U-net: Convolutional networks for biomedical image segmentation), wherein the encoder adopts a pre-trained deep residual network (Deep Residual Network, ResNet) model, and the semantic features of the image to be detected can be extracted through the encoder, and the semantic features are input into the decoder to obtain semantic information, and the depth of each pixel in the image to be detected is determined according to the semantic information, so as to obtain the depth of the object in the image to be detected according to the depth of the pixel, and then obtain the distance between the object and the autonomous driving vehicle. However, the number of paths inside the neural network including a set of encoder-decoder structures is low, the information flow in the neural network is poor, and the semantic information and spatial information in the image to be detected cannot be fully integrated, resulting in low accuracy in depth recognition of objects in the image to be detected.

[0034] Based on this, an embodiment of the present application provides a data processing method, which increases the number of paths inside the neural network through multiple groups of encoders and decoders to improve the information flow in the neural network, fully integrates the semantic information and spatial information in the image to be detected, and improves the accuracy of the neural network model in estimating depth, thereby improving the accuracy of depth recognition of objects in the image to be detected.

[0035] The data processing method provided in the embodiment of the present application is based on artificial intelligence. Artificial Intelligence (AI) is a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that the machines have the functions of perception, reasoning and decision-making.

[0036] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0037] In the embodiment of the present application, the artificial intelligence technology mainly involved includes the artificial neural network in the above-mentioned machine learning / deep learning, in which the number of paths inside the network is increased by multiple groups of encoders and decoders in the artificial neural network to improve the information flow in the network, fully integrate the semantic information and spatial information in the image to be detected, improve the accuracy of model depth estimation, and then improve the accuracy of object depth recognition in the image to be detected. Among them, machine learning (MachineLearning, ML) is a multi-field cross-disciplinary subject involving probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. Specializes in how computers simulate or implement human learning behavior to acquire new knowledge or skills, reorganize existing knowledge structures to continuously improve their own performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its application is spread across all fields of artificial intelligence. Machine learning and deep learning generally include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and teaching learning.

[0038] As disclosed in the data processing method or device of the present application, a plurality of servers may be formed into a blockchain, and the servers are nodes on the blockchain.

[0039] The data processing method provided in the embodiments of the present application can be applied to data processing devices with data processing capabilities, such as terminal devices and servers. Among them, the terminal device can specifically be a mobile phone, a computer, an intelligent voice interaction device, a smart home appliance, a vehicle terminal, an aircraft, etc., but is not limited to this; the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services. The terminal device and the server can be directly or indirectly connected via wired or wireless communication, and this application does not limit this. The embodiments of the present invention can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, assisted driving, etc.

[0040] Among them, Intelligent Traffic System (ITS), also known as Intelligent Transportation System (ITS), is the effective and comprehensive application of advanced science and technology (information technology, computer technology, data communication technology, sensor technology, electronic control technology, automatic control theory, operations research, artificial intelligence, etc.) to transportation, service control and vehicle manufacturing, strengthening the connection between vehicles, roads and users, thus forming a comprehensive transportation system that ensures safety, improves efficiency, improves the environment and saves energy. Or;

[0041] Intelligent Vehicle Infrastructure Cooperative Systems (IVICS), referred to as IVICS, is a development direction of Intelligent Transportation Systems (ITS). IVICS uses advanced wireless communications and new generation Internet technologies to implement all-round dynamic real-time information interaction between vehicles and roads, and conducts active vehicle safety control and road cooperative management based on the collection and integration of dynamic traffic information in all time and space, fully realizing the effective coordination of people, vehicles and roads, ensuring traffic safety, and improving traffic efficiency, thus forming a safe, efficient and environmentally friendly road traffic system.

[0042] In the embodiments of the present application, the main autonomous driving technologies involved include behavioral decision-making, etc., by which the autonomous driving vehicle shoots the image to be detected and determines the distance between the object in the image to be detected and the vehicle, thereby improving the safety of vehicle driving.

[0043] In order to facilitate understanding of the technical solution of the present application, the data processing method provided in the embodiment of the present application is introduced below in combination with actual application scenarios, taking the vehicle-mounted terminal as the data processing device.

[0044] See also Figure 1 , which is a schematic diagram of an application scenario of a data processing method provided in an embodiment of the present application. Figure 1 In the application scenario shown, the autonomous driving vehicle (the vehicle itself) follows the vehicle in front on the road, and the vehicle itself is equipped with a vehicle-mounted terminal 100 and a camera 200 .

[0045] The camera 200 captures the road image in front of the vehicle and sends the road image in front as an image to be detected to the vehicle-mounted terminal 100 so that the distance between the vehicle and the preceding vehicle can be determined through the vehicle-mounted terminal 100 .

[0046] The vehicle terminal 100 includes a neural network model for determining the depth of the preceding vehicle. The neural network model includes two encoders and two decoders. Each encoder includes five encoding units (such as F 00 、F 10 、F 20 、F 30 and F 40 ), each decoder includes 5 decoding units (such as F 03 、F 13 、F 23 、F 33 and F 43 ), the following is the third encoding unit of the second encoder (i.e. F 22 ) as an example to illustrate the internal structure of the neural network.

[0047] Output the third encoding unit of the first encoder (i.e. F 20 ) semantic features, the third decoding unit of the first decoder (i.e., F 21 ) output semantic information and the second encoding unit of the second encoder (i.e., F 12 ) is input to the third encoding unit of the second encoder, and the third encoding unit of the second encoder can output the semantic feature, which is used as the fourth encoding unit of the second encoder (i.e., F 32 ) and the third decoding unit of the second decoder (i.e., F 23 ). It can be seen that the input and output of the third encoding unit of the second encoder are diversified, increasing the number of paths inside the neural network.

[0048] The semantic information output by the second decoder of the neural network model is used to determine the depth of each pixel in the image to be detected, and then the depth of the object in the image to be detected, that is, the depth of the front vehicle, is determined. In this way, the distance between the vehicle and the front vehicle can be determined by the depth of the front vehicle.

[0049] Therefore, after the image to be detected is input into the neural network model, the two sets of encoder-decoder structures can fully increase the number of paths inside the neural network to improve the information flow in the neural network, fully integrate the semantic information and spatial information in the image to be detected, and improve the accuracy of the neural network model in estimating the depth, thereby improving the accuracy of depth recognition of objects in the image to be detected.

[0050] In conjunction with the accompanying drawings, a data processing method provided in an embodiment of the present application is introduced below using a server as a data processing device.

[0051] See also Figure 2 , which is a flow chart of a data processing method provided in an embodiment of the present application. Figure 2 As shown, the data processing method includes the following steps:

[0052] S201: Acquire an image to be detected.

[0053] After collecting the image to be detected, the autonomous driving vehicle can upload the image to be detected to a server (such as a cloud server) through the vehicle-mounted terminal, and use the server to determine the distance between the object in the image to be detected and the vehicle.

[0054] S202: Input the image to be detected into a neural network model including I encoders and I decoders, and determine the depth of each pixel in the image to be detected through the semantic information output by the Ith decoder of the neural network model.

[0055] The neural network model is described below. The neural network includes multiple sets of encoder-decoder structures. Among them, in the encoder-decoder structure, the encoder itself is a series of convolutional networks. The network is mainly composed of convolutional layers, pooling layers, and batch normalization layers (BN). The convolutional layer is responsible for obtaining the local features of the image, the pooling layer downsamples the image and transmits the scale-invariant features to the next layer, and the BN mainly normalizes the distribution of the training image to accelerate learning. In general, the encoder classifies and analyzes the low-level local pixel values ​​of the image to obtain high-order semantic information. The decoder upsamples the reduced feature image and then performs convolution processing on the upsampled image, with the aim of perfecting the geometric shape of the object and compensating for the loss of details caused by the reduction of the object by the pooling layer in the encoder.

[0056] The neural network model includes I encoders and I decoders, where I is an integer greater than 1, that is, the neural network model includes multiple sets of encoder-decoder structures. The encoder is used to extract the semantic features of the image to be detected, the decoder input is the semantic features of the image to be detected, and the output is the semantic information of the image to be detected, such as a text sequence of unfixed length.

[0057] In the network structure similar to a rack included in the neural network model, from left to right, the first column is the first encoder, the second column is the first decoder, the third column is the second encoder, the fourth column is the second decoder, and so on, the second to last column is the I encoder, and the first to last column is the I decoder. Each encoder includes N encoding units, and each decoder includes N decoding units, where N is an integer greater than 1. Counting from top to bottom, the first row of the first column is the first encoding unit of the first encoder, the second row of the first column is the second encoding unit of the first encoder, and so on, the first to last row of the first to last column is the Nth decoding unit of the I decoder.

[0058] Taking the nth encoding unit of the ith encoder as an example, its input is the semantic features output by the nth encoding unit of the i-1th encoder, the semantic information output by the nth decoding unit of the i-1th decoder, and the semantic features output by the n-1th encoding unit of the ith encoder. The nth encoding unit of the ith encoder can output semantic features, which can be input to the n+1th encoding unit of the ith encoder and the nth decoding unit of the ith decoder. Wherein, i is a positive integer less than or equal to I, and n is a positive integer less than or equal to N. Thus, the image to be detected is input into a neural network including multiple sets of encoder-decoder structures, and the semantic information output by the ith decoder (i.e., the last column) of the neural network can determine the depth of each pixel in the image to be detected.

[0059] The second to the first encoders can not only take the semantic information output by the decoder in the previous column as input, but also the semantic features output by the previous encoder as input. Compared with the neural network that only uses one set of encoder-decoder structure, the neural network with multiple sets of cascaded encoder-decoder structures has more paths inside, which can improve the information flow in the neural network, fully integrate the semantic information and spatial information in the image to be detected, improve the accuracy of the neural network model in estimating the depth, and thus improve the accuracy of the depth recognition of objects in the image to be detected.

[0060] S203: Determine the depth of the object in the image to be detected according to the depth of each pixel in the image to be detected.

[0061] Since an object is generally located in an area of ​​the image to be detected, the depth of the pixel points corresponding to an object is not much different. Therefore, the depth of each pixel point in the image to be detected can be used to determine whether the image to be detected includes an object, how many objects are included, and the depth corresponding to each object. Then the distance between the camera and the photographed object is further determined. Thus, the depth of the object included in the image to be detected is determined according to the depth of each pixel point in the image to be detected. Then, the distance between the camera that shoots the image to be detected and the object included in the image to be detected can be determined according to the depth of the object.

[0062] It can be seen from the above technical solution that the acquired image to be detected is input into the neural network model, which includes I encoders and I decoders, each encoder includes N units, and each decoder includes N decoding units. Taking the nth encoding unit of the i-th encoder as an example, its input is the semantic features output by the nth encoding unit of the i-1th encoder, the semantic information output by the nth decoding unit of the i-1th decoder, and the semantic features output by the n-1th encoding unit of the i-th encoder. The output semantic features will be used as the input of the n+1th encoding unit of the i-th encoder and the nth decoding unit of the i-th decoder until the i-th decoder outputs semantic information, and the depth of each pixel in the image to be detected is determined according to the semantic information output by the i-th decoder, thereby determining the depth of the object included in the image to be detected. Thus, the number of paths inside the neural network is increased by I groups of encoders and decoders to improve the information flow in the neural network, fully integrate the semantic information and spatial information in the image to be detected, improve the accuracy of the neural network model in estimating the depth, and thus improve the accuracy of the depth recognition of the object in the image to be detected.

[0063] As a possible implementation, the encoder can rely on the basic network to extract multi-resolution semantic features, that is, the resolutions of the semantic features output by different encoding units are different. By extracting multi-scale features through different encoding units and taking the multi-scale features as input, the accuracy of the neural network model in estimating depth can be further improved later. As a possible implementation, N can be 5, that is, each encoder includes 5 encoding units, and the resolutions of the semantic features output by the 5 encoding units are 1 / 1, 1 / 2, 1 / 4, 1 / 8 and 1 / 16 of the original image, respectively. For example, the resolution of the semantic features output by the third encoding unit of the first encoder is 1 / 4 of the original image.

[0064] The embodiments of the present application do not specifically limit the basic network. For example, the basic network may include one or more layers of convolutional networks for deep sensing information flow. Furthermore, the basic network can adopt different convolutional neural network frameworks, such as 18 layers of residual networks with weights (ResNet-18), etc. As another example, the basic network can also be a large model with better performance to further improve the feature extraction capability, thereby improving the performance of the neural network model. As another example, the basic network can also use lightweight neural network structures (such as MobileNet, etc.) and parameter sharing to achieve lightweight models, so that the neural network model provided in the embodiments of the present application can be better deployed to expand the scope of application.

[0065] As a possible implementation method, the resolutions of the semantic features output by different encoding units are different. The following is an example in which the resolution of the semantic features output by the j-th encoding unit of the I-th encoder is consistent with the resolution of the image to be detected, where j is a positive integer less than or equal to I.

[0066] The neural network model also includes a deep convolution layer for extracting the depth of each pixel. The input of the deep convolution layer is the semantic information output by the jth decoding unit of the Ith decoder, and the output of the deep convolution layer is the depth of each pixel in the image to be detected. Among them, the input of the jth decoding unit of the Ith decoder is the semantic information output by the jth decoding unit of the Ith decoder and the semantic features output by the jth encoding unit of the Ith encoder, that is, the jth decoding unit of the Ith decoder can learn the features of the image to be detected at different resolutions, so that the depth of each pixel determined by the deep convolution layer is more accurate, which improves the robustness of the neural network model in processing images of different resolutions.

[0067] As a possible implementation, the resolution of the semantic features output by the first coding unit of the first encoder is consistent with the resolution of the image to be detected, and in the network structure similar to a rack included in the neural network model, the resolutions of the semantic features output by different coding units decrease from top to bottom, that is, the resolution of the semantic features output by the n-1th coding unit is greater than the resolution of the semantic features output by the nth coding unit. Therefore, compared with enlarging the image to be detected, reducing the annotation amount of the image to be detected is more convenient and less time-consuming, thereby improving the robustness of the neural network model while being simpler and less time-consuming.

[0068] It should be noted that the depth convolution layer can be 0-3 layers, which are used to output the depth of each pixel in the image to be detected corresponding to different resolutions.

[0069] Furthermore, when training the neural network model, the neural network model to be trained also includes N-1 deep convolutional layers, and the first N-1 decoding units included in the I-th decoder correspond to one deep convolutional layer respectively. Figure 3 Provide explanation.

[0070] See also Figure 3 , which is a schematic diagram of a neural network model provided in an embodiment of the present application. The neural network includes two sets of encoder-decoder structures, each encoder includes 5 encoding units, each decoder includes 5 decoding units, wherein the first 4 decoding units of the second decoder correspond to a deep convolutional layer respectively.

[0071] For example, taking the first encoder as an example, the image to be detected is input into the neural network model, and the first encoding unit of the first encoder (i.e., F 00 ) outputs a semantic feature with a resolution of 1 / 1 of the original image resolution. The second encoding unit of the first encoder (i.e., F 10 ) outputs a semantic feature resolution of 1 / 2 of the original image resolution. The third encoding unit of the first encoder (i.e., F 20 ) outputs a semantic feature with a resolution of 1 / 4 of the original image resolution. The fourth encoding unit of the first encoder (i.e., F 30 ) outputs a semantic feature resolution of 1 / 8 of the original image resolution. The fifth encoding unit of the first encoder (i.e., F 40 ) The resolution of the semantic features output is 1 / 16 of the original image resolution. The first four decoding units included in the second decoder are connected to a deep neural network respectively.

[0072] exist Figure 3 In the figure, residual connections are used between columns (dashed arrows in the figure) to output different resolutions. The downward solid arrow represents downsampling, and the upward solid arrow represents upsampling.

[0073] Therefore, after the image to be detected is input into the neural network model, the semantic information output by the Ith decoder is input into the corresponding deep convolution layer. By setting different loss functions and gradient feedback for different deep convolution layers, the depth corresponding to the pixel point at each resolution is determined, so that the trained neural network model can recognize images of different resolutions, which is more in line with actual needs.

[0074] It should be noted that when training a neural network model, large-resolution images can also be used as input to improve the model's ability to extract structural information.

[0075] As a possible implementation, the neural network model also includes a feature fusion module, through which the features of different resolutions input to the encoding unit are fused. The feature fusion module includes a splicing layer, a weight layer, an adjustment layer, and a first fusion layer. See S401-S404 for details:

[0076] S401: For the nth coding unit of the ith encoder, the semantic features output by the nth coding unit of the i-1th encoder, the semantic information output by the nth decoding unit of the i-1th decoder, and the semantic features output by the n-1th coding unit of the ith encoder are input into a concatenation layer, and a concatenation feature including multiple parts is obtained through the concatenation layer.

[0077] Through the splicing layer, the low-resolution features and the upper-layer high-resolution features are spliced ​​to obtain splicing features including multiple parts.

[0078] S402: Input the concatenated features into the weight layer to determine the weight corresponding to each part.

[0079] Through the weight layer, the weight corresponding to each of the multiple parts included in the splicing feature can be determined.

[0080] S403: Through the adjustment layer, each feature in the concatenated feature is multiplied by the corresponding weight to obtain an adjusted feature.

[0081] S404: Input the adjusted features into the first fusion layer to obtain the first fusion features.

[0082] Therefore, through the feature fusion module, multi-scale features can be better fused to combine the semantic information and spatial information in the features, further improving the accuracy of the neural network model in determining the depth of each pixel in the image to be detected.

[0083] by Figure 3 The third encoding unit of the second encoder (i.e., F 22 ) as an example, F 20 The output semantic features, F 21 The output semantic information and F 12 The output semantic features are input to F 22 , through F 22 Can output semantic features. Figure 4 Please explain in detail.

[0084] See also Figure 4 , which is a schematic diagram of a feature fusion module provided in an embodiment of the present application. When the neural network model further includes a feature fusion module, F 20 The output semantic features, F 21 The output semantic information and F 12The output semantic features are input into the splicing layer, and the splicing features including three parts are obtained through the splicing layer. The splicing features are input into the weight layer to determine the weights corresponding to each of the three parts. Through the adjustment layer, each feature in the splicing features is multiplied by the corresponding weight to obtain the adjusted features. The adjusted features are input into the first fusion layer to obtain the first fusion features.

[0085] It should be noted that the first fusion layer is a 1×1 convolution. The first fusion feature obtained is input into the corresponding encoding unit, that is, F 22 , through F 22 Capable of outputting semantic features.

[0086] It should be noted that the weight layer can further include a convolutional layer, a fully connected layer, and a normalized exponential function (softmax) layer to solve the weight of each part.

[0087] As a possible implementation, the neural network may further include a basic module, through which features of different resolutions input to the decoding unit are fused. Specifically, the semantic features output by the nth encoding unit of the i-th encoder and the semantic information output by the n+1th decoding unit of the i-th decoder are input into the basic module, and a second fused feature is obtained through the basic module so as to be input into the nth decoding unit of the i-th decoder.

[0088] The embodiments of the present application do not specifically limit the basic module, and two methods are used as examples for explanation below.

[0089] Method 1: The basic module includes the second fusion layer, the first convolution layer, the first batch processing layer, the third fusion layer and the first activation layer.

[0090] It should be noted that the second fusion layer is used to fuse features of different resolutions, the first convolution layer is used to extract features, the first batch of processing layers is used to normalize features, the third fusion layer is used to fuse different features, and the first activation layer is used to increase the differences between features in order to further improve generalization. Figure 5 Provide explanation.

[0091] See also Figure 5 , which is a schematic diagram of a basic module provided by an embodiment of the present application. The semantic features (such as Figure 5 ), and the semantic information output by the n+1th decoding unit of the ith decoder (as shown in Figure 5The vertical input shown in the figure is input into the second fusion layer, the features of different resolutions are fused through the second fusion layer to obtain the second fused sub-feature, the second fused sub-feature is sequentially input into the first convolution layer and the first batch of processing layers to obtain the first extracted feature, the first extracted feature and the second fused sub-feature are sequentially input into the third fusion layer and the first activation layer to obtain the second fused feature, so that the second fused feature is input into the nth decoding unit of the ith decoder.

[0092] Method 2: The basic module includes the second fusion layer, the first convolution layer, the first batch processing layer, the second activation layer, the second convolution layer, the second batch processing layer, the third fusion layer and the first activation layer.

[0093] It should be noted that the weights of the first convolutional layer are different from those of the second convolutional layer, so that the learned features can be further adjusted through different weights. The second activation layer is used to increase the difference between features, so as to further improve the generalization. The second convolutional layer is used to extract features, and the second batch layer is used to normalize the features. Figure 6 Provide explanation.

[0094] See also Figure 6 , which is a schematic diagram of a basic module provided by an embodiment of the present application. The semantic features (such as Figure 5 ), and the semantic information output by the n+1th decoding unit of the ith decoder (as shown in Figure 5 The vertical input shown in the figure is input into the second fusion layer, the features of different resolutions are fused through the second fusion layer to obtain the second fused sub-feature, the second fused sub-feature is sequentially input into the first convolution layer and the first batch processing layer to obtain the first extracted feature, the first extracted feature is sequentially input into the second activation layer, the second convolution layer and the second batch processing layer to obtain the second extracted feature, the second extracted feature and the second fused sub-feature are sequentially input into the third fusion layer and the first activation layer to obtain the second fused feature, so that the second fused feature is input into the nth decoding unit of the ith decoder.

[0095] As a possible implementation, in the process of training the neural network, a posture estimation model with 6 first-level convolution channels can be used for training. This is described in detail below.

[0096] The images of two adjacent frames are input into the posture estimation model. Through the posture estimation network, a single 6-dof (dof is the degree of freedom, in addition to the three rotation angles, there are three position-related degrees of freedom, namely, up and down, front and back, and left and right) relative posture or rotation and translation parameters can be predicted, or the posture difference between two adjacent frames. Then, the two adjacent frames are respectively input into the neural network model to be trained, and the depth of each pixel point of each frame image is obtained respectively, and then the depth difference of each pixel point in the two adjacent frames is obtained. The neural network model to be trained is optimized according to the depth difference and posture difference, and then the neural network model is obtained. For example, if the depth difference and posture difference do not match (such as the depth difference is small and the posture difference is large), the neural network to be trained needs to be adjusted.

[0097] It should be noted that for the use of the pose estimation model, it can be built on top of ResNet-18, and the first-level convolution channels are changed from 3 to 6 to allow adjacent frames to be fed into the network. Correspondingly, the output of the pose estimation model is the relative pose parameterized by a 6-dof vector. Among them, the first three dimensions represent the translation vector and the last three dimensions represent the Euler angles.

[0098] The following uses the KITTI2015 dataset to train a neural network model. The KITTI dataset is currently the world's largest dataset for evaluating computer vision algorithms in autonomous driving scenarios. This dataset is used to evaluate the performance of computer vision technologies such as stereo, optical flow, visual odometry, and 3D object detection in vehicle environments. KITTI contains real image data collected in urban, rural, and highway scenes, with up to 15 vehicles and 30 pedestrians in each image, as well as various degrees of occlusion and truncation.

[0099] The scheme can be used to train the model using the video sequences included in the KITTI2015 dataset, by training an architecture based on a self-supervised loss function on a series of moving image sequences (including monocular and binocular). The model architecture includes two models, a neural network model to determine the depth of each pixel in the monocular image, and a pose estimation model to determine the pose between adjacent frames. This method does not require annotated training datasets. Instead, it uses the reprojection relationship between consecutive time frames and poses in the image sequence for training.

[0100] The training is performed using the reprojection relationship between the continuous time frames and the postures in the image sequence. The remapping loss function is obtained by inputting a video, assuming that the target image is located in the tth frame, and using the tth frame as the input of the neural network model to obtain the depth D of each pixel in the target image.t Then, the t′th frame (t+1 frame or t-1 frame) adjacent to the tth frame is input into the posture estimation model to obtain the camera movement trajectory T t→t′ . Knowing that the camera intrinsic parameters are K, the reconstruction process starts by calculating the transformation matrix from the adjacent frames (frame t+1 or frame t-1) using the pose estimation model. The information of rotation and translation is then used to calculate the mapping from the adjacent frames to the target frame. Finally, the depth map of the target image predicted from the neural network model and the matrix converted from the pose estimation model are projected into the camera with the intrinsic parameter matrix to obtain the reconstructed target image. This process requires first converting the depth map into a 3D point cloud, converting the 3D point cloud to another coordinate system, and then using the camera intrinsic parameters to convert the 3D points into 2D points. The resulting 2D points are used as a sampling grid for bilinear interpolation from the target image. The loss function L p It is a similarity loss function based on the target image and the reconstructed target image, which is specifically expressed as follows:

[0101]

[0102] I t′→t =I t′ 〈proj(D t ,T t→t′ ,K)>

[0103] Where pe is the optical reconstruction loss, such as the L1 distance in pixel space. t is the target image, I t′ is the source image. proj() is the mapping depth D t in I t′ The corresponding 2D coordinate results. <> represents the sampling operation. And to simplify the annotation, the intrinsic parameter matrix values ​​of all images are considered equal here. The model uses bilinear interpolation to sample the source image. At the same time, the model uses the L1 norm loss function (used to minimize the sum of the absolute difference between the target value and the estimated value) and the SSIM loss function (used to compare the similarity of two images in three dimensions of brightness, contrast and structure) to form the final remapping loss function, which is specifically expressed as follows:

[0104]

[0105] Among them, α = 0.85. The purpose of the remapping loss function is to reduce the difference between the target image and the reconstructed target image, in which both the pose estimation model and the neural network model estimation process need to use it.

[0106] Because the model assumes that the camera moves in a static scene (e.g., a static scene), the final reprojection error is multiplied by a mask that accounts for issues related to static scene changes. In particular, an object is moving at a similar speed to the camera, or the camera is stopped while other objects are moving, that is, objects that are stationary in the camera coordinate system. These relatively stationary objects should theoretically have infinite depth. This scheme solves this problem using an automatic masking method that filters out pixels that move synchronously with the camera. The mask is binary and is 1 if the minimum photometric error between the target image and the reconstructed target image is less than the minimum photometric error between the target image and the source image, and 0 otherwise. When the camera is stationary, this method will mask all pixels in the image (a probability that is very low in real scenes). When the object moves at the same speed as the camera, it will cause the pixels of stationary objects in the image to be masked.

[0107] Therefore, the model uses μ to include the pixels where the remapping loss between the target image and its mapped image is less than the remapping loss between the target image and the source image, as follows:

[0108]

[0109] Among them, [] is the Iverson bracket to prevent the camera and the other object from moving at similar speeds. At the same time, the scheme merges the losses of each scale together. The lower resolution depth map is upsampled to the higher input image resolution, and then reprojected, resampled and the photometric error is calculated at the higher input resolution. This allows the depth maps at each scale to achieve the same goal, that is, accurate high-resolution reconstruction of the target image. An edge-sensitive smoothness loss between the input / target images is then added. This encourages the model to learn sharp edges and eliminate noise, as follows:

[0110]

[0111] L=μL p +γL S

[0112] Among them, L S is the smoothness loss, L p is the remapping loss, L is the final loss function, Partial differentials for depth and RGB (red, green, blue) images, represents the image depth at time t, Partial differentials for depth and RGB (red, green, blue) images, represents a matrix, whose exponential operation is element-by-element operation, and γ is the weight of the smoothness loss, which is a hyperparameter. For example, it can be 1×10- 3 .

[0113] Next, Figure 3 Taking the neural network shown in FIG. 1 as an example, the training and use of the neural network are illustrated using images in the KITTI2015 dataset.

[0114] The training process is first explained below.

[0115] The KITTI2015 dataset is divided into a training set and a test set using Eigen (an open source template library). For each image in the training set, the same camera intrinsic parameter K is used, and the camera's principal point is set to the average of the image center and focal length for all images. Each image will be adjusted to a fixed size, and the resolution of the image in the embodiment of the present application is adjusted to 196*640.

[0116] In the construction of the training set, for each data, not only the current image is saved, but also its previous and next frame images are input for the calculation of the reprojection loss function, and the current image is scaled to 1 / 2, 1 / 4, 1 / 8 and 1 / 16 in size to enhance the robustness of the model using multi-resolution losses.

[0117] The ResNet-18 network pre-trained on the ImageNet dataset (a large-scale hierarchical image database) extracts multi-scale features of the input image and uses it as the encoder of the neural network model. Among them, the posture estimation model and the neural network model are trained for 20 cycles, the batch size is 12, the initial learning rate is 1e-3 and decays to 1e-4 after 15 cycles. The trained neural network model is obtained through the above-mentioned training method.

[0118] After explaining the training process, the testing process is explained.

[0119] In the test part, the similarity between the depth and the true depth label is compared, and the results are calculated under multiple indicators, such as absolute relative error (abs_rel), square relative error (sq_rel), root mean square error (rmse), logarithmic root mean square error (rmse_log), accuracy (a1, a2, a3), etc. One or more combinations. The specific formula is as follows:

[0120]

[0121]

[0122]

[0123]

[0124] Accuracy:

[0125] Where N is the total number of pixels, D i is the depth of the ith pixel, is the true depth corresponding to the i-th pixel. T is the threshold. This embodiment uses three thresholds: 1.25 (a1), 1.25 2 (a2), 1.25 3 (a3).

[0126] The comparison of the test results of this embodiment with the test results of the Monodepth2 method is shown in Table 1.

[0127] Table 1

[0128] model abs_rel sq_rel rmse rmse_log a1 a2 a3 MonoDepth2 0.115 0.903 4.863 0.193 0.877 0.959 0.981 This embodiment 0.108 0.829 4.747 0.188 0.884 0.960 0.983

[0129] It should be noted that the smaller the value of abs_rel, sq_rel, rmse and rmse_log, the better the model effect. The larger the value of a1, a2 and a3, the better the model effect. It can be seen that for the KITTI2015 test set, the test results of this embodiment are greatly improved compared with the Monodepth2 model.

[0130] Therefore, the embodiments of the present application use multiple sets of encoder-decoder structures and feature fusion modules to allow the neural network model to automatically learn from unlabeled video sequence data through self-supervised learning and achieve performance improvement. Due to better extraction of image semantic information and better fusion of multi-resolution features, the outline of objects in the test set visualization is clearer, such as Figure 7 shown.

[0131] In view of the data processing method provided in the above embodiment, the embodiment of the present application also provides a data processing device.

[0132] See also Figure 8 , which is a schematic diagram of a data processing device provided in an embodiment of the present application. The data processing device 800 includes: an acquisition unit 801, a neural network model unit 802 and a determination unit 803;

[0133] The acquisition unit 801 is used to acquire the image to be detected;

[0134] The neural network model unit 802 is used to input the image to be detected into a neural network model including I encoders and I decoders, and determine the depth of each pixel in the image to be detected by the semantic information output by the I decoder of the neural network model; wherein each encoder includes N encoding units, each decoder includes N decoding units, the input of the nth encoding unit of the ith encoder is the semantic feature output by the nth encoding unit of the i-1th encoder, the semantic information output by the nth decoding unit of the i-1th decoder and the semantic feature output by the n-1th encoding unit of the ith encoder, the semantic feature output by the nth encoding unit of the ith encoder is input to the n+1th encoding unit of the ith encoder and the nth decoding unit of the ith decoder, the I and the N are integers greater than 1, the i is a positive integer less than or equal to the I, and the n is a positive integer less than or equal to the N;

[0135] The determining unit 803 is used to determine the depth of the object included in the image to be detected according to the depth of each pixel in the image to be detected.

[0136] As a possible implementation, the neural network model further includes a deep convolution layer, and the neural network model unit 802 is used to:

[0137] The semantic information output by the jth decoding unit of the Ith decoder of the neural network model is input into the deep convolution layer, and the depth of each pixel in the image to be detected is determined by the deep convolution layer; wherein, the input of the jth decoding unit of the Ith decoder is the semantic information output by the jth decoding unit of the Ith decoder and the semantic features output by the jth encoding unit of the Ith encoder, the resolution of the semantic features output by the jth encoding unit of the Ith encoder is consistent with the resolution of the image to be detected, and j is a positive integer less than or equal to I.

[0138] As a possible implementation, the neural network model further includes a fusion feature module, the fusion feature module includes a splicing layer, a weight layer, an adjustment layer and a first fusion layer, and the device further includes a first fusion unit for:

[0139] Inputting the semantic features output by the n-th encoding unit of the i-1-th encoder, the semantic information output by the n-th decoding unit of the i-1-th decoder, and the semantic features output by the n-1-th encoding unit of the i-th encoder into the concatenation layer, and obtaining a concatenation feature including multiple parts through the concatenation layer;

[0140] Input the splicing features into the weight layer to determine the weight corresponding to each part;

[0141] Through the adjustment layer, each feature in the spliced ​​features is multiplied by the corresponding weight to obtain an adjusted feature;

[0142] The adjusted features are input into the first fusion layer to obtain first fusion features so as to be input into the nth encoding unit of the i-th encoder.

[0143] As a possible implementation, the neural network further includes a basic module, and the device further includes a second fusion unit, which is used to:

[0144] The semantic features output by the nth encoding unit of the i-th encoder and the semantic information output by the n+1th decoding unit of the i-th decoder are input into the basic module, and the second fusion features are obtained through the basic module so as to be input into the nth decoding unit of the i-th decoder.

[0145] As a possible implementation, the basic module includes a second fusion layer, a first convolution layer, a first batch processing layer, a third fusion layer and a first activation layer, and the second fusion unit is used to:

[0146] Inputting the semantic features output by the n-th encoding unit of the ith encoder and the semantic information output by the n+1-th decoding unit of the ith decoder into the second fusion layer, and obtaining a second fusion sub-feature through the second fusion layer;

[0147] Inputting the second fused sub-feature into the first convolutional layer, and obtaining a first extracted feature through the first convolutional layer and the first batch of processing layers;

[0148] The first extracted feature and the second fused sub-feature are input into the third fusion layer, and a second fused feature is obtained through the third fusion layer and the first activation layer.

[0149] As a possible implementation, the basic module includes a second fusion layer, a first convolution layer, a first batch processing layer, a second activation layer, a second convolution layer, a second batch processing layer, a third fusion layer and a first activation layer, the weight of the first convolution layer is different from the weight of the second convolution layer, and the second fusion unit is used to:

[0150] Inputting the semantic features output by the n-th encoding unit of the ith encoder and the semantic information output by the n+1-th decoding unit of the ith decoder into the second fusion layer, and obtaining a second fusion sub-feature through the second fusion layer;

[0151] Inputting the second fused sub-feature into the first convolutional layer, and obtaining a first extracted feature through the first convolutional layer and the first batch of processing layers;

[0152] Inputting the first extracted features into the second activation layer, and obtaining second extracted features through the second activation layer, the second convolutional layer and the second batch processing layer;

[0153] The second extracted feature and the second fused sub-feature are input into the third fusion layer, and a second fused feature is obtained through the third fusion layer and the first activation layer.

[0154] As a possible implementation manner, the device further includes a training unit, which is used to:

[0155] The neural network model is trained by a posture estimation model with 6 first-stage convolution channels.

[0156] It can be seen from the above technical solution that the acquired image to be detected is input into the neural network model, which includes I encoders and I decoders, each encoder includes N units, and each decoder includes N decoding units. Taking the nth encoding unit of the i-th encoder as an example, its input is the semantic features output by the nth encoding unit of the i-1th encoder, the semantic information output by the nth decoding unit of the i-1th decoder, and the semantic features output by the n-1th encoding unit of the i-th encoder. The output semantic features will be used as the input of the n+1th encoding unit of the i-th encoder and the nth decoding unit of the i-th decoder until the i-th decoder outputs semantic information, and the depth of each pixel in the image to be detected is determined according to the semantic information output by the i-th decoder, thereby determining the depth of the object included in the image to be detected. Thus, the number of paths inside the neural network is increased by I groups of encoders and decoders to improve the information flow in the neural network, fully integrate the semantic information and spatial information in the image to be detected, improve the accuracy of the neural network model in estimating the depth, and thus improve the accuracy of the depth recognition of the object in the image to be detected.

[0157] The present application also provides a computer device, which is the computer device described above. The computer device may be a server or a terminal device. The data processing device described above may be built into the server or the terminal device. The computer device provided by the present application will be described from the perspective of hardware entity. Fig. 9 The following is a schematic diagram of the server structure. Fig.10 Shown is a schematic diagram of the structure of the terminal equipment.

[0158] See also Fig. 9, which is a schematic diagram of a server structure provided in an embodiment of the present application. The server 1400 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1422 and memory 1432, one or more application programs 1442 or storage media 1430 (such as one or more massive storage devices) for data 1444. Among them, the memory 1432 and the storage medium 1430 may be short-term storage or permanent storage. The program stored in the storage medium 1430 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the CPU 1422 may be configured to communicate with the storage medium 1430 to execute a series of instruction operations in the storage medium 1430 on the server 1400.

[0159] The server 1400 may also include one or more power supplies 1426, one or more wired or wireless network interfaces 1450, one or more input and output interfaces 1458, and / or one or more operating systems 1441, such as Windows Server 2003. TM , Mac OS X TM , Unix TM ,Linux TM , FreeBSD TM etc.

[0160] The steps performed by the server in the above embodiment can be based on the Fig. 9 The server structure shown.

[0161] The CPU 1422 is used to execute the following steps:

[0162] Acquire the image to be detected;

[0163] The image to be detected is input into a neural network model including I encoders and I decoders, and the depth of each pixel in the image to be detected is determined by the semantic information output by the I decoder of the neural network model; wherein each encoder includes N encoding units, each decoder includes N decoding units, the input of the nth encoding unit of the ith encoder is the semantic feature output by the nth encoding unit of the i-1th encoder, the semantic information output by the nth decoding unit of the i-1th decoder, and the semantic feature output by the n-1th encoding unit of the ith encoder, the semantic feature output by the nth encoding unit of the ith encoder is input to the n+1th encoding unit of the ith encoder and the nth decoding unit of the ith decoder, the I and the N are integers greater than 1, the i is a positive integer less than or equal to the I, and the n is a positive integer less than or equal to the N;

[0164] The depth of the object in the image to be detected is determined according to the depth of each pixel in the image to be detected.

[0165] Optionally, the CPU 1422 may also execute the method steps of any specific implementation of the data processing method in the embodiments of the present application.

[0166] See also Fig.10 , which is a structural diagram of a terminal device provided for an embodiment of the present application. Fig.10 The block diagram shows a partial structure of a smart phone related to a terminal device provided in an embodiment of the present application, and the smart phone includes: a radio frequency (RF) circuit 1510, a memory 1520, an input unit 1530, a display unit 1540, a sensor 1550, an audio circuit 1560, a wireless fidelity (WiFi) module 1570, a processor 1580, and a power supply 1590. Those skilled in the art can understand that Fig.10 The structure of the smartphone shown in the figure does not constitute a limitation of the smartphone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0167] Combine the following Fig.10 A detailed introduction to the various components of a smartphone:

[0168] The RF circuit 1510 may be used for receiving and sending signals during information transmission or calls. In particular, after receiving the downlink information from the base station, it is sent to the processor 1580 for processing; in addition, the designed uplink data is sent to the base station.

[0169] The memory 1520 may be used to store software programs and modules. The processor 1580 implements various functional applications and data processing of the smartphone by running the software programs and modules stored in the memory 1520 .

[0170] The input unit 1530 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the smartphone. Specifically, the input unit 1530 may include a touch panel 1531 and other input devices 1532. The touch panel 1531, also known as a touch screen, can collect user touch operations on or near it and drive the corresponding connection device according to a pre-set program. In addition to the touch panel 1531, the input unit 1530 may also include other input devices 1532. Specifically, other input devices 1532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.

[0171] The display unit 1540 may be used to display information input by the user or information provided to the user and various menus of the smartphone. The display unit 1540 may include a display panel 1541, and the display panel 1541 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0172] The smartphone may also include at least one sensor 1550, such as a light sensor, a motion sensor, and other sensors. As for other sensors that may be configured in the smartphone, such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., they will not be described in detail here.

[0173] The audio circuit 1560, the speaker 1561, and the microphone 1562 can provide an audio interface between the user and the smartphone. The audio circuit 1560 can transmit the received audio data to the speaker 1561 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 1562 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1560 and converted into audio data, and then the audio data is output to the processor 1580 for processing, and then sent to another smartphone through the RF circuit 1510, or the audio data is output to the memory 1520 for further processing.

[0174] The processor 1580 is the control center of the smartphone, and uses various interfaces and lines to connect various parts of the entire smartphone, and executes various functions of the smartphone and processes data by running or executing software programs and / or modules stored in the memory 1520, and calling data stored in the memory 1520. Optionally, the processor 1580 may include one or more processing units.

[0175] The smart phone also includes a power supply 1590 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 1580 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption management.

[0176] Although not shown, the smartphone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.

[0177] In the embodiment of the present application, the memory 1520 included in the smart phone can store program codes and transmit the program codes to the processor.

[0178] The processor 1580 included in the smart phone can execute the data processing method provided in the above embodiment according to the instructions in the program code.

[0179] An embodiment of the present application also provides a computer-readable storage medium for storing a computer program, wherein the computer program is used to execute the data processing method provided in the above embodiment.

[0180] The embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the data processing method provided in various optional implementations of the above aspects.

[0181] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the above program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the above storage medium can be at least one of the following media: read-only memory (English: Read-Only Memory, abbreviated: ROM), RAM, magnetic disk or optical disk, etc. Various media that can store program codes.

[0182] It should be noted that each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiments. The device and system embodiments described above are merely schematic, in which the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.

[0183] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a technician familiar with the technical field within the technical scope disclosed in the present application should be included in the protection scope of the present application. Based on the implementation methods provided in the above aspects, the present application can also be further combined to provide more implementation methods. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A data processing method, It is characterized in that The method comprises: Acquire the image to be detected; The image to be detected is input into a neural network model including I encoders and I decoders, and the depth of each pixel in the image to be detected is determined by the semantic information output by the I decoder of the neural network model; wherein each encoder includes N encoding units, each decoder includes N decoding units, the input of the nth encoding unit of the ith encoder is the semantic feature output by the nth encoding unit of the i-1th encoder, the semantic information output by the nth decoding unit of the i-1th decoder, and the semantic feature output by the n-1th encoding unit of the ith encoder, the semantic feature output by the nth encoding unit of the ith encoder is input to the n+1th encoding unit of the ith encoder and the nth decoding unit of the ith decoder, the I and the N are integers greater than 1, the i is a positive integer less than or equal to the I, and the n is a positive integer less than or equal to the N; The depth of the object in the image to be detected is determined according to the depth of each pixel in the image to be detected.

2. The method according to claim 1, It is characterized in that The neural network model further includes a deep convolution layer, and the semantic information output by the first decoder of the neural network model determines the depth of each pixel in the image to be detected, including: The semantic information output by the jth decoding unit of the Ith decoder of the neural network model is input into the deep convolution layer, and the depth of each pixel in the image to be detected is determined by the deep convolution layer; wherein, the input of the jth decoding unit of the Ith decoder is the semantic information output by the jth decoding unit of the Ith decoder and the semantic features output by the jth encoding unit of the Ith encoder, the resolution of the semantic features output by the jth encoding unit of the Ith encoder is consistent with the resolution of the image to be detected, and j is a positive integer less than or equal to I.

3. The method according to claim 1, It is characterized in that The neural network model further includes a fusion feature module, the fusion feature module includes a splicing layer, a weight layer, an adjustment layer and a first fusion layer, and the method further includes: Inputting the semantic features output by the n-th encoding unit of the i-1-th encoder, the semantic information output by the n-th decoding unit of the i-1-th decoder, and the semantic features output by the n-1-th encoding unit of the i-th encoder into the concatenation layer, and obtaining a concatenation feature including multiple parts through the concatenation layer; Input the splicing features into the weight layer to determine the weight corresponding to each part; Through the adjustment layer, each feature in the spliced ​​features is multiplied by the corresponding weight to obtain an adjusted feature; The adjusted features are input into the first fusion layer to obtain first fusion features so as to be input into the nth encoding unit of the i-th encoder.

4. The method according to claim 1, It is characterized in that The neural network further includes a basic module, and the method further includes: The semantic features output by the nth encoding unit of the i-th encoder and the semantic information output by the n+1th decoding unit of the i-th decoder are input into the basic module, and the second fusion features are obtained through the basic module so as to be input into the nth decoding unit of the i-th decoder.

5. The method according to claim 4, It is characterized in that The basic module includes a second fusion layer, a first convolution layer, a first batch processing layer, a third fusion layer and a first activation layer. The semantic features output by the nth encoding unit of the ith encoder and the semantic information output by the n+1th decoding unit of the ith decoder are input into the basic module, and the second fusion features are obtained through the basic module, including: Inputting the semantic features output by the n-th encoding unit of the ith encoder and the semantic information output by the n+1-th decoding unit of the ith decoder into the second fusion layer, and obtaining a second fusion sub-feature through the second fusion layer; Inputting the second fused sub-feature into the first convolutional layer, and obtaining a first extracted feature through the first convolutional layer and the first batch of processing layers; The first extracted feature and the second fused sub-feature are input into the third fusion layer, and a second fused feature is obtained through the third fusion layer and the first activation layer.

6. The method according to claim 4, It is characterized in that The basic module includes a second fusion layer, a first convolution layer, a first batch processing layer, a second activation layer, a second convolution layer, a second batch processing layer, a third fusion layer and a first activation layer, the weight of the first convolution layer is different from the weight of the second convolution layer, the semantic features output by the nth encoding unit of the ith encoder and the semantic information output by the n+1th decoding unit of the ith decoder are input into the basic module, and the second fusion features are obtained through the basic module, including: Inputting the semantic features output by the n-th encoding unit of the ith encoder and the semantic information output by the n+1-th decoding unit of the ith decoder into the second fusion layer, and obtaining a second fusion sub-feature through the second fusion layer; Inputting the second fused sub-feature into the first convolutional layer, and obtaining a first extracted feature through the first convolutional layer and the first batch of processing layers; Inputting the first extracted features into the second activation layer, and obtaining second extracted features through the second activation layer, the second convolutional layer and the second batch processing layer; The second extracted feature and the second fused sub-feature are input into the third fusion layer, and a second fused feature is obtained through the third fusion layer and the first activation layer.

7. The method according to any one of claims 1 to 6, It is characterized in that The method further comprises: The neural network model is trained by a posture estimation model with 6 first-stage convolution channels.

8. A data processing device, It is characterized in that The device comprises: an acquisition unit, a neural network model unit and a determination unit; The acquisition unit is used to acquire the image to be detected; The neural network model unit is used to input the image to be detected into a neural network model including I encoders and I decoders, and determine the depth of each pixel in the image to be detected by the semantic information output by the I decoder of the neural network model; wherein each encoder includes N encoding units, each decoder includes N decoding units, the input of the nth encoding unit of the ith encoder is the semantic feature output by the nth encoding unit of the i-1th encoder, the semantic information output by the nth decoding unit of the i-1th decoder and the semantic feature output by the n-1th encoding unit of the ith encoder, the semantic feature output by the nth encoding unit of the ith encoder is input to the n+1th encoding unit of the ith encoder and the nth decoding unit of the ith decoder, the I and the N are integers greater than 1, the i is a positive integer less than or equal to the I, and the n is a positive integer less than or equal to the N; The determining unit is used to determine the depth of the object included in the image to be detected according to the depth of each pixel point in the image to be detected.

9. A computer device, It is characterized in that The device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the method according to any one of claims 1 to 7 according to the instructions in the program code.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method according to any one of claims 1 to 7.