Object detection device and object detection method

The object detection device addresses the challenge of calculating pixel contributions by incorporating a box generation, selection, and contribution calculation unit, enabling visualization of pixel contributions and enhancing detection reliability.

WO2024185106A1PCT designated stage expired Publication Date: 2024-09-12MITSUBISHI ELECTRIC CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2023/008943
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-09
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

Existing object detection devices cannot calculate the gradient of bounding boxes generated by Non-Maximum Suppression (NMS), making it difficult to determine the contribution of pixels in object detection, as NMS is not expressed by a partial differential equation.

Method used

An object detection device that includes a box generation unit, a box selection unit, a degree-of-superimposition calculation unit, and a contribution calculation unit, which calculates the degree of overlap between bounding boxes and determines the contribution of pixels to object detection using Grad-CAM, allowing visualization of pixel contributions.

Benefits of technology

Enables the presentation of pixel contribution to object detection, providing users with a clear understanding of the detection process and improving the reliability of object detection by identifying key pixels.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023008943_12092024_PF_FP_ABST
    Figure JP2023008943_12092024_PF_FP_ABST
Patent Text Reader

Abstract

An object detection device (1) is configured to comprise: a box generation unit (11) that detects an object in an input image and generates a bounding box bounding the object; and a box selection unit (12) that, when a plurality of mutually overlapping bounding boxes are generated by the box generation unit (11), selects one bounding box from among the plurality of bounding boxes on the basis of a degree of reliability of each of the bounding boxes. The object detection device (1) also comprises: a degree-of-overlap calculation unit (13) that calculates a degree of overlap between each bounding box generated by the box generation unit (11) and the bounding box selected by the box selection unit (12); and a degree-of-contribution calculation unit (14) that calculates, on the basis of the degrees of overlap calculated by the degree-of-overlap calculation unit (13), a degree of contribution of a pixel contributing to object detection among a plurality of pixels included in the input image.
Need to check novelty before this filing date? Find Prior Art

Description

Object detection device and object detection method

[0001] The present disclosure relates to an object detection device and an object detection method.

[0002] There is an object detection device that detects objects using an object detection model that detects objects in an input image. For example, Patent Document 1 discloses an object detection device including an annotation unit and a deletion unit as such an object detection device. The annotation unit detects objects in the input image and generates a bounding box that surrounds the object. If the annotation unit generates multiple overlapping bounding boxes, the deletion unit performs a filtering process called non-maximum suppression (NMS) to retain the most reliable bounding box among the multiple bounding boxes and delete the remaining bounding boxes.

[0003] Japanese Patent Application Laid-Open No. 2022-118954

[0004] For example, a deep learning-based image recognition model may be used as an object detection model. Deep learning-based image recognition models generally perform deep learning. For this reason, it may be difficult for a user to clearly understand the basis for object detection by an image recognition model. Therefore, if an object detection device can visualize pixels that contribute to object detection among multiple pixels included in an input image, it would be useful for the user to understand the basis for object detection. If it is possible to partially differentiate the NMS, the gradient of the bounding box remaining by the NMS for each of multiple overlapping bounding boxes can be calculated. Once the gradient of the remaining bounding box is calculated, it may be possible to calculate the contribution of each pixel contributing to object detection among multiple pixels included in the input image based on the gradient of the remaining bounding box. However, because the NMS is not expressed as a partial differential equation, it is difficult to partially differentiate the NMS. For this reason, the object detection device disclosed in Patent Document 1 has a problem in that it cannot calculate the gradient of the bounding box remaining by the NMS for each of multiple overlapping bounding boxes.

[0005] The present disclosure has been made to solve the above-mentioned problems, and aims to provide an object detection device that can present the contribution of pixels that contribute to object detection among multiple pixels contained in an input image.

[0006] The object detection device according to the present disclosure includes a box generation unit that detects an object in an input image and generates one or more bounding boxes surrounding the object, and a box selection unit that, if multiple overlapping bounding boxes are generated by the box generation unit, selects one of the multiple bounding boxes based on the reliability of each of the bounding boxes. The object detection device also includes an overlap calculation unit that calculates an overlap between each of the bounding boxes generated by the box generation unit and the bounding box selected by the box selection unit, and a contribution calculation unit that calculates a contribution of pixels that contribute to the detection of the object among multiple pixels included in the input image based on the overlap calculated by the overlap calculation unit.

[0007] According to the present disclosure, it is possible to present the contribution of pixels that contribute to object detection among multiple pixels included in an input image.

