A device and method for instance level segmentation of an image

By combining semantic segmentation and boundary detection in instance-level semantic segmentation, using the improved SLIC algorithm and CNN subnet cascade, the error recovery and semantic information integration problems of instance-level semantic segmentation in the existing technology are solved, and an efficient and low-cost solution is achieved. Instance-level semantic segmentation of complexity.

CN111886600BActive Publication Date: 2024-09-20HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201880090714.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-04-10
Publication Date
2024-09-20
Estimated Expiration
2038-04-10

AI Technical Summary

Technical Problem

Existing instance-level semantic segmentation methods are difficult to recover from errors in the object candidate generation process, lack proper integration of semantic information, and are highly complex to effectively perform boundary detection of semantically related objects, especially at the instance level. when operating.

Method used

By combining semantic segmentation and instance-level boundary detection in a single framework, the improved SLIC algorithm is used in combination with CNN subnet cascade to perform class-level semantic segmentation and instance-level boundary detection, estimate the number of object instances, and perform multiple super-operations based on this For segmentation of pixels, semantic boundary information is integrated to improve segmentation accuracy and reduce complexity.

Benefits of technology

It achieves error recovery from class-level semantic segmentation and instance-level boundary detection, improves the accuracy and efficiency of instance-level semantic segmentation, reduces computational complexity, and can better integrate semantic information to obtain more accurate instance-level Semantic segmentation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111886600B
    Figure CN111886600B
Patent Text Reader

Abstract

A device and method for performing instance-level semantic segmentation of an image are proposed. Therefore, class-level semantic segmentation is combined with instance-level boundary detection, and an improved SLIC algorithm calculates multiple superpixels as instance-level segmentations. The device performs class-level semantic segmentation of the image to obtain one or more class-level segmentations, wherein each class-level segment has an object class associated with it; at the same time, instance-level semantic boundary detection is also performed on the image to obtain one or more instance-level boundaries, wherein for each instance-level boundary, there is an instance-level center point. The device estimates the number of object instances in the class-level segment for each class-level segment based on the number of instance-level center points located in the class-level segment. The device performs an improved SLIC algorithm for each class-level segment whose estimated number of object instances is greater than 1 based on the one or more instance-level boundaries to obtain multiple superpixels as instance-level segmentations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a device for instance-level segmentation of an image, and also to a corresponding instance-level semantic segmentation method. Instance-level semantic segmentation can be used to segment and select each semantically related object in a scene image. This means that objects belonging to the same category are segmented and identified separately. Background Art

[0002] The recent increase in interest around artificial intelligence (e.g. autonomous driving or robot navigation) has led to new research topics that are crucial to these technologies. For example, understanding and analyzing the scene around a robot or autonomous vehicle is a key component of related applications. This task involves the ability to detect and extract semantically related objects inside a scene, for example in an image of said scene. This process is called "image segmentation".

[0003] A prominent method for image segmentation is the Simple Linear Iterative Clustering (SLIC) algorithm. In this algorithm, the image of the scene is clustered into superpixels, where a superpixel is a group of semantically coherent pixels. This means that pixels belonging to a specific superpixel are likely to belong to the same scene object. The smallest possible superpixel consists of a single pixel, and the largest possible superpixel consists of all pixels of the image. The SLIC method is based on a modified version of the K-means clustering algorithm, so that superpixel boundaries overlap with boundaries / edges of semantically related objects.

[0004] Improved versions of the SLIC algorithm have rarely been proposed. For example, in one proposal, the SLIC algorithm is improved to be compatible with the In another proposal, two different versions of SLIC are introduced: the first is a SLIC version suitable for high-dimensional cases, and the second is a version that includes a more complex and robust enhanced distance measure, called fractional distance.

[0005] The SNIC algorithm is a further improvement of the SLIC algorithm, introduced as a non-iterative alternative that forces connectivity from the beginning, requiring less storage space, faster speed, and simpler operation than the original version. Recently, an extended version of the SLIC algorithm, called the BSLIC algorithm, was proposed, which aims to incorporate the boundary term from general edge detection into the distance measure.

[0006] In addition to image segmentation, which involves detecting and extracting semantically related objects in a scene, there is also a need to "recognize" these objects, for example by assigning them to the correct class (e.g., car, sky, vegetation, etc.). This process is called "semantic segmentation."

[0007] Semantic segmentation is a deeply studied topic that falls under the category of classification tasks. This explains why semantic segmentation has benefited greatly from the recent emergence of deep learning methods such as Deep Neural Network (DNN), Convolutional Neural Network (DNN) and Recurrent Neural Network (RNN). Most semantic segmentation algorithms aim to extract semantically related image segments and assign them to corresponding classes. This means that semantic segmentation algorithms deal with a predefined number of known classes. Therefore, its task is to classify each object in the scene.

