Image processing method and device, storage medium and electronic equipment
Through the tight coupling method of sharing encoder and instance segmentation decoder, feature maps and object instance information in the visual odometer system are extracted, and the problems of low computing efficiency and high resource occupation caused by parallel operation of the visual odometer system and the recognition module are solved. , improves the accuracy and robustness of the system and supports the execution of intelligent tasks.
Patent Information
- Application Number
- CN202411038814.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-15
AI Technical Summary
The parallel operation of the visual odometer system and the identification module leads to low computing efficiency and high resource utilization, and fails to achieve tight coupling between the system and the identification module.
A shared encoder is used to extract the feature map of the target image, and decode the feature map into object instance information through an instance segmentation decoder, determine the positioning posture and depth information based on the object instance information, and then estimate the motion information of the camera relative to the environment.
It improves computing efficiency, saves computing resources, improves the accuracy and robustness of the visual odometer system, can better cope with complex application scenarios, and support the execution of intelligent tasks.
Smart Images

Figure CN118967812A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and specifically to an image processing method, device, storage medium and electronic device. Background Art
[0002] With the vigorous development of robotics and artificial intelligence technology, unmanned ground vehicles, as one of the most representative products, have been widely used in industrial production, agricultural sowing and breeding, logistics, autonomous driving and other fields. Visual Odometry (VO) is one of the key technologies for realizing unmanned ground vehicles. It aims to help vehicles achieve autonomous positioning and navigation by analyzing the data collected by visual sensors.
[0003] At present, visual odometry systems and learning-based recognition modules (such as object detection, instance segmentation, etc.) usually run in parallel, and it is necessary to extract geometric features (such as pose information, depth information, etc.) and semantic features of the scene separately to complete geometric tasks and semantic recognition tasks respectively.
[0004] However, the parallel operation of the visual odometry system and the recognition module fails to achieve tight coupling between the system and the recognition module, resulting in low computational efficiency and high resource consumption. Summary of the invention
[0005] In view of this, the present application provides an image processing method, device, storage medium and electronic device, the main purpose of which is to improve the current technical problem that the parallel operation of the visual odometer system and the recognition module fails to achieve tight coupling between the system and the recognition module, resulting in low computing efficiency and high resource consumption.
[0006] In a first aspect, the present application provides an image processing method, comprising:
[0007] Get the target image captured by the camera;
[0008] Extracting a feature map corresponding to the target image using a shared encoder;
[0009] Decoding the feature map into object instance information by an instance segmentation decoder;
[0010] Based on the object instance information, respectively determine the pose information and depth information of the target image;
[0011] Motion information of the camera relative to an environment is estimated based on the position information and the depth information.
[0012] In a second aspect, the present application provides an image processing device, comprising:
[0013] An acquisition module is configured to acquire a target image captured by a camera;
[0014] An extraction module, configured to extract a feature map corresponding to the target image using a shared encoder;
[0015] A decoding module, configured to decode the feature map into object instance information through an instance segmentation decoder;
[0016] A determination module, configured to determine the pose information and depth information of the target image based on the object instance information;
[0017] The estimation module is configured to estimate the motion information of the camera relative to the environment based on the posture information and the depth information.
[0018] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method described in the first aspect is implemented.
[0019] In a fourth aspect, the present application provides an electronic device, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the method described in the first aspect when executing the computer program.
[0020] By means of the above technical scheme, the present application provides an image processing method, device, storage medium and electronic device, specifically, first obtain the target image captured by the camera; then use the shared encoder to extract the feature map corresponding to the target image; decode the feature map into object instance information through the instance segmentation decoder; determine the pose information and depth information of the target image based on the object instance information; and then estimate the motion information of the camera relative to the environment based on the pose information and depth information. By applying the technical scheme of the present application, the pose information and depth information of the target image are determined based on the feature map extracted by the shared encoder and the object instance information decoded by the instance segmentation decoder, and then the motion information of the camera relative to the environment is determined. Compared with the current prior art, the present application uses a shared decoder to achieve a tight coupling between the visual odometer system and the recognition module, reducing the cost required for calculation, effectively improving the calculation efficiency and saving calculation resources. Furthermore, the present application makes full use of the object instance information provided by the instance segmentation decoder in the recognition module, which can effectively help improve the accuracy, robustness and ability to cope with complex application scenarios of the visual odometer system, thereby supporting the execution of intelligent tasks.
[0021] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0023] 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0024] Figure 1 A schematic diagram of a process flow of an image processing method provided in an embodiment of the present application is shown;
[0025] Figure 2 A schematic diagram showing a flow chart of another image processing method provided in an embodiment of the present application is shown;
[0026] Figure 3 A schematic diagram of a process flow of an application example provided by an embodiment of the present application is shown;
[0027] Figure 4 A schematic diagram of a process flow of an application example provided by an embodiment of the present application is shown;
[0028] Figure 5 A schematic diagram showing an application example provided by an embodiment of the present application;
[0029] Figure 6 A schematic diagram showing an application example provided by an embodiment of the present application;
[0030] Figure 7 A schematic structural diagram of an image processing device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0031] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0032] In order to improve the current parallel operation mode of the visual odometer system and the recognition module, the system and the recognition module cannot be tightly coupled, resulting in low computing efficiency and high resource usage. This embodiment provides an image processing method, such as Figure 1 As shown, the method includes:
[0033] Step 101: Acquire a target image captured by a camera.
[0034] For example, the camera may be a camera configured on a carrier such as a robot, a drone, or a vehicle, and the target image is used to display the environment around the carrier, and may be an image in an image sequence of adjacent frames.
[0035] Step 102: Use a shared encoder to extract a feature map corresponding to the target image.
[0036] In some examples, a shared encoder can enable the model to share underlying features between multiple tasks, use the same encoder to extract these common features, generate the corresponding feature maps, and then use a specific task decoder to complete the final task, thereby reducing training time and resource consumption, while also improving the generalization ability of the model.
[0037] Step 103: decode the feature map into object instance information through an instance segmentation decoder.
[0038] Exemplarily, object instance information is prior information about scene objects, and may include the category of the object instance, the bounding box of the object instance, and the mask of the object instance, etc. The instance segmentation decoder may be responsible for converting the features extracted by the shared encoder into specific instance segmentation results, with the goal of classifying each pixel in the image and identifying semantic features such as the category of the object instance, the bounding box of the object instance, and the mask of the object instance.
[0039] Step 104: Based on the object instance information, determine the pose information and depth information of the target image respectively.
[0040] For example, the pose represents the position and posture of an object, and the pose information may be information obtained by estimating the pose of the target image, and may include translation information and rotation information of the object, etc. The depth information may be information obtained by predicting the depth of the target image, including the depth relationship between pixels in the target image.
[0041] In some embodiments, based on the object instance information, the geometric features of the target image can be obtained through a specific task decoder, for example, the pose information of the target image can be obtained through a pose decoder, and the depth information of the target image can be obtained through a depth decoder, etc. Using object instance information can effectively improve the accuracy of pose estimation and depth prediction.
[0042] Step 105: Estimate the motion information of the camera relative to the environment based on the position information and the depth information.
[0043] For example, visual odometry can estimate the position and orientation of a device in three-dimensional space by analyzing the relative motion between consecutive frames of images. Cameras as visual sensors can be used to estimate the motion information of carriers such as robots, drones, and vehicles relative to the environment.
[0044] In some examples, traditional visual odometer methods mostly achieve positioning based on low-level geometric features of the scene, which makes it difficult to cope with complex application scenarios and cannot support intelligent task execution. For example, in agricultural breeding scenarios, there are usually multiple dynamic factors (including animals, people, and other unmanned ground vehicles, etc.), and the breeding process needs to be detected and counted. This embodiment introduces a learning-based instance segmentation recognition module into the visual odometer. Through a high-level understanding of the scene, the odometer performance and the ability to perform intelligent tasks can be improved.
[0045] This embodiment determines the pose information and depth information of the target image based on the feature map extracted by the shared encoder and the object instance information decoded by the instance segmentation decoder, and then determines the motion information of the camera relative to the environment. Compared with the current existing technology, this embodiment uses a shared decoder to achieve a tight coupling between the visual odometer system and the recognition module, which reduces the cost required for calculation, can effectively improve computing efficiency, and save computing resources. Furthermore, this embodiment makes full use of the object instance information provided by the instance segmentation decoder in the recognition module, which can effectively help improve the accuracy, robustness and ability of the visual odometer system to cope with complex application scenarios, thereby supporting the execution of intelligent tasks.
[0046] Further, as a refinement and extension of the above embodiment, in order to fully illustrate the specific implementation process of the method of this embodiment, this embodiment provides the following Figure 2 The specific method shown includes:
[0047] Step 201: Acquire a target image captured by a camera.
[0048] For example, the camera on the carrier continuously collects images of the surrounding environment, which are then transmitted to the computer network for processing. The frequency of the camera collecting images is usually very high to ensure real-time performance.
[0049] Step 202: Analyze object instance information in the target image.
[0050] Optionally, step 202 may specifically include: extracting a feature map corresponding to the target image using a shared encoder; and decoding the feature map into object instance information using an instance segmentation decoder.
[0051] For example, Figure 3As shown, this embodiment proposes a self-supervised visual odometer method with scene object prior, including four modules: a shared encoder, a pose decoder, a depth decoder, and an instance segmentation decoder. The input image can be simultaneously input into the pose decoder, the depth decoder, and the instance segmentation decoder after being processed by the shared encoder. This embodiment uses the object instance information provided by the instance segmentation network as the prior information of the object and the scene, without the need to introduce additional network or label information, and implements an end-to-end multi-task network that can simultaneously complete the three tasks of pose estimation, depth prediction, and instance segmentation. A shared encoder is used to extract image features that can be used for multiple tasks of pose estimation, depth prediction, and instance segmentation. There is no need to distinguish between extractors for geometric features and semantic features, and the computational cost is lower, which can effectively save computing resources.
[0052] Step 203: Based on the object instance information, determine the pose information and depth information of the target image respectively.
[0053] Exemplarily, inputting the object instance information in this embodiment into the pose decoder and the depth decoder as prior information of the scene and the object can effectively improve the accuracy of pose estimation and depth prediction.
[0054] Optionally, step 203 may specifically include: determining potential dynamic areas in the target image based on object instance information; filtering features of the dynamic area to obtain a first image; and inputting the first image into a pose decoder based on a spatial attention mechanism to obtain pose information.
[0055] In some examples, the pose decoder can be used to decode the feature map output by the encoder into pose information between two adjacent frames. The pose decoder in this embodiment adds a spatial attention mechanism to learn the spatial distribution of dynamic objects and improve the accuracy of the output pose information.
[0056] For example, in the reasoning process of the pose estimation network, the output of the instance segmentation decoder can be used to determine the potential dynamic area, and the features of the corresponding area can be deleted. Then the processed image is sent to the pose decoder for reasoning to further reduce the impact of dynamic factors on pose estimation. This makes the visual odometer system more capable of dealing with dynamic scenes and has higher pose estimation accuracy.
[0057] Optionally, the method of this embodiment may further specifically include: using object instance information to correct a loss function corresponding to the image reconstruction loss generated by the pose decoder.
[0058] For example, during the training of the pose estimation network, the object instance information output by the instance segmentation decoder is used to correct the image reconstruction loss to obtain a more accurate supervision signal.
[0059] In some examples, scene prior information is used to determine potential dynamic areas, and the pose estimation network is guided to learn the distribution of dynamic objects by correcting the loss function. Dynamic features are pre-deleted in the prediction and reasoning stage to further improve the accuracy of pose estimation.
[0060] Optionally, the object instance information includes a mask of the object instance; accordingly, step 203 may further specifically include: cascading the mask into the feature map by channel through a depth decoder, and obtaining a depth feature map using a self-attention mechanism; determining depth information based on the depth feature map, the depth information including the depth relationship between pixels in the target image.
[0061] Exemplarily, the deep decoder can be used to decode the feature map output by the encoder into pixel-level depth information. The deep decoder can directly cascade the mask of the object instance output by the instance segmentation decoder into the deep feature by channel, and then use the self-attention mechanism to learn the deep relationship between pixels based on the explicit object instance information.
[0062] For example, Figure 4 As shown, five deconvolution modules (l = 0, 1, 2, 3, 4) can be used to construct a deep decoder, and the spatial resolution of the feature map output by module l is H / 2 4-l ×W / 2 4-l , where H and W are the length and width of the output depth map, respectively. The object instance mask output by the instance segmentation decoder can be directly cascaded into the multi-scale depth feature map (i.e., the feature map output by modules 0, 1, 2, and 3) by channel. The channel cascade operation is followed by the self-attention mechanism module to obtain the depth relationship between pixels in the target image.
[0063] In some examples, the depth prior information provided by the object instance information is used (that is, the pixel depths within the object instance are similar, while the pixel depths outside the object instance are far apart from those within the object instance). The object instance mask output by the instance segmentation decoder is directly cascaded to the depth feature, and the depth relationship between pixels is learned, which can effectively improve the accuracy of depth prediction.
[0064] Optionally, the object instance information also includes a bounding box of the object instance; the above-mentioned determining the depth information based on the depth feature map may specifically include: using a bounding box to divide the pixels of the depth feature map into one or more blocks; according to the mask, constructing a triplet in the block, the triplet including an anchor point, a positive pixel and a negative pixel, the positive pixel being a set of pixels within the mask, and the negative pixel being a set of pixels outside the mask; based on the triplet, determining the depth information.
[0065] Exemplarily, the object instance bounding box and mask output by the instance segmentation decoder can be used to construct a triplet. Specifically, the pixels of the image are first divided into multiple blocks according to the object instance bounding box output by the instance segmentation decoder; if the center point of the block is a point belonging to the object instance, the center point of the block can be used as the anchor point of the block; otherwise, the pixel point belonging to the object instance can be found by moving up, down, left and right, and used as the anchor point of the block; in each block, the pixel set within the mask is the positive pixel, and the pixel set outside the mask is the negative pixel; determining the anchor point, positive pixel, and negative pixel can form a triplet.
[0066] Optionally, the method of this embodiment may further specifically include: calculating the object instance-guided triplet loss based on the depth feature distance of pixels in the block; and optimizing the depth prediction network based on the triplet loss.
[0067] Exemplarily, the triplet loss guided by the object instance can be calculated and used as the supervisory information for the training of the deep prediction network to optimize the deep prediction network and improve the accuracy of the deep prediction network.
[0068] Optionally, the above-mentioned calculation of the object instance guided triplet loss based on the depth feature distance of pixels in the block includes: calculating the depth feature distance of the positive pixels and the depth feature distance of the negative pixels in each block based on the vector coordinates of the anchor point; and determining the triplet loss according to the depth feature distance of the positive pixels and the depth feature distance of the negative pixels in each block.
[0069] In some examples, calculating the instance-guided triplet loss may include: calculating the depth feature distance of positive pixels (i.e., pixels within the mask); calculating the depth feature distance of negative pixels (i.e., pixels outside the mask); calculating the difference between the depth feature distance of the positive pixels and the depth feature distance of the negative pixels in each block, which is the triplet loss. When the depth feature distance of the positive pixels is small and the depth feature distance of the negative pixels is large, the instance-guided triplet loss is small.
[0070] For example, the depth feature distance of positive pixels can be calculated by formula 1, the depth feature distance of negative pixels can be calculated by formula 2, and the final instance-guided triplet loss can be calculated by formula 3. i represents the i-th block in the image, P i + and P i - Respectively represent P i The positive pixel set and the negative pixel set in p ahr represents the anchor of the block, F(·) represents the depth feature corresponding to the pixel, and m is the boundary threshold, so that when the difference between the depth feature distance of the negative pixel and the depth feature distance of the positive pixel exceeds a certain threshold, it will no longer be optimized.
[0071]
[0072] Step 204: Estimate the motion information of the camera relative to the environment based on the position information and the depth information.
[0073] In some examples, by inputting an image sequence containing a target image into the network, the pose information between each adjacent frame in the image sequence, the depth information of each frame, and the object instance information contained in each frame can be obtained. Through this information, the motion information of the camera relative to the environment can be analyzed, where the motion information may include information such as the position, posture, and trajectory of the camera in the environment.
[0074] For example, taking SimVODIS and SimVODIS++, which are also for visual odometry systems, as examples, Table 1 shows the pose estimation performance of SimVODIS, SimVODIS++ and the method provided in this embodiment on the KITTI dataset, and Table 2 shows the depth prediction performance of SimVODIS, SimVODIS++ and the method provided in this embodiment on the KITTI dataset.
[0075] Table 1
[0076]
[0077]
[0078] Among them, Table 1 uses absolute trajectory error to evaluate the pose estimation performance, and the unit is m. 01, 02, ..., 10 in the test set are different data sequences of KITTIOdometry Benchmark.
[0079] Table 2
[0080]
[0081] Among them, Table 2 uses the classic Absolute Relative Difference (ARD), Squared Relative Difference (SRD), Root Mean Square Error (RMSE), RMSElog and three types of threshold indicators to evaluate the depth prediction performance. 1003, 092829, and 0930 in the test set are data sets collected on different dates in KITTI Raw Datasets.
[0082] The experimental data show that the method provided in this embodiment has better pose estimation and depth prediction accuracy than SimVODIS and SimVODIS++.
[0083] In some examples, Figure 5 and Figure 6 The global trajectory map and depth map estimated by SimVODIS, SimVODIS++ and the method provided in this embodiment are respectively shown, which more intuitively shows the advantages of the method provided in this embodiment over SimVODIS and SimVODIS++. Figure 5 It can be seen that the method provided in this embodiment can effectively improve the accuracy of pose estimation. It is worth noting that although the method provided in this embodiment still has a gap with the actual trajectory, especially at the corners, this is due to the limited data of a single visual sensor. In actual applications, other sensor data can be integrated to further improve the accuracy of the visual odometer. Figure 6 It can be seen that the method provided in this embodiment can effectively improve the depth prediction accuracy. Figure 6 As shown in (a), the depth map estimated by the method provided in this embodiment has clearer object instance boundaries; Figure 6 (b), 6(c), and 6(d), the method provided in this embodiment can more accurately estimate the depth of distant objects. Figure 6 In (a), 6(b), 6(c), and 6(d), the method provided in this embodiment is more accurate in estimating the sky depth.
[0084] For example, in practical applications such as unmanned vehicle navigation, autonomous drone flight, and robot exploration, the camera's motion information relative to the environment can be used as the basis for precise positioning and path planning. By continuously monitoring and updating the camera's position, the system can understand its own position and orientation in the environment, thereby achieving autonomous navigation.
[0085] Compared with the current existing technology, this embodiment uses a shared decoder to achieve a tight coupling between the visual odometer system and the recognition module, reducing the cost required for calculation, effectively improving the calculation efficiency, and saving calculation resources. Furthermore, this embodiment makes full use of the object instance information provided by the instance segmentation decoder in the recognition module, which can effectively help improve the accuracy and robustness of the visual odometer system and its ability to cope with complex application scenarios, thereby supporting the execution of intelligent tasks.
[0086] Further, as Figure 1 The specific implementation of the method shown in the embodiment provides an image processing device, such as Figure 7 As shown, the device includes: an acquisition module 31, an extraction module 32, a decoding module 33, a determination module 34, and an estimation module 35.
[0087] An acquisition module 31 is configured to acquire a target image captured by a camera;
[0088] An extraction module 32 is configured to extract a feature map corresponding to the target image using a shared encoder;
[0089] A decoding module 33, configured to decode the feature map into object instance information through an instance segmentation decoder;
[0090] A determination module 34 is configured to determine the pose information and depth information of the target image based on the object instance information;
[0091] The estimation module 35 is configured to estimate the motion information of the camera relative to the environment based on the posture information and the depth information.
[0092] In some examples, the determination module 34 is specifically configured to determine a potential dynamic area in the target image based on the object instance information; filter the features of the dynamic area to obtain a first image; and input the first image into a pose decoder based on a spatial attention mechanism to obtain the pose information.
[0093] In some examples, the determination module 34 is further specifically configured to use the object instance information to correct a loss function corresponding to the image reconstruction loss generated by the pose decoder.
[0094] In some examples, the object instance information includes a mask of the object instance; accordingly, the determination module 34 is further configured to cascade the mask into the feature map by channel through a depth decoder, and obtain a depth feature map using a self-attention mechanism; determine the depth information based on the depth feature map, and the depth information includes the depth relationship between pixels in the target image.
[0095] In some examples, the object instance information also includes a bounding box of the object instance; the determination module 34 is further configured to divide the pixels of the depth feature map into one or more blocks using the bounding box;
[0096] According to the mask, constructing a triplet in the block, the triplet comprising an anchor point, a positive pixel and a negative pixel, the positive pixel being a set of pixels within the mask, and the negative pixel being a set of pixels outside the mask;
[0097] Based on the triplet, the depth information is determined.
[0098] In some examples, the determination module 34 is further configured to calculate the object instance guided triplet loss based on the depth feature distance of the pixels in the block; and optimize the depth prediction network based on the triplet loss.
[0099] In some examples, the determination module 34 is specifically configured to calculate the depth feature distance of the positive pixels and the depth feature distance of the negative pixels in each block based on the vector coordinates of the anchor point; and determine the triplet loss according to the depth feature distance of the positive pixels and the depth feature distance of the negative pixels in each block.
[0100] Based on the above Figure 1 and Figure 2 The method shown in the embodiment also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned Figure 1 and Figure 2 The method shown.
[0101] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of the present application.
[0102] Based on the above Figure 1 and Figure 2 The method shown, and Figure 7 In order to achieve the above-mentioned purpose, the embodiment of the present application further provides an electronic device, which includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 1 and Figure 2 The method shown.
[0103] Optionally, the above-mentioned physical device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.
[0104] Those skilled in the art will appreciate that the above-mentioned physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different arrangements of components.
[0105] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the above-mentioned physical device, and supports the operation of the information processing program and other software and / or programs. The network communication module is used to realize the communication between the components inside the storage medium, and the communication with other hardware and software in the information processing physical device.
[0106] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus the necessary general hardware platform, or by hardware. By applying the solution of this embodiment, a shared decoder is used to achieve tight coupling between the visual odometer system and the recognition module, which reduces the cost required for calculation, can effectively improve computing efficiency, and save computing resources. Furthermore, this embodiment makes full use of the object instance information provided by the instance segmentation decoder in the recognition module, which can effectively help improve the accuracy, robustness and ability of the visual odometer system to cope with complex application scenarios, thereby supporting the execution of intelligent tasks.
[0107] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0108] The above is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to these embodiments herein, but will conform to the widest scope consistent with the principles and novel features applied for herein.
Claims
1. An image processing method, characterized in that: include: Get the target image captured by the camera; Extracting a feature map corresponding to the target image using a shared encoder; Decoding the feature map into object instance information by an instance segmentation decoder; Based on the object instance information, respectively determine the pose information and depth information of the target image; Motion information of the camera relative to an environment is estimated based on the position information and the depth information.
2. The method according to claim 1, characterized in that Determining the pose information of the target image based on the object instance information includes: Determining a potential dynamic region in a target image according to the object instance information; Performing filtering processing on the features of the dynamic area to obtain a first image; The first image is input into a pose decoder based on a spatial attention mechanism to obtain the pose information.
3. The method according to claim 2, characterized in that The method further comprises: The object instance information is used to correct a loss function corresponding to the image reconstruction loss generated by the pose decoder.
4. The method according to claim 1, characterized in that: The object instance information includes a mask of the object instance; Determining depth information of the target image based on the object instance information includes: The mask is cascaded to the feature map by channel through a deep decoder, and a deep feature map is obtained by using a self-attention mechanism; The depth information is determined according to the depth feature map, where the depth information includes a depth relationship between pixels in the target image.
5. The method according to claim 4, characterized in that The object instance information also includes a bounding box of the object instance; The determining the depth information according to the depth feature map includes: Dividing pixels of the depth feature map into one or more blocks using the bounding box; According to the mask, constructing a triplet in the block, the triplet comprising an anchor point, a positive pixel and a negative pixel, the positive pixel being a set of pixels within the mask, and the negative pixel being a set of pixels outside the mask; Based on the triplet, the depth information is determined.
6. The method according to claim 5, characterized in that The method further comprises: Calculating the object instance guided triplet loss based on the depth feature distance of the pixels in the block; Based on the triplet loss, the depth prediction network is optimized.
7. The method according to claim 6, characterized in that The calculating the object instance guided triplet loss based on the depth feature distance of the pixels in the block includes: Based on the vector coordinates of the anchor point, calculating the depth feature distance of the positive pixels and the depth feature distance of the negative pixels in each block; The triplet loss is determined according to the depth feature distance of the positive pixels and the depth feature distance of the negative pixels in each block.
8. An image processing device, characterized in that: include: An acquisition module is configured to acquire a target image captured by a camera; An extraction module, configured to extract a feature map corresponding to the target image using a shared encoder; A decoding module, configured to decode the feature map into object instance information through an instance segmentation decoder; A determination module, configured to determine the pose information and depth information of the target image based on the object instance information; The estimation module is configured to estimate the motion information of the camera relative to the environment based on the posture information and the depth information.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. An electronic device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Robot target recognition and motion detection method based on deep learning, storage medium and equipment
CN114782691A
Mask correction-based semi-supervised video target segmentation method and system
CN118097507A
Geometric information enhancement-based category-level 6D attitude estimation method
CN118261979A
Deep learning based robot target recognition and motion detection method, storage medium and apparatus
US11763485B1
