Image processing device, image processing method and program

JP7542978B2Active Publication Date: 2024-09-02CANON KK
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2020065788
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-04-01
Publication Date
2024-09-02
Estimated Expiration
2040-04-01

AI Technical Summary

Benefits of technology

【0007】 本開示の技術によれば、画像から前景を適切に抽出することができる。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007542978000007
    Figure 0007542978000007
  • Figure 0007542978000001
    Figure 0007542978000001
  • Figure 0007542978000004
    Figure 0007542978000004
Patent Text Reader

Abstract

To provide an image processing apparatus that appropriately extracts a foreground from an image.SOLUTION: An image processing apparatus 10 comprises: a foreground extraction unit 101 that compares between a processing image and a background image corresponding to the processing image to extract a foreground corresponding to an object included in the processing image, from the processing image; a background generation unit 102 that generates the background image from the processing image; and a background update unit 103 that determines whether or not the background image used in the foreground extraction unit 101 can be updated, and that updates the background image used in the foreground extraction unit 101 to the background image generated in the background generation unit 102 according to the determination result.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The techniques of this disclosure relate to extracting foreground from a processed image. [Background technology]

[0002] There are various image processing devices that analyze captured images (processed images) obtained by capturing images with an imaging device and extract the foreground from the processed images. In image processing devices, depending on the detection means and the situation of the captured scene, false detection of the foreground, that is, detection of something that is not the foreground, or failure to detect the foreground even though it exists, may occur. Patent Document 1 discloses a method for detecting changes in objects captured in an image, extracting immovable areas, and preventing false detection of immovable objects placed in front of a camera. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] International Publication No. 2018 / 056355 Summary of the Invention [Problem to be solved by the invention]

[0004] However, in Patent Document 1, for example, in a scene where the movement of a person or object stops even for a short time, it is difficult to detect the person or object as the foreground. In the background subtraction method, an area that does not move for a certain period of time is determined as a background area, and the image corresponding to the background area is updated as a background image used when extracting the foreground from the processed image. In the state of an object where a person stops for a certain period of time or moves to an extent that cannot be extracted as the foreground, there is a problem that non-detection or erroneous detection occurs, and the area corresponding to the person cannot be properly extracted as the foreground from the processed image.

[0005] The techniques disclosed herein provide techniques for appropriately extracting foreground from an image. [Means for solving the problem]

[0006] An image processing device according to one aspect of the technology of the present disclosure includes an extraction means for comparing a processed image with a background image corresponding to the processed image and extracting a foreground corresponding to an object included in the processed image from the processed image, a reception means for receiving a setting for updating the background image used by the extraction means from a user via a user setting screen, and an update means for starting to update the background image based on the setting after the reception means receives the setting. The update means identifies pixels to be updated in the background image, the pixels having differences from the background image in all of the plurality of processed images equal to or smaller than a threshold value based on a comparison result between each of the plurality of processed images and the background image, and updates the pixel values ​​of the identified pixels. It is characterized by: Effect of the Invention

[0007] According to the technique of the present disclosure, the foreground can be appropriately extracted from an image. [Brief description of the drawings]

[0008] [Figure 1] FIG. 2 is a diagram illustrating an example of a functional configuration of an image processing device. [Diagram 2] FIG. 4 is a diagram illustrating an internal configuration of a background generating unit. [Diagram 3] 13 is a flowchart showing the flow of image processing. [Figure 4] FIG. 13 is a diagram illustrating an example of a UI screen. [Diagram 5] FIG. 2 is a diagram illustrating an example of a functional configuration of an image processing device. [Figure 6] 13 is a flowchart showing the flow of image processing. [Figure 7] FIG. 2 is a diagram illustrating an example of a hardware configuration of an image processing apparatus. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

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

[0010] <Embodiment 1> An image processing device according to the present embodiment will be described with reference to Figures 1 to 4. In the present embodiment, an input image (processed image) is compared with a background image (also called background) to extract a foreground from the input image, and a user can set whether or not to update the background image and the update timing of the background image.

[0011] (Software configuration of image processing device) 1 is a diagram showing an example of the functional configuration of an image processing device according to this embodiment. The image processing device 10 according to this embodiment can function as a device that separates and generates a foreground and background image from an input image. The image processing device 10 includes an image receiving unit 100, a foreground extracting unit 101, a background generating unit 102, a background updating unit 103, and a setting receiving unit 104.

