OBJECT DETECTION DEVICE, OBJECT DETECTION METHOD, AND PROGRAM

JP7548231B2Active Publication Date: 2024-09-10KONICA MINOLTA INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2021530515
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-07-11
Filing Date
2020-05-22
Publication Date
2024-09-10
Estimated Expiration
2040-05-22

AI Technical Summary

Benefits of technology

【0014】 物体のカテゴリが同一である複数の物体矩形は、物体タグに応じて複数の群に分離される。例えば、物体タグが同じである物体矩形は同じ群に属し、物体タグが互いに異なる物体矩形同士は異なる群に属するように、複数の物体矩形が各群に分離される。そして、各群において、余分な物体矩形を削除する処理(NMS処理)が行われる。各群に属する物体矩形は、物体タグによって同一の物体と紐づけられているため、たとえ画像中で検出したい物体同士が近接する場合でも、各群ごとにNMS処理を行うことによって、近接する物体ごとに物体矩形を1つのみ残し、残った物体矩形に対応する物体のカテゴリの情報および確信度を残すことができる。つまり、検出したい物体の物体矩形を、確信度を低下させることなくそのまま残すことができる。これにより、近接する物体のそれぞれを精度よく検出することができる。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007548231000017
    Figure 0007548231000017
  • Figure 0007548231000004
    Figure 0007548231000004
  • Figure 0007548231000010
    Figure 0007548231000010
Patent Text Reader

Abstract

An object detection device (1) is equipped with an object detection unit (2) for detecting an object from an image containing the object by means of a neuro calculation by a CNN. The object detection unit (2) includes: a feature amount extraction unit (2a) for extracting a feature amount of an object from the image; an information acquisition unit (2b) for determining a plurality of object rectangles indicating candidates for the position of the object on the basis of the feature amount and determining, for each object rectangle, information about a category of the object and a degree of certainty; and an object tag calculation unit (2c) for calculating, for each object rectangle, an object tag indicating which object in the image to which the object rectangle is linked on the basis of the feature amount. The object detection unit (2) is further provided with an excess rectangle suppression unit (4) which separates a plurality of object rectangles for which the object category is the same into a plurality of groups in accordance with the object tags and deletes excess object rectangles in each separated group on the basis of the degree of certainty.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an object detection device, an object detection method, and a program for detecting an object from a captured image of the object. [Background technology]

[0002] In recent years, there has been a demand for technology to identify the category (class) and location of objects (e.g. people) captured in images captured by a camera for security or marketing research. Machine learning is widely used to robustly detect objects, and many techniques using convolutional neural networks called CNNs (Convolutional Neural Networks) have been proposed in recent years.

[0003] In the meantime, NMS (Non Maximum Suppression) processing is generally used in object detection using CNN. In this NMS processing, when there are multiple rectangles (hereinafter also referred to as "object rectangles") indicating candidates for object positions in an image, the multiple object rectangles are sorted (rearranged) in descending order of the certainty (hereinafter also simply referred to as "object certainty") of the object category surrounded by each object rectangle, and the certainty of the object surrounded by object rectangles that are in the same category as the object rectangle with the highest certainty and have an overlap degree (IoU; Intersection over Union) equal to or greater than a threshold is set to zero, and the object rectangle with the highest certainty is deleted, and the object rectangle with the highest certainty is left.

[0004] However, in the conventional NMS process, when objects to be detected in an image are close to each other, the confidence level of the object that should be left may become zero, and the rectangle of the object may be deleted. For example, as shown in FIG. 15, it is assumed that the objects 1001 and 1002 surrounded by object rectangles 1001a and 1002a in the image are the same category (e.g., person), and the confidence levels are 0.8 and 0.9, respectively, detected by CNN. When the conventional NMS process is performed on such object rectangles 1001a and 1002a, the object rectangle 1001a and the object rectangle 1002a overlap to a large extent (because the IoU is equal to or greater than a threshold), so that the confidence level of the object 1001, which has a relatively low confidence level of 0.8, becomes zero compared to the object rectangle 1002a of the object 1002, which has a relatively high confidence level of 0.9, and the object rectangle 1001a of the object 1001, which should be left, is deleted. In other words, in this case, even though the object 1001 can be detected by the CNN, the object 1001 cannot be detected by performing the NMS processing.

[0005] Therefore, for example, in the technology (Soft-NMS processing) disclosed in Non-Patent Document 1, when objects 1001 and 1002 of the same category are close to each other in an image, the certainty factor of the category of object 1001 is reduced (for example, from 0.8 to 0.4 in the figure) according to the magnitude of IoU between object rectangle 1001a and object rectangle 1002a, as shown in Fig. 16. In this processing, the certainty factor is not zero, and object rectangle 1001a remains, making it possible to detect object 1001.

[0006] Furthermore, for example, in the technology disclosed in Non-Patent Document 2, when narrowing down object rectangles, the confidence level itself is updated by a DNN (Deep Neural Network) without performing NMS processing. [Prior art documents] [Non-patent literature]

[0007] [Non-Patent Document 1] Navaneeth Bodla, et al., “Soft-NMS-Improving Object Detection With One Line of Code”, 2017 IEEE International Conference on Computer Vision (ICCV), 8 Aug 2017 [Non-Patent Document 2] Jan Hosang, et al., “Learning non-maximum suppression”, IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 9 May 2017 Summary of the Invention [Problem to be solved by the invention]

[0008] However, in the technology of Non-Patent Document 1, when objects to be detected are close to each other and the certainty of the object rectangle is relatively low, the certainty of the object rectangle becomes extremely low by the Soft-NMS processing. For example, as shown in Fig. 17, when the certainty of objects 1001 and 1002 is 0.3 and 0.9, respectively, the certainty of object 1001 may be reduced to 0.05 by the Soft-NMS processing. This is almost equivalent to a state in which the certainty of object 1001 is zero, and it becomes impossible to detect object 1001 with high accuracy.

[0009] In addition, in the process of updating the certainty factor itself by DNN as in Non-Patent Document 2, the certainty factor of all objects to be detected is not necessarily increased, and it is naturally conceivable that the certainty factor may decrease. If the certainty factor decreases, as in Non-Patent Document 1, it becomes impossible to detect the object with high accuracy.

[0010] The present invention has been made to solve the above-mentioned problems, and its purpose is to provide an object detection device, an object detection method, and a program that can retain the object rectangles of objects to be detected without reducing the confidence level even when objects to be detected are close to each other in an image, thereby enabling each of the close objects to be detected with high accuracy. [Means for solving the problem]

[0011] An object detection device according to one aspect of the present invention is an object detection device equipped with an object detection unit that detects an object from an image including the object by neuro-operation using a convolutional neural network, the object detection unit including a feature extraction unit that extracts features of the object from the image, an information acquisition unit that obtains a plurality of object rectangles indicating candidates for the position of the object based on the features, and obtains object category information and a certainty factor for each of the object rectangles, and an object tag calculation unit that calculates, for each object rectangle, an object tag indicating which object in the image the object rectangle is linked to based on the features, and the object detection device further includes an excess rectangle suppression unit that separates the plurality of object rectangles having the same object category into a plurality of groups according to the object tags, and deletes excess object rectangles in each separated group based on the certainty factor.

