Method and device for detecting occluded region in video, and storage medium

The method addresses the challenge of occluded object detection in videos by using object detection and feature similarity to identify and track occluded areas, enhancing precision and recall in object recognition and tracking.

JP2024150421APending Publication Date: 2024-10-23FUJITSU LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2024062278
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-10
Filing Date
2024-04-08
Publication Date
2024-10-23

AI Technical Summary

Technical Problem

The challenge of accurately detecting and tracking objects in video sequences that are occluded by obstacles, such as pedestrians obscured by trees or buildings, leads to decreased precision and recall in recognition and tracking, impacting practical applications.

Method used

A method and apparatus for automatically detecting occluded areas in a video by identifying the position of objects, extracting their features, and determining occluded pixels based on feature similarity with neighboring objects, using techniques like YOLOX for detection and OSNet for feature extraction, followed by a process to generate occluded regions.

Benefits of technology

Enables accurate estimation of the position and movement of occluded objects, reducing the negative effects of occlusion by precisely identifying and tracking objects even when partially hidden.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024150421000001_ABST
    Figure 2024150421000001_ABST
Patent Text Reader

Abstract

To provide a method and a device for detecting occluded regions in a video, and a storage medium.SOLUTION: A method for detecting occluded regions in a video includes steps of: detecting a plurality of objects appearing in the video; determining the position of each of the plurality of objects in a frame of the video; extracting features of each of the plurality of objects; determining, for each pixel in the frame, whether the pixel is an occluded pixel based on the similarity between features of objects in the vicinity of the pixel; and generating an occluded region based on a plurality of pixels determined as occluded pixels in the frame.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates generally to the field of computer vision, and more particularly to a method and apparatus for detecting occluded regions in a video, as well as a storage medium having a corresponding program stored thereon. [Background technology]

[0002] Occlusion is a common problem in the field of computer vision. For example, in the application of pedestrian recognition and tracking, if a pedestrian is occluded by an object (e.g., a tree or a building) in a part of a video, it is difficult to extract the features of the pedestrian in this part of the video, and the pedestrian cannot be recognized and tracked. Therefore, in the presence of occlusion, the precision and recall of target recognition generally decrease, which adversely affects practical applications.

