Image segmentation method, device, electronic device and storage medium

By extracting and fusing multi-scale feature images and using similarity matrix weighting calculation, the problems of confusion and texture differences in human body part segmentation are solved, and the segmentation accuracy and consistency are improved.

CN112700462BActive Publication Date: 2024-09-17YUANLI TUXIN (CHONGQING) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011643737.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-31
Publication Date
2024-09-17
Estimated Expiration
2040-12-31

AI Technical Summary

Technical Problem

The existing technology has confusion problems in segmenting human body parts, especially due to the symmetrical structure and occlusion factors of the human body, which leads to a decrease in segmentation accuracy, and the differences in texture within the parts reduce the overall consistency.

Method used

By acquiring multiple feature images of different scales, fusing the feature images, extracting human body feature point features and component edge features, using weighted calculations of similarity matrices to compress and expand feature layers, strengthen the structural and semantic relationships of human body parts, and eliminate texture differences. Improve segmentation accuracy.

Benefits of technology

It effectively eliminates the internal texture differences of human body parts, strengthens the overall consistency, improves image segmentation accuracy, and avoids confusion and mis-segmentation of human body parts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112700462B
    Figure CN112700462B
Patent Text Reader

Abstract

The present application provides an image segmentation method, device, electronic device and storage medium, the method comprising: extracting features from an image to be processed to obtain multiple feature images of different scales, wherein the image to be processed is an image including human body parts; fusing the multiple feature images of different scales to obtain a fused feature image; obtaining human body feature point features and human body part edge features based on the multiple feature images of different scales and the fused feature image; performing image fusion based on the human body feature point features and the human body part edge features to obtain an image segmentation result. Implementing the embodiments of the present application can strengthen the structure and semantic relationship of human body parts in an image, eliminate the texture differences inside human body parts, strengthen the overall consistency of human body parts, and improve the accuracy of image segmentation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the fields of computer vision and image processing technology, and more specifically, to an image segmentation method, device, electronic device and storage medium. Background Art

[0002] Image recognition refers to the technology of using computers to process, analyze and understand images to identify targets and objects of various different patterns. It is a practical application of deep learning algorithms. Image segmentation is a crucial preprocessing for image recognition and computer vision. Without correct segmentation, there can be no correct recognition. Image segmentation is the technology and process of dividing an image into several specific areas with unique properties and proposing targets of interest. It is a key step from image processing to image analysis. However, the only basis for segmentation is the brightness and color of the pixels in the image. When the computer automatically processes the segmentation, various difficulties will be encountered. For example, uneven lighting, the influence of noise, unclear parts in the image, and shadows often cause segmentation errors.

[0003] In human image recognition, human body part segmentation (Human Parsing) is an important topic in Computer Vision (Computer Vision), and has very wide applications in scenarios such as video surveillance, autonomous driving, human beautification, and virtual reality.

[0004] Generally speaking, human body parts segmentation requires segmenting all parts of the human body, which is a refined segmentation task. As a special case of image segmentation tasks, existing methods basically focus on optimizing model structure, increasing receptive field and optimizing edges. Although the accuracy of these methods has been improved to a certain extent, there are still many problems. These problems are mainly reflected in the confusion of human body parts. On the one hand, due to the symmetrical structure of the human body, the left leg, right leg, left arm and right arm of the human body have almost no difference in shape and texture, but in the segmentation process, it is often necessary to distinguish the order of the two. On the other hand, due to factors such as occlusion, the shape of human body parts can also be easily misled; based on the above reasons, the segmentation accuracy will be reduced when human body parts are segmented, and the overall consistency of the parts will be reduced due to the texture differences inside the parts. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide an image segmentation method, device, electronic device and storage medium, which can enhance the structure and semantic relationship of human body parts in the image, eliminate the texture differences inside the human body parts, enhance the overall consistency of the human body parts, and improve the accuracy of image segmentation.

[0006] In a first aspect, an embodiment of the present application provides an image segmentation method, the method comprising:

[0007] Performing feature extraction on the image to be processed to obtain a plurality of feature images of different scales, wherein the image to be processed is an image including human body parts;

[0008] Fusing the multiple feature images of different scales to obtain a fused feature image;

[0009] Obtaining human body feature point features and human body part edge features according to the multiple feature images of different scales and the fused feature image;

[0010] Image fusion is performed based on the features of the human body feature points and the edge features of the human body parts to obtain an image segmentation result.