[0012] The image receiving unit 100 receives (acquires) an image (input image) captured by an imaging device. The image receiving unit 100 may directly acquire the input image from the imaging device, or may acquire the input image stored in an image processing device or an external device connected to the image processing device. The input image received by the image receiving unit 100 is output to a foreground extraction unit 101 and a background generation unit 102.

[0013] Foreground extraction unit 101 compares a background image generated based on an input image with the input image, and extracts the foreground from the input image based on the comparison result. The background image is an image generated by background generation unit 102 and input via background update unit 103. The input image is an image input from image reception unit 100. There are various methods for comparing the background image with the input image. For example, pixels whose RGB values ​​differ between the background image and the input image by more than a threshold value (foreground extraction threshold value) may be extracted as the foreground from the input image. Any other image comparison method may be used.

[0014] The background generation unit 102 generates an image consisting of still pixels as a background image by determining that still pixels are background based on input images of multiple frames. The number of frames may be, for example, two or more, as long as it is possible to compare pixel values ​​of the same pixel. For still pixels, for example, the pixel values ​​of the same pixel in input images of multiple frames may be the same or within a threshold (threshold for background generation). Note that the threshold for background generation is smaller than the threshold for foreground extraction.

[0015] The background update unit 103 controls whether to update the background image used in the foreground extraction process of the foreground extraction unit 101 to the background image generated by the background generation unit 102, according to the setting by the setting reception unit 104. The setting by the setting reception unit 104 is accepted by a user operation. In this embodiment, the background update unit 103 has a function of controlling the updating of the background image to be enabled (executable) or disabled (unexecutable), and a function of controlling the timing of updating the background image. When a background image update control button 405 of a UI screen 400 described later is set to be enabled, the background update unit 103 determines that the updating of the background image is executable, and outputs the background image generated by the background generation unit 102 and input from the background generation unit 102 to the foreground extraction unit 101. When the background image update control button 405 of the UI screen 400 is set to disabled, the background update unit 103 determines that updating of the background image cannot be executed, and stops outputting the background image generated by the background generation unit 102 and input from the background generation unit 102 to the foreground extraction unit 101.

[0016] The setting receiving unit 104 receives various settings of the image processing device 10 that performs the foreground / background separation process, and executes settings for the foreground extraction unit 101, the background generation unit 102, and the background update unit 103 according to the received various settings. The various settings include a threshold for foreground extraction, a threshold for background image generation, timing for updating the background image, whether or not to update the background image, etc. The setting receiving unit 104 receives various settings of the image processing device 10 by user operations, for example, via a UI screen 400 described later.

[0017] (Internal structure of background generation part) 2 is a diagram showing the internal configuration of the background generation unit 102. The background generation unit 102 includes an image comparison unit 1020, a background image generation unit 1021, and a determination period control unit 1022.

[0018] The image comparison unit 1020 compares the past input image with the current input image, and determines whether there has been any movement in each pixel based on the comparison result. There are various comparison methods. For example, the determination may be made based on whether the difference between the RGB values ​​of the past input image and the current input image is equal to or greater than a threshold. That is, the image comparison unit 1020 determines that there has been any movement for pixels whose differences between the RGB values ​​are equal to or greater than a threshold, and determines that there has been no movement for pixels whose differences between the RGB values ​​are less than the threshold. Any other method may be used for image difference. The past input image is an input image held by the image comparison unit 1020, and may be an input image of a frame earlier than the current input image at the time of comparison, and may be an input image of one frame earlier or an input image of several frames earlier. The determination result by the image comparison unit 1020 is output to the background image generation unit 1021.

[0019] The background image generating unit 1021 generates and holds a background image based on the determination result of the image comparing unit 1020. The background image generating unit 1021 updates (replaces) the pixel value of the background image held by the background image generating unit 1021 with the pixel value of the input image for the pixel determined by the image comparing unit 1020 to have no motion. In addition, the comparison result of one frame of input image or the comparison result of multiple frames of input image may be used to generate the background image. By using the comparison result of multiple frames of input images to generate the background image, it becomes possible to stably detect the background. The number of frames of the input image to be compared when generating the background image can be controlled by the setting by the determination period control unit 1022. In this embodiment, using the result of comparing the input images of the number of frames set by the determination period control unit 1022, if the difference in pixel value in all frames is equal to or less than a threshold, the pixel is determined to have no motion.