[0003] In order to reduce the adverse effects of occlusion when a fixed camera (e.g., a surveillance camera) is used to capture a scene, the regions occluded by obstacles in the scene shown in the video may be predetermined, and the information of the occluded regions and other information (e.g., the object's moving speed and direction) may be used to estimate the object's position or movement trajectory during the occlusion period. For example, one or more possible movement paths of the object may be predicted based on the time and location of the object's disappearance and the time and location of the object's reappearance. Then, based on the information of the predetermined occluded regions, a path that passes through the occluded region may be selected as a highly reliable estimation result, and tracking may be performed based on the result.

[0004] In this case, the technical problem is how to determine, for a scene, particularly a scene captured by a fixed camera, the areas of the scene that are occluded by obstacles from the camera's point of view. Summary of the Invention [Problem to be solved by the invention]

[0005] In view of the above technical problems, the present disclosure provides a method and apparatus for automatically detecting occluded regions in a scene shown in a video. [Means for solving the problem]

[0006] One aspect of the present disclosure provides a method for detecting occluded regions in a video, the method including the steps of detecting a plurality of objects appearing in a video, determining a position of each of the plurality of objects in a frame of the video, extracting features of each of the plurality of objects, determining for each pixel in the frame whether the pixel is an occluded pixel based on a similarity between features of objects in the vicinity of the pixel, and generating an occluded region based on a plurality of pixels determined as occluded pixels in the frame.

[0007] Another aspect of the present disclosure provides an apparatus for detecting occluded regions in a video, the apparatus including a memory having a computer program stored therein, and a processor, the processor being configured to execute the computer program to perform the steps of detecting a plurality of objects appearing in a video, determining a position of each object among the plurality of objects in a frame of the video, extracting features of each object among the plurality of objects, determining for each pixel in the frame whether the pixel is an occluded pixel based on a similarity between features of objects in the vicinity of the pixel, and generating an occluded region based on a plurality of pixels determined as occluded pixels in the frame.

[0008] Another aspect of the present disclosure provides a non-transitory computer-readable storage medium having a program stored thereon, the program, when executed by a computer, causing the computer to perform the above-described method for detecting occluded regions in a video.

[0009] According to the technology of the present disclosure, it is possible to automatically detect areas occluded by obstacles in a scene shown in a video. Therefore, when an object (e.g., a person) in a video cannot be recognized and tracked due to occlusion, the information of the detected occluded area and the related information of the tracked object can be used to estimate the position or movement path of the object during the occluded period with high accuracy, thereby reducing the adverse effect of occlusion. [Brief description of the drawings]

[0010] [Figure 1] 1 is a flow chart illustrating an occluded region method according to the present disclosure. [Diagram 2] FIG. 2 shows functional modules for implementing the detection method according to the present disclosure. [Diagram 3] FIG. 2 is a schematic diagram showing a planar layout map corresponding to a scene in a video. [Figure 4] FIG. 13 is a diagram showing a process flow for determining whether a pixel is an occluded pixel or not. [Figure 5A] FIG. 1 is a schematic diagram showing detection results using the method according to the present disclosure. [Figure 5B] FIG. 1 is a schematic diagram showing detection results using the method according to the present disclosure. [Figure 6] FIG. 1 is a block diagram showing an exemplary configuration of computer hardware capable of implementing the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Fig. 1 is a flow chart illustrating a method for detecting an occluded region according to the present disclosure, and Fig. 2 is a diagram illustrating functional modules implementing the method.

[0012] As shown in FIG. 1 and FIG. 2, in step S110, the object detection module 210 detects all objects appearing in the video. In this disclosure, an object may mean an object of interest appearing in a scene shown in the video, such as a person, a vehicle, etc. As a result of the object detection, one or more object frames may be generated, each object frame surrounding one detected object. In particular, if a part of the object is occluded by an obstacle (e.g., a person's legs are occluded by a desk), the object can still be detected, and the unoccluded part of the object (e.g., the person's upper body) and the obstacle (e.g., the table) may be included in the corresponding object frame.

[0013] In addition, any suitable conventional technique may be used to perform object detection, and the present disclosure is not limited thereto. As an example, the present disclosure uses the YOLOX model to perform detection. The YOLOX model is described in detail in the paper "Yolox: Exceeding yolo series" by Ge Z, Liu S, Wang F et al., arXiv preprint arXiv:2107.08430, 2021, which is incorporated herein by reference.

[0014] In step S120, the position determination module 220 determines the position of each detected object in the video frame. As an example, the position of an object may be determined based on the position of the midpoint of the bottom edge of the corresponding object box.

[0015] In step S130, the feature extraction module 230 extracts features of each detected object. The features may be extracted using any suitable conventional technique. For example, a pedestrian re-identification (Re-ID) technique may be used to extract visual features of the object. As an example, in this disclosure, the OSNet model is used to extract the object features. The OSNet model is described in detail in the paper "Omni-scale feature learning for person re-identification" by K. Zhou, Y. Yang et al., ICCV, 2019, pp. 3702-3712, which is incorporated herein by reference.

[0016] In step S140, for each pixel in a frame of the video, it is determined whether the pixel is an occluded pixel located within an occluded region based on the similarity between the features of objects in the vicinity of the pixel. This step may be performed by the occluded pixel determination module 240.

[0017] Specifically, if a pixel is not a pixel in an occluded region, then it is highly likely that each of the object frames in the vicinity of the pixel contains only an object (e.g., a person), and the characteristics of people are different from each other, so the similarity between the characteristics of the object frames is low. Conversely, if a pixel is a pixel in an occluded region, then it is highly likely that each of the object frames in the vicinity of the pixel contains both an object and an obstacle, and the object parts in each object frame are different from each other, but the obstacle parts are similar to each other, so the similarity between the characteristics of the object frames is high. Based on this, if the similarity between the characteristics of each object frame in the vicinity of a pixel is high, then there is a high probability that the object in the vicinity of the pixel is occluded, and as a result, there is a high probability that the pixel is located within an occluded region of the scene shown in the video.

[0018] The determination in step S140 may be performed for all pixels in the video frame. Next, as shown in step S150, the occluded region generation module 250 generates an occluded region based on the pixels determined as occluded pixels in the frame.

[0019] It should be noted that the method according to the present disclosure may be performed in a different order, not limited to the order shown in Figure 1. For example, step S120 may be performed after step S130 or in parallel with step S130.

[0020] In a preferred embodiment, after the position of each detected object in a video frame is determined in step S120 of FIG. 1, the position may be mapped to a planar layout map corresponding to a scene in the video. The planar layout map may be prepared in advance. For example, if the scene in the video is a supermarket, a planar layout map of the supermarket prepared in advance may be used. FIG. 3 is a schematic diagram showing a planar layout map of a supermarket. Here, black parts indicate obstacles such as shelves, pillars, and walls, and white parts indicate areas where people can pass through.

[0021] Note that a single camera usually does not cover the entire extent of a supermarket, so a scene contained in one video may only correspond to a portion of the planar layout map. As shown diagrammatically in Figure 3, objects A, B, and C detected in one video and objects D and E detected in another video are mapped onto the planar layout map.

[0022] Next, similar to step S140 of FIG. 1, for each pixel in the planar layout map, it may be determined whether there is a detected object in the vicinity of the pixel, and whether the pixel is an occluded pixel based on the similarity between features of the objects in the vicinity.

[0023] Figure 4 shows a process flow for determining whether a pixel is an occluded pixel, which may be applied to each pixel in a video frame as described with reference to Figure 1, or to each pixel in a planar layout map as described with reference to Figure 3.

[0024] As shown in Fig. 4, in step S410, for each pixel (x, y) in a video frame or planar layout map including a plurality of detected objects, an object (hereinafter referred to as "adjacent object") that exists within a range in which the distance from the pixel (x, y) is smaller than a first threshold is determined. More specifically, the distance from the pixel (x, y) may be the distance between the position of the midpoint of the bottom side of the object frame and the position of the pixel (x, y). As an example, the distance from the pixel (x, y) may be in pixel units, and the first threshold may be 10 pixels.

[0025] In step S420, determine whether the number of neighboring objects determined in step S410 is too few or too many. Specifically, if the number of neighboring objects determined is less than a fourth threshold, it may be directly determined that the pixel (x, y) is not an occluding pixel. If the number of neighboring objects determined is greater than a fifth threshold, it may select the fifth threshold number of neighboring objects and discard the excess neighboring objects. As an example, the fourth threshold may be 5, and the fifth threshold may be 1000.

[0026] Next, in step S430, the similarity between the features of any two adjacent objects among the determined or selected multiple adjacent objects is calculated to generate a similarity set. As an example, in the present disclosure, the cosine similarity between the features is calculated.

[0027] In step S440, the number of similarities in the similarity set that is greater than a second threshold is determined, and the ratio of the number of these relatively large similarities to the total number of all similarities is calculated. As an example, the second threshold may be 0.6.

[0028] In step S450, the determined ratio is compared with a third threshold. If the ratio is greater than the third threshold, it may be determined that the pixel (x, y) is an occluded pixel. On the other hand, if the ratio is equal to or less than the third threshold, it may be determined that the pixel (x, y) is not an occluded pixel. As an example, the third threshold may be 0.3.

[0029] The process shown in FIG. 4 may be performed for every pixel in a video frame or planar layout map to determine whether each pixel is an occluded pixel.

[0030] If a number of occluded pixels are determined in a video frame or planar layout, then outlier pixels may be removed from the set of occluded pixels and a dilation process may be performed on the remaining pixels to generate an occluded region (step S150 in FIG. 1). A person skilled in the art may use any suitable conventional technique to remove outlier pixels and perform the dilation process, and the present disclosure is not limited thereto.

[0031] 5A and 5B are schematic diagrams illustrating the results of detecting occluded regions using the method according to the present disclosure for two videos, video 1 and video 2, of the same supermarket (same planar layout map) and taken by different cameras.

[0032] The grey shading in Figure 5A(a) and Figure 5B(a) indicates the areas within the supermarket that can be photographed by the camera.

[0033] In addition, since the occluded areas detected by the method according to the present disclosure are relatively scattered, in order to display the results more clearly, in Fig. 5A(b) and Fig. 5B(b), the unoccluded areas are shown in gray shades, where the unoccluded areas are obtained by removing the occluded areas detected by the method according to the present disclosure from the effective area of ​​the scene. In addition, in Fig. 5A(a) and Fig. 5B(a), the manually labeled unoccluded areas are shown in frames. As can be seen, the manually labeled areas are regular but not fine enough, while the detection results of the present disclosure effectively cover the manually labeled areas and are more fine.

[0034] The above describes the technology according to the present disclosure with reference to specific embodiments. According to the technology, it is possible to automatically detect an area occluded by an obstacle in a scene shown in a video. As described above, when an object (e.g., a person) in a video cannot be recognized and tracked due to occlusion, the information of the detected occluded area and the related information of the tracked object can be used to estimate the position or movement path of the object during the occluded period with high accuracy, thereby reducing the adverse effect of occlusion.

[0035] The method according to the above embodiment may be realized by software, hardware, or a combination of software and hardware. The programs included in the software may be pre-stored in a storage medium installed inside or outside the device. As an example, during execution, these programs are written into a random access memory (RAM) and executed by a processor (e.g., a CPU) to realize each process described in this specification.

[0036] 6 is a block diagram showing an example of a hardware configuration of a computer capable of implementing the present disclosure, based on which the occluded region detection device according to the present disclosure may be implemented.

[0037] As shown in FIG. 6, in a computer 600, a central processing unit (CPU) 601, a read-only memory (ROM) 602, and a random access memory (RAM) 603 are interconnected by a bus 604.

[0038] The input / output interface 605 is further connected to the bus 604. Connected to the input / output interface 605 are an input unit 606 including a keyboard, a mouse, a microphone, etc., an output unit 607 including a display, a speaker, etc., a storage unit 608 including a hard disk, a non-volatile memory, etc., a communication unit 609 including a network interface card (such as a local area network (LAN) card, a modem, etc.), and a driver 610 that drives a removable medium 611. The removable medium 611 is, for example, a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory.

[0039] In a computer having the above configuration, the CPU 601 loads a program stored in the storage unit 608 into the RAM 603 via the input / output interface 605 and the bus 604, and executes the program to perform the above method.

[0040] The program executed by the computer (CPU 601) may be recorded in a removable medium 611, which is a package medium. The package medium is formed of, for example, a magnetic disk (including a floppy disk), an optical disk (including a compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), etc.), a magneto-optical disk, or a semiconductor memory. The program executed by the computer (CPU 601) may also be provided via a wired or wireless transmission medium of a local area network, the Internet, or digital satellite broadcasting.