[0008] FIG. 1 is a configuration diagram showing an object detection device 1 according to a first embodiment. FIG. 2 is a hardware configuration diagram showing hardware of the object detection device 1 according to the first embodiment. FIG. 3 is a hardware configuration diagram of a computer when the object detection device 1 is realized by software, firmware, or the like. FIG. 4 is a flowchart showing an object detection method, which is a processing procedure of the object detection device 1. FIG. 5 is an explanatory diagram showing an example of an input image. FIG. 6 is an explanatory diagram showing an example of bounding box generation by the box generation unit 11. i,j and bounding box X i ' and overlap DS i,j FIG. 1 is an explanatory diagram showing a calculation process of a Grad-CAM image; FIG. 2 is an explanatory diagram showing an example of an image of Grad-CAM; FIG. 3 is a configuration diagram showing an object detection device 1 according to a second embodiment; FIG. 4 is a hardware configuration diagram showing hardware of the object detection device 1 according to the second embodiment; and FIG. 5 is a configuration diagram showing an object detection device 1 according to a third embodiment.

[0009] In order to explain the present disclosure in more detail, embodiments of the present disclosure will be described below with reference to the accompanying drawings.

[0010] Embodiment 1. Fig. 1 is a configuration diagram showing an object detection device 1 according to embodiment 1. Fig. 2 is a hardware configuration diagram showing the hardware of the object detection device 1 according to embodiment 1. The object detection device 1 shown in Fig. 1 detects an object in an input image and generates one or more bounding boxes surrounding the object. The object detection device 1 also calculates the contribution of pixels that contribute to the detection of the object among multiple pixels included in the input image. The display device 2 displays an image indicating the contribution of the pixels calculated by the object detection device 1 on a display.

[0011] The object detection device 1 shown in FIG. 1 includes a box generation unit 11, a box selection unit 12, an overlap calculation unit 13, a contribution calculation unit 14, and a display processing unit 15.

[0012] The box generation unit 11 is realized by, for example, a box generation circuit 21 shown in FIG. 2. The box generation unit 11 uses, for example, a deep learning-based image recognition model as an object detection model. The object detection model is an object detection algorithm. In the object detection device 1 shown in FIG. 1, the box generation unit 11 uses a convolutional neural network (hereinafter referred to as "OD-CNN (Object Detection-Convolutional Neural Network)") as the image recognition model. The OD-CNN may be stored in an internal memory of the box generation unit 11 or in an external memory of the box generation unit 11. The box generation unit 11 acquires image data of an input image from an external device. The box generation unit 11 detects an object in the input image and generates one or more bounding boxes surrounding the object. Specifically, the box generation unit 11 provides image data of an input image to the OD-CNN and acquires one or more bounding boxes surrounding an object from the OD-CNN. When image data of the input image is provided, the OD-CNN generates one or more bounding boxes surrounding an object in the input image using one or more filters.

[0013] When performing object detection processing, OD-CNN generates feature maps. A feature map is a three-dimensional box having dimensions of the width direction w of the input image, the height direction h of the input image, and the number of object detection filters c. c = 1, ..., C. C is an integer greater than or equal to 1. If the types of objects detected by the box generation unit 11 are, for example, humans, dogs, and cats, OD-CNN performs object detection processing using a human detection filter, a dog detection filter, and a cat detection filter. If the number of these detection filters is assumed to be one each, C = 3. However, the number of these detection filters is not limited to one each, and OD-CNN may use, for example, multiple dog detection filters. If the number of human detection filters is assumed to be one, the number of dog detection filters is assumed to be three, and the OD-CNN may use, for example, multiple dog detection filters. If the number of human detection filters is assumed to be one, the number of dog detection filters is assumed to be three, and the number of cat detection filters is assumed to be one, then C = 1 + 3 + 1 = 5. The OD-CNN generates one or more bounding boxes surrounding objects in an input image based on the feature map. If multiple objects appear in the input image, the OD-CNN generates one or more bounding boxes for each object. The box generation unit 11 outputs one or more bounding boxes for each object to the box selection unit 12 and the overlap calculation unit 13.

[0014] The box selection unit 12 is realized, for example, by the box selection circuit 22 shown in FIG. 2 . If the box generation unit 11 generates multiple overlapping bounding boxes for each object, the box selection unit 12 performs a filtering process called NMS. By performing this filtering process, the box selection unit 12 retains the most reliable bounding box among the multiple bounding boxes and deletes the remaining bounding boxes. Specifically, the box selection unit 12 calculates the reliability of each bounding box and compares the reliability of the multiple bounding boxes with each other. Based on the reliability comparison result, the box selection unit 12 selects the most reliable bounding box from the multiple bounding boxes. The box selection unit 12 outputs the selected bounding box for each object to the overlap calculation unit 13 and the display processing unit 15.

[0015] In the object detection device 1 shown in FIG. 1 , the box selection unit 12 selects the bounding box with the highest reliability from among multiple bounding boxes. However, this is merely an example, and the box selection unit 12 may, for example, select the bounding box with the second highest reliability, provided that this does not pose a practical problem. Also, in the object detection device 1 shown in FIG. 1 , the box selection unit 12 selects the single bounding box with the highest reliability from among multiple bounding boxes. However, this is merely an example, and the box selection unit 12 may also select the top G bounding boxes with the highest reliability from among the multiple bounding boxes, where G is an integer greater than or equal to 2.