[0011] In the above implementation process, the structure and semantic relationship of the human body parts in the image are strengthened respectively by compressing and expanding the feature layers, wherein the semantic information of the human body parts is eliminated by obtaining the features of the human body feature points, and the structural relationship between the human body parts is strengthened; the texture differences inside the human body parts are eliminated by obtaining the edge features of the human body parts, and the overall consistency of the human body parts is strengthened; thereby improving the accuracy of image segmentation.

[0012] Furthermore, the step of obtaining human body feature point features and human body part edge features according to the multiple feature images of different scales and the fused feature image comprises:

[0013] Extracting feature points from the plurality of feature images of different scales to obtain a feature map of human feature points;

[0014] Performing image segmentation on the plurality of feature images of different scales to obtain edge feature maps of human body parts;

[0015] Obtaining the human feature point features according to a first similarity between the human feature point feature map and the fused feature image;

[0016] The human body part edge feature is obtained according to the second similarity between the human body part edge feature map and the fused feature image.

[0017] In the above implementation process, a human body feature point feature map and a human body part edge feature map are obtained, and then the human body feature point features and the human body part edge features are respectively obtained according to the human body feature point feature map and the human body part edge feature map, so that when the image is segmented into human body parts, there will be no confusion of human body parts and the image will not be mis-segmented due to ambiguous clothing, etc.

[0018] Furthermore, the step of obtaining the features of the human feature points according to the first similarity between the human feature point feature map and the fused feature image comprises:

[0019] Determining a feature similarity matrix according to the first similarity between the pixel points of the human feature point feature map and the pixel points of the fused feature image;

[0020] The feature similarity matrix and the fused feature image are weightedly calculated to obtain the human body feature point features.

[0021] In the above implementation process, by acquiring the feature similarity matrix and weighted calculation, the weighted human feature point features are obtained, which can eliminate the semantic information of human body parts and strengthen the structural relationship between human body parts.

[0022] Furthermore, the step of performing weighted calculation on the feature similarity matrix and the fused feature image to obtain the features of the human feature points includes:

[0023] The feature similarity matrix and the fused feature image are multiplied to obtain the human body feature point features.

[0024] In the above implementation process, the weighted calculated human feature point features contain human feature point information, which can eliminate the semantic information of human body parts and strengthen the structural relationship between human body parts.

[0025] Furthermore, the step of obtaining the edge feature of the human body part according to the second similarity between the human body part edge feature map and the fused feature image comprises:

[0026] Determining an edge similarity matrix according to the second similarity between the pixel points of the edge feature map of the human body part and the pixel points of the fused feature image;

[0027] The edge similarity matrix and the fused feature image are weightedly calculated to obtain the edge features of the human body parts.

[0028] In the above implementation process, by obtaining the edge similarity matrix and weighted calculation, the weighted edge features of the human body parts are obtained, which can eliminate the texture differences inside the human body parts and enhance the overall consistency of the human body parts.

[0029] Furthermore, the step of performing weighted calculation on the edge similarity matrix and the fused feature image to obtain the edge features of the human body parts comprises:

[0030] The edge similarity matrix and the fused feature image are multiplied to obtain the edge features of the human body parts.

[0031] In the above implementation process, the edge features of the human body parts after weighted calculation include the edge information of the human body parts, which can eliminate the texture differences inside the human body parts and enhance the overall consistency of the human body parts.

[0032] In a second aspect, an embodiment of the present application further provides an image segmentation device, the device comprising:

[0033] A feature image acquisition module is used to extract features from an image to be processed to obtain a plurality of feature images of different scales, wherein the image to be processed is an image including human body parts;

[0034] An image fusion module, used for fusing the plurality of feature images of different scales to obtain a fused feature image;

[0035] A feature acquisition module, used for obtaining human body feature point features and human body part edge features according to the plurality of feature images of different scales and the fused feature image;

[0036] The feature fusion module is used to perform image fusion based on the human feature point features and the human body part edge features to obtain an image segmentation result.

[0037] In the above implementation process, the structure and semantic relationship of the human body parts in the image are strengthened respectively by compressing and expanding the feature layers, wherein the semantic information of the human body parts is eliminated by obtaining the features of the human body feature points, and the structural relationship between the human body parts is strengthened; the texture differences inside the human body parts are eliminated by obtaining the edge features of the human body parts, and the overall consistency of the human body parts is strengthened; thereby improving the accuracy of image segmentation.

