Foreground extraction device and program

The foreground extraction device uses combined segmentation methods to refine candidate regions and construct labeled graphs, addressing inefficiencies and inaccuracies in existing technologies, achieving precise foreground extraction for applications like three-dimensional reconstruction and object recognition.

JP7568595B2Active Publication Date: 2024-10-16KDDI CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2021139425
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-08-27
Publication Date
2024-10-16
Estimated Expiration
2041-08-27

AI Technical Summary

Technical Problem

Existing foreground extraction methods using instance segmentation and graph structures face issues such as rough extraction results, disappearance of foreground regions, and inaccurate object boundaries due to excessive calculation and segmentation, leading to inefficient and imprecise outcomes.

Method used

A foreground extraction device and program that combines two segmentation methods to refine foreground extraction by using a first method for initial candidate region determination and a second method for fine segmentation, constructing a graph with labeled nodes, and minimizing costs to achieve efficient and accurate foreground extraction.

Benefits of technology

The solution enables efficient and precise foreground extraction by suppressing region counts and improving image segmentation accuracy, allowing for high-precision results in applications like three-dimensional reconstruction and object recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007568595000005
    Figure 0007568595000005
  • Figure 0007568595000006
    Figure 0007568595000006
  • Figure 0007568595000007
    Figure 0007568595000007
Patent Text Reader

Abstract

To efficiently perform foreground extraction from a video based on a graph structure.SOLUTION: A foreground extraction device for extracting a foreground in each frame of a first video by receiving input of the first video to which a distinction between the foreground and a background is not applied and a second image group to which the distinction is applied, extracts a foreground candidate region by applying the first technique to each image in the first and second image groups (3), obtains a target region in which the foreground candidate region is corrected by collating the foreground candidate region with a region division result of applying a second technique for realizing region division subdivided more than the first technique to the corresponding image (4), constructs a graph to which a distinction between a foreground and a background is applied as a label when each target region is a node and each node is caused in the second image group, and estimates the distinction between the foreground and the background as the label for the node caused in the first video out of the nodes of the graph such that a cost of the graph is minimized to obtain a foreground extraction result in each frame of the first video (5, 6, 7).SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a foreground extraction device and a program for extracting a foreground from an image. [Background technology]

[0002] Technology for extracting foreground object regions such as people from video (foreground extraction technology) is widely used as a component technology for video processing applications such as person tracking, object recognition, and 3D space reconstruction. Many foreground extraction technologies have been proposed so far, and the latest one, Non-Patent Document 1, proposes a highly accurate foreground extraction technology that utilizes region division (extraction) technology such as semantic segmentation and machine learning based on graph structure.

[0003] FIG. 1 is an explanatory diagram of this existing foreground extraction technique, and shows a schematic diagram of the relationship between each of the data D1 to D5 handled in the technique and each of the processes P1 to P4 applied to these data.

[0004] For part (or all) of the input video data D1 from which the foreground is to be extracted, a histogram or maximum value of pixel values ​​is calculated (process P2) as a feature vector from each image region (segment) D2 after division resulting from segmentation (process P1). For the feature vectors obtained by performing this for multiple frames, a graph D3 is constructed in which each segment corresponds to a node, using the distance between each vector as an index (part P31 of process P3 for constructing graph D3). In addition, a certain number of frames are selected from a different video D4 to which correct answer label data (binary image including the correct foreground region) has been added in advance, and nodes obtained from the segments in the same manner as above are added to the graph D3 (the remaining part P32 of process P3 for constructing graph D3).

[0005] Here, the process P3 for constructing the graph D3 is composed of a process P31 for constructing nodes with undetermined labels and a process P32 for constructing nodes with correct labels, as shown in the explanatory column in FIG. 1. In the process P32 for the correct labels, for nodes corresponding to the video D4 to which correct label data has been assigned, a determination is made as to whether the segment is foreground (or background) by comparing the correct foreground region with each segment, and a foreground / background label is assigned as the correct label to construct the node. On the other hand, in the process P31 for the undetermined labels, for segments included in the frames of the input video D1 that do not have corresponding correct data, nodes are constructed with an undetermined label. (In FIG. 1, the graph D3 is diagrammatically shown with nodes with undetermined labels as white nodes and nodes with correct labels assigned as gray.)

[0006] Next, some (or all) of the nodes are sampled from the graph D3, and the undetermined labels are determined (process P4) by an interpolation process (semi-supervised learning) based on the graph structure. Note that the interpolation process only determines the foreground / background labels for each segment, and does not change the pixel values ​​of each segment (such as the size of the area). These processes are performed on all of the video data D1 to be extracted, resulting in a highly accurate foreground extraction result D5. [Prior art documents] [Non-patent literature]

[0007] [Non-Patent Document 1] JH Giraldo, S. Javed and T. Bouwmans, "Graph Moving Object Segmentation," IEEE Transactions on Pattern Analysis and Machine Intelligence, 2020. [Non-Patent Document 2] R. Achanta, A. Shaji, K. Smith, A. Lucchi, P. Fua, and S. Susstrunk, "SLIC superpixels compared to state-of-the-art superpixel methods", IEEE Transactions on Pattern Analysis and Machine Intelligence, 2011. Summary of the Invention [Problem to be solved by the invention]