[0016] The overlap calculation unit 13 is realized by, for example, the overlap calculation circuit 23 shown in Fig. 2. The overlap calculation unit 13 obtains one or more bounding boxes for each object from the box generation unit 11. The overlap calculation unit 13 obtains a bounding box selected for each object from the box selection unit 12. The overlap calculation unit 13 calculates the overlap between each bounding box and the selected bounding box for each object.

[0017] Specifically, the overlay calculation unit 13 calculates a first overlay, which is the overlay between each of the bounding boxes generated by the OD-CNN, the number of which corresponds to the number of object detection filters, and the bounding box selected by the box selection unit 12. Then, the overlay calculation unit 13 calculates a second overlay, which is the sum of the first overlays for the number of object detection filters. For example, when the type of object is a human and there are three human detection filters, the overlay calculation unit 13 calculates three first overlays and calculates the sum of the three first overlays as the second overlay. For example, when the type of object is a dog and there are five dog detection filters, the overlay calculation unit 13 calculates five first overlays and calculates the sum of the five first overlays as the second overlay. For example, if the type of object is a cat and the number of cat detection filters is four, the overlap calculation unit 13 calculates four first overlap degrees and calculates the sum of the four first overlap degrees as the second overlap degree. The overlap calculation unit 13 outputs the second overlap degree to the contribution calculation unit 14 as the overlap degree calculated for each object.

[0018] The contribution calculation unit 14 is realized by, for example, the contribution calculation circuit 24 shown in FIG. 2 . The contribution calculation unit 14 acquires the second degree of superimposition for each object from the superimposition calculation unit 13. The contribution calculation unit 14 calculates the degree of contribution of pixels that contribute to the detection of each object among the multiple pixels included in the input image, based on the second degree of superimposition for each object. The contribution calculation unit 14 outputs an image indicating the degree of contribution of the pixels that contribute to the detection of each object to the display processing unit 15.

[0019] The display processing unit 15 is realized by, for example, the display processing circuit 25 shown in FIG. 2 . The display processing unit 15 acquires a bounding box selected for each object from the box selection unit 12. The display processing unit 15 also acquires an image indicating the contribution of pixels contributing to the detection of each object from the contribution calculation unit 14. The display processing unit 15 displays the bounding box selected by the box selection unit 12 on the display of the display device 2. The display processing unit 15 also displays an image indicating the contribution of pixels contributing to the detection of each object on the display of the display device 2.

[0020] 1, it is assumed that each of the components of the object detection device 1, namely, the box generation unit 11, the box selection unit 12, the overlap calculation unit 13, the contribution calculation unit 14, and the display processing unit 15, is realized by dedicated hardware such as that shown in FIG. 2. That is, it is assumed that the object detection device 1 is realized by a box generation circuit 21, a box selection circuit 22, an overlap calculation circuit 23, a contribution calculation circuit 24, and a display processing circuit 25. Each of the box generation circuit 21, the box selection circuit 22, the overlap calculation circuit 23, the contribution calculation circuit 24, and the display processing circuit 25 corresponds to, for example, a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or a combination thereof.

[0021] The components of the object detection device 1 are not limited to those realized by dedicated hardware, and the object detection device 1 may be realized by software, firmware, or a combination of software and firmware. Software or firmware is stored as a program in the memory of a computer. The computer refers to hardware that executes a program, and includes, for example, a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), a central processing unit, a processing unit, an arithmetic unit, a microprocessor, a microcomputer, a processor, or a DSP (Digital Signal Processor).

[0022] 3 is a hardware configuration diagram of a computer when object detection device 1 is realized by software, firmware, etc. When object detection device 1 is realized by software, firmware, etc., programs for causing a computer to execute the respective processing procedures of box generation unit 11, box selection unit 12, overlap calculation unit 13, contribution calculation unit 14, and display processing unit 15 are stored in memory 31. Then, a processor 32 of the computer executes the programs stored in memory 31.

[0023] 2 shows an example in which each of the components of the object detection device 1 is realized by dedicated hardware, while Fig. 3 shows an example in which the object detection device 1 is realized by software, firmware, etc. However, this is merely an example, and some of the components in the object detection device 1 may be realized by dedicated hardware, and the remaining components may be realized by software, firmware, etc.

[0024] Next, the operation of the object detection device 1 shown in Fig. 1 will be described. Fig. 4 is a flowchart showing an object detection method, which is a processing procedure of the object detection device 1. The box generation unit 11 acquires image data of an input image, for example, as shown in Fig. 5, from the outside. Fig. 5 is an explanatory diagram showing an example of an input image. In the example of Fig. 5, a human and a dog are shown as objects in the input image.

[0025] The box generation unit 11 provides image data of an input image to the OD-CNN. When the image data of the input image is provided from the box generation unit 11, the OD-CNN uses one or more object detection filters to generate one or more bounding boxes X , which surround the object in the input image. i,j (Step ST1 in FIG. 4). If multiple objects appear in the input image, the box generation unit 11 generates one or more bounding boxes X for each object, as shown in FIG. i,1 , ..., X i,J Generate.