[0012] An object detection method according to another aspect of the present invention is an object detection method including an object detection step of detecting an object from an image including the object by neuro-operation using a convolutional neural network, the object detection step including a feature extraction step of extracting features of the object from the image, an information acquisition step of obtaining a plurality of object rectangles indicating candidates for the position of the object based on the features, and obtaining object category information and a certainty factor for each of the object rectangles, and an object tag calculation step of calculating, for each object rectangle, an object tag indicating which object in the image the object rectangle is linked to, based on the features, and the object detection method further includes an excess rectangle suppression step of separating the plurality of object rectangles having the same object category into a plurality of groups according to the object tags, and deleting excess object rectangles in each separated group based on the certainty factor.

[0013] A program according to yet another aspect of the present invention is a program for causing a computer to execute the object detection method. Effect of the Invention

[0014] A plurality of object rectangles having the same object category are separated into a plurality of groups according to the object tag. For example, a plurality of object rectangles are separated into groups so that object rectangles having the same object tag belong to the same group, and object rectangles having different object tags belong to different groups. Then, in each group, a process of deleting unnecessary object rectangles (NMS process) is performed. Since the object rectangles belonging to each group are linked to the same object by the object tag, even if objects to be detected in an image are close to each other, by performing the NMS process for each group, only one object rectangle is left for each close object, and information on the object category and the certainty factor corresponding to the remaining object rectangle can be left. In other words, the object rectangle of the object to be detected can be left as it is without reducing the certainty factor. This allows each of the close objects to be detected with high accuracy. [Brief description of the drawings]

[0015] [Figure 1]1 is a block diagram showing a schematic configuration of an object detection device according to an embodiment of the present invention. [Diagram 2] FIG. 2 is an explanatory diagram illustrating a schematic diagram of a CNN constituting an object detection unit included in the object detection unit. [Diagram 3] FIG. 2 is an explanatory diagram illustrating a schematic relationship between input and output for one node in the above CNN. [Figure 4] 5 is a flowchart showing a process flow of an object detection method implemented by the object detection device. [Diagram 5] 1 is an explanatory diagram showing examples of object rectangles for a plurality of objects included in an input image; [Figure 6] FIG. 11 is an explanatory diagram showing an example of a tag value grouping and update technique. [Figure 7] FIG. 11 is an explanatory diagram showing another example of a tag value grouping and update technique. [Figure 8] FIG. 11 is an explanatory diagram showing an object rectangle after NMS processing. [Figure 9] FIG. 11 is an explanatory diagram showing an example of a display screen of an object detection result; [Figure 10] FIG. 13 is an explanatory diagram showing an example of tag values ​​of arbitrary object rectangles for multiple objects. [Figure 11] FIG. 11 is an explanatory diagram showing an example of a method for calculating distances between a plurality of object rectangles for different objects; [Figure 12] FIG. 11 is an explanatory diagram showing another example of the method for calculating the distance. [Figure 13] FIG. 11 is an explanatory diagram showing still another example of the method for calculating the distance. [Figure 14] FIG. 13 is an explanatory diagram showing another example of tag values ​​of arbitrary object rectangles for a plurality of objects. [Figure 15] FIG. 1 is an explanatory diagram illustrating a conventional NMS process. [Figure 16] FIG. 11 is an explanatory diagram illustrating another conventional NMS process. [Figure 17] FIG. 11 is an explanatory diagram showing inconveniences caused by the above-mentioned other NMS processing. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] Each embodiment of the present invention will be described below with reference to the drawings.

[0017] 1. Configuration of the object detection device FIG. 1 is a block diagram showing a schematic configuration of an object detection device 1 of this embodiment. The object detection device 1 of this embodiment is configured, for example, by a personal computer, and is connected to a camera CA via a communication line. The camera CA photographs an object to obtain an image. The image is assumed to be a color image here, and the image data of red (R), green (G), and blue (B) is assumed to be, for example, 8-bit (0 to 255) data. The communication line is configured, for example, by a wireless LAN (Local Area Network), but may also be configured by a wired LAN or an Internet line.

[0018] The object detection device 1 includes an object detection unit 2, a tag update unit 3, an excess rectangle suppression unit 4, a memory unit 5, an input unit 6, a display unit 7, a communication unit 8, a reading unit 9, and a control unit 10.

[0019] The object detection unit 2 is configured with, for example, a GPU (Graphics Processing Unit). The GPU is a computing device (processor) specialized for real-time image processing. In the GPU, a convolutional neural network (CNN) is built that detects an object from an image including the object by neuro-operation.

[0020] The object detection unit 2 includes a feature extraction unit 2a, an information acquisition unit 2b, and an object tag calculation unit 2c. The feature extraction unit 2a extracts feature amounts (joint points, shape, color, etc.) of an object from an input image. The information acquisition unit 2b obtains a plurality of object rectangles indicating candidates for the object's position based on the feature amounts extracted by the feature extraction unit 2a, and obtains object category information (person, cat, dog, car, etc.) and confidence (likelihood, score) for each object rectangle. The confidence includes the confidence of the category, the confidence indicating the object-likeliness of the object surrounded by the object rectangle, and the confidence of whether the object exists there or not.

[0021] The object tag calculation unit 2c calculates an object tag for each object rectangle, indicating which object in the image the object rectangle is associated with, based on the feature extracted by the feature extraction unit 2a. The object tag is represented by a tag value such as "1", "2", "3", etc., and a different tag value is assigned to each object rectangle. Depending on the level of learning of the CNN, different tag values ​​(e.g., "1.2" and "1.5") may be assigned to each object rectangle even for the same object.

[0022] The accuracy of feature extraction by the feature extraction unit 2a, the accuracy of detection of category information and confidence by the information acquisition unit 2b, and the accuracy of object tag calculation by the object tag calculation unit 2c can be improved by having the object detection unit 2 undergo machine learning in advance and updating the weights described later.

[0023] The tag update unit 3 updates the tag value of the object tag calculated by the object tag information calculation unit 2c. For example, the tag update unit 3 updates the tag value of the object tag so that the same value is set for the same object and different values ​​are set for different objects. The tag value can be updated by using grouping using a threshold or a clustering method, for example, the details of which will be described later.

[0024] The redundant rectangle suppression unit 4 separates multiple object rectangles that belong to the same object category into multiple groups according to the object tags, and performs NMS processing to delete redundant object rectangles in each separated group based on the above-mentioned confidence factor. Details of the NMS processing of this embodiment will be described in conjunction with the object detection method described later.

[0025] The tag update unit 3 and the redundant rectangle suppression unit 4 are configured, for example, by a CPU (Central Processing Unit).

[0026] The storage unit 5 is a memory that stores various information and the operation program of the control unit 10, and is configured to include, for example, a hard disk, a RAM (Random Access Memory), and a ROM (Read Only Memory). The input unit 6 is configured, for example, with a keyboard, a mouse, a touch pad, a touch panel, etc., and accepts various instruction inputs by a user. The display unit 7 is configured, for example, with a liquid crystal display device, and displays various information. For example, the display unit 7 displays the object rectangle after NMS processing for each object, as well as object category information and confidence level (see FIG. 9).