[0038] Furthermore, the feature acquisition module includes:

[0039] A feature point extraction unit, used to extract feature points from the plurality of feature images of different scales to obtain a human body feature point feature map;

[0040] An image segmentation unit, used for performing image segmentation on the plurality of feature images of different scales to obtain an edge feature map of a human body part;

[0041] The feature acquisition unit is used to obtain the human feature point features according to a first similarity between the human feature point feature map and the fused feature image; and to obtain the human body part edge features according to a second similarity between the human body part edge feature map and the fused feature image.

[0042] In the above implementation process, a human body feature point feature map and a human body part edge feature map are obtained, and then the human body feature point features and the human body part edge features are respectively obtained according to the human body feature point feature map and the human body part edge feature map, so that when the image is segmented into human body parts, there will be no confusion of human body parts and the image will not be mis-segmented due to ambiguous clothing, etc.

[0043] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to perform the image segmentation method described in the first aspect.

[0044] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the image segmentation method described in the first aspect.

[0045] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when running on a computer, enables the computer to execute the method as described in any one of the first aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0047] Figure 1 A flowchart of an image segmentation method provided in an embodiment of the present application;

[0048] Figure 2 A schematic diagram of a process for processing feature images of different scales in an embodiment of the present application;

[0049] Figure 3 A schematic diagram of the process of obtaining the features of the human body feature points in the embodiment of the present application;

[0050] Figure 4 This is a rendering of the human body feature point features used in the embodiment of the present application;

[0051] Figure 5 A schematic diagram of the process of obtaining edge features of human body parts in an embodiment of the present application;

[0052] Figure 6 This is a rendering of the edge features of human body parts in the embodiment of the present application;

[0053] Figure 7 This is a comparison chart of experimental data of the embodiments of the present application;

[0054] Figure 8 A schematic diagram of the structure of an image segmentation device provided in an embodiment of the present application;

[0055] Fig. 9 A schematic diagram of the structural composition of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0056] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0057] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0058] Existing image segmentation methods basically focus on optimizing model structure, increasing receptive field and optimizing edges. Although the accuracy of these methods has been improved to a certain extent, there are still many problems. These problems are mainly reflected in the confusion of human body parts. On the one hand, due to the symmetrical structure of the human body, the left leg, right leg, left arm and right arm of the human body have almost no difference in shape and texture, but in the segmentation process, it is often necessary to distinguish the order of the two. On the other hand, due to factors such as occlusion, the shape of human body parts can also be easily misled; based on the above reasons, the segmentation accuracy will be reduced when segmenting human body parts, and the overall consistency of the parts will be reduced due to the texture differences inside the parts.

[0059] It should be noted that the various defects existing in the technical solutions in the above-mentioned prior art are the results obtained by the inventor after careful practical research. Therefore, the discovery process of the above-mentioned problems and the solutions proposed in the embodiments of the present application for the above-mentioned problems below should all be the contributions made by the inventor to the present application in the process of realizing the present application.

[0060] In response to the above-mentioned problems in the prior art, the present application provides an image segmentation method, device, electronic device and storage medium.

[0061] Embodiment 1

[0062] See also Figure 1 , an embodiment of the present application provides an image segmentation method, the method comprising:

[0063] S1, extracting features from an image to be processed to obtain a plurality of feature images of different scales, wherein the image to be processed is an image including human body parts;

[0064] S2, fusing multiple feature images of different scales to obtain a fused feature image;

[0065] S3, obtaining human body feature point features and human body part edge features according to multiple feature images of different scales and fused feature images;

[0066] S4, performing image fusion based on the human body feature point features and the human body part edge features to obtain an image segmentation result.

[0067] In S1, an image to be processed is input, and the image to be processed is an image including human body parts, wherein the human body parts include the head, neck, shoulders, arms, torso, legs, feet and other parts of the human body. In the embodiment of the present application, the human body parts can be represented by human body feature points, for example, each part of the human body can be represented by multiple human body feature points such as the head, shoulders, elbows, abdomen, knees, feet and the like. For example, the human arm can be represented by feature points such as the wrist, elbow, shoulder and the like, and other parts of the human body can also be represented by feature points corresponding to the parts.

[0068] The feature network is used to extract features of the input image to be processed, and after downsampling at each layer of the feature network, multiple feature images of different scales are obtained.