[0026] 6 is an explanatory diagram showing an example of bounding box generation by the box generation unit 11. i=1,...,I, and I is the number of objects in the input image. For example, if the number of objects in the input image is two, I=2, and if the number of objects in the input image is three, I=3. In the example of FIG. 5, the number of objects in the input image is two. One or more bounding boxes X for each object are generated. i,1 , ..., X i,J are overlapping each other. j = 1, ..., J. J is the number of object detection filters for each object, and is the number of bounding boxes generated for each object. For example, when the type of object is a human and the number of human detection filters is three, J = 3. For example, when the type of object is a dog and the number of dog detection filters is five, J = 5. For example, when the type of object is a cat and the number of cat detection filters is four, J = 4. The bounding box generation process itself is a known technique, so a detailed description will be omitted.

[0027] In the example of FIG. 6, the number of filters for human detection and the number of filters for dog detection are each 3, and three bounding boxes X 1,1 , X 1,2 , X 1,3 and the three bounding boxes X that surround the dog. 2,1 , X 2,2 , X 2,3 , and are generated. i,j is a rectangular area. Bounding box X i,j is the attribute value, and the class probability X i,j [cp, 1]...X i,j [cp, M] and the coordinates X of the four vertices of the rectangular region i,j [w 1 , h 1 ], X i,j [w 2 , h 2 ], X i,j [w 3 , h 3 ], X i,j [w 4 , h 4 ] and

[0028] Class Probability X i,j [cp, m] (m = 1, ..., M) is the bounding box X i,j is the probability that the type of object surrounded by is a certain type of object. Specifically, the class probability X i,j [cp,1] is the bounding box X i,j The probability that the object surrounded by is a human, class probability X i,j [cp,2] is the bounding box X i,j The probability that the object surrounded by is a dog, class probability X i,j [cp,3] is the bounding box X i,j The probability that the object surrounded by is a cat is shown. M is an integer equal to or greater than 1. i,j [w 1 , h 1 ] is the coordinate of the top left vertex of the four vertices of the rectangular area. i,j [w 2 , h 2] is the coordinate of the upper right vertex of the four vertices of the rectangular area. i,j [w 3 , h 3 ] is the coordinate of the bottom left vertex of the four vertices of the rectangular area. i,j [w 4 , h 4 ] is the coordinate of the bottom right vertex of the four vertices of the rectangular region. The box generation unit 11 generates one or more bounding boxes X i,j to the box selection unit 12 and the overlap calculation unit 13, respectively.

[0029] The box selector 12 receives one or more bounding boxes X for each object from the box generator 11. i,j The box selection unit 12 obtains the bounding box X i,j If the number is 1, the bounding box X i,j the selected bounding box X i The box selection unit 12 outputs the bounding box X i,j If there are multiple objects, multiple bounding boxes X i,j The box selection unit 12 performs a filtering process called NMS on the bounding boxes X. i,j Among them, the bounding box with the highest confidence is kept and the other bounding boxes are deleted.

[0030] Specifically, the box selection unit 12 selects a bounding box X for each object. i,j Reliability of DR i,j Calculate the reliability DR i,j The calculation process itself is a well-known technique, so a detailed description will be omitted. i,j For example, if the bounding box surrounding a human is X i,jReliability of DR i,j As a bounding box X i,j Class probability X i,j [cp, 1]...X i,j The bounding box X can be used to estimate the class probability that the surrounding object is a human. i,j For example, if the bounding box surrounding the dog is bounding box X i,j Reliability of DR i,j As a bounding box X i,j Class probability X i,j [cp, 1]...X i,j The box selection unit 12 can use the class probability that the surrounding object is a dog among [cp, M]. i,j Reliability of DR i,j Based on the i,1 , ..., X i,J Among them, the most reliable bounding box X i The box selection unit 12 selects the bounding box X' selected for each object (step ST2 in FIG. 4). i ' to the overlap calculation unit 13 and the display processing unit 15, respectively.

[0031] The overlap calculation unit 13 receives one or more bounding boxes X for each object from the box generation unit 11. i,j The overlap calculation unit 13 also obtains the bounding box X selected for each object from the box selection unit 12. i The overlap calculation unit 13 obtains the bounding box X i,j and the selected bounding box X i ' and overlap DS i,j (Step ST3 in FIG. 4). The overlapping degree calculation unit 13 calculates the overlapping degree DS for each object. i,j to the contribution calculation unit 14.

[0032] The overlap calculation process performed by the overlap calculation unit 13 will be described in detail below. i,j and bounding box X i ' and overlap DS i,j The overlap calculation unit 13 calculates the bounding box X i,j The coordinates X of the four vertices are the attribute values ​​of i,j [w 1 , h 1 ], X i,j [w 2 , h 2 ], X i,j [w 3 , h 3 ], X i,j [w 4 , h 4 ], and then calculate the bounding box X i,j Area W i,j The overlap calculation unit 13 calculates the bounding box X i The coordinates X of the four vertices are the attribute values ​​of i ' [w 1 , h 1 ], X i ' [w 2 , h 2 ], X i ' [w 3 , h 3 ], X i ' [w 4 , h 4 ], and then calculate the bounding box X i Area of ​​'W i ' is calculated.