[0008] In the existing method, various segmentation methods can be used for the process P1, but if the entire screen is divided into small parts, the number of segments and therefore the number of nodes will increase explosively, resulting in a huge amount of calculation for the interpolation process P4 based on the graph structure. For this reason, Non-Patent Document 1 mainly uses instance segmentation (or semantic segmentation) such as Mask-RCNN, which performs rough object recognition and extraction. Therefore, the obtained foreground extraction result D5 is also rough.

[0009] Here, in order to refine the foreground extraction result D5, it is conceivable to over-segment the segmentation in process P1 rather than roughly, but non-patent document 1 does not consider any measures to reduce the amount of calculations required in the case of over-segmentation.

[0010] From the above discussion, the existing method of Non-Patent Document 1 still has room for improvement in the following points (1) to (3).

[0011] (1) The final foreground extraction result D5 strongly depends on the segmentation result D2, so the regions that are not extracted in the instance segmentation P1 cannot be extracted in the final output D5. In other words, the foreground regions may disappear from each frame without being processed.

[0012] (2) Similarly, when using segmentation that roughly extracts object boundaries, such as instance segmentation P1, the object boundaries are not accurately extracted in the final output D5.

[0013] (3) If we were to use segmentation (over-segmentation) to finely divide the entire image in order to solve the above two problems, the number of nodes in the graph D3 would explode, requiring a huge amount of calculations in the semi-supervised learning process P4.

[0014] In view of the problems of the conventional technology described above, a first object of the present invention is to provide a foreground extraction device and a program capable of efficiently extracting foreground from an image based on a graph structure. A second object of the present invention is to provide a foreground extraction device and a program capable of simply and efficiently extracting foreground from an input image by using a novel configuration including only a part of the foreground extraction device that achieves the first object. [Means for solving the problem]

[0015] In order to achieve the above-mentioned first object, the present invention provides a foreground extraction device that receives as input a first video in which no distinction between foreground and background is assigned and a second group of images in which the distinction is assigned, and extracts the foreground in each frame of the first video, wherein the device applies a first method to each image of the first video and the second group of images to extract a foreground candidate region, compares the foreground candidate region with a region segmentation result obtained by applying a second method to the corresponding image, the second method realizing a finer region segmentation than the first method, to obtain a target region in which the foreground candidate region is corrected, constructs a graph in which each target region is a node and in which the distinction between foreground and background is assigned as a label if the node originates from the second group of images, and estimates the distinction between foreground and background as a label for each node of the graph that originates from the first video so as to minimize a cost of the graph, thereby obtaining a foreground extraction result for each frame of the first video.

[0016] In order to achieve the second object, the present invention has a second feature of being a foreground extraction device that extracts a foreground in an input image, which applies a first method to the input image to extract a foreground candidate region, compares the foreground candidate region with a region segmentation result obtained by applying a second method to the input image that achieves a finer region segmentation than the first method, and extracts the foreground in the input image as a target region obtained by correcting the foreground candidate region. Also, the present invention is characterized by being a program that causes a computer to function as the foreground extraction device. Effect of the Invention

[0017] According to the first feature, by using the first and second segmentation methods in combination to reduce the number of extracted regions and extract the regions in appropriate shapes, it is possible to efficiently extract foreground from an image based on a graph structure. According to the second feature, by using the first and second segmentation methods in combination to simply and efficiently extract foreground from an image. [Brief description of the drawings]

[0018] [Figure 1] FIG. 1 is an explanatory diagram of a foreground extraction technique according to an existing method. [Diagram 2] 1 is a functional block diagram of a foreground extraction device according to an embodiment. [Diagram 3] FIG. 13 is a diagram showing an example in which foreground extraction is inaccurate on an image. [Figure 4] FIG. 13 is a diagram showing an example of determining a foreground candidate region as a union; [Diagram 5] FIG. 13 is a diagram showing a schematic example of processing in a multiplexing division unit. [Figure 6] 3 is a functional block diagram of a foreground extraction device according to another embodiment, which includes only a part of the configuration of FIG. 2. [Figure 7] FIG. 1 is a diagram illustrating a hardware configuration of a typical computer. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0019] 2 is a functional block diagram of a foreground extraction device 10 according to an embodiment. Foreground extraction device 10 includes a video input unit 1, a background image generation unit 2, a foreground candidate region determination unit 3, a multiple division unit 4, a feature amount extraction unit 5, a graph construction unit 6, a label estimation unit 7, a video output unit 8, and a correct answer DB (database) 9.

[0020] While following the existing method of Fig. 1 as its overall operation, foreground extraction device 10 can perform efficient foreground extraction by an improved method of the existing method. That is, foreground extraction device 10 reads an input video (without answer label) from which foreground extraction is to be performed as a first input in video input unit 1, reads a video (with answer label) to which a foreground / background distinction is added that is prepared in advance in answer DB 9 as a second input, and performs semi-supervised learning by constructing a graph from the first input and the second input, thereby outputting the foreground extraction result of the first input at video output unit 8. (That is, the first input, the second input, and the output correspond to data D1, D4, and D5 shown in Fig. 1, respectively.)

[0021] The process of each functional unit of the foreground extraction device 10 will be described in detail below.