[0008] For example, in the context of a driving scene, object classes represent scene objects and components that are relevant to the application. These classes may include classes such as "car", "vegetation", "pedestrian", "road sign", etc. Accordingly, all cars in the scene will be assigned to the corresponding class ("car").

[0009] The next level of scene understanding involves the ability of an autonomous vehicle or robot to perform semantic segmentation of the current scene at the instance level, i.e. the ability to perform “instance semantic segmentation.” This means that in addition to assigning objects to the correct class, the autonomous system should be able to identify and label each instance of an object of a given class.

[0010] For example, in addition to segmenting the regions in an image that belong to the class “car,” in this case, the autonomous driving system is also able to identify each car in the image and assign a unique label to each one.

[0011] There are several methods for instance-level semantic segmentation, mainly based on deep learning (CNN). These methods usually propose candidate objects, usually as bounding boxes, and directly predict a binary mask within each such candidate object proposal. Therefore, these methods cannot recover from errors in the object proposal generation process, such as boxes that are too small or shifted. In addition, these methods still lack proper integration of semantic information and have high complexity.

[0012] An additional application related to instance-level semantic segmentation is detecting boundaries (i.e., edges) of semantically related objects in scene images. This task is also known as semantic edge detection, boundary detection, or contour detection. Accordingly, the results of a semantic boundary detection system will differ from those of a traditional edge detection algorithm, since in this case the goal is to highlight and detect boundaries of semantically related objects, rather than all edges in the scene.

[0013] Similar to semantic segmentation and instance-level semantic segmentation, boundary detection of semantically related objects can be performed at the class level (non-instance-level boundary detection) or instance level (instance-level boundary detection).

[0014] Boundary detection is a challenging task, especially in the context of systems operating at the instance level hierarchy. In this case, enabling algorithms are required to be able to identify boundaries separating objects from the same class in a particular (multi-instance) segment and edges corresponding to textures in the segment.

[0015] In summary, to date, there is no instance-level semantic segmentation method that can well recover from errors in the object candidate generation process and further allows for the proper integration of semantic information with low complexity. Summary of the invention

[0016] The inventors have realized that instance-level semantic segmentation can, at least in principle, be accomplished by combining semantic segmentation and instance-level boundary detection in a single framework. This involves using semantic boundaries to separate instances of the same object. It also requires highly accurate semantic segmentation while also requiring an accurate boundary detection algorithm. Therefore, inaccuracies in semantic segmentation and / or boundary detection can lead to significant degradation in the quality of the target instance-level semantic segmentation.

[0017] Moreover, instance-level boundary detection is a less well-researched topic compared to semantic segmentation (class-level and instance-level). Existing methods mainly rely on deep learning frameworks. This means that most of these methods suffer from performance instability, especially when presented with images of scenes different from the scenes used to train the corresponding models.

[0018] In view of the above challenges and shortcomings, the present invention aims to improve existing methods for instance level semantic segmentation. A particular object of the present invention is to provide an apparatus and method for improved instance level semantic segmentation of images. The present invention is particularly aimed at a solution that can better recover from errors. The present invention also requires a solution that can better integrate semantic information. Finally, the present invention is committed to reducing complexity.

[0019] The objects of the invention are achieved by the solutions provided in the attached independent claims. Advantageous realizations of the invention are further defined in the dependent claims.

[0020] In order to describe the solutions of the present invention, the following terms are used herein and are to be understood as described below.

[0021] “Image” – A digital camera’s visual representation of a real-world or synthetic scene. Also called a picture.

[0022] "Pixel" - the smallest addressable picture / image element.

[0023] "Scene" - the surrounding environment relative to a reference. For example, the scene of a camera is the part of the environment visible from the camera.

[0024] "Texture" - areas within an image that depict content with significant variations in color intensity.

[0025] “Edges” — Areas in an image where the gradient (brightness level) changes abruptly.

[0026] “Superpixel” — a group of image pixels (composed of one or more pixels) that are ideally semantically similar (e.g., have similar colors).

[0027] "Class" - a defined semantic group that includes several objects with similar semantic characteristics. For example, trees, flowers, and other types of plants belong to the "vegetation" class.

[0028] “Segment” — a group of image pixels (consisting of one or more pixels) that ideally belong to a common semantic class.

[0029] "Instance" - An object that belongs to a known class. For example, the trees in the scene are instances of the "Vegetation" class.

[0030] "Multi-Instance Segment" - A segment that contains multiple instances (objects) of the same class to which it is assigned.

[0031] "label" - an identifier (e.g., an integer) used to determine the class type of the item / entity.

