Image processing apparatus, image processing method, and program

The image processing device addresses the issue of stationary foreground objects being incorporated into the background by generating a background image through selective update processing of captured images, ensuring accurate separation and extraction.

JP2024125590AActive Publication Date: 2024-09-19CANON KK
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2023033506
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-06
Publication Date
2024-09-19
Estimated Expiration
2043-03-06

AI Technical Summary

Technical Problem

Existing methods fail to accurately separate stationary foreground objects from the background in captured images, leading to their incorporation into the background image, which hinders subsequent extraction.

Method used

An image processing device that generates a background image by analyzing a series of captured images over a period, using area information to update specific regions based on object movement, thereby preventing stationary objects from being incorporated into the background.

Benefits of technology

Effectively generates a background image that excludes stationary foreground objects, ensuring accurate separation and extraction even when objects remain stationary for an extended period.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024125590000001
    Figure 2024125590000001
Patent Text Reader

Abstract

To when a background image is created from a plurality of picked-up images obtained within a certain period of time, if a stationary object is present in the picked-up images, it is captured in the background image.SOLUTION: An image processing apparatus executes update processing on an update area of a created background image corresponding to a plurality of picked-up images obtained within a certain period of time, the update area specified by area information, on the basis of the plurality of picked-up images, and thereby creates a new background image. The area information is information indicating, of the background image, the update area subjected to the update processing and a non-update area not subjected to the update processing.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a technique for generating a background image by excluding a foreground from a captured image. [Background technology]

[0002] There are many use cases in which it is necessary to faithfully extract and separate only a subject (object) of interest from a captured image. One example is a use case in which a virtual viewpoint image is generated. A virtual viewpoint image is obtained by generating data (3D model) representing the three-dimensional shape of an object using multiple captured images obtained by synchronously capturing images from multiple different imaging devices, and capturing the 3D model with an imaging device (virtual camera) virtually placed in the imaging space. When generating a virtual viewpoint image in this way, in order to faithfully reproduce the 3D model of the object, it is necessary to accurately separate the area of ​​the object shown in each captured image from the background along its contour.

[0003] One of the techniques used for this separation is the background subtraction method, which compares a background image in which no object exists (i.e., only the background is visible) with a captured image in which an object exists (i.e., the foreground and background are visible) and extracts the difference between the two. A background image is required to implement the background subtraction method, but in cases in which an object is always present within the angle of view of the imaging device, it is not possible to use an image captured at a certain moment as the background image, and instead the background image is generated by combining multiple captured images captured over a certain period of time.

[0004] Here, in the generation method disclosed in Patent Document 1, first, the absolute value of the difference between an image captured at a certain time and an image captured one time before is binarized, and a mask image is created in which pixels in which a change is detected have a value of "0" and pixels in which a change is not detected have a value of "1." Then, pixels in which a change is not detected have their count buffer value incremented by 1, and pixels in which a change is detected have their count buffer value reset to "0." As a result, if the value of the count buffer is greater than a threshold value, the pixel value of the image captured at that time is copied to the background image, thereby updating the background image. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2001-43458 A Summary of the Invention [Problem to be solved by the invention]

[0006] In the method disclosed in the above Patent Document 1, when an object to be extracted as the foreground remains stationary for a certain period of time, the position of the object does not change in the multiple captured images obtained during the certain period of time. As a result, the area of ​​the object is incorporated into the background image. If this happens, it becomes impossible to separate and extract the area of ​​the object as the foreground from subsequent captured images. The present disclosure has been made in consideration of the above problem. [Means for solving the problem]

[0007] The image processing device according to the present disclosure is an image processing device that generates a background image from a plurality of captured images obtained over a certain period of time, and is characterized in having an image acquisition means for acquiring the plurality of captured images, an information acquisition means for acquiring area information for the background image indicating update areas that are subject to update processing and non-update areas that are not subject to update processing, and an image generation means for performing update processing targeting the update areas identified by the area information in the generated background image corresponding to the plurality of captured images based on the plurality of captured images, to generate a new background image. Effect of the Invention

[0008] According to the present disclosure, when generating a background image from multiple captured images obtained over a certain period of time, it is possible to generate a background image that does not include the area of ​​an object even if the object remains stationary for a certain period of time. [Brief description of the drawings]

