MOTION DETECTION DEVICE AND MOTION DETECTION METHOD
By enhancing contrast for divided regions of an image using γ correction and combining inter-frame and background subtraction methods, the technique addresses the issue of varying contrast in captured images, enabling accurate moving object detection.
Patent Information
- Application Number
- JP2020106748
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-06-22
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2040-06-22
AI Technical Summary
Conventional moving object detection techniques fail to accurately detect objects when contrast varies within a captured image, particularly in IR images due to distance-dependent light attenuation and in scenes with shadows, leading to insufficient contrast enhancement in some areas.
The technique involves individually enhancing contrast for multiple divided regions of an image using γ correction and adjusting parameters based on pixel values, followed by inter-frame difference and background subtraction methods to detect moving objects with high precision.
This approach allows for precise detection of moving objects by ensuring adequate contrast enhancement in each divided region, improving accuracy and reducing processing load.
Smart Images

Figure 0007562999000001 
Figure 0007562999000002 
Figure 0007562999000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a technique for detecting a moving object (an object that moves). [Background technology]
[0002] As a technology for surveillance and the like, a motion detection technology has been proposed that detects a moving object (moving body) based on the difference between images captured by a camera. In this motion detection technology, an area where the difference is large is detected as an area of a moving body.
[0003] In the above-mentioned moving object detection technology, when the contrast of a captured image (captured image) is low, the above-mentioned difference is calculated to be small even in the area of a moving object, so that the moving object cannot be detected with high accuracy.
[0004] Patent Document 1 proposes a technique for enhancing the contrast of a captured image before detecting a moving object. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] JP 2014-059798 A Summary of the Invention [Problem to be solved by the invention]
[0006] If the contrast is uniform across the entire captured image, a moving object can be detected with high accuracy using an image that has been subjected to conventional contrast enhancement (contrast enhancement that uniformly enhances (increases) the contrast across the entire captured image).
[0007] However, the contrast is not necessarily uniform throughout the captured image. For example, a camera (IR camera) that detects infrared light (IR (Infrared Ray) light) detects the reflected IR light emitted from the IR camera and diffusely reflected by an object. Therefore, the longer the distance from the IR camera to the object, the greater the attenuation of the IR light, and the lower the intensity (detection intensity) of the detected reflected IR light. As a result, in the captured image (IR image), the detection intensity varies according to the distance from the IR camera to each position in the imaging range, and the contrast varies within the IR image. Even with a camera that detects natural light, the contrast varies within the captured image in a scene with many shadows.
[0008] Furthermore, when contrast varies within a captured image, conventional contrast enhancement, which uniformly enhances the contrast of the entire captured image, does not sufficiently enhance the contrast of some areas of the captured image, making it impossible to detect moving objects in those areas with high accuracy.
[0009] The present invention has been made in consideration of the above-mentioned circumstances, and has an object to provide a technique capable of detecting a moving object with high accuracy even when contrast varies within a captured image. [Means for solving the problem]
[0010] In order to achieve the above object, the present invention employs the following configuration.
[0011] A first aspect of the present invention provides a moving object detection device, comprising: a contrast enhancement unit that performs contrast enhancement individually on a plurality of divided regions that constitute an area of an image captured within a predetermined range; and a moving object detection unit that detects a moving object within the predetermined range based on a difference between the images after contrast enhancement by the contrast enhancement unit. The contrast enhancement means may determine a parameter for contrast enhancement for each of the divided regions based on pixel values of the divided regions.
[0012] According to the above-described configuration, contrast enhancement is performed individually for each of the multiple divided regions that make up the area of the captured image, so that the contrast of each divided region can be sufficiently enhanced, and thus moving objects can be detected with high accuracy in each divided region.
[0013] The contrast enhancement may be gamma correction that converts each pixel value of the divided region using a gamma curve based on each pixel value of the divided region. In this case, a gamma curve or the like can be used as the parameter. The contrast enhancement may be processing that changes each pixel value of the divided region so that the difference between the pixel value representing the divided region and each pixel value of the divided region increases. In this case, a representative pixel value (a pixel value representing the divided region) or a coefficient (magnification factor) for increasing the difference from the representative pixel value can be used as the parameter. The pixel value representing the divided region may be an average pixel value of the divided region. In this way, pixel values can be changed (distributed) without bias.
[0014] The moving object detection means may detect the moving object by an inter-frame difference method using a difference between an image obtained by performing the contrast enhancement on an image of a current frame and an image obtained by performing the contrast enhancement on an image of a past frame. The past frame is a frame a predetermined number of frames before the current frame, and the predetermined number is 1 or more. The moving object detection means may detect the moving object by a background difference method using a difference between an image obtained by performing the contrast enhancement on an image of a current frame and an image obtained by performing the contrast enhancement on a background image prepared in advance. The background image is, for example, an image captured within a predetermined range in the absence of a moving object to be detected (a moving object to be detected).
[0015] The frame difference method and the background difference method each have different advantages and disadvantages. For example, in the frame difference method, if a moving object to be detected stops, the moving object will not be detected. Also, when a person is walking toward the camera, the same color of the person's clothes, etc., may exist in both the current frame and the past frame in a certain area, and the difference between the frames may be small, and the person may not be detected. In the background difference method, the accuracy of moving object detection decreases due to disturbance factors such as changes in sunlight conditions, that is, fluctuations in the surrounding environment. Also, when a moving object (moving object that is not the detection target) is included in the background, the moving object included in the background differs between the image of the current frame and the background image, and unnecessary moving objects may be erroneously detected or background areas may be erroneously detected as moving object areas. Such erroneous detection is particularly noticeable when the background contains many moving objects (moving objects that are not the detection target).
[0016] For this reason, the moving object detection means may detect the moving object by a combination of an inter-frame difference method using the difference between an image obtained by performing the contrast enhancement on an image of a current frame and an image obtained by performing the contrast enhancement on an image of a past frame, and a background difference method using the difference between an image obtained by performing the contrast enhancement on an image of the current frame and an image obtained by performing the contrast enhancement on a background image prepared in advance. In this way, it is possible to eliminate the disadvantages of the inter-frame difference method and the background difference method and utilize their advantages, thereby making it possible to detect moving objects with higher accuracy.
[0017] The background may change due to changes in sunlight or other light over time, changes in the layout of the room, etc. For this reason, the present invention further includes an update means for updating the background image based on the image of the current frame for an area determined to be the background by the frame difference method. This can improve the accuracy of moving object detection using the background subtraction method.
[0018] The accuracy of moving object detection decreases due to the difference in contrast between the images after contrast enhancement. Therefore, the contrast enhancement means may generate the multiple images for obtaining the difference by contrast enhancement using the same parameters. In this way, the contrast between the images after contrast enhancement can be matched, and the accuracy of moving object detection can be improved.
[0019] The system may further include a type determination unit for determining the type of the moving object detected by the moving object detection unit. In this way, it is possible to obtain further effects such as improved security in surveillance. The types include vehicles such as cars, motorcycles, and bicycles, people, animals, objects, etc.
[0020] The higher the resolution of the captured image, the greater the processing load of contrast enhancement of the captured image. For this reason, the apparatus may further include a reduction means for reducing the image captured within the predetermined range, and the contrast enhancement means may perform the contrast enhancement on the image reduced by the reduction means. In this way, the processing load of contrast enhancement can be reduced.
[0021] The image captured within the predetermined range may be an IR image, which is an image captured by a camera (IR camera) that detects infrared light (IR (Infrared Ray) light).
[0022] A second aspect of the present invention provides a moving object detection method comprising: a contrast enhancement step for individually enhancing the contrast of a plurality of divided regions constituting an image captured over a specified range; and a moving object detection step for detecting a moving object within the specified range based on the difference between images after contrast enhancement by the contrast enhancement step.
[0023] The present invention can be understood as a moving object detection system having at least a part of the above configuration or function. The present invention can also be understood as a moving object detection method or a control method for a moving object detection system, including at least a part of the above processing, a program for causing a computer to execute these methods, or a computer-readable recording medium on which such a program is non-temporarily recorded. The above configurations and processing can be combined with each other to constitute the present invention as long as no technical contradiction occurs. Effect of the Invention
[0024] According to the present invention, a moving object can be detected with high accuracy even when contrast varies within a captured image. [Brief description of the drawings]
[0025] [Figure 1] FIG. 1 is a block diagram showing an example of the configuration of a moving object detection device to which the present invention is applied. [Diagram 2] FIG. 2(A) is a schematic diagram showing an example of the general configuration of a moving object detection system according to an embodiment of the present invention, and FIG. 2(B) is a block diagram showing an example of the configuration of a PC (moving object detection device) according to the embodiment. [Diagram 3] FIG. 3A is a diagram showing an example of conventional contrast enhancement, and FIG. 3B is a diagram showing an example of contrast enhancement according to an embodiment of the present invention. [Figure 4] 4(A) to 4(C) are diagrams showing an example of contrast enhancement (contrast enhancement for one divided region) according to an embodiment of the present invention. [Diagram 5] FIG. 5 is a diagram showing an example of contrast enhancement (contrast enhancement for one divided region) according to an embodiment of the present invention. [Figure 6] FIG. 6 is a flowchart showing an example of a process flow of the PC according to the embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0026] <Application Examples> An application example of the present invention will be described. In conventional techniques for detecting a moving object, when the contrast of a captured image (captured image) is low, the difference between the captured images is calculated to be small even in the area of the moving object, so that the moving object cannot be detected with high accuracy. If the contrast is uniform throughout the captured image, the moving object can be detected with high accuracy by performing conventional contrast enhancement that uniformly emphasizes (increases) the contrast of the entire captured image. However, when the contrast varies within the captured image, the above-mentioned conventional contrast enhancement does not sufficiently emphasize the contrast of a part of the captured image, and the moving object cannot be detected with high accuracy in that area.
[0027] FIG. 1 is a block diagram showing an example of the configuration of a moving object detection device 100 to which the present invention is applied. The moving object detection device 100 has a contrast enhancement unit 101 and a moving object detection unit 102. The contrast enhancement unit 101 performs contrast enhancement individually on a plurality of divided regions constituting an area of an image obtained by capturing a predetermined range. The moving object detection unit 102 detects a moving object within the predetermined range based on the difference between the images after contrast enhancement by the contrast enhancement unit 101. The contrast enhancement unit 101 is an example of the contrast enhancement means of the present invention, and the moving object detection unit 102 is an example of the moving object detection means of the present invention.
[0028] According to the above-described configuration of the moving object detection device 100, contrast enhancement is performed individually for each of the multiple divided regions that make up the area of the captured image, so that the contrast of each divided region can be sufficiently enhanced, and thus moving objects can be detected in each divided region with high accuracy.
[0029] <Embodiment> An embodiment of the present invention will be described.
[0030] FIG. 2(A) is a schematic diagram showing a rough configuration example of a moving object detection system according to this embodiment. The moving object detection system according to this embodiment includes a camera 10 and a PC 200 (personal computer; moving object detection device). The camera 10 and the PC 200 are connected to each other by wire or wirelessly. The camera 10 captures an image of a predetermined range indoors or outdoors, and outputs the captured video to the PC 200. The camera 10 may be a camera that detects natural light, but in this embodiment, it is a camera that detects infrared light (IR (Infrared Ray) light) (IR camera). That is, the image captured by the camera 10 is an IR image. The PC 200 detects a moving object within a predetermined range based on the video captured by the camera 10. The PC 200 displays the detection result of the moving object (presence or absence of a moving object, the area where the moving object is detected, etc.) on a display unit, records the detection result of the moving object in a storage medium, and outputs the detection result of the moving object to another terminal (such as a smartphone of an administrator in a remote location).
[0031] In this embodiment, the PC 10 is a separate device from the camera 10, but the PC 200 may be built into the camera 10. The display unit and storage medium described above may or may not be part of the PC 200. The installation location of the PC 200 is not particularly limited. For example, the PC 200 may or may not be installed in the same room as the camera 10. The PC 200 may or may not be a computer on the cloud. The PC 200 may be a terminal such as a smartphone carried by the administrator.
[0032] 2B is a block diagram showing an example of the configuration of the PC 200. The PC 200 has an input unit 210, a control unit 220, a storage unit 230, and an output unit 240. The control unit 220 has a contrast enhancement unit 221 and a moving object detection unit 222.
[0033] Input unit 210 sequentially performs a process of acquiring images (video frames) capturing a predetermined range from camera 10 and outputting the images to control unit 220 (contrast enhancement unit 221). Camera 10 may sequentially capture still images, in which case input unit 210 sequentially performs a process of acquiring still images capturing a predetermined range from camera 10 and outputting the still images to control unit 220 (contrast enhancement unit 221).
[0034] The control unit 220 includes a central processing unit (CPU), a random access memory (RAM), a read only memory (ROM), and the like, and controls each component and performs various information processing.
[0035] The contrast enhancement unit 221 individually performs contrast enhancement on a plurality of divided regions constituting the region of the captured image obtained by the camera 10. For example, the contrast enhancement unit 221 performs contrast enhancement on the image output by the input unit 210. Then, the contrast enhancement unit 221 outputs the image after contrast enhancement to the moving object detection unit 222. The contrast enhancement unit 221 is an example of a contrast enhancement means of the present invention.
[0036] In this embodiment, contrast enhancement is performed individually for each of the divided regions constituting the region of the captured image, so that the contrast of each divided region can be sufficiently enhanced. Specifically, the contrast enhancement unit 221 dynamically (adaptively) determines contrast enhancement parameters for each of the divided regions based on the pixel values of the divided region. Then, the contrast enhancement unit 221 performs contrast enhancement for each divided region using the determined parameters. This allows the contrast of each divided region to be sufficiently enhanced.
[0037] This will be specifically described with reference to Figs. 3(A) and 3(B). Fig. 3(A) shows an example of conventional contrast enhancement, and Fig. 3(B) shows an example of contrast enhancement according to this embodiment. In Figs. 3(A) and 3(B), people H1 and H2 are captured as moving objects in a captured image. Before contrast enhancement, the contrast around person H1 is much lower than the contrast around person H2.
[0038] 3A, the contrast of the entire captured image is uniformly enhanced, so even if the contrast around person H2 is sufficiently enhanced, the contrast around person H1 (which is extremely low contrast) cannot be sufficiently enhanced. As a result, person H1 cannot be detected in moving object detection. Furthermore, if the contrast around person H1 is sufficiently enhanced, whiteout occurs around person H2, reducing the contrast.
[0039] In this embodiment, contrast enhancement is performed for each divided region, so that the contrast around person H1 and the contrast around person H2 can be sufficiently enhanced, as shown in Fig. 3(B). Specifically, the contrast of person H2 can be sufficiently enhanced without affecting the contrast around person H1, and the contrast of person H1 can be sufficiently enhanced without affecting the contrast around person H2. In other words, the contrast of a divided region can be sufficiently enhanced without affecting the contrast of other divided regions.
[0040] 3B shows 12 rectangular regions of the same size arranged in a matrix of 4 horizontal by 3 vertical as the multiple divided regions, but the number, arrangement, size, shape, etc. of the multiple divided regions are not particularly limited. For example, the number of divided regions may be more or less than 12, the multiple divided regions may be arranged in a staggered check pattern, the multiple divided regions may not be the same in size or shape, and the divided regions may be trapezoidal, triangular, etc.
[0041] A specific method of contrast enhancement will be described. For example, the contrast enhancement unit 221 performs gamma correction for contrast enhancement, which converts each pixel value of a divided region using a gamma curve based on each pixel value of the divided region. This process will be described in detail with reference to Figs. 4(A) to 4(C). For simplicity, the process for one divided region will be described.
[0042] 4(A) to 4(C) show examples of a histogram before contrast enhancement, a gamma curve, and a histogram after contrast enhancement, respectively. The histogram before contrast enhancement shows the number of pixels (frequency) in a divided region for each pixel value before contrast enhancement. The gamma curve shows the correspondence between pixel values before contrast enhancement (before conversion) and pixel values after contrast enhancement (after conversion). The histogram after contrast enhancement shows the number of pixels (frequency) in a divided region for each pixel value after contrast enhancement. FIGS. 4(A) and 4(B) show a case where the histogram before contrast enhancement has one peak (frequency peak), and FIG. 4(C) shows a case where the histogram before contrast enhancement has two peaks (frequency peaks). The spread of the peak (range of pixel values) is different between FIGS. 4(A) and 4(B).
[0043] As shown in Figs. 4(A) to 4(C), the contrast enhancing unit 221 determines a gamma curve that stretches the histogram (increases the spread of the distribution). Specifically, the contrast enhancing unit 221 determines the pixel value (peak pixel value) Pa with the highest frequency and the spread Pb of the peak for each peak (peak of frequency) in the histogram before contrast enhancement. Then, the contrast enhancing unit 221 determines the position where the gamma curve is inclined according to the peak pixel value Pa, and determines the range where the gamma curve is inclined (range of pixel values before contrast enhancement) according to the spread Pb. Specifically, the contrast enhancing unit 221 determines a gamma curve that, centered on the peak pixel value Pa, widens the peak as the spread Pb becomes narrower. Thereby, as shown in Figs. 4(A) and 4(B), gamma correction can be performed so that the peak is sufficiently widened regardless of the spread Pb. Furthermore, as shown in Fig. 4(C), when there are multiple peaks in the histogram before contrast enhancement, gamma correction can be performed so that each peak is sufficiently widened. A sufficiently broadened peak corresponds to a sufficiently enhanced contrast.
[0044] This method is also called histogram equalization, histogram equalization, etc. In other words, it can be said that the contrast enhancement unit 221 achieves contrast enhancement by histogram equalization.
[0045] Instead of the peak pixel value Pa (mode), other pixel values (average value, median value, etc.) representative of the peak in the histogram before contrast enhancement may be used. In the above method, a gamma curve, peak pixel value Pa, spread Pb, etc. may be used as the above parameters. Although the gamma curve is illustrated as a connection of straight lines in which the pixel value after conversion changes linearly with respect to the change in the pixel value before conversion, the gamma curve may be a curve in which the pixel value after conversion changes nonlinearly with respect to the change in the pixel value before conversion.
[0046] As contrast enhancement, the contrast enhancement unit 221 may perform processing to change each pixel value of a divided region so that the difference between a pixel value representing the divided region and each pixel value of the divided region increases. This processing will be specifically described with reference to Fig. 5. For simplicity, the processing for one divided region will be described.
[0047] FIG. 5 shows an example of a histogram before contrast enhancement and a histogram after contrast enhancement. For example, the contrast enhancement unit 221 changes pixel values using the following formula 1. "Pave" in formula 1 is the average pixel value of the divided region before contrast enhancement, and "P " is the pixel value before contrast enhancement, "C" is a coefficient (magnification) for increasing the difference from the average pixel value Pave, and "P'" is the pixel value after contrast enhancement. The coefficient C is a value greater than 0 and less than or equal to 1. This makes it possible to realize the change in pixel value as described above. In other words, it is possible to increase the deviation of each pixel value from the average pixel value Pave, and to sufficiently enhance the contrast. P'=Pave-C×(Pave-P) (Formula 1)
[0048] Instead of the average pixel value Pave (average value), other representative pixel values (pixel values representing divided regions) before contrast enhancement, such as median values, may be used. By using the average value or median value as the representative pixel value, the pixel values can be changed (distributed) without bias. In the above method, the average pixel value Pave, coefficient C, etc. can be used as the above parameter.
[0049] Moreover, it is preferable to determine the coefficient C for each divided region. For example, it is preferable that the contrast enhancement unit 221 determines the coefficient C so that the difference in pixel value between a pixel having a pixel value smaller than the average pixel value Pave and a pixel having a pixel value larger than the average pixel value Pave becomes larger than a predetermined threshold value. The contrast enhancement unit 221 may determine the coefficient C based on the variance of all pixel values in the divided region. For example, the contrast enhancement unit 221 may increase the coefficient C as the variance decreases.
[0050] Return to the description of FIG. 2(B). The moving object detection unit 222 detects a moving object in a predetermined range based on the difference between the multiple images (multiple images after contrast enhancement) output by the contrast enhancement unit 101. Then, the moving object detection unit 222 outputs the detection result of the moving object to the output unit 240. Any algorithm may be used for the moving object detection, and the moving object may be detected by a simple method of detecting an area where the difference is larger than a predetermined threshold as the area of the moving object, or it may not be so. The moving object may be detected using a trained model generated by existing machine learning, and specifically, the moving object may be detected using a trained model generated by deep learning (for example, R-CNN, Fast R-CNN, YOLO, SSD, etc.). In addition, in this embodiment, the difference between two images is obtained, but the number of images to obtain the difference may be more than two. The moving object detection unit 222 is an example of a moving object detection means of the present invention.
[0051] The storage unit 230 stores programs executed by the control unit 220 and various data used by the control unit 220. For example, the storage unit 230 is an auxiliary storage device such as a hard disk drive or a solid state drive.
[0052] The output unit 240 displays the detection result (moving object detection result) output by the moving object detection unit 222 on a display unit, records it in a storage medium, or outputs it to another terminal (such as a smartphone of an administrator in a remote location). Note that the processing of the moving object detection unit 222 and the output unit 240 may be controlled so that these processes are performed.
[0053] Fig. 6 is a flowchart showing an example of a processing flow of the PC 200. The PC 200 repeatedly executes the processing flow of Fig. 6. The repetition period of the processing flow of Fig. 6 is not particularly limited, but in this embodiment, the processing flow of Fig. 6 is repeated at the frame rate of the image pickup by the camera 10 (e.g., 30 fps).
[0054] First, the input unit 210 acquires an image (current frame image; current image) capturing a predetermined range from the camera 10 (step S601).
[0055] Next, the contrast enhancement unit 221 determines the parameters for contrast enhancement (step S602), and enhances the contrast of the current image acquired in step S601 using the determined parameters. The contrast is enhanced (step S603). Details of the processes of steps S602 and S603 are as described above. Then, the contrast enhancement unit 221 records the parameters used for contrast enhancement in step S603 (the parameters determined in step S602) in the storage unit 230 (step S604). The processes of steps S602 to S604 are performed individually for each divided region. Furthermore, the contrast enhancement unit 221 records the current image acquired in step S601 in the storage unit 230 for the process of step S606 described later.
[0056] Next, the contrast enhancing unit 221 acquires a background image prepared in advance in the storage unit 230, and enhances the contrast of the acquired background image by the above-mentioned method (step S605). The background image is, for example, an image captured in a predetermined range in the absence of a moving object to be detected (a moving object to be detected). Then, the contrast enhancing unit 221 acquires a previous image (an image of a previous frame) recorded in the storage unit 230, and enhances the contrast of the acquired previous image by the above-mentioned method (step S606). The previous image is an image of a frame a predetermined number of frames before the current image, and the predetermined number is 1 or more. The processes of steps S605 and S606 are performed individually for each divided area.
[0057] The accuracy of moving object detection decreases due to the difference in contrast between the images after contrast enhancement. Therefore, in this embodiment, the contrast enhancement unit 221 uses the same parameters (the parameters determined in step S602; the parameters recorded in step S604) as those used in the contrast enhancement in step S603 in the contrast enhancement in steps S605 and S606. This makes it possible to match the contrast between the images after contrast enhancement, thereby improving the accuracy of moving object detection.
[0058] However, this is not limiting, and the contrast enhancement unit 221 may determine the parameters to be used in the contrast enhancement in step S605 based on the background image, and may determine the parameters to be used in the contrast enhancement in step S606 based on the previous image. The contrast enhancement unit 221 may use the parameters determined based on the background image or the previous image in the contrast enhancement in steps S603, S605, and S606.
[0059] Next, the moving object detection unit 222 detects a moving object by a background subtraction method using the difference between the current image after contrast enhancement in step S603 and the background image after contrast enhancement in step S605 (step S607).Then, the moving object detection unit 222 detects a moving object by an inter-frame subtraction method using the difference between the current image after contrast enhancement in step S603 and the previous image after contrast enhancement in step S606 (step S608).Next, the moving object detection unit 222 generates detection information indicating the detection result of the moving object based on the detection results of steps S607 and S608 (step S609).
[0060] It is to be noted that only one of the frame difference method and the background difference method may be used. When only the background difference method is used, the processes of steps S606 and S608 are omitted. Recording of the current image in the storage unit 230 may also be omitted. When only the frame difference method is used, the processes of steps S605 and S607 are omitted.
[0061] However, frame-to-frame subtraction and background subtraction each have different advantages and disadvantages. For example, with frame-to-frame subtraction, if the moving object to be detected stops, the moving object will not be detected. Also, if a person is walking towards the camera, there may be areas in a certain area that are the same color, such as the person's clothes, in both the current and past frames, which will reduce the difference between frames and prevent the person from being detected. With background subtraction, the accuracy of moving object detection decreases due to disturbance factors such as changes in sunlight conditions, that is, fluctuations in the surrounding environment. Also, if there is a moving object (a moving object that is not the target of detection) in the background, the current The moving images contained in the background differ between the frame image and the background image, which can lead to erroneous detection of unwanted moving objects or erroneous detection of background areas as moving object areas. Such erroneous detections are particularly noticeable when the background contains many moving objects (moving objects that are not the detection target).
[0062] For this reason, in this embodiment, a moving object is detected by combining the frame-to-frame difference method and the background difference method. This makes it possible to eliminate the disadvantages of the frame-to-frame difference method and the background difference method and to utilize their advantages, thereby making it possible to detect a moving object with higher accuracy. For example, in step S609, the moving object detection unit 222 can narrow down the moving object area to an area where a moving object is detected by both the frame-to-frame difference method and the background difference method, and generate detection information. The moving object detection unit 222 can also generate detection information such that the detection result by the frame-to-frame difference method and the detection result by the background difference method can be distinguished.
[0063] Finally, the output unit 240 outputs the detection information generated in step S609 to a display unit, a storage medium, a smartphone, or the like (step S610).
[0064] As described above, according to this embodiment, contrast enhancement is performed individually for multiple divided regions that make up the area of the captured image, so that the contrast of each divided region can be sufficiently enhanced, and thus moving objects can be detected with high accuracy in each divided region.
[0065] The background may change due to changes in sunlight or other light over time, changes in the layout of the room, and the like. For this reason, the control unit 220 may further update the background image based on the current image for the area determined to be background by the interframe difference method. In this way, the accuracy of moving object detection by the background difference method can be improved. The background image may be updated (updated for a part of the area) by replacing it with the current image, or by replacing it with an image obtained by weighting and combining the current image and the background image. The background image may be updated only for the area determined to be background by both the interframe difference and the background difference (area where no moving object was detected). The background image may be updated at a predetermined time interval, such as every hour, instead of for each frame.
[0066] The control unit 220 may further perform type determination (moving object recognition; moving object identification) to determine the type of the moving object detected by the moving object detection unit 222. The type may be a vehicle such as a car, a motorcycle, or a bicycle, or a person, an animal, or an object. In this case, the detection information may also include information on the type of the moving object. By doing so, further effects such as improved security in surveillance can be obtained. Any algorithm may be used for the type determination. For example, the type of the moving object may be determined by an existing type determination, and specifically, the type of the moving object may be determined using a classifier (recognizer; discriminator) that combines image features such as HoG and Haar-like with boosting. The type of the moving object may be determined using a trained model generated by existing machine learning, and specifically, the type of the moving object may be determined using a trained model generated by deep learning (e.g., R-CNN, Fast R-CNN, YOLO, SSD, etc.).
[0067] In addition, the higher the resolution of the captured image, the greater the processing load of contrast enhancement of the captured image. Therefore, the control unit 220 may further perform a reduction process to reduce an image captured within a predetermined range, and then perform contrast enhancement on the reduced image. In this way, the processing load of contrast enhancement can be reduced.
[0068] <Other> The above-described embodiment merely illustrates an exemplary configuration of the present invention. The present invention is not limited to the above-described specific embodiment, and various modifications are possible within the scope of the technical concept thereof.
[0069] <Appendix 1> A contrast enhancement means (101, 221) for individually enhancing contrast for a plurality of divided regions constituting an image region obtained by capturing a predetermined range; a moving object detection means (102, 222) for detecting a moving object within the predetermined range based on a difference between images after contrast enhancement by the contrast enhancement means; A moving object detection device (100, 200) comprising:
[0070] <Appendix 2> A contrast enhancement step (S602, S604, S605) for individually enhancing contrast for a plurality of divided regions constituting an image region obtained by capturing a predetermined range; a moving object detection step (S606 to S608) for detecting a moving object within the predetermined range based on a difference between images after contrast enhancement in the contrast enhancement step; A moving object detection method comprising the steps of: [Explanation of symbols]
[0071] 100: Motion detection device 101: Contrast enhancement unit 102: Motion detection unit 10: Camera 200: PC (motion detection device) 210: Input unit 220: Control unit 221: Contrast enhancement unit 222: moving object detection unit 230: memory unit 240: output unit
Claims
1. A contrast enhancement unit that performs contrast enhancement individually on a plurality of divided regions that constitute an image region obtained by capturing a predetermined range; a moving object detection means for detecting a moving object within the predetermined range based on a difference between images after contrast enhancement by the contrast enhancement means; having the contrast enhancement means determines a parameter of the contrast enhancement to be applied to each divided region based on a pixel value of each divided region in the image of the current frame, and performs the contrast enhancement on each of the image of the current frame and another image used in the difference processing, using the parameter of each divided region determined based on the image of the current frame; The moving object detection means detects a moving object within the specified range based on a difference between the image of the current frame after contrast enhancement and the other image after contrast enhancement, wherein the contrast enhancement is performed using the parameters of each divided area determined based on the image of the current frame.
2. The contrast enhancement is gamma correction that converts each pixel value of the divided region using a gamma curve based on each pixel value of the divided region.
2. The moving object detection device according to claim 1.
3. The contrast enhancement is a process of changing the pixel values of each divided region so as to increase the difference between a pixel value representing the divided region and each pixel value of the divided region.
2. The moving object detection device according to claim 1.
4. The pixel value representing the divided region is the average pixel value of the divided region.
4. The moving object detection device according to claim 3.
5. The moving object detection means uses a difference between an image obtained by performing the contrast enhancement on an image of a current frame and an image obtained by performing the contrast enhancement on an image of a past frame. The moving object is detected by the frame difference method.
5. The moving object detection device according to claim 1,
6. The moving object detection means detects the moving object by a background subtraction method using a difference between an image obtained by performing the contrast enhancement on an image of a current frame and an image obtained by performing the contrast enhancement on a previously prepared background image.
5. The moving object detection device according to claim 1, wherein the moving object detection device detects a moving object.
7. The moving object detection means A frame difference method using a difference between an image obtained by performing the contrast enhancement on an image of a current frame and an image obtained by performing the contrast enhancement on an image of a past frame; and The moving object is detected by combining the contrast-enhanced image of the current frame with a background subtraction method that uses the difference between the contrast-enhanced image of a previously prepared background image.
5. The moving object detection device according to claim 1, wherein the moving object detection device detects a moving object.
8. The method further includes updating means for updating the background image based on the image of the current frame for an area determined to be background by the frame difference method. The moving object detection device according to claim 7 .
9. 9. The moving object detection device according to claim 1, further comprising a type determination unit that determines a type of the moving object detected by the moving object detection unit.
10. The image capturing device further includes a reduction unit for reducing the size of the image captured within the predetermined range. The contrast enhancing means performs the contrast enhancement on the image reduced by the reducing means.
10. The moving object detection device according to claim 1,
11. The image captured within the predetermined range is an IR image. The moving object detection device according to any one of claims 1 to 10.
12. a contrast enhancement step of performing contrast enhancement individually on a plurality of divided regions constituting an area of an image obtained by capturing a predetermined range; a moving object detection step of detecting a moving object within the predetermined range based on a difference between images after contrast enhancement by the contrast enhancement step; having In the contrast enhancement step, a parameter of the contrast enhancement to be applied to each divided region is determined based on a pixel value of each divided region in the image of the current frame, and the contrast enhancement is performed on each of the image of the current frame and another image used in the difference processing, using the parameter of each divided region determined based on the image of the current frame; A moving object detection method characterized in that in the moving object detection step, the contrast enhancement is performed using the parameters of each divided area determined based on the image of the current frame, and a moving object within the specified range is detected based on the difference between the image of the current frame after contrast enhancement and the other image after contrast enhancement.
13. A program for causing a computer to execute each step of the moving object detection method according to claim 12.
Citation Information
Patent Citations
Vehicle detector
JP1997297849A
Device and method for image processing for performing contrast correction
JP2000285230A
Position detector and exposure device using the same
JP2001195583A
Image processing device, monitoring cameras and image processing method
JP2014059798A
Moving body image extraction method and moving body image extraction device
JP2015008412A