[0020] As described above, the determination period control unit 1022 controls the number of frames for determining an image as a background image.

[0021] (Image Processing) FIG. 3 is a flowchart showing the flow of image processing (foreground / background separation processing) by the image processing device 10. This flowchart shows processing for receiving one frame of an input image, generating or updating a background image according to settings, and extracting the foreground. It is assumed that the past input image used in the processing of S302 described later and the background image used in the processing of S307 are held in the image processing device 10. That is, it is assumed that the image processing device 10 has already generated a background image, the image comparison unit 1020 holds the past input image used at the time of comparison, the background image generation unit 1021 holds the background image, and the foreground extraction unit 101 holds the background image. In this embodiment, it is assumed that whether or not to execute the update of the background image can be set by a user operation, and whether or not to execute the update of the background image is set according to the scene. In the state of an object where a person stops for a certain period of time or moves to an extent that cannot be extracted as the foreground, it is assumed that the execution of the update of the background image is set to be impossible. There are various scenes in sports where the execution of the update of the background image is set to be impossible. For example, in soccer, it is a scene where a person stops for a certain period of time at the timing of a free kick. In rugby, it is a scene where people stop for a certain period of time in a scrum scene. Furthermore, it is a scene where people suddenly stop for a certain period of time in a scene to assist an injured player. As a supplement, the foreground may be extracted by executing this process for each frame of input images of consecutive frames. Note that the symbol "S" in the explanation of the flowchart represents a step. This also applies to the explanation of the following flowcharts.

[0022] In S301, the image receiving unit 100 receives an input image, and transmits the received input image to the foreground extraction unit 101 and the background generation unit 102 (the image comparison unit 1020 of the background generation unit 102).

[0023] In S302, image comparison unit 1020 compares the input image (current input image) transmitted from image receiving unit 100 to background generation unit 102 with a past input image (held image) held in image comparison unit 1020, and determines pixels with no motion based on the comparison result. For example, the comparison determines that there is motion when the difference in pixel value between corresponding pixels in the input image and the held image is equal to or greater than a threshold, and determines that there is no motion when the difference in pixel value is less than the threshold. The determination result by image comparison unit 1020 is transmitted to background image generation unit 1021 of background generation unit 102.

[0024] In S303, the background image generating unit 1021 determines whether it is the timing to generate a background image set by the determination period control unit 1022. The timing set in the background image update timing designation window is used to determine the timing to generate a background image. For example, the background image update timing designation window is set to every 1800 frames. If the input image received in S301 is a frame that is a multiple of 1800, such as the 1800th frame, the background image generating unit 1021 obtains a determination result that it is the timing to generate a background image. On the other hand, if the input image received in S301 is a frame that is not a multiple of 1800, such as the 1801st frame, the background image generating unit 1021 obtains a determination result that it is not the timing to generate a background image. If the background image generating unit 1021 obtains a determination result that it is the timing to generate a background image (YES in S303), the background image generating unit 1021 shifts the process to S304. On the other hand, if the background image generating unit 1021 determines that it is not time to generate a background image (NO in S303), the background image generating unit 1021 moves the process to S305.

[0025] In S304, the background image generation unit 1021 generates a background image by replacing the pixel values ​​of the current background image with the pixel values ​​of the current input image for pixels determined to have no motion based on the comparison results of the input images of multiple frames. The number of input images of frames to be used for the judgment is the number of frames of comparison results set by the judgment period control unit 1022. Then, the background image generation unit 1021 transmits the generated background image to the background update unit 103. After transmitting the background image, the background image generation unit 1021 transitions to the process at S305.

[0026] In S305, the background update unit 103 determines whether or not it is possible to update the background image. Whether or not it is possible to update the background image is set, for example, by a user operation on a UI screen 400 described later. If the background update unit 103 obtains a determination result that it is not possible to update the background image (NO in S305), the background update unit 103 skips S306 and proceeds to S307. On the other hand, if the background update unit 103 obtains a determination result that it is possible to update the background image (YES in S305), the background update unit 103 proceeds to S306.