[0027] The communication unit 8 is a communication interface for transmitting and receiving information to and from the outside, and includes an input / output port, a transmission circuit, a reception circuit, an antenna, a modulation circuit, a demodulation circuit, etc. For example, image data captured by the camera CA is input to the object detection device 1 via the communication unit 8. The image data is temporarily stored in the storage unit 5 and transferred to the object detection unit 2.

[0028] The reading unit 9 is a device that reads information recorded on the recording medium R, and is configured, for example, with a disk drive. If the recording medium R is a portable non-volatile memory, the reading unit 9 also includes a connection port into which a connection part of the non-volatile memory is inserted. For example, an operation program of the object detection device 1 is recorded on the recording medium R, and is read by the reading unit 9. The read operation program is stored in the memory unit 5. The recording medium R may also have image data acquired by the camera CA recorded thereon.

[0029] The control unit 10 is configured with, for example, a CPU, and includes a main control unit 10a and a learning control unit 10b. The main control unit 10a controls the operation of each unit of the object detection device 1 according to an operation program stored in the storage unit 5. The main control unit 10a may also function as the tag update unit 3 and the redundant rectangle suppression unit 4 described above. The learning control unit 10b trains the object detection unit 2 by machine learning in advance.

[0030] 2. About the CNN that makes up the object detection unit 2 is an explanatory diagram showing a schematic diagram of the CNN constituting the object detection unit 2. The following provides a supplementary explanation of the CNN. The CNN is configured to include an input layer 21, a convolutional layer 22, a pooling layer 23, and an output layer 24. Note that at least one pair of the convolutional layer 22 and the pooling layer 23 is sufficient.

[0031] Each layer that makes up the CNN (input layer 21, convolution layer 22, pooling layer 23, output layer 24) has multiple nodes (or units). A neural network is an information processing system that mimics the human neural network, and the above nodes represent an engineered model of neurons that correspond to human nerve cells.

[0032] Figure 3 shows a schematic diagram of the relationship between the input and output for one node U. A multiple-input, single-output element is usually used for node U. Signals travel in only one direction and are weighted (connection weight: wi) before being input to node U. This weight represents the strength of the connection between nodes U and U arranged hierarchically. The weight can be changed through learning. Node U outputs a value X, calculated by subtracting a threshold θ from the sum of the weighted input values ​​(wixi), after being modified by a response function f(X). In other words, the output value y of node U is expressed by the following formula: y=f(X) Where: X = Σ(wixi-θ) As the response function, for example, a sigmoid function can be used.

[0033] Data (pixel values) of each pixel of the input image are input to each node U of the input layer 21. The convolutional layer 22 performs filtering on values ​​output from a predetermined node U of the previous layer to obtain a feature map (feature amount). The pooling layer 23 further reduces the feature map output from the convolutional layer 22 to obtain a new feature map. The output layer 24 is the final layer of the CNN, and outputs an object identification result (category information) with a confidence level based on the values ​​of the nodes U of the previous layer, the edge weights, and the response function of the output layer 24. Such an output layer 24 is composed of a fully connected layer that combines outputs from all the nodes U of the previous layer, performs a predetermined calculation, and outputs an identification result. The fully connected layer may be two or more layers.

[0034] As a learning algorithm of CNN, for example, an error backpropagation method can be used, which uses image data with a correct answer and sequentially changes the weight of each layer (edge) from the output layer 24 side to the input layer 21 side using the steepest descent method so that the square error between the output value from the output layer 24 obtained when the image data is input and the value indicating the correct answer is minimized. Such machine learning of CNN is performed under the control of the learning control unit 10b.

[0035] 3. About the inference method Next, an object detection method (object inference method) implemented by the object detection device 1 having the above configuration will be described. Fig. 4 is a flowchart showing the flow of processing by the object detection method. The object detection method of this embodiment includes an image acquisition step (S10), an object detection step (S20), a tag update step (S30), an excess rectangle suppression step (S40), and a detection result output step (S50). Each step will be described below.

[0036] (S10; image acquisition process) In S10, the object detection device 1 acquires an image (image data) input from the outside. Here, an image acquired by a camera CA (see FIG. 1) is considered as the image. Note that the image acquired by the object detection device 1 may be an image that is stored in advance in an external terminal device (e.g., a personal computer) or a server and output from the terminal device to the object detection device 1, an image that is attached to an e-mail and sent to the object detection device 1, or an image that is read from a recording medium R.

[0037] (S20; Object detection process) In the object detection step of S20, the object detection unit 2 detects an object from an image including the object by neuro-operation using CNN. This object detection step further includes a feature extraction step (S21), an information acquisition step (S22), and an object tag calculation step (S23). Note that the CNN constituting the object detection unit 2 has been machine-learned in advance, and is thereby able to perform each of the steps S21 to S23.

[0038] In S21, the feature extraction unit 2a extracts features (shape, etc.) of objects included in the image acquired in S10 by neuro-operation from the image. In S22, the information acquisition unit 2b obtains a plurality of object rectangles indicating candidates for object positions by neuro-operation based on the features, and obtains object category information and confidence for each object rectangle.

[0039] For example, Fig. 5 shows examples of object rectangles 101a to 101c and 102a to 102c acquired by the information acquisition unit 2b for objects 101 and 102 included in the input image. Here, the categories of the object 101 for each of the object rectangles 101a to 101c acquired by the information acquisition unit 2b are all assumed to be "Person", and the certainty factors of the category of the object 101 for each of the object rectangles 101a to 101c, i.e., the likelihood that the object 101 is a "Person", are, for example, 0.8, 0.9, and 0.4, respectively. Also, the categories of the object 102 for each of the object rectangles 102a to 102c acquired by the information acquisition unit 2b are all assumed to be "Person", and the certainty factors of the category of the object 102 for each of the object rectangles 102a to 102c are, for example, 0.9, 0.7, and 0.5, respectively.

[0040] In S23, the object tag calculation unit 2c calculates an object tag indicating which object in the image the object rectangle is associated with for each object rectangle based on the feature amount extracted in S21. For example, since the object rectangles 101a to 101c are associated with the object 101, the object tag calculation unit 2c calculates, for example, "2" as the tag value of the object tag of the object rectangles 101a to 101c. On the other hand, since the object rectangles 102a to 102c are associated with the object 102, the object tag calculation unit 2c calculates, for example, "10" as the tag value of the object tag of the object rectangles 102a to 102c.

[0041] 5, the tag values ​​of object rectangles 101a to 101c are all set to "2", and the tag values ​​of object rectangles 102a to 102c are all set to "10", but the tag values ​​of object rectangles 101a to 101c may be values ​​that vary around the tag value "2", such as "1.9", "2", and "2.2", and the tag values ​​of object rectangles 102a to 102c may be values ​​that vary around the tag value "10", such as "9.5", "10", and "10.3". The degree of variation in tag values ​​differs depending on the level of machine learning of object detection unit 2.