[0009] [Figure 1] FIG. 2 is a diagram showing the logical configuration of an image processing device that generates a background image. [Diagram 2] FIG. 2 is a diagram showing the hardware configuration of an image processing apparatus. [Diagram 3] 5 is a flowchart showing the flow of a background image generation process according to the first embodiment. [Figure 4] 5(a) to 5(f) are views for explaining a method of generating a background image in the first embodiment. [Diagram 5] 13A and 13B are diagrams for explaining a method for generating a background image. [Figure 6] 13(a) to 13(f) are diagrams illustrating an application example of the second modified example. [Figure 7] 10 is a flowchart showing the flow of a background image generation process according to Modification 2. [Figure 8] 13(a) and (b) are diagrams for explaining a third modified example. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, the embodiments of the present invention will be described with reference to the drawings. The following embodiments do not limit the present invention, and all of the combinations of features described in the embodiments are not necessarily essential to the solution of the present invention.

[0011] [Embodiment 1] <Device configuration> FIG. 1 is a diagram showing a logical configuration (functional configuration) of an image processing device 100 that generates a background image according to this embodiment. The image processing device 100 has an image acquisition unit 101, an area information acquisition unit 102, a background image generation unit 103, and a background image storage unit 104. The image processing device 100 generates and updates a background image using a plurality of captured images 110 captured during a certain period of time by the same imaging device (not shown) and updated area information 111 prepared in advance as input, and outputs the latest background image 112. Here, the updated area information is information indicating an area to be updated (updated area) and an area not to be updated (non-updated area) in a generated background image corresponding to the captured image. Each functional unit will be described below.

[0012] The image acquisition unit 101 receives a plurality of captured images 110 and outputs them to the background image generation unit 103. The number of captured images used by the background image generation unit 103 to generate a background image will be described later. The area information acquisition unit 102 receives updated area information 111 and outputs it to the background image generation unit 103. The background image generation unit 103 performs an update process on the captured images input from the image acquisition unit 101, the updated area information 111 input from the area information acquisition unit 102, and the background image held by the background image holding unit 104. The background image generation unit 103 outputs the updated background image to the background image holding unit 104, and outputs the updated background image from the image processing device 100 as the latest background image 112. The background image holding unit 104 holds the background image input from the background image generation unit 103, and outputs it to the background image generation unit 103 as a reference background image used in the update process. Then, when the update process is performed by the background image generating unit 103, the new updated background image obtained by the update process is received and stored.

[0013] Next, the hardware configuration of the image processing device 100 will be described with reference to FIG. 2. The image processing device 100 includes a CPU 201, a ROM 202, a RAM 203, an auxiliary storage device 204, a display unit 205, an operation unit 206, a communication I / F 207, and a bus 208. The CPU 201 controls the entire image processing device 100 using computer programs and data stored in the ROM 202 and the RAM 203, and realizes each of the above-mentioned functional units. The image processing device 100 may include one or more dedicated hardware devices different from the CPU 201, and at least a part of the processing by the CPU 201 may be executed by the dedicated hardware devices. Examples of the dedicated hardware devices include an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), and a DSP (Digital Signal Processor). The ROM 202 stores programs that do not require modification. The RAM 203 temporarily stores programs and data supplied from the auxiliary storage device 204, and data supplied from the outside via the communication I / F 207. The auxiliary storage device 204 is composed of, for example, a hard disk drive, and stores various data. In addition to various data such as the multiple captured images 110, the update area information 111, the latest background image 112, and the generated background image held for updating in FIG. 1, intermediate data generated during updating and various setting information are stored in the RAM 203 and the auxiliary storage device 204. The display unit 205 is composed of, for example, a liquid crystal display LED, and displays a GUI (Graphical User Interface) for the user to operate the image processing device 100. The operation unit 206 is composed of, for example, a keyboard, a mouse, a joystick, a touch panel, and inputs various instructions to the CPU 201 in response to an operation by the user. The CPU 201 operates as a display control unit that controls the display unit 205 and an operation control unit that controls the operation unit 206. The communication I / F 207 is used for communication with an external device of the image processing device 100. For example, when the image processing device 100 is connected to an external device by wire, a communication cable is connected to the communication I / F 207. When the image processing device 100 has a function of wirelessly communicating with an external device, the communication I / F 207 includes an antenna.A bus 208 connects each unit of the image processing device 100 to transmit information. In this embodiment, the display unit 205 and the operation unit 206 are assumed to exist inside the image processing device 100, but at least one of the display unit 205 and the operation unit 206 may exist outside the image processing device 100 as a separate device.

[0014] <Operation of image processing device> Next, the process of generating and updating a background image according to this embodiment will be described with reference to Figs. 3 to 5. Fig. 3 is a flowchart showing the flow of the background image generation process, and Figs. 4 and 5 are diagrams for explaining a method of generating a background image. Before going into a detailed explanation of the flowchart in Fig. 3, the method of generating a background image in this embodiment will be described with reference to the explanatory diagrams in Figs. 4 and 5.