[0027] In S306, background update unit 103 transmits the background image to foreground extraction unit 101. Foreground extraction unit 101 receives the background image transmitted from background update unit 103, and updates the background image used for foreground extraction for each pixel based on the received background image. In other words, it can be said that background update unit 103 updates the background image used for foreground extraction by foreground extraction unit 101 to the background image transmitted from background update unit 103 for each pixel.

[0028] Here, the function for controlling whether to enable or disable updating of the background image and the function for controlling the timing of updating the background image are set in advance by the setting receiving unit 104 before executing the process shown in Fig. 3. Also, if the setting of the above function is changed during the process shown in Fig. 3, the changed setting is reflected in the process for the input image of the next frame and thereafter.

[0029] In S307, the foreground extraction unit 101 compares the input image with the background image, and extracts the foreground from the input image based on the difference between the input image and the background image.

[0030] After the foreground extraction process is executed, if there is an input image of the next frame, the process returns to S301 and the processes from S301 to S307 are executed. If there is no input image of the next frame, the flow shown in FIG. 3 ends.

[0031] (UI screen) 4 is a diagram showing an example of a UI screen 400 for setting the functions of the background update unit 103 by the setting receiving unit 104. The UI screen 400 is displayed on a display unit 706, the details of which will be described later, and accepts user operations.

[0032] The UI screen 400 includes an input image window 401, an extracted foreground image window 402, operation buttons 403, a processing frame time code display section 404, a background image update control button 405, and a background image update timing designation window 406. Note that the layout of these, the shapes of the buttons, etc. are not limited to this.

[0033] The input image window 401 is an area for displaying an input image received by the image receiving unit 100. In the input image window 401, the input image of a processing frame corresponding to the position of the slider of the seek bar 4031 and the time displayed in the time code display unit 404 is displayed.

[0034] The extracted foreground image window 402 is an area for displaying the foreground corresponding to the input image of the processing frame displayed in the input image window 401 and extracted from the input image of the processing frame by the foreground extraction unit 101 .

[0035] The operation buttons 403 include a seek bar 4031, a play button 4032, and a stop button 4033. When the play button 4032 is pressed by a user operation, the foreground extraction process starts, the slider of the seek bar 4031 moves along the bar accordingly, and the processing frame displayed in the input image window 401 also advances. Time Code Display section When the stop button 4033 is pressed by the user, the foreground extraction process stops, the slider of the seek bar 4031 stops on the bar, and the processed frame displayed in the input image window 401 also stops. Display section This will also stop the 404 messages from appearing.

[0036] The time code display section 404 displays the time code of the frame being processed.

[0037] Background image update control button 405 can be set to "enabled" to enable background image update, or to "disabled" to disable background image update. If background image update is set to disabled, it will be determined in S305 of Fig. 3 that background image update is not possible. If background image update is set to enabled, it will be determined in S305 of Fig. 3 that background image update is possible.

[0038] The timing set in the background image update timing designation window 406 is used for the determination in S303. For example, if 1800 is designated, the background image is updated once every 1800 frames (once every 30 seconds in the case of processing a 60 fps video).

[0039] As described above, according to this embodiment, by making it possible to control (set) whether to update the background image and the update timing of the background image, it is possible to appropriately extract the foreground from the processed image regardless of the state of the object. That is, even if an object such as a person or an object stops for a certain period of time or moves to an extent that it cannot be extracted as the foreground, it is possible to prevent erroneous detection of the foreground in which the foreground including the object is captured in the background image, or failure to detect the foreground including the object.

[0040] In the present embodiment, the timing of generating a background image and whether or not to update the background image are determined separately, but the present invention is not limited to this. The background image may be updated only when the background image is generated.

[0041] In addition, in the present embodiment, the timing for updating the background image is manually input (set), but is not limited to this. An initial value indicating the timing for updating the background image may be automatically set for each sport or subject to be imaged, or a recommended value indicating the timing for updating the background image may be set or displayed based on lighting conditions or weather that change over time.

[0042] <Embodiment 2> In this embodiment, a form will be described in which it is determined whether or not to update the background image depending on the state of the foreground and the state of the generated background image.