[0042] (S30; Tag update process) In S30, if the tag values ​​calculated in S23 vary among a plurality of object rectangles associated with the same object, the tag update unit 3 changes (updates) each tag value to the same tag value. Note that if the tag values ​​calculated in S23 are the same among a plurality of object rectangles associated with the same object, it is possible to omit the step of S30. Here, it is assumed that the tag values ​​calculated in S23 for the same object vary.

[0043] There are two methods for updating tag values: (1) a method using grouping based on threshold processing, and (2) a method using grouping based on the k-means method and elbow method.

[0044] (1) Grouping by threshold processing FIG. 6 shows a schematic diagram of a tag value updating method using grouping by threshold processing. When the tag value calculated for each object rectangle by the object tag calculation unit 2c is not between the first threshold TA and the second threshold TB, but is distributed between a first tag area MA that is less than the first threshold TA and a second tag area MB that is greater than the second threshold, and the first tag area MA and the second tag area TB are separated by a predetermined margin M or more (TB-TA≧M), the tag update unit 3 groups the tag values ​​of each tag area and converts them into the same tag value in the same tag area and into different tag values ​​between different tag areas. In the example of FIG. 6, the tag update unit 3 converts each tag value of the first tag area MA to the same tag value "2" and converts each tag value of the second tag area MB to the same tag value "10".

[0045] For example, if the tag values ​​of multiple object rectangles vary from "2" to "2.2", it may be unclear whether the individual object rectangles are linked to the same object or to different objects. However, by dividing multiple object rectangles into groups and unifying the tag values ​​for each group as described above, such doubt does not arise. That is, for example, all object rectangles with a unified tag value of "2" can be linked to the same object 101, while all object rectangles with a unified tag value other than "2" (for example, "10") can be linked to an object (for example, object 102) different from object 101, making it clear which object each object rectangle is linked to.

[0046] (2) Method using grouping by k-means + elbow method Fig. 7 shows a schematic diagram of a tag value update method using grouping by the k-means method and elbow method. First, the tag update unit 3 generates multiple clusters by changing the number of clusters (k value) within an arbitrary range using the k-means method for the tag values ​​calculated for each object rectangle. Fig. 7 shows a case where the tag update unit 3 generates two clusters CL-1 and CL-2 using the k-means method, and a case where the tag update unit 3 generates three clusters CL-1 to CL-3.

[0047] After that, the tag update unit 3 calculates the optimal number of clusters for each cluster generated above by the elbow method. Here, the elbow method is a method in which the sum of squared errors (SSE) for each cluster is plotted as shown in Fig. 7, and the number of clusters at the point where the graph showing the change in SSE bends like an elbow is regarded as the optimal number of clusters. In the example of Fig. 7, the number of clusters "2" is calculated as the optimal number of clusters.

[0048] Then, the tag update unit 3 groups the tag values ​​of each cluster of the number of clusters calculated by the elbow method, and converts the tag values ​​into the same tag value for the same cluster and different tag values ​​for different clusters. That is, the tag update unit 3 converts each tag value of cluster CL-1 into the same tag value (e.g., tag value "2"), and converts each tag value of cluster CL-2 into the same tag value (e.g., tag value "10").

[0049] As described above, by using the k-means algorithm and the elbow algorithm to find the optimal number of clusters and standardizing the tag values ​​for each cluster, as in (1) above, there is no longer any doubt as to whether the individual object rectangles are linked to the same object or to different objects, and the unified tag values ​​make it clear which object each object rectangle is linked to.

[0050] In either of the above methods (1) and (2), an upper limit may be set for the number of groups (number of clusters), and an optimal number of groups (number of clusters) may be obtained within the range up to the upper limit.

[0051] (S40; Excess rectangle suppression process) In S40, the redundant rectangle suppression unit 4 separates a plurality of object rectangles having the same object category into a plurality of groups according to the object tags (tag values), and performs NMS processing to delete redundant object rectangles in each group based on the confidence level. For example, as shown in FIG. 5, the objects 101 and 102 have the same category of "person". Therefore, the redundant rectangle suppression unit 4 separates these object rectangles 101a-101c and 102a-102c into a group (object rectangles 101a-101c) with a tag value of "2" and a group (object rectangles 102a-102c) with a tag value of "10", and performs NMS processing on the object rectangles 101a-101c and NMS processing on the object rectangles 102a-102c.

[0052] More specifically, since the certainty factors of the object rectangles 101a to 101c are 0.8, 0.9, and 0.4, respectively, as described above, the redundant rectangle suppression unit 4 leaves only the object rectangle 101b with the highest certainty factor, sets the certainty factors of the category of the object 101 represented by the object rectangles 101a and 101c whose degree of overlap (IoU) with the object rectangle 101b is equal to or greater than the threshold value to zero, and deletes the object rectangles 101a and 101c. Also, since the certainty factors of the object rectangles 102a to 102c are 0.9, 0.7, and 0.5, respectively, as described above, the redundant rectangle suppression unit 4 leaves only the object rectangle 102a with the highest certainty factor, sets the certainty factors of the category of the object 102 represented by the object rectangles 102b and 102c whose IoU with the object rectangle 102a is equal to or greater than the threshold value to zero, and deletes the object rectangles 102b and 102c.

[0053] 8 shows object rectangles 101b and 102a remaining after the NMS process. As a result of the above NMS process, only one object rectangle 101b remains for object 101, and only one object rectangle 102a remains for object 102. Moreover, no process has been performed to change the certainty of the category of object 101 indicated by object rectangle 101b, or the certainty of object 102 indicated by object rectangle 102a.

[0054] (S50; Detection result output process) In S50, the control unit 10 causes the display unit 7 to display the result after the NMS process, that is, the category information and the confidence level of the objects 101 and 102 indicated by the object rectangles 101b and 102a. FIG. 9 shows an example of a display screen of the display unit 7. For example, for the object 101 in FIG. 8, “PERSON” indicating the category of “person”, a number “1” for distinguishing the object 101 from other persons, and a confidence level of “0.9” of the category of the object 101 indicated by the object rectangle 101b are displayed together with the object rectangle 101b. For the object 102 in FIG. 8, “PERSON” indicating the category of “person”, a number “2” for distinguishing the object 102 from other persons, and a confidence level of “0.9” of the category of the object 102 indicated by the object rectangle 102a are displayed together with the object rectangle 102a. Note that the control unit 10 may output the detection result to an external terminal via the communication unit 8 instead of displaying the result after the NMS process on the display unit 7.

[0055] 4. Effects As described above, the object rectangles belonging to each group separated by the redundant rectangle suppression unit 4 are linked to the same object by the object tag. That is, in the above example, the object rectangles 101a to 101c belonging to one group are linked to the same object 101 by the tag value "2". Also, the object rectangles 102a to 102c belonging to the other group are linked to the same object 102 by the tag value "10". Therefore, even if the objects 101 and 102 to be detected in the image are close to each other, by performing the NMS process for each group based on the tag value, only one object rectangle is left for each of the close objects 101 and 102, and the category information and certainty of the objects 101 and 102 corresponding to the object rectangles (for example, the object rectangles 101b and 102a in FIG. 8) are left, and these can be output as shown in FIG. 9. That is, the object rectangles 101b and 102a of the objects 101 and 102 to be detected can be left as they are without reducing the certainty. Therefore, both nearby objects 101 and 102 can be detected with high accuracy (without being removed by NMS processing).

