Information processing device, information processing method, and program

The information processing apparatus uses background subtraction and luminance change analysis to address the challenge of distinguishing foreground and background regions in surveillance images, reducing processing load and ensuring accurate privacy protection by differentiating between gradual and sudden luminance changes.

JP7547080B2Active Publication Date: 2024-09-09CANON KK
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
JP2020086877
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-05-18
Publication Date
2024-09-09
Estimated Expiration
2040-05-18

AI Technical Summary

Technical Problem

Existing image processing technologies fail to accurately distinguish between foreground and background regions in images captured by surveillance devices, especially when automatic exposure changes occur, leading to incorrect identification of background areas as foreground and increased processing load, which can expose privacy-protected subjects or obscure relevant areas.

Method used

An information processing apparatus that uses background subtraction and luminance change analysis to differentiate between foreground and background regions, accounting for gradual and sudden luminance changes due to automatic exposure, thereby reducing processing load and ensuring accurate privacy protection.

Benefits of technology

The solution effectively reduces processing load and ensures accurate privacy protection by distinguishing between foreground and background regions, preventing exposure of privacy-protected subjects and maintaining visibility of relevant areas, even with automatic exposure changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007547080000006
    Figure 0007547080000006
  • Figure 0007547080000003
    Figure 0007547080000003
  • Figure 0007547080000002
    Figure 0007547080000002
Patent Text Reader

Abstract

To enable protection of privacy of an appropriate area even when automatic exposure acts while enabling reduction of a processing load.SOLUTION: An information processing apparatus (100) comprises: detection means (204) which detects at least a foreground area from a photographed image on the basis of a difference between the photographed image and a predetermined image; and determination means (204) which determines whether to fix the foreground area, detected by the detection means (204), as a foreground area based on a luminance change over time.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an information processing technique for a captured image. [Background technology]

[0002] While the installation of imaging devices for surveillance purposes is widespread, the importance of protecting the privacy of people who appear in images captured by the imaging devices is increasing. As a method for protecting the privacy of people who appear in captured images, for example, there is a method of comparing a captured image with a background image, extracting a person in the captured image as a foreground region, and generating an output image that has been subjected to information processing to conceal the foreground region.

[0003] Patent Document 1 discloses a technique for extracting, as a foreground region, a region where the maximum difference between the luminance value of a pixel in a current captured image and the luminance value of a pixel at the same position in captured images up to a certain number of frames ago exceeds a threshold value. Patent Document 2 discloses a technique for detecting a person from a captured image and extracting the person's region as a foreground region. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2009-181220 A [Patent Document 2] JP 2015-80220 A Summary of the Invention [Problem to be solved by the invention]

[0005] However, in the technology of Patent Document 1, when the automatic exposure of the imaging device is activated, the luminance value of the background changes, and the difference with the luminance value of the previous frame exceeds a threshold, so that the background may be erroneously determined as the foreground area. In addition, in the technology of Patent Document 2, only the area of ​​the person becomes the foreground area, so it can handle cases where the luminance of the background changes due to automatic exposure, but the load of the person detection process is high, and it is difficult to process images with a high frame rate or images from multiple imaging devices with one information processing device. In addition, if person detection fails, there is a possibility that a problem will occur in which a person in the captured image (i.e., an area that should be shielded as a privacy protection target) is exposed, or an area that should be captured is erroneously shielded and not displayed.

[0006] Therefore, an object of the present invention is to enable a reduction in the processing load while protecting privacy in an appropriate area even when automatic exposure is activated. [Means for solving the problem]

[0007] The information processing device of the present invention includes a detection means for detecting at least a foreground region from a captured image based on a difference between the captured image and a predetermined image, and a determination means for determining whether the foreground region detected by the detection means is determined to be a foreground region based on a luminance change over time. the determination means determines that the foreground region detected by the detection means is not a foreground region when a gradient of luminance change over time is a gradual change less than a predetermined value, determines whether an absolute difference value between a pixel value of a pixel of interest in the foreground region detected by the detection means from the captured image of the current frame and a pixel value of a pixel corresponding to the pixel of interest in the captured image of the previous frame exceeds a predetermined threshold, and when it is determined that the absolute difference value exceeds the predetermined threshold, determines that the pixel of interest is a pixel included in the foreground region by determining that the gradient of luminance change over time is a sudden change of a predetermined value or more, and determines that the pixel of interest is a pixel included in the foreground region when a pixel of the captured image of the previous frame corresponding to the pixel of interest in the foreground region detected by the detection means from the captured image of the current frame is determined to be included in the foreground region, without determining whether the absolute difference value exceeds the predetermined threshold. The present invention is characterized by the above. Effect of the Invention

[0008] According to the present invention, it is possible to reduce the processing load while protecting privacy in an appropriate area even when automatic exposure is activated. [Brief description of the drawings]

[0009] [Figure 1] FIG. 1 illustrates an example of a system configuration. [Diagram 2] FIG. 2 is a block diagram showing an example of a functional configuration of an information processing device. [Diagram 3] FIG. 13 is a graph showing changes in the luminance value of a pixel of interest. [Figure 4] FIG. 11 is a table showing changes in luminance value of a pixel of interest. [Diagram 5] 13 is a flowchart showing a flow of a process for extracting a foreground region. [Figure 6] FIG. 2 illustrates an example of a hardware configuration of each device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. Note that the following embodiment does not limit the present invention, and not all of the combinations of features described in the present embodiment are essential to the present invention. Also, the same components will be described with the same reference numerals. 1 is a diagram showing the system configuration of this embodiment. The system of this embodiment includes an information processing device 100, an image capturing device 110, a recording device 120, and a display .