[0032] “Image Segmentation” — A method for segmenting an image into semantically coherent segments without requiring any prior knowledge about the classes to which these segments belong.

[0033] “Semantic Segmentation” — A method of dividing an image into different regions based on semantic attribution. For example, pixels depicting cars are all red, pixels depicting roads are all blue, and so on.

[0034] “Instance-level semantic segmentation” — A method that segments an image into distinct regions and object instances based on their semantic attribution. Individual objects are identifiable and separable from each other.

[0035] “Semantic boundaries” — edges that separate semantically related classes. This means that image textures and details that are not part of the boundary between classes are not considered semantic boundaries.

[0036] “Instance-level semantic boundaries” – semantic boundaries applied at the instance-level hierarchy (edges separating classes, and instances within multi-instance segments).

[0037] “Machine Learning” – A field of study that focuses on analyzing and learning from input data to build models that can make predictions.

[0038] "Artificial neural networks" — a subfield of machine learning in the context of deep learning, inspired by biological neural networks. Artificial networks are designed to estimate functions with a large number of inputs by adaptively learning a set of connection weights.

[0039] Convolution – A mathematical operation that uses an integral operation to calculate the overlap of two functions, one of which is inverted and shifted.

[0040] "Convolutional Neural Network" - an artificial neural network that contains at least one convolutional layer in its structure.

[0041] A first aspect of the present invention provides a device for instance-level semantic segmentation of an image, wherein the device is used to: perform class-level semantic segmentation of the image to obtain one or more class-level segments, wherein each class-level segment has an object class associated with it; perform instance-level semantic boundary detection on the image to obtain one or more instance-level boundaries, wherein each instance-level boundary has an instance-level center point; based on the number of instance-level center points located in the class-level segment, for each class-level segment, estimate the number of object instances in the class-level segment; based on the one or more instance-level boundaries, for each class-level segment where the estimated number of object instances is greater than 1, perform an improved SLIC algorithm to obtain multiple superpixels as instance-level segments.

[0042] For example, each center point may be the centroid of an instance-level segment bounded by the corresponding instance-level boundary.

[0043] The device allows to perform instance-level semantic segmentation of images with accurate and low computational complexity. In particular, the combination of class-level semantic segmentation and instance-level boundary detection results in a result with low computational complexity. The improved SLIC algorithm subsequently performed allows to refine these results into accurate instance-level semantic segmentation with relatively low additional complexity. In addition, due to the improved SLIC algorithm, the instance-level segmentation process implemented using the device can recover well from errors in class-level semantic segmentation and / or instance-level boundary detection. In addition, a good integration of semantic information is achieved.

[0044] In an implementation of the first aspect, the device is used to: based on the estimated number of object instances in a given class-level segment, execute the improved SLIC algorithm for the segment to initialize multiple search areas, wherein the search areas all surround a center pixel and correspond to the estimated number of object instances in the segment.

[0045] This makes instance-level semantic segmentation performed using the device more efficient and ensures more precise results.

[0046] In another implementation of the first aspect, the improved SLIC algorithm is improved on the basis of the SLIC algorithm to consider multiple boundary pixels and perform calculations based on the one or more instance-level boundaries in each search area.

[0047] By taking boundaries into account using boundary pixels, the improved SLIC algorithm produces superpixels that more precisely define instance-level segmentations.

[0048] In another implementation of the first aspect, the device is used to: assign search pixels to superpixels by executing the improved SLIC algorithm, and the search area of ​​the superpixel includes a minimum number of boundary pixels, and the minimum number is calculated based on the one or more instance-level boundaries separating the search pixel and the center pixel of the search area.

[0049] The fewer the boundary pixels separating the search pixel from the center pixel, the higher the probability that the search pixel and the center pixel belong to the same object instance. Accordingly, the instance-level semantic segmentation obtained is more accurate.

[0050] In another implementation of the first aspect, the device is used to: calculate a distance measure of search pixels in the search area with respect to a center pixel of the search area by executing the improved SLIC algorithm, wherein the distance measure is compensated according to the number of boundary pixels and is calculated according to the one or more instance-level boundaries in each search area.

[0051] In another implementation of the first aspect, the device is used to: calculate the distance measure D according to the following equation:

[0052] And d b =n b / 4S 2 .

[0053] Among them, d C represents the color distance in the CIELAB domain from the search pixel to the center pixel, d S represents the distance measure in the spatial domain from the search pixel to the center pixel, m is the first weighting parameter, n b is the number of the boundary pixels in the search area, 4S2 is the total number of the pixels in the search area, and ∝ is the second weighting parameter.

[0054] The distance measure computed in the improved SLIC algorithm produces accurate results with little increase in computational complexity.