[0056] Furthermore, in S30, when the tag values ​​calculated for each object rectangle are distributed among multiple tag regions separated by a predetermined margin M or more, the tag update unit 3 groups the tag values ​​of each tag region and converts them into the same tag value in the same tag region and different tag values ​​between different tag regions. As a result, even if the tag values ​​of object tags associated with the same object vary, the excess rectangle suppression unit 4 can separate the multiple object rectangles into multiple groups based on the tag values ​​updated by the tag update unit 3, that is, the tag values ​​unified for each tag region, making the separation easy.

[0057] In addition, in S30, the tag update unit 3 may generate multiple clusters by changing the number of clusters within an arbitrary range using the k-means method for the tag values ​​calculated for each object rectangle, and then calculate the optimal number of clusters using the elbow method, group the tag values ​​of each cluster of the calculated number of clusters, and convert the tag values ​​of the same cluster to the same tag value and different clusters to different tag values. Even if the tag values ​​of object tags associated with the same object vary, the redundant rectangle suppression unit 4 can separate multiple object rectangles into multiple groups based on the tag values ​​updated by the tag update unit 3, that is, the tag values ​​unified for each cluster, making the separation easy.

[0058] Furthermore, the redundant rectangle suppression unit 4 sets to zero the certainty of the category of the object (e.g., object 101) represented by the object rectangles (e.g., object rectangles 101a and 101c) whose IoU with respect to the object rectangle with the highest certainty (e.g., object rectangle 101b) is equal to or greater than a threshold value among multiple object rectangles (e.g., object rectangles 101a to 101c) with the same object tag, thereby making it possible to reliably remove redundant (unnecessary) object rectangles from multiple object rectangles representing the same object.

[0059] 5. Learning to calculate object tags The learning control unit 10b of the control unit 10 may update the weights (connection weights wi) indicating the strength of connections between nodes in each layer of the CNN constituting the object detection unit 2 by backpropagating, using a back-error propagation method, a first error Loss#1 calculated by a first loss function for bringing the tag values ​​of multiple object rectangles for the same object closer to each other, and a second error Loss#2 calculated by a second loss function for moving the tag values ​​of multiple object rectangles for different objects farther from each other.

[0060] Here, the above first error Loss#1 and second error Loss#2 are expressed as follows: Note that the right-hand side of the equation for calculating Loss#1 represents the first loss function, and the right-hand side of the equation for calculating Loss#2 represents the second loss function. Loss#1 = {(tag value of the target object rectangle) - (average of tag values ​​of object rectangles of the same object)} 2 Loss#2 = exp[-{(average of tag values ​​of the target object rectangle)-(average of tag values ​​of the object rectangles of other objects)} 2 ]

[0061] Whether each object rectangle is for the same object or for different objects can be determined based on whether each object rectangle has an IoU for the object (ground truth, hereinafter also referred to as "GT") equal to or greater than a threshold. However, if one object rectangle has an IoU for multiple objects equal to or greater than a threshold, the object rectangle is determined to be the object rectangle for the object with the largest IoU.

[0062] By backpropagating the first error Loss#1 and the second error Loss#2 as described above to allow the object detection unit 2 to perform machine learning, at the time of inference after machine learning (at the time of object detection), the tag values ​​of multiple object rectangles for the same object are calculated to approach the same value (e.g., "2"), and the tag values ​​of multiple object rectangles for different objects are calculated to move away from each other (e.g., "2" and "12"). This enables the redundant rectangle suppression unit 4 to classify, among multiple object rectangles, object rectangles with the same or similar tag values ​​into the same group, and object rectangles with significantly different tag values ​​into different groups. This makes it easy to separate multiple object rectangles into each group.

[0063] In addition, the learning control unit 10b may update the above weights by further backpropagating, using a back-error propagation method, a third error Loss#3 calculated by a third loss function for increasing the positional accuracy of the object rectangle compared to before learning, a fourth error Loss#4 calculated by a fourth loss function for increasing the certainty of whether or not an object exists compared to before learning, and a fifth error Loss#5 calculated by a fifth loss function for increasing the certainty of the object category compared to before learning.

[0064] Here, the third error Loss#3, the fourth error Loss#4, and the fifth error Loss#5 are expressed as follows: The right side of the equation for calculating Loss#3 represents the third loss function, the right side of the equation for calculating Loss#4 represents the fourth loss function, and the right side of the equation for calculating Loss#5 represents the fifth loss function.

[0065]

number

[0066]

number

[0067]

number

[0068] Since the object detection unit 2 is machine-learned in advance to increase the positional accuracy of the object rectangle, the certainty of whether the object exists, and the certainty of the object category, during actual inference, the object detection unit 2 (particularly the information acquisition unit 2b) can accurately determine the object rectangle and the certainty. This makes it possible to further enhance the effect of this embodiment, that is, the effect of improving the detection accuracy of nearby objects.

[0069] [6. Efficient Learning for Calculating Object Tags (Part 1)] When calculating the second error Loss#2, the learning control unit 10b may change the coefficient of the second loss function according to the distance between a plurality of object rectangles for different objects, thereby changing the second error Loss#2 according to the distance. Details of the calculation method of the distance will be described later. For example, when the coefficient of the second loss function is α, the second error Loss#2 may be calculated by changing the value of the coefficient α according to the distance. That is, the second error Loss#2 in this case is calculated by the following formula. Loss#2 = α × exp[-{(average of tag values ​​of the target object rectangle)-(average of tag values ​​of the object rectangles of other objects)} 2 ]

[0070] 10 shows an example of the tag value of an arbitrary object rectangle 101b of the object 101, and the tag values ​​of arbitrary object rectangles 102a and 103a of the objects 102 and 103. However, it is assumed that the objects 101 to 103 belong to the same category (e.g., people), that the objects 101 and 102 are close to each other on the image (close to each other), and that the objects 101 and 103 are distant from each other on the image (far from each other).

[0071] When objects 101 and 102 are close to each other, in order to accurately distinguish object rectangle 101b from object rectangle 102a, it is necessary to separate the respective tag values. On the other hand, when objects 101 and 103 are far apart, the IoU between object rectangle 101b and object rectangle 103a is zero, which is less than the threshold, and therefore object rectangle 101b and object rectangle 103a are not simultaneously subject to NMS processing. Therefore, even if the tag values ​​are close to each other, it is possible to detect objects 101 and 103 by performing separate NMS processing on object rectangles 101b and 103a.

[0072] Therefore, when the distance between the object rectangles of different objects is short during learning, the learning control unit 10b increases the coefficient α of the second loss function to increase the second error Loss#2, while when the distance is long, the learning control unit 10b decreases the coefficient α of the second loss function to decrease the second error Loss#2. The learning control unit 10b back-propagates the second error Loss#2 adjusted as described above to machine-learn the object detection unit 2 in advance, so that the object detection unit 2 can calculate tag values ​​whose values ​​are farther apart from each other as the two objects get closer to each other during inference. This makes it easier to separate the object rectangles into different groups based on the tag values, and it becomes possible to perform NMS processing for each group to detect each of the nearby objects with higher accuracy.