[0022] <<Video input section 1>> The video input unit 1 receives as input a video to be subjected to foreground extraction prepared by a user or the like, and outputs this input video to the background image generating unit 2 and the foreground candidate region determining unit 3. That is, consecutive frames I of the video to be subjected to extraction are t (t=1, 2, . . . ) is received as an input (first input) in foreground extraction device 10, and is output to background image generation unit 2 and foreground candidate region determination unit 3.

[0023] In the following, unless otherwise specified, a video frame (image) will be described as having only one channel such as brightness. However, in the case of multiple channels such as color images, the label of the corresponding image region is determined by majority vote of the final output of each channel (foreground / background label for each image region) and one channel from multiple channels (such as the Green channel) is used as input, or a representative value such as the average value is used as input. In this way, it is possible to apply the method to color images as well by performing processing for each color channel in a similar manner.

[0024] <<The correct answer is DB9>> The correct answer DB9 holds, as an input (second input) to the foreground extraction device 10, an image different from the image input to the image input unit 1 and data indicating an image area that is a foreground prepared in advance corresponding to the image (i.e., foreground area data as a correct answer label in each frame of the image). The second input data is prepared in advance by a user or the like and recorded in the correct answer DB9. Here, the image data (multiple image frames) and the corresponding correct answer label data (binary image of the corresponding frame) are held in a pair. In addition, for the binary image of the correct answer label data, an image is assumed in which a value of 1 is assigned only to image areas that are thought to be the foreground, such as a person area, and a value of 0 is assigned to other background areas.

[0025] The data recorded in the correct answer DB 9 is output to the background image generation unit 2 and the foreground candidate area determination unit 3 regarding the image, and is output to the graph construction unit 6 regarding the correct label data corresponding to the image, and is used in each unit to which it is output.

[0026] <<Background image generation unit 2>> The background image generating unit 2 receives as input the video obtained from the video input unit 1 and the video obtained from the answer DB 9, generates a background image for each video, and outputs the generated image to the feature extraction unit 5. Specifically, as in Non-Patent Document 1, for example, a certain video is received as input, and a background image can be generated by taking the median or average value of each pixel in multiple consecutive frames.

[0027] In this embodiment, the background image is assumed to be configured as follows. The video as the first input of the video input unit 1 is composed of a single scene and corresponds to a single background image, and the background image is generated in the background image generation unit 2. (When it is desired to obtain a foreground extraction result for videos with different scenes, the video is divided into scenes, the video composed of a common scene is input to the first input unit 1, and the operation of the entire foreground extraction device 10 is performed multiple times for each common scene video.) On the other hand, depending on the video content, the background image generation unit 2 may generate different background images for each section in the video for the first input video composed of a single scene. For example, when the video of the first input is long, multiple background images may be generated by taking the average value of a certain section of time near the video to be extracted in order to absorb changes in lighting, etc. Alternatively, in the case of a long video, it may be divided into short videos and one background image may be generated for each short section of the video.

[0028] Moreover, from the viewpoint of constructing an appropriate graph for semi-supervised learning, the second input video prepared in the answer DB 9 is composed of a variety of scenes and corresponds to a variety of background images, and background images are generated in the background image generation unit 2. When background images are prepared in advance manually for all or part of the second input video, the automatic generation of background images in the background image generation unit 2 may be omitted and the prepared background images may be used.

[0029] <<Foreground candidate area determination unit 3>> The foreground candidate region determiner 3 receives as input the video obtained from the video input unit 1 and the video obtained from the correct answer DB 9, determines a region that is a candidate for foreground extraction (foreground candidate region) for each frame of each video, and outputs the determined foreground candidate region to the multiplex division unit 4. (Note that, as shown in the configuration of FIG. 2, correct answer label data is not used in the subsequent processing up to the graph construction unit 6.) Specifically, the foreground candidate region can be determined as follows.

[0030] First, frame I at time t in the video to be extractedt For an image region that is recognized as a foreground object by instance segmentation (or semantic segmentation) such as Mask-RCNN (or a bounding box (rectangular surrounding frame) containing the region), we call IS (instance segmentation (or semantic segmentation)) region I t s Then, this IS region I t s Let Θ(I t s ) In addition, the IS region I t s Note that t includes all regions (independent regions) extracted in the frame at time t.

[0031] In the following description, the same function notation as above will be used as follows. Θ(·) … A function that returns a set of pixel indices corresponding to the image region of the input variable Θ x -1 (·) … A function that takes a set of pixel indices as input and returns the image region of image x.