[0055] In another implementation of the first aspect, the device includes a CNN for performing instance-level semantic boundary detection.

[0056] This provides a particularly efficient implementation of instance-level semantic boundary detection.

[0057] In another implementation of the first aspect, the device includes a CNN subnet cascade, which is used to: operate the first subnet of the cascade to obtain one or more class level boundaries; operate the second subnet of the cascade to obtain one or more instance level boundaries for each of the one or more class level boundaries based on the class level boundaries obtained by the first subnet.

[0058] In another implementation of the first aspect, the device is further used to: operate the second subnet of the cascade to obtain one or more instance-level center points based on the one or more instance-level boundaries obtained by the second subnet.

[0059] CNN subnet cascading provides accurate results in an efficient manner and benefits from deep learning.

[0060] In another implementation of the first aspect, the device is used to: determine whether the class-level segment contains a single object instance or multiple object instances for the purpose of estimating the number of object instances in each class-level segment; and estimate the number of object instances for the class-level segment containing multiple object instances based on the one or more instance-level center points.

[0061] This enables the device to perform the improved SLIC algorithm more efficiently.

[0062] In another implementation of the first aspect, the device includes a CNN for performing class-level semantic segmentation of the image.

[0063] The second aspect of the present invention provides a method for instance-level semantic segmentation of an image, the method comprising: performing class-level semantic segmentation of the image to obtain one or more class-level segments, wherein each class-level segment has an object class associated with it; performing instance-level semantic boundary detection on the image to obtain one or more instance-level boundaries, wherein each instance-level boundary has an instance-level center point; based on the number of instance-level center points located in the class-level segments, for each class-level segment, estimating the number of object instances in the class-level segment; based on the one or more instance-level boundaries, for each class-level segment whose estimated number of object instances is greater than 1, performing an improved Simple Linear Iterative Clustering (SLIC) algorithm to obtain multiple superpixels as instance-level segments.

[0064] In an implementation of the second aspect, the method includes: based on the estimated number of object instances in a given class-level segmentation, executing the improved SLIC algorithm for the segmentation to initialize multiple search areas, each of which surrounds a center pixel and corresponds to the estimated number of object instances in the segment.

[0065] In another implementation of the second aspect, the improved SLIC algorithm is improved on the basis of the SLIC algorithm to consider multiple boundary pixels and perform calculations based on the one or more instance-level boundaries in each search area.

[0066] In another implementation of the second aspect, it includes: by executing the improved SLIC algorithm, assigning search pixels to superpixels, the search area of ​​the superpixel includes a minimum number of boundary pixels, and the minimum number is calculated based on the one or more instance-level boundaries separating the search pixel and the center pixel of the search area.

[0067] In another implementation of the second aspect, the method includes: calculating a distance measure of search pixels in the search area with respect to a center pixel of the search area by executing the improved SLIC algorithm, wherein the distance measure is compensated according to the number of boundary pixels and is calculated according to the one or more instance-level boundaries in each search area.

[0068] In another implementation of the second aspect, the method includes: calculating the distance measure D according to the following equation:

[0069] And d b =n b / 4S 2 .

[0070] Among them, d C represents the color distance in the CIELAB domain from the search pixel to the center pixel, d S represents the distance measure in the spatial domain from the search pixel to the center pixel, m is the first weighting parameter, n b is the number of the boundary pixels in the search area, 4S2 is the total number of the pixels in the search area, and ∝ is the second weighting parameter.

[0071] In another implementation of the second aspect, the method includes: performing instance-level semantic boundary detection using CNN.

[0072] In another implementation of the second aspect, the method includes: operating a first subnet of a CNN subnet cascade to obtain one or more class level boundaries; operating a second subnet of the cascade to obtain one or more instance level boundaries for each of the one or more class level boundaries based on the class level boundaries obtained by the first subnet.

[0073] In another implementation of the second aspect, the method includes: operating the second subnet of the cascade to obtain one or more instance level center points based on the one or more instance level boundaries obtained by the second subnet.

[0074] In another implementation of the second aspect, the method includes: determining whether the class-level segment contains a single object instance or multiple object instances for the purpose of estimating the number of object instances in each class-level segment; and estimating the number of object instances for the class-level segment containing multiple object instances based on the one or more instance-level center points.

[0075] In another implementation of the second aspect, the method includes: performing class-level semantic segmentation of the image using CNN.

[0076] The advantages and effects achieved by the method described in the second aspect and its implementation are the same as those of the device described in the first aspect and its corresponding implementation.

[0077] The third aspect of the present invention provides a computer program product, comprising: program code, wherein, when the program code is implemented on a processor, controls the device according to any one of the first aspect or its implementations or executes the method according to the second aspect or its implementations.