[0073] Incidentally, FIG. 10 shows an example in which, for the tag value "2" of the object rectangle 101b of the object 101, the tag value of the object rectangle 102a of the object 102 close to the object 101 is calculated as "12" which is sufficiently far from "2", and the tag value of the object rectangle 103a of the object 103 far from the object 101 is calculated as "1" which is close to "2". Since the object rectangle 101b and the object rectangle 103a are sufficiently far away from each other, it is possible to distinguish between these object rectangles 101b and 103a even if their tag values ​​are close to each other. On the other hand, since the object rectangle 101b and the object rectangle 102a are close to each other but their tag values ​​are far from each other, it is possible to accurately distinguish between the object rectangles 101b and 102a based on the tag values, and to accurately detect the objects 101 and 102.

[0074] Next, a method for calculating the distance between a plurality of object rectangles for different objects will be described. Figs. 11 to 13 show examples of a method for calculating the distance D between an object rectangle 101a and an object rectangle 102a when the plurality of object rectangles for different objects are 101a and 102a. As shown in Fig. 11, the distance D may be the distance between the center of gravity G1 of the object rectangle 101a and the center of gravity G2 of the object rectangle 102a. Note that the x and y coordinates of the center of gravity D1 are the average values ​​of the x and y coordinates of the four vertices of the object rectangle 101a, respectively, and the x and y coordinates of the center of gravity D2 are the average values ​​of the x and y coordinates of the four vertices of the object rectangle 102a, respectively.

[0075] 12, the distance D may be the average of the distances between corresponding vertices between the object rectangle 101a and the object rectangle 102a. In other words, when the distances between corresponding vertices are d1, d2, d3, and d4, respectively, the distance D may be D=(d1+d2+d3+d4) / 4. Furthermore, as shown in FIG 13, the distance D may be IoU, which indicates the degree of overlap between the object rectangle 101a and the object rectangle 102a (the ratio of the area of ​​the hatched portion to the whole).

[0076] Since the distance D between the object rectangle 101a and the object rectangle 102a can be calculated by any of the above methods, the learning control unit 10b can calculate the distances between multiple object rectangles for different objects using the above method and change the coefficient of the second loss function, thereby changing the second error Loss#2 in accordance with the distance.

[0077] [7. Efficient Learning for Calculating Object Tags (Part 2)] When calculating the second error Loss#2, the learning control unit 10b may change the coefficient of the second loss function according to the category of the adjacent objects in the image, thereby changing the second error Loss#2 according to the category. For example, when the coefficient of the second loss function is β, the value of the coefficient β may be changed according to the category to calculate the second error Loss#2. That is, the second error Loss#2 in this case is calculated by the following formula. Loss#2 = β × exp[-{(average of tag values ​​of the target object rectangle)-(average of tag values ​​of the object rectangles of other objects)} 2 ]

[0078] 14 shows an example of tag values ​​of arbitrary object rectangles 101b, 102a, 103a, and 104a of objects 101 to 104. However, it is assumed that the categories of objects 101, 102, and 104 are the same (e.g., person), and the category of object 103 is "dog," which is different from the categories of objects 101, 102, and 104. It is also assumed that objects 101 and 102 are close to each other, and objects 103 and 104 are close to each other.

[0079] When objects 101 and 102, which belong to the same category, are close to each other, their tag values ​​must be separated in order to accurately distinguish object rectangle 101b from object rectangle 102a. On the other hand, even if objects 103 and 104 are close to each other, they are detected as being in different categories, and therefore object rectangle 103a and object rectangle 104a are not subject to NMS processing at the same time (because NMS processing is performed on object rectangles of the same category). Therefore, even if the tag values ​​of object rectangle 103a and object rectangle 104a are close to each other, they are subjected to NMS processing separately, and as a result, objects 103 and 104 can be detected separately.

[0080] Therefore, when the categories of adjacent objects are the same during learning, the learning control unit 10b increases the coefficient β of the second loss function to increase the second error Loss#2, whereas when the categories are different, the learning control unit 10b decreases the coefficient β of the second loss function to decrease the second error Loss#2. The learning control unit 10b back-propagates the second error Loss#2 adjusted as described above to allow the object detection unit 2 to perform machine learning in advance, so that when objects of the same category are close to each other during inference, the object detection unit 2 can calculate tag values ​​whose values ​​are far from each other. Incidentally, in FIG. 14, for the tag value "2" of the object rectangle 101b of the object 101, the tag value "12" whose value is sufficiently far from "2" is calculated as the tag value of the object rectangle 102a of the object 102 of the same category that is close to the object 101. This makes it easy to separate a plurality of object rectangles into different groups based on the tag values ​​"2" and "12". Therefore, by performing NMS processing on each group, it becomes possible to detect adjacent objects of the same category with greater accuracy.

[0081] On the other hand, although the distance between object rectangle 103a and object rectangle 104a is close, the categories of objects 103 and 104 are different, so object detection unit 2 calculates the tag value of object rectangle 104a to be "1", which is close to "2", for example, for the tag value "2" of object rectangle 103a. Since objects 103 and 104 are in different categories, even if their tag values ​​are close to each other as described above, object rectangle 103a and object rectangle 104a are not simultaneously subject to NMS processing. Therefore, for objects 103 and 104 in different categories, it is possible to detect them separately even if their tag values ​​are close to each other.

[0082] 8. Programs and Recording Media The object detection device 1 (particularly the object detection unit 2) described in this embodiment can be configured, for example, by a computer (PC) in which a predetermined program (application software) is installed. The above program can be read and executed by a computer (for example, the control unit 10 of the PC), causing the computer to execute each process (each step) of the above-mentioned object detection method. In other words, the object detection method of this embodiment can be realized by having the object detection unit 2 of the object detection device 1 undergo machine learning. Such a program is acquired by downloading it from an external source via a network, for example, and stored in the storage unit 5. The above program may also be recorded in a computer-readable recording medium R (see FIG. 1), such as a CD-ROM (Compact Disk-Read Only Memory), and the computer may read the above program from the recording medium R and store it in the storage unit 5.

[0083] [9. Others] The object detection device, the object detection method, the program, and the recording medium according to the present embodiment described above can be expressed as follows.

[0084] 1. An object detection device including an object detection unit that detects an object from an image including the object by neural computation using a convolutional neural network, The object detection unit is a feature extraction unit that extracts a feature of the object from the image; an information acquisition unit that acquires a plurality of object rectangles indicating candidates for the position of the object based on the feature amount, and acquires information on the category of the object and a certainty factor for each of the object rectangles; an object tag calculation unit that calculates, for each object rectangle, an object tag indicating which object in the image the object rectangle is associated with based on the feature amount; The object detection device includes: The object detection device further comprises an excess rectangle suppression unit that separates a plurality of object rectangles having the same object category into a plurality of groups according to the object tag, and deletes excess object rectangles in each separated group based on the certainty factor.

