Object detection device, object detection method, and object detection program
The object detection device enhances accuracy by tracking likelihood changes across frames to distinguish target objects from complex backgrounds, reducing false detections.
Patent Information
- Application Number
- JP2020209543
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-12-17
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-12-17
AI Technical Summary
In complex backgrounds with multiple objects such as ground surfaces and clouds, existing object detection methods struggle with accurately distinguishing target objects due to changes in contrast and noise, leading to false detections.
An object detection device that includes a feature extraction unit to identify candidate regions based on feature amounts, a tracking unit to accumulate likelihoods across frames, and a determining unit to finalize object positions using a comprehensive likelihood map, adjusting imaging parameters to enhance accuracy.
The method effectively suppresses false detections and stabilizes target object recognition even in complex backgrounds by tracking likelihood changes over time, ensuring high accuracy.
Smart Images

Figure 0007566613000001 
Figure 0007566613000002 
Figure 0007566613000003
Abstract
Description
[Technical field]
[0001] An embodiment of the present invention relates to an object detection device, an object detection method, and an object detection program. [Background technology]
[0002] 2. Description of the Related Art There is known a technique for detecting, for example, an object moving in the air by performing image processing on an infrared image or the like acquired by an imaging device such as an infrared camera. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent No. 5713939 [Patent Document 2] Patent No. 6042146 [Non-patent literature]
[0004] [Non-Patent Document 1] Object Contour Extraction Based on Region Separability, IEICE Transactions on Computer Vision, Vol. J80-D2, No. 6, pp. 1406-1414 Summary of the Invention [Problem to be solved by the invention]
[0005] In a complex background with multiple objects such as the ground and clouds, the shape of the background area detected by image processing may change due to changes in contrast and the effects of noise. In this case, the change in the background area may be erroneously detected as the movement of the target object. It is also possible to detect the target object by specifying a luminance band, but even in this case, there is a possibility that a region with continuous high luminance values in the complex background may be erroneously detected as the target object.
[0006] The embodiments provide an object detection device, an object detection method, and an object detection program that can detect a target object with high accuracy even if there is a complex background. [Means for solving the problem]
[0007] An object detection device according to one embodiment includes a feature extraction unit, a tracking unit, and a determination unit. The feature extraction unit extracts candidate regions of an object in an image and likelihoods of the candidate regions based on feature amounts of the image acquired in time series from an imaging device. The tracking unit tracks candidate regions in the current image that are highly likely to be the object by accumulating the likelihoods extracted in time series. The determination unit determines the final position of the object based on the candidate regions tracked by the tracking unit. The tracking unit adds likelihood values in a second candidate region extracted based on the current image to a frame likelihood map having likelihood values in a first candidate region extracted based on a past image, subtracts a fixed value from likelihood values at coordinates excluding the second candidate region in the frame likelihood map, and performs tracking based on an overall likelihood map calculated by the addition and subtraction. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a diagram showing an example of an object detection system including an object detection device according to each embodiment. [Diagram 2] FIG. 2 is a functional block diagram of the object detection device according to the first embodiment. [Figure 3A] FIG. 3A is a diagram showing an example of a search region. [Figure 3B] FIG. 3B is a diagram showing an example of a search region. [Figure 4A] FIG. 4A is a diagram showing an example of an image input in the feature extraction process. [Figure 4B] FIG. 4B is a diagram showing an example of a result of the feature extraction process. [Diagram 5] FIG. 5 is a diagram illustrating an example of feature amount tracking processing in the first embodiment. [Figure 6] FIG. 6 is a flowchart illustrating an example of processing performed by the object detection device according to the first embodiment. [Figure 7] FIG. 7 is a flowchart showing the process of calculating the overall likelihood map in the first embodiment. [Figure 8] FIG. 8 is a diagram showing an outline of control of the imaging direction. [Figure 9A] FIG. 9A is a diagram showing an overview of the control of the angle of view. [Figure 9B] FIG. 9B is a diagram showing an overview of the control of the angle of view. [Figure 10] FIG. 10 is a diagram illustrating an example of feature amount tracking processing in the modified example of the first embodiment. [Figure 11] FIG. 11 is a flowchart showing a process of calculating the overall likelihood map in the modified example of the first embodiment. [Figure 12] FIG. 12 is a functional block diagram of an object detection device according to the second embodiment. [Figure 13] FIG. 13 is a diagram illustrating an example of the search range setting process. [Figure 14A] FIG. 14A is a diagram showing a modified example of the search range setting process. [Figure 14B] FIG. 14B is a diagram showing a modified example of the search range setting process. [Figure 15] FIG. 15 is a flowchart illustrating an example of processing performed by the object detection device according to the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] (First embodiment) The first embodiment will be described with reference to the drawings. FIG. 1 is a diagram showing an example of an object detection system including an object detection device according to each embodiment. The object detection system 1 includes an imaging device 10 and an object detection device 20. The object detection system 1 is provided in, for example, a control system of a flying object or in the flying object itself. The object detection system 1 detects a target object by performing image processing on an image acquired using the imaging device 10. The object is, for example, a moving object such as a flying object. Here, in FIG. 1, configurations other than the object detection system 1 are omitted. For example, the flying object on which the object detection system 1 is mounted may have a propulsion device for obtaining a propulsive force, a steering device for changing a moving direction, and the like. The control system of the flying object may be provided in the flying object itself.
[0010] The imaging device 10 is a camera that sequentially captures images of a scene including an object. For example, the imaging device 10 may be an infrared camera having an imaging element having sensitivity in the infrared region. The imaging device 10 may be a camera having an imaging element having sensitivity in the visible light region. The imaging device 10 generates an image having a luminance value according to the intensity of light received by each pixel of the imaging element. Then, the imaging device 10 outputs the generated image to the object detection device 20. Here, the imaging device 10 may have a pan-tilt mechanism so that the imaging direction can be changed. The imaging device 10 may also have a zoom optical system so that the angle of view can be changed. The imaging device 10 may be configured to be able to change only one of the imaging direction and the angle of view.
[0011] The object detection device 20 includes an input device 201 , a processor 202 , a memory 203 , a storage device 204 , and an output device 205 .
[0012] The input device 201 is an interface device for inputting images successively captured by the imaging device 10 to the processor 202 .
[0013] The processor 202 executes an object detection program 2041 stored in the storage device 204 to detect an object in an image acquired via the input device 201. The processor 202 is, for example, a CPU. The processor 202 may be an MPU, a GPU, an ASIC, an FPGA, or the like. The processor 202 may be a single CPU or the like, or may be multiple CPUs or the like.
[0014] The memory 203 includes a ROM and a RAM. The ROM stores a startup program for the object detection device 20 and various parameters necessary for the operation of the object detection device 20. The RAM can be used as a working memory for various processes performed by the processor 202. For example, the RAM is used to temporarily store a likelihood map, which will be described later.
[0015] The storage device 204 is a storage device that stores an object detection program 2041. The storage device 204 may be a flash memory or the like.
[0016] The output device 205 is an interface device for outputting information on the object detected by the processor 202 to the outside as necessary. For example, the output device 205 includes a communication interface for transmitting necessary information to a control system of the flying object.
[0017] Fig. 2 is a functional block diagram of the object detection device 20 according to the first embodiment. As shown in Fig. 2, the object detection device 20 of the present embodiment includes an imaging control unit 301, a feature extraction unit 302, a tracking unit 303, a determination unit 304, and an output control unit 305. For example, the processor 202 operates as the imaging control unit 301, the feature extraction unit 302, the tracking unit 303, the determination unit 304, and the output control unit 305 by executing an object detection program 2041. The imaging control unit 301, the feature extraction unit 302, the tracking unit 303, the determination unit 304, and the output control unit 305 may be configured by dedicated hardware or the like.
[0018] The imaging control unit 301 controls the operation of the imaging device 10. The imaging control unit 301 instructs the imaging device 10 on the imaging direction. The imaging control unit 301 also instructs the imaging device 10 to change the angle of view, that is, to zoom in or out. For example, the imaging control unit 301 pans or tilts the imaging device 10 so that the coordinates with high likelihood, which will be described later, become the center of the image captured in the next frame. For example, the imaging control unit 301 also zooms in or out the imaging device 10 depending on the level of likelihood. For example, the imaging control unit 301 zooms in the imaging device 10 when the likelihood is high, and zooms out the imaging device 10 when the likelihood is low. The imaging control unit 301 also acquires images input in time series from the imaging device 10 via the input device 201, and transmits the acquired images to the feature extraction unit 302.
[0019] The feature extraction unit 302 performs feature extraction processing. The feature extraction processing is processing for extracting candidate regions and likelihoods of objects from feature amounts in images acquired in time series by the imaging control unit 301. The likelihoods are values that represent the likelihood of an object.
[0020] For example, the feature extraction unit 302 sets a search area in the image. The search area has, for example, a central area 401 and a peripheral area 402 shown in FIG. 3A. The central area 401 is a 2×2 pixel area. The peripheral area 402 is a one pixel area outside the central area 401. The size of the search area is not limited to the size shown in FIG. 3A. For example, as shown in FIG. 3B, the peripheral area 402 may be a two pixel area outside the central area 401. A plurality of search areas may be set in the image. These plurality of search areas may be the same size or different sizes.
[0021] After setting the search areas, the feature extraction unit 302 calculates the degree of separation as a feature in each search area. The degree of separation is the ratio of the variance of the brightness values of the central area 401 and the peripheral area 402. Then, the feature extraction unit 302 extracts candidate areas from the search areas based on the degree of separation. For example, the feature extraction unit 302 extracts a search area with a high degree of separation as a candidate area. The number of candidate areas extracted may be one or more.
[0022] 4A and 4B are examples of feature extraction processing. FIG. 4A is an example of an image input to feature extraction unit 302. Image 500 shown in FIG. 4A is an image including object O. FIG. 4B is an example of an image subjected to feature extraction processing. For example, candidate regions 501, 502, and 503 are extracted in FIG. 4B. Of candidate regions 501, 502, and 503, candidate region 501 is an area extracted as a candidate region because it includes object O in its central region. Candidate regions 502 and 503 are areas extracted as candidate regions due to the influence of the background.
[0023] 4B, the feature extraction unit 302 sends the upper left X coordinates X1, X2, X3, the upper left Y coordinates Y1, Y2, Y3, the widths W1, W2, W3, the heights H1, H2, H3, and the likelihoods S1, S2, S3 of the candidate areas 501, 502, 503 to the tracking unit 303. Here, the likelihoods S1, S2, S3 may be, for example, the degree of separation.
[0024] Here, the feature extraction unit 302 is not limited to a configuration that extracts candidate regions by the degree of separation. The feature extraction unit 302 may extract candidate regions by using known image processing such as binarization of luminance values, Otsu's binarization (binarization by the degree of separation calculated by the ratio of the inter-class variance and the intra-class variance between the central region and the peripheral region), edge detection, etc. The feature extraction unit 302 may also extract candidate regions by extracting differences from the image of the previous frame, such as inter-frame differences.
[0025] Furthermore, the feature extraction unit 302 may delete from the candidate regions any region in which either or both of the likelihood value and the average brightness value of the central region are lower than a preset value. A low likelihood value means that the central region and the peripheral region are not well separated, i.e., the likelihood of the object being low. A low brightness value in the central region means that the candidate region is highly likely to be the background. Therefore, by deleting from the candidate region any region in which either or both of the likelihood value and the average brightness value of the central region are lower than a preset value, it is possible to suppress erroneous extraction of the background region as the object region. The brightness value that is the threshold value when deleting the candidate region may not be a predetermined value, but may be the difference between the average brightness values of the central region and the peripheral region. This allows the threshold to be automatically set for each candidate region.
[0026] The tracking unit 303 performs feature tracking processing. The feature tracking processing is processing for tracking an object based on an overall likelihood map calculated based on the top left X coordinate, top left Y coordinate, width, height, and likelihood as information of the candidate area sent from the feature extraction unit 302. The overall likelihood map is calculated from frame likelihood maps of multiple frames. The overall likelihood map and the frame likelihood map are maps in which each coordinate has a likelihood value.
[0027] FIG. 5 is a diagram showing an example of feature tracking processing in the first embodiment. The tracking unit 303 calculates a frame likelihood map 600a in the current frame from an image 500a including an extraction result of a feature input in the current frame t. The frame likelihood map 600a in the frame t is calculated by adding the likelihood values in the candidate areas 501a, 502a, and 503a extracted in the image 500a to a likelihood map of initial values stored in advance. The likelihood map of initial values is a map in which the likelihood values in all coordinates are initial values, for example, zero. Specifically, the tracking unit 303 adds the likelihood values of each coordinate included in the candidate area 501a to each coordinate of the candidate area 601a corresponding to the candidate area 501a in the likelihood map of initial values. Similarly, the tracking unit 303 adds the likelihood value of each coordinate included in the candidate area 502a to the coordinates of the candidate area 602a corresponding to the candidate area 502a in the initial value likelihood map, and adds the likelihood value of each coordinate included in the candidate area 503a to the coordinates of the candidate area 603a corresponding to the candidate area 503a in the initial value likelihood map. Here, in Fig. 5, the difference in the likelihood value is shown by applying different hatching to each candidate area. In the example of Fig. 5, the likelihood value of the candidate area 601a is higher than the likelihood values of the candidate areas 602a and 603a.
[0028] After calculating the frame likelihood map 600a in the frame t, the tracking unit 303 calculates the overall likelihood map 700a in the current frame t from the frame likelihood map 600a and the overall likelihood map 700b calculated in the previous frame t-1. Specifically, the tracking unit 303 adds the likelihood value of each coordinate in the frame likelihood map 600a to the likelihood value of the corresponding coordinate in the overall likelihood map 700b. Meanwhile, the tracking unit 303 subtracts a preset constant value from the coordinates in the added overall likelihood map 700b that do not have a likelihood value in the frame likelihood map 600a, that is, the coordinates other than the candidate regions 601a, 602a, and 603a. In this way, the tracking unit 303 calculates the overall likelihood map 700a.
[0029] 5, the tracking unit 303 adds the likelihood values of the candidate regions 601a, 601b, and 601c in the frame likelihood map 600a to the likelihood values of the corresponding coordinates in the overall likelihood map 700b. Furthermore, the tracking unit 303 subtracts a preset constant value from the regions in the overall likelihood map 700b other than the candidate regions 601a, 602a, and 603a.
[0030] Here, the candidate areas 701b, 702b, 703b, 704b, 705b, and 706b having likelihood values in the overall likelihood map 700b do not match any of the candidate areas 601a, 602a, and 603a having likelihood values in the frame likelihood map 600a. Therefore, a fixed value is subtracted from the likelihood values of the coordinates corresponding to the candidate areas 701b, 702b, 703b, 704b, 705b, and 706b in the frame likelihood map 600a. In the overall likelihood map 700a in FIG. 5, in addition to the candidate areas 701a, 702a, and 703a corresponding to the candidate areas 601a, 602a, and 603a, only the candidate area 704a corresponding to the candidate area 703b, the candidate area 705a corresponding to the candidate area 704b, and the candidate area 706a corresponding to the candidate area 706b have likelihood values. Moreover, the likelihood values of candidate areas 704a, 705a, and candidate area 706a become smaller than the original values.
[0031] In the overall likelihood map calculated in this way, if a candidate area with the same coordinates as a candidate area in the likelihood map one frame before is extracted in the current frame, the likelihood of the candidate area becomes higher. On the other hand, if a candidate area with different coordinates from the candidate area in the likelihood map one frame before is extracted in the current frame, the likelihood of the candidate area extracted in the previous frame becomes lower. For example, when the imaging device 10 is controlled so that a candidate area with a high likelihood of being considered as an object is at the center of the image, this candidate area with a high likelihood hardly moves from the center of the image. In addition, it is considered that the object hardly changes in shape over time. On the other hand, the position of the candidate area may change for the background such as clouds due to changes in position and shape over time. For this reason, in the feature tracking process of the embodiment, the likelihood of a candidate area with a high probability of including the target object tends to increase over time, and even if a background similar to the object is extracted as a candidate area, the likelihood of the candidate area of this background tends to decrease over time. In this way, in the embodiment, even if a background area similar to the target object is erroneously extracted, the likelihood of the erroneously extracted background area can be reduced, and as a result, the target object can be detected with high accuracy.
[0032] The tracking unit 303 sends the coordinates of the candidate area having the highest likelihood in the overall likelihood map 700a calculated as described above and the likelihood value of the candidate area to the determination unit 304. In the example of Fig. 5, the tracking unit 303 sends the upper left X coordinate, upper left Y coordinate, width, height, and likelihood of the candidate area 701a to the determination unit 304.
[0033] Here, if no overall likelihood map is held in the previous frame, the frame likelihood map in the previous frame is used as the overall likelihood map. In this case, the likelihood value of the frame likelihood map is directly used as the likelihood value of the overall likelihood map. In the example of FIG. 5, there is no frame before the image 500c in the t-2 frame. In this case, the frame likelihood map 600c calculated based on the image 500c is used as the overall likelihood map of the previous frame for calculating the overall likelihood map 700b in the t-1 frame. The overall likelihood map 700b is calculated from the frame likelihood map 600b calculated based on the image 500b in the t-1 frame and the frame likelihood map 600c.
[0034] In addition, if a frame likelihood map is not stored for the previous frame, i.e., if the current frame is the first frame, the aforementioned initial value likelihood map stored in advance may be used as the overall likelihood map.
[0035] 5, the frame likelihood maps 600a, 600b, and 600c and the overall likelihood maps 700a and 700b are shown as images in which the likelihood value is a brightness value. However, the frame likelihood map and the overall likelihood map do not necessarily need to be visualized. The frame likelihood map and the overall likelihood map only need to have a likelihood value for each coordinate.
[0036] In addition, in the embodiment, the imaging device 10 is assumed to be controlled so that the candidate area with high likelihood is located at the center of the image. However, if the movement of the object is small compared to the interval between the imaging frames, the movement of the object on the image between frames is also small, and as a result, the likelihood value tends to increase over time. When tracking an object with small movement compared to the interval between such imaging frames, the imaging device 10 does not need to be controlled so that the candidate area with high likelihood is located at the center of the image.
[0037] The determination unit 304 acquires a total likelihood map for the current frame from the tracking unit 303. The determination unit 304 then determines the final position of the object in the image from the total likelihood map. Specifically, the determination unit 304 determines the final position of the object depending on whether the highest likelihood value in the total likelihood map is equal to or greater than a certain value. For example, if the detected likelihood value is equal to or greater than a certain value, the determination unit 304 determines the coordinates of the candidate area having that likelihood as the final position of the object. On the other hand, for example, if the highest likelihood value in the total likelihood map is not equal to or greater than a certain value, the determination unit 304 does not determine the coordinates of the candidate area having that likelihood as the final position of the object.
[0038] The output control unit 305 performs control to output information on the position of the object determined by the determination unit 304. For example, the output control unit 305 outputs the information on the position of the object to a control system of the flying object via the output device 204.
[0039] 6 is a flowchart showing an example of processing of the object detection device 20 in the first embodiment. The processing of FIG.
[0040] In step S101 , the processor 202 acquires an image from the imaging device 10 .
[0041] In step S102, the processor 202 extracts features of the acquired image, and extracts candidate regions and their likelihoods based on the features.
[0042] In step S103, the processor 202 determines whether or not a feature has been extracted. If it is determined in step S103 that a feature has been extracted, the process proceeds to step S104. If it is determined in step S103 that there is no search area having a high degree of separation as a candidate area, for example, the process returns to step S101. In this case, the processor 202 acquires an image of the next frame and repeats the same process.
[0043] In step S104, the processor 202 calculates a frame degree map in the current frame from the coordinates and likelihoods of each candidate region.
[0044] In step S105, the processor 202 calculates a total likelihood map for the current frame from the frame likelihood map for the current frame. Here, the calculation process of the total likelihood map will be described.
[0045] 7 is a flowchart showing the calculation process of the overall likelihood map in the first embodiment. In step S201, the processor 202 obtains a likelihood value from the coordinates corresponding to the candidate region of the frame likelihood map in the current frame.
[0046] In step S202, the processor 202 adds the acquired likelihood value to the overall likelihood map calculated in the previous frame. As described above, if there is no overall likelihood map in the previous frame, the frame likelihood map in the previous frame may be used as the overall likelihood map. Furthermore, when the current frame is the first frame, the initial value of the likelihood map may be used as the overall likelihood map.
[0047] In step S203, the processor 202 subtracts a constant value from the likelihood value of each coordinate outside the candidate area of the frame likelihood map of the current frame in the overall likelihood map calculated in the previous frame. In this manner, the overall likelihood map of the current frame is calculated.
[0048] In step S204, the processor 202 extracts the coordinates and likelihood information of the candidate region having the highest likelihood in the overall likelihood map in the current frame. After that, the processor 202 ends the processing in FIG.
[0049] Now, returning to the description of Fig. 6, in step S106 after calculating the overall likelihood map in the current frame, the processor 202 determines whether the extracted likelihood is equal to or greater than a certain value. If it is determined in step S106 that the likelihood is not equal to or greater than the certain value, the process proceeds to step S107. If it is determined in step S106 that the likelihood is equal to or greater than the certain value, the process proceeds to step S109.
[0050] In step S107, the processor 202 controls the imaging direction of the imaging device 10 so that the candidate area having the highest likelihood is the center of the image captured in the next frame. That is, the processor 202 pans or tilts the imaging device 10. FIG. 8 is a diagram showing an overview of the control of the imaging direction. The processor 202 acquires, for example, the coordinates of the candidate area 701a having the highest likelihood in the overall likelihood map 700a generated from the current frame 500a. Then, the processor 202 calculates the distance between the images, for example, between the coordinates of the center of the acquired candidate area 701a and the coordinates of the center of the image. Then, the processor 202 determines the pan amount and tilt amount of the imaging device 10 based on the distance between the images, and pans and tilts the imaging device 10 according to the determined pan amount and tilt amount. In this way, in the image 500e captured in the next frame, the candidate area 501e corresponding to the candidate area 701a having the highest likelihood in the previous frame becomes the image center. The candidate area having the highest likelihood is an area with a high probability that the object O exists. By capturing an image such that a region where there is a high probability that the object O exists is located at the center of the image, the possibility that the object O will be lost from the captured image is reduced.
[0051] In step S108, the processor 202 controls the angle of view of the imaging device 10 according to the likelihood value of the candidate region having the highest likelihood. That is, the processor 202 zooms in or out the imaging device 10. Thereafter, the process returns to step S101. In this case, the processor 202 acquires the image of the next frame and repeats the same process.
[0052] 9A and 9B are diagrams showing an overview of the control of the angle of view, where Fig. 9A shows an overview of the control when the likelihood value is high, and Fig. 9B shows an overview of the control when the likelihood value is low.
[0053] For example, when the maximum likelihood value acquired in the overall likelihood map 700a is greater than a preset threshold, the processor 202 causes the imaging device 10 to zoom in around the coordinates having the maximum likelihood value, as shown in FIG. 9A. As a result, in the image 500d captured in the next frame, a narrow range centered on the coordinates having the highest likelihood in the previous frame is enlarged. As a result, it is possible to capture the object O more clearly by enlarging the vicinity of the coordinates having a high probability of being the object O. Also, when the maximum likelihood value acquired in the overall likelihood map 700a is less than a preset threshold, the processor 202 causes the imaging device 10 to zoom out around the coordinates having the maximum likelihood value, as shown in FIG. 9B. A small likelihood value means that the object including the coordinates is less likely to be the target object O. In this case, the imaging device 10 is zoomed out, so that the surrounding area of the object can be increased. As a result, the possibility of the object O being lost from the captured image is reduced. The likelihood threshold may be set manually.
[0054] Returning now to the description of Fig. 6, in step S109, the processor 202 outputs the coordinates of the candidate region having the highest likelihood as the coordinates of the target object O to, for example, a control system of the flying object. In response to this, the control system of the flying object can control the flying object so as to track the target object O.
[0055] As described above, according to the first embodiment, the candidate region of the object is selected by accumulating the likelihood calculated from the feature amount extracted in a plurality of frames. In other words, if a candidate region with high likelihood remains at the same coordinates, the likelihood is high, and if it changes to different coordinates, the likelihood is low. By determining the object based on the likelihood calculated in this way, in the first embodiment, it is possible to suppress false detection against a complex background and detect the object stably and accurately.
[0056] (Modification of the first embodiment) A modified example of the first embodiment will be described. In the first embodiment, the tracking unit 303 calculates the current overall likelihood map by adding the current frame likelihood map to the past overall likelihood map. Alternatively, the tracking unit 303 may calculate the current overall likelihood map by adding a plurality of past frame likelihood maps to the current frame likelihood map.
[0057] FIG. 10 is a diagram showing an example of feature tracking processing in a modified example of the first embodiment. In the example of FIG. 10, a total likelihood map is calculated from frame likelihood maps of four frames including the current frame t. The tracking unit 303 calculates frame likelihood maps 600a, 600b, 600c, and 600d from an image 500a of the current frame t, an image 500b of the previous frame t-1, an image 500c of the second previous frame t-1, and an image 500d of the third previous frame t-2, respectively. The calculation method of the frame likelihood map may be the same as that of the first embodiment. Specifically, the tracking unit 303 calculates the frame likelihood map by adding the likelihood value in each extracted candidate region to the likelihood map of the initial value stored in advance.
[0058] The tracking unit 303 of the modified example calculates a total likelihood map based on the frame likelihood maps of these multiple frames. Specifically, the tracking unit 303 increases the likelihood of a frame likelihood map having a small time difference from the current frame and decreases the likelihood of a frame likelihood map having a large time difference from the current frame, and calculates the total likelihood map by adding up the likelihood values of each coordinate held by each frame likelihood map.
[0059] For example, the tracking unit 303 calculates a frame likelihood map 800a in which each likelihood value of the frame likelihood map 600a of frame t is set to 100%, i.e., the likelihood value is multiplied by a coefficient of 1.0; a frame likelihood map 800b in which each likelihood value of the frame likelihood map 600b of frame t-1 is attenuated to 75%, i.e., the likelihood value is multiplied by a coefficient of 0.75; a frame likelihood map 800c in which each likelihood value of the frame likelihood map 600c of frame t-2 is attenuated to 50%, i.e., the likelihood value is multiplied by a coefficient of 0.5; and a frame likelihood map 800d in which the likelihood of the frame likelihood map 600d of frame t-3 is attenuated to 25%, i.e., the likelihood value is multiplied by a coefficient of 0.25. Then, the tracking unit 303 calculates the overall likelihood map 700a by adding up the likelihoods of the coordinates of the frame likelihood maps 800a, 800b, 800c, and 800d of these four frames. Even with such an overall likelihood map 700a, if there is a likelihood value at the same coordinate in the frame likelihood map of the past frame and the frame likelihood map of the current frame, the overall likelihood map is created so that the likelihood value at that coordinate increases. On the other hand, since the likelihood attenuation is greater for the past frame, the influence of the past likelihood value on the overall likelihood map of the current frame is small. Therefore, even if there is a false detection of an object in a past frame, the influence is corrected over time. Therefore, even in the modified example, it is possible to suppress false detection against a complex background and detect an object stably and accurately.
[0060] 11 is a flowchart showing a calculation process of an overall likelihood map in the modified example of the first embodiment. In step S301, the processor 202 obtains a likelihood value from coordinates corresponding to a candidate region in a frame likelihood map in the current frame.
[0061] In step S302, the processor 202 attenuates each frame likelihood map by multiplying the likelihood value of each coordinate of the frame likelihood map calculated for the current frame, the previous frame, the second previous frame, and the third previous frame by a coefficient assigned to each frame.
[0062] In step S303, the processor 202 adds the likelihood values of the corresponding coordinates of each attenuated frame likelihood map, thereby calculating a total likelihood map for the current frame.
[0063] In step S304, the processor 202 extracts the coordinates and likelihood information of the candidate region having the highest likelihood in the overall likelihood map in the current frame, and then the processor 202 ends the process of FIG.
[0064] For this reason, even with the above-described modified example, it is possible to suppress erroneous detection and stably detect an object even against a complex background.
[0065] Here, the calculation method of the overall likelihood map shown in the modified example is one example. For example, the amount of attenuation is not limited to the amount described in the modified example as long as the current frame is set to be the highest. Similarly, the number of frames to be added is not limited to four frames as long as it includes the current frame. Furthermore, the frame likelihood maps of consecutive frames do not necessarily have to be added. Furthermore, a past overall likelihood map may be attenuated and used as a past frame likelihood map, as in the first embodiment.
[0066] Second embodiment Next, a second embodiment will be described. Fig. 12 is a functional block diagram of an object detection device 20 according to this embodiment. In Fig. 12, the same components as those in Fig. 2 are given the same reference numerals as those in Fig. 2. Descriptions of the components given the same reference numerals as those in Fig. 12 will be omitted or simplified as necessary.
[0067] The object detection device 20 of this embodiment includes an imaging control unit 301, a search range setting unit 306, a feature extraction unit 302, a tracking unit 303, a determination unit 304, and an output control unit 305. For example, the processor 202 executes an object detection program 2041 to operate as the imaging control unit 301, the search range setting unit 306, the feature extraction unit 302, the tracking unit 303, the determination unit 304, and the output control unit 305. The imaging control unit 301, the search range setting unit 306, the feature extraction unit 302, the tracking unit 303, the determination unit 304, and the output control unit 305 may be configured by dedicated hardware or the like.
[0068] The search range setting unit 306 sets the position of a search range when the feature extraction unit 302 extracts features. Specifically, the search range setting unit 306 sets the position of the search range in the current frame based on the likelihood value in the overall likelihood map calculated in the past frame.
[0069] FIG. 13 is a diagram showing an example of the search range setting process of the search range setting unit 306. For example, assume that the likelihood value of the candidate area 701a is the highest in the overall likelihood map 700a calculated from the image 500a obtained in the previous frame. In this case, the search range setting unit 306 sets a range set in advance with, for example, the central coordinate of the candidate area 701a as the center as the search range. Then, the search range setting unit 306 sends the upper left X coordinate X4, the upper left Y coordinate Y4, the width W4, and the height H4 of the set search range to the feature extraction unit 302. Here, the width W4 and the height H4 may be set manually. The feature extraction unit 302 performs feature extraction processing on the search range A in the image 500e of the next frame.
[0070] Here, since there is no overall likelihood map for the first frame, the search range setting unit 306 sets the search range to, for example, the entire image.
[0071] Furthermore, the search range setting unit 306 may set multiple search ranges in the image. In this case, the search range setting unit 306 may set multiple search ranges in descending order of the likelihood value in the overall likelihood map, for example. At this time, the search range setting unit 306 may set the multiple search ranges so that they do not overlap with each other.
[0072] Furthermore, the search range setting section 306 may set the size of the search range, that is, the width W4 and height H4, according to the highest likelihood value in the overall likelihood map calculated in the previous frame.
[0073] 14A and 14B are diagrams showing modified examples of the search range setting process, where Fig. 14A is a diagram showing a modified example of the search range setting process when the likelihood value is low, and Fig. 14B is a diagram showing a modified example of the search range setting process when the likelihood value is high.
[0074] For example, when the maximum likelihood value in the overall likelihood map calculated in the previous frame is lower than a preset threshold, the search range setting unit 306 sets a search range A1 expanded by a certain width and height from the original search range with the highest likelihood as the center as shown in FIG. 14A, and sends the upper left X coordinate X5, the upper left Y coordinate Y5, the width W5, and the height H5 of the search range A1 to the feature extraction unit 302. On the other hand, when the maximum likelihood value in the overall likelihood map calculated in the previous frame is higher than a preset threshold, the search range setting unit 306 sets a search range A2 reduced by a certain width and height from the original search range with the highest likelihood as the center as shown in FIG. 14B, and sends the upper left X coordinate X6, the upper left Y coordinate Y6, the width W6, and the height H6 of the search range A2 to the feature extraction unit 302. Here, the threshold may be one or more. When there are multiple thresholds, the width and height of the search range may be set according to the thresholds.
[0075] Fig. 15 is a flowchart showing an example of processing of the object detection device 20 in the second embodiment. The processing in Fig. 15 is performed by, for example, the processor 202. Here, in Fig. 15, explanations of processing similar to that in Fig. 6 will be appropriately omitted or simplified.
[0076] In step S401, the processor 202 acquires an image from the imaging device 10.
[0077] In step S402, the processor 202 sets a search range for the acquired image. As described above, the search range for the first frame may be the entire image. On the other hand, the search range after the first frame is set based on the overall likelihood map calculated in the previous frame. The processor 202 sets the search range in a range centered on the coordinate having the highest likelihood value in the overall likelihood map calculated in the previous frame. At this time, the processor 202 may set the width and height of the search range according to a comparison between the highest likelihood value and a threshold value.
[0078] The processing in steps S403-S410 is the same as the processing in steps S102-S109 in Fig. 6, and therefore the description will be omitted.
[0079] As described above, in the second embodiment, the search range for the feature of the next frame is set based on the likelihood value of the overall likelihood map calculated in the previous frame. As described above, the object may not move significantly between frames. In this case, erroneous extraction of the background, etc. can be suppressed by limiting the search range in the image.
[0080] [Other variations] The object detection program executed in the object detection device 20 of each of the above-described embodiments and modified examples thereof may be provided by being recorded in an installable or executable file format on a computer-readable recording medium such as a CD-ROM, a flexible disk (FD), a CD-R, or a digital versatile disk (DVD). The object detection program may also be stored on a computer connected to a network such as the Internet, and the object detection device 20 may download and use the object detection program via the network as necessary.
[0081] Although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and spirit of the invention, and are included in the scope of the invention and its equivalents described in the claims. [Explanation of symbols]
[0082] 1 object detection system, 10 imaging device, 20 object detection device, 201 input device, 202 processor, 203 memory, 204 storage device, 205 output device, 301 imaging control unit, 302 feature extraction unit, 303 tracking unit, 304 determination unit, 305 output control unit, 306 search range setting unit.
Claims
1. a feature extraction unit that extracts candidate regions of an object in an image and likelihoods of the candidate regions based on feature amounts of the images acquired in time series from an imaging device; a tracking unit that tracks a candidate area that is highly likely to be the object from among the candidate areas in the current image by accumulating the likelihoods extracted in time series; a determination unit that determines a final position of the object based on the candidate area tracked by the tracking unit; Equipped with The tracking unit is adding a likelihood value in a second candidate region extracted based on the current image to a frame likelihood map having a likelihood value in a first candidate region extracted based on a past image; subtracting a constant value from the likelihood value at coordinates of the frame likelihood map excluding the second candidate region; An object detection device that performs tracking based on a total likelihood map calculated by the addition and subtraction.
2. A feature extraction unit that extracts candidate regions of an object in an image and likelihoods of the candidate regions based on feature values of the images acquired in time series from an imaging device; a tracking unit that tracks a candidate area that is highly likely to be the object from among the candidate areas in the current image by accumulating the likelihoods extracted in time series; a determination unit that determines a final position of the object based on the candidate area tracked by the tracking unit; Equipped with The tracking unit is adding a second frame likelihood map having a likelihood value in a second candidate region extracted based on a current image to a first frame likelihood map having a likelihood value in a first candidate region extracted based on a past image; Tracking based on the overall likelihood map calculated by the addition; An object detection apparatus that attenuates the first frame likelihood map in accordance with a time difference between the first frame likelihood map and the second frame likelihood map during the addition.
3. The object detection device according to claim 1 or 2, wherein the feature extraction unit deletes, from the extracted candidate regions, candidate regions in which at least one of the likelihood and the luminance value of a central region of the candidate region is lower than a certain value.
4. The object detection device according to claim 3 , wherein the feature extraction unit sets the constant value based on a difference between average luminance values of a central region and a peripheral region of the candidate region.
5. a search range setting unit that sets a search range of the image in which the extraction by the feature amount extraction unit is performed, The object detection device according to claim 1 , wherein the search range setting unit sets the position of the search range based on an accumulation result of the likelihood.
6. The object detection device according to claim 5 , wherein the search range setting unit further sets a size of the search range based on an accumulation result of the likelihood.
7. The object detection device according to claim 1 , further comprising an image capture control unit that controls at least one of an image capture direction and an angle of view of an image capture device that captures the image based on an accumulation result of the likelihood.
8. 2. The object detection device according to claim 1, which is mounted on a flying object.
9. The object detection device according to claim 8 , further comprising an output control unit that outputs information on the position of the object determined by the determination unit to a control system of the flying object.
10. extracting a candidate region of an object in an image acquired in time series from an imaging device and a likelihood of the candidate region based on feature amounts of the image; Tracking a candidate area that is highly likely to be the object from among the candidate areas in the current image by accumulating the likelihood extracted in time series; and determining a final object position based on the tracked candidate regions; and Equipped with Tracking a candidate region that is likely to be an object of interest includes: adding a likelihood value for a second candidate region extracted based on the current image to a frame likelihood map having a likelihood value for a first candidate region extracted based on a past image; subtracting a constant value from the likelihood value at coordinates of the frame likelihood map excluding the second candidate region; tracking based on a total likelihood map calculated by the addition and the subtraction; An object detection method comprising:
11. Extracting a candidate region of an object in an image acquired in time series from an imaging device based on feature quantities of the image and a likelihood of the candidate region; Tracking a candidate area that is highly likely to be the object from among the candidate areas in the current image by accumulating the likelihood extracted in time series; and determining a final object position based on the tracked candidate regions; and Equipped with Tracking a candidate region that is likely to be an object of interest includes: adding a second frame likelihood map having a likelihood value in a second candidate region extracted based on a current image to a first frame likelihood map having a likelihood value in a first candidate region extracted based on a past image; tracking based on the overall likelihood map calculated by the addition; attenuating the first frame likelihood map according to a time difference between the first frame likelihood map and the second frame likelihood map during the addition; An object detection method comprising:
12. extracting a candidate region of an object in an image acquired in time series from an imaging device and a likelihood of the candidate region based on feature amounts of the image; Tracking a candidate area that is highly likely to be the object from among the candidate areas in the current image by accumulating the likelihood extracted in time series; and determining a final object position based on the tracked candidate regions; and An object detection program for causing a processor to execute the above, Tracking a candidate region that is likely to be an object of interest includes: adding a likelihood value for a second candidate region extracted based on the current image to a frame likelihood map having a likelihood value for a first candidate region extracted based on a past image; subtracting a constant value from the likelihood value at coordinates of the frame likelihood map excluding the second candidate region; tracking based on a total likelihood map calculated by the addition and the subtraction; An object detection program including:
13. A method for determining whether an object is present in an image based on feature amounts of the image obtained in time series from an imaging device. extracting likelihoods of the complement region and the candidate region; The likelihoods extracted in time series are accumulated to obtain a candidate region in the current image. tracking a candidate region that is highly likely to be the object from among the candidate regions; determining a final object position based on the tracked candidate regions; and An object detection program for causing a processor to execute the above, Tracking a candidate region that is likely to be an object of interest includes: adding a second frame likelihood map having a likelihood value in a second candidate region extracted based on a current image to a first frame likelihood map having a likelihood value in a first candidate region extracted based on a past image; tracking based on the overall likelihood map calculated by the addition; attenuating the first frame likelihood map according to a time difference between the first frame likelihood map and the second frame likelihood map during the addition; An object detection program including:
Citation Information
Patent Citations
Aquatic machine
JP1982013939A
Structure of steering gear setting part for tractor and the like
JP1985042146A
Object detection device and program
JP2012221162A
Object tracking device and object tracking method
JP2020149641A
Moving-body detection device, moving-body detection method, moving-body detection program, moving-body tracking device, moving-body tracking method, and moving-body tracking program
WO2012127618A1