[0041] When the removable medium 611 is installed in the driver 610, the program can be installed in the storage unit 608 via the input / output interface 605. Also, the program is received by the communication unit 609 via a wired or wireless transmission medium and installed in the storage unit 608. Alternatively, the program may be pre-installed in the ROM 602 or the storage unit 608.

[0042] The programs executed by the computer may be programs that perform operations in the order described in this specification, or may be programs that perform operations in parallel, or may perform operations on an as-needed basis (e.g., when called).

[0043] The devices or units described in this specification are logical and are not limited to physical devices or entities. For example, the functions of each unit described in this specification may be realized by multiple physical entities, or the functions of multiple units described in this specification may be realized by a single physical entity. In addition, features, components, elements, steps, etc. described in one embodiment are not limited to the embodiment, and may be applied to other embodiments, for example, and may be used in place of or combined with specific features, components, elements, steps, etc. of other embodiments.

[0044] The scope of the present disclosure is not limited to the specific embodiments described herein. As can be understood by those skilled in the art, various modifications or changes may be made to the embodiments herein according to design requirements and other factors without departing from the principles and spirit of the present disclosure. The scope of the present disclosure is limited by the appended claims and their equivalents.

[0045] In addition, the present disclosure further discloses the following supplementary notes regarding the embodiments including the above-mentioned examples, but is not limited to these supplementary notes. (Appendix 1) 1. A method for detecting occluded regions in a video, comprising the steps of: detecting a plurality of objects appearing in the video; determining a position of each object of the plurality of objects in a frame of the video; extracting features of each object of the plurality of objects; for each pixel in the frame, determining whether the pixel is an occluded pixel based on a similarity between features of objects in a neighborhood of the pixel; generating an occluded region based on a plurality of pixels in the frame determined to be occluded pixels. (Appendix 2) mapping a position in a frame of each object onto a planar layout map corresponding to a scene in the video; for each pixel in the planar layout map, determining whether the pixel is an occluded pixel based on a similarity between features of objects in a neighborhood of the pixel; 2. The method of claim 1, further comprising: processing pixels determined as occluded pixels in the planar layout map to generate an occluded region. (Appendix 3) For each pixel in the frame or the planar layout map, determining a number of neighboring objects whose distance to the pixel is less than a first threshold; calculating a similarity between features of any two adjacent objects among the plurality of adjacent objects to generate a similarity set; calculating a ratio of the number of similarities greater than a second threshold to the total number of similarities in the similarity set; 3. The method of claim 1 or 2, further comprising determining that the pixel is an occluded pixel if the ratio is greater than a third threshold. (Appendix 4) if the determined number of neighboring objects is less than a fourth threshold, directly determining that the pixel is not an occluded pixel; If the determined number of neighboring objects is greater than a fifth threshold, selecting a fifth threshold number of neighboring objects and calculating a similarity between features of the selected neighboring objects; 4. The method of claim 3, wherein the fourth threshold is less than the fifth threshold. (Appendix 5) 4. The method of claim 3, wherein the similarity is a cosine similarity. (Appendix 6) 3. The method of claim 1 or 2, further comprising the steps of: removing outlier pixels from a set of pixels determined to be occluded pixels; and performing a dilation process on the remaining pixels to generate an occluded region. (Appendix 7) The method described in Appendix 1, which uses pedestrian recognition technology to extract object features. (Appendix 8) 4. The method of claim 3, wherein the distance between the pixel and the neighboring object is in pixels. (Appendix 9) An apparatus for detecting occluded regions in a video, comprising: A memory in which a computer program is stored; a processor; The processor executes the computer program, detecting a plurality of objects appearing in the video; determining a position of each object of the plurality of objects in a frame of the video; extracting features of each object of the plurality of objects; for each pixel in the frame, determining whether the pixel is an occluded pixel based on a similarity between features of objects in a neighborhood of the pixel; generating an occluded region based on a plurality of pixels determined as occluded pixels in the frame. (Appendix 10) The processor, mapping a position in a frame of each object onto a planar layout map corresponding to a scene in the video; for each pixel in the planar layout map, determining whether the pixel is an occluded pixel based on a similarity between features of objects in a neighborhood of the pixel; 10. The apparatus of claim 9, further configured to: process pixels determined as occluded pixels in the planar layout map to generate an occluded region. (Appendix 11) The processor, For each pixel in the frame or the planar layout map, determining a number of neighboring objects whose distance to the pixel is less than a first threshold; calculating a similarity between features of any two adjacent objects among the plurality of adjacent objects to generate a similarity set; calculating a ratio of the number of similarities greater than a second threshold to the total number of similarities in the similarity set; If the ratio is greater than a third threshold, determining that the pixel is an occluded pixel. (Appendix 12) The processor, if the determined number of neighboring objects is less than a fourth threshold, directly determining that the pixel is not an occluded pixel; if the determined number of neighboring objects is greater than a fifth threshold, selecting a fifth threshold number of neighboring objects and calculating a similarity between features of the selected neighboring objects; 12. The apparatus of claim 11, wherein the fourth threshold is less than the fifth threshold. (Appendix 13) 12. The apparatus of claim 11, wherein the similarity is a cosine similarity. (Appendix 14) 11. The apparatus of claim 9 or 10, further configured to perform the steps of: for a set of pixels determined to be occluded pixels, removing outlier pixels in the set and performing a dilation process on the remaining pixels to generate an occluded region. (Appendix 15) 10. The apparatus of claim 9, wherein the apparatus extracts object features using pedestrian recognition technology. (Appendix 16) 12. The apparatus of claim 11, wherein the distance between the pixel and the neighboring object is in pixels. (Appendix 17) A non-transitory computer-readable storage medium having a program stored thereon, the program causing the computer to perform a method for detecting occluded areas in a video according to any one of claims 1 to 8, when the program is executed by a computer.