[0011] The information processing device 100, the imaging device 110, and the recording device 120 are connected to each other via a network 140. The network 140 is realized by a plurality of routers, switches, cables, etc. that comply with a communication standard such as ETHERNET (registered trademark). Note that the network 140 may be realized by the Internet, a wired LAN (Local Area Network), a wireless LAN (Wireless Lan), a WAN (Wide Area Network), etc.

[0012] The information processing device 100 is realized by a personal computer or the like in which a program for implementing information processing functions according to this embodiment, which will be described later, is installed. The imaging device 110 is a device that captures an image. The imaging device 110 associates image data of a captured image, information on the time when the image was captured, and identification information that identifies the imaging device 110, and transmits the associated data to an external device such as the information processing device 100 or the recording device 120 via the network 140. Note that, although the system according to this embodiment uses one imaging device 110, there may be more than one imaging device 110.

[0013] The recording device 120 records image data of the captured image, information on the capture time, and identification information in association with each other. In addition, in response to a request from the information processing device 100, the recording device 120 transmits the recorded data (image, capture time, identification information, etc.) to the information processing device 100.

[0014] The display 130 is configured with an LCD (Liquid Crystal Display) or the like, and displays the results of information processing by the information processing device 100, images captured by the imaging device 110, etc. The display 130 is connected to the information processing device 100 via a display cable that complies with a communication standard such as HDMI (registered trademark) (High Definition Multimedia Interface). The display 130 also functions as a display unit, and displays images captured by the imaging device 110, results of information processing described later, etc.

[0015] At least two or all of the display 130, the information processing device 100, and the recording device 120 may be provided in a single housing. The information processing device 100 and the imaging device 110 may be provided in a single housing. In other words, the imaging device 110 may have the functions and configuration of the information processing device 100 described below.

[0016] Furthermore, the information processing results of the information processing device 100 and the images captured by the imaging device 110 may be displayed not only on the display 130 connected to the information processing device 100 via a display cable, but also on a display of an external device such as the following. That is, for example, the information processing results and the captured images may be displayed on a display of a mobile device such as a smartphone or tablet terminal connected via a network 140.

[0017] Next, information processing performed by the information processing device 100 according to this embodiment will be described with reference to functional blocks of the information processing device 100 shown in Fig. 2. Note that in this embodiment, each function shown in Fig. 2 is realized using a CPU (Central Processing Unit) 600 and a ROM (Read Only Memory) 620, which will be described later with reference to Fig. 6. That is, each function shown in Fig. 2 is realized by the CPU 600 of the information processing device 100 executing a computer program stored in the ROM 620 of the information processing device 100.

[0018] The communication unit 200 can be realized by an I / F (Interface) 640, which will be described later with reference to Fig. 6, and communicates with the imaging device 110 and the recording device 120 via the network 140. The communication unit 200 receives image data of a captured image from the imaging device 110, for example, and transmits a control command for controlling the imaging device 110 to the imaging device 110. Note that the control command includes, for example, a command to instruct the imaging device 110 to capture an image.

[0019] The storage unit 201 can be realized by a RAM (Random Access Memory) 610, a HDD (Hard Disk Drive) 630, etc., which will be described later with reference to FIG.

[0020] The operation receiving unit 202 receives an operation performed by a user via an input device (not shown) such as a keyboard or a mouse. In the present embodiment, the operation receiving unit 202 receives, for example, a user operation for designating a predetermined image used when extracting a foreground object area from a captured image.

[0021] In this embodiment, the predetermined image is a background image that does not include a specific object that is a subject of privacy protection (i.e., a subject to be concealed), and for example, when a person is a specific object that is a subject of privacy protection, the predetermined image is an image that does not include the person. In this way, when a captured image that does not include a specific object that is a subject of privacy protection is specified by a user as the predetermined image, the captured image is stored in the storage unit 201 as a background image. Note that in this embodiment, the process of storing the captured image specified by the user in the storage unit 201 as a background image is performed by, for example, the generation unit 205.

[0022] The setting unit 203 sets various values ​​used in the information processing device 100 of this embodiment. In this embodiment, the values ​​set by the setting unit 203 include a threshold value used when extracting a foreground object area from a captured image using a background subtraction method, a threshold value used when determining whether a luminance change in an image has a gentle gradient when automatic exposure is activated, and the like. In this embodiment, these threshold values ​​are, for example, designated in advance by a user. Note that various setting values ​​including these threshold values ​​may be stored in the storage unit 201.

[0023] The extraction unit 204 detects a region of a foreground object (hereinafter, referred to as a foreground region) from a captured image acquired by the imaging device 110, for example, by using a background subtraction method. In this embodiment, the extraction unit 204 detects the foreground region from the captured image, for example, by comparing the captured image with a background image (i.e., a predetermined image) that has been acquired and stored in advance. Then, in this embodiment, the extraction unit 204 determines whether the detected foreground region is to be determined as a foreground region based on a change in luminance over time.