[0043] (Software configuration of image processing device) 5 is a diagram showing an example of the functional configuration of an image processing device of this embodiment. Similar to embodiment 1, image processing device 50 of this embodiment can function as a device that separates and generates foreground and background images from an input image (processed image). Note that the same reference numerals are given to the same configurations and processes as those of embodiment 1 described above, and the description here focuses mainly on the different parts.

[0044] The image processing device 50 includes an image receiving unit 100 , a setting receiving unit 104 , a foreground extracting unit 501 , a background generating unit 502 , and a background updating unit 503 .

[0045] In addition to the operation of foreground extraction unit 101 in embodiment 1, foreground extraction unit 501 derives the ratio of the foreground extracted from the input image and outputs the derived foreground ratio to background update unit 503. That is, foreground extraction unit 501 extracts the foreground from the input image, derives the foreground ratio, and outputs it to background update unit 503. The foreground ratio represents the proportion of the foreground in the input image.

[0046] In addition to the operation of the background generation unit 102 in the first embodiment, the background generation unit 502 outputs the ratio of pixels determined to be background images (also called background ratio) to the background update unit 503. The background ratio represents the proportion of pixels determined to be background in the input image in comparison with a past background image.

[0047] The background update unit 503 judges whether the state of the foreground and the state of the background image are normal based on the ratio of the foreground and the ratio of pixels determined to be a background image (background), and executes or does not execute the update of the background image according to the judgment result. In this embodiment, if the ratio of the foreground is higher than a set, predetermined first threshold and it is judged that the state of the foreground is abnormal and not normal, the background image is not updated. Also, if the ratio of pixels determined to be a background image is lower than a predetermined second threshold (there are many moving pixels) and it is judged that the state of the background image is abnormal and not normal, the background image is not updated. The first threshold and the second threshold may be set in advance, or may be set via the setting receiving unit 104. Thereby, in a situation (scene) where there are many foregrounds moving in the input image (screen), it is possible to determine that the likelihood of the image being a background image is low, and set not to execute the update of the background image. On the other hand, if it is judged that the ratio of the foreground is lower than the first threshold and the state of the foreground is normal, and the ratio of pixels determined to be a background image is higher than the second threshold (there are few moving pixels) and it is judged that the state of the background image is normal, the background image is updated. As a result, in a situation (scene) where there is little foreground movement in the input image (screen), it is possible to determine that the likelihood of the image being a background image is high, and to set the device to execute updating of the background image. The first threshold value may be, for example, 50%. The second threshold value may be, for example, 50%.

[0048] Here, the comparison method using a threshold has been described, but is not limited to this. In addition, the determination may be made according to the state of the foreground or background image update location. For example, when a large number of small foregrounds exist in the entire input image (screen), it may be determined that there is a lot of noise and it may be determined to stop updating the background image. In addition, when the update location of the background image is a lump area of ​​a certain size, it may be determined that it is not grass such as soccer, but a flag spread on the field, and it may be determined to stop updating the background image. In addition, instead of the comparison using a threshold, a comparison using an average value over a certain period of time may be used. When the ratio of the foreground or the ratio of pixels determined to be the background image is significantly different from the average value over a certain period of time, it may be determined not to update the background image. The determination when stopping the update of the background image is not limited to this. It may be determined to stop updating the background image based on the state of the foreground or background image.

[0049] (Image Processing) 6 is a flowchart showing the flow of image processing (foreground / background separation processing) by the image processing device 50. The difference from the first embodiment is the determination processing of S601 and S602. When a determination result is obtained in S303 that it is not the timing to generate a background (NO in S303), or after the background image generation processing of S304 is completed, the processing proceeds to S601. It is assumed that the ratio of the foreground used in the processing of S601 and the ratio of pixels determined to be the background image used in the processing of S602 are held in the image processing device 50. That is, it is assumed that the image processing device 50 has already generated a background image, and the background update unit 503 holds the ratio of the foreground and the ratio of pixels determined to be the background image.