[0069] In the embodiment of the present application, a feature network is used as the backbone network. Specifically, a standard semantic segmentation network is used. Each layer of the feature network is convolved and up-sampled, and the features of the previous layer are added, and a convolution is performed, and then input to the next layer. During the entire implementation process, an image to be processed including human body parts is input, and a feature network (backbone network) with multiple layers of convolution and down-sampling is used to extract multiple feature images of different scales from the image to be processed, and then the feature images of multiple scales are fused to obtain a fused feature image.

[0070] like Figure 2 As shown, S3 further includes:

[0071] S31, extracting feature points from multiple feature images of different scales to obtain a feature map of human feature points;

[0072] S32, performing image segmentation on a plurality of feature images of different scales to obtain edge feature maps of human body parts;

[0073] S33, obtaining human feature point features according to a first similarity between the human feature point feature map and the fused feature image;

[0074] S34, obtaining edge features of the human body parts according to the second similarity between the edge feature map of the human body parts and the fused feature image.

[0075] In a specific implementation, the feature maps of human feature points are all local feature maps, and there are as many feature maps output as there are human feature points. In order to merge the feature images of multiple scales (multi-layer feature maps) after downsampling, and at the same time to improve the relationship between each channel of the feature vector output by the human feature point feature map and the feature network, the feature images of multiple scales in the human feature point feature map can be shuffled during the feature point extraction process, which can improve the accuracy of the human feature point features subsequently extracted.

[0076] The human body part edge feature map is just a feature map, which represents the edges of human body parts in the image. The feature information contained in the extracted low-dimensional vector can be detected and classified through decoding processing.

[0077] S33 further comprises:

[0078] Determining a feature similarity matrix according to a first similarity between a pixel point of a human feature point feature map and a pixel point of a fused feature image;

[0079] The feature similarity matrix and the fused feature image are weighted to obtain the features of the human body feature points.

[0080] Specifically, the feature similarity matrix is ​​multiplied by the fused feature image to obtain the human body feature point features.

[0081] Figure 3 FIG. 4 shows a process of obtaining the features of the human body feature points in an embodiment. Figure 3 As shown, in S33, the features C×H×W of the human feature point feature map are converted to N×HW dimensional features, and the features C×H×W of the fused feature image are converted to HW×C dimensional features. By calculating the similarities of all pixels on the N×HW dimensional features and the HW×C dimensional features, an N×C dimensional feature similarity matrix is ​​obtained. The N×C dimensional feature similarity matrix is ​​the attention weight of the feature layer; the N×C dimensional feature similarity matrix is ​​multiplied by the features C×H×W of the fused feature image to obtain the human feature point features after attention weighted calculation. The weighted calculated human feature point features contain the human feature point information, which can eliminate the semantic information of human body parts and strengthen the structural relationship between human body parts. As shown Figure 4 As shown, after the above processing, there will be no confusion among the human body parts.

[0082] In the above process, C represents the channel of the feature, H represents the height of the feature, W represents the width of the feature, and N represents the dimension of the feature.

[0083] S34 further comprises:

[0084] Determine an edge similarity matrix according to a second similarity between pixel points of the edge feature map of the human body part and pixel points of the fused feature image;

[0085] The edge similarity matrix and the fused feature image are weighted to obtain the edge features of human body parts.

[0086] Specifically, the edge similarity matrix and the fused feature image are multiplied to obtain the edge features of human body parts.

[0087] Figure 5 FIG. 2 shows a process of obtaining edge features of human body parts in one embodiment. Figure 5 As shown, in S34, the features C×H×W of the edge feature map of the human body parts are converted to obtain D×HW dimensional features, and the features C×H×W of the fused feature image are converted to HW×D dimensional features. By calculating the similarities of all pixels on the D×HW dimensional features and the HW×D dimensional features, an HW×HW dimensional edge similarity matrix is ​​obtained; the HW×HW dimensional edge similarity matrix is ​​multiplied by the converted D×H×W dimensional features of the fused feature image to obtain D×HW dimensional features, which are then concatenated with the features C×H×W of the fused feature image to obtain (D+C)×HW dimensional features, and the (D+C)×HW dimensional features are convolved to obtain the edge features of the human body parts after attention weighted calculation. The weighted calculated edge features of the human body parts contain the edge information of the human body parts, which can eliminate the texture differences inside the human body parts and enhance the overall consistency of the human body parts. As shown Figure 6 As shown, after the above processing, the internal parts of the human body are more consistent and will not be mis-segmented due to ambiguous clothing or the like.