[0024] Specifically, the extraction unit 204 calculates a difference between the pixel value of the pixel of interest in the captured image and the pixel value of the pixel corresponding to the pixel of interest in the acquired background image, and determines whether the pixel of interest is a pixel included in the foreground region based on a comparison result between the difference and a predetermined threshold. In this embodiment, the extraction unit 204 calculates, as the difference value, an absolute value of a difference (luminance difference) between the luminance value of the pixel of interest in the captured image and the luminance value of the pixel corresponding to the pixel of interest in the acquired background image. Then, if the absolute difference value is equal to or greater than the threshold, the extraction unit 204 determines that the pixel of interest in the captured image is a pixel of the foreground region, and sets information representing that the pixel of interest is in the foreground for the pixel of interest. On the other hand, if the absolute difference value is less than the threshold, the extraction unit 204 determines that the pixel of interest in the captured image is not a pixel of the foreground region (i.e., a pixel of the background region), and sets information representing that the pixel of interest is not in the foreground for the pixel of interest.

[0025] In this embodiment, the extraction unit 204 sets a predetermined flag to "1" for the pixel of interest as information indicating that the pixel is in the foreground, and sets a predetermined flag to "0" for information indicating that the pixel is not in the foreground. The extraction unit 204 performs such processing for each pixel in the captured image to detect a foreground region from the captured image. That is, the extraction unit 204 detects, as a foreground region, a region consisting of pixels in the captured image whose predetermined flags are set to "1" as the pixels in the foreground. In this embodiment, a threshold value used to determine whether the pixel of interest is a pixel in the foreground region, that is, a threshold value used for comparison with the absolute difference value of the luminance values ​​described above, is hereinafter referred to as a region determination threshold value. In this embodiment, a predetermined flag set for the pixel of interest and used to detect the foreground region is referred to as a region determination flag.

[0026] In addition, the extraction unit 204 of this embodiment further determines whether the gradient of the luminance change over time is abrupt and equal to or greater than a predetermined value for the pixel of interest whose region determination flag is set to "1" as the foreground, or whether the gradient of the luminance change over time is gradual and less than a predetermined value. If the extraction unit 204 determines that the gradient of the luminance change over time is gradual and less than a predetermined value, it determines that the gradual luminance change is due to the operation of automatic exposure, and resets the value of the region determination flag for the pixel of interest to "0." As a result, among the pixels whose region determination flag is set to "1" as the foreground by the background subtraction method, the pixels whose luminance change is determined to be gradual due to the operation of automatic exposure are determined to be pixels in the background region (pixels that are not foreground). On the other hand, among the pixels whose region determination flag is set to "1" as the foreground by the background subtraction method, the pixels whose gradient of the luminance change over time is determined to be abrupt and equal to or greater than a predetermined value are determined to be pixels in the foreground region (pixels that are not background). In this way, the extraction unit 204 determines whether or not to define a foreground region detected by the background subtraction method as a foreground region based on the gradient of the luminance change over time. The process of determining whether the gradient of the luminance change over time is steep or gradual, and the process of defining a foreground region based on the result of the determination will be described in detail later.

[0027] In the present embodiment, an example is given in which a foreground region is detected from a captured image using a background difference method that compares a captured image with an already acquired background image, but the detection method of the foreground region is not limited to this example. For example, the extraction unit 204 may use a method of detecting a foreground region included in a captured image based on an inter-frame difference between a captured image of a current frame and an image of a past frame as a predetermined image. In this example, the extraction unit 204 detects a foreground region based on a difference value between a pixel value in a captured image of a current frame and a pixel value at the same position in an image of a past frame. In addition, in the present embodiment, an example is given in which a background image as a predetermined image is generated based on a user's designation, but the generation method of the background image is not limited to this example. For example, the background image may be generated in advance by a method in which a specific subject area such as a person is detected from a captured image, and an image of an area excluding the detected specific subject area is used as the background image. The background image may be generated by other methods as long as it is close to the current state and does not include a specific object that is the subject of privacy protection. Also, for example, in a background region, for a portion in each frame image where it is determined that the foreground has not been captured for a certain period of time, the pixel values ​​of that portion may be updated to the current pixel values.

[0028] The generating unit 205 generates a mask image corresponding to the foreground region determined as described above by the extracting unit 204. The mask image is, for example, an image in which the foreground region is filled with one or several colors, blurred, or pixelated. In other words, the mask image may be any image that can conceal a region (foreground region) in which a specific object that is the subject of privacy protection is captured.

[0029] The synthesis unit 206 is a functional unit that generates an output image to be displayed on a display unit such as the display 130, and generates an output image by synthesizing the mask image generated by the generation unit 205 with a predetermined image. In this embodiment, the predetermined image is a background image used in the detection of the foreground region described above, and the synthesis unit 206 generates an output image by synthesizing the mask image generated by the generation unit 205 with the background image used in the detection of the foreground region. In addition, without being limited to this, the synthesis unit 206 may use, for example, the captured image currently being processed as the predetermined image and synthesize it with the mask image described above to generate an output image. In addition, the synthesis unit 206 may use another background image different from the background image used in the detection of the foreground region as the predetermined image and synthesize it with the mask image described above to generate an output image.

[0030] The output control unit 207 outputs the output image generated by the synthesis unit 206 to an external device (such as the recording device 120 or the display 130). For example, if the external device is the display 130, the output image generated by the synthesis unit 206 is displayed on the display 130.