[0033] Next, the overlap calculation unit 13 calculates the bounding box X i,j The coordinates of the four vertices, which are the attribute values ​​of the bounding box X i The bounding box X is calculated from the coordinates of the four vertices, which are the attribute values ​​of i,j and bounding box X i The coordinates of the four vertices of the overlapping area are i,j [w 1 , h 1 ], O.A. i,j [w 2 , h2 ], O.A. i,j [w 3 , h 3 ], O.A. i,j [w 4 , h 4 In the example of FIG. 7, the overlapping areas are shaded areas. The overlapping degree calculation unit 13 calculates the coordinates OA of the four vertices of the overlapping areas. i,j [w 1 , h 1 ], O.A. i,j [w 2 , h 2 ], O.A. i,j [w 3 , h 3 ], O.A. i,j [w 4 , h 4 ], the area of ​​the overlapping regions (X i,j ∩X i ') is calculated.

[0034] Next, the overlap calculation unit 13 calculates the bounding box X i,j Area W i,j and bounding box X i Area of ​​'W i From the sum of ', the area of ​​the overlapping region (X i,j ∩X i By subtracting the bounding box X i,j and bounding box X i The area of ​​the union of ' and (X i,j ∪X i The overlap calculation unit 13 calculates the area (X ′) of the overlapping regions as shown in the following formula (1): i,j ∩X i ') to the area of ​​the union (X i,j ∪X i ') to find the bounding box X i,j and bounding box X i ' and the first overlap degree DS(1) i,j Calculate DS(1) i,j = (X i,j ∩X i ') / (X i,j ∪Xi ') (1)

[0035] The overlap calculation unit 13 calculates J bounding boxes X i,1 , ..., X i,J For each of the first overlapping degrees DS(1) i,1 ,...,DS(1) i,J , the J first overlap degrees DS(1) are calculated as shown in the following equation (2). i,1 ,...,DS(1) i,J The second overlap degree DS(2) is calculated by calculating the sum of i Calculate DS(2) i =DS(1) i,1 + ... +DS(1)i,J (2) The overlap calculation unit 13 calculates the second overlap DS(2) for each object. i is the overlap degree DS for each object. i,j to the contribution calculation unit 14.

[0036] The contribution calculation unit 14 receives the overlapping degree DS for each object from the overlapping degree calculation unit 13. i,j The contribution calculation unit 14 calculates the overlapping degree DS for each object using pixels included in the input image. i,j By calculating the partial derivative of , the contribution degree of each pixel that contributes to the detection of the object is calculated from among the multiple pixels included in the input image (step ST4 in FIG. 4). The contribution degree calculation unit 14 outputs an image indicating the contribution degree of each pixel that contributes to the detection of the object to the display processing unit 15.

[0037] The process of calculating the contribution degree by the contribution degree calculation unit 14 will be specifically described below. The process of calculating the contribution degree can use, for example, a technique called Gradient-weighted Class Activation Mapping (Grad-CAM) shown below. The contribution degree calculation unit 14 uses Grad-CAM in the OD-CNN used by the box generation unit 11 to calculate the bounding box X i Overlap DS for ' i,jBy backpropagating the error, the bounding box X for each of the multiple convolution layers of OD-CNN is obtained. i Calculate the gradient of the bounding box X for the convolution layer. i The process of calculating the gradient of ' itself is a well-known technique, and therefore a detailed description thereof will be omitted. Next, the contribution calculation unit 14 calculates the global average pooling (hereinafter referred to as "GAP") of the gradients of each convolution layer, and performs weighted addition of the multiple convolution layers using each GAP as a weighting coefficient. The contribution calculation unit 14 generates a Grad-CAM image as shown in FIG. 8 by resizing an image showing the weighted addition result of the multiple convolution layers to the image size of the input image.

[0038] FIG. 8 is an explanatory diagram showing an example of a Grad-CAM image. The Grad-CAM image is an image that shows the contribution of pixels that contribute to object detection, and the color of the pixels is changed depending on the contribution. In the example of FIG. 8, the pixel with the highest contribution is displayed in pink, the pixel with the second highest contribution is displayed in yellow, and the pixel with the third highest contribution is displayed in green. However, this is just an example, and the contribution may be displayed in a color different from the above colors.

[0039] The display processing unit 15 acquires the bounding box selected for each object from the box selection unit 12. The display processing unit 15 displays the bounding box selected by the box selection unit 12 on the display of the display device 2 (see FIG. 6). The display processing unit 15 also acquires a Grad-CAM image indicating the contribution of pixels for each object from the contribution calculation unit 14. The display processing unit 15 acquires, for example, a Grad-CAM image as shown in FIG. 8. The display processing unit 15 displays the Grad-CAM image on the display of the display device 2 (step ST5 in FIG. 4).

[0040] In the first embodiment described above, the object detection device 1 is configured to include a box generation unit 11 that detects an object in an input image and generates a bounding box surrounding the object, and a box selection unit 12 that, if multiple overlapping bounding boxes are generated by the box generation unit 11, selects one of the multiple bounding boxes based on the reliability of each of the bounding boxes. The object detection device 1 also includes an overlap calculation unit 13 that calculates the overlap between each of the bounding boxes generated by the box generation unit 11 and the bounding box selected by the box selection unit 12, and a contribution calculation unit 14 that calculates the contribution of pixels that contribute to the detection of the object, among the multiple pixels included in the input image, based on the overlap calculated by the overlap calculation unit 13. Thus, the object detection device 1 can present the contribution of pixels that contribute to the detection of the object, among the multiple pixels included in the input image.

[0041] In the second embodiment, the overlap calculation unit 17 calculates J bounding boxes X i,1 , ..., X i,J The first overlap degree DS(1) for each of i,1 ,...,DS(1) i,J The object detection device 1 that performs weighted addition will be described.

[0042] FIG. 9 is a configuration diagram showing an object detection device 1 according to embodiment 2. In FIG. 9, the same reference numerals as those in FIG. 1 indicate the same or corresponding parts, and therefore detailed description thereof will be omitted. FIG. 10 is a hardware configuration diagram showing the hardware of the object detection device 1 according to embodiment 2. In FIG. 10, the same reference numerals as those in FIG. 2 indicate the same or corresponding parts, and therefore detailed description thereof will be omitted. The object detection device 1 shown in FIG. 9 includes a box generation unit 11, a box selection unit 12, a weighting reception unit 16, an overlap calculation unit 17, a contribution calculation unit 14, and a display processing unit 15.

[0043] The weighting reception unit 16 is realized by, for example, a weighting reception circuit 26 shown in FIG. 10. The weighting reception unit 16 receives the first superposition degree DS(1) i,1 ,...,DS(1) i,J Weighting coefficient wf i,1 , ..., wf i,J The weighting receiving unit 16 obtains the weighting coefficient wf i,1 , ..., wf i,J to the overlap calculation unit 17.

[0044] The overlap calculation unit 17 is realized by, for example, an overlap calculation circuit 27 shown in Fig. 10. The overlap calculation unit 17 receives one or more bounding boxes X i,j The overlap calculation unit 17 obtains the bounding box X selected for each object from the box selection unit 12. i The overlap calculation unit 17 receives the weighting coefficient wf i,j The overlap calculation unit 17 obtains the bounding box X i,j and bounding box X i The first overlap degree DS(1) i,j The overlapping degree calculation unit 17 calculates the first overlapping degree DS(1) i,j For the weighting factor wf i,j and multiplying the weight coefficients by J to obtain the first overlapping degree DS(1) i,j ×wf i,j By adding i The overlap calculation unit 17 calculates the second overlap degree DS(2) for each object. i is the overlap degree DS for each object. i and outputs it to the contribution calculation unit 14.

[0045] 9 assumes that each of the components of the object detection device 1, namely, the box generation unit 11, the box selection unit 12, the weighting reception unit 16, the superposition calculation unit 17, the contribution calculation unit 14, and the display processing unit 15, is realized by dedicated hardware such as that shown in Fig. 10. That is, it assumes that the object detection device 1 is realized by a box generation circuit 21, a box selection circuit 22, a weighting reception circuit 26, a superposition calculation circuit 27, a contribution calculation circuit 24, and a display processing circuit 25. Each of the box generation circuit 21, the box selection circuit 22, the weighting reception circuit 26, the superposition calculation circuit 27, the contribution calculation circuit 24, and the display processing circuit 25 corresponds to, for example, a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, an ASIC, an FPGA, or a combination thereof.

[0046] The components of the object detection device 1 are not limited to those realized by dedicated hardware, and the object detection device 1 may be realized by software, firmware, or a combination of software and firmware. When the object detection device 1 is realized by software, firmware, or the like, a program for causing a computer to execute the respective processing procedures of the box generation unit 11, the box selection unit 12, the weighting reception unit 16, the superposition calculation unit 17, the contribution calculation unit 14, and the display processing unit 15 is stored in a memory 31 shown in Fig. 3. Then, a processor 32 shown in Fig. 3 executes the program stored in the memory 31.

[0047] 10 shows an example in which each of the components of the object detection device 1 is realized by dedicated hardware, while Fig. 3 shows an example in which the object detection device 1 is realized by software, firmware, etc. However, this is merely an example, and some of the components in the object detection device 1 may be realized by dedicated hardware, and the remaining components may be realized by software, firmware, etc.

[0048] Next, the operation of the object detection device 1 shown in Fig. 9 will be described. Except for the weighting reception unit 16 and the overlapping degree calculation unit 17, the object detection device 1 is the same as the object detection device 1 shown in Fig. 1. Therefore, the operation of the weighting reception unit 16 and the overlapping degree calculation unit 17 will mainly be described here.

[0049] The user operates a man-machine interface (not shown), for example, to set the first overlap degree DS(1) i,1 ,...,DS(1) i,J Weighting coefficient wf i,1 , ..., wf i,J The man-machine interface (not shown) sets the weighting coefficient wf i,1 , ..., wf i,J 9, the object detection device 1 outputs the weighting coefficient wf i,1 , ..., wf i,J to the weighting receiving unit 16. However, this is merely an example, and an external device of the object detection device 1 may output the weighting coefficient wf i,1 , ..., wf i,J may be transmitted to the weighting receiving unit 16.

[0050] The weighting reception unit 16 receives the first overlapping degree DS(1) from a man-machine interface (not shown). i,1 ,...,DS(1) i,J Weighting coefficient wf i,1 , ..., wf i,J The weighting receiving unit 16 obtains the weighting coefficient wf i,1 , ..., wf i,J to the overlap calculation unit 17.

[0051] The overlap calculation unit 17 receives one or more bounding boxes X for each object from the box generation unit 11. i,j The overlap calculation unit 17 obtains the bounding box X selected for each object from the box selection unit 12. i The overlap calculation unit 17 receives the weighting coefficient wf i,jThe overlap calculation unit 17, like the overlap calculation unit 13 shown in FIG. 1, obtains the bounding boxes X i,j and bounding box X i The first overlap degree DS(1) i,j The overlapping degree calculation unit 17 calculates the first overlapping degree DS(1) as shown in the following equation (3). i,j For the weighting factor wf i,j and multiplying the weight coefficients by J to obtain the first overlapping degree DS(1) i,j ×wf i,j By adding i Calculate DS(2) i =DS(1) i,1 ×wf i,1 +...+DS(1) i,J ×wf i,J (3) The overlap calculation unit 17 calculates the second overlap degree DS(2) for each object. i is the overlap degree DS for each object. i and outputs it to the contribution calculation unit 14.

[0052] In the second embodiment described above, the object detection device 1 is configured so that the superposition degree calculation unit 17 calculates the second superposition degree by weighting and adding the first superposition degrees for the number of filters. Therefore, the object detection device 1 can present the contribution degree of pixels that contribute to object detection among multiple pixels included in the input image, and can also present the contribution degree of pixels by weighting a specific filter among one or more filters used by the OD-CNN.

[0053] Embodiment 3 In embodiment 3, an object detection device 1 in which a plurality of pairs of a box generation unit 11 and a box selection unit 12 are cascade-connected will be described. That is, in embodiment 3, an object detection device 1 in which a plurality of pairs of an OD-CNN and an NMS are cascade-connected will be described.

[0054] FIG. 11 is a configuration diagram showing an object detection device 1 according to embodiment 3. In FIG. 11, the same reference numerals as those in FIGS. 1 and 9 indicate the same or corresponding parts, and detailed description thereof will be omitted. The object detection device 1 shown in FIG. 11 has N pairs of box generation units 11 and box selection units 12 connected in cascade. N is an integer equal to or greater than 2. Each pair 41-n (n=1, . . . , N) includes a box generation unit 11 and a box selection unit 12, as well as an overlap calculation unit 13 and a contribution calculation unit 14. The pair 41-1 is the first-stage pair, and the box generation unit 11 of the pair 41-1 receives an input image. The box selection unit 12 of the pair 41-1 outputs the selected bounding box to each of the box generation units 11 and the display processing unit 15 of the second-stage pair. The contribution calculation unit 14 of the pair 41-1 outputs the calculated contribution of the pixel to the display processing unit 15.

[0055] The box generation unit 11 of the set 41-n (n = 2, ..., N) obtains the bounding box selected by the box selection unit 12 of the set 41-(n-1) and outputs the bounding box to the box selection unit 12 of the same set. The box selection unit 12 of the set 41-n (n = 2, ..., N) outputs the selected bounding box to the overlap calculation unit 13 of the same set, and to the box generation unit 11 and display processing unit 15 of the set 41-(n+1). If the set 41-n is the final-stage set 41-N, the box selection unit 12 outputs the selected bounding box to the overlap calculation unit 13 and display processing unit 15 of the same set. The contribution calculation unit 14 of the set 41-n (n = 2, ..., N) outputs the calculated contribution of the pixel to the display processing unit 15.

[0056] In the object detection device 1 shown in Fig. 11, a set 41-n (n = 1, ..., N) includes the box generation unit 11, the box selection unit 12, the overlap calculation unit 13, and the contribution calculation unit 14, which are included in the object detection device 1 shown in Fig. 1. However, this is merely an example, and the set 41-n (n = 1, ..., N) may also include the box generation unit 11, the box selection unit 12, the weighting reception unit 16, the overlap calculation unit 17, and the contribution calculation unit 14, which are included in the object detection device 1 shown in Fig. 9.

[0057] Next, the operation of the object detection device 1 shown in Fig. 11 will be described. The operations of the box generation unit 11, box selection unit 12, overlap calculation unit 13, and contribution calculation unit 14 are the same as those of the object detection device 1 shown in Fig. 1. The overlap calculation unit 13 of the set 41-n (n = 1,...,N) calculates the overlap between each bounding box generated by the box generation unit 11 of the set 41-n and the bounding box selected by the box selection unit 12 of the set 41-n.

[0058] The contribution calculation unit 14 of the set 41-1 calculates the contribution of pixels that contribute to object detection among the multiple pixels included in the input image based on the overlap calculated by the overlap calculation unit 13 of the set 41-1. The contribution calculation unit 14 of the set 41-1 outputs a Grad-CAM image indicating the contribution of the pixels to the display processing unit 15. The contribution calculation unit 14 of the set 41-n (n = 2, . . . , N) calculates the contribution of pixels that contribute to object detection among the multiple pixels included in the bounding box selected by the box selection unit 12 of the set 41-(n-1) based on the overlap calculated by the overlap calculation unit 13 of the set 41-n. The contribution calculation unit 14 of the set 41-n outputs a Grad-CAM image indicating the contribution of the pixels to the display processing unit 15.

[0059] The display processing unit 15 acquires the Grad-CAM image from the contribution calculation unit 14 of the set 41-n (n=1, . . . , N), and displays the Grad-CAM image on the display of the display device 2.

[0060] In the above-described third embodiment, a plurality of pairs 41-n (n=1, . . . , N) of a box generation unit 11 and a box selection unit 12 are connected in cascade. The object detection device 1 is configured so that each of the cascade-connected pairs 41-n includes an overlap calculation unit 13 and a contribution calculation unit 14. Therefore, even when a plurality of pairs of an OD-CNN and an NMS are connected in cascade, the object detection device 1 can present the contribution of a pixel in each pair.

[0061] In addition, the present disclosure allows for free combination of the respective embodiments, modification of any of the components of the respective embodiments, or omission of any of the components of the respective embodiments.

[0062] The present disclosure is suitable for an object detection device and an object detection method.

[0063] 1 object detection device, 2 display device, 11 box generation unit, 12 box selection unit, 13 overlap calculation unit, 14 contribution calculation unit, 15 display processing unit, 16 weighting reception unit, 17 overlap calculation unit, 21 box generation circuit, 22 box selection circuit, 23 overlap calculation circuit, 24 contribution calculation circuit, 25 display processing circuit, 26 weighting reception circuit, 27 overlap calculation circuit, 31 memory, 32 processor, 41-1 to 41-N sets.

Claims

1. An object detection device comprising: a box generation unit that detects an object in an input image and generates one or more bounding boxes surrounding the object; a box selection unit that, if multiple overlapping bounding boxes have been generated by the box generation unit, selects one of the multiple bounding boxes based on the reliability of each of the bounding boxes; an overlap calculation unit that calculates an overlap between each of the bounding boxes generated by the box generation unit and the bounding box selected by the box selection unit; and a contribution calculation unit that calculates a contribution of pixels contributing to the detection of the object among multiple pixels included in the input image based on the overlap calculated by the overlap calculation unit.

2. The object detection device described in claim 1, characterized in that the box generation unit detects objects in the input image using a convolutional neural network, which is an object detection algorithm, and the convolutional neural network, when given the input image, uses one or more filters to generate a bounding box surrounding the object in the input image.

3. The object detection device described in claim 2, characterized in that the overlap calculation unit calculates a first overlap which is the overlap between each of the bounding boxes generated by the convolutional neural network, the number of which corresponds to the number of filters, and the bounding box selected by the box selection unit, and calculates a second overlap which is the sum of the first overlaps for the number of filters, and the contribution calculation unit calculates the contribution of pixels contributing to the detection of the object, among the multiple pixels included in the input image, based on the second overlap calculated by the overlap calculation unit.

4. The object detection device according to claim 3, characterized in that the overlap calculation unit calculates the second overlap by weighting and adding the first overlaps for the number of filters.

5. The object detection device according to claim 1, further comprising a display processing section for displaying an image showing the contribution degree calculated by said contribution degree calculation section.

6. The object detection device according to claim 1, characterized in that a plurality of pairs of the box generation unit and the box selection unit are connected in cascade, and each pair connected in cascade is equipped with the overlap calculation unit and the contribution calculation unit.

7. An object detection method, in which a box generation unit detects an object in an input image and generates one or more bounding boxes surrounding the object; a box selection unit, if multiple overlapping bounding boxes have been generated by the box generation unit, selects one of the multiple bounding boxes based on the reliability of each of the bounding boxes; an overlap calculation unit calculates the overlap between each of the bounding boxes generated by the box generation unit and the bounding box selected by the box selection unit; and a contribution calculation unit calculates the contribution of pixels contributing to the detection of the object, among multiple pixels included in the input image, based on the overlap calculated by the overlap calculation unit.

Citation Information

Patent Citations

  • Target detection model training method and device, target detection model detection method and device, equipment and storage medium

    CN111738262A

  • CAM-based weakly supervised object detection device and method

    JP7214822B1

  • Method for detecting pedestrians in image by using Gaussian penalty

    US20200160048A1