[0088] In the above process, C represents the channel of the feature, H represents the height of the feature, W represents the width of the feature, and D represents the dimension of the feature.

[0089] In S4, the weighted human feature point features and the weighted human body part edge features are fused to obtain an image segmentation result. The image segmentation result here is a mask image, in which different color blocks are distributed in the image. Each color block is represented by a number. Specifically, 0-15 can represent a color block, 0 represents the background, and 1-15 represents 15 different human body parts.

[0090] Exemplarily, the weighted human feature point features and the weighted human part edge features may be convolved to obtain an image segmentation result.

[0091] Figure 7The experimental data obtained by using the method of the embodiment of the present application is shown, and other image segmentation methods such as SegNet, FCN-8s, etc. are compared here. The "Ours" column in the figure is the experimental data of the embodiment of the present application, and 384x384 and 473x473 represent two different model inputs. The first column on the left is the items corresponding to each human body part, such as hair (hair), left arm (1-arm), etc.; the last row is the average data of all human body parts. It can be seen that the method provided by the embodiment of the present application can improve the accuracy of image segmentation, which is better than the accuracy of other methods.

[0092] In the embodiment method of the present application, the structure and semantic relationship of the human body parts in the image are strengthened respectively by compressing and expanding the feature layers, wherein the semantic information of the human body parts is eliminated by obtaining the features of the human body feature points, and the structural relationship between the human body parts is strengthened; the texture differences inside the human body parts are eliminated by obtaining the edge features of the human body parts, and the overall consistency of the human body parts is strengthened; thereby improving the accuracy of image segmentation.

[0093] Embodiment 2

[0094] In order to execute the method corresponding to the above-mentioned embodiment 1 to achieve corresponding functions and technical effects, an image segmentation device is provided below.

[0095] See also Figure 8 , the image segmentation device of the embodiment of the present application includes:

[0096] A feature image acquisition module 1 is used to extract features from an image to be processed to obtain a plurality of feature images of different scales, wherein the image to be processed is an image including human body parts;

[0097] An image fusion module 2 is used to fuse multiple feature images of different scales to obtain a fused feature image;

[0098] A feature acquisition module 3 is used to obtain the human body feature point features and the human body part edge features according to the feature images of multiple different scales and the fused feature images;

[0099] The feature fusion module 4 is used to perform image fusion based on the human body feature point features and the human body part edge features to obtain an image segmentation result.

[0100] Furthermore, the feature acquisition module 3 includes:

[0101] A feature point extraction unit is used to extract feature points from a plurality of feature images of different scales to obtain a feature map of human feature points;

[0102] An image segmentation unit, used for performing image segmentation on a plurality of feature images of different scales to obtain edge feature maps of human body parts;

[0103] The feature acquisition unit is used to obtain the human feature point features according to the first similarity between the human feature point feature map and the fused feature image; and obtain the human body part edge features according to the second similarity between the human body part edge feature map and the fused feature image.

[0104] Specifically, the image segmentation result obtained by the feature fusion module 4 is a segmented image, where the segmented image is a mask image, with different color blocks distributed in the image, each color block represented by a number, specifically, 0-15 can represent a color block, 0 represents the background, and 1-15 represents 15 different human body parts.

[0105] The above-mentioned image segmentation device can implement the image segmentation method of the above-mentioned embodiment 1. The options in the above-mentioned embodiment 1 are also applicable to this embodiment and will not be described in detail here.

[0106] The rest of the contents of the embodiments of the present application can refer to the contents of the above-mentioned embodiment 1, and will not be repeated in this embodiment.

[0107] Embodiment 3

[0108] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to perform the image segmentation method of the first embodiment.

[0109] Optionally, the above-mentioned electronic device may be a server.

[0110] See also Fig. 9 , Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include a processor 91, a communication interface 92, a memory 93 and at least one communication bus 94. The communication bus 94 is used to realize direct connection and communication between these components. The communication interface 92 of the device in the embodiment of the present application is used to communicate signaling or data with other node devices. The processor 91 may be an integrated circuit chip with signal processing capabilities.

[0111] The processor 91 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor 91 can also be any conventional processor, etc.

[0112] The memory 93 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electric erasable programmable read-only memory (EEPROM), etc. The memory 93 stores computer readable instructions. When the computer readable instructions are executed by the processor 91, the device can execute the above-mentioned Figures 1 to 7 The method embodiment involves various steps.