[0031] Next, information processing performed by the information processing device 100 according to this embodiment will be described with reference to Figs. 3(a), 3(b), 4(a) and 4(b). Fig. 3(a) and Fig. 3(b) are graphs showing the change in the luminance value of a pixel of interest in a captured image. The horizontal axis indicates the number of frames that have passed, and the vertical axis indicates the luminance value of the pixel of interest. In the tables of Fig. 4(a) and Fig. 4(b), "No." indicates the frame number, and "luminance value" indicates the luminance value of the pixel of interest in the image of each frame. In addition, "difference value" in the tables of Fig. 4(a) and Fig. 4(b) indicates the difference value between the luminance value of the pixel of interest in the captured image and the luminance value of the pixel at the same position in the frame immediately preceding the captured image. The graph of Fig. 3(a) plots the luminance values ​​of the pixel of interest in the order of frames that have passed (i.e., in the order of time that has passed) based on the table of Fig. 4(a), and similarly, the graph of Fig. 3(b) plots the luminance values ​​of the pixel of interest in the order of frames that have passed based on the table of Fig. 4(b).

[0032] Here, for example, the luminance value of the background image is "100", and the aforementioned region determination threshold for determining pixels in the foreground region in the background difference method is "50". In this example, in the background difference method, if the absolute value of the difference between the luminance value of the pixel of interest and the luminance value of the background image, "100", is equal to or greater than the region determination threshold "50", the pixel of interest is determined to be a pixel included in the foreground. That is, the extraction unit 204 determines that the pixel of interest is a pixel included in the foreground when the absolute value of the difference between the luminance value of the pixel of interest and the luminance value of the background image is equal to or greater than the region determination threshold "50". On the other hand, if the absolute value of the difference between the luminance value of the pixel of interest and the luminance value of the background image is less than the region determination threshold "50", the extraction unit 204 determines that the pixel of interest is a pixel not included in the foreground, that is, a pixel included in the background. Then, the extraction unit 204 sets a region determination flag "1" to the pixel of interest determined to be included in the foreground region in the background difference method, and sets a region determination flag "0" to the pixel of interest determined not to be included in the foreground region.

[0033] 3(a) and 4(a) show examples of when the luminance value of a pixel of interest changes over time, and the change in luminance value occurs due to the operation of automatic exposure. In the cases of Fig. 3(a) and Fig. 4(a), in the images of frames No. 1 to No. 7, the absolute value of the difference between the luminance value of the pixel of interest and the luminance value of the background image is less than the region determination threshold value of "50". Therefore, the extraction unit 204 sets the region determination flag for the pixels of interest in the images of frames No. 1 to No. 7 to "0".

[0034] Next, in the image of frame No. 8, the luminance value of the pixel of interest becomes "151," and the absolute difference between this and the luminance value of the background image, "100," becomes "51," which is greater than or equal to the area determination threshold value of "50." Therefore, the extraction unit 204 sets the area determination flag for the pixel of interest in the image of frame No. 8 to "1."

[0035] Furthermore, the extraction unit 204 judges whether or not the luminance change over time of the pixel of interest whose region determination flag is set to "1" by the background difference method is a change due to the action of automatic exposure. Here, the luminance change due to the action of automatic exposure is generally a change with a gradual gradient. For this reason, the extraction unit 204 judges whether the absolute difference value between the luminance value of the pixel of interest in the current frame and the luminance value of the corresponding pixel of interest in the previous frame, for example, is within a predetermined threshold value of "30". Then, if the absolute difference value between the luminance values ​​of the pixel of interest in the current frame and the previous frame is within the threshold value of "30", the extraction unit 204 judges that the luminance change of the pixel of interest whose region determination flag is set to "1" by the background difference method is a gradual change with a gradient less than a predetermined value due to the action of automatic exposure. On the other hand, if the absolute difference value between the luminance values ​​of the pixel of interest in the current frame and the previous frame exceeds the threshold value of "30", the extraction unit 204 judges that the luminance change of the pixel of interest whose region determination flag is set to "1" by the background difference method is not a change due to the action of automatic exposure. In other words, cases where the luminance change is not due to the action of automatic exposure are assumed to be abrupt changes in which the gradient exceeds a predetermined value, such as those caused by the passage of a moving object, etc. Hereinafter, the predetermined threshold value used to determine whether or not a luminance change is due to the action of automatic exposure will be referred to as the automatic exposure determination threshold value.

[0036] 3(a) and 4(a), in the image of frame No. 8, the absolute difference in luminance values ​​of the pixel of interest between the current frame (frame No. 8) and the previous frame (frame No. 7) is "19," which is within the automatic exposure determination threshold of "30." In this case, the extraction unit 204 determines that the change in luminance is due to the action of automatic exposure, and sets the area determination flag for the pixel of interest to "0."

[0037] Next, in each of the images from frame No. 9 to frame No. 14, the absolute difference between the luminance value of the pixel of interest and the luminance value of the background image, "100," is equal to or greater than the area determination threshold value of "50." Therefore, the extraction unit 204 sets the area determination flag to "1" for the pixel of interest in each of the images from frame No. 9 to frame No. 14, in the same manner as described above.