[0050] In S601, the background update unit 503 determines whether the state of the foreground is normal. For example, the background update unit 503 first compares the ratio of the foreground input from the foreground extraction unit 501 with a first threshold. The ratio of the foreground may be the ratio of the foreground derived in the previous foreground extraction process. When the background update unit 503 obtains a comparison result that the ratio of the foreground is lower than the first threshold, the background update unit 503 determines that the state of the foreground is normal (YES in S601) and shifts the process to S602. On the other hand, when the background update unit 503 obtains a comparison result that the ratio of the foreground is higher than the first threshold, the background update unit 503 determines that the state of the foreground is abnormal and not normal (NO in S601), skips S306, and shifts the process to S307.

[0051] In S602, the background update unit 503 determines whether the state of the background image is normal. For example, the background update unit 503 first Background generation section 502 The ratio of pixels determined to be a background image input from the background update unit 503 is compared with a second threshold value. The ratio of pixels determined to be a background image may be the ratio of pixels determined to be a background image derived in a previous background generation process. When the background update unit 503 obtains a comparison result that the ratio of pixels determined to be a background image is higher than the second threshold value, the background update unit 503 determines that the state of the background is normal (YES in S602) and shifts the process to S306. On the other hand, when the background update unit 503 obtains a comparison result that the ratio of pixels determined to be a background image is lower than the second threshold value, the background update unit 503 determines that the state of the background is abnormal and not normal (NO in S602) and shifts the process to S307.

[0052] In this flowchart, the process of updating the background image when both the foreground state and the background image state are determined to be normal has been described, but the process is not limited to this. When only one of the foreground state and the background image state is determined to be normal, the background image may be updated. In addition, the foreground state and the background image state may be weighted, and whether or not to update the background image may be determined based on the total value. In other words, when the total value is greater than a certain value, the proportion of the foreground is high, so the background image is not updated, and when the total value is smaller than a certain value, the proportion of the foreground is low, so the background image is updated.

[0053] As described above, according to the present embodiment, it is possible to automatically determine whether or not to update the background image according to the state of the foreground and background images without user operation, and it is possible to appropriately extract the foreground from the input image. That is, for example, when the input image has a large amount of foreground, it is possible to determine that the likelihood of the foreground image being a background image is low, and to not update the background image.

[0054] (Hardware configuration of image processing device) Fig. 7 is a diagram showing an example of the hardware configuration of an image processing device 70. The hardware configuration of the image processing device 70 shown in Fig. 7 realizes the functional configuration of the software shown in Fig. 1 and Fig. 5. The image processing device 70 is a computer, and has a CPU 700, a ROM 701, a RAM 702, a hard disk drive (HDD) 703, a network interface card (NIC) 704, an input unit 705, and a display unit 706.

[0055] The CPU 700 controls the entire computer using computer programs and data stored in the ROM 701 and the RAM 702, and executes the above-mentioned processes as those performed by the image processing device according to each embodiment. That is, the CPU (Central Processing Unit) 700 functions as each processing unit shown in FIG. 1. The ROM (Read Only Memory) 701 stores setting data and a boot program for this computer. The RAM (Random Access Memory) 702 has an area for temporarily storing computer programs and data loaded from the HDD 703, data acquired from the outside via the NIC 704, and the like. Furthermore, the RAM 702 has a work area used when the CPU 700 executes various processes. That is, the RAM 702 can be allocated as a frame memory, for example, or can provide various other areas as appropriate.

[0056] The input unit 705 is composed of a keyboard, a mouse, etc., and can input various instructions to the CPU 700 by operating the input unit 705 by the user of the computer. The display unit 706 is composed of, for example, a liquid crystal display, and displays the processing results by the CPU 700. The HDD 703 is a large-capacity information storage device. The HDD 703 stores an operating system (OS) and computer programs for making the CPU 700 realize the functions of each unit shown in FIG. 1 and FIG. 5. Furthermore, the HDD 703 may store each image data to be processed. The computer programs and data stored in the HDD 703 are loaded into the RAM 702 as appropriate under the control of the CPU 700, and become the processing target of the CPU 700. The NIC 704 can be connected to a network such as a LAN or the Internet, and other devices such as a projector or display device, and the computer can obtain and send various information through the NIC 704. The system bus 707 is a bus that connects the above-mentioned units so that they can transmit and receive data to each other.

[0057] The operation of the above-mentioned configuration is controlled mainly by the CPU 700 as described in the previous embodiment.