[0085] 2. The apparatus further includes a tag update unit that updates the tag value of the object tag calculated by the object tag information calculation unit; The object detection device described in 1, characterized in that when the tag values ​​calculated for each object rectangle are distributed across multiple tag regions that are separated by a predetermined margin or more, the tag update unit groups the tag values ​​of each tag region and converts them into the same tag value in the same tag region and different tag values ​​between different tag regions.

[0086] 3. A tag update unit that updates the tag value of the object tag calculated by the object tag information calculation unit, The object detection device described in item 1 is characterized in that the tag update unit generates multiple clusters by changing the number of clusters within an arbitrary range using the k-means method for the tag values ​​calculated for each object rectangle, then calculates the optimal number of clusters using the elbow method, groups the tag values ​​of each cluster of the calculated number of clusters, and converts the tag values ​​into the same tag values ​​for the same cluster and different tag values ​​for different clusters.

[0087] 4. The object detection device described in any one of 1 to 3, characterized in that the excess rectangle suppression unit sets to zero the certainty of the object category indicated by an object rectangle whose degree of overlap with the object rectangle with the highest certainty is equal to or greater than a threshold value among multiple object rectangles with the same object tag.

[0088] 5. A learning control unit is further provided to perform machine learning on the object detection unit in advance, The object detection device described in any one of 1 to 4, characterized in that the learning control unit updates weights indicating the strength of connections between nodes in each layer of the convolutional neural network that constitutes the object detection unit by backpropagating, using a backerror propagation method, a first error calculated by a first loss function for bringing the tag values ​​of multiple object rectangles for the same object closer to each other, and a second error calculated by a second loss function for moving the tag values ​​of multiple object rectangles for different objects farther from each other.

[0089] 6. The object detection device described in 5, characterized in that the learning control unit updates the weights by further backpropagating, using a backerror propagation method, a third error calculated by a third loss function for improving the positional accuracy of the object rectangle compared to before learning, a fourth error calculated by a fourth loss function for improving the certainty of whether or not an object exists compared to before learning, and a fifth error calculated by a fifth loss function for improving the certainty of the object category compared to before learning.

[0090] 7. The object detection device described in 5 or 6, characterized in that the learning control unit changes the second error according to the distance by changing the coefficient of the second loss function according to the distance between multiple object rectangles for different objects.

[0091] 8. The object detection device according to claim 7, wherein the distance between the multiple object rectangles for the different objects is the distance between the centers of gravity of each object rectangle.

[0092] 9. The object detection device according to claim 7, wherein the distance between multiple object rectangles for the different objects is the average of the distances between corresponding vertices between each object rectangle.

[0093] 10. The object detection device according to claim 7, wherein the distance between multiple object rectangles for different objects is the degree of overlap between the object rectangles.

[0094] 11. The object detection device described in 5 or 6, characterized in that the learning control unit changes the second error according to the category by changing the coefficient of the second loss function according to the category of adjacent objects.

[0095] 12. An object detection method including an object detection step of detecting an object from an image including the object by neural computation using a convolutional neural network, The object detection step includes: a feature extraction step of extracting a feature of the object from the image; an information acquisition step of obtaining a plurality of object rectangles indicating candidates for the position of the object based on the feature amount, and obtaining information on the category of the object and a certainty factor for each of the object rectangles; an object tag calculation step of calculating, for each object rectangle, an object tag indicating which object in the image the object rectangle is associated with, based on the feature amount; The object detection method includes: The object detection method further comprises an excess rectangle suppression step of separating a plurality of object rectangles having the same object category into a plurality of groups according to the object tag, and deleting excess object rectangles in each separated group based on the certainty factor.

[0096] 13. The method further includes a tag updating step of updating the tag value of the object tag calculated by the object tag information calculation step; The object detection method described in item 12, characterized in that in the tag update process, when the tag values ​​calculated for each object rectangle are distributed across multiple tag regions that are separated by a predetermined margin or more, the tag values ​​of each tag region are grouped together and converted to the same tag value in the same tag region and different tag values ​​between different tag regions.

[0097] 14. The method further includes a tag updating step of updating the tag value of the object tag calculated by the object tag information calculation step; The object detection method described in item 12, characterized in that in the tag update process, the number of clusters is changed within an arbitrary range using the k-means method for the tag values ​​calculated for each object rectangle to generate multiple clusters, and then the optimal number of clusters is calculated using the elbow method, and the tag values ​​of each cluster of the calculated number of clusters are grouped, and the tag values ​​are converted to be the same for the same cluster and different for different clusters.

[0098] 15. An object detection method as described in any one of 12 to 14, characterized in that in the redundant rectangle suppression process, the certainty of the object category indicated by an object rectangle whose degree of overlap with the object rectangle with the highest certainty is equal to or greater than a threshold value among multiple object rectangles with the same object tag is set to zero.

[0099] 16. The method further includes a learning step of previously performing machine learning on the convolutional neural network; The object detection method described in any one of 12 to 15, characterized in that in the learning process, a first error calculated by a first loss function for bringing each tag value of a plurality of object rectangles for the same object closer to each other, and a second error calculated by a second loss function for moving each tag value of a plurality of object rectangles for different objects farther from each other are backpropagated using a back error propagation method, thereby updating weights indicating the strength of connections between nodes in each layer of the convolutional neural network.

[0100] 17. The object detection method described in claim 16, characterized in that in the learning process, the weights are updated by backpropagating using a back error propagation method a third error calculated by a third loss function for improving the positional accuracy of the object rectangle compared to before learning, a fourth error calculated by a fourth loss function for improving the certainty of whether or not an object exists compared to before learning, and a fifth error calculated by a fifth loss function for improving the certainty of the object category compared to before learning.

[0101] 18. The object detection method described in 16 or 17, characterized in that in the learning process, the second error is changed according to the distance by changing the coefficient of the second loss function according to the distance between multiple object rectangles for different objects.

[0102] 19. The object detection method described in 16 or 17, characterized in that in the learning process, the second error is changed according to the category by changing the coefficient of the second loss function according to the category of the adjacent objects.

[0103] 20. A program for causing a computer to execute the object detection method according to any one of 12 to 19.

[0104] 21. A computer-readable recording medium having the program described in 20 recorded thereon.

[0105] Although the embodiment of the present invention has been described above, the scope of the present invention is not limited to this, and the invention can be expanded or modified without departing from the spirit of the invention. [Industrial Applicability]

[0106] The present invention can be used in an apparatus or system for detecting an object from an image using CNN. [Explanation of symbols]

[0107] 1. Object detection device 2. Object detection section 2a Feature extraction unit 2b Information acquisition section 2c Object tag calculation unit 3. Tag Update Section 4 Extra rectangular restraint section 10b Learning control section

Claims