[0015] <Background image generation method> FIG. 4(a) shows a generated background image 400 in the case where a soccer match is set as an image capture scene. The background image 400 shows a field 4001, a goal 4002, and spectator seats 4003 (hereinafter collectively referred to as "background components") that are treated as the background. FIG. 4(b) shows a captured image 410 corresponding to a certain time t during the match. In addition to the background components shown in FIG. 4(a), the captured image 410 shows each object in the foreground, namely, a goalkeeper 4011, a field player 4021, a ball 4031, and a field player 4041. FIG. 4(c) shows a captured image 420 corresponding to time t+1 captured a certain time after the capture time t of the captured image 410. The captured image 420 shows the same object as the captured image 410, and the reference symbols 4021', 4031', and 4041' with "'" indicate that the object is not in the same position (moved from time t to time t+1). That is, it means that the goalkeeper 4011 has not moved between time t and time t+1, but the two field players 4021 and 4041 and the ball 4031 have moved. The background image can be obtained by comparing corresponding pixels between multiple captured images captured at different capture timings, determining a pixel area in which the change in pixel value is equal to or less than a threshold as the background, and updating the background image held by the background image holding unit 104. Note that the background image 400 can also be obtained by capturing an image of the field 4001 in a state in which there are no players or balls to be treated as the foreground, such as before the start of a match. The flow chart of FIG. 3, which will be described later, may be started as an initial background image held by the background image holding unit 104 with an image captured when there are no foreground objects, such as before the start of a match. When generating (updating) a new background image using an already-generated background image 400 and two captured images 410 and 420 corresponding to a certain time t and a temporally advanced time t+1 as input, the following steps 1 and 2 are taken.

[0016] <Step 1> First, pixel values ​​at corresponding pixel positions between the captured image 410 and the captured image 420 are compared to identify portions where the pixel value difference is less than a threshold and portions where it is not. FIG. 5(a) shows a binary difference image obtained based on the result of such a comparison. In the difference image 510 of FIG. 5(a), pixel regions where the pixel value difference is less than the threshold are shown as black (0), and pixel regions where the pixel value difference is equal to or greater than the threshold are shown as white (1). Now, among all pixel regions of the captured image 420, the field player 4021, the ball 4031, and the field player 4041 are not present in the pixel regions where these objects were present in the captured image 410. Therefore, the pixel value difference is determined to be equal to or greater than the threshold for these pixel regions. Then, among all pixel regions of the captured image 420, pixel regions where the pixel value difference is determined to be equal to or greater than the threshold become the difference regions 5021, 5031, and 5041, which are shown as white (1) in the difference image 510. Similarly, among all pixel regions of the captured image 420, the pixel regions of the field player 4021', the ball 4031', and the player 4041' do not exist as these objects in the captured image 410. Therefore, these pixel regions become difference regions 5022, 5032, and 5042, which are represented by white (1) in the difference image 510.

[0017] <Step 2> Next, the difference image 510 in FIG. 5(a) is used to update the generated background image 400 in FIG. 4(a). Specifically, the portion other than the difference region in the difference image 510 (= the region where the difference in pixel value is less than a certain value) is determined to be the background region, and the background image 400 is updated using the pixel values ​​of the pixel region on the captured image corresponding to the black pixel region in the difference image 510. Here, either the captured image 410 or the captured image 420 may be used for the update, but it is usually preferable to use the captured image corresponding to the later time. Alternatively, the average value of the pixel values ​​of the corresponding pixels in both captured images may be used. FIG. 5(b) shows a background image obtained by updating the background image 400 using the difference image 510. In the updated background image 520 shown in FIG. 5(b), the keeper 4011, whose position did not change in the captured images 410 and 420, is incorporated into a part of the background. In other words, in this case, the generation (update) of the background image has failed.

[0018] The present disclosure aims to prevent a situation where an object that should be treated as the foreground remains stationary for a certain period of time, as in the above-mentioned case, ends up being incorporated into a background image.

[0019] The method of generating the background image is not limited to the above. For example, the pixel values ​​of the captured image may be acquired and accumulated for a certain period of time, and the pixel values ​​of the background image may be updated by statistical processing. That is, the distribution of pixel values ​​may be acquired for a plurality of captured images captured during a certain period of time, and the pixel values ​​may be classified into a plurality of groups consisting of similar pixel values, and the average value or the most frequent value of the group with the highest frequency of appearance may be set as the pixel value of the background image as a representative value. Alternatively, an image at a moment when an object does not exist may be stored in advance as a reference background image, and only pixel values ​​of a plurality of captured images captured during a certain period of time that are similar to the pixel values ​​in the reference background image may be set as pixel values ​​of the updated background image. Furthermore, these methods may be used in combination according to the characteristics of the object to be captured.