[0038] However, for frames No. 9 through No. 14, the absolute difference in luminance value of the pixel of interest between the current and previous frames is within the automatic exposure determination threshold of 30. For this reason, the extraction unit 204 determines that the luminance change for frames No. 9 through No. 14 is also due to the action of automatic exposure, and sets the area determination flag for the pixel of interest to 0.

[0039] Next, in each image from frame No. 15 onwards, the absolute difference between the luminance value of the pixel of interest and the luminance value of the background image, "100," is less than the area determination threshold value of "50." Therefore, the extraction unit 204 sets the area determination flag for each pixel of interest from frame No. 15 onwards to "0."

[0040] In this way, even if the luminance difference between the pixel of interest and the background image is equal to or greater than the region determination threshold, the extraction unit 204 does not include the pixel of interest in the foreground region if the absolute difference between the pixel of interest and the previous frame is equal to or less than the auto exposure determination threshold. In other words, according to this embodiment, a pixel of interest whose luminance changes gradually due to the action of auto exposure is not included in the foreground.

[0041] In addition, the extraction unit 204 according to the present embodiment determines that the luminance change is due to the action of automatic exposure when the absolute value of the difference value from the previous frame is within an automatic exposure determination threshold, but this is not limited thereto. For example, the extraction unit 204 may determine that the luminance change is due to automatic exposure when the angle of the gradient of the luminance change is within a predetermined gradient angle threshold. In addition, the extraction unit 204 may hold the difference in the luminance value of each pixel of interest over the past few frames, and determine that the luminance has changed gradually for a certain period of time, and determine that the luminance change is due to automatic exposure. In this way, the luminance change due to the action of automatic exposure can be detected more accurately by looking at the luminance change over the past few frames.

[0042] FIG. 3(b) and FIG. 4(b) show an example in which the luminance value of a pixel of interest changes over time, and the change in luminance value occurs, for example, due to the passage of a moving object. As in the above-described explanation of FIG. 3(a) and FIG. 4(a), the luminance value of the background image is "100", the region determination threshold is "50", and the auto exposure determination threshold is "30". In addition, in the example of FIG. 3(b) and FIG. 4(b), the luminance values ​​of the pixel of interest from frame No. 1 to frame No. 5 and from frame No. 18 onwards are the same as in the above-described example of FIG. 3(a) and FIG. 4(a). In contrast, in the example of FIG. 3(b) and FIG. 4(b), the luminance values ​​of the pixel of interest from frame No. 6 to frame No. 17 are different from those in the example of FIG. 3(a) and FIG. 4(a). 3(b) and 4(b), the luminance value of the pixel of interest in frame No. 8 is "101," and the absolute difference between this luminance value and the background image luminance value of "100" is less than the area determination threshold of "50." Therefore, the extraction unit 204 sets the area determination flag for the pixel of interest to "0" in the images of frames No. 1 to No. 8.

[0043] On the other hand, in frame No. 9, the luminance value of the pixel of interest is "200", and the absolute difference between this and the luminance value of the background image, "100", is "100", which is greater than the area determination threshold value of "50", so the extraction unit 204 sets the area determination flag to "1".

[0044] Here, the extraction unit 204 judges whether or not the luminance change over time of the pixel of interest whose region determination flag has become "1" by the background subtraction method is due to the action of automatic exposure, as described above. For this reason, as described above, the extraction unit 204 judges whether or not the absolute difference between the luminance values ​​of the pixel of interest in the current frame and the previous frame is within the automatic exposure judgment threshold. If the absolute difference between the luminance values ​​of the pixel of interest in the current frame and the previous frame is within the automatic exposure judgment threshold, the extraction unit 204 judges that the luminance change is due to automatic exposure, whereas if the absolute difference exceeds the automatic exposure judgment threshold, the extraction unit 204 judges that the luminance change is not due to automatic exposure. Then, if it is determined that the luminance change is not due to automatic exposure, the extraction unit 204 sets the region determination flag for the pixel of interest to "1".

[0045] In the examples of Fig. 3(b) and Fig. 4(b), the luminance value of the pixel of interest in frame No. 9, which is the current frame, is "200", the luminance value of the corresponding pixel of interest in frame No. 8, which is the previous frame, is "101", and the absolute difference between these luminance values ​​is "99". Because the absolute difference value "99" exceeds the auto exposure determination threshold value of "30", the extraction unit 204 determines that the luminance change is not due to the action of auto exposure, that is, that the luminance change has occurred due to, for example, the passage of a moving object. The extraction unit 204 then sets the region determination flag for the pixel of interest in frame No. 9 to "1". This determines that the pixel of interest in frame No. 9 is a pixel included in the foreground region.

[0046] Next, the extraction unit 204 processes frame No. 10 in the same manner as above. The luminance value of the pixel of interest in frame No. 10 is "203", and the absolute value of the difference with the luminance value of the background image is "103", which is equal to or greater than the area determination threshold of "50", so the extraction unit 204 sets the area determination flag to "1". The luminance value of the pixel of interest in frame No. 10 is "203", and the luminance value of the pixel of interest in the previous frame, frame No. 9, is "200", so the absolute value of the difference between these luminance values ​​is "3". In other words, if the absolute difference value of "3" is within the auto exposure determination threshold of "30", it is determined that the luminance change in the pixel of interest is due to the action of auto exposure.