1. An object detection device including an object detection unit that detects an object from an image including the object by neural computation using a convolutional neural network, The object detection unit is a feature extraction unit that extracts a feature of the object from the image; an information acquisition unit that obtains a plurality of object rectangles indicating candidates for the position of the object based on the feature amount, and obtains information on the category of the object and a certainty factor for each of the object rectangles; an object tag calculation unit that calculates, for each object rectangle, an object tag indicating which object in the image the object rectangle is associated with based on the feature amount; The object detection device includes: The object detection device further includes an excess rectangle suppression unit that separates a plurality of object rectangles having the same object category into a plurality of groups according to the object tag, and deletes excess object rectangles in each separated group based on the certainty factor.

2. Further comprising a tag update unit that updates the tag value of the object tag calculated by the object tag calculation unit, 2. The object detection device of claim 1, wherein when the tag values ​​calculated for each object rectangle are distributed across multiple tag regions separated by a predetermined margin or more, the tag update unit groups the tag values ​​of each tag region and converts them to the same tag value in the same tag region and different tag values ​​between different tag regions.

3. Further comprising a tag update unit that updates the tag value of the object tag calculated by the object tag calculation unit, The object detection device of claim 1, wherein the tag update unit generates a plurality of clusters by varying the number of clusters within an arbitrary range using a k-means method for the tag values ​​calculated for each object rectangle, then calculates an optimal number of clusters using an elbow method, groups the tag values ​​of each cluster of the calculated number of clusters, and converts the tag values ​​into the same tag values ​​for the same cluster and different tag values ​​for different clusters.

4. The object detection device according to any one of claims 1 to 3, wherein the excess rectangle suppression unit sets to zero the certainty of an object category indicated by an object rectangle whose degree of overlap with the object rectangle with the highest certainty is equal to or greater than a threshold value among multiple object rectangles with the same object tag.

5. A learning control unit that performs machine learning on the object detection unit in advance is further provided, 5. The object detection device according to claim 1, wherein the learning control unit updates weights indicating the strength of connections between nodes in each layer of the convolutional neural network constituting the object detection unit by backpropagating, using a backerror propagation method, a first error calculated by a first loss function for bringing the tag values ​​of multiple object rectangles for the same object closer to each other, and a second error calculated by a second loss function for moving the tag values ​​of multiple object rectangles for different objects farther from each other.

6. 6. The object detection device of claim 5, wherein the learning control unit updates the weights by further backpropagating, using a backerror propagation method, a third error calculated by a third loss function for improving the positional accuracy of the object rectangle compared to before learning, a fourth error calculated by a fourth loss function for improving the certainty of whether or not an object exists compared to before learning, and a fifth error calculated by a fifth loss function for improving the certainty of the object category compared to before learning.

7. 7. The object detection device according to claim 5, wherein the learning control unit changes the second error according to the distance by changing a coefficient of the second loss function according to the distance between a plurality of object rectangles for different objects.

8. The object detection apparatus according to claim 7 , wherein the distance between a plurality of object rectangles for the different objects is a distance between the centers of gravity of each object rectangle.

9. The object detection apparatus according to claim 7 , wherein the distance between a plurality of object rectangles for the different objects is an average of distances between corresponding vertices between each object rectangle.

10. The object detection device according to claim 7 , wherein the distance between a plurality of object rectangles for the different objects is a degree of overlap between the object rectangles.

11. The object detection device according to claim 5 , wherein the learning control unit changes a coefficient of the second loss function depending on a category of an adjacent object, thereby changing the second error depending on the category.

12. An object detection device as described in any one of claims 1 to 11, wherein, when detecting the object, the tag values ​​of the object tags of multiple object rectangles for the same object are calculated to approach the same value, and the tag values ​​of multiple object rectangles for different objects are calculated to move away from each other.

13. An object detection method including an object detection step of detecting an object from an image including the object by neuro-operation using a convolutional neural network, The object detection step includes: a feature extraction step of extracting a feature of the object from the image; an information acquisition step of obtaining a plurality of object rectangles indicating candidates for the position of the object based on the feature amount, and obtaining information on the category of the object and a certainty factor for each of the object rectangles; an object tag calculation step of calculating, for each object rectangle, an object tag indicating which object in the image the object rectangle is associated with, based on the feature amount; The object detection method includes: The object detection method further includes an excess rectangle suppression step of separating a plurality of object rectangles having the same object category into a plurality of groups according to the object tag, and deleting excess object rectangles in each separated group based on the certainty factor.

14. The method further includes a tag updating step of updating the tag value of the object tag calculated by the object tag calculation step, 14. The object detection method according to claim 13, wherein in the tag updating step, when the tag values ​​calculated for each object rectangle are distributed across multiple tag regions separated by a predetermined margin or more, the tag values ​​of each tag region are grouped together and converted to the same tag value in the same tag region and different tag values ​​between different tag regions.

15. The method further includes a tag updating step of updating the tag value of the object tag calculated by the object tag calculation step, The object detection method according to claim 13, wherein in the tag updating step, a number of clusters is changed within an arbitrary range using a k-means method for the tag values ​​calculated for each object rectangle to generate a plurality of clusters, an optimal number of clusters is then calculated using an elbow method, the tag values ​​of each cluster of the calculated number of clusters are grouped, and the tag values ​​are converted to be the same for the same cluster and different for different clusters.

16. An object detection method as described in any of claims 13 to 15, wherein the redundant rectangle suppression process sets to zero the certainty of an object category indicated by an object rectangle whose degree of overlap with the object rectangle with the highest certainty is equal to or greater than a threshold value among multiple object rectangles having the same object tag.

17. The method further includes a learning step of previously performing machine learning on the convolutional neural network, 17. The object detection method according to claim 13, wherein in the learning step, a first error calculated by a first loss function for bringing the tag values ​​of a plurality of object rectangles for the same object closer to each other and a second error calculated by a second loss function for moving the tag values ​​of a plurality of object rectangles for different objects farther from each other are backpropagated using a backerror propagation method, thereby updating weights indicating the strength of connections between nodes in each layer of the convolutional neural network.

18. The object detection method described in claim 17, wherein in the learning step, the weights are updated by further backpropagating, using a back error propagation method, a third error calculated by a third loss function for increasing the positional accuracy of the object rectangle compared to before learning, a fourth error calculated by a fourth loss function for increasing the certainty of whether or not an object exists compared to before learning, and a fifth error calculated by a fifth loss function for increasing the certainty of the object category compared to before learning.

19. An object detection method as described in claim 17 or 18, wherein in the learning process, the second error is changed according to the distance between multiple object rectangles for different objects by changing the coefficient of the second loss function according to the distance.

20. An object detection method as described in claim 17 or 18, wherein in the learning process, the second error is changed according to the category of adjacent objects by changing the coefficient of the second loss function according to the category.

21. An object detection method described in any of claims 13 to 20, wherein in the object detection process, the tag values ​​of the object tags of multiple object rectangles for the same object are calculated to approach the same value, and the tag values ​​of multiple object rectangles for different objects are calculated to move away from each other.

22. A program for causing a computer to execute an object detection method described in any one of claims 13 to 21.

Citation Information

Patent Citations

  • Object-detecting device

    JP2006010652A

  • Information processing system, control system, and learning method

    JP2019061505A

  • Object detection device, object detection method, and program

    WO2019013246A1