[0020] <Operation flow> Next, the flow of the background image generation process in this embodiment will be described in detail with reference to the flowchart in FIG. 3. The flowchart in FIG. 3 shows a specific process flow when updating a background image at a certain time (frame), and one background update is completed each time the process of the flowchart is executed. The update frequency is determined according to the specifications of the system side (the system that performs foreground / background separation and coloring of the background model) that uses the latest background image 112, and is executed at a predetermined update frequency. Before the execution of this flow starts, the update region information prepared in advance by the user is read from the auxiliary storage device 204 by the region information acquisition unit 102 and expanded in the RAM 203, and is in a state that can be referenced by the CPU 201. In the following description, the symbol "S" means a step.

[0021] In S301, the image acquisition unit 101 acquires a plurality of captured images captured during a certain period of time. The captured images are images captured by a certain imaging device at different times under the same imaging conditions, such as the captured image 410 in FIG. 4(b) and the captured image 420 in FIG. 4(c) described above. Here, the "certain period" is, for example, about 0.5 to 5 seconds in the case of a sports game such as soccer. Now, assume that the number of captured images used in the update process is two. Here, if the frame rate of the imaging device is 60 fps and the "certain period" is 5 seconds, two captured images, for example, the captured image of the 0th frame and the captured image of the 299th frame, are acquired from the 300 frames of captured images acquired during the 5 seconds. Note that the number of captured images to be acquired may be three or more. The more the number of captured images, the more it is possible to prevent the occurrence of a situation in which an object that happens to be stationary during the certain period of time is incorporated into the background. In addition, the moving speed of the object to be imaged may be taken into consideration when determining the "certain period of time". For example, a time interval that does not cause objects to overlap each other may be set based on the average size and moving speed of the objects. However, even if the fixed time is appropriately set by taking such considerations into account, it is not possible to completely prevent objects that remain stationary for a long time from being captured in the background image. Also, since structures in the image capture space may deform or move during the image capture period, it is necessary to periodically update the entire background image at intervals longer than the above-mentioned "fixed time."

[0022] The following steps S302 to S307 are executed by the background image generation unit 103. First, in S302, the background image to be updated is read from the background image storage unit 104. As described above, the background image to be updated is the current background image (generated by the most recent update process) stored in the background image storage unit 104. Here, it is assumed that the background image 400 shown in FIG. 4(a), in which only background structures are shown, has been read.

[0023] In S303, whether to execute S304 or S307 is determined depending on whether a setting has been made to perform a partial update (hereinafter referred to as a "partial update") targeting only a part of the background image (branching step). Here, whether to perform a partial update is set based on a user instruction via a UI screen (not shown) that allows the user to select whether or not to perform a partial update. Then, in this step, control is performed such that allocation is made by referring to flag information that indicates whether or not to perform a partial update and that has been set based on the user instruction. If a partial update is to be performed, S304 is executed next, and if a partial update is not to be performed, S307 is executed next.

[0024] In S304 when performing partial update, the area to be updated (processing target area) in the current background image read from the background image storage unit 104 is determined based on the update area information. Here, the manner in which the processing target area is determined will be described using the background image 400 as an example. As described above, in the captured image 410 corresponding to time t and the captured image 420 corresponding to time t+1 shown in (b) and (c) of FIG. 4, the moving field players 4021, 4041 and the ball 4031 are mixed with the stationary goalkeeper 4011. Therefore, in order to prevent the stationary goalkeeper 4011 from being taken into the background image, the update area information is created in advance so that the background update is not performed for the area where the goalkeeper 4011 is likely to remain stationary, and the background update is performed for the area not including the goal 4002. FIG. 4(d) is a diagram showing an example of a binary mask image as the update area information. The mask image 430 in FIG. 4(d) is composed of an update area 431 shown by hatching and a non-update area 432 without hatching. FIG. 4(e) is a diagram showing the area in the captured image 410 corresponding to the update area 431 with a solid line frame 411, and FIG. 4(f) is a diagram showing the area in the captured image 410 corresponding to the non-update area 432 with a dashed line frame 412.