[0058] The object of the present disclosure can also be achieved by supplying a storage medium on which a computer program code for implementing the above-mentioned functions is recorded to a system, and the system reads and executes the computer program code. In this case, the computer program code itself read from the storage medium implements the functions of the above-mentioned embodiment, and the storage medium on which the computer program code is stored constitutes the present disclosure. It also includes cases where an OS running on a computer performs part or all of the actual processing based on the instructions of the program code, and the above-mentioned functions are implemented by that processing.

[0059] Furthermore, the present invention may be realized in the following form: That is, the computer program code read from the storage medium is written into a memory provided in a function expansion card inserted into a computer or a function expansion unit connected to the computer. Then, based on the instructions of the computer program code, a CPU provided in the function expansion card or function expansion unit performs part or all of the actual processing to realize the above-mentioned functions.

[0060] When the present disclosure is applied to the above-mentioned storage medium, the storage medium stores computer program code corresponding to the processes described above.

[0061] [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) for implementing one or more functions. [Explanation of symbols]

[0062] 10 Image processing device 101 Foreground Extraction 102 Background Generation Department 103 Background Update Department

Claims

1. an extraction means for comparing a processed image with a background image corresponding to the processed image and extracting from the processed image a foreground corresponding to an object included in the processed image; a receiving means for receiving a setting for updating the background image used by the extracting means from a user via a user setting screen; an update means for starting to update the background image based on the setting after the setting is accepted by the accepting means; having The update means identifies pixels to be updated in the background image, the pixels having differences from the background image in all of the plurality of processed images equal to or smaller than a threshold value based on a comparison result between each of the plurality of processed images and the background image, and updates the pixel values ​​of the identified pixels.

13. An image processing device comprising:

2. When the reception means receives a setting that the background image cannot be updated, the update means does not update the background image.

2. The image processing device according to claim 1,

3. The setting includes a setting of a timing for updating the background image, 2. The image processing apparatus according to claim 1, wherein the update means updates the background image based on the timing.

4. 4. The image processing apparatus according to claim 1, further comprising a determination unit that determines whether or not the background image can be updated.

5. The determination means is If the ratio of the foreground to the processed image is greater than a predetermined threshold, it is determined that the background image cannot be updated; If the ratio of the foreground to the processed image is less than the predetermined threshold, it is determined that the background image can be updated.

5. The image processing device according to claim 4.

6. The determination means is determining that it is not possible to update the background image when a ratio of pixels determined to be the background image in the processed image is lower than a predetermined ratio; If the ratio of pixels in the processed image that are determined to be the background image is higher than the predetermined ratio, it is determined that the background image can be updated.

5. The image processing device according to claim 4.

7. The determination means is determining that it is not possible to update the background image when the ratio of the foreground to the processed image is greater than a predetermined threshold value, or when the ratio of pixels in the processed image that are determined to be the background image is lower than a predetermined ratio; If the ratio of the foreground to the processed image is smaller than a predetermined threshold value, and if the ratio of pixels in the processed image that are determined to be the background image is higher than a predetermined ratio, it is determined that the background image can be updated.

5. The image processing device according to claim 4.

8. 5. The image processing device according to claim 4, wherein the determining means determines that the background image cannot be updated when the object is in a stationary state or when the extracting means is unable to extract the object as the foreground.

9. A program for causing a computer to function as the image processing device according to any one of claims 1 to 8.

10. An image processing method performed by an image processing device, comprising: an extraction step of comparing the processed image with a background image corresponding to the processed image to extract from the processed image a foreground corresponding to an object included in the processed image; a receiving step of receiving a setting for updating the background image used in the extracting step from a user via a user setting screen; an update step of starting to update the background image based on the setting after the setting is accepted in the accepting step; Including, an image processing method characterized in that, in the updating step, based on a comparison result between each of a plurality of processed images and the background image, pixels of the background image whose differences from the background image in all of the plurality of processed images are equal to or less than a threshold value are identified, and the pixel values ​​of the identified pixels are updated.

Citation Information

Patent Citations

  • Method and device for updating background picture

    JP1990071380A

  • Image processing device and method, and program

    JP2011211628A

  • Object detector

    JP2011258214A

  • Information processing device, background update method and background update program

    JP2019091121A

  • Monitoring device

    WO2018056355A1