[0047] However, if the pixel of interest in the previous frame is determined to be a pixel included in the foreground region, it is considered preferable to determine that the luminance change of the pixel of interest in the current frame is not due to the automatic exposure, but due to the passage of a moving object. For this reason, the extraction unit 204 of this embodiment does not determine whether the luminance change of the pixel of interest in the current frame is due to the automatic exposure if the corresponding pixel in the previous frame has already been determined to be included in the foreground region. That is, the extraction unit 204 does not determine whether the luminance change of the pixel of interest in frame No. 10 is due to the automatic exposure if the pixel of interest in the previous frame, No. 9, has already been determined to be included in the foreground region. Therefore, the extraction unit 204 does not change the region determination flag of the pixel of interest in frame No. 10 and keeps it at "1". In order to determine whether the pixel of interest has already been processed as the foreground region, it is preferable to save a flag indicating that the pixel has been processed as the foreground region in the previous frame.

[0048] The extraction unit 204 processes the next frame No. 11 in the same manner as frame No. 10. That is, in frame No. 11, the luminance value of the pixel of interest is "198", and the absolute difference between the luminance value of the background image is "98", which is equal to or greater than the region determination threshold, so the extraction unit 204 sets the region determination flag to "1". Since frame No. 10 has already been determined to be in the foreground region, the extraction unit 204 does not determine whether the luminance change of the pixel of interest in frame No. 11 is due to the function of automatic exposure, and determines the pixel of interest as being included in the foreground region. Similarly, for frame No. 12, the extraction unit 204 determines the pixel of interest as being included in the foreground region. Since the absolute difference between the luminance value of the background image of the pixel of interest in frames No. 13 and onwards is less than the region determination threshold, the extraction unit 204 sets the region determination flag to "0". As a result, the pixels of interest in frames No. 13 and onwards are determined to be pixels not included in the foreground region.

[0049] Next, the process from image acquisition to image output in the information processing device 100 of this embodiment will be described with reference to the flowcharts of Fig. 5(a) and Fig. 5(b). Fig. 5(a) is a flowchart showing the process of detecting and determining a foreground area from a captured image, generating a mask image corresponding to the determined foreground area, and synthesizing the mask image with a predetermined image to generate an output image. Fig. 5(b) is a flowchart showing the process of determining the foreground area taking into consideration the luminance change caused by the function of automatic exposure. Note that the flowcharts of Fig. 5(a) and Fig. 5(b) show the process performed by the functional blocks shown in Fig. 2, which is realized by the CPU 600 executing a computer program stored in the ROM 620 of Fig. 6, which will be described later, in the information processing device 100.

[0050] First, the process of the flowchart shown in FIG. In step S501, the communication unit 200 acquires an image captured by the imaging device 110 as a processing target. Next, in step S502, the extraction unit 204 determines the area of ​​the foreground object (foreground area) from the captured image to be processed, taking into account the brightness change due to the function of automatic exposure. Note that the details of the process executed by the extraction unit 204 in step S502 will be described later with reference to FIG. 5(b).

[0051] Next, in step S503, the generation unit 205 performs processing such as filling, blurring, and mosaic on the foreground region determined by the extraction unit 204 in step S502, thereby executing processing to generate a mask image that abstracts the foreground region.

[0052] Next, in step S504, the synthesis unit 206 generates an output image by synthesizing the mask image generated by the generation unit 205 and a predetermined image. The synthesis unit 206 according to the present embodiment generates an output image by synthesizing, for example, the mask image generated by the generation unit 205 and the background image used in the detection of the foreground region. The output image is an image to be recorded in the recording device 120 or displayed on the display 130. In addition, without being limited thereto, the synthesis unit 206 may generate an output image by synthesizing, for example, the mask image generated by the generation unit 205 and the captured image currently being processed. In addition, the synthesis unit 206 may generate an output image by synthesizing the mask image generated by the generation unit 205 and another background image different from the background image used in the detection of the foreground region.

[0053] Next, in step S505, the output control unit 207 outputs the output image generated by the synthesis unit 206 to an external device (such as the recording device 120 or the display 130). At this time, the output control unit 207 causes the output image generated by the synthesis unit 206 to be displayed on the display 130, for example.

[0054] Hereinafter, the foreground region detection and determination process executed in step S502 will be described in more detail with reference to FIG. First, in step S511, the extraction unit 204 selects a pixel of interest (pixel of interest) from each pixel of the captured image acquired by the communication unit 200 in step S501. In this embodiment, the pixel of interest is selected from among the pixels constituting the captured image in the following order. That is, the pixel of interest is selected in order from the pixel at the top left of the captured image to pixels in the right direction, and when the pixel of interest reaches the right end of the captured image, it moves to the pixel one pixel below and at the left end, and is selected in order in the right direction as before, and finally selected in order up to the pixel at the bottom right end of the captured image. Then, when the pixel at the bottom right end of the captured image has been selected as the pixel of interest, the selection process of the pixel of interest in step S511 ends.

[0055] Next, in step S512, the extraction unit 204 calculates the luminance difference (the above-mentioned absolute difference value) between the luminance value of the pixel of interest selected in step S511 for the captured image of the current frame and the luminance value of a pixel at the same position as the pixel of interest in a background image prepared in advance. Furthermore, the extraction unit 204 determines whether or not the absolute difference value is equal to or greater than the region determination threshold. Then, when the extraction unit 204 determines that the absolute difference value is equal to or greater than the region determination threshold, it sets the region determination flag for the pixel of interest to "1" and then transitions to step S513. On the other hand, when the extraction unit 204 determines that the absolute difference value is less than the region determination threshold, it sets the region determination flag for the pixel of interest to "0" and then transitions to step S516.