[0078] Accordingly, the computer program product of the third aspect can achieve the same advantages and effects as described above with respect to the device of the first aspect and the method of the second aspect, respectively.

[0079] It should be noted that all devices, elements, units and means described in this application can be implemented by software or hardware elements or any combination thereof. All steps performed by various entities described in this application and functions performed by various entities are intended to indicate that the corresponding entity is applicable to or used to perform the corresponding steps and functions. Even in the following description or in a specific embodiment, the specific functions or steps performed by an external entity will not be reflected in the description of the specific detailed elements of the entity that performs the specific steps or functions, and the technician should be aware that these methods and functions can be implemented by corresponding software or hardware elements or any combination thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0080] In conjunction with the accompanying drawings, the following description of specific embodiments will illustrate various aspects of the present invention and their implementation forms, wherein:

[0081] Figure 1 A device provided by an embodiment of the present invention is shown;

[0082] Figure 2 A device provided by an embodiment of the present invention is shown;

[0083] Figure 3 The CNN architecture of a device provided by an embodiment of the present invention is shown;

[0084] Figure 4 An exemplary image is shown, wherein two superpixels and search windows are shown. Compared with one search window, another search window corresponding to the superpixel includes more boundary pixels;

[0085] Figure 5 A method provided by an embodiment of the present invention is shown;

[0086] Figure 6 and Figure 7 The class-level semantic boundaries in the image are shown respectively (see Figure 6 ) and instance-level semantic boundaries (see Figure 7 ) example. DETAILED DESCRIPTION

[0087] Figure 1 A device 100 provided by an embodiment of the present invention is shown. The device 100 is used to perform instance-level semantic segmentation of an image 101. To this end, the device 100 may include a processing circuit, such as at least one processor, and / or may include one or more CNNs and / or subnetworks to perform at least one of the following functions.

[0088] The apparatus 100 is used to perform class-level semantic segmentation 103 of an image 101 (in Figure 1104 (schematically shown in FIG. 104 ) to obtain one or more class-level segments 106. Each class-level segment 106 has an object class associated therewith.

[0089] The 100 is also used to perform instance level semantic boundary detection 102 on the image 101 (in Figure 1 101 ), to obtain one or more instance-level boundaries 108, and for each instance-level boundary 108, to obtain an instance-level center point 107, such as a centroid. Therefore, the instance-level semantic boundary detection 102 generates all estimated instance-level center points 107 in the image 101. The device 100 can perform the class-level segmentation 103 and the instance-level boundary detection 102 in parallel or in part or one by one.

[0090] The device 100 is further configured to estimate 104 (in the example) the number of instance-level center points 107 located in the class-level segment 106 for each class-level segment 106 provided by the class-level semantic segmentation 103. Figure 1 1 (schematically shown in FIG. 1 ) the number of object instances in the class level segment 106. In particular, this generates all class level segments 109 for which the estimated number of object instances is greater than one.

[0091] In addition, the device 100 is further configured to: based on the one or more instance level boundaries 108, for each class level segment 109 where the estimated number of object instances is greater than 1, execute the improved SLIC algorithm 105 (in Figure 1 ), to obtain multiple superpixels as instance-level segments 110. By obtaining these instance-level segments 110, the device 100 has successfully performed instance-level semantic segmentation of the image 101.

[0092] In other words, the proposed technique may start by performing class-level semantic segmentation 103 of the image 101 under consideration and estimating instance-level semantic boundaries 108. Instance-level semantic boundary detection 102 provides estimates of boundaries 108 of semantically related objects such as cars, pedestrians, and various other classes at the instance-level hierarchy, as well as estimates of center points 107 of all object instances in the image 101.

[0093] The estimated semantic boundaries 108 may not be accurate enough to be used directly to estimate the desired instance-level semantic segmentation of the image 101. To address this limitation, the technique takes advantage of the improved SLIC algorithm 105. First, the device 100 is used to use the estimated center points 107 (such as 2D centroids) of all instances to determine, for each class-level segment 106 in the image 101, whether the corresponding segment 106 contains multiple instances of the same class. To this end, the device 100 can be used to estimate the number of instances within each class-level segment 106.

[0094] Then, the improved SLIC algorithm 105 is applied within each class-level segment 109 containing several instances. The improvement of the SLIC algorithm may specifically include integrating information about semantic boundaries 108 into the distance measure between each search pixel and the center of the superpixel under consideration (which will be further described in detail below). The improved SLIC algorithm 105 may also use the number of instances 201 previously estimated as an additional input (see Figure 2 ). These steps can be completed separately for each multi-instance class-level segmentation 109 within the image 101.

[0095] Figure 2 The device 100 provided by an embodiment of the present invention is shown. The device is established in Figure 1 The same reference symbols are used to mark the same functions and calculation / estimation elements. It is worth noting that Figure 2 The device 100 shown in the figure can be implemented in an autonomous vehicle or a robot, or can be used in an autonomous vehicle or a robot.

[0096] Figure 2 The device 100 in the embodiment may be used to capture (or receive from an external capture device) one or more images 101 of a scene surrounding an autonomous vehicle or robot. The device 100 may perform its instance-level semantic segmentation on RGB and / or grayscale images 101. The device 100 may also benefit from different capture settings, such as stereo or camera arrays, but in the following the device 100 is described as being input with respect to a single texture image 101.

[0097] In the following, different functional blocks of the device 100 are described. These functional blocks may be executed in a single hardware element (such as a processing circuit or a processor), or may be executed in different hardware elements (such as multiple processors and / or CNNs).

[0098] In the functional blocks of the device 100, an instance level estimation 102 of object boundaries 108 is performed on a previously captured texture image 101. For this purpose, conventional methods may be used. For example, the methods described in "Kokkinos, I., Advancing Boundary Detection with Deep Learning, 2016 International Conference on Learning Representations (ICLR)", "Xie, S., Tu, Z., Holistic Nested Edge Detection, 2015 International Conference on Computer Vision (IEEE International Conference on Computer Vision, ICCV), "Bertasius, G.; Shi, J., Torresani, L., Application Security Gateway: Multi-Scale Bifurcated Deep Networks for Top-Down Contour Detection, 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR)" or "Maninis, K., Pont-Tuset, J., Arbelaez, P. and Van Gool, L., Convolutional Oriented Boundaries, 2016 European Conference on Computer Vision (ECCV)" can be used.

[0099] However, as an advantageous alternative to conventional methods, the apparatus 100 may include and use Figure 3 300 is shown in FIG. In such a CNN-based device 100, instance level boundary detection 102 may be performed using CNN 300. CNN 300 may include a cascade of CNN subnets 301 and 302. Figure 3 As shown, the end-to-end mapping can be divided into two subnets 301, 302. The first subnet 301 can be trained and operated to generate class-level semantic boundaries 303 (according to the classes defined in the training set). The second subnet 302 can be trained and operated, and it is ensured that the second subnet thereby learns the mapping between the concatenation of the input image 101 and the output of the first subnet 301, as well as the mapping between the instance-level semantic boundaries 108 of the image 101. In addition, the second subnet 302 can be trained and operated to provide the center point 107 (such as the 2D centroid) of the object instance in the image 101. This information can then be used to apply the subsequent improved SLIC algorithm 105.

[0100] In another functional block of the device 100, a semantic segmentation 103 of the input image 101 of the considered scene is performed. At this level, it is not necessary to perform instance level semantic segmentation. Conventional class level semantic segmentation algorithms can be used, such as conventional SLIC, SNIC or BSLIC algorithms.

[0101] In another functional block of the device 100, the number of object instances in each segment 106 can be estimated 201. For example, by using the input image 101, the output of the instance-level semantic boundary detection 102 (the estimated center points 107 in the image 101) and the output of the class-level semantic segmentation 103 (the estimated class-level segments 106 in the image 101), two pieces of information are extracted for each class-level segment 106 in the image 101: First, check whether the class-level segment 106 under consideration contains multiple instances of the same object (i.e., it is a multi-instance segment 109) or only contains a single object of the corresponding class (i.e., it is a single-instance segment). This can be done by checking whether the class-level segment 106 under consideration contains more than one center point 107. Next, in the case of a multi-instance segment 109, the number of objects (object instances) within the specific multi-instance segment 109 can be estimated 201. This estimation can be done by calculating the number of center points 107 within the multi-instance segment 109 (e.g., 2D centroid estimation). This may be done for each class level segment 106 in the image 101. The number of instances 201 within the segment 109 may then be used for subsequent execution of the improved SLIC algorithm 105.

[0102] In another functional block of the device 100, an improved SLIC algorithm 105 is applied. In particular, a superpixel segmentation is performed for each multi-instance segmentation 109 by the improved SLIC algorithm 105. This allows to separate each object instance. The improvement of the conventional SLIC algorithm is carried out around the integration of instance level semantic boundaries 108 in order to improve the performance of the conventional SLIC superpixel segmentation. The improved SLIC algorithm 105 preferably uses as input the previously estimated number of instances 201 within the multi-instance segmentation 109.

[0103] It is worth noting that during conventional SLIC superpixel segmentation (conventional SLIC algorithm), each pixel in an image or image segment is compared to the center of a superpixel whose search region includes the pixel being explored. This comparison is based on a distance measure D of the search pixel in the search region relative to the center pixel of the search region, typically expressed as:

[0104]

[0105] d c represents the color distance from the search pixel to the center pixel (in the CIELAB domain), d srepresents the distance measure in the spatial domain of the search pixel. S represents the initial sampling interval, and m is a weighting parameter that allows weighting the contribution of the spatial distance measure relative to the color distance. The search window for possible new pixels for each superpixel is 2Sx2S, i.e. 4S 2 is the total number of pixels in the search area.

[0106] Accordingly, the pixel under consideration will be assigned to the superpixel where the distance D between the search pixel and the cluster center pixel is the smallest. The improved SLIC algorithm 105 is similar to the SLIC algorithm.

[0107] However, in the improved SLIC algorithm 105 executed by the device 100, in addition to the color distance d c and the spatial distance measure d s In addition, information about the determined instance-level semantic boundaries 108 is integrated into the decision. Figure 4 For illustration, the figure shows an exemplary image 101 under consideration, in which two superpixels (in particular their centers 402) and two corresponding search areas 401 (search windows of superpixels) around a central pixel 402 are exemplarily shown. It is noteworthy that the number of boundary pixels 403 included in one search area 401 corresponding to the first superpixel 1 is greater than the number of boundary pixels included in another search area 401 corresponding to the second superpixel 2.

[0108] The apparatus 100 may be used to count the number of boundary pixels 403 within the search area 401. The number of boundary pixels 403 may then be integrated into a distance measure (referred to as D of the improved SLIC algorithm 105). new When more boundary pixels 403 are detected, the integration makes D new Increase. In this way, Figure 4 The considered pixel 404 shown in will be assigned to the superpixel where fewer boundary pixels 403 separate the search pixel 404 and the superpixel center 402.

[0109] Therefore, the device 100 is used to calculate the boundary pixels n for each search area 401 according to the information provided by the instance-level semantic boundary detection 102. b Then, it can be calculated based on the total number of pixels (4S 2 ) normalizes the number of boundary pixels 403. Finally, it can be included in the equation to obtain the distance measure D according to the following equation new :

[0110] And d b =n b / 4S2 .

[0111] In the above formula, the second weighting parameter α weights the contribution of the introduced boundary distance to the overall distance measure. Similar to the above, d C represents the color distance in the CIELAB domain from the search pixel 404 to the center pixel 402, d S represents the distance measure in the spatial domain from the search pixel 404 to the center pixel 402, m is the first weighting parameter, n b is the number of the boundary pixels 403 in the search area 401 , and 4S2 is the total number of the pixels in the search area 401 .

[0112] After applying the improved version of the SLIC algorithm 105 on each multi-instance segment 109 , the apparatus 100 is configured to output an instance-level semantic segmentation 110 defining a desired instance-level semantic segmentation of the input image 101 .

[0113] Figure 5 A method 500 provided by an embodiment of the present invention is shown. The method 500 is particularly used for instance-level semantic segmentation of an image 101. The method 500 includes step 501, performing 501 class-level semantic segmentation 103 of the image 101 to obtain one or more class-level segments 106, wherein each class-level segment 106 has an object class associated therewith. The method 500 also includes step 502, performing instance-level semantic boundary detection 103 on the image 101 to obtain one or more instance-level boundaries 108, wherein for each instance-level boundary 108, there is an instance-level center point 107. In addition, the method 500 includes: based on the number of instance-level center points 107 located in the class-level segment 106, for each class-level segment 106, estimating 503 the number of object instances in the class-level segment 106. In addition, the method 500 includes step 504, executing the improved SLIC algorithm 105 for each class-level segment with an estimated number of object instances greater than 1 based on the one or more instance-level boundaries 108 to obtain multiple superpixels as instance-level segmentations 110.

[0114] The invention has been described in conjunction with different embodiments and implementations as examples. However, other variants can be understood and obtained by a person skilled in the art by practicing the claimed invention, studying the drawings, the present disclosure and the independent claims. In the claims and the description, the term "comprising" does not exclude other elements or steps, and "a" does not exclude the possibility of a plurality. A single element or other unit may fulfil the functions of several entities or items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not mean that a combination of these measures cannot be used in an advantageous implementation.

Claims

1. A device (100) for instance-level semantic segmentation of an image (101), characterized in that The device (100) comprises a processing circuit so that the device (100) performs the following steps: performing class-level semantic segmentation (103) of the image (101) to obtain one or more class-level segments (106), wherein each class-level segment (106) has an object class associated therewith; Performing instance-level semantic boundary detection (102) on the image (101) to obtain one or more instance-level boundaries (108), wherein each instance-level boundary (108) has an instance-level center point (107); estimating (104) the number of object instances in the class-level segment (106) for each class-level segment (106) based on the number of the instance-level center points (107) located in the class-level segment (106); Based on the one or more instance-level boundaries (108), for each class-level segment (109) whose estimated number of object instances is greater than 1, an improved Simple Linear Iterative Clustering (SLIC) algorithm (105) is performed to obtain multiple superpixels as instance-level segments (110).