[0025] The updated region information may be in any form that can identify the updated region and the non-updated region in the background image, and is not limited to a mask image. For example, it may be two-dimensional coordinate information that can identify the updated region and the non-updated region. In addition, although there is one non-updated region in the example of the mask image 430 in FIG. 4(d), there may be multiple non-updated regions. A case in which there are multiple non-updated regions may be a case in which, for example, in a baseball game, there are relatively few positions of the umpire and catcher scattered in the captured image. In this step, a processing target region in the current background image in which pixel values ​​are to be updated is determined based on such updated region information.

[0026] In S305, background updating is performed by applying the background image generation method described above to the processing target area determined in S304. As a result, only the pixel values ​​of pixels that belong to the processing target area of ​​the current background image are updated.

[0027] In S306, it is determined whether the update process has been completed for all update regions specified by the update region information. If there are any unprocessed update regions, the process returns to S304, the next region to be processed is determined, and the process continues. On the other hand, if the update process has been completed for all update regions indicated by the update region information, S308 is executed next.

[0028] In S307 when partial updating is not performed, the entire area of ​​the current background image read from background image storage unit 104 is treated as the processing target area and an update process is performed using the background image generation method described above. As a result, the pixel values ​​of the pixels constituting the entire area of ​​the current background image are updated as necessary.

[0029] In S308, background image generation unit 103 outputs the updated background image obtained by the processes up to this point as latest background image 112. The updated background image is also output to background image holding unit 104, where it is held in preparation for the next update process. The above is the content of the background image generation process of this embodiment.

[0030] <Variation 1> If there is no stationary object at the timing, it is appropriate to perform the update process on the entire area of ​​the background image. For example, in the above-mentioned soccer example, if the goalkeeper 4011 is not stationary in front of the goal 4002, such as moving while playing away from the goal 4002, the goalkeeper 4011 will not be incorporated into the background even if partial update is not performed. Therefore, for example, the timing when a specific object that may become stationary within a certain period of time is not present in the update area may be detected by image analysis such as object detection, or in the case of real-time processing, the operator may determine by looking at the image capture situation. Then, if there is no specific object in the update area, the setting may be dynamically changed so that a full update is performed instead of a partial update.

