Object detection device, method, and program
The object detection device addresses the challenge of multiple detection results by using overlap-based screening to accurately detect small objects across image boundaries, enhancing detection accuracy by comparing and merging results from both overall and division processing units.
Patent Information
- Application Number
- PCT/JP2023/010695
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-17
- Publication Date
- 2024-09-26
AI Technical Summary
Conventional object detection methods using deep learning struggle to accurately screen multiple detection results of small objects located at the boundaries between divided images, as existing techniques like NMS may fail to perform appropriate screening when the IoU is low, leading to either incomplete detection or mistaken screening of different objects.
An object detection device and method that includes overall and division processing units for detecting objects in reduced and divided images, respectively, with a screening unit that compares detection results based on overlap and removes duplicate detections using an overlap index, ensuring accurate detection of small objects across image boundaries.
This approach effectively screens multiple detection results of small objects between divided images, improving detection accuracy by ensuring only one detection result is retained per object, even when the IoU is low, thus preventing mistaken screenings and ensuring accurate detection of objects across image boundaries.
Smart Images

Figure JP2023010695_26092024_PF_FP
Abstract
Description
Object detection device, method, and program
[0001] The disclosed technology relates to an object detection device, an object detection method, and an object detection program.
[0002] An object detection device is a device that detects objects contained in an input image from the image and detects metadata including location information such as a rectangular frame indicating the area of the object, attributes indicating the type of object (person, car, etc.), and the reliability of the detection result.
[0003] In recent years, object detection using machine learning models trained by deep learning has been performed, and its use in AI image processing in surveillance cameras and edge computing has been considered. Examples of such machine learning models include YOLO (You Only Look Once) and SSD (Single Shot Multibox Detector) (Non-Patent Documents 1 and 2).
[0004] In these deep learning-based object detection models, there are restrictions on the size of the image input to the machine learning model. For example, in the standard model of YOLOv3 (Non-Patent Document 3), the input size is either 320 (width) × 320 (height) pixels, 416 × 416 pixels, or 608 × 608 pixels.
[0005] Non-Patent Document 1 discloses a method for enabling deep learning-based object detection for high-definition images such as full HD and 4K under the constraints of the input size to a machine learning model as described above. Specifically, this method involves performing overall processing in which an input image is reduced to an input size subject to the constraints and object detection is performed on the entire image, and segmentation processing in which the input image is divided and object detection is performed on each divided image, and then combining the results of the overall processing and the segmentation processing to obtain a final detection result.
[0006] Joseph Redmon et.al, "YOLOv3: An Incremental Improvement", arXiv:1804.02767v1 [cs.CV] 8 Apr 2018.Wei Liu et.al, "SSD: Single Shot MultiBox Detector", arXiv:1512.02325v5 [cs.CV] 29 Dec 2016.H.Uzawa et.al, "High-definition object detection technology based on AI inference scheme and its implementation", IEICE Electronics Express, 2021, Volume 18, Issue 22, Pages 20210323.
[0007] According to the method described in Non-Patent Document 1, large objects that straddle divided images are detected by overall processing, so that the entire object can be detected without any interruption. On the other hand, when a small object that cannot be detected by overall processing straddles divided images, the same object divided in each divided image will be detected by each of the division processes, resulting in multiple detections. Therefore, screening of detection results for small objects located on the boundaries between divided images, i.e., removing multiple detection results, becomes an issue.
[0008] A possible screening method for removing multiple detection results is to overlap the edges of the divided images and screen the multiple object groups detected between the division processes in the overlapping regions into a single group. For example, NMS (Non-Maximum-Suppression) is used for this screening. However, NMS assumes a comparison between the entire objects and performs the screening only on object groups where the overlap between objects of the same type (IoU: Intersection over Union) exceeds a predetermined threshold. Therefore, if the IoU between divided objects is low, appropriate screening may not be performed and multiple detections may not be resolved. It may be possible to set the threshold for IoU low in cases where the IoU is low, but if the threshold is low, there is an increased possibility that different objects will be mistakenly considered as multiple detections and screened, making it difficult to set the threshold low. In other words, with conventional techniques, it is difficult to perform screening on object groups divided between divided images.
[0009] The disclosed technology has been made in consideration of the above points, and aims to perform accurate screening of a group of objects separated between divided images.
[0010] A first aspect of the present disclosure is an object detection device including: an overall processing unit that detects an object from a reduced image obtained by reducing an input image; a segmentation processing unit that detects an object from each of a plurality of segmented images obtained by dividing the input image, the segmented images having overlapping areas between each other; a screening processing unit that removes either the detection result of the first segmented image or the detection result of the second segmented image based on the degree of overlap between the detection result of the first segmented image and the detection result of the second segmented image in an overlapping area between a first segmented image and a second segmented image among the plurality of segmented images; and a synthesis processing unit that combines the detection result by the overall processing unit and the detection result after removal by the screening processing unit to obtain a final detection result for the input image.
[0011] A second aspect of the present disclosure is an object detection method performed by an object detection device including an overall processing unit, a segmentation processing unit, a screening processing unit, and a synthesis processing unit, in which the overall processing unit detects an object from a reduced image obtained by reducing an input image, the segmentation processing unit detects an object from each of a plurality of segment images obtained by dividing the input image, the segment images having overlapping areas between each other, the screening processing unit removes either the detection result of the first segment image or the detection result of the second segment image based on the degree of overlap between the detection result of the first segment image and the detection result of the second segment image in the overlapping area between a first segment image and a second segment image among the plurality of segment images, and the synthesis processing unit combines the detection result by the overall processing unit with the detection result after removal by the screening processing unit to obtain a final detection result for the input image.
[0012] A third aspect of the present disclosure is an object detection program that causes a computer to function as an overall processing unit that detects an object from a reduced image obtained by reducing an input image; a segmentation processing unit that detects an object from each of a plurality of segmented images obtained by dividing the input image, the segmented images having overlapping areas between each other; a screening processing unit that removes either the detection result of the first segmented image or the detection result of the second segmented image based on the degree of overlap between the detection result of the first segmented image and the detection result of the second segmented image in an overlapping area between the first segmented image and the second segmented image among the plurality of segmented images; and a synthesis processing unit that combines the detection result by the overall processing unit and the detection result after removal by the screening processing unit to obtain a final detection result for the input image.
[0013] According to the disclosed technology, it is possible to perform screening of a group of objects separated between divided images with high accuracy.
[0014] FIG. 1 is a diagram for explaining an overview of the present disclosure. FIG. 2 is a diagram for explaining a divided image. FIG. 3 is a diagram for explaining a case where appropriate screening cannot be performed. FIG. 4 is a diagram for explaining a case where appropriate screening cannot be performed. A block diagram showing a hardware configuration of an object detection device. A block diagram showing an example of a functional configuration of an object detection device. A diagram for explaining an overlap index. A diagram for explaining screening of attribute erroneous detection. A flowchart showing the flow of object detection processing. A flowchart showing the flow of screening processing in a first embodiment. A flowchart showing the flow of screening processing in a second embodiment.
[0015] An example of an embodiment of the disclosed technology will be described below with reference to the drawings. Note that the same or equivalent components and parts in each drawing are given the same reference numerals. Also, the dimensional proportions in the drawings are exaggerated for the convenience of explanation and may differ from the actual proportions.
[0016] <Outline of the Present Disclosure> Before describing each embodiment in detail, an outline of the present disclosure will be described with reference to Fig. 1. An object detection device according to the present disclosure performs a segmentation process in which an input image is segmented into a plurality of images and object detection is performed for each segmented image, and an overall process in which object detection is performed for reduced images obtained by reducing the entire input image.
[0017] In the segmentation process, object detection is performed on each segmented image using a prepared object detection model, and a detection result is obtained. Furthermore, in the overall process, object detection is performed on the reduced image using a prepared object detection model, and a detection result is obtained. The detection result includes information on an area indicating the detected object, information indicating the object's attributes, and the reliability of the detection result. In the example of FIG. 1 , the information on the area indicating the object is, for example, position information of a circumscribing rectangle of the object (hereinafter referred to as a "detection frame"). The position information may be, for example, a predetermined point (e.g., a center point, a point in the upper left corner, etc.) and a size (width and height) of the detection frame. The information indicating the object's attributes is information indicating the type of object, etc., and in the example of FIG. 1 , is, for example, "dog", "bicycle", etc.
[0018] In the segmentation process, the detection results of each segmented image are subjected to screening to leave only one detection result of the same object that has been detected multiple times and remove the rest.
[0019] Furthermore, the object detection device according to the present disclosure executes a synthesis process that obtains a final detection result by synthesizing the detection result obtained by the division process and the detection result obtained by the overall process.
[0020] In this way, the object detection device of the present disclosure detects objects from a reduced image obtained by reducing the entire input image and each divided image obtained by dividing the input image, and therefore can detect objects of both large and small sizes contained in the input image even when a high-resolution image is used as the input image.
[0021] Here, for the above-mentioned screening of multiple detection, when an input image is divided in the division process, the division is performed so that each divided image overlaps, as shown in Figure 2. Therefore, each divided image has an overlapping area at the edge adjacent to other divided images. Note that the upper diagram in Figure 2 shows each divided image corresponding to the input image, and the lower diagram shows each divided image separately. In the example of Figure 2, an input image is divided into four divided images represented by dotted lines, dashed lines, one-dot chain lines, and two-dot chain lines.
[0022] As a screening method for multiple detections, as described above, it is conceivable to use NMS to screen multiple object groups detected in each divided image in the overlap region into one. However, NMS assumes a comparison between all objects, and only screens object groups whose index of overlap (IoU) between objects of the same type exceeds a predetermined threshold. Specifically, NMS calculates IoU as follows: IoU = O whole / A whole
[0023] As shown in FIG. whole is the area of the union of the detection results in the two divided images (divided images a and b in the example of FIG. 3A) that share an overlapping region. wholeis the area of the common part of the detection results in each of the divided images a and b. As shown in FIG. 3A, when the IoU between divided objects is low, appropriate screening cannot be performed and multiple detections may not be resolved. In addition, if the threshold is set low, there is a high possibility that different objects will be mistakenly considered as multiple detections and screened, making it difficult to set the threshold low.
[0024] Furthermore, as shown in Figure 3B, if an object is divided between the divided images, an erroneous detection of an attribute may occur. In the example of Figure 3B, the attribute of the object detected in divided image b is detected as "Truck" when the correct attribute is "Car." When such an erroneous detection of an attribute occurs, it is not possible to determine that the objects divided between the divided images are the same object, and screening cannot be performed.
[0025] Therefore, in the following embodiments, appropriate screening is performed against multiple detections even when IoU is low. Furthermore, in the following embodiments, appropriate screening is also performed against erroneous detection of attributes. Each embodiment will be described in detail below.
[0026] <First embodiment> Fig. 4 is a block diagram showing the hardware configuration of an object detection device 10 according to the first embodiment. As shown in Fig. 4, the object detection device 10 includes a CPU (Central Processing Unit) 11, a ROM (Read Only Memory) 12, a RAM (Random Access Memory) 13, a storage 14, an input unit 15, a display unit 16, and a communication I / F (Interface) 17. Each component is connected to each other via a bus 19 so as to be able to communicate with each other.
[0027] The CPU 11 is a central processing unit that executes various programs and controls each component. That is, the CPU 11 reads a program from the ROM 12 or the storage 14 and executes the program using the RAM 13 as a work area. The CPU 11 controls the above components and performs various arithmetic processing in accordance with the program stored in the ROM 12 or the storage 14. In this embodiment, the ROM 12 or the storage 14 stores an object detection program for executing the object detection processing described below.
[0028] The ROM 12 stores various programs and various data. The RAM 13 temporarily stores programs or data as a working area. The storage 14 is configured with storage devices such as a hard disk drive (HDD) or a solid state drive (SSD), and stores various programs including an operating system and various data.
[0029] The input unit 15 includes a pointing device such as a mouse and a keyboard, and is used to perform various inputs. The display unit 16 is, for example, a liquid crystal display, and displays various information. The display unit 16 may also function as the input unit 15 by employing a touch panel system. The communication I / F 17 is an interface for communicating with other devices. For example, wired communication standards such as Ethernet (registered trademark) and FDDI, or wireless communication standards such as 4G, 5G, and Wi-Fi (registered trademark) are used for this communication.
[0030] Next, the functional configuration of the object detection device 10 will be described. Fig. 5 is a block diagram showing an example of the functional configuration of the object detection device 10. As shown in Fig. 5, the object detection device 10 includes, as its functional configuration, a segmentation processing unit 20, an overall processing unit 23, an attribute holding unit 26, a screening processing unit 27, and a synthesis processing unit 28. Each functional configuration is realized when the CPU 11 reads out an object detection program stored in the ROM 12 or the storage 14, expands it in the RAM 13, and executes it.
[0031] The segmentation processing unit 20 acquires an input image, which is each of a plurality of frames included in a moving image. The segmentation processing unit 20 detects an object from each of the plurality of segmented images obtained by dividing the input image, each of which has an overlapping region between the other segments. The overlapping region is an example of an "overlapping region" in the present disclosure. Specifically, the segmentation processing unit 20 includes a segmentation unit 21 and a plurality of detection units 22.
[0032] As shown in Fig. 2, the division unit 21 divides the input image into a plurality of divided images, with the number of divisions in the x direction (horizontal direction) of the input image being Nx and the number of divisions in the y direction (height direction) being Ny. In the example of Fig. 2, Nx = 2 and Ny = 2, and the input image is divided into a total of four divided images. Hereinafter, the i-th divided image in the x direction and the j-th divided image in the y direction will be referred to as "divided image [i][j]" (0 ≤ i ≤ Nw-1, 0 ≤ j ≤ Nh-1).
[0033] Furthermore, the division unit 21 scales the size of each divided image so that it corresponds to the input size of an object detection model used by the detection unit 22, which will be described later. Note that the division unit 21 may determine the number of divisions and the width of the overlap region so that the size of each divided image matches the size of the input image for the object detection model.
[0034] The detection unit 22 is provided corresponding to each of the divided images divided by the division unit 21. The detection unit 22 inputs the divided images to an object detection model and obtains a detection result. The object detection model may be, for example, a machine learning model constructed using a neural network or the like. As described above, the detection result includes information on the area indicating the object, information on the attributes of the object, and the reliability of the detection result. Here, the information on the area indicating the object is, for example, position information when a detection frame detected from the divided images is mapped onto the input image.
[0035] The overall processing unit 23 detects an object from a reduced image obtained by reducing the input image. Specifically, the overall processing unit 23 includes a reduction unit 24 and a detection unit 25.
[0036] The reduction unit 24 reduces the entire input image so that it corresponds to the input size of an object detection model used by the detection unit 25 (described later).
[0037] The detection unit 25 inputs the reduced image reduced by the reduction unit 24 to an object detection model and obtains a detection result. The object detection model and the detection result are the same as those in the detection unit 22 of the segmentation processing unit 20 described above.
[0038] The attribute holding unit 26 holds attributes of objects included in the final detection result output from the later-described synthesis processing unit 28 for the past M (M≧1) frames. Specifically, the attribute holding unit 26 stores attribute information for the past M frames in a predetermined storage area, and when it receives attributes notified from the later-described synthesis processing unit 28, it deletes the oldest attribute information it has held and stores the received attribute information in a new storage area.
[0039] The screening processing unit 27 calculates an overlap index between the detection results of the first and second divided images in an overlap region between the first and second divided images among the plurality of divided images, and removes either the detection results of the first and second divided images based on the overlap index.
[0040] Specifically, the screening processing unit 27 calculates the overlap index shown below for detection results with the same attribute between divided images: overlap index=0 whole / A overlap
[0041] A overlap As shown in FIG. 6A, O is the area of the detection frames that are at least partially included in the overlap region. whole The overlap index is the same as the IoU described above. This overlap index is an index that indicates the overlap ratio for the area of the portion of the detection frame included in the overlap region. Therefore, even when the area of the portion is small and the IoU is low, it is possible to determine whether the object separated between the segmented images is the same object.
[0042] When the calculated overlap index exceeds a predetermined threshold, the screening processing unit 27 removes one of the detection results. For example, the screening processing unit 27 may remove the detection result with a lower reliability or the detection result with a smaller area of the detection frame.
[0043] 6B , the screening processing unit 27 removes detection results in which at least a part of the detection frame is included in the overlap region, and in which the attribute of the object included in the detection result does not correspond to any of the attributes stored in the attribute storage unit 26. This is because it is determined that there is a low possibility that an attribute that has not been detected in the entire image over the past M frames will suddenly appear only in the overlap region, and therefore there is a high possibility that the attribute has been erroneously detected, and therefore the detection results are removed.
[0044] The detection results that remain after screening by the screening processing unit 27 until the end are the detection results after screening of the detection results of the segmentation processing unit 20. This removes multiple detected objects and objects with erroneously detected attributes, making it possible to correctly detect small objects at the edges of the segmented images.
[0045] The synthesis processing unit 28 synthesizes the detection result by the overall processing unit 23 and the detection result obtained after the screening processing unit 27 has performed removal on the detection result of the segmentation processing unit 20, to obtain and output a final detection result for the input image. The synthesis processing unit 28 also notifies the attribute holding unit 26 of the attributes included in the detection result.
[0046] Next, a description will be given of the operation of the object detection device 10 according to the first embodiment. Fig. 7 is a flowchart showing the flow of the object detection process performed by the object detection device 10. The object detection process is performed by the CPU 11 reading an object detection program from the ROM 12 or the storage 14, expanding it into the RAM 13, and executing it.
[0047] In step S10, the CPU 11 functions as the reduction unit 24 to acquire an input image input to the object detection device 10, and reduces the entire input image to correspond to the input size of the object detection model used by the detection unit 25. Next, in step S12, the CPU 11 functions as the detection unit 25 to input the reduced image reduced by the reduction unit 24 to the object detection model, and acquires a detection result.
[0048] Next, in step S14, the CPU 11, functioning as the division unit 21, acquires an input image input to the object detection device 10 and divides the input image into a plurality of divided images, with the number of divisions in the x direction set to Nx and the number of divisions in the y direction set to Ny. The CPU 11, functioning as the division unit 21, also scales the size of each divided image so that it corresponds to the input size of the object detection model used by the detection unit 22. Next, in step S16, the CPU 11, functioning as the detection unit 22, inputs the divided images to the object detection model and acquires the detection result.
[0049] Next, in step S20, a screening process is executed, which will now be described with reference to FIG.
[0050] In step S21, the CPU 11, functioning as the screening processing unit 27, sets variables i and j for specifying the divided image [i][j] to be processed to i = 0 and j = 0. Next, in step S22, the CPU 11, functioning as the screening processing unit 27, determines whether i is smaller than the division number Nx. If i < Nx, the process proceeds to step S24, and if i ≥ Nx, the process proceeds to step S23. In step S23, the CPU 11, functioning as the screening processing unit 27, increments j by 1, sets i = 0, and returns to step S22.
[0051] In step S24, the CPU 11, as the screening processing unit 27, determines whether j is smaller than the division number Ny. If j<Ny, the process proceeds to step S25, and if j≧Ny, the screening process ends and the process returns to the object detection process (FIG. 7).
[0052] In step S25, the CPU 11, functioning as the screening processing unit 27, sets a variable k for identifying the detection results detected from the divided image [i][j] to k = 0. k = 0, 1, ..., Nk, where Nk is the number of detection results detected from the divided image [i][j]. Next, in step S26, the CPU 11, functioning as the screening processing unit 27, determines whether k is smaller than the number Nk of detection results. If k < Nk, the process proceeds to step S28, and if k ≥ Nk, the process proceeds to step S27. In step S27, the CPU 11, functioning as the screening processing unit 27, increments i by 1 and returns to step S22.
[0053] In step S28, the CPU 11, functioning as the screening processing unit 27, determines whether the detection frame of the kth detection result of the divided image [i][j] (hereinafter referred to as "detection result [k]") is located in an overlapping region between the divided image [i][j] and an adjacent divided image. The adjacent divided images here are the divided image [i+1][j] to the right of the divided image [i][j] and the divided image [i][j+1] above. If the detection frame of the detection result [k] is located in an overlapping region, the process proceeds to step S29; if not, the process proceeds to step S35.
[0054] In step S29, the CPU 11, functioning as the screening processing unit 27, determines whether (i+1) is smaller than Nx. If (i+1)<Nx, the process proceeds to step S30, and if (i+1)≧Nx, the process proceeds to step S31. In step S30, the CPU 11, functioning as the screening processing unit 27, calculates an overlap index between the detection result [k] and each of the detection results of the divided image [i+1][j] that has the same attribute as the detection result [k]. If the overlap index exceeds a threshold, the CPU 11, functioning as the screening processing unit 27, regards the detection results as the same object and removes one of the detection results, for example, the detection result with the lower reliability.
[0055] In step S31, the CPU 11, functioning as the screening processing unit 27, determines whether (j+1) is smaller than Ny. If (j+1)<Ny, the process proceeds to step S32, and if (j+1)≧Nx, the process proceeds to step S33. In step S32, the CPU 11, functioning as the screening processing unit 27, calculates an overlap index between the detection result [k] and each of the detection results of the divided image [i][j+1] that has the same attribute as the detection result [k]. If the overlap index exceeds a threshold, the CPU 11, functioning as the screening processing unit 27, removes one of the detection results.
[0056] If the detection result [k] of the divided image [i][j] is removed in step S30 or S32, the process proceeds to step S35.
[0057] In step S33, the CPU 11, functioning as the screening processing unit 27, determines whether the attribute of the detection result [k] of the divided image [i] [j] is stored in the attribute storage unit 26, thereby determining whether the attribute of the detection result [k] is undetected in the past M frames. If the attribute of the detection result [k] is undetected in the past M frames, the process proceeds to step S34, and if not undetected, the process proceeds to step S35.
[0058] In step S34, the CPU 11, functioning as the screening processing unit 27, removes the detection result [k] of the divided image [i][j]. In step S35, the CPU 11, functioning as the screening processing unit 27, increments k by 1 and returns to step S26.
[0059] 7 , in step S40, the CPU 11 functions as the synthesis processing unit 28 to synthesize the detection result of step S12 and the detection result of step S16 that remains after the screening process of step S20, thereby obtaining and outputting a final detection result for the input image, and notifying the attribute holding unit 26 of the attributes included in the detection result. Then, the object detection process ends.
[0060] As described above, the object detection device according to the first embodiment detects an object from a reduced image obtained by reducing an input image, and also detects an object from each of a plurality of divided images obtained by dividing the input image, each divided image having an overlapping area between the divided images. The object detection device also removes either the detection result of the first divided image or the detection result of the second divided image based on the degree of overlap between the detection result of the first divided image and the detection result of the second divided image in the overlapping area between the first divided image and the second divided image. The object detection device then combines the detection result of the reduced image with the detection result of the divided images after the overlapping area has been removed to obtain a final detection result for the input image. This allows for accurate screening of objects separated between divided images.
[0061] Second Embodiment Next, a second embodiment will be described.
[0062] The hardware configuration of the object detection device 210 according to the second embodiment is similar to the hardware configuration of the object detection device 10 according to the first embodiment shown in FIG.
[0063] Next, a description will be given of the functional configuration of the object detection device 210. Note that the same functional configuration as that of the object detection device 10 according to the first embodiment will be assigned the same reference numerals and detailed description thereof will be omitted.
[0064] 5, the object detection device 210 includes, as functional components, a segmentation processing unit 20, an overall processing unit 23, an attribute holding unit 226, a screening processing unit 227, and a synthesis processing unit 28. Each functional component is realized by the CPU 11 reading out an object detection program stored in the ROM 12 or the storage 14, expanding it in the RAM 13, and executing it.
[0065] The attribute holding unit 226 holds attribute information of objects for each divided image for the past M (M≧1) frames. That is, the attribute holding unit 226 stores information indicating from which divided image a detection frame was detected in a storage area in association with the attribute information.
[0066] The screening processing unit 227 removes detection results in which at least a part of the detection frame is included in the overlapping region, and in which the attribute of the object included in the detection result does not correspond to any of the attributes associated with the corresponding segmented image stored in the attribute storage unit 226. The corresponding segmented image here refers to the segmented image to be processed and an adjacent segmented image.
[0067] Next, the operation of the object detection device 210 according to the second embodiment will be described. In the second embodiment, as in the first embodiment, the object detection process shown in FIG. 7 is executed. In the second embodiment, the screening process shown in FIG. 9 is executed in step S20. Since the other steps are the same as in the first embodiment, the screening process in the second embodiment will be described with reference to FIG. 9. Note that in the screening process in the second embodiment, processes that are the same as the screening process in the first embodiment (FIG. 8) are assigned the same step numbers and detailed descriptions thereof will be omitted.
[0068] After steps S21 to S30, in the next step S41, the CPU 11, functioning as the screening processing unit 227, determines whether the attribute of the detection result [k] of the divided image [i][j] is stored in association with the divided image [i+1][j] in the attribute storage unit 226, thereby determining whether the attribute of the detection result [k] has not been detected in the past M frames of the divided image [i+1][j]. If the attribute has not been detected, the CPU 11, functioning as the screening processing unit 227, removes the detection result [k] of the divided image [i][j].
[0069] Next, after steps S31 and S32, in the next step S42, the CPU 11, functioning as the screening processing unit 227, determines whether the attribute of the detection result [k] of the divided image [i][j] is stored in association with the divided image [i][j+1] in the attribute storage unit 226, thereby determining whether the attribute of the detection result [k] has not been detected in the past M frames of the divided image [i][j+1]. If the attribute has not been detected, the CPU 11, functioning as the screening processing unit 227, removes the detection result [k] of the divided image [i][j].
[0070] Next, in step S43, the CPU 11, functioning as the screening processing unit 227, determines whether the attribute of the detection result [k] of the divided image [i][j] has not been detected in the past M frames of the divided image [i][j] by determining whether the attribute of the detection result [k] of the divided image [i][j] is stored in association with the divided image [i][j] in the attribute storage unit 226. If the attribute of the detection result [k] has not been detected, the CPU 11, functioning as the screening processing unit 227, removes the detection result [k] of the divided image [i][j].
[0071] As described above, when screening for erroneous attribute detection, the object detection device according to the second embodiment determines that a detection result in which at least a portion of a detection frame is located in an overlap region has not been detected in the past M frames in a segmented image that shares the overlap region as an erroneous attribute detection and removes the detection result. This provides the same effects as the first embodiment, and enables more accurate screening for erroneous attribute detection.
[0072] In addition, the object detection process executed by the CPU by reading the software (program) in each of the above embodiments may be executed by various processors other than the CPU. Examples of processors in this case include PLDs (Programmable Logic Devices) whose circuit configuration can be changed after manufacture, such as FPGAs (Field-Programmable Gate Arrays), and dedicated electrical circuits, which are processors having a circuit configuration designed specifically for executing specific processes, such as ASICs (Application Specific Integrated Circuits). The object detection process may be executed by one of these various processors, or by a combination of two or more processors of the same or different types (for example, multiple FPGAs, a combination of a CPU and an FPGA, etc.). The hardware structure of these various processors is, more specifically, an electrical circuit that combines circuit elements such as semiconductor elements.
[0073] In addition, in each of the above embodiments, the object detection processing program is described as being pre-stored (installed) in the ROM 12 or the storage 14, but this is not limiting. The program may be provided in a form stored in a non-transitory storage medium such as a CD-ROM (Compact Disk Read Only Memory), a DVD-ROM (Digital Versatile Disk Read Only Memory), or a USB (Universal Serial Bus) memory. The program may also be downloaded from an external device via a network.
[0074] The following additional notes are provided regarding the above-described embodiments.
[0075] (Supplementary Item 1) An object detection device including: a memory; and at least one processor connected to the memory, wherein the processor is configured to: detect an object from a reduced image obtained by reducing an input image; detect an object from each of a plurality of divided images obtained by dividing the input image, the divided images having overlapping areas between each other; remove one of the detection results of the first divided image and the second divided image based on the degree of overlap between the detection result of the first divided image and the detection result of the second divided image in an overlapping area between a first divided image and a second divided image among the plurality of divided images; and obtain a final detection result for the input image by combining the detection result by the overall processing unit and the detection result after removal by the screening processing unit.
[0076] (Supplementary Item 2) A non-transitory recording medium storing a program executable by a computer to perform object detection processing, the object detection processing including: detecting an object from a reduced image obtained by reducing an input image; detecting an object from each of a plurality of divided images obtained by dividing the input image, the divided images having overlapping areas between each other; removing one of the detection result of the first divided image and the detection result of the second divided image based on the degree of overlap between the detection result of the first divided image and the detection result of the second divided image in an overlapping area between a first divided image and a second divided image among the plurality of divided images; and combining the detection result by the overall processing unit and the detection result after removal by the screening processing unit to obtain a final detection result for the input image.
[0077] DESCRIPTION OF SYMBOLS 10, 210 Object detection device 11 CPU 12 ROM 13 RAM 14 Storage 15 Input unit 16 Display unit 17 Communication I / F 19 Bus 20 Segmentation processing unit 21 Segmentation unit 22 Detection unit 23 Overall processing unit 24 Reduction unit 25 Detection unit 26, 226 Attribute storage unit 27, 227 Screening processing unit 28 Synthesis processing unit 210 Object detection device 226 Attribute storage unit 227 Screening processing unit
Claims
1. An object detection device comprising: an overall processing unit that detects an object from a reduced image obtained by reducing an input image; a segmentation processing unit that detects an object from each of a plurality of segmented images obtained by dividing the input image, the segmented images having overlapping areas between each other; a screening processing unit that removes one of the detection results of the first segmented image and the detection results of the second segmented image based on the degree of overlap between the detection result of the first segmented image and the detection result of the second segmented image in an overlapping area between a first segmented image and a second segmented image among the plurality of segmented images; and a combination processing unit that combines the detection result by the overall processing unit and the detection result after removal by the screening processing unit to obtain a final detection result for the input image.
2. The object detection device according to claim 1, wherein the detection result includes an area indicating the object, information indicating attributes of the object, and a reliability of the detection result.
3. The object detection device of claim 2, wherein the screening processing unit calculates the degree of overlap by dividing the area of the region indicated by the detection result of the first divided image within the overlapping region by the area of the overlapping portion within the overlapping region between the region indicated by the detection result of the first divided image and the region indicated by the detection result of the second divided image, and removes either the detection result of the first divided image or the detection result of the second divided image when the degree of overlap exceeds a predetermined threshold.
4. The object detection device of claim 3, wherein the screening processing unit removes, from the detection result of the first divided image and the detection result of the second divided image, the detection result with a lower reliability or the detection result with a smaller area of the region showing the object.
5. An object detection device as described in any one of claims 2 to 4, further comprising an attribute storage unit which uses each of a plurality of frames included in a moving image as the input image and stores attributes of the object included in the final detection result in each frame from the current frame to a predetermined number of frames back, and wherein the screening processing unit removes, from the detection results in which the overlapping area includes at least a portion of the area indicated by the detection result, the attribute of the object included in the detection result that does not correspond to any of the attributes stored in the attribute storage unit.
6. The object detection device described in claim 5, wherein the attribute storage unit stores attributes of the object for each of the divided images, and the screening processing unit removes, from the detection results in which the overlapping area between the first divided image and the second divided image includes at least a portion of the area indicated by the detection result, the attribute of the object included in the detection result does not correspond to any of the attributes stored in the attribute storage unit for either the first divided image or the second divided image.
7. An object detection method executed by an object detection device including an overall processing unit, a segmentation processing unit, a screening processing unit, and a synthesis processing unit, wherein the overall processing unit detects an object from a reduced image obtained by reducing an input image; the segmentation processing unit detects an object from each of a plurality of segmented images obtained by dividing the input image, the segmented images having overlapping areas between each of the plurality of segmented images; the screening processing unit removes one of the detection result of the first segmented image and the detection result of the second segmented image based on the degree of overlap between the detection result of the first segmented image and the detection result of the second segmented image in an overlapping area between a first segmented image and a second segmented image among the plurality of segmented images; and the synthesis processing unit combines the detection result by the overall processing unit and the detection result after removal by the screening processing unit to obtain a final detection result for the input image.
8. An object detection program that causes a computer to function as: an overall processing unit that detects an object from a reduced image obtained by reducing an input image; a segmentation processing unit that detects an object from each of a plurality of segmented images obtained by dividing the input image, the segmented images having overlapping areas between each of the plurality of segmented images; a screening processing unit that removes one of the detection results of the first segmented image and the detection result of the second segmented image based on the degree of overlap between the detection result of the first segmented image and the detection result of the second segmented image in an overlapping area between a first segmented image and a second segmented image among the plurality of segmented images; and a synthesis processing unit that combines the detection result by the overall processing unit and the detection result after removal by the screening processing unit to obtain a final detection result for the input image.
Citation Information
Patent Citations
Image processing device, image processing system, image processing method, and image processing program
WO2021161513A1
Object detection device and method
WO2022259299A1
Cited By
Remote sensing image traffic tool statistical method and device and electronic equipment
CN121188234A
Tracking device and tracking method
WO2026062845A1