[0113] Optionally, the electronic device may further include a storage controller and an input / output unit. The memory 93, the storage controller, the processor 91, the peripheral interface, and the input / output unit are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components may be electrically connected to each other via one or more communication buses 94. The processor 91 is used to execute executable modules stored in the memory 93, such as software function modules or computer programs included in the device.

[0114] The input and output unit is used to provide users with the task creation and to create an optional time period or preset execution time for the task to enable interaction between the user and the server. The input and output unit can be, but is not limited to, a mouse and a keyboard.

[0115] Understandably, Fig. 9 The structure shown is for illustration only. The electronic device may also include Fig. 9 More or fewer components as shown, or with Fig. 9 Different configurations are shown. Fig. 9 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0116] In addition, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which implements the image segmentation method of the first embodiment when executed by a processor.

[0117] The embodiment of the present application also provides a computer program product, which, when running on a computer, enables the computer to execute the method described in the method embodiment.

[0118] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0119] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

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

[0121] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0122] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0123] It should be noted that, in this article, relational terms such as first and second, etc. 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 terms "include", "comprise" or any other variants thereof are 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 "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

Claims

1. An image segmentation method, characterized in that: The method comprises: Performing feature extraction on the image to be processed to obtain a plurality of feature images of different scales, wherein the image to be processed is an image including human body parts; Fusing the multiple feature images of different scales to obtain a fused feature image; Obtaining human body feature point features and human body part edge features according to the multiple feature images of different scales and the fused feature image; Perform image fusion based on the human body feature point features and the human body part edge features to obtain an image segmentation result; Wherein, the step of obtaining the human body feature point features and the human body part edge features according to the feature images of the multiple different scales and the fused feature image comprises: Extracting feature points from the plurality of feature images of different scales to obtain a feature map of human feature points; Performing image segmentation on the plurality of feature images of different scales to obtain edge feature maps of human body parts; Obtaining the human feature point features according to a first similarity between the human feature point feature map and the fused feature image; The human body part edge feature is obtained according to the second similarity between the human body part edge feature map and the fused feature image.

2. The image segmentation method according to claim 1, characterized in that: The step of obtaining the features of the human feature points according to the first similarity between the human feature point feature map and the fused feature image comprises: Determining a feature similarity matrix according to the first similarity between the pixel points of the human feature point feature map and the pixel points of the fused feature image; The feature similarity matrix and the fused feature image are weightedly calculated to obtain the human body feature point features.

3. The image segmentation method according to claim 2, characterized in that: The step of performing weighted calculation on the feature similarity matrix and the fused feature image to obtain the features of the human body feature points comprises: The feature similarity matrix and the fused feature image are multiplied to obtain the human body feature point features.

4. The image segmentation method according to claim 1, characterized in that: The step of obtaining the edge feature of the human body part according to the second similarity between the edge feature map of the human body part and the fused feature image comprises: Determining an edge similarity matrix according to the second similarity between the pixel points of the edge feature map of the human body part and the pixel points of the fused feature image; The edge similarity matrix and the fused feature image are weightedly calculated to obtain the edge features of the human body parts.

5. The image segmentation method according to claim 4, characterized in that: The step of performing weighted calculation on the edge similarity matrix and the fused feature image to obtain the edge features of the human body parts comprises: The edge similarity matrix and the fused feature image are multiplied to obtain the edge features of the human body parts.

6. An image segmentation device, characterized in that: The device comprises: A feature image acquisition module is used to extract features from an image to be processed to obtain a plurality of feature images of different scales, wherein the image to be processed is an image including human body parts; An image fusion module, used for fusing the plurality of feature images of different scales to obtain a fused feature image; A feature acquisition module, used for obtaining human body feature point features and human body part edge features according to the plurality of feature images of different scales and the fused feature image; A feature fusion module, used for performing image fusion based on the human feature point features and human body part edge features to obtain an image segmentation result; Wherein, the feature acquisition module includes: A feature point extraction unit, used to extract feature points from the plurality of feature images of different scales to obtain a human body feature point feature map; An image segmentation unit, used for performing image segmentation on the plurality of feature images of different scales to obtain an edge feature map of a human body part; The feature acquisition unit is used to obtain the human feature point features according to a first similarity between the human feature point feature map and the fused feature image; and to obtain the human body part edge features according to a second similarity between the human body part edge feature map and the fused feature image.

7. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to perform the image segmentation method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The device stores a computer program, which, when executed by a processor, implements the image segmentation method according to any one of claims 1 to 5.