Claims

1. 1. A method for detecting occluded regions in a video, comprising the steps of: detecting a plurality of objects appearing in the video; determining a position of each object of the plurality of objects in a frame of the video; extracting features of each object of the plurality of objects; for each pixel in the frame, determining whether the pixel is an occluded pixel based on a similarity between features of objects in a neighborhood of the pixel; generating an occluded region based on a plurality of pixels in the frame determined to be occluded pixels.

2. mapping a position in a frame of each object onto a planar layout map corresponding to a scene in the video; for each pixel in the planar layout map, determining whether the pixel is an occluded pixel based on a similarity between features of objects in a neighborhood of the pixel; The method of claim 1 , further comprising: processing pixels in the planar layout map determined as occluded pixels to generate an occluded region.

3. For each pixel in the frame or the planar layout map, determining a number of neighboring objects having a distance to the pixel less than a first threshold; calculating a similarity between features of any two adjacent objects among the plurality of adjacent objects to generate a similarity set; calculating a ratio of the number of similarities greater than a second threshold to the total number of similarities in the similarity set; The method of claim 1 or 2, further comprising: determining that the pixel is an occluded pixel if the ratio is greater than a third threshold.

4. if the determined number of neighboring objects is less than a fourth threshold, directly determining that the pixel is not an occluded pixel; If the determined number of neighboring objects is greater than a fifth threshold, selecting a fifth threshold number of neighboring objects and calculating a similarity between features of the selected neighboring objects; The method of claim 3 , wherein the fourth threshold is less than the fifth threshold.

5. The method of claim 3 , wherein the similarity measure is a cosine similarity measure.

6. 3. The method of claim 1, further comprising the step of: for a set of pixels determined to be occluded, removing outlier pixels in the set and performing a dilation process on the remaining pixels to generate an occluded region.

7. The method of claim 1 , further comprising extracting object features using pedestrian recognition techniques.

8. The method of claim 3 , wherein the distance between the pixel and the neighboring object is in pixels.

9. An apparatus for detecting occluded regions in a video, comprising: A memory in which a computer program is stored; a processor; The processor executes the computer program, detecting a plurality of objects appearing in the video; determining a position of each object of the plurality of objects in a frame of the video; extracting features of each object of the plurality of objects; for each pixel in the frame, determining whether the pixel is an occluded pixel based on a similarity between features of objects in a neighborhood of the pixel; generating an occluded region based on a plurality of pixels determined as occluded pixels in the frame.

10. A non-transitory computer-readable storage medium having a program stored thereon, the program causing the computer to execute the method for detecting occluded regions in a video according to claim 1 or 2 when the program is executed by the computer.