[0056] Next, in step S513, extraction unit 204 determines whether or not a pixel at the same position as the pixel of interest selected in step S511 has already been determined as a pixel of the foreground region in the image of the previous frame. That is, if the region determination flag held for the pixel corresponding to the pixel of interest in the previous frame is "1", extraction unit 204 determines that the pixel at the same position in the previous frame has already been determined as a pixel of the foreground region, and transitions to step S514. On the other hand, if the region determination flag held for the pixel corresponding to the pixel of interest in the previous frame is "0", extraction unit 204 determines that the pixel at the same position in the previous frame has been determined not to be a pixel of the foreground region, and transitions to step S515.

[0057] When the process proceeds to step S515, the extraction unit 204 calculates the absolute difference in luminance between the pixel of interest in the current frame and the pixel at the same position as the pixel of interest in the previous frame. Specifically, the captured image of the previous frame is held when the captured image of the previous frame is processed, and the extraction unit 204 calculates the absolute difference between the luminance of the pixel at the same position as the pixel of interest selected in step S511 in the captured image of the previous frame and the luminance of the pixel of interest in the current frame. Then, the extraction unit 204 determines whether the absolute difference in luminance from the previous frame is within the auto exposure determination threshold. When the extraction unit 204 determines that the absolute difference in luminance from the previous frame is within the auto exposure determination threshold, the process proceeds to step S516, whereas when the extraction unit 204 determines that the absolute difference is not within the auto exposure determination threshold, the process proceeds to step S514.

[0058] When the process proceeds to step S514, the extraction unit 204 confirms and stores the region determination flag "1" for the pixel of interest, which indicates that the pixel is a pixel in the foreground region. As a result, in step S503 in FIG. 5A, the generation unit 205 generates a pixel of the mask image described above for the pixel in which the region determination flag "1" is stored, which indicates that the pixel is a pixel in the foreground region. After that, the extraction unit 204 proceeds to step S517.

[0059] When the process proceeds to step S516, the extraction unit 204 sets the region determination flag for the pixel of interest to "0", which means that the pixel is not a pixel in the foreground region, that is, that the pixel is a pixel in the background, and then stores the flag. After that, the extraction unit 204 proceeds to step S517.

[0060] When the process proceeds to step S517, the extraction unit 204 judges whether or not all pixels in the captured image of the current frame have been selected as the pixel of interest and processed as described above. If there is a pixel that has not been selected as the pixel of interest and processed, the extraction unit 204 returns the process to step S511, selects the pixel that has not been selected as the pixel of interest and processed as the next pixel of interest, and performs the processes from step S512 onward as described above. Then, when it is determined in step S517 that all pixels have been selected as the pixel of interest and processed, the extraction unit 204 ends the process of the flowchart in FIG. 5(b) and proceeds to step S503 in FIG. 5(a).

[0061] In this manner, in this embodiment, the extraction unit 204 determines the foreground region of the captured image by storing the value of the region determination flag for each pixel position of the captured image. At this time, by executing the process shown in FIG. 5(b) described above, even in a portion that has a luminance difference with the background image, if the luminance difference with the previous frame is low, it will not be the foreground. In other words, if the luminance change is gradual due to the action of automatic exposure, it will not be the foreground, and the background will not be masked. In addition, for a portion that has already been processed as the foreground, the luminance difference with the previous frame is not determined. This makes it possible to prevent a moving object in the foreground from being determined as the foreground when it stops or moves but has a similar luminance value.

[0062] For these reasons, this embodiment can prevent erroneous determination of the foreground area due to the function of automatic exposure without performing processing with a high load such as detecting people and the like from a captured image, that is, while enabling a reduction in the processing load. In other words, this embodiment can prevent unobstructed areas that would result in privacy protection objects such as people being exposed, and also eliminates the problem of areas that should be captured being erroneously obscured and not displayed.

[0063] In the present embodiment, an example is given in which one pixel is selected from a plurality of pixels constituting a captured image and selected as a pixel of interest, but the present invention is not limited to this. For example, a captured image may be divided into a plurality of divided regions, and one divided region may be selected from the plurality of divided regions as a pixel of interest. Then, the divided region of interest is treated in the same manner as the pixel of interest, and the process of FIG. 5(b) described above is performed. Note that, for example, the average or maximum value of the luminance values ​​of the pixels in the divided region of interest may be used as the luminance value in the divided region of interest. The divided region is composed of at least two pixels.

[0064] Next, an example of a hardware configuration of the information processing device 100 for realizing each function of this embodiment will be described with reference to Fig. 6. In the following description, the hardware configuration of the information processing device 100 will be described, but it is assumed that the recording device 120 and the imaging device 110 are also realized by the same hardware configuration.

[0065] The information processing device 100 in this embodiment includes a CPU 600, a RAM 610, a ROM 620, a HDD 630, and an I / F 640. The CPU 600 is a central processing unit that controls the information processing device 100. The RAM 610 temporarily stores computer programs executed by the CPU 600. The RAM 610 also provides a work area used when the CPU 600 executes processes. The RAM 610 also functions as, for example, a frame memory or a buffer memory.