[0031] <Variation 2> For image regions where there is a high possibility that an object moving within a certain time period exists, background updating may be performed by different methods according to the type of object. (a) to (f) of FIG. 6 are diagrams for explaining an application example of this modified example. FIG. 6(a) is the same as FIG. 4(a) described above, and shows a background image in which no foreground object is shown and only background components (4001 to 4003) are shown. FIG. 6(b) shows a captured image 610 corresponding to a certain time t during a match. Now, the captured image 610 shows each of the objects in the foreground, namely, a goalkeeper 6011, a field player 6021, a ball 6031, and a field player 6041. Furthermore, four spectators 6051 are shown in the spectator seats 4003 in the captured image 610. FIG. 6(c) shows a captured image 620 corresponding to time t+1 captured a certain time after the capture of the captured image 610. The captured image 620 shows the same object as the captured image 610, and reference numbers 6021', 6031', and 6041' with "'" all move more than one body length between time t and time t+1. Also, 6011" with """ moves about half a body length between time t and time t+1. And spectator 6051 appears in the same position in captured image 610 and captured image 620. In other words, it remains stationary between time t and time t+1.

[0032] In this modification, an update method for each region in the background image is determined based on the type of object reflected in the captured image. First, for a region where only objects of a type with a high moving speed are likely to exist, the region is set as a region (short-time update region) where background update is performed in a relatively short time (e.g., 0.5 seconds) as the "fixed time" in S301. On the other hand, for a region (long-time update region) where objects of a type with a low moving speed are likely to exist, the region is set as a region where background update is performed in a relatively long time (e.g., 5.0 seconds) as the "fixed time" in S301. Furthermore, for a region where a stationary object or an object that can be identified with a stationary object (≒ zero moving speed) is likely to exist, the region is set as a region where background update is not performed (non-update region). In the above-mentioned application example, the solid-line frame 631 in FIG. 6(d) indicates a region in the captured image 610 corresponding to the short-time update region, and the dashed-line frame 632 in FIG. 6(e) indicates a region in the captured image 610 corresponding to the long-time update region. Moreover, the dashed-line frame 633 in FIG. 6(f) indicates a region in the captured image 610 corresponding to the non-update region.

[0033] In this modification, update area information capable of identifying these three types of areas is prepared in advance and is read before the start of the background image update process. Fig. 7 is a flowchart showing the flow of the background image generation process according to this modification. The background image generation process according to this modification will be described below with reference to the flowchart in Fig. 7.

[0034] In S701, a plurality of captured images for the short-term update region and a plurality of captured images for the long-term update region are acquired at the timing of each of the fixed time period set for the short-term update region and the fixed time period set for the long-term update region.

[0035] The steps S702 to S704 are the same as S302 to S304 in the flowchart of Fig. 3, and therefore description thereof will be omitted. When the update target area in the background image is determined based on the update area information in S704, the next step S705 is a process of selecting an update method depending on whether the determined update target area is a short-time update area or a long-time update area (branching step). Specifically, if the update target area is a short-time update area, S706 is executed next, and if the update target area is a long-time update area, S707 is executed next.

[0036] In S706, the background is updated by applying a background image generation method that can incorporate changes in the background caused by aging or deformation into the background image relatively quickly, using the multiple captured images acquired at short time intervals in S701, for the processing target area determined in S704. In the case of a short-time update area, the assumed object is an object that moves quickly and / or moves a large amount, so there is a low possibility that the object will partially overlap between the captured images to be compared. Therefore, for example, a generation method is applied in which a difference value (threshold) for detecting the presence or absence of a change in pixel value is set relatively small.

[0037] In S707, the background is updated by applying a background image generation method capable of incorporating changes in the background caused by aging or deformation into the background image relatively slowly, using the multiple captured images acquired at long time intervals in S701, for the processing target area determined in S704. In the case of a long-time update area, the assumed object is an object that moves slowly and / or moves only a small amount, so there is a low possibility that the object will partially overlap between the captured images to be compared. Therefore, a generation method is applied in which, for example, a difference value (threshold) for detecting the presence or absence of a change in pixel value is set relatively large. Each step of S708 to S710 is the same as S306 to S308 in the flowchart of FIG. 3 described above, and therefore a description thereof will be omitted. Note that this modification may be combined with the above-mentioned modification 1.

[0038] <Variation 3> In the above embodiment, the update region information is described as being prepared in advance by a user or the like in accordance with the captured scene, but the update region information may be dynamically generated based on, for example, changes in pixel values ​​of each pixel constituting the captured image. A method for dynamically generating the update region information is described below.

[0039] 8(a) and 8(b) are graphs with pixel values ​​(0 to 255 in the case of 8 bits) on the vertical axis and time (seconds) on the horizontal axis, showing the change in pixel value of a pixel in a captured image over a predetermined time (e.g., several tens of seconds). Here, the pixel value is, for example, each component value (R value, G value, B value) in a captured image expressed in RGB color space or their average value. FIG. 8(a) corresponds to an object moving relatively slowly, and FIG. 8(b) corresponds to an object moving relatively quickly. A bidirectional arrow 802 in FIG. 8(a) and a bidirectional arrow 812 in FIG. 8(b) indicate the range of pixel values ​​representing the original background color, and a bidirectional arrow 803 in FIG. 8(a) and a bidirectional arrow 813 / 814 in FIG. 8(b) indicate the range of pixel values ​​representing colors other than the background.

[0040] When the object moves slowly, the period during which the pixel values ​​represent colors other than the background becomes relatively long, as shown by the solid line 801 in Fig. 8(a), and the number of occurrences per unit time during that period becomes small. In contrast, when the object moves quickly, the period during which the pixel values ​​represent colors other than the background becomes relatively short, as shown by the solid line 811 in Fig. 8(b), and the number of occurrences per unit time during that period becomes large. Therefore, the tendency of pixel value changes per unit time is analyzed for captured images obtained in time series, and a region consisting of a pixel group close to the solid line 801 in Fig. 8(a) is determined as a long-term update region, and a region consisting of a pixel group close to the solid line 811 in Fig. 8(b) is determined as a short-term update region. This makes it possible to automatically obtain update region information.

[0041] In this modified example, regardless of the type of object, a background image can be generated in which no object that remains stationary for a certain period of time is captured. It goes without saying that the color space of the captured image is not limited to the RGB color space and may be other image formats.

[0042] As described above, according to this embodiment including the various modified examples, even if an object remains stationary in a part of a captured image for a certain period of time, the background image can be generated and updated without the object being incorporated into the background.

[0043] (Other embodiments) The present disclosure can also be realized by a process in which a program for implementing one or more functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. It can also be realized by a circuit (e.g., ASIC) that implements one or more functions.

[0044] The present disclosure also includes the following configurations and methods.

[0045] [Configuration 1] An image processing device that generates a background image from a plurality of captured images obtained over a certain period of time, image acquisition means for acquiring the plurality of captured images; An information acquisition means for acquiring area information indicating an update area to be updated and a non-update area not to be updated for the background image; an image generating means for performing an update process on the update area of ​​the generated background image corresponding to the plurality of captured images, the update area being specified by the area information, based on the plurality of captured images, to generate a new background image; 13. An image processing device comprising:

[0046] [Configuration 2] A setting unit for setting whether or not to perform an update process using the area information is further provided, When the setting means sets the image generating means to perform an update process using the area information, the image generating means performs an update process on the update area to generate a new background image. 2. The image processing device according to claim 1,

[0047] [Configuration 3] The device further includes a display means for displaying a UI screen for allowing a user to instruct the setting, The setting means performs the setting based on a user instruction via the UI screen. 3. The image processing device according to configuration 2.

[0048] [Configuration 4] 4. The image processing device according to configuration 3, wherein the setting means performs the setting based on a user instruction given via the UI screen before the image acquisition means starts acquiring the plurality of captured images.

[0049] [Configuration 5] The image processing device according to configuration 3, wherein the setting means performs the setting based on a user instruction via the UI screen on which the acquired plurality of captured images are displayed after the image acquisition means starts acquiring the plurality of captured images.

[0050] [Configuration 6] a detection unit that detects whether a specific object is present within the update area that is specified by the area information of the plurality of captured images acquired by the image acquisition unit, The setting means sets not to perform an update process using the area information when the specific object is not detected by the detection means. 3. The image processing device according to configuration 2.

[0051] [Configuration 7] When the setting means has not set the update process using the area information, the image generation means performs an update process for the entire area of ​​the generated background image based on the plurality of captured images to generate a new background image. 7. The image processing device according to any one of configurations 2 to 6,

[0052] [Configuration 8] A storage unit for storing the generated background image is further provided. 8. The image processing device according to any one of claims 1 to 7, wherein the image generating means generates the new background image from the generated background image stored in the storage means.

[0053] [Configuration 9] The image processing device according to any one of configurations 1 to 8, characterized in that the update process is a process of comparing corresponding pixels included in a target area of ​​the update process for the plurality of captured images, and changing pixel values ​​of corresponding pixels in the generated background image for pixels whose pixel value difference is equal to or less than a threshold value.

[0054] [Configuration 10] the region information includes a first update region corresponding to a first type of object having a relatively high moving speed, and a second update region corresponding to a second type of object having a relatively low moving speed; the certain time for acquiring the plurality of captured images used in the update process for the first update region is shorter than the certain time for acquiring the plurality of captured images used in the update process for the second update region. 10. The image processing device according to configuration 9.

[0055] [Configuration 11] 11. The image processing device according to configuration 10, wherein the threshold used in the update process for the first update region is smaller than the threshold used in the update process for the second update region.

[0056] [Configuration 12] The image processing device according to any one of configurations 1 to 8, characterized in that the update process is a process of acquiring and accumulating each pixel value of the plurality of captured images for a certain period of time and changing the pixel values ​​in the generated background image by statistical processing.

[0057] [Configuration 13] The image processing device according to any one of configurations 1 to 8, characterized in that the update process is a process of acquiring a distribution of pixel values ​​for the plurality of captured images, classifying the plurality of captured images into a plurality of groups consisting of similar pixel values, and setting an average value or a mode value of the group that appears most frequently as the pixel value of the new background image.

[0058] [Configuration 14] The image processing device according to any one of configurations 1 to 8, characterized in that the update process is a process in which an image at a moment when no object is present is stored in advance as a reference background image, and only pixel values ​​among the pixel values ​​of the plurality of captured images that are approximate to pixel values ​​in the reference background image are set as pixel values ​​of the background image after updating.

[0059] [Configuration 15] a generating unit that generates the region information based on a change in pixel value of each pixel of the plurality of captured images; The information acquisition means acquires the area information generated by the generation means. 10. The image processing device according to any one of configurations 1 to 9,

[0060] [Configuration 16] 13. The image processing device according to any one of configurations 1 to 12, wherein the region information is a mask image in which the updated region and the non-updated region are expressed in binary form.

[0061] [Method 1] 1. An image processing method for generating a background image from a plurality of captured images obtained over a certain period of time, comprising the steps of: an image acquiring step of acquiring the plurality of captured images; an information acquiring step of acquiring area information indicating an update area to be updated and a non-update area not to be updated for the background image; an image generating step of performing an update process for the update region specified by the region information in the generated background image corresponding to the plurality of captured images based on the plurality of captured images to generate a new background image; 13. An image processing method comprising:

[0062] [Configuration 17] A program for causing a computer to function as the image processing device according to any one of configurations 1 to 16.

Claims

1. An image processing device that generates a background image from a plurality of captured images obtained over a certain period of time, image acquisition means for acquiring the plurality of captured images; An information acquisition means for acquiring area information indicating an update area to be updated and a non-update area not to be updated for the background image; an image generating means for performing an update process on the update area of ​​the generated background image corresponding to the plurality of captured images, the update area being specified by the area information, based on the plurality of captured images, to generate a new background image; 13. An image processing device comprising:

2. A setting unit for setting whether or not to perform an update process using the area information is further provided, When the setting means sets the image generating means to perform an update process using the area information, the image generating means performs an update process on the update area to generate a new background image.

2. The image processing device according to claim 1,

3. a display unit for displaying a UI screen for a user to instruct the setting, The setting means performs the setting based on a user instruction via the UI screen.

3. The image processing device according to claim 2.

4. 4. The image processing apparatus according to claim 3, wherein the setting means performs the setting based on a user instruction given via the UI screen before the image acquisition means starts acquiring the plurality of captured images.

5. 4. The image processing device according to claim 3, wherein the setting means performs the setting based on a user instruction via the UI screen on which the acquired plurality of captured images are displayed after the image acquisition means starts acquiring the plurality of captured images.

6. a detection unit that detects whether a specific object is present within the update area that is specified by the area information of the plurality of captured images acquired by the image acquisition unit, The setting means sets not to perform an update process using the area information when the specific object is not detected by the detection means.

3. The image processing device according to claim 2.

7. When the setting means has not set the update process using the area information, the image generation means performs an update process for the entire area of ​​the generated background image based on the plurality of captured images to generate a new background image.

7. The image processing device according to claim 2, wherein the first and second inputs are input to the image processing apparatus.

8. A storage unit for storing the generated background image is further provided.

2. The image processing apparatus according to claim 1, wherein said image generating means generates said new background image from said already-generated background image stored in said storage means.

9. 2. The image processing device according to claim 1, wherein the update process is a process of comparing corresponding pixels included in a target area of ​​the update process for the plurality of captured images, and changing the pixel value of a corresponding pixel in the generated background image for pixels whose pixel value difference is equal to or less than a threshold value.

10. the region information includes a first update region corresponding to a first type of object having a relatively high moving speed, and a second update region corresponding to a second type of object having a relatively low moving speed; the certain time for acquiring the plurality of captured images used in the update process for the first update region is shorter than the certain time for acquiring the plurality of captured images used in the update process for the second update region.

10. The image processing device according to claim 9,

11. The image processing device according to claim 10 , wherein the threshold value used in the update process for the first update region is smaller than the threshold value used in the update process for the second update region.

12. 2 . The image processing device according to claim 1 , wherein the update process is a process of acquiring and accumulating pixel values ​​of the plurality of captured images for a certain period of time, and changing pixel values ​​in the generated background image through statistical processing.

13. 2. The image processing device according to claim 1, wherein the update process is a process of acquiring a distribution of pixel values ​​for the plurality of captured images, classifying the plurality of captured images into a plurality of groups consisting of similar pixel values, and setting an average value or a mode value of the group with the highest frequency of occurrence as the pixel value of the new background image.

14. 2. The image processing device according to claim 1, wherein the update process is a process in which an image at a moment when no object is present is stored as a reference background image in advance, and only pixel values ​​among the pixel values ​​of the plurality of captured images that are approximate to pixel values ​​in the reference background image are set as pixel values ​​of the updated background image.

15. a generating unit that generates the region information based on a change in pixel value of each pixel of the plurality of captured images; The information acquisition means acquires the area information generated by the generation means.

2. The image processing device according to claim 1,

16. 2 . The image processing apparatus according to claim 1 , wherein the region information is a mask image in which the updated region and the non-updated region are expressed in binary form.

17. 1. An image processing method for generating a background image from a plurality of captured images obtained over a certain period of time, comprising the steps of: an image acquiring step of acquiring the plurality of captured images; an information acquiring step of acquiring area information indicating an update area to be updated and a non-update area not to be updated for the background image; an image generating step of performing an update process for the update region specified by the region information in the generated background image corresponding to the plurality of captured images based on the plurality of captured images to generate a new background image; 13. An image processing method comprising:

18. A program for causing a computer to execute the image processing method according to claim 17.

Citation Information

Patent Citations

  • Picture processor

    JP2000285244A

  • Image monitoring system

    JP2001043383A

  • Moving object detection method and moving object detection device

    JP2004046501A

  • Image processing apparatus, image processing method and program

    JP2009071857A

  • Image processing device, image processing method, and program

    JP2019134269A