2. The device (100) according to claim 1, characterized in that Used for: Based on an estimated number of object instances (201) in a given class-level segment (106), the improved SLIC algorithm (105) is executed for the segment (106) to initialize a plurality of search regions (401), each of which is centered around a center pixel (402) and corresponds to the estimated number of object instances (201) in the segment (106).

3. The device (100) according to claim 1 or 2, characterized in that The improved SLIC algorithm (105) is improved on the basis of the SLIC algorithm to consider multiple boundary pixels (403) and perform calculations based on the one or more instance-level boundaries (108) in each search area (401).

4. The device (100) according to any one of claims 1 to 2, characterized in that Used for: By executing the improved SLIC algorithm (105), a search pixel (404) is assigned to a superpixel, and the search area (401) of the superpixel includes a minimum number of boundary pixels (403), and the minimum number is calculated based on the one or more instance-level boundaries (108) separating the search pixel (404) from the center pixel (402) of the search area (401).

5. The device (100) according to any one of claims 1 to 2, characterized in that Used for: By executing the improved SLIC algorithm (105), a distance measure of the search pixels (404) within the search area (401) is calculated with respect to a center pixel (402) of the search area (401), wherein the distance measure is compensated according to the number of boundary pixels (403) and is calculated according to the one or more instance level boundaries (108) in each search area (401).

6. The device (100) according to claim 5, characterized in that Used for: The distance measure D is calculated according to the following equation, And d b =n b / 4S2; Among them, d C represents the color distance in the CIELAB domain from the search pixel (404) to the center pixel (402), d S represents the distance measure in the spatial domain from the search pixel (404) to the center pixel (402), m is the first weighting parameter, n b is the number of the boundary pixels (403) in the search area (401), 4S2 is the total number of the pixels in the search area (401), and ∝ is a second weighting parameter.

7. The device (100) according to any one of claims 1 to 2, characterized in that include: A convolutional neural network (CNN) (300) is used to perform instance-level semantic boundary detection (102).

8. The device according to claim 7, characterized in that The CNN sub-network (301, 302) is cascaded to: operating the first subnet (301) of the cascade to obtain one or more class level boundaries (303); The cascaded second subnet (302) is operated to obtain one or more instance level boundaries (108) for each of the one or more class level boundaries (303) based on the class level boundaries (303) obtained by the first subnet (301).

9. The device (100) according to claim 8, characterized in that Also used for: The second subnet (302) of the cascade is operated to obtain one or more instance level center points (107) based on the one or more instance level boundaries (108) obtained by the second subnet (302).

10. The device (100) according to any one of claims 1 to 2, characterized in that For the purpose of estimating the number of object instances (201) in each class-level segment (106), determining whether the class level segment (106) contains a single object instance or contains multiple object instances; Based on the one or more instance-level center points (107), for a class-level segment (109) containing a plurality of object instances, the number of the object instances is estimated.

11. The device (100) according to any one of claims 1 to 2, characterized in that include: A Convolutional Neural Network (CNN) (300) is used to perform class-level semantic segmentation of images (103).

12. A method (500) for instance-level semantic segmentation of an image (101), characterized in that: The method (500) comprises: performing (501) class-level semantic segmentation (103) of the image (101) to obtain one or more class-level segments (106), wherein each class-level segment (106) has an object class associated therewith; Performing (502) instance-level semantic boundary detection (102) on the image (101) to obtain one or more instance-level boundaries (108), wherein for each instance-level boundary (108), there is an instance-level center point (107); estimating (503) the number of object instances in the class-level segment (106) for each class-level segment (106) based on the number of the instance-level center points (107) located in the class-level segment (106); Based on the one or more instance-level boundaries (108), for each class-level segment (109) whose estimated number of object instances is greater than 1, an improved Simple Linear Iterative Clustering (SLIC) algorithm (105) is executed (504) to obtain multiple superpixels as instance-level segments (110).

13. A computer program product, characterized in that include: Program code, wherein when the program code is implemented on a processor, the device (100) according to any one of claims 1 to 11 is controlled or the method (500) according to claim 12 is executed.

Citation Information

Patent Citations

  • Super-pixel segmentation method based on boundary information fusion

    CN106056155A

  • Image semantic segmentation method based on super-pixel edge and full convolutional network

    CN107424159A