[0066] The ROM 620 stores a program for the CPU 600 to control the information processing device 100. The HDD 630 is a storage device for recording image data, etc. The I / F 640 communicates with external devices via the network 140 in accordance with TCP / IP, HTTP, or the like.

[0067] In the above embodiment, an example in which the CPU 600 executes the processing is described, but at least a part of the processing of the CPU 600 may be executed by dedicated hardware. For example, the processing of displaying a GUI (GRAPHICAL USER INTERFACE) or image data on the display 130 may be executed by a GPU (GRAPHICS PROCESSING UNIT). Also, the processing of reading the program code from the ROM 620 and loading it in the RAM 610 may be executed by a DMA (DIRECT MEMORY ACCESS) that functions as a transfer device.

[0068] Each unit of the information processing device 100 may be realized by hardware shown in Fig. 6, or may be realized by software. One or more functions of the information processing device 100 according to the above-described embodiment may be included in another device.

[0069] The present invention can also be realized by supplying a program for implementing one or more of the functions of the above-described embodiments to a system or device via a network or a storage medium, and having one or more processors in the 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 of the functions. The above-mentioned embodiments are merely examples of the implementation of the present invention, and the technical scope of the present invention should not be interpreted as being limited by these. In other words, the present invention can be implemented in various forms without departing from its technical concept or main features. [Explanation of symbols]

[0070] 100: information processing device, 110: imaging device, 200: communication unit, 201: storage unit, 202: operation reception unit, 203: setting unit, 204: extraction unit, 205: generation unit, 206: synthesis unit, 207: output control unit

Claims

1. a detection means for detecting at least a foreground area from the captured image based on a difference between the captured image and a predetermined image; a determination means for determining whether the foreground region detected by the detection means is determined to be a foreground region based on a change in luminance over time; having The determination means is determining that the foreground region detected by the detection means is not a foreground region when a gradient of a luminance change over time is less than a predetermined gradient; a step of determining whether an absolute difference between a pixel value of a pixel of interest in the foreground region detected by the detection means from the captured image of the current frame and a pixel value of a pixel corresponding to the pixel of interest in the captured image of the previous frame exceeds a predetermined threshold value, and when it is determined that the absolute difference exceeds the predetermined threshold value, determining that the gradient of the luminance change over time is a sudden change equal to or greater than a predetermined value, and determining that the pixel of interest is a pixel included in the foreground region; an information processing device characterized in that, when a pixel of the captured image of the previous frame corresponding to a pixel of interest in the foreground region detected by the detection means from the captured image of the current frame is determined to be included in the foreground region, the pixel of interest in the captured image of the current frame is determined to be included in the foreground region without determining whether the absolute difference value of the pixel of interest in the captured image of the current frame exceeds the predetermined threshold.

2. 2 . The information processing apparatus according to claim 1 , wherein the detection means detects the foreground area from the captured image by using a background subtraction method for determining a difference between the captured image and a background image acquired in advance as the predetermined image.

3. 2 . The information processing apparatus according to claim 1 , wherein the detection means detects the foreground area from the captured image based on an inter-frame difference between an image of a current frame and an image of a previous frame as the predetermined image.

4. The information processing device according to claim 1 , wherein the determination means determines that the foreground region detected by the detection means is not the foreground region when an angle of a gradient of a luminance change over time is within a predetermined angle threshold value.

5. The information processing device according to claim 1 , wherein the determining means determines whether a gradient of the luminance change is a gradual change less than a predetermined value based on a luminance change over a certain period of time over the past several frames for the foreground region detected by the detecting means.

6. a generating means for generating a mask image corresponding to the foreground area determined by the determining means; a synthesis means for synthesizing the generated mask image with the predetermined image; 6. The information processing apparatus according to claim 1, further comprising:

7. An information processing method executed by an information processing device, a detection step of detecting at least a foreground area from the captured image based on a difference between the captured image and a predetermined image; a determination step of determining whether the foreground region detected by the detection step is determined to be a foreground region based on a change in luminance over time; having In the determination step, determining that the foreground region detected by the detection step is not a foreground region when a gradient of luminance change over time is less than a predetermined gradient; determining whether an absolute difference between a pixel value of a pixel of interest in the foreground region detected from the captured image of the current frame by the detection step and a pixel value of a pixel corresponding to the pixel of interest in the captured image of the previous frame exceeds a predetermined threshold value, and if it is determined that the absolute difference exceeds the predetermined threshold value, determining that the gradient of the luminance change over time is a sudden change equal to or greater than a predetermined value, and determining that the pixel of interest is a pixel included in the foreground region; an information processing method comprising: when a pixel of the captured image of the previous frame corresponding to a pixel of interest in the foreground region detected from the captured image of the current frame by the detection process is determined to be included in the foreground region, the pixel of interest in the captured image of the current frame is determined to be included in the foreground region without determining whether the absolute difference value of the pixel of interest in the captured image of the current frame exceeds the predetermined threshold.

8. A program for causing a computer to function as each of the means of the information processing device according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method for visualizing activity plural video frames as a whole, in action keyframe

    JP2007013951A

  • Image processing method, image processor, image processing program and computer-readable recording medium with the program recorded thereon

    JP2008191884A

  • Object detector

    JP2009181220A

  • Image processing apparatus and method, and program

    JP2011210139A

  • Video processing method and apparatus

    JP2015080220A