OBJECT DETECTION DEVICE, OBJECT DETECTION METHOD, AND OBJECT DETECTION PROGRAM
The object detection device and method address the challenge of detecting small objects in high-definition images by scaling and processing a subset of divided images, ensuring accurate and efficient detection of both large and small objects.
Patent Information
- Application Number
- JP2022567944
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-12-09
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-12-09
AI Technical Summary
Existing object detection technologies struggle to accurately detect small objects in high-definition images due to restrictions on input image size, leading to division of large objects across multiple images, which complicates the detection of small objects.
An object detection device and method that scales the input image, performs object detection on a subset of divided images, and combines metadata to ensure accurate detection of both large and small objects, while minimizing computational load.
The solution enables high-accuracy detection of both large and small objects in high-definition images, even with ultra-high-definition inputs, by reducing the number of images processed and optimizing computational resources.
Smart Images

Figure 0007540508000012 
Figure 0007540508000001 
Figure 0007540508000006
Abstract
Description
[Technical field]
[0001] The disclosed technology relates to an object detection device, an object detection method, and an object detection program. [Background technology]
[0002] In recent years, technologies have been proposed that use deep learning to detect objects at high speed. YOLO (You Only Look Once) and SSD (Single Shot multibox Detector) are known as representative models that use a single-stage method that simultaneously processes area extraction and category classification at high speed using a single network (see Non-Patent Documents 1 and 2). Such object detection technologies are being considered for use in AI image processing in surveillance cameras and edge computing.
[0003] In these object detection methods based on deep learning, there are restrictions on the input image size. For example, in object detection using YOLOv3 described in Non-Patent Document 1, an input image resized from the original image to 320 (width) x 320 (height) pixels, 416 x 416 pixels, or 608 x 608 pixels is used.
[0004] Furthermore, for example, when the original image is a high-definition image such as full HD (1920 x 1080 pixels) or 4K (3840 x 2160 pixels), it is necessary to reduce the image under the above-mentioned image size restrictions. By reducing the high-definition image, characteristic parts of objects contained in the image are also reduced, which may make it difficult to detect objects that are relatively small in the input image.
[0005] In view of this, for example, Non-Patent Document 3 discloses a technique for dividing an input image into a plurality of images and performing object detection for each divided image. [Prior art documents] [Non-patent literature]
[0006] [Non-Patent Document 1] Joseph Redmon and Ali Farhadi, “YOLOv3: An Incremental Improvement”, https: / / arxiv.org / abs / 1804.02767 (https: / / arxiv.org / pdf / 1804.02767.pdf) [Non-Patent Document 2] Wei Liu et al., “SSD: Single Shot MultiBox Detector”, https: / / arxiv.org / abs / 1512.02325 (https: / / arxiv.org / pdf / 1512.02325.pdf) [Non-Patent Document 3] Vit Ruzicka and Franz Franchetti, “Fast and accurate object detection in high resolution 4K and 8K video using GPUs”, 2018 IEEE High Performance extreme Computing Conference (HPEC) Summary of the Invention [Problem to be solved by the invention]
[0007] However, when a relatively large object straddles divided images, the characteristic parts of the object are also divided, making it difficult to detect small objects in the input image.
[0008] The disclosed technology has been made in consideration of the above-mentioned points, and aims to provide an object detection device, an object detection method, and an object detection program that are capable of accurately detecting objects contained in an input image even if the objects are relatively small compared to the input image. [Means for solving the problem]
[0009] A first aspect of the present disclosure provides an object detection device that outputs metadata from an input image, the metadata including at least attributes, reliability, central coordinates, and a frame surrounding an object contained in the input image, comprising: an overall processing unit that obtains first metadata for the entire input image by scaling the input image and performing object detection processing; a split image narrowing down unit that narrows down a group of split images obtained by dividing the input image to a predetermined number of selected split images; a split processing unit that obtains second metadata for each of the selected split images by performing object detection processing on each of the selected split images; and a synthesis processing unit that removes the second metadata obtained by the split processing unit that overlaps with the first metadata obtained by the overall processing unit, and combines the first metadata obtained by the overall processing unit with the first metadata that was not removed to output the metadata.
[0010] A second aspect of the present disclosure is an object detection method for outputting metadata from an input image, the metadata including at least attributes, reliability, center coordinates, and a frame surrounding an object contained in the input image, wherein a computer executes a process of scaling the input image and performing an object detection process to obtain first metadata for the entire input image, narrowing down a group of divided images obtained by dividing the input image to a predetermined number of selected divided images, performing an object detection process on each of the selected divided images to obtain second metadata for each of the selected divided images, removing the obtained second metadata that overlaps with the obtained first metadata, and combining the unremoved first metadata with the obtained first metadata to output the metadata.
[0011] A third aspect of the present disclosure is an object detection program that causes a computer to function as the object detection device of the first aspect of the present disclosure. Effect of the Invention
[0012] According to the disclosed technology, it is possible to provide an object detection device, an object detection method, and an object detection program that can accurately detect objects contained in an input image, even if the object is relatively small compared to the input image, by narrowing down a group of divided images to a predetermined number of selected divided images and detecting the objects. [Brief description of the drawings]
[0013] [Figure 1] 1 is a diagram showing an overview of an object detection device according to a first embodiment. [Diagram 2] FIG. 2 is a block diagram showing a hardware configuration of the object detection device. [Diagram 3] 1 is a block diagram showing an example of a functional configuration of an object detection device that is a prerequisite for the object detection device according to the first embodiment. FIG. [Figure 4] 1 is a block diagram showing an example of a functional configuration of an object detection device according to a first embodiment. [Diagram 5] 4 is a flowchart showing the flow of an object detection process performed by the object detection device. [Figure 6] 10 is a flowchart showing details of whole image processing. [Figure 7] 13 is a flowchart showing details of a divided image narrowing down process. [Figure 8] 10 is a flowchart showing details of divided image processing. [Figure 9] 13 is a flowchart showing details of a synthesis process. [Figure 10] 13 is a flowchart showing details of an estimated interpolation object number calculation process. [Figure 11] FIG. 2 is a diagram showing divided regions of a divided image. [Figure 12] FIG. 13 is a block diagram showing an example of a functional configuration of an object detection device according to a third embodiment. [Figure 13] FIG. 13 is a block diagram showing an example of a functional configuration of an object detection device according to a fourth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] Hereinafter, an example of an embodiment of the disclosed technology will be described with reference to the drawings. In each drawing, the same or equivalent components and parts are given the same reference numerals. In addition, the dimensional ratios of the drawings are exaggerated for the convenience of explanation and may differ from the actual ratios.
[0015] (First embodiment) Fig. 1 is a diagram showing an overview of an object detection device according to a first embodiment. The object detection device 10 shown in Fig. 1 executes an object detection process on a video input. The object detection device 10 outputs an object detection result from the object detection process as metadata. The object detection device 10 outputs metadata including at least the attributes, reliability, center coordinates, and a frame surrounding an object included in an input image input as a video input.
[0016] FIG. 2 is a block diagram showing a hardware configuration of the object detection device 10. As shown in FIG.
[0017] 2, the object detection device 10 includes a CPU (Central Processing Unit) 11, a ROM (Read Only Memory) 12, a RAM (Random Access Memory) 13, a storage 14, an input unit 15, a display unit 16, and a communication interface (I / F) 17. Each component is connected to each other via a bus 19 so as to be able to communicate with each other.
[0018] The CPU 11 is a central processing unit, and executes various programs and controls each part. That is, the CPU 11 reads a program from the ROM 12 or the storage 14, and executes the program using the RAM 13 as a working area. The CPU 11 controls each of the above components and performs various arithmetic processing according to the program stored in the ROM 12 or the storage 14. In this embodiment, the ROM 12 or the storage 14 stores an object detection program for detecting an object in an input image.
[0019] The ROM 12 stores various programs and various data. The RAM 13 temporarily stores programs or data as a working area. The storage 14 is configured with a storage device such as an HDD (Hard Disk Drive) or an SSD (Solid State Drive), and stores various programs including an operating system, and various data.
[0020] The input unit 15 includes a pointing device such as a mouse, and a keyboard, and is used to perform various input operations.
[0021] The display unit 16 is, for example, a liquid crystal display, and displays various information. The display unit 16 may function as the input unit 15 by adopting a touch panel system. The communication interface 17 is an interface for communicating with other devices. For this communication, for example, a wired communication standard such as Ethernet (registered trademark) or FDDI, or a wireless communication standard such as 4G, 5G, or Wi-Fi (registered trademark) is used.
[0022] Next, a description will be given of the functional configuration of the object detection device 10. Before describing the functional configuration of the object detection device 10 according to the first embodiment, a description will be given of the functional configuration of an object detection device that is a prerequisite for the object detection device 10 according to the first embodiment.
[0023] FIG. 3 is a block diagram showing an example of the functional configuration of an object detection device 90 that is the basis of the object detection device 10 according to the first embodiment.
[0024] As shown in FIG. 3, the object detection device 90 has, as its functional components, an overall processing unit 910, a division processing unit 920, and a synthesis processing unit 930.
[0025] The overall processing unit 910 has an image scaling processing unit 911 , an object detection processing unit 912 , a metadata scaling processing unit 913 , and a confidence filter processing unit 914 .
[0026] The image scaling processing unit 911 reduces the input image input as a video input to an image size that can be input to object detection processing based on deep learning results. The image scaling processing unit 911 can reduce the image size while maintaining the ratio of the width and height of the input image. The reduction is based on, for example, a bilinear interpolation method. The input image input as a video input is, for example, an image captured by an imaging device (not shown).
[0027] The object detection processing unit 912 receives the input image reduced by the image scaling processing unit 911 and performs calculations on a trained object detection model based on a predetermined deep learning. The object detection processing unit 912 provides the reduced input image as an input to a prepared object detection model, performs calculations on the object detection model, and generates a set of attribute information including attribute values of objects included in the input image and a frame surrounding the object as metadata for the input image. The frame surrounding the object includes at least the center coordinates (X, Y) of the frame, the height (H) of the frame, and the width (W) of the frame.
[0028] The object detection processing unit 912 detects objects included in the input image using an object detection model such as YOLO that uses a convolutional neural network (CNN) that has been trained in advance by a computing device such as an external server.
[0029] The metadata scaling processing unit 913 performs a scaling process to enlarge the frame surrounding the object, which is included in the metadata of the input image generated by the object detection processing unit 912, so that the frame corresponds to the size of the input image before reduction. This is because the metadata generated by the object detection processing unit 912 is for the reduced input image.
[0030] The reliability filter processing unit 914 selects objects whose reliability is equal to or greater than a preset threshold value Th from the detected objects after scaling by the metadata scaling processing unit 913. The reliability filter processing unit 914 sends the objects whose reliability is equal to or greater than the threshold value Th to the synthesis processing unit 930.
[0031] The division processing unit 920 has an image division processing unit 921 , an image scaling processing unit 922 , an object detection processing unit 923 , a metadata adjustment processing unit 924 , and a confidence filter processing unit 925 .
[0032] The image division processing unit 921 divides the input image received as a video input into multiple divided images [i][j] (0≦i≦Nw-1, 0≦j≦Nh-1), where Nw is the number of divisions in the width direction and Nh is the number of divisions in the height direction.
[0033] The image scaling processing unit 922 performs a scaling process to reduce each of the multiple divided images [i] [j] divided by the image division processing unit 921 to a specified image size that can be input to an object detection model based on deep learning. The image scaling processing unit 922 reduces the image size while maintaining parameter values such as the ratio between the width and height of each divided image so that the image size corresponds to the size of an input image of the object detection model used by the object detection processing unit 923 described later.
[0034] The object detection processing unit 923 receives the divided images reduced by the image scaling processing unit 922 as input and performs calculations on a trained object detection model based on a predetermined deep learning. The object detection processing unit 923 provides the reduced divided images as input to a prepared object detection model, performs calculations on the object detection model, and generates a set of attribute information including attribute values of objects included in the divided images and frames surrounding the objects as metadata for the divided images. The frame surrounding the object includes at least the center coordinates (X, Y) of the frame, the height (H) of the frame, and the width (W) of the frame.
[0035] The object detection processing unit 923 detects objects included in the segmented images using an object detection model such as YOLO that uses a convolutional neural network (CNN) that has been trained in advance by a computing device such as an external server.
[0036] The metadata adjustment processing unit 924 performs metadata adjustment processing for mapping a frame surrounding an object detected by the object detection processing unit 923 onto the original image before division, that is, the input image.
[0037] The reliability filter processing unit 925 selects objects whose reliability is equal to or greater than a preset threshold value Th from the group of detected objects after the metadata adjustment processing unit 924 has adjusted the metadata. The reliability filter processing unit 925 sends the objects whose reliability is equal to or greater than the threshold value Th to the synthesis processing unit 930.
[0038] The synthesis processing unit 930 performs processing to interpolate objects not detected by the overall processing unit 910 with objects detected by the division processing unit 920. The synthesis processing unit 930 has a metadata selection processing unit 931 and a metadata total processing unit 932.
[0039] The metadata selection processing unit 931 performs a match determination between the object detected by the overall processing unit 910 and the object detected by the segmentation processing unit 920, and outputs the object that does not match as a target for interpolation.
[0040] A metadata total processing unit 932 combines the output from the metadata selection processing unit 931 for each divided image with the output of the overall processing unit 910, and outputs the result as a final object detection result.
[0041] The object detection device 90 shown in Fig. 3 is capable of detecting both large and small objects at the same time, even for high-definition video that exceeds the input constraint size of object detection based on deep learning. However, when ultra-high-definition video of 4K or more is input as the video input, the number of image divisions in the division processing unit 920 is large, and the amount of calculation becomes enormous. For example, in the case of YOLOv3, even in YOLO with the largest input constraint size, the maximum number of divided images is 18, and the amount of calculation becomes enormous.
[0042] The object detection device 10 according to this embodiment can accurately detect both large and small objects at the same time while suppressing an increase in the amount of calculations, even when ultra-high definition video of 4K or more is input as the video input.
[0043] FIG. 4 is a block diagram showing an example of a functional configuration of the object detection device 10 according to the first embodiment.
[0044] 4, the object detection device 10 according to the first embodiment has, as its functional components, an overall processing unit 110, a divided image narrowing down unit 120, a division processing unit 130, and a synthesis processing unit 140. Each functional component is realized by the CPU 11 reading out an object detection program stored in the ROM 12 or the storage 14, expanding it in the RAM 13, and executing it.
[0045] The overall processing unit 110 has an image scaling processing unit 111 , an object detection processing unit 112 , a metadata scaling processing unit 113 , and a confidence filter processing unit 114 .
[0046] The image scaling processing unit 111 executes a scaling process to reduce an input image input as a video input to an image size that can be input to an object detection process based on a deep learning result. The image scaling processing unit 111 can reduce the image size while maintaining the ratio of the width and height of the input image. The input image input as a video input is, for example, an image captured by an imaging device (not shown).
[0047] As object detection processing, the object detection processing unit 112 uses the input image reduced by the image scaling processing unit 111 as input and performs calculations on a trained object detection model based on a predetermined deep learning. The object detection processing unit 112 provides the reduced input image as input to a previously prepared object detection model, performs calculations on the object detection model, and generates a set of attribute information including an attribute value of an object included in the input image and a frame surrounding the object as metadata of the input image (first metadata). The frame surrounding the object included in the metadata of the input image is defined as a rectangular frame BB1. The rectangular frame BB1 includes at least the center coordinates (X, Y) of the frame, the height (H) of the frame, and the width (W) of the frame.
[0048] The object detection processing unit 112 detects an object included in the input image using an object detection model such as YOLO that uses a convolutional neural network (CNN) that has been trained in advance by a computing device such as an external server.
[0049] The metadata scaling processing unit 113 performs a scaling process to enlarge the rectangular frame BB1 included in the metadata of the input image generated by the object detection processing unit 112 so that it corresponds to the size of the input image before reduction. This is because the metadata generated by the object detection processing unit 112 is for the reduced input image. The metadata scaling processing unit 113 scales the rectangular frame BB1 included in the metadata of the input image by using, for example, bilinear interpolation.
[0050] For example, if the input image width is W in , height H in The width of the input image reduced by the image scaling processor 111 is W det , height H det In this case, the metadata scaling processing unit 113 calculates the center coordinates (X bb ,Y bb ) to (X bb ×W in / W det ,Y bb ×H in / H det ), frame width W bb and height H bb , W bb ×W in / W det , H bb ×H in / H det The rectangular frame BB1 is mapped onto the original input image by scaling it to .
[0051] The reliability filter processing unit 114 performs reliability filtering processing to select objects whose reliability is equal to or greater than a preset threshold value Th from the detected object group after scaling by the metadata scaling processing unit 113. The reliability filter processing unit 114 sends the objects whose reliability is equal to or greater than the threshold value Th to the synthesis processing unit 140.
[0052] Furthermore, the reliability filter processing unit 114 sends objects whose reliability is less than the threshold value Th to the segmented image narrowing down unit 120 .
[0053] The divided image narrowing down unit 120 performs processing to narrow down a group of divided images obtained by dividing an input image to a predetermined number of selected divided images. The divided image narrowing down unit 120 has an estimated interpolation object number calculation processing unit 121 and a target divided image determination processing unit 122.
[0054] The estimated interpolated object number calculation processing unit 121 performs an estimated interpolated object number calculation process that calculates an estimated interpolated object number, which is an estimated value of the interpolated object number, from objects whose reliability is less than a threshold Th. The estimated interpolated object number calculation process will be described later. The estimated interpolated object number calculation processing unit 121 uses the object detection result of the overall processing unit 110 in the immediately preceding frame to calculate the estimate. Specifically, the estimated interpolated object number calculation processing unit 121 extracts a group of objects that have been excluded from the detection result by the overall processing unit 110 because their reliability is less than the threshold Th, and assigns them to the corresponding divided regions (target coordinate ranges of the divided images for the original input image).
[0055] The target divided image determination processing unit 122 performs a target divided image determination process for determining a divided image to be processed by the segmentation processing unit 130, based on the estimated number of interpolated objects calculated by the estimated number of interpolated objects calculation processing unit 121. The process for determining a divided image to be processed by the segmentation processing unit 130 will be described later.
[0056] The division processing unit 130 includes an image division processing unit 131 , a divided image selection processing unit 132 , an image scaling processing unit 133 , an object detection processing unit 134 , a metadata adjustment processing unit 135 , and a reliability filter processing unit 136 .
[0057] The image division processing unit 131 divides the input image input as a video input into a number N in the width direction. w , the number of divisions in the height direction N h Let the input image be N div Segmented images [i][j](0≦i≦N w -1,0≦j≦N h -1).
[0058] The divided image selection processing unit 132 selects N divided images to be processed that are determined by the target divided image determination processing unit 122 from among the divided images output by the image division processing unit 131. div_narrow pieces(N div ≧Ndiv_narrow A divided image selection process is performed to select a divided image from the divided image.
[0059] The image scaling processing unit 133 performs scaling processing to reduce the divided images [i] [j] divided by the image division processing unit 131 and selected by the divided image selection processing unit 132 to a specified image size that can be input to an object detection model based on deep learning. The image scaling processing unit 133 reduces the image size while maintaining parameter values such as the ratio between the width and height of each divided image so that the image size corresponds to the size of the input image of the object detection model used by the object detection processing unit 134 described later.
[0060] As object detection processing, the object detection processing unit 134 uses the divided images reduced by the image scaling processing unit 133 as input and performs calculations on a trained object detection model based on a predetermined deep learning. The object detection processing unit 134 provides the reduced divided images as input to a prepared object detection model, performs calculations on the object detection model, and generates a set of attribute information including attribute values of objects included in the divided images and frames surrounding the objects as metadata (second metadata) of the divided images. The frame surrounding the object included in the metadata of the divided images is defined as a rectangular frame BB2. The rectangular frame BB2 includes at least the center coordinates (X, Y) of the frame, the height (H) of the frame, and the width (W) of the frame.
[0061] The object detection processing unit 134 detects objects included in the segmented images using an object detection model such as YOLO that uses a convolutional neural network (CNN) that has been trained in advance by a computing device such as an external server.
[0062] Here, the size of the input image is W in (Width) x H in Let W be the specified image size that can be input to the pre-prepared object detection model as (height). det (Width) x H det In this case, the number of divisions in the width direction of the input image is N w , the number of divisions in the height direction N h is given by the following equations (1) and (2).w_max is the upper limit of the number of divisions in the width direction of the input image, N h_max indicates the upper limit of the number of divisions in the height direction of the input image.
[0063] N w =min(N w_max ,ceiling(W in / W det ))···(1) N h =min(N h_max , ceiling(H in / H det ))···(2)
[0064] The metadata adjustment processing unit 135 performs metadata adjustment processing for mapping the rectangular frame BB2 detected by the object detection processing unit 134 to the original image before division, that is, the input image. More specifically, the central coordinates (x bb_div ,y bb_div ), width w bb_div , height h bb_div The center coordinate of the frame after adjustment to the coordinates of the original image is (x bb ,y bb ), width w bb , height h bb The metadata adjustment processor 135 maps the rectangular frame BB2 onto the input image based on the following equations.
[0065] x bb =x bb_div ×floor(W in / N w )+floor(W in / N w )×i···(3) y bb =y bb_div ×floor(H in / N h )+floor(H in / N h ) × j (4) w bb =w bb_div ×floor(W in / N w ) · · · (5) h bb =h bb_div ×floor(H in / N h ) · · · (6)
[0066] The reliability filter processing unit 136 performs reliability filtering processing to select objects whose reliability is equal to or greater than a preset threshold value Th from the detected object group after the metadata adjustment processing unit 135 has adjusted the metadata. The reliability filter processing unit 136 sends the objects whose reliability is equal to or greater than the threshold value Th to the synthesis processing unit 140.
[0067] The synthesis processing unit 140 performs processing to interpolate objects not detected by the overall processing unit 110 with objects detected by the division processing unit 130. The synthesis processing unit 140 has a metadata selection processing unit 141 and a metadata summation processing unit 142.
[0068] The metadata selection processing unit 141 performs a metadata selection process in which it determines whether the object detected by the overall processing unit 110 matches the object detected by the division processing unit 130, and outputs the object that does not match as an object to be interpolated. The metadata selection process performed by the metadata selection processing unit 141 will be described.
[0069] The metadata selection processing unit 141 compares the metadata of one of the divided images with the metadata of the entire image, and judges whether or not the attribute value of the metadata of the entire image matches the attribute value of the metadata of the divided image. If they match, the metadata selection processing unit 141 calculates the degree of overlap. Specifically, the metadata selection processing unit 141 calculates the degree of overlap by dividing the overlapping area between a rectangular frame BB1 included in the metadata of the entire image and a rectangular frame BB2 included in the metadata of the divided image by the area of the rectangular frame BB2 included in the metadata of the divided image. If they match, the metadata selection processing unit 141 similarly judges whether or not there is a match for another divided image.
[0070] Then, if the degree of overlap exceeds a preset threshold value, the metadata selection processing unit 141 determines that the attribute information in the metadata of the divided image and the attribute information in the metadata of the entire image are identical attribute information, and removes the same attribute information from the metadata of the divided image.
[0071] The metadata totalization processor 142 performs metadata totalization processing to combine the output from the metadata selection processor 141 for each divided image with the output of the overall processor 110 and output it as a final object detection result. In other words, the metadata totalization processor 142 generates metadata for the input image by interpolating the metadata of the overall image with the metadata of the divided images from which overlapping attribute information has been removed.
[0072] The object detection device 10 shown in Fig. 4 is capable of simultaneously detecting both large and small objects even for high-definition video that exceeds the input constraint size of object detection based on deep learning. Even when ultra-high definition video such as 4K is input, the object detection device 10 narrows down the segmented images to be processed, so that it is possible to simultaneously detect both large and small objects with high accuracy while suppressing an increase in the amount of calculation.
[0073] Next, the operation of the object detection device 10 will be described.
[0074] 5 is a flowchart showing the flow of the object detection process by the object detection device 10. The CPU 11 reads out an object detection program from the ROM 12 or the storage 14, deploys it in the RAM 13, and executes it, thereby performing the object detection process.
[0075] In step S1, the CPU 11, functioning as the overall processing unit 110 and the division processing unit 130, acquires an input image from the outside.
[0076] Following step S1, in step S2, the CPU 11 functions as the overall processing unit 110 to perform overall image processing, which is object detection processing, on the entire input image.
[0077] Following step S2, in step S3, the CPU 11, functioning as the divided-image narrowing-down unit 120, executes a divided-image narrowing-down process.
[0078] Following step S3, in step S4, the CPU 11 functions as the segmentation processing unit 130 to execute segmented image processing, which is object detection processing, on the segmented images.
[0079] Following step S4, in step S5, the CPU 11 functions as the synthesis processor 140 and performs synthesis processing of combining the metadata generated in the entire image processing and the metadata generated in the divided image processing.
[0080] Following step S5, in step S6, the CPU 11 outputs the metadata generated in the synthesis process to the outside.
[0081] FIG. 6 is a flowchart showing the details of the whole image processing in step S2 of FIG.
[0082] In step S11, the CPU 11 executes scaling processing on the input image as the image scaling processing unit 111. The scaling processing is the processing described above as the function of the image scaling processing unit 111.
[0083] Following step S11, in step S12, the CPU 11 executes object detection processing on the entire image after the scaling processing as the object detection processing unit 112. The object detection processing is the processing described above as the function of the object detection processing unit 112.
[0084] Following step S12, in step S13, the CPU 11 executes metadata scaling processing as the metadata scaling processing unit 113. The metadata scaling processing is the processing described above as the function of the metadata scaling processing unit 113.
[0085] Following step S13, in step S14, the CPU 11 executes reliability filtering on the entire image as the reliability filtering unit 114. The reliability filtering on the entire image is the processing described above as the function of the reliability filtering unit 114.
[0086] FIG. 7 is a flowchart showing details of the divided image narrowing down process in step S3 of FIG.
[0087] In step S21, the CPU 11 executes an estimated interpolated object number calculation process as the estimated interpolated object number calculation processor 121. The estimated interpolated object number calculation process will be described later in detail.
[0088] Following step S21, in step S22, the CPU 11 executes a target divided image determination process as the target divided image determination processing unit 122. The target divided image determination process will be described in detail later.
[0089] FIG. 8 is a flowchart showing the details of the divided image processing in step S4 of FIG.
[0090] In step S31, the CPU 11 executes image segmentation processing on an input image as the image segmentation processing unit 131. The image segmentation processing is the processing described above as the function of the image segmentation processing unit 131.
[0091] Following step S31, in step S32, the CPU 11 executes a divided-image selection process as the divided-image selection processing unit 132. The divided-image selection process is the process described above as the function of the divided-image selection processing unit 132.
[0092] Following step S32, in step S33, the CPU 11 executes scaling processing on the divided images as the image scaling processing unit 133. The scaling processing on the divided images is the processing described above as the function of the image scaling processing unit 133.
[0093] Following step S33, in step S34, the CPU 11 executes object detection processing on the divided images as the object detection processing unit 134. The object detection processing on the divided images is the processing described above as the function of the object detection processing unit 134.
[0094] Following step S34, in step S35, the CPU 11 executes the metadata adjustment process as the metadata adjustment processor 135. The metadata adjustment process is the process described above as the function of the metadata adjustment processor 135.
[0095] Following step S35, in step S36, the CPU 11 executes reliability filter processing on the divided image as the reliability filter processing unit 136. The reliability filter processing on the divided image is the processing described above as the function of the reliability filter processing unit 136.
[0096] FIG. 9 is a flowchart showing details of the synthesis process in step S5 of FIG.
[0097] In step S41, the CPU 11 executes metadata selection processing for the divided images as the metadata selection processing unit 141. The metadata selection processing is the processing described above as the function of the metadata selection processing unit 141.
[0098] Following step S41, in step S42, the CPU 11 executes metadata totalization processing as the metadata totalization processing unit 142. The metadata totalization processing is the processing described above as the function of the metadata totalization processing unit 142.
[0099] FIG. 10 is a flowchart showing details of the estimated interpolation object number calculation process performed by the CPU 11.
[0100] First, in step S101, the CPU 11 sets a variable Im to 0. Following step S101, in step S102, the CPU 11 determines whether the variable Im is equal to the image division number N div Determine whether it is less than.
[0101] The variable Im is the number of image divisions N div If it is not less than (step S102; No), the CPU 11 ends the series of estimated interpolation object number calculation processes. div If it is less than the estimated value [Im] (Step S102: Yes), in Step S103, the CPU 11 sets the estimated value [Im] to 0. Following Step S103, in Step S104, the CPU 11 sets the variable no to 0.
[0102] Following step S104, in step S105, the CPU 11 determines whether the variable no is less than the extracted meta number. The extracted meta number refers to the number of metadata pieces detected by the overall processing unit 110 that have a reliability less than Th.
[0103] If it is determined in step S105 that the variable no is equal to or greater than the extracted meta number (step S105; No), in step S106, the CPU 11 increments the variable Im by 1. When the process of step S106 ends, the CPU 11 returns to the process of step S102.
[0104] On the other hand, if it is determined in step S105 that the variable no is less than the number of extracted metas (step S105; Yes), in step S107, CPU 11 determines whether the position (center coordinates) of the extracted meta [no] is within the divided area [Im]. A divided area refers to the coordinate area of each divided image, as shown in FIG. 11. Coordinates on the boundary line of a divided area should correspond to only one area and should not overlap. Note that in FIG. 11, the entire image is divided into eight, but the number of divisions is not limited to this example.
[0105] In the judgment of step S107, if the position (center coordinates) of the extracted meta [no] is within the divided region [Im] (step S107; Yes), in step S108, the CPU 11 multiplies the reliability of the extracted meta [no] by a predetermined coefficient α to obtain an expected reliability value. Here, the coefficient α is a value representing the rate at which the reliability is improved by reducing and mitigating the characteristic parts of the object by the division process compared to the whole process.
[0106] Following step S108, in step S109, the CPU 11 determines whether or not the expected reliability value calculated in step S108 is less than a predetermined threshold value Th.
[0107] If it is determined in step S109 that the expected reliability value is equal to or greater than the predetermined threshold value Th (step S109; No), the CPU 11 increments the estimated value [Im] by one in step S110.
[0108] Following step S110, in step S111, the CPU 11 increments the variable no by one.
[0109] If it is determined in step S107 that the position (center coordinates) of the extracted meta [no] is not within the divided region [Im] (step S107; No), the CPU 11 skips the process to step S111. If it is determined in step S109 that the expected reliability value is less than a predetermined threshold value Th (step S109; Yes), the CPU 11 skips the process to step S111.
[0110] The CPU 11 can calculate the estimated value [Im] by executing the series of processes shown in Fig. 10. When the calculation of the estimated value [Im] is completed, in the target divided image determination process in the divided image narrowing-down unit 120, the top N images with the largest estimated value [Im] (the largest number of estimated interpolated objects) are selected so as to maximize the number of detected objects. div_narrow The divided images can be used as refined divided images.
[0111] In the object detection device 10 according to this embodiment, for example, when the number of divided images in a 4K video is N div is 18, and the number of refined divided images N div_narrow If is set to 2, the amount of calculation in the division process can be reduced to 2 / 18 (=1 / 9).
[0112] Although the object detection device 10 according to the present embodiment is configured to select a refined image from divided images obtained by dividing an input image, the present disclosure is not limited to this. Depending on the refinement result of the divided image refinement unit 120, a target image area may be extracted from the original input image and output as a refined divided image to the object detection processing unit 134 at the subsequent stage. In addition, the object detection result from the overall processing unit 110 input to the divided image refinement unit 120 may be the result of the immediately preceding frame instead of the current frame, and the refinement for the next frame may be performed by the divided image refinement unit 120. By using the result of the immediately preceding frame, it becomes possible to execute the processing of the division processing unit 130 in parallel without waiting for the processing of the overall processing unit 110.
[0113] Second embodiment The functional configuration of the object detection device 10 according to the second embodiment of the present disclosure is the same as the functional configuration of the object detection device 10 according to the first embodiment. In the second embodiment, in the target divided image determination process in the target divided image determination processing unit 122, the top N values obtained by dividing the estimated value calculated by the estimated interpolation object number calculation processing unit 121 by the average estimated value are selected. div_narrow The divided images are narrowed down to a set of divided images. By narrowing down the divided images in this way, the object detection device 10 according to the second embodiment can equalize the detection density between the divided images. The average estimated value is calculated by the estimated interpolation object number calculation processing unit 121.
[0114] The average estimated value is a time average value of the estimated values for each divided region calculated for each frame. For example, the average estimated value may be a moving average or est_avg =O est_avg +(1-u)O est_current (O est_avg :Average estimate, O est_current : calculated estimated value, u: forgetting factor).
[0115] The object detection device 10 according to this embodiment calculates the top N estimated values obtained by dividing the estimated value by the average estimated value. div_narrow By narrowing down the segmented images to the segmented images, only segmented images with high estimated values are not continuously selected. In other words, the object detection device 10 according to the present embodiment selects segmented images with low average estimated values that are unlikely to be selected, so that the detection density between the segmented images can be made uniform.
[0116] Third embodiment The object detection device 10 according to the third embodiment of the present disclosure is characterized in that, in addition to calculating an estimated value for each divided image when the division is finer, the object detection device 10 also calculates an estimated value for each divided image when the division is coarser, and the combination of divided images with the largest estimated value is used as a refined divided image.
[0117] 12 is a block diagram showing an example of a functional configuration of the object detection device 10 according to the third embodiment. Each functional configuration is realized by the CPU 11 reading out an object detection program stored in the ROM 12 or the storage 14, expanding it in the RAM 13, and executing it.
[0118] Object detection device 10 shown in FIG. 12 differs from object detection device 10 shown in FIG. 4 in that image segmentation processing unit 131 is divided into first image segmentation processing unit 131A and second image segmentation processing unit 131B.
[0119] The first image division processing unit 131A, like the image division processing unit 131, divides the input image input as a video input into a number N in the width direction. w , the number of divisions in the height direction N h Let the input image be N div The divided images divided by the first image division processing unit 131A are also called fine-grained divided images.
[0120] The second image division processing unit 131B divides the input image input as a video input into N' div pieces(N div >N div_narrow >N' div) into divided images. That is, the second image division processing unit 131B divides the input image more roughly than the first image division processing unit 131A. The divided images divided by the second image division processing unit 131B are also referred to as coarse-grained divided images.
[0121] The divided image narrowing unit 120 narrows the number of divided images to N div In addition to the estimates for each divided region (fine grain estimates), the number of divided images is set to N' div The estimated value (coarse-grained estimated value) in each divided region when div_narrow The segmentation processing unit 130 selects a target segmented image based on the result of the narrowing down by the segmented image narrowing unit 120, and performs object detection processing.
[0122] In addition, when the division is made coarse, the reliability improved by the division process is less than when the division process is made fine. Therefore, when calculating the coarse-grained estimated value, the estimated interpolation object number calculation processing unit 121 multiplies the reliability of the extracted object by a coefficient β (β<α).
[0123] The object detection device 10 of the third embodiment not only calculates an estimated value for each divided image when the division is finer, but also calculates an estimated value for each divided image when the division is coarser, thereby optimizing the division of the input image while reducing the amount of calculations.
[0124] (Fourth embodiment) The object detection device 10 according to the fourth embodiment of the present disclosure is characterized in that, like the third embodiment, it also calculates an estimate for each divided image when the division is made coarse, and a combination of divided images with a large estimate value is made into a refined divided image. Furthermore, the object detection device 10 according to the fourth embodiment of the present disclosure is characterized in that it dynamically corrects the calculated estimate value based on the difference between the estimate value of the interpolated object number and the actual value.
[0125] 13 is a block diagram showing an example of a functional configuration of the object detection device 10 according to the fourth embodiment. Each functional configuration is realized by the CPU 11 reading out an object detection program stored in the ROM 12 or the storage 14, expanding it in the RAM 13, and executing it.
[0126] The object detection device 10 shown in FIG. 13 differs from the object detection device 10 shown in FIG. 12 in that the divided image narrowing down unit 120 further includes storage units 123A and 123B and a correction coefficient calculation processing unit 124.
[0127] The storage unit 123A stores the estimated interpolated object number output by the estimated interpolated object number calculation processing unit 121. The storage unit 123B stores the target divided image number for identifying the target divided image output by the target divided image determination processing unit 122. The correction coefficient calculation processing unit 124 calculates a coefficient used for calculating an expected reliability value based on the information stored in the storage units 123A and 123B. Specifically, when the object detection result of the next frame corresponding to the information stored in the storage units 123A and 123B is output, the correction coefficient calculation processing unit 124 calculates a difference value between an actual value and an estimated value. If the estimated value is a coarse-grained estimated value, the correction coefficient calculation processing unit 124 updates the correction coefficient γ′ used when calculating the coarse-grained estimated value, and if the estimated value is a fine-grained estimated value, the correction coefficient calculation processing unit 124 updates the correction coefficient γ used when calculating the fine-grained estimated value. The correction coefficient calculation processing unit 124 updates the correction coefficients by the following formulas.
[0128] γ'=u'×d coarce (d coarce = Actual value when coarse grained divided image is selected - fine grained estimated value) γ = u × d fine (d fine = Actual value when fine-grained divided image is selected - coarse-grained estimated value) u,u': predetermined error coefficients less than 1
[0129] Note that γ is a common value between fine-grained divided images, and similarly, γ' is a common value between coarse-grained divided images.
[0130] When calculating an estimated value, the estimated interpolation object number calculation processing unit 121 performs a target divided image determination process by adding a correction coefficient according to the corresponding division method to the coarse-grained estimated value and fine-grained estimated value described in the third embodiment and using the resultant value as each corrected estimated value.
[0131] The object detection device 10 according to the fourth embodiment can optimize the division of the input image while reducing the amount of calculation by calculating an estimated value for each divided image when the division is coarse, in addition to calculating an estimated value for each divided image when the division is fine. Furthermore, the object detection device 10 according to the fourth embodiment can improve the accuracy of the expected reliability value by updating the coefficient used to calculate the expected reliability value using the difference between the actual value and the estimated value.
[0132] In the metadata selection process of the object detection device 10 in each of the above embodiments, a two-stage threshold process may be performed. Specifically, even if the degree of overlap is equal to or greater than a first threshold, it may be determined whether or not the ratio between the area of the rectangular frame BB2 included in the metadata of the divided image and the area of the rectangular frame BB1 of the object included in the metadata of the entire image is equal to or less than a second threshold. If it is equal to or less than the second threshold, it may be determined that the attribute information of the metadata MD1 of the divided image and the attribute information of the metadata MD2 of the entire image are not common, and may be subject to the interpolation process by the synthesis processing unit 140. By performing a two-stage threshold process while taking into consideration the area ratio between the objects in addition to the degree of overlap, the object detection device 10 excludes attribute information common to the metadata of the divided image and the metadata of the entire image from the object of interpolation.
[0133] Furthermore, in the metadata selection process, the object detection device 10 in each of the above embodiments may further determine whether or not attribute information having an attribute value that does not match any of the attribute values included in the metadata of the entire image is included in the metadata of the divided image. When attribute information having a non-matching attribute value is included in the metadata of the divided image, the object detection device 10 compares the area of the rectangular frame BB2 of the object included in the metadata of the divided image with the area of the region of the input image corresponding to the rectangular frame BB2. That is, the object detection device 10 may eliminate overlapping metadata included in the divided image and the entire image based on the overlapping degree and the area ratio between the objects.
[0134] By eliminating overlapping metadata contained in the divided images and the entire image, object detection device 10 can eliminate metadata related to erroneous detection of objects resulting from division of the input image by division processing unit 130. Furthermore, by eliminating overlapping metadata contained in the divided images and the entire image, object detection device 10 can interpolate, based on the metadata of the divided images, objects of a relatively small size that the entire processing unit 110 was unable to detect in the entire image obtained by reducing the input image.
[0135] In addition, the object detection process executed by the CPU by reading the software (program) in each of the above embodiments may be executed by various processors other than the CPU. In this case, examples of the processor include a PLD (Programmable Logic Device) whose circuit configuration can be changed after manufacture such as an FPGA (Field-Programmable Gate Array), and a dedicated electric circuit which is a processor having a circuit configuration designed exclusively for executing a specific process such as an ASIC (Application Specific Integrated Circuit). The object detection process may be executed by one of these various processors, or may be executed by a combination of two or more processors of the same or different types (for example, a plurality of FPGAs, and a combination of a CPU and an FPGA). More specifically, the hardware structure of these various processors is an electric circuit that combines circuit elements such as semiconductor elements.
[0136] In addition, in each of the above embodiments, the object detection program is described as being pre-stored (installed) in the storage 14, but the present invention is not limited to this. The program may be provided in a form stored in a non-transitory storage medium such as a CD-ROM (Compact Disk Read Only Memory), a DVD-ROM (Digital Versatile Disk Read Only Memory), or a USB (Universal Serial Bus) memory. The program may also be downloaded from an external device via a network.
[0137] The following supplementary notes are further disclosed regarding the above embodiment. (Additional note 1) 1. An object detection device that outputs metadata including at least an attribute, a reliability, a center coordinate, and a frame surrounding an object included in an input image from the input image, Memory, at least one processor coupled to the memory; Including, The processor, 1. An object detection method for outputting metadata including at least an attribute, a reliability, a center coordinate, and a frame surrounding an object included in an input image from the input image, comprising: Scaling the input image and performing an object detection process to obtain first metadata for the entire input image; Narrowing down a group of divided images obtained by dividing the input image to a predetermined number of selected divided images; performing an object detection process on each of the selected divided images to obtain second metadata for each of the selected divided images; removing the obtained second metadata that overlaps with the obtained first metadata, and outputting the metadata by combining the obtained first metadata with the unremoved first metadata. The object detection device is configured as follows.
[0138] (Additional note 2) A non-transitory storage medium storing a program executable by a computer to execute an object detection process for outputting metadata including at least an attribute, a reliability, a center coordinate, and a frame surrounding an object included in an input image, the object detection process comprising: The object detection process includes: 1. An object detection method for outputting metadata including at least an attribute, a reliability, a center coordinate, and a frame surrounding an object included in an input image from the input image, comprising: Scaling the input image and performing an object detection process to obtain first metadata for the entire input image; Narrowing down a group of divided images obtained by dividing the input image to a predetermined number of selected divided images; performing an object detection process on each of the selected divided images to obtain second metadata for each of the selected divided images; removing the obtained second metadata that overlaps with the obtained first metadata, and outputting the metadata by combining the obtained first metadata with the unremoved first metadata. Non-transitory storage medium. [Explanation of symbols]
[0139] 10 Object detection device 110 Overall processing unit 120 Split Image Refinement Section 130 Division Processing Unit 140 Synthesis Processing Unit
Claims
1. 1. An object detection device that outputs metadata including at least an attribute, a reliability, a center coordinate, and a frame surrounding an object included in an input image from the input image, an overall processing unit that obtains first metadata for the entire input image by scaling the input image and performing an object detection process; a divided image narrowing-down unit that narrows down a group of divided images obtained by dividing the input image to a predetermined number of selected divided images; a segmentation processing unit that performs an object detection process on each of the selected segmented images to obtain second metadata for each of the selected segmented images; a synthesis processing unit that removes the second metadata obtained by the division processing unit that overlaps with the first metadata obtained by the overall processing unit, synthesizes the second metadata that has not been removed and the first metadata obtained by the overall processing unit, and outputs the metadata; Equipped with The divided image narrowing down unit calculates an estimate of the number of second metadata that do not overlap with the first metadata for each divided image using the reliability, and narrows down the selected divided images based on the estimate.
2. the image segment narrowing-down unit calculates an estimate of the number of the second metadata that does not overlap with the first metadata for each of the image segments, and narrows down the selected image segments based on the estimate; The object detection device according to claim 1, wherein the estimated value is a value obtained by tallying up, for each area in which the divided image is located, the number of first metadata pieces whose reliability is less than a threshold and whose value obtained by multiplying the reliability by a predetermined coefficient is equal to or greater than the threshold.
3. The object detection device according to claim 2 , wherein the segmented image narrowing-down unit selects the selected segmented images in descending order of the estimated value until the predetermined number is reached.
4. The object detection device according to claim 2 , wherein the segmented image narrowing-down unit selects the selected segmented images in descending order of a value obtained by dividing the estimated value by an average value of the estimated values, until the predetermined number is reached.
5. The object detection device of claim 2, wherein the divided image narrowing-down unit calculates the estimated value for each of a first group of divided images divided into a first size and a second group of divided images divided into a second size larger than the first size, and narrows down to a predetermined number of selected divided images based on the calculated estimated values.
6. 6. The object detection device according to claim 5, wherein the divided image narrowing-down unit updates a coefficient used to calculate the estimated value by using a difference between the estimated value calculated for each of the first divided image group and the second divided image group and a result of the object detection processing of the overall processing unit.
7. An object detection device that outputs metadata from an input image, the metadata including at least an attribute, a reliability, a center coordinate, and a frame surrounding an object included in the input image, an overall processing unit that obtains first metadata for the entire input image by scaling the input image and performing an object detection process; a divided image narrowing-down unit that narrows down a group of divided images obtained by dividing the input image to a predetermined number of selected divided images; a segmentation processing unit that performs an object detection process on each of the selected segmented images to obtain second metadata for each of the selected segmented images; a synthesis processing unit that removes the second metadata obtained by the division processing unit that overlaps with the first metadata obtained by the overall processing unit, synthesizes the second metadata that has not been removed and the first metadata obtained by the overall processing unit, and outputs the metadata; Equipped with the image segment narrowing-down unit calculates an estimate of the number of the second metadata that does not overlap with the first metadata for each of the image segments, and narrows down the selected image segments based on the estimate; The estimated value is a value obtained by tallying up, for each area in which the divided image is located, the number of first metadata pieces whose reliability is less than a threshold and whose value obtained by multiplying the reliability by a predetermined coefficient is equal to or greater than the threshold, among the first metadata pieces.
8. 1. An object detection method for outputting metadata including at least an attribute, a reliability, a center coordinate, and a frame surrounding an object included in an input image from the input image, comprising: Scaling the input image and performing an object detection process to obtain first metadata for the entire input image; Narrowing down a group of divided images obtained by dividing the input image to a predetermined number of selected divided images; performing an object detection process on each of the selected divided images to obtain second metadata for each of the selected divided images; removing the obtained second metadata that overlaps with the obtained first metadata, synthesizing the unremoved second metadata and the obtained first metadata, and outputting the metadata; In the narrowing down of the selected divided images, an estimate of the number of the second metadata that does not overlap with the first metadata is calculated for each of the divided images using the reliability, and the narrowing down of the selected divided images is based on the estimate. A method for object detection, in which the processing is performed by a computer.
9. An object detection method for outputting metadata including at least an attribute, a reliability, a center coordinate, and a frame surrounding an object included in an input image from the input image, comprising: Scaling the input image and performing an object detection process to obtain first metadata for the entire input image; Narrowing down a group of divided images obtained by dividing the input image to a predetermined number of selected divided images; performing an object detection process on each of the selected divided images to obtain second metadata for each of the selected divided images; removing the obtained second metadata that overlaps with the obtained first metadata, synthesizing the unremoved second metadata and the obtained first metadata, and outputting the metadata; In the narrowing down of the selected divided images, an estimate of the number of the second metadata that does not overlap with the first metadata is calculated for each of the divided images, and the selected divided images are narrowed down based on the estimate. the estimated value is a value obtained by tallying up, for each area in which the divided image is located, the number of the first metadata whose reliability is less than a threshold and whose value obtained by multiplying the reliability by a predetermined coefficient is equal to or greater than a threshold, among the first metadata; A method for object detection, in which the processing is performed by a computer.
10. An object detection program for causing a computer to function as the object detection device according to any one of claims 1 to 6.
Citation Information
Patent Citations
Image processing system and image processing method
JP2019139497A
Target detection program, target detection device, and target detection method
JP2020071793A