[0032] This set of pixel indices Θ(I t s )(IS area I t s It is desirable that all foreground objects are extracted with high accuracy at the time the image segmentation information (identical to the information in ) is obtained, but there are cases where candidate regions that should be extracted cannot actually be extracted due to a lack of learning data for instance segmentation or noise in the target image. In other words, there may be cases where the original foreground object is extracted as a region, but the object region is inaccurate due to an excess or deficiency in its boundary, or where a region that should be extracted as a foreground object is not extracted at all (extracted completely as background), or conversely, where a part that should be background is extracted as foreground.

[0033] Figure 3 shows an example of inaccurate extraction. Extraction result I1 for frames I1, I2, and I3 that are consecutive in time on the video. S ,I2 S ,I3 S Regarding frame I1 and I3, foreground objects (for example, a car) have been extracted, but the boundaries are inaccurate. Meanwhile, for frame I2 in the middle, extraction results similar to those for the two adjacent frames I1 and I3 on ​​the video should be similar, but in reality, no foreground area has been extracted at all. (Note that in the example of Figure 3, the extraction results are shown with the white area on the image as the foreground and the black area as the background.)

[0034] To solve this problem, the foreground candidate region determination unit 3 performs the following steps for each frame I t IS region I t s The result of the foreground candidate region f t Let us assume that.

[0035] That is, frame I at time t t Before and after λ frame I t-λ ,I t-λ+1 ,…,I t ,…,I t+λ-1 ,I t+λ (Let λ be a given number, and frame I t λ frames before frame I t Using the extraction results from the 2λ+1 frames around frame It (including the λ frames following frame It), a pixel index set to be output as the foreground candidate region at the relevant time is calculated. Specifically, as shown in the following formula (1), the union of pixel indexes corresponding to the IS region of the preceding and following λ frames is calculated as the foreground candidate region f of the target frame. t The output is adopted as:

[0036]

number

[0037] In addition, f tdenotes all foreground candidate regions in the frame at time t, and may contain multiple independent foreground candidate regions. Hereafter, we refer to these independent image regions (or the bounding boxes that contain them) as f t,i Let (i∈{1,…,N}) (i.e., f t ={f t,i |i∈{1,…,N}} (where N is the number of independent image regions (element regions)), and the region f t,i Each of the other domains f t,j (j ≠ i) is a non-overlapping connected region.)

[0038] FIG. 4 shows an example of determining a foreground candidate region as a union using formula (1). The extraction result I1 of frames I1, I2, and I3 that are consecutive in time on an image obtained under the same circumstances as in FIG. S ,I2 S ,I3 S Regarding the middle extraction result I2 S For λ=1, the extraction results for one frame before and after I1 S ,I3 S The union of the set ∪(I1 S ,I2 S ,I3 S ) is obtained as the foreground candidate region f2. Extraction result I2 S In the example, no foreground was present at all, whereas in the foreground candidate region f2 obtained by taking the union, the foreground is present.

[0039] If the foreground object is moving, then image I t The foreground object in the image and the foreground candidate region f t However, in the downstream multiple division unit 4, image I t It is expected that by using the results of over-segmentation, it will be possible to extract foreground that matches the actual image content at time t, so it is assumed that this will not have a significant impact on the accuracy of foreground extraction.

[0040] As a variant, to resolve the spatial misalignment as much as possible, we use Θ(It+k s ), we estimate the spatial movement in each image using optical flow, etc., and calculate the spatial movement in each of the λ images I t+k By shifting the pixel position of to time t, frame I t The foreground object position in the image is simulated as Θ(I' t+k s ) may be used. (Here, region I' t+k s is area I t+k s By applying the optical flow movement between time t+k and t to the region I t+k s to a position corresponding to time t. Note that the optical flow may be applied on a pixel-by-pixel basis, on a block-by-block basis by dividing the image range, or on an average value over the entire image range.

[0041] In addition, when the image as the second input in the correct answer DB9 is not composed of consecutive frames (i.e., when it is composed only of an independent image group (multiple individual still images)), there is no spatial correlation between adjacent time frame images as images, so the foreground candidate region determination unit 3 simply outputs the output result of instance segmentation such as Mask-RCNN for each image in the correct answer DB9 as the foreground candidate region. When both the first input and the second input are composed of images, the above optical flow method (Θ(I t+k s ) instead of Θ(I' t+k s ) and the second input consists of individual still images rather than video, the result of instance segmentation may simply be taken as the candidate foreground regions for the second input.

[0042] <<Multiple division section 4>> In the multiple division unit 4, each frame I t Foreground candidate region f tBy multiplexing the segments obtained by applying a plurality of segmentation techniques to the first input, the image region to be used for image feature extraction in the feature extraction unit 5 at the subsequent stage is determined. (Note that, as shown in the data processing flow in FIG. 2, the processes of the foreground candidate region determination unit 3 and the multiple division unit 4 are applied to both the image without the correct answer label of the first input and the image (and / or still image group) with the correct answer of the second input. This is expected to have the effect of making the distribution of image regions in the graph construction in the graph construction unit 6 at the subsequent stage closer between the first input and the second input. On the other hand, the foreground region assigned as the correct answer label of the second input may differ from the image region obtained by the multiple division unit 4 for the second input (corresponding to the candidate for the foreground region in the case of the first input). Of the image regions obtained by the multiple division unit 4 for the second input, the region that is mostly foreground even in the correct answer label of the second input is assigned the foreground label when constructing the graph, and the region that is mostly background in the correct answer label of the second input is assigned the background label when constructing the graph.)

[0043] Specifically, the multiple division unit 4 divides the area f obtained by the foreground candidate area determination unit 3 into t,i (Foreground candidate area f t For a rectangular image including the object and background images (each of which is an independent region as a component of the object), region division is performed using a segmentation technique different from the segmentation used by the foreground candidate region determination unit 3. As an example, the rectangular image is divided into small regions (SS regions) using superpixel segmentation such as SLIC (Simple Linear Iterative Clustering) disclosed in Non-Patent Document 2. This operation results in each divided segment being an over-division of the object or background image, and it becomes impossible to represent a foreground object with only one SS region, but on the other hand, it is expected to obtain a group of regions that are accurately divided at the object boundaries. (That is, the rectangular image to be divided will have only one individual region f as a candidate for one foreground object.) t,i By including the individual domain f t,iSince the size of the rectangular image is about the same as that of the foreground object, the multiple small regions (SS regions) obtained by dividing the rectangular image of the same size using superpixel segmentation are naturally obtained by further dividing the foreground object region. Note that superpixel segmentation is a region division method, and the multiple small regions (SS regions) obtained contain information on the distinction between regions, but do not contain information on the distinction between foreground and background.)

[0044] Next, we define a foreground candidate region f t Each element domain f t,i and SS region group s t,j (j∈{1,…,M}) (M is the number of SS regions) and compare them to find the region I for the feature extraction target v∈{1,…V} as shown in the following equations (2) and (3). v (Feature extraction target area) is determined. (Note that the capital letter V stands for the determined area I. v The number of "area I v In the descriptions such as ", the lowercase v is a continuous index of the feature extraction target region in the (V) foreground extraction target frames, and when referring to the feature extraction target region of the time frame t, it is written as I v t Similarly, in the above, the input image frame at time t is I t However, in this area I v or I v t In order to distinguish more clearly from the frame I (besides the distinction between the subscripts t and V), t Regarding the following, we use superscripts to refer to the frame I t ) The element domain f t,i SS region s that does not overlap with t,j Regarding Area I v , and the element domain f t,i SS region s overlapping with t,j Regarding Area I v By making it a component of the element domain f t,i For each of the SS regions s t,j and the part that overlaps (s t,j ∩ft,i ) for the SS region s t,j The remaining part (s t,j \f t,i , where "\" is the difference set), and then add v t (That is, in general, we can obtain the foreground candidate region f t By expanding the above, we have the following region I: v t can be obtained.)

[0045]

number

[0046] In formulas (2) and (3), i ∈ {1, 2, ..., N}, and this index i is the sum of N element domains f t,i And the expanded and modified region I i On the other hand, "I v t =I i " is the region I used fixedly in the frame at time t. i Let i be the index of region I in the entire video of the first input (at any time t). v t (For example, if the first input consists of two frames, and there are two regions i∈{1,2} in the frame at time t=1, and there are three regions i∈{1,2,3} in the frame at time t=2, the indexes of the five regions in the entire two-frame video are obtained in the form of v∈{1,2,3,4,5}, etc.) On the other hand, as already explained, j∈{1,2,…,M} is an element region f of a frame at a certain time t. t,i When we look at this element area f t,i The inclusion area (bounding box, etc.) of each SS region s is divided by superpixel segmentation. t,j (Therefore, for the total number M, M = M(t,i).)

[0047] FIG. 5 shows a schematic example of the process in the multiple division unit 4, divided into upper, middle and lower parts. t As shown in the middle section, each element domain f t,i In the example of FIG. 5, each of the foreground candidate regions f t In the element domain f t,i (One of three possible values ​​is shown here) is the subject of over-partitioning, and the partitioning result {s t,j} is obtained. The element domain f t,i and the SS element domain s of the division result t,j and the element domain f t,i SS element region s that overlaps at least partially with t,j For the element domain f t,i As a result of the expansion at the boundary of the region I, which is the region to be extracted as a feature of the formula (2) shown in the lower part of FIG. v (=I v t ) is obtained.

[0048] In this way, the area I obtained by the multiple division unit 4 v t Although it contains errors, it has been processed by the foreground candidate region determination unit 3 and the multiple division unit 4 so as to include as many correct answers as possible (and therefore, conversely, it has been processed so as not to miss as many correct answers as possible), and it is assumed that it contains unnecessary things (however, only the boundaries are neatly divided). In the foreground extraction device 10 of this embodiment, further, by processing after the multiple division unit 4, this region I v t By using graph cost optimization, unnecessary parts (area I v t ) can be removed to obtain a foreground extraction result. (Note that, as will be described later with reference to FIG. 6, it is also possible to extract the foreground from only one still image by the method exemplified in FIG. 5 using a configuration in which only the foreground candidate area determination unit 3 and the multiple division unit 4 are extracted as a part of the foreground extraction device 10 configured in FIG. 2.)

[0049] As another segmentation method other than superpixel segmentation, the image is divided into small regions by a rectangular grid, and the foreground / background of each small region is determined and added to the SS region group s t,j (In the above formulas (2) and (3), the element domain f t,i At the boundary of the SS region s t,j When overlapping, only the non-overlapping parts are expanded, so that the element area f t,i There is no part that is removed from the element area f t,i In the case of small regions located on the boundary between the two, if the small regions become background according to the result of this determination, they may be deleted.) In addition, a foreground region obtained by a foreground object technique such as background subtraction, which has drawbacks such as being sensitive to noise but is capable of expressing object boundaries relatively accurately, may be used as the SS region.

[0050] As mentioned above, the foreground candidate region f t Each independent region f t,i By re-dividing limited regions such as these using segmentation and narrowing down those regions from which features are to be extracted, it is possible to prevent an increase in the number of regions subject to feature extraction, which is expected to have the effect of preventing an increase in the number of nodes in graph construction.

[0051] <<Feature Extraction Unit 5>> The feature extraction unit 5 extracts the feature from the region I obtained by the multi-division unit 4. v Each of (and this area I v The background image generated by the background image generating unit 2 as a corresponding image to the v-th feature extraction target region I is used as an input to extract image features (feature vectors) and output them to the graph constructing unit 6. v t According to the method of Non-Patent Document 1, a feature vector can be calculated for the following:

[0052] B v The region I to be extracted is output from the background image generator 2.v t Let v be the background image region (or its rectangular image) corresponding to x t (Θ(I v t )) and v y t (Θ(I v t )) as the horizontal (image x-axis direction) and vertical (image y-axis direction) indices Θ(I v t ) corresponds to the current frame I t (⊃I v t ) are the optical flow vectors of I v t , I v t-1 , B v , |I v t -B v |, v x t (Θ(I v t )) and v y t (Θ(I v t )) by calculating and combining texture patterns, intensity histograms, statistics such as maximum values, minimum values, and standard deviations, and features in the hidden layers of deep learning, v t The feature vector x corresponding to v Output.

[0053] <<Graph Construction Part 6>> The graph constructing unit 6 extracts the feature vector x v Using this, a graph having a node corresponding to the v-th feature extraction target region is constructed, and output to the label estimation unit 7. Specifically, first, the similarity distance d(i,j) between two feature extraction target regions (between nodes) (contrary to normal distance, this distance increases as the similarity increases, and the greater the distance, the more similar the regions are, and corresponds to the edge weight d(i,j)) is calculated according to the following equations (4), (5), and (6).

[0054]

number

[0055] Here, g(I i ) is the feature extraction target area I i is a function that returns the center of gravity (or a representative value of a similar image coordinate) of a vector, and σ x , σ g are x i and g(I i ) is the standard deviation corresponding to d g (i,j) is the feature extraction target region I i and I j are the same frame (one frame I t ) and within a certain distance (the common frame I t The two regions in question I i and I j This works to increase the similarity between regions only when the spatial distance between the regions is within a certain distance β. Furthermore, α is a user-set variable that adjusts the balance between the similarity of the feature vectors of the region to be extracted and the spatial distance on the image plane. Using this similarity distance index d(i,j), the nearest node (most similar node) to the Kth node are connected as nearby nodes (similar nodes) using the K-nearest neighbors method. At this time, a method may be used in which nodes that are included in the Kth neighbors but have a similarity distance above a certain threshold are not connected. In addition, graph construction based on existing similarity (distance) indices can be widely used.

[0056] In this embodiment, in particular, d in formula (4) g By introducing the (i,j) term, it becomes possible to connect feature extraction target regions that are close to each other on the image plane as neighboring nodes, and it becomes possible to collectively extract multiple feature extraction target regions that have been over-segmented by the processing of the label estimation unit at the subsequent stage as the foreground.

[0057] In the graph construction unit 6, by determining the distance d(i,j) between different nodes i and j as described above, it is determined whether or not to provide an edge between nodes i and j (whether nodes i and j are adjacent), and a graph is determined between nodes i and j between which an edge is provided, with the similarity distance d(i,j) (the higher the similarity, the larger the edge weight d(i,j) is), and for each node of the graph, if the node corresponds to the first input image of the image input unit 1, no label (label indicating the distinction between foreground and background) is assigned, and if the node corresponds to the second input image of the correct answer DB9, a label is assigned, and the graph is output to the label estimation unit 7. Note that if a node v corresponds to the second input image of the correct answer DB9, the feature quantity x corresponding to the node v is calculated. v Area I from which v In Region I, a label indicating whether the object is foreground or background can be added according to the foreground / background distinction situation. v If v consists of only background, the node v can be labeled as background.

[0058] That is, some of the nodes of the graph constructed by the graph construction unit 6 are calculated from the image of the correct answer DB 9 and have correct answer label data. Regarding label assignment, the correct answer label data (a binary image in which 1 is assigned to the foreground and 0 is assigned to the background) and the feature extraction target area I of the image at the corresponding time are v (corresponding to node v) and compare the region I v The result of the judgment of whether I is in the foreground is the foreground judgment result of node v, and is the correct label in the graph. v Calculate the intersection of the pixel indices of and call the number of pixels I v The value ξ normalized by the number of pixels v And, the number of pixels in the intersection set is compared with the correct label data I v The union of pixel indices μ divided by the number of pixels v Using methods such as intersection over union, the degree of overlap with the correct label data is determined, and the I v For I, we assign the foreground label to the corresponding node and select I with overlap below the threshold.v For, we assign the background label to the corresponding node.

[0059] <<Label Estimation Unit 7>> In the label estimation unit 7, since the nodes resulting from the video input of the video input unit 1 in the graph obtained by the graph construction unit 6 are in an unlabeled state, the label estimation unit 7 estimates the foreground / background labels for each node of the graph in accordance with Non-Patent Document 1, and outputs the result to the video output unit 8. In other words, for the graph obtained by the graph construction unit 6 in which labels are assigned to some nodes ... the following formula (7) by semi-supervised learning using some (or all) of the graph. v ) labels.

[0060]

number

[0061] Here, z is a variable with labels corresponding to all nodes, y is a vector indicating nodes with correct label data, and y(x) is a function that extracts some (or all) of the nodes from y. x is a set of indexes for selecting nodes (often randomly) and is determined by a separate operation (as is commonly done when specifying samples to be used during learning), and user input is also assumed. In other words, "function f_y(x) that changes depending on y" extracts a value corresponding to an index specified by argument x from a vector called a constant y that has already been determined, and returns it as a vector, and is simply written as "y(x)". Also, M is a matrix that extracts the node corresponding to y(x) from all nodes. (In other words, the constraint equation "st(such that~;~ satisfies) Mz=y(x)" in equation (7) indicates that the correct label is fixed in the variable z.)

[0062] In addition, ||z|| TVis the total variation (total variation, regularization term, a type of cost term) defined based on the graph structure, and the correct label is fixed using equation (7), and the undetermined label is varied to obtain the result that minimizes the cost term as the foreground / background estimation result for the undetermined label. Note that other norms such as the Sobolev Norm may be used in addition to the total variation. Also, M and y(x) may be designed to extract all nodes on the graph, rather than just a portion of them. This optimization problem (neighboring node group (any two regions (nodes) belonging to the node group) I i and I j In the case of two or more node groups that are determined to have a small distance d(i,j) (a normal distance that is not a similarity distance) (i.e., a large similarity (or similarity distance) and a large edge weight d(i,j)), the label data of all nodes can be estimated by solving the problem that the cost decreases as the labeling results are similar (the higher the percentage of identical labeling results of nodes in the node group). Note that label estimation is performed simultaneously for all frames of the input video (video obtained from the video input unit 1 as the first input) and is not a process for each frame.

[0063] Here, as is commonly done in semi-supervised learning, by setting the node selection index x etc. in formula (7), for example, half of the first input may be label-estimated in the first round, this may be added to the correct answer, and the remaining half of the first input may be label-estimated in the second round. By repeating the process of label-classifying some data and using it as training data, it is expected that the effect of estimation can be achieved while minimizing errors by gradually estimating a small amount of data, rather than estimating the labels of all unlabeled data at once.

[0064] <<Video output section 8>> The image output unit 8 outputs the foreground region as an image based on the label data corresponding to all the nodes estimated from the optimization equation in the label estimation unit 7. For example, the image region I corresponding to the node labeled as foreground from the estimated label data is v For each frame of the input video (the video of the first input of the video input unit 1), a pixel value of 1 is assigned, which indicates that the image area is foreground, and a pixel value of 0 is assigned to the image area corresponding to the node labeled as background. By performing this for all frames of the input video (the video of the first input of the video input unit 1), a foreground extraction result is obtained as the final result in the foreground extraction device 10. Thus, in this embodiment, a plurality of image regions I v are obtained in the multiple division unit 4 (as foreground candidates), and each of these image regions I v By estimating the labels of the nodes on the graph for each of the first input images, it is possible to obtain a foreground extraction result in the form of whether or not the image was actually in the foreground. In other words, the multiple image regions I obtained by the multiple division unit 4 for each frame of the first input image are v Of all the nodes in the graph, only the part that is labeled as foreground rather than background becomes the foreground extraction result in the foreground extraction result 10.

[0065] As described above, according to the embodiment of the present invention, it is possible to perform highly accurate foreground extraction by solving problems with foreground extraction technology that combines instance segmentation and graph structure, namely, (A) "disappearance of foreground region for each frame" and (B) "inaccuracy of boundary". As shown in Fig. 4, (A) can be dealt with by extracting the foreground target region using multiple frames in the foreground candidate region determiner 3. As shown in Fig. 5, (B) can be dealt with by improving the accuracy of the extracted region boundary by combining segmentation techniques in the multiple division unit 4 (and the foreground candidate region determiner 3).

[0066] The foreground extraction device 10 of the embodiment of the present invention provides highly accurate foreground extraction that solves the above problems, and is expected to improve accuracy in applications such as 3D restoration of foreground objects in free viewpoint videos and object recognition and tracking.

[0067] Various supplementary examples, additional examples, alternative examples, etc. will be described below.

[0068] (1) The foreground extraction technology of the present invention can be applied to various applications as a component technology, for example, it can be used to extract the movements of an avatar that moves in conjunction with the user's movements, or to generate free viewpoint video of the movements of athletes. These can be used, for example, for remote communication using avatars, or for remotely delivering sports videos as free viewpoint video with a sense of realism, so that users do not need to travel to the site for communication or watching sports, and carbon dioxide emissions can be reduced by saving the energy resources required for user movement, which can contribute to Goal 13 of the United Nations-led Sustainable Development Goals (SDGs) "Take urgent action to combat climate change and its impacts."

[0069] (2) The foreground extraction device 10 of the configuration in FIG. 2 conforms to the framework of Non-Patent Document 1, and obtains the labeling result for the first input as the foreground extraction result by using a first input image to which no correct labels of foreground / background have been assigned and a second input image to which correct labels have been assigned. As another embodiment, as a configuration in which only a part of the foreground extraction device 10 of FIG. 2 is excerpted, the foreground extraction device 10 may be configured to include only the foreground candidate region determination unit 3 and the multiple division unit 4 as shown in FIG. 6, and the foreground extraction result may be obtained from only one still image input. In the configuration in FIG. 6, as illustrated in FIG. 5, on the premise that the foreground candidate region determination unit 3 correctly extracts the foreground candidate region (on the premise that no mistake has occurred in the form that the whole or most part of an extracted foreground candidate region is not the foreground but the background as the actual correct answer), if the boundary of this foreground candidate region is not necessarily accurate, the boundary is made more accurate by the processing of the multiple division unit 4, and each region I is extracted. v (The foreground extraction result of the input still image) can be obtained.

[0070] (3) FIG. 7 is a diagram showing an example of a hardware configuration of a general computer device 70. The foreground extraction device 10 can be realized as one or more computer devices 70 having such a configuration. When the foreground extraction device 10 is realized by two or more computer devices 70, information required for processing may be transmitted and received via a network. The computer device 70 includes a CPU (Central Processing Unit) 71 that executes predetermined instructions, a GPU (Graphics Processing Unit) 72 as a dedicated processor that executes part or all of the execution instructions of the CPU 71 in place of the CPU 71 or in cooperation with the CPU 71, a RAM 73 as a main storage device that provides a work area for the CPU 71 (and the GPU 72), a ROM 74 as an auxiliary storage device, a communication interface 75, a display 76, an input interface 77 that accepts user input via a mouse, a keyboard, a touch panel, or the like, a camera 78, and a bus BS for transmitting and receiving data between them.

[0071] Each functional unit of the foreground extraction device 10 can be realized by a CPU 71 and / or a GPU 72 that reads a predetermined program corresponding to the function of each unit from a ROM 74 and executes it. Both the CPU 71 and the GPU 72 are a type of arithmetic device (processor). Here, when display-related processing is performed, a display 76 also operates in conjunction with the GPU 72, and when communication-related processing related to data transmission and reception is performed, a communication interface 75 also operates in conjunction with the GPU 72. The processing results by the foreground extraction device 10 may be displayed and output on the display 76. All or part of the image used as an input to the foreground extraction device 10 may be obtained by capturing the image with a camera 78. [Explanation of symbols]

[0072] 10...foreground extraction device, 1...video input unit, 2...background image generation unit, 3...foreground candidate region determination unit, 4...multiple division unit, 5...feature extraction unit, 6...graph construction unit, 7...label estimation unit, 8...video output unit, 9...correct answer DB

Claims

1. A foreground extraction device that receives a first video in which no distinction between foreground and background is given and a second image group in which the distinction is given, and extracts a foreground in each frame of the first video, the foreground extraction device comprising: extracting a foreground candidate region by applying a first method to the first image and each image of the second image group; a second method for realizing a finer region division than the first method is applied to the corresponding image by comparing the foreground candidate region with the region division result to obtain a target region obtained by correcting the foreground candidate region; constructing a graph in which each region of interest is a node and each node is labeled with a distinction between foreground and background when the node originates from the second set of images; obtaining a foreground extraction result for each frame of the first image by estimating a foreground or background distinction as a label for each node of the graph that originates from the first image so as to minimize a cost of the graph; The foreground extraction device is characterized in that the extraction of the foreground candidate area is performed by taking the sum of the foreground area resulting from applying the first method as a foreground extraction method for each frame of the first video, in a group of frames in the vicinity of each frame in time.

2. 2. The foreground extraction device according to claim 1, wherein the sum is calculated by moving a foreground area in a group of frames in the vicinity of a target frame for which the sum is to be calculated to a position corresponding to the time of the target frame.

3. A foreground extraction device that receives a first video in which no distinction between foreground and background is given and a second image group in which the distinction is given, and extracts a foreground in each frame of the first video, the foreground extraction device comprising: extracting a foreground candidate region by applying a first method to the first image and each image of the second image group; a second method for realizing a finer region division than the first method is applied to the corresponding image by comparing the foreground candidate region with the region division result to obtain a target region obtained by correcting the foreground candidate region; constructing a graph in which each region of interest is a node and each node is labeled with a distinction between foreground and background when the node originates from the second set of images; obtaining a foreground extraction result for each frame of the first image by estimating a foreground or background distinction as a label for each node of the graph that originates from the first image so as to minimize a cost of the graph; The graph is constructed by extracting image features for each of the target regions that are to be nodes, evaluating the different nodes as being more similar to each other as the image features between the different nodes are more similar, and determining whether or not to provide edges between the different nodes; Evaluating the similarity between the nodes further comprises: Only when it is determined that the pair of object regions to be regarded as nodes belong to frames at the same time in the video and that the spatial positions of the pair of object regions within the frames at the same time are close to each other, A foreground extraction device characterized in that the more similar the image features of the pair of target regions are, the more similar the pair of nodes is additionally evaluated.

4. 4. The foreground extraction device according to claim 3, wherein the cost of the graph is evaluated as being smaller for a group of nodes that are determined to be similar to each other, as the labeling results for distinguishing between the foreground and the background are more similar.

5. 5. The foreground extraction device according to claim 1, wherein the first technique is instance segmentation or semantic segmentation, and the second technique is superpixel segmentation.

6. 6. The foreground extraction device according to claim 1, wherein the determination of the target area resulting from the correction of the foreground candidate area is performed by determining whether or not each area of ​​the subdivided area division result overlaps with the foreground candidate area, and if there is an overlap, the subdivided area is deemed to belong to the corrected target area, and if there is no overlap, the subdivided area is deemed not to belong to the corrected target area.

7. 7. A program for causing a computer to function as the foreground extraction device according to claim 1.

Citation Information

Patent Citations

  • Image processor, method for controlling image processor, image processing program and recording medium therefor

    JP2014206926A

  • Methods and systems of performing video object segmentation

    US20170236290A1