Information processing device, information processing method, and program

By setting detection areas based on object size and ensuring overlap, the device enhances object detection accuracy and efficiency, addressing processing load and detection reliability issues in machine learning models.

JP7547415B2Active Publication Date: 2024-09-09CANON KK
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2022100387
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-06-22
Publication Date
2024-09-09
Estimated Expiration
2042-06-22

AI Technical Summary

Technical Problem

Existing object detection techniques using machine learning models face issues with increased processing load and false or non-detections when objects are located on the boundary of divided areas, leading to reduced detection accuracy and inefficiencies.

Method used

An information processing device that sets detection areas based on the size of the detection target and overlaps adjacent areas to ensure complete inclusion of objects, reducing the need for re-detection and minimizing false positives/negatives.

Benefits of technology

This approach suppresses the increase in processing load and reduces false detections and non-detections, resulting in more accurate object detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007547415000011
    Figure 0007547415000011
  • Figure 0007547415000024
    Figure 0007547415000024
  • Figure 0007547415000008
    Figure 0007547415000008
Patent Text Reader

Abstract

To reduce the occurrence of erroneous detection, non-detection and the like while suppressing increase in a processing load when detecting a detection object from an image.SOLUTION: An information processing device acquires a detection object size corresponding to each position of an image, sets a plurality of detection regions for the image and detects a detection object for each detection region from the acquired image. Here, when setting the detection region, the information processing device sets a size of the detection region at each position of the image and an overlapping range of the adjacent detection regions on the basis of the detection object size corresponding to each position.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an information processing technique for detecting a detection target object or the like from an image. [Background technology]

[0002] In recent years, learning models based on machine learning have been increasingly used as information processing for detecting target objects, etc., from images. In a learning model used to detect target objects, etc., from an image, the size of data input to the learning model is determined in advance, so pre-processing is performed to reduce or divide the image to match the input size. In addition, in a learning model, there may be a range in which the detection accuracy is high with respect to the ratio of the size of the target object to the size of the input image.

[0003] Patent Document 1 and Patent Document 2 disclose techniques that take into consideration the ratio of the size of the detection target to the size of the input image. Patent Document 1 discloses a technique for dividing a captured image into small regions of different sizes so that the ratio between the size of the divided regions and the size of the detection target is approximately constant, and further reducing the image of each divided region to match the input size of the learning model. Patent Document 2 discloses a technique for dividing a captured image by allowing the divided regions to overlap so that the ratio of the size of the detection target to the size of each divided region falls within a range that provides a high accuracy rate. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2018-22340 A [Patent Document 2] JP 2020-149565 A Summary of the Invention [Problem to be solved by the invention]

[0005] However, for example, when an object to be detected exists on the boundary line of a divided region, the reliability of the detection result becomes low, and for example, one object may be erroneously detected as two objects, or even the object itself may not be detected. For this reason, it is possible to perform the detection process again for each divided region, but in this case, the processing load (processing cost) increases. Also, for example, if the object cannot be detected, the redetection process is not performed, and the detection result remains undetected. These problems may occur in both the technologies of Patent Document 1 and Patent Document 2.

[0006] Therefore, an object of the present invention is to make it possible to reduce the occurrence of erroneous detection, non-detection, etc., while suppressing an increase in the processing load when detecting a detection target from an image. [Means for solving the problem]

[0007] The information processing device of the present invention comprises an image acquisition means for acquiring an image, a size acquisition means for acquiring a detection target size corresponding to each position of the image, an area setting means for setting a plurality of detection areas in the image, and a detection means for detecting a detection target for each of the detection areas from the image acquired by the image acquisition means, wherein the area setting means sets the size of the detection area at each position of the image and the overlap range between adjacent detection areas based on the detection target size corresponding to each position acquired by the size acquisition means. Effect of the Invention

[0008] According to the present invention, it is possible to reduce the occurrence of erroneous detection, non-detection, and the like while suppressing an increase in the processing load when detecting a detection target from an image. [Brief description of the drawings]

[0009] [Figure 1] FIG. 1 illustrates an example of the configuration of an information processing device. [Diagram 2] FIG. 2 is a diagram illustrating an example of a functional configuration of an information processing device. [Diagram 3]11A and 11B are diagrams illustrating an object detection result, integration processing, and an example of erroneous detection. [Figure 4] 11 is a flowchart of an entire information processing for performing object detection. [Diagram 5] 13 is a flowchart of a detection area setting process. [Figure 6] 5A to 5C are diagrams illustrating an example of face size and distribution in the first embodiment. [Figure 7] FIG. 4 is an explanatory diagram of an example of setting a detection area in the first stage according to the first embodiment. [Figure 8] FIG. 11 is an explanatory diagram of a detection area and an overlapping range in the second row according to the first embodiment. [Figure 9] FIG. 11 is an explanatory diagram of a detection area and an overlapping range in the third row according to the first embodiment. [Figure 10] FIG. 4 is an explanatory diagram of the number of regions in each stage and the overlapping range according to the first embodiment. [Figure 11] FIG. 2 is a diagram illustrating an example of an arrangement of all detection areas according to the first embodiment. [Figure 12] 5A to 5C are explanatory diagrams of detection area adjustment in the first embodiment. [Figure 13] FIG. 11 is an explanatory diagram of a first detection area setting according to the second embodiment. [Figure 14] FIG. 14 is an explanatory diagram of the next detection area setting in the example of FIG. 13. [Figure 15] 13 is an explanatory diagram of a detection area setting at a lower side of a detection target range according to the second embodiment; FIG. [Figure 16] 13 is an explanatory diagram of setting a next detection area at an upper side of a detection target range according to the second embodiment; FIG. [Figure 17] FIG. 17 is an explanatory diagram of the next detection area setting in the example of FIG. 16. [Figure 18] FIG. 11 is an explanatory diagram of an entire detection area within a detection target range according to the second embodiment. [Figure 19] 13A and 13B are diagrams illustrating an example of face size and distribution according to the third embodiment. [Figure 20] FIG. 13 is an explanatory diagram of an example of setting a detection area in the first stage according to the third embodiment. [Figure 21] FIG. 13 is an explanatory diagram of a detection area and an overlapping range in the second row according to the third embodiment. [Figure 22]FIG. 13 is an explanatory diagram of a detection area and an overlapping range in the third row according to the third embodiment. [Diagram 23] 13 is an explanatory diagram of the number of detection regions and the overlapping range in each stage according to the third embodiment. FIG. [Figure 24] FIG. 13 is an explanatory diagram of an example of an arrangement of all detection regions according to the third embodiment. [Diagram 25] 13 is an explanatory diagram of detection area adjustment in the third embodiment. FIG. [Figure 26] 13 is an explanatory diagram of a detection result integration process according to the fourth embodiment. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, embodiments of the present invention will be described with reference to the drawings. The following embodiments do not limit the present invention, and not all of the combinations of features described in each embodiment are necessarily essential to the solution of the present invention. The configuration of each embodiment may be appropriately modified or changed depending on the specifications of the device to which the present invention is applied and various conditions (conditions of use, environment of use, etc.). In addition, the present invention may be configured by appropriately combining parts of each embodiment described below. In the following embodiments, the same configurations are described with the same reference symbols.

[0011] [First embodiment] FIG. 1 is a diagram showing an example of a hardware configuration of an information processing device 100 according to the present embodiment. The information processing device 100 of this embodiment has a CPU 101, a memory 102, a communication interface (I / F) unit 103, a display unit 104, an input unit 105, and a storage unit 106. The CPU 101, the memory 102, the communication I / F unit 103, the display unit 104, the input unit 105, and the storage unit 106 are communicatively connected via a system bus. Note that the information processing device 100 according to this embodiment may further have other configurations.

[0012] A CPU (Central Processing Unit) 101 controls the entire information processing device 100. The CPU 101 controls the operation of each functional unit connected via, for example, a system bus. The memory 102 stores data, programs, etc. used by the CPU 101 for processing. The memory 102 also functions as the main memory, work area, etc. of the CPU 101. The CPU 101 executes processing based on an information processing program according to this embodiment stored in the memory 102, thereby realizing the functional configuration of the information processing device 100 shown in FIG. 2, which will be described later, and the processing of the flowcharts shown in FIG. 4 and FIG. 5, which will be described later. Note that a GPU (Graphics Processing Unit) may be used instead of the CPU, or the CPU and the GPU may cooperate with each other by appropriately dividing up roles.

[0013] The communication I / F unit 103 is an interface that connects the information processing device 100 to a network. The connection to the network may be made wirelessly as well as wired. The display unit 104 has a display device such as a liquid crystal display, and displays images, the results of processing by the CPU 101, a GUI (Graphical User Interface), and the like. The input unit 105 has an operation device such as a mouse or a button, and inputs user operations to the information processing device 100. The storage unit 106 stores, for example, various data and the like required when the CPU 101 performs processing related to a program. In addition, the storage unit 106 stores, for example, various data and the like obtained by the CPU 101 performing processing related to a program. Note that data, programs, and the like used by the CPU 101 for processing may be stored in the storage unit 106 instead of the memory 102.

[0014] Here, the information processing device 100 of this embodiment is a device capable of executing information processing such as detection and tracking of objects to be detected from images captured by an imaging device such as a surveillance camera, image analysis for estimating attributes of the objects, and estimating the number of objects based on the image analysis results. In this embodiment, a human face is taken as an example of an object to be detected, but the present invention is not limited to this example and can be applied to any system that detects various objects to be detected, such as vehicles and animals.

[0015] In addition, in this embodiment, an example is given in which a learning model based on machine learning is used when detecting a detection target object (a person's face) from an image. When a learning model is used to detect an object, etc., as described above, a process is performed such as reducing or dividing the image so that it fits a predetermined input size for the learning model. Also, as described above, in the learning model, there is a range in which the accuracy of object detection is high as a ratio of the size of the detection target object to the size of the input image. For this reason, in this embodiment, the image is divided, reduced, etc. to set a detection area when detecting the detection target object while fitting the input size of the learning model and taking into consideration the range in which the accuracy of object detection is high.

[0016] 2 is a functional block diagram showing an example of a functional configuration of the information processing device 100 of this embodiment. The information processing device 100 of this embodiment is configured to include an image acquisition unit 201, a detection unit 202, a size acquisition unit 203, a region setting unit 204, an integration unit 205, an output unit 206, a range setting unit 207, an upper limit setting unit 208, and a storage unit 209.

[0017] The image acquisition unit 201 acquires an image to be subjected to object detection. In the present embodiment, the image to be subjected to object detection is an image captured by an imaging device such as a security camera, and is acquired from the outside through the communication I / F unit 103. Hereinafter, image data captured by an imaging device such as a security camera and acquired by the image acquisition unit 201 will be appropriately referred to as a "captured image". In addition, the captured image is, as an example, an RGB image of 1080×720 pixels, with a horizontal (horizontal) width of 1080 pixels and a vertical (vertical) height of 720 pixels. Note that the image acquired by the image acquisition unit 201 is not limited to an RGB image of 1080×720 pixels, and any image can be used as an input image, and may have different horizontal widths and vertical heights, for example. In addition, the captured image may not only be an image directly acquired from an imaging device, but may also be an image that has been read out after being recorded on a recording medium or the like, or an image that exists on a network.

[0018] The size acquisition unit 203 acquires a distribution of the detection target sizes assumed at the positions of each pixel on the captured image acquired by the image acquisition unit 201, that is, a distribution of the object sizes of the detection targets corresponding to each position on the image. The size acquisition unit 203 may acquire the distribution of the face sizes by estimating the average face size of the face at any position on the image by interpolation when the user specifies the face size at some positions on the image via the input unit 105 of FIG. 1. The size acquisition unit 203 may also detect a face from the captured image, and estimate the average face size at any position on the image by interpolation from the detection result to acquire the distribution of the face sizes. The size acquisition unit 203 may also acquire the face size and distribution by other methods. In the estimation method by interpolation of the face size, for example, when the face size at the coordinates (x, y) on the image is s, it is assumed that the face size s can be expressed by the coordinates x, y and one or more unknown parameters. For example, it is assumed that s=ax+by+c. In this example, the unknown parameters are a, b, and c. The size acquisition unit 203 uses a set of face positions and sizes specified by the user or a set of face positions and sizes detected by face detection to obtain unknown parameters by statistical processing such as the least squares method.

[0019] The region setting unit 204 sets a plurality of detection regions on the captured image. At this time, the region setting unit 204 sets the detection regions so that adjacent detection regions overlap without omission. Although details will be described later, the region setting unit 204 of this embodiment sets the size of the detection region and the overlapping range of adjacent detection regions based on the distribution of the detection target size (face size) expected at each position acquired by the size acquisition unit 203. Hereinafter, in this embodiment, an image cut out from the captured image based on the detection region set by the region setting unit 204, that is, an image of each detection region where object detection is performed by the detection unit 202 at the subsequent stage, will be called a "detection region image". The region setting unit 204 inputs the detection region image cut out for each detection region from the captured image to the detection unit 202.

[0020] The detection unit 202 detects an object (a human face in this embodiment) as a detection target from a detection area image for each detection area set by the area setting unit 204. In this embodiment, the detection unit 202 detects a human face area from each detection area image using a learning model based on machine learning, and outputs a face detection result for each detection area. In this embodiment, the detection unit 202 performs object detection related to a plurality of attributes (classes) from the input detection area image. In this embodiment, an example is given in which the detection unit 202 outputs a face detection result using a learning model that has been machine-learned so as to be able to detect a "face wearing glasses" and a "face not wearing glasses" included in the detection area image. The detection of a "face wearing glasses" and a "face not wearing glasses" can be realized by applying, for example, the technology described in Reference 1 below.

[0021] Reference 1: J. Redmon, A. Farhadi, “YOLO9000:Bett er Faster Stronger”,Computer Vision and Pattern Recognition (CVPR) 2016.

[0022] In this embodiment, the detection result output by the detection unit 202 is information indicating the position and size of the detected face, the face attribute (class), and the reliability of the detection result. The information indicating the position and size of the face is, for example, coordinates that define a rectangular frame surrounding the face (for example, the upper left coordinates (x1, y1) and the lower right coordinates (x2, y2) of the rectangle). The information indicating the face attribute is information indicating whether the face is a "face wearing glasses" or a "face not wearing glasses". The information indicating the reliability of the detection result is output as a real number value between 0 and 1, with 0 being the lowest reliability and 1 being the highest reliability. In the following description, the rectangular frame surrounding the face is abbreviated to the "detection frame", the face attribute is abbreviated to the "attribute", and the reliability of the detection is abbreviated to the "reliability". Note that the detection result is not limited to these examples, and may be in any form of information as long as it allows the position and size of the detected face, the face attribute, and the reliability of the detection to be recognized.

[0023] Here, the detection accuracy in the detection unit 202 correlates with the face size in the detection area image. That is, for example, if the face size is too small compared to the size of the detection area image, pixels are crushed when the detection area image is reduced to the image size to be input to the detection unit 202, and the detection accuracy decreases. On the other hand, if the face size is larger than the detection area image, parts showing facial features such as the eyes and nose may not fit within the detection area image, and the detection accuracy decreases.

[0024] In addition, in machine learning, since learning is performed to improve detection accuracy using learning images, the detection accuracy will be high if the face size relative to the detection area image is close to the face size relative to the image size of the learning image. In other words, in the learning model, there is a range in which the detection accuracy is high for the ratio of the face size of the detection target to the size of the detection area image. Therefore, the area setting unit 204 determines the size of the detection area to be placed at each position on the captured image so that the face size in the detection area is a size that can obtain a highly accurate detection result relative to the size of the detection area (the size of the detection area image).

[0025] Also, for example, when a face is present at the boundary of the detection area, that is, when the face is divided at the boundary of the detection area, the detection accuracy may decrease. When a face is present at the boundary of the detection area, for example, a part of the face may be outside the detection area, the glasses may be outside the detection area, or the face may be located in a position that spans multiple detection areas. For example, when a part of the face is outside the detection area, the detection accuracy may decrease because the parts that show the facial features such as the eyes and nose are not within the detection area, or the outline of the face cannot be detected. Also, for example, if the glasses, which are the criterion for determining "a face with glasses" and "a face without glasses", are outside the detection area, the attribute cannot be determined. Furthermore, for example, when a face is located in a position that spans multiple detection areas, the detection results for one face may be output for each detection area.

[0026] In this way, when a face is present at the boundary of the detection area (when the face is divided at the boundary), the detection accuracy may decrease. In this case, it is effective to perform object detection again in order to improve the accuracy of the attributes and detection frame at the detection area boundary and to later integrate multiple detection results for one face. However, when there are many detection targets, the number of places where redetection processing is performed increases, and the number of detection processing times becomes indefinite. Furthermore, performing redetection processing increases the processing load (processing cost). Furthermore, for example, when the face itself is not detected, redetection processing is not performed, and the detection result will be undetected.

[0027] For this reason, when the information processing device 100 of this embodiment divides the captured image to set a plurality of detection regions, it sets the size of each detection region based on the expected detection target size at each position of the image, and also sets an overlapping range between adjacent detection regions. In this embodiment, the region setting unit 204 sets an overlapping range between adjacent detection regions so that they overlap at a width that is a predetermined ratio of the detection target size at each position. In this embodiment, the predetermined ratio is assumed to be 100%. That is, the region setting unit 204 sets the width of the overlapping range that overlaps adjacent detection regions to a width that can contain a detection target of a size according to each position. Since a face is listed as a detection target in this embodiment, the region setting unit 204 sets an overlapping range between the adjacent detection regions that can contain the face size located at the boundary between the adjacent detection regions. As a result, a face located at the boundary between the adjacent detection regions is included in at least one of the adjacent detection regions. Therefore, for example, there is no case where a part showing a facial feature such as a nose and eyes is not included in the detection region, or the outline of the face cannot be detected, and the detection accuracy is improved. The details of the detection region and the overlapping range will be described later.

[0028] Moreover, the area setting unit 204 sets the multiple detection areas so as to cover the entire detection target area on the captured image. Note that in this embodiment, the detection target area is a range in the captured image in which all of the multiple detection areas set by the area setting unit 204 are arranged, and is a range within this detection target area in which face detection processing is performed. The detection target area is set by the area setting unit 207 based on, for example, a user's designation. The detection target area will be described in detail later.

[0029] The upper limit setting unit 208 sets an upper limit on the number of detection regions. The upper limit on the number of detection regions may be set by the user, or may be calculated from the processing time allowed for the entire detection process if the detection processing time required per detection region is known. The upper limit on the number of detection regions will be described in detail later.

[0030] The integrating unit 205 integrates the detection results obtained by the detection unit 202 for each detection area. That is, the integrating unit 205 integrates the detection results of the detection object by the detection unit 202 based on the arrangement of the detection areas set by the area setting unit 204. In this embodiment, the integration of the detection results for each detection area is performed in two stages: integration within the detection area at the same position, and integration between adjacent detection areas. Details of the integration process will be described later.

[0031] FIG. 3 is a diagram used to explain the integration process of the detection results in the integration unit 205. In FIG. First, the integration process of the detection results corresponding to the detection regions at the same position among the respective positions of the image will be described with reference to FIG. In a detection process using a learning model, multiple detection frames 303 and 304 may be output for one detection target object 302 in a detection area 301. In such a case, the integration unit 205 calculates the overlap rate of the multiple detection results, and performs a process of integrating the detection frames by determining that they are the same face if the overlap rate is equal to or greater than a predetermined threshold. In the case of this embodiment, the overlap rate is calculated by IoU (Intersection over Union), and the threshold is set to 0.5, for example. In other words, if the quotient obtained by dividing the common part of the two detection frames 303 and 304 by the union of the detection frames 303 and 304 is 0.5 or greater, the integration unit 205 determines that the detection results are for the same face, and integrates the two detection results. As an integration method, for example, NMS (Non-Maximum Suppression) is used, which excludes detection results other than those with the highest reliability.

[0032] Next, the integration process between adjacent detection regions will be described with reference to FIG. In the case of this embodiment, as described above, there is an overlapping range between adjacent detection areas, and therefore, when a face is included even partially in the overlapping range, the detection unit 202 outputs the detection result in each detection area. Here, IoU may not be appropriate for integrating these. In addition, in the case of this embodiment, adjacent detection areas are set to overlap by the expected face size at that position, so there is an overlapping range between the detection area 305 and the detection area 306 illustrated in FIG. 3(b). Then, as in the example of FIG. 3(b), when a part of the face 307 is included in the overlapping range between the detection areas 305 and 306, the detection frame 308 is obtained in the detection area 305, and the detection frame 309 is obtained in the detection area 306. In such a case, the IoU of the detection frame 308 and the detection frame 309 is a low value, and although the detection results are for the same face, the IoU does not meet the threshold for integrating the detection frames, and therefore the integration process is not performed. Therefore, the integration unit 205 does not use IoU when integrating the detection results in the overlapping range of adjacent detection regions, but performs a process of excluding a detection frame that is included in one detection frame based on the inclusion relationship between the two detection frames. That is, in the example of FIG. 3B, the detection frame 308 included in the detection frame 309 is excluded. Furthermore, the integration unit 205 may use the reliability in addition to the inclusion relationship between the two detection frames. For example, when the reliability of the detection frame 308 included in the detection frame 309 is lower than the reliability of the detection frame 309, the included detection frame 308 may be excluded. Note that in this example, it may be determined that integration processing based on the inclusion relationship is to be performed when a difference value obtained by subtracting the reliability of the included detection frame 308 from the reliability of the included detection frame 309 is greater than a predetermined threshold value.

[0033] In addition, the result of the adjacent detection area may be included in the criteria for judging erroneous detection. FIG. 3(c) shows an example of a case where an object other than the face of the person to be detected is erroneously detected by the detection unit 202. As shown in FIG. 3(c), for example, a detection frame 311 smaller than the expected face size at a position on the edge of the detection area 310 is detected. In this way, when the size of the detection frame detected as a face is clearly smaller than the expected face size at that position, it is highly likely that only a part of the face is included in the detection area 310. In this case, a detection frame including the face detected in the detection frame 311 should be detected in the detection area 312 adjacent to the detection area 310. However, when a face is not detected in the adjacent detection area 312, it can be judged that the detection frame 311 detected in the detection area 310 is a erroneous detection result that detects a part of another object. In other words, when a face is not detected in the adjacent detection area 312 that shares the overlapping range in which the detection frame 311 was detected in the detection area 310, the integration unit 205 judges that the detection frame 311 is a frame detected erroneously. In such a case, it is considered that the detection results in the detection area 310 are unreliable, or that the aspect ratio of the detection frame 311 is different from the aspect ratio of the detection results of a genuine face, so these may also be used as criteria for judgment. The integration unit 205 performs the process of integrating the detection results obtained by the detection unit 202 in the above manner.

[0034] The output unit 206 superimposes the detection result, which is obtained after detection by the detection unit 202 and integration processing by the integration unit 205, on the captured image acquired by the image acquisition unit 201 and outputs the result. In the case of this embodiment, the output unit 206 outputs, for example, an image in which a detection frame according to an attribute is superimposed on the captured image based on the detection result. The storage unit 209 stores data used for processing in each of the functional units (201 to 208) of the information processing device 100 shown in FIG. 2, data obtained as a result of the processing, and the like.

[0035] Next, the overall flow of information processing performed by the information processing device 100 will be described with reference to the flowchart in Fig. 4. Note that the reference character S used in each of the following flowcharts represents a processing step (process). First, in S401, the image acquisition unit 201 acquires a captured image that is to be subjected to object detection as described above. Next, in S402, the size acquisition unit 203 acquires the distribution of face sizes assumed at each position in the captured image acquired by the image acquisition unit 201 as described above. Furthermore, in S403, the area setting unit 204 sets multiple detection areas including the overlapping range described above based on the face size distribution obtained from the size acquisition unit 203, the detection target range set by the range setting unit 207, and the upper limit of the number of areas set by the upper limit setting unit 208.

[0036] Next, in S404 , the detection unit 202 detects a face, which is a detection target object, from the detection region image cut out by the detection region set by the region setting unit 204 . Furthermore, in S405, the detection unit 202 determines whether or not the object detection process has been performed for all the detection areas set by the area setting unit 204, and returns the process to S404 if there are any unprocessed detection areas. On the other hand, if the process has been performed for all the detection areas, the process of the information processing device 100 transitions to S406.

[0037] In S406, the integration unit 205 integrates the detection results obtained for each detection region by the detection unit 202 in the manner described above. After that, in S407 , the output unit 206 outputs an image in which the detection result after the integration process by the integration unit 205 is superimposed on the captured image from the image acquisition unit 201 .

[0038] Next, a detailed flow of the detection area setting process in the area setting unit 204 will be described with reference to the flowchart in Fig. 5. In the following description, the detection target range set by the range setting unit 207 is the entire captured image. Therefore, the area setting unit 204 sets a detection area without omission for the entire captured image. In this embodiment, the image input to the learning model by machine learning is a square, and the detection area is also set as a square area. Therefore, in the following description, the size of the detection area is represented by the number of pixels on one side of the square detection area.

[0039] First, in S431, the region setting unit 204 acquires the distribution of face sizes corresponding to each position from the size acquisition unit 203. Here, the size acquisition unit 203 estimates the average face size at any position on the image by interpolation based on the face sizes of several points set by the user at each position or the faces detected from each position on the image as described above, and acquires the distribution of face sizes. In this embodiment, for the sake of simplicity, it is assumed that the face size depends only on the y-coordinate system in the y-axis direction (vertical direction) on the image, and there is no change in the face size in the x-coordinate system in the x-axis direction (horizontal direction). That is, in the estimation process by interpolation, when the face size in the y-axis direction on the image is s, the face size s is assumed to be s=by+c. In this case, the unknown parameters are b and c. Then, the size acquisition unit 203 uses a set of face positions and sizes specified by the user, or a set of face positions and sizes detected from the image, and obtains the unknown parameters by statistical processing such as the least squares method.

[0040] FIG. 6 is a diagram showing an example of the distribution of face sizes s depending on the y coordinate in the captured image 501. In FIG. In this embodiment, the captured image acquired by the image acquisition unit 201 is an image captured from a position looking down on a detection target object (person) by an imaging device such as a security camera installed at a position higher than the ground or floor. Therefore, in the captured image 501, a person captured near the upper side is a person far from the imaging device, while a person captured near the lower side is a person close to the imaging device. That is, in the captured image 501, the size of a face 502 of a person captured near the upper side is smaller than the size of a face 503 of a person captured near the lower side. Note that the aspect ratio of the face size is constant at any position in the captured image, and the value (aspect ratio) is 1. That is, the vertical width of the face size at each position is equal to the face size s, which is the width of the face. Therefore, if the distribution of the width of the face size at each position is acquired for the captured image, the vertical width of the face size at each position can be calculated from the aspect ratio of the face size determined in advance. In this embodiment, when the user sets the face size at an arbitrary position, the user may change the position and size of the face by dragging a face shape such as face 502 or 503 to an arbitrary position via input unit 105, or may input a numerical value indicating the position and size.

[0041] Next, in S432, the region setting unit 204 determines the size of the detection region on the upper side of the image based on the minimum face size assumed as the face size on the upper side of the image. In this embodiment, the upper side of the image is the topmost level, and the region setting unit 204 determines the size of the detection region to be set in the topmost level based on the minimum face size assumed in the topmost level.

[0042] As described above, the face detection accuracy in the detection unit 202 is correlated with the face size in the detection area image, and if the face size is too small compared to the size of the detection area image, the detection accuracy decreases. The minimum face size at which the detection accuracy does not decrease substantially depends on the learning model used in the detection process. In this embodiment, if the width of the face size is ¼ or more of the size of the detection area, the detection accuracy does not decrease substantially. Note that in this embodiment, for convenience of illustration, the width of the face size is set to ¼ of the detection area size, but in reality, if the input of the learning model is several hundred pixels, a face size of several tens of pixels, which is about 1 / 10, is often appropriate. For this reason, the minimum face size at which the detection accuracy does not decrease substantially may be several tens of pixels, which is about 1 / 10 of the detection area size.

[0043] 7 is a diagram showing a state in which an area four times the size of a face expected to be located near the top side of an image is set as the top detection area corresponding to the top side. That is, based on the size of face 502 at the top side of the captured image, area setting unit 204 sets an area four times the size as detection area 601 at the top. After determining the size of the top detection area by the process of S432, area setting unit 204 proceeds to the next process of S433.

[0044] When the process proceeds to S433, the area setting unit 204 determines whether or not the detection area set as described above has reached the bottom end of the detection target range, that is, the bottom end of the captured image. In the explanation so far, only the topmost detection area has been set, so in S433, the area setting unit 204 determines that the detection area has not reached the bottom end of the detection target range, and proceeds to the next step S434.

[0045] When the process proceeds to S434, the area setting unit 204 sets the detection area in the next row to the top row (the second row because the top row is the first row). In this embodiment, the area setting unit 204 sets the detection area in the second row based on the largest face size (maximum face size) of the faces included in the detection area set in the first row (top row). Specifically, the area setting unit 204 sets, as the detection area in the second row, a detection area in which the top end is the top of a face assumed to be at the bottom end position of the detection area in the first row among the faces included in the detection area set in the first row (top row), and further the face is the smallest face size.

[0046] Fig. 8 is a diagram showing a state where the detection area in the second stage is set. That is, the area setting unit 204 sets the detection area 702 in the second stage, which is a face included in the detection area 601 in the first stage, is four times the size of the face 701 assumed at the position of the bottom end of the detection area 601, and has the top end at the top of the face 701. As can be seen from the example in Fig. 8, there is an overlapping range in the y-axis direction by the size of the face 701 between the detection area 610 set in the first stage and the detection area 702 set in the second stage. After the area setting unit 204 determines the size of the detection area 702 in the second stage by the process of S434, the process returns to the next S433.

[0047] Therefore, when the process proceeds to S433 after the second detection area is set, the area setting unit 204 determines whether the set detection area has reached the bottom end of the detection target range, that is, the bottom end of the captured image, as described above. In the explanation so far, it is assumed that the second detection area has been set, but the detection area has not yet reached the bottom end of the detection target range. Therefore, the area setting unit 204 proceeds to S434.

[0048] Then, when the process proceeds to S434, the area setting unit 204 sets a detection area in the next stage (hereinafter referred to as the third stage) after the second stage. At this time, the area setting unit 204 sets, as the detection area of ​​the third stage, a detection area in which the uppermost part of a face assumed to be included in the detection area set in the second stage at the position of the lowermost end of the detection area of ​​the second stage is set as the upper end, and further the face is set as the minimum detection size.

[0049] 9 is a diagram showing a state where the detection area in the third stage is set. That is, the area setting unit 204 sets, as the detection area in the third stage, a detection area 802 that is a face included in the detection area 702 in the second stage, is four times the size of a face 801 located at the bottom end of the detection area 702, and has an upper end coincident with the top of the face 801.

[0050] As shown in the example of Figure 9, since the detection area in the third row has reached the bottom end of the detection target range, i.e., the bottom end of the captured image, the area setting unit 204 determines in S433 that the detection area has reached the bottom end of the detection target range and proceeds to S435.

[0051] When proceeding to the process of S435, the region setting unit 204 sets an overlapping range between adjacent detection regions in the x-axis direction (horizontal direction) for each of the detection regions set for each of the stages from the top (first stage) to the third stage as described above, based on the maximum value of the face size included in the detection region set for each stage. Furthermore, the region setting unit 204 calculates the number of detection regions to be set in the x-axis direction for each stage, based on the overlapping range between adjacent detection regions in the x-axis direction set for each stage. In this embodiment, the region setting unit 204 sets the minimum number that satisfies a predetermined condition for setting the overlapping range according to the size of the detection target (face) and a predetermined condition for setting the size of the detection region as the number of detection regions. In this embodiment, the predetermined condition for setting the overlapping range is a condition that determines the width of the overlapping range, which is a width that is a predetermined ratio to the detection target size (face size) at each position of the image. In this embodiment, the predetermined ratio to the detection target size at each position is set to 100%, as described above. In this embodiment, the predetermined condition for setting the size of the detection region is a condition related to the size that can ensure detection accuracy from the relationship between the detection target size and the size of the detection region. In this embodiment, the size at which detection accuracy can be ensured based on the relationship between the detection object size and the size of the detection area is a size at which accuracy can be maintained in detection using a learning model, as described above.

[0052] FIG. 10(a) is a diagram showing an example in which the number of detection regions in the x-axis direction (horizontal direction) is calculated in the topmost row (first row), and the detection regions of that number are arranged in the x-axis direction. Here, as shown in FIG. 10(a), the face with the largest size among the faces included in the detection region 601 in the topmost row (first row) is the face 701 assumed at the position of the lowest end of the detection region 601. For this reason, the region setting unit 204 determines the width of the overlapping range between the detection regions adjacent in the x-axis direction based on the size of the face 701 assumed at the position of the lowest end of the detection region 601. That is, the region setting unit 204 sets the width of the overlapping range between the detection regions adjacent in the x-axis direction in the topmost row to a width that can include the horizontal width of the face 701 of the maximum face size that may be included in the detection region 601. By setting the width of the overlapping range in this way, at least one detection region that includes a face assumed at a position above the face 701 is present in the topmost row (first row). FIG. 10(a) shows an example in which six detection areas having overlapping ranges in the x-axis direction are set.

[0053] Moreover, the region setting unit 204 calculates the number n of detection regions in the top row (first row) by the following formula (1). In formula (1), s is the width of the face 701, w is the width of the captured image (the width of the detection target range), and d is the size of the detection region 601. Furthermore, ceil() is a ceiling function.

[0054] n=ceil((ws) / (ds)) Equation (1)

[0055] For the second row, the overlapping range between adjacent detection regions in the x-axis direction and the number of detection regions are set in the same manner as for the first row (top row). FIG. 10(b) is a diagram showing an example in which an overlapping range is set between the detection areas 702 adjacent in the x-axis direction in the second row, the number of detection areas is calculated, and the detection areas are arranged in the x-axis direction. That is, in the case of the second row, since the face with the largest face size contained in the detection area 702 is the face 801 at the position of the bottom end of the detection area 702, the area setting unit 204 determines the width of the overlapping range between each of the detection areas adjacent in the x-axis direction based on the size of the face 801. Furthermore, the area setting unit 204 calculates the number n of detection areas in the second row by using formula (1) where s is the width of the face 801 and d is the size of the detection area 702. As a result, at least one detection area containing a face assumed to be located above the face 801 is present in the second row. Note that FIG. 10(b) shows an example in which five detection areas having overlapping ranges in the x-axis direction are set.

[0056] In the third row, the overlapping range between adjacent detection areas in the x-axis direction and the number of detection areas are set in the same manner as described above. FIG. 10(c) is a diagram showing an example in which an overlapping range is set between detection areas 802 adjacent in the x-axis direction in the third row, the number of detection areas is calculated, and these detection areas are arranged in the x-axis direction. Note that the face width used in calculating the number of detection areas in the third row shown in FIG. 10(c) is not the face size assumed at the bottom end of the detection area in the third row, but the size of the largest face 503 assumed at the bottom end of the detection target range. FIG. 10(c) shows an example in which four detection areas having overlapping ranges in the x-axis direction are set.

[0057] FIG. 11 is a diagram showing the state in which all detection areas 601, 702, 802 with the minimum number of detection areas that satisfy the conditions of overlapping range width and detection area size according to the face size in each of the first to third rows as described above are arranged to cover the detection target range.

[0058] When all detection areas for the detection target range are set as described above, the area setting unit 204 adjusts each detection area in the next S436 so that all detection areas 601, 702, 802 fall within the detection target range (range of captured image 501). Specifically, the area setting unit 204 first arranges the detection areas at both ends of each stage so that they match the positions of both ends of the detection target range (captured image), and then adjusts the remaining detection areas so that they are arranged at equal intervals.

[0059] Fig. 12(a) is a diagram showing the layout state of detection areas 1061, 1072, and 1082 after the adjustment process of S436 has been performed for each stage. For reference, Fig. 12(a) also shows faces 701, 801, and 503 used when setting the overlapping range between adjacent detection areas in each stage.

[0060] Here, the detection area 1082 in the bottommost stage, which is the third stage, may extend beyond the bottom side of the detection target range, as shown in Fig. 12(a). The minimum face size that can be accurately detected in the detection area 1082 in the bottommost stage is the size of the face 801 that is assumed at the position on the upper end side of the detection area 1082. For this reason, if the detection area 1082 in the bottommost stage is moved upward as it is to match the bottom side of the detection target range, a face smaller than the face 801 of the minimum face size when the size of the detection area 1082 was set may be included in the detection area 1082. In this case, the accuracy of detecting a face smaller than the face 801 in the detection area 1082 may decrease.

[0061] On the other hand, when arranging detection areas in the x-axis direction within the detection range, the number of detection areas is calculated based on the width (w) of the detection range as in the above-mentioned formula (1), and the detection areas at both ends are positioned at both ends of the detection range in the bottom row, and the remaining detection areas are adjusted to be arranged at equal intervals. Therefore, as shown in Fig. 12(a), there may be a certain amount of margin in the overlapping range width 1003 in the x-axis direction with respect to the width of the face 503 of the maximum face size that may be included in the detection area 1082 in the bottom row. In other words, it is considered that each detection area 1082 in the bottom row has a margin that allows it to be reduced.

[0062] For this reason, the area setting unit 204 reduces the size of the detection area (face) within a range that satisfies the conditions of the width of the overlapping range and the detection area size according to the detection target size (face size) described above. In this case, the area setting unit 204 reduces each detection area while maintaining the condition that the width of the overlapping range of each detection area in the bottom row is not less than the width of the face 503 of the maximum face size at the bottom row position, so as to include the portion protruding from the bottom side of the detection target area.

[0063] FIG. 12B shows the state after each detection area is reduced while maintaining the overlapping range width of the face size at the bottom end position of the detection target range for the detection area 1082 in the third row, which is the lowest row. Here, the detection area 1082 in the lowest row of FIG. 12B is smaller than the detection area 1082 in the lowest row shown in FIG. 12A, so the size of the face that can be detected with high accuracy in the detection area at this time is also small. Therefore, it becomes possible to detect a face smaller than the size of the face 801 with high accuracy, and even if each detection area 1082 is moved upward to align the bottom side of the detection area 1082 with the bottom side of the detection target range, there is no decrease in detection accuracy. However, in this case, when the detection area in the lowest row is moved upward, it is necessary to satisfy the condition that it is only moved to a position where the bottom of the detection target range is included in the detection area and the size of the face included in the detection area is 1 / 4 or more of the size of the detection area. Also, because of this condition, there may be cases where it is not possible to move all of the detection areas at the bottom up to a position where they can be aligned with the bottom side of the detection target range. In this case, as will be described in a modified example below, the number of detection areas may be increased, or the face size contained therein may be allowed to be ¼ or less of the detection area size and moved up, so that all of the detection areas can be accommodated within the detection target range.

[0064] FIG. 12(c) is a diagram showing the state after the detection area in the bottom row (third row) has been moved upward so as to align with the bottom side of the detection target range. The region setting unit 204 performs the above-described detection region adjustment process so that all detection regions fall within the detection target range. After that, the region setting unit 204 ends the process of the flowchart in FIG.

[0065] As described above, after performing the adjustment of moving the detection area in the bottom row upward so as to match the bottom side of the detection target range, the area setting unit 204 may perform the adjustment process of reducing and moving the detection areas in the second row and the first row upward in the same manner as that performed in the third row. In other words, when performing the reduction process similar to that performed in the third row on the detection areas in the second row and the first row, the size of the detection area after the reduction process becomes relatively small relative to the minimum face size assumed when the detection area is set in S432. Therefore, the detection accuracy for the minimum face size assumed in S432 is improved. In addition, in this embodiment, when reducing the detection area or moving it upward, the reduction and movement upward are performed from the detection area in the bottom row, which has no lower row and does not need to consider the overlapping range, but the adjustment process of reducing and moving it upward from any row may be performed. However, in that case, the overlapping range width with the detection area in the lower row needs to be able to cover the face size assumed at that position, and in order to satisfy the condition of the overlapping range width, it is desirable to perform the adjustment of reducing the lower row side and moving it upward.

[0066] As described above, the information processing device 100 of the first embodiment sets the size of the detection area and the overlapping range between adjacent detection areas based on the expected detection target size (face size) at each position of the captured image (detection target range). This reduces the occurrence of erroneous detection and non-detection, and as a result, it becomes possible to finally output an appropriate detection result in the object detection in a plurality of detection areas and the integration process of the detection results. That is, according to this embodiment, when detecting a detection target object from a captured image, it is possible to reduce erroneous detection and non-detection while suppressing an increase in the processing load when detecting the detection target from the image.

[0067] <Variation 1> In the detection area adjustment process in S436 in the flowchart of Fig. 5 described above, the detection area is adjusted while maintaining the number of detection areas calculated in S435, but since the size of the detection area can be reduced by increasing the number of detection areas, for example, the number of detection areas may be increased. That is, the area setting unit 204 may increase the number of detection areas to reduce the size of the detection area within a range that satisfies the conditions of the width of the overlapping range according to the size of the detection target (face), the size of the detection area, and the upper limit of the number of detection areas. However, since increasing the number of detection areas too much increases the processing time, the number of detection areas is increased within an allowable range for the processing time. Note that in this example as well, the upper limit of the number of detection areas is set to the upper limit set by the upper limit setting unit 208.

[0068] In the first embodiment, an example in which the face size depends only on the y coordinate is given. For this reason, for example, when increasing the number of detection areas, it is efficient from the viewpoint of detection accuracy to increase the number of detection areas for the tier in which the ratio between the size of the detection area and the minimum face size assumed within the detection area is the smallest. However, the detection area of ​​the tier in which the number of detection areas is increased will be reduced, and in order to maintain the overlapping range width set on the upper side and lower side of the detection area, it is necessary to move the detection areas below that tier upward. For this reason, attention must be paid to whether the condition that all detection areas are within the detection target range is satisfied. In other words, if the condition that all detection areas are within the detection target range is not satisfied, a detection area may be added to a tier below the original bottom tier if an increase in processing time is allowed. In addition, the size of the detection area added to the tier below will be larger than the size of the detection area of ​​the original bottom tier, so the number of added detection areas will be equal to or less than the number of detection areas of the original bottom tier.

[0069] <Variation 2> In the above-described embodiment, in the detection area setting process, more detection areas are required when the face size in the captured image is small or when the change in the face size in the y-axis direction is large. However, since the processing time increases as the detection areas increase, a predetermined warning may be issued when the number of detection areas determined in the detection area setting process of the flowchart in FIG. 5 exceeds the upper limit of the number of detection areas calculated from the allowable processing time. That is, in this case, when setting a detection area to be contained in the detection target range so as to satisfy the condition of the width of the overlapping range according to the size of the detection target (face) and the condition of the size of the detection area, the area setting unit 204 outputs predetermined warning information when the number of detection areas exceeds the upper limit. Note that the warning information may be information for displaying a warning on the display unit 104, or may be information for outputting a warning sound from a speaker or the like (not shown).

[0070] Also, when the number of detection areas calculated from the allowable processing time exceeds the upper limit, for example, the width of the overlapping range may be narrowed to less than the face size, or the size of the detection area relative to the minimum face size may be increased to reduce the number of detection areas required. However, there is a trade-off between the detection accuracy and the number of detection areas. For this reason, if the relationship between the size of the detection area and the detection accuracy, and the relationship between the width of the overlapping range and the detection accuracy are known, the condition of the overlapping range or the condition of the detection area size may be relaxed when the upper limit of the number of detection areas is exceeded. In other words, when the area setting unit 204 sets the detection area so as to fit within the detection target range while satisfying the conditions of the width of the overlapping range and the size of the detection area according to the detection target size, if the number of detection areas exceeds the upper limit, the condition of the width of the overlapping range or the size of the detection area is relaxed. In this case, the arrangement of the detection areas with the highest accuracy within the range where the number of detection areas fits within the upper limit may be automatically reset. Also, when a warning is issued as described above, a GUI may be displayed that allows the user to select whether or not to reset the arrangement of the detection areas. Furthermore, the ratio between the width of the overlapping range and the face size, and the ratio between the minimum face size and the size of the detection area may be specified by the user, and the detection area may be redefined using the ratio specified by the user.

[0071] <Variation 3> In the case of the above-mentioned embodiment, the size of the detection area is determined by the expected face size at the position where the detection area is set, so if the expected face size at the setting position is small, the detection area becomes small. On the other hand, the size of the image input to the detection unit 202 is determined by the learning model, so if the size of the detection area is smaller than the image size input to the detection unit 202, it is necessary to enlarge and input the detection area. In this case, if the enlargement rate is too large, that is, if the detection area is enlarged too much, the face in the detection area image becomes unclear, so the detection accuracy may decrease. Therefore, the range setting unit 207 may set the detection target range based on the expected detection target size at each position. That is, the range setting unit 207 sets the detection target range to a range where the face size is equal to or larger than a predetermined minimum value based on the distribution of face sizes acquired by the size acquisition unit 203. By setting the detection target range in this way, the detection area set by the area setting unit 204 within the detection target range becomes a detection area where the face size is equal to or larger than a predetermined minimum value, and as a result, the detection accuracy of the detection unit 202 is maintained. The predetermined minimum value for face size may be set by the user, or may be a value calculated from the relationship between the magnification ratio and detection accuracy according to the learning model used in the detection unit 202, and the minimum face size that can be accurately detected in the learning model.

[0072] [Second embodiment] In the first embodiment, an example in which the face size depends only on the y coordinate is given, so that the overlapping range width in the x axis direction and the number of detection areas are determined after the detection area size of each stage and the overlapping range in the y axis direction are determined. However, this is not limited to this, and the detection area can be set even when the face size of the captured image depends on the x coordinate. That is, even when the face size of the captured image depends on the x coordinate, the detection area can be set so that it finally contains the face assumed at each position within the detection target range and covers the entire detection target range. When the face size of the captured image depends on the x coordinate, for example, the detection area can be assigned in order from the position with the smallest face size in the area where the detection area is not set. Furthermore, the detection area can be set not only when the face size depends on only one of the y coordinate and the x coordinate, but also when it depends on both the y coordinate and the x coordinate.

[0073] In the second embodiment, an example of setting a detection area when the face size depends not only on the y coordinate but also on the x coordinate will be described. The configuration of the information processing device 100 of the second embodiment is the same as that of Figs. 1 and 2 described above, and therefore illustration and description thereof will be omitted. In the case of the second embodiment, the size acquisition unit 203 acquires the distribution of the detection target size (face size) corresponding to each position in both the x-axis direction and the y-axis direction of the image. Then, the area setting unit 204 of the second embodiment sets the size of the detection area at each position and the overlapping range between adjacent detection areas based on the distribution of the detection target size corresponding to each position in both the x-axis direction and the y-axis direction.

[0074] 13 to 18 are diagrams used to explain an example of setting a detection area when the face size depends not only on the y coordinate but also on the x coordinate. In the explanation of the second embodiment, the detection target range is, for example, the entire captured image 501, as described above. In addition, for ease of explanation, it is assumed here that the face size increases in the positive directions in the y axis and x axis directions, and the position where the face size is smallest is the position of the top left corner of the captured image 501, coordinates (x, y)=(0, 0).

[0075] First, the region setting unit 204 sets the entire detection target range as an unset region where no detection region is set. In the present embodiment, the region setting unit 204 sets a detection region at the upper left end of the unset region, and repeats a process of updating the set region as described later, thereby setting a detection region in the entire detection target range.

[0076] FIG. 13 is an explanatory diagram of an example in which a first detection area is set at the upper left end of an unset area, and a set-up area is set from the detection area. At this point, the entire captured image 501 (the entire detection target range) is an unset area, so the area setting unit 204 sets a detection area 1802 at the upper left end of the captured image 501, which is the upper left end of the unset area. The size of the detection area is set so that the face size 1801 assumed at the position of the upper left end of the unset area is the minimum face size without a decrease in detection accuracy. Note that in the first embodiment, a quarter of the size of the detection area is set as the minimum face size without a decrease in detection accuracy, but in the second embodiment, a face size of 1 / 8 or more of the size of the detection area is described as having no decrease in detection accuracy. That is, in this example, the area setting unit 204 sets a detection area 1802 that is eight times the size of the minimum face size without a decrease in detection accuracy.

[0077] Furthermore, the region setting unit 204 sets overlapping ranges between the right side and the bottom side of the first detection region 1802 and adjacent detection regions to be set later. The width of the overlapping range is set to a face size 1803 assumed at the position of the lower right end of the detection region 1802. In the case of the present embodiment, an example is assumed in which the face size increases toward the positive direction of the y-axis and the x-axis, so the face size 1803 at the lower right end of the detection region 1802 is the maximum face size assumed within the detection region 1802. For this reason, the region setting unit 204 sets the width of the overlapping ranges to be set on the right side and the bottom side of the detection region 1802, respectively, to a width according to the face size 1803. Furthermore, the region setting unit 204 sets the region of the detection region 1802 excluding the overlapping range as a setting completed region 1804. Note that the region of the detection region 1802 excluding the setting completed region 1804 is an unset region at this point.

[0078] Next, the area setting unit 204 sets a second detection area on the lower side of the first detection area 1802. The area setting unit 204 sets the second detection area in an unset area excluding the set area 1804 of the first detection area 1802 that has already been set.

[0079] FIG. 14 is a diagram used to explain how a second detection area is set in an unset area on the lower side of a first detection area 1802. The area setting unit 204 sets a second detection area 1806 in the unset area on the lower side of the first detection area 1802, that is, in the upper left end of the unset area on the lower side of the set-completed area 1804. When setting the second detection area 1806, the size of the detection area 1806 is set to eight times the face size 1805 assumed at the upper left end of the unset area, as in the case of setting the first detection area described above. In addition, the overlapping range of the detection area 1806 is set to the right side and lower side of the detection area 1806, as in the case of the first detection area, and the width of the overlapping range is set to the width of the face size 1807 assumed at the lower right end of the detection area 1806. Then, the area setting unit 204 sets the area of ​​the detection area 1806 excluding the overlapping range as a set-completed area 1808. At this point, the remaining area of ​​the detection area 1806 excluding the set area 1808 is an unset area.

[0080] FIG. 15 is a diagram showing a state in which detection areas adjacent to the lower side of a detection area that has already been set are set in order as described above, and a setting completion area is determined for each of the detection areas. When the detection areas are set in order as described above, and a detection area falls outside the lower side of the detection target range, the area setting unit 204 arranges the detection area that falls outside the lower side of the detection target range so that it falls within the detection target range. A detection area 1809 in FIG. 15 shows a detection area arranged so that it falls within the detection target range. In addition, the area setting unit 204 at this time does not provide an overlapping range on the lower side for the detection area 1809 that falls within the detection target range, and sets an overlapping range only on the right side. The width of the overlapping range provided on the right side of the detection area 1809 is set to the width of the face size 1807 assumed at the position of the lower right end of the detection area 1809. Then, the area setting unit 204 sets the area of ​​the detection area 1809 excluding the overlapping range as a setting completion area 1811. At this point, the remaining area of ​​the detection area 1809 excluding the set area 1811 is an unset area.

[0081] As described above, after setting the completed setting area 1811 at the bottom side of the detection range, the area setting unit 204 sets the position for setting the next detection area on the right side of the first detection area 1802 described above. FIG. 16 is a diagram used to explain the setting of the next detection area on the right side of the first detection area 1802. As shown in FIG. 16, the area setting unit 204 sets the next detection area 1812 on the right side of the first detection area 1802. At this time, the area setting unit 204 sets the detection area 1812 so as to overlap the first detection area 1802 by the overlapping range set on the right side. The area setting unit 204 also sets an overlapping range between the adjacent detection area to be set later on the right side and the bottom side of this detection area 1812. The width of the overlapping range is set to the face size assumed at the position of the lower right end of the detection area 1812. Then, the area setting unit 204 sets the area of ​​the detection area 1812 excluding the overlapping range as a setting completed area 1813. Note that the area of ​​the detection area 1812 excluding the setting completed area 1813 and the setting completed area that has already been set is an unset area at this point.

[0082] Next, after setting the detection area 1812 , the area setting unit 204 sets the next detection area on the lower side of the set-completed area 1813 in the detection area 1812 . FIG. 17 is a diagram used to explain the setting of a detection area 1815 on the lower side of a setting completed area 1813. At this time, the area setting unit 204 sets the detection area 1815 based on the position of the upper left end of the unset area on the lower side of the setting completed area 1813 shown in FIG. 16 and the face size 1814 at that position. That is, the area setting unit 204 sets the size of the detection area 1815 to 8 times the face size 1814. The area setting unit 204 also sets an overlapping range between the adjacent detection area to be set later on the right side and the lower side of the detection area 1815. The width of the overlapping range is set to the face size 1816 assumed at the position of the lower right end of the detection area 1815. Then, the area setting unit 204 sets the area of ​​the detection area 1815 excluding the overlapping range as a setting completed area 1817. At this point, the detection area 1815, excluding the set area 1817 and the set area that has already been set, is an unset area.

[0083] The area setting unit 204 repeats the above-mentioned processing to arrange the entire detection area so as to cover the entire detection target range. 18 is a diagram showing an example of the arrangement after the detection area is arranged so as to cover the entire detection target range and the entire detection target range is set as the setting completed area. Then, when the detection area is arranged so as to cover the entire detection target range, the area setting unit 204 determines that the setting of the entire detection area is completed. By using the processing described above, the information processing device of this embodiment can set the size of the detection area and the overlap range between adjacent detection areas, even when the face size depends not only on the y coordinate but also on the x coordinate, and can set a detection area that covers the entire detection target range.

[0084] [Third embodiment] Next, an information processing device 100 according to a third embodiment will be described. The configuration of the information processing device 100 according to the third embodiment is the same as that shown in Fig. 1 and Fig. 2, and therefore illustration and description thereof will be omitted. In the third embodiment, as in the first embodiment, a case in which the face size depends only on the y coordinate will be taken as an example, and an example in which there is almost no deterioration in detection accuracy if the width of the face size is ¼ or more of the size of the detection area will be taken as an example.

[0085] In the above-described first embodiment, the face size s is expressed by s=by+c, and an example has been described in which the face size s is a value that is uniquely determined for the y coordinate. For example, when the depression angle of the imaging device is shallow, the face size may be distributed such that the sizes vary greatly for the same y coordinate, as shown in Fig. 19. In Fig. 19, face 1101 is an example of the smallest face size assumed at the position y=y0, face 1102 is an example of the smallest face size assumed at the position y=y1, face 1103 is an example of the largest face size assumed at the position y=y0, and face 1104 is an example of the largest face size assumed at the position y=y1.

[0086] In the third embodiment, the size acquisition unit 203 acquires the maximum size (maximum face size) and minimum size (minimum face size) of the detection target (face) assumed at the same position with the same y coordinate. In the third embodiment, since the face size depends only on the y coordinate, the minimum size ss, which is the minimum value of the face size assumed at the same y coordinate position, can be expressed as ss=dy+e, and the maximum size sl, which is the maximum value of the face size, can be expressed as sl=fy+g.

[0087] For this reason, the area setting unit 204 of the third embodiment sets the size of the detection area and the overlap range between adjacent detection areas based on the minimum and maximum sizes of the detection target (face) corresponding to each position acquired by the size acquisition unit 203.

[0088] In the third embodiment, the method of setting the detection area will be described with reference to the flowchart of Fig. 5 used in the first embodiment. Note that when the depression angle of the image capture device is shallow, a face is often not captured near the upper side of the captured image 501, so in the third embodiment, an area whose y coordinate is y0 or more (y≧y0) is set as the detection target range 1105 as shown in Fig. 19.

[0089] In the third embodiment, in S431 of the flowchart in FIG. 5, the face size distribution acquired by the region setting unit 204 from the size acquisition unit 203 is the face size distribution in the detection target range 1105 of y≧y0 (y coordinate is y0 or more) as shown in FIG. 19. In the third embodiment, as described above, the minimum face size assumed at each position of the captured image 501 depends only on the y coordinate, such as ss=dy+e and the maximum face size sl=fy+g. Hereinafter, the smallest face at each position obtained as the minimum size ss will be called the "smallest face", and the largest face at each position obtained as the maximum size sl will be called the "largest face". In addition, in the third embodiment, the aspect ratio of the face size is 1. In other words, the vertical width of the face at each position is equal to the face size, which is the horizontal width of the face.

[0090] In the example of the third embodiment, when the user sets the face size at an arbitrary position, the user may change the position or size of the face 502 or 503 by dragging the face shape to an arbitrary position via the input unit 105, or may input a numerical value indicating the position or size. In the case of the third embodiment, such setting input is performed for the maximum face and the minimum face.

[0091] Next, in S432, the area setting unit 204 determines the size of the top (first) detection area based on the smallest face within the detection target range 1105, i.e., the smallest face 1101 at the position of y=0. As described above, the detection accuracy of the detection unit 202 is correlated with the face size within the detection area image, and if it is assumed that there is almost no degradation in detection accuracy if the width of the face size is ¼ or more of the detection area size, the area setting unit 204 sets the detection area size to four times the size of the smallest face.

[0092] 20 is a diagram showing a state in which a detection area four times the size of the smallest face in the top row of the detection target range 1105 is set in the top row. That is, based on the width 1201 of the smallest face 1101 at y=y0, the area setting unit 204 sets an area four times the size as the detection area 1202 in the top row.

[0093] Next, in S433, the area setting unit 204 determines whether or not the detection area set as described above has reached the bottom end of the detection target range 1105. Since only the first detection area has been set at the time illustrated in Fig. 20, the area setting unit 204 determines that the detection area has not reached the bottom end of the detection target range, and proceeds to the next step S434.

[0094] When the process proceeds to S434, the area setting unit 204 sets the second detection area. At this time, the area setting unit 204 sets the second detection area to an area having an upper end at the top of the largest face located at the bottom end in the first detection area, and a size of the smallest face located at the same y coordinate as the largest face that can be detected with high accuracy.

[0095] Fig. 21 is a diagram showing a state where the detection area in the second stage is set. The area setting unit 204 sets a detection area 1303 that is four times the size of the smallest face 1302, whose upper end is located at the same y coordinate as the uppermost part of the largest face 1301 located at the lowermost part of the detection area 1202 in the first stage set in S432, and whose upper end is the uppermost part of the smallest face 1302. Thereafter, the area setting unit 204 returns the process to S433. Note that, as in the above, even at the time illustrated in Fig. 21, the detection area in the second stage has not reached the lower end of the detection target range 1105, so the area setting unit 204 again proceeds to the process of S434 from S433.

[0096] 22 is a diagram showing a state in which a detection area in the third stage is set. When setting a detection area in the third stage, the area setting unit 204 sets a detection area 1403 having a size four times that of a smallest face 1402, the uppermost end of which is the uppermost part of a largest face 1401 located at the bottom end of the detection area 1303 in the second stage, so that the uppermost part of the smallest face 1402 is set as the uppermost part. After setting the detection area in this manner, the area setting unit 204 advances the process to S433 again. In this case, since the detection area in the third stage has reached the lower end of the detection target range 1105, the area setting unit 204 advances the process from S433 to S435. In S435, the region setting unit 204 calculates the width of the overlapping range in the x-axis direction based on the size of the largest face included in the detection region of each row, and further calculates the number of detection regions in the x-axis direction of each row.

[0097] Hereinafter, a method of calculating the number of detection regions in the x-axis direction (horizontal direction) of each stage and arranging that number of detection regions in the x-axis direction will be described with reference to FIG. FIG. 23(a) is a diagram showing an example of calculation of the number of detection regions in the first row and the arrangement of each detection region. Here, the largest face among the faces expected to be included in the first-stage detection area 1202 is the largest face 1301 at the bottom edge of the detection area 1202, and therefore the width of the overlapping range in the x-axis direction is the width of the largest face 1301. By setting the width of the overlapping range in this way, there will be at least one detection area that includes a face that is included within the detection target range 1105 and in the range y≦y2.

[0098] In this case, the number n of detection areas in the first stage is expressed by the following formula (2), where sl is the width (maximum size) of the largest face 1301, w is the width of the captured image, and d is the size of the detection area. Note that ceil() in the formula is a ceiling function.

[0099] n=ceil((w-sl) / (d-sl)) Equation (2)

[0100] For the second and third stages, the overlapping range and the number of detection regions are determined in the same manner as for the first stage. Fig. 23(b) is a diagram showing an example in which the overlapping range in the x-axis direction and the number of detection areas are determined in the second row, and each detection area 1303 for that number of detection areas is arranged. Fig. 23(c) is a diagram showing an example in which the overlapping range in the x-axis direction and the number of detection areas are determined in the third row, and each detection area 1403 for that number of detection areas is arranged. Note that the width of the largest face used to calculate the number of detection areas in the third row shown in Fig. 23(c) is not the size of the largest face in the detection area in the third row, but the size of the largest face at the bottom side of the detection target range 1105.

[0101] 24 is a diagram showing a state in which all the detection areas 1202, 1303, 1403, the number of detection areas determined for each stage from the first stage to the third stage, are arranged in the detection target range 1105. After setting the detection areas so as to cover the entire detection target range in this way, the area setting unit 204 adjusts the detection areas in S436 so that all the detection areas 1202, 1303, 1403 fit within the detection target range 1105. The adjustment process of the detection areas is the same as the process described in the first embodiment. That is, the area setting unit 204 arranges the detection areas at both ends of each stage of the detection area so that they are located at both ends of the detection target range, and arranges the remaining detection areas at equal intervals.

[0102] Fig. 25 is a diagram showing the results of performing the process of S436 on the detection areas of each stage. For reference, Fig. 25 also shows the faces 1301, 1401, and 1104 used when determining the overlapping range in the x-axis direction in each stage. The process thereafter is the same as in the first embodiment, so a description thereof will be omitted.

[0103] As described above, in the case of the third embodiment, the size of the detection area is limited by the size of the smallest face, and the overlapping range of the detection areas is limited by the size of the largest face. As a result, even if the face sizes have different distributions at each position, the information processing device 100 of the third embodiment can determine the size of the detection area and the overlapping range between adjacent detection areas based on the distribution of those face sizes. As a result, the information processing device 100 of the third embodiment can finally output more appropriate detection results in the object detection and detection result integration processing in multiple detection areas.

[0104] In the third embodiment, an example in which the face size depends only on the y coordinate is given, so the image size and y coordinate of each stage are determined, and then the overlapping range width in the x coordinate direction and the number of detection areas are determined. Also in the third embodiment, as described above, the detection area can be set even when the face size depends only on the x coordinate. That is, when the face size in the detection target range 1105 depends on the x coordinate, for example, the detection area may be assigned starting from the position where the smallest face size is among the undetected areas.

[0105] Also in the third embodiment, the process of reducing the detection area described in the first modification of the first embodiment and the process of adding the detection area described in the second modification are similarly applicable. However, in the second modification of the first embodiment, an example was given in which the width of the overlapping range is narrower than the same size as the face size, and the size of the detection area is increased relative to the minimum face size. In contrast, in the third embodiment, the width of the overlapping range between the detection areas and the size of the detection area may be changed according to the difference between the maximum and minimum sizes of the detection targets. That is, when the difference between the maximum face size and the minimum face size is large, it is effective to relax the condition of the overlapping range or the condition of the detection area size. Therefore, the difference between the maximum face size and the minimum face size may be used as a condition for relaxing these. In particular, since a large-sized face can be detected with high accuracy even if it does not fit within the detection area, when the difference between the maximum face size and the minimum face size is equal to or greater than a certain level, a process of narrowing the width of the overlapping range to less than the same size as the maximum face size is also effective.

[0106] Furthermore, in the third embodiment, similarly to the example of the second embodiment described above, it is possible to set a detection area when the face size depends not only on the y coordinate but also on the x coordinate. That is, in the third embodiment, similarly to the above, ultimately, a detection area that includes a face at any position within the detection target range exists, and the detection area can be set so as to cover the entire detection target range.

[0107] [Fourth embodiment] Next, an information processing device 100 according to a fourth embodiment will be described. The configuration of the information processing device 100 according to the fourth embodiment is the same as that shown in Fig. 1 and Fig. 2, and therefore the description thereof will be omitted. In the fourth embodiment, as in the first embodiment, an example will be given in which the face size depends only on the y coordinate, and an example will be given in which there is almost no deterioration in detection accuracy if the width of the face size is ¼ or more of the size of the detection area.

[0108] In the third embodiment described above, when the depression angle of the imaging device is shallow, the face sizes may be distributed significantly differently for the same y coordinate as shown in Fig. 19, so an example was described in which the detection area that covers the detection target range is set using the smallest and largest faces in the distribution. If the size of the detection area is d, the width (maximum size) of the largest face is sl, and the width of the captured image is w, the number of detection areas n in the first stage can be expressed by equation (2) as described above. Since the size d of the detection area is four times the size of the smallest face, if the width of the smallest face (minimum size ss) is used, then d = 4 x ss, and therefore the number of detection areas n can be expressed by the following equation (3).

[0109] n=ceil((w / sl-1) / (4×ss / sl-1)) Equation (3)

[0110] Here, for example, if the distribution of face sizes is large and the size of the largest face is large relative to the size of the smallest face, the value of ss / sl in Equation (3) becomes small, so the denominator becomes small. As a result, the value of the number n of detection regions in the first stage becomes large. Further, for example, when sl≧4×ss, the width of the overlapping range becomes equal to or larger than the size of the detection region, and in the region setting process described in the third embodiment, it becomes impossible to set the detection region.

[0111] Therefore, when the difference between the maximum size and the minimum size of the detection target (face) assumed at each position is equal to or greater than a predetermined value, the region setting unit 204 of the fourth embodiment divides the face size distribution. Further, the region setting unit 204 determines the size of the detection region and the overlapping range between adjacent detection regions based on the minimum size and the maximum size assumed at each position in the plurality of divided distributions. Then, the region setting unit 204 sets, as the detection region, the combination of the detection regions set for each of the plurality of divided distributions.

[0112] In the case of the fourth embodiment, the region setting unit 204 sets a distribution of an intermediate size sm such that ss < sm < sl, sm < 4×ss, and sl < 4×sm at any position depending on the y coordinate based on the face size distribution acquired by the size acquisition unit 203. Further, the region setting unit 204 sets two distributions, that is, divides the distribution, from the minimum size ss to the intermediate size sm and from the intermediate size sm to the maximum size sl, instead of the minimum face size and the maximum face size of the face described in the third embodiment. Then, the region setting unit 204 obtains a group of detection regions that cover the detection target range by the region setting process described in the third embodiment for each of the two distributions from the minimum size ss to the intermediate size sm and from the intermediate size sm to the maximum size sl. After that, the region setting unit 204 sets the detection region by combining the two groups of detection regions acquired corresponding to the two distributions.

[0113] Thereby, according to the fourth embodiment, even when the face size has a distribution in which the size of the largest face is large relative to the size of the smallest face, the number of detection regions and the detection region size can be appropriately set. In the above example, the face size distribution is divided into two, from the smallest face size to the medium size and from the medium size to the largest face size. In contrast, when the conditions sm<4×ss and sl<4×sm are not satisfied, the distribution may be divided into three or more. The number of divisions and the division ratio when dividing the distribution may be determined in advance, or may be an optimal number of divisions and a division ratio according to the acquired distribution. In addition, the detection target range may be set for the distribution divided into multiple parts. For example, since the difference between the largest face and the smallest face is small in the range of small y coordinates, the total number of detection areas may be reduced by setting the detection area in only one detection area group.

[0114] In the fourth embodiment, after the face size distribution is divided into a plurality of parts, the same area setting process as that described in the third embodiment is performed, so that each of the modified examples of the first embodiment can also be applied to the fourth embodiment. Furthermore, the fourth embodiment can be applied to the case where the face size depends not only on the y coordinate but also on the x coordinate, as in the second embodiment.

[0115] Here, in the fourth embodiment, as described above, the face size distribution is divided into, for example, two, and a detection area group corresponding to each of the divided distributions is set, so that the detection unit 202 obtains a detection result for each of the detection area groups. Therefore, the integration unit 205 of the fourth embodiment performs not only the integration process described in the first embodiment, but also a process of integrating the detection results between the detection area groups. Note that the integration process within the detection areas at the same position and the integration process between adjacent detection areas within the detection area group at the same position described in the first embodiment are the same as those described above, so their description will be omitted.

[0116] The following describes the integration process of the detection results between two detection area groups in the fourth embodiment. Here, the same integration process as in the first embodiment may be used as the process for integrating the detection results between the two detection area groups, but in the fourth embodiment, the integration process is performed based on the ratio between the size of the detection results between the two detection area groups and the size of the detection area. FIG. 26 is a diagram used to explain integration processing based on the ratio between the size of the detection result and the size of the detection region between two detection region groups.

[0117] In the fourth embodiment, as described above, the face size distribution is divided into two and two detection area groups corresponding to the divided distributions are set. That is, one detection area group corresponds to the distribution from minimum size to medium size, and the other detection area group corresponds to the distribution from medium size to maximum size. Therefore, within the detection target range, a small detection area 1701 belonging to one detection area group and a large detection area 1702 belonging to the other detection area group are arranged so as to overlap.

[0118] Therefore, for example, in the case of a small face 1703, the detection frame detected by the detection unit 202 will be detection frame 1704 based on detection area 1701 and detection frame 1705 based on detection area 1702, and these will be output to the integrating unit 205. Here, it is assumed that the size of detection frame 1705 is less than the minimum size of a face that can be accurately detected for the size of detection area 1702 (less than ¼ of the size of detection area 1702). On the other hand, it is assumed that the size of detection frame 1704 is equal to or greater than the minimum size of a face that can be accurately detected for the size of detection area 1701 (equal to or greater than ¼ of the size of detection area 1701). In this case, since detection frame 1705 is less than the minimum size of a face that can be accurately detected for the size of detection area 1702, integrating unit 205 excludes detection frame 1705 from integration. On the other hand, since the detection frame 1704 is equal to or larger than the minimum size of a face that can be detected with high accuracy relative to the size of the detection area 1701, the integrating unit 205 adopts the detection frame 1704.

[0119] For example, in the case of a large face 1706, the detection frame detected by detection unit 202 will be detection frame 1707 based on detection region 1701 and detection frame 1708 based on detection region 1702, and these will be output to integrating unit 205. Also, it is assumed that the size of detection frame 1708 is equal to or larger than the minimum size of a face that can be detected with high accuracy for the size of detection region 1702, and that detection frame 1708 is positioned near the center of detection region 1702. On the other hand, it is assumed that the size of detection frame 1707 is equal to or larger than the minimum size of a face that can be detected with high accuracy for the size of detection region 1701, but that the IoU is a large value in common portion 1709 between detection frame 1708 and detection region 1701, indicated by the shaded area. In this case, since the IoU of common part 1709 between detection frame 1708 and detection area 1701 is a large value, integrating unit 205 determines that detection frame 1707 is part of the face detected in detection frame 1708, and excludes detection frame 1707. Note that at this time, integrating unit 205 may use reliability as a criterion for exclusion, such as determining to exclude detection frame 1707 only when the reliability of detection frame 1707 is smaller than that of detection frame 1708. In this example, integrating unit 205 adopts detection frame 1708.

[0120] In addition, the order of integration processing in the fourth embodiment is preferably such that integration processing is performed within detection areas at the same position, integration processing between adjacent detection areas within a detection area group at the same position, and then integration processing between the detection area groups, but is not limited to this order.

[0121] In the case where the information processing device 100 according to the fourth embodiment has a distribution in which the difference between the maximum size and the minimum size of the detection target at each position is large, the size of the detection area and the overlapping range of adjacent detection areas are determined based on multiple distributions obtained by dividing the distribution. As a result, the information processing device 100 according to the fourth embodiment can cover the entire detection target range with a smaller number of detection areas. Furthermore, in the fourth embodiment, an integration process is performed in which the detection frame of the detection result between the detection area groups is adopted or excluded depending on whether the ratio of the detection frame between the detection area groups is less than or equal to the ratio of the minimum size that can be detected with high accuracy to the detection area size between the detection area groups. Also, in the fourth embodiment, an integration process is performed in which the detection frame is adopted or excluded based on the IoU value or reliability of the common part of the detection frame of the detection result between the detection area groups. As a result, according to the fourth embodiment, it is possible to finally output a more appropriate detection result in the object detection in multiple detection areas and the detection result integration process.

[0122] The present invention can also be realized by a process in which a program for implementing one or more of the functions of each of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) for implementing one or more of the functions. The above-mentioned embodiments are merely examples of the implementation of the present invention, and the technical scope of the present invention should not be interpreted as being limited by them. In other words, the present invention can be implemented in various forms without departing from its technical concept or main features.

[0123] The disclosure of the above-described embodiment includes the following configurations, methods, and programs. (Configuration 1) image acquisition means for acquiring an image; A size acquisition means for acquiring a detection object size corresponding to each position of the image; A region setting means for setting a plurality of detection regions in an image; a detection means for detecting a detection target for each of the detection areas from the image acquired by the image acquisition means, The information processing device is characterized in that the area setting means sets the size of the detection area and the overlap range between adjacent detection areas at each position of the image based on the detection target size at each position acquired by the size acquisition means. (Configuration 2) 2. The information processing apparatus according to configuration 1, further comprising a range setting means for setting a target range in which all of the plurality of detection areas set by the area setting means are disposed in the image acquired by the image acquisition means. (Configuration 3) 3. The information processing apparatus according to configuration 2, wherein the range setting means sets the target range based on the detection target size at each position acquired by the size acquisition means. (Configuration 4) The information processing device described in any one of configurations 1 to 3, characterized in that the area setting means sets the overlapping range between the adjacent detection areas, the overlapping range having a width that is a predetermined ratio of the detection target size at each position. (Configuration 5) 5. The information processing apparatus according to configuration 4, wherein the area setting means sets the overlapping range of a width capable of containing the detection target of the size of the detection target at each position. (Configuration 6) the size acquisition means acquires a minimum size and a maximum size that can occur as the detection target size for each of the positions; The information processing device described in any one of configurations 1 to 5, characterized in that the area setting means sets the size of the detection area and the overlapping range between adjacent detection areas based on the minimum size and maximum size of the detection target size at each position. (Configuration 7) The information processing device described in configuration 6, characterized in that when a difference between the minimum size and the maximum size of the detection object size is equal to or greater than a predetermined value, the area setting means divides a distribution of the multiple detection object sizes corresponding to each position, determines the size of the detection area and the overlapping range between adjacent detection areas based on the minimum size and the maximum size of the detection object size corresponding to each position in the divided distribution, and then sets the combination of the detection areas determined for each divided distribution as the multiple detection areas. (Configuration 8) 8. The information processing device according to configuration 6 or 7, wherein the area setting means changes the size of the detection area and the overlapping range between adjacent detection areas based on the difference between the minimum size and the maximum size. (Configuration 9) An information processing device according to any one of configurations 1 to 8, characterized in that the total number of the plurality of detection areas set by the area setting means is the minimum number that satisfies the specified conditions when setting the overlap range and the specified conditions when setting the size of the detection areas. (Configuration 10) The information processing device described in any one of configurations 1 to 9, characterized in that the area setting means reduces the size of the detection area within a range that satisfies predetermined conditions when setting the overlapping range and predetermined conditions when setting the size of the detection area. (Configuration 11) 11. The information processing device according to any one of configurations 1 to 10, further comprising an upper limit setting means for setting an upper limit on the number of the detection regions set by the region setting means. (Configuration 12) The information processing device described in configuration 11, characterized in that the area setting means adjusts the number of detection areas within a range that satisfies predetermined conditions when setting the overlapping range, predetermined conditions when setting the size of the detection area, and an upper limit on the number of detection areas set by the upper limit setting means. (Configuration 13) 13. The information processing apparatus according to configuration 12, wherein the area setting means increases the number of the detection areas and reduces the size of the detection areas. (Configuration 14) The information processing device described in configuration 12, characterized in that the area setting means outputs a predetermined warning if the number of detection areas when satisfying predetermined conditions for setting the overlap range and predetermined conditions for setting the size of the detection areas exceeds the upper limit. (Configuration 15) The information processing device described in configuration 12 or 13, characterized in that when the area setting means satisfies the specified conditions for setting the overlapping range and the specified conditions for setting the size of the detection area and the number of the detection areas exceeds the upper limit, the specified conditions for setting the overlapping range or the specified conditions for setting the size of the detection area are relaxed. (Configuration 16) 16. The information processing device according to any one of configurations 1 to 15, further comprising an integration unit that integrates detection results for each of the detection objects obtained by the detection unit in accordance with the arrangement of the detection area set by the area setting unit. (Configuration 17) the size acquisition means acquires a detection object size corresponding to each position in either an x-axis or a y-axis direction of the image; The information processing device described in any one of configurations 1 to 16, characterized in that the area setting means sets the size of the detection area at each position and the overlapping range between adjacent detection areas based on the detection object size corresponding to each position in the axial direction acquired by the size acquisition means. (Configuration 18) the size acquisition means acquires a detection object size corresponding to each position in both the x-axis and y-axis directions of the image; The information processing device described in any one of configurations 1 to 16, characterized in that the area setting means sets the size of the detection area at each position and the overlapping range between adjacent detection areas based on the detection object size corresponding to each position in the axial direction acquired by the size acquisition means. (Configuration 19) The information processing device described in configuration 18, characterized in that when setting a detection area for the next position in the axial direction for a set detection area, the area setting means sets the area excluding the overlapping range from the set detection area as a set-up area, and sets the size of the detection area for the next position and the overlapping range between adjacent detection areas for an unset area excluding the set-up area based on the detection target size corresponding to the next position in the axial direction. (Configuration 20) the detection means detects the detection target for each of the detection areas using a learning model obtained by machine learning; The information processing device described in any one of configurations 1 to 19, characterized in that the area setting means sets the size of the detection area at each position and the overlapping range between the adjacent detection areas based on the input size for the learning model and the detection target size corresponding to each position. (Configuration 21) image acquisition means for acquiring an image; A region setting means for setting a plurality of detection regions in an image; a detection means for detecting a detection target for each of the detection areas from the image acquired by the image acquisition means, The information processing apparatus is characterized in that the area setting means sets the detection areas so that adjacent detection areas overlap with each other without any omissions. (Method 1) an image acquisition step of acquiring an image; a size acquisition step of acquiring a detection object size corresponding to each position of the image; A region setting step of setting a plurality of detection regions in the image; a detection step of detecting a detection target for each of the detection regions from the image acquired in the image acquisition step, This information processing method is characterized in that in the area setting process, the size of the detection area at each position of the image and the overlap range between adjacent detection areas are set based on the detection target size corresponding to each position acquired in the size acquisition process. (Method 2) an image acquisition step of acquiring an image; A region setting step of setting a plurality of detection regions in the image; a detection step of detecting a detection target for each of the detection regions from the image acquired in the image acquisition step, The information processing method, wherein in the area setting step, the detection areas are set so that adjacent detection areas overlap without omission. (Program 1) A program for causing a computer to function as the information processing device according to any one of configurations 1 to 21. [Explanation of symbols]

[0124] 100: information processing device, 201: image acquisition unit, 202: detection unit, 203: size acquisition unit, 204: area setting unit, 205: integration unit, 206: output unit, 207: range setting unit, 208: upper limit setting unit, 209: storage unit

Claims

1. image acquisition means for acquiring an image; A size acquisition means for acquiring a detection object size corresponding to each position of the image; A region setting means for setting a plurality of detection regions in an image; a detection means for detecting a detection target for each of the detection areas from the image acquired by the image acquisition means, The information processing device is characterized in that the area setting means sets the size of the detection area and the overlap range between adjacent detection areas at each position of the image based on the detection target size at each position acquired by the size acquisition means.

2. 2. The information processing apparatus according to claim 1, further comprising a range setting unit that sets a target range in the image acquired by the image acquisition unit, in which the plurality of detection areas set by the area setting unit are disposed.

3. 3. The information processing apparatus according to claim 2, wherein the range setting means sets the target range based on the detection target size at each position acquired by the size acquisition means.

4. 2 . The information processing apparatus according to claim 1 , wherein the area setting means sets the overlapping range between the adjacent detection areas, the overlapping range having a width that is a predetermined ratio to the size of the detection object at each position.

5. 5. The information processing apparatus according to claim 4, wherein the area setting means sets the overlapping range of a width capable of containing the detection object of the size at each of the positions.

6. the size acquisition means acquires a minimum size and a maximum size that can occur as the detection object size at each position; 2 . The information processing apparatus according to claim 1 , wherein the area setting means sets the size of the detection area and the overlapping range between adjacent detection areas based on the minimum size and the maximum size of the detection target at each position.

7. The information processing device according to claim 6, characterized in that when a difference between the minimum size and the maximum size of the detection object size is equal to or greater than a predetermined value, the area setting means divides a distribution of the detection object size corresponding to each position, determines the size of the detection area and the overlapping range between adjacent detection areas based on the minimum size and the maximum size of the detection object size corresponding to each position in the divided distribution, and then sets the combination of the detection areas determined for each divided distribution as the multiple detection areas.

8. 7. The information processing apparatus according to claim 6, wherein the area setting means changes the size of the detection area and the overlapping range between adjacent detection areas based on the difference between the minimum size and the maximum size.

9. 2. The information processing device according to claim 1, wherein the total number of the plurality of detection areas set by the area setting means is the minimum number that satisfies predetermined conditions when setting the overlapping range and predetermined conditions when setting the size of the detection areas.

10. 2 . The information processing apparatus according to claim 1 , wherein the area setting means reduces the size of the detection area within a range that satisfies a predetermined condition for setting the overlapping range and a predetermined condition for setting the size of the detection area.

11. 2. The information processing apparatus according to claim 1, further comprising an upper limit setting means for setting an upper limit on the number of said detection areas set by said area setting means.

12. The information processing device according to claim 11, characterized in that the area setting means adjusts the number of the detection areas within a range that satisfies predetermined conditions for setting the overlapping range, predetermined conditions for setting the size of the detection areas, and an upper limit for the number of the detection areas set by the upper limit setting means.

13. 13. The information processing apparatus according to claim 12, wherein the area setting means increases the number of the detection areas and reduces the size of the detection areas.

14. The information processing device according to claim 12, characterized in that the area setting means outputs a predetermined warning if the number of detection areas when satisfying predetermined conditions for setting the overlapping range and predetermined conditions for setting the size of the detection areas exceeds the upper limit.

15. The information processing device according to claim 12, characterized in that the area setting means relaxes the specified conditions when setting the overlapping range or the specified conditions when setting the size of the detection area when the number of the detection areas exceeds the upper limit by satisfying the specified conditions when setting the overlapping range and the specified conditions when setting the size of the detection area.

16. 2. The information processing apparatus according to claim 1, further comprising an integration unit that integrates the detection results obtained by said detection unit for each of said detection objects in accordance with the arrangement of the detection areas set by said area setting unit.

17. the size acquisition means acquires a detection object size corresponding to each position in either an x-axis or a y-axis direction of the image; The information processing device according to any one of claims 1 to 16, characterized in that the area setting means sets the size of the detection area at each position and the overlap range between adjacent detection areas based on the detection target size corresponding to each position in the axial direction acquired by the size acquisition means.

18. the size acquisition means acquires a detection object size corresponding to each position in both the x-axis and y-axis directions of the image; The information processing device according to any one of claims 1 to 16, characterized in that the area setting means sets the size of the detection area at each position and the overlap range between adjacent detection areas based on the detection target size corresponding to each position in the axial direction acquired by the size acquisition means.

19. The information processing device described in claim 18, characterized in that when setting a detection area for the next position in the axial direction for a set detection area, the area setting means sets the area excluding the overlapping range from the set detection area as a set complete area, and sets the size of the detection area for the next position and the overlapping range between adjacent detection areas for an unset area excluding the set complete area based on the detection target size corresponding to the next position in the axial direction.

20. the detection means detects the detection target for each of the detection areas using a learning model obtained by machine learning; The information processing device according to claim 1, characterized in that the area setting means sets the size of the detection area at each position and the overlap range between the adjacent detection areas based on the input size for the learning model and the detection target size corresponding to each position.

21. an image acquisition step of acquiring an image; a size acquisition step of acquiring a detection object size corresponding to each position of the image; A region setting step of setting a plurality of detection regions in the image; a detection step of detecting a detection target for each of the detection regions from the image acquired in the image acquisition step, This information processing method is characterized in that in the area setting process, the size of the detection area at each position of the image and the overlap range between adjacent detection areas are set based on the detection target size corresponding to each position acquired in the size acquisition process.

22. Computer, image acquisition means for acquiring an image; A size acquisition means for acquiring a detection object size corresponding to each position of the image; A region setting means for setting a plurality of detection regions in an image; a detection means for detecting a detection target for each of the detection areas from the image acquired by the image acquisition means, The area setting means is a program for functioning as an information processing device that sets the size of the detection area at each position of the image and the overlap range between adjacent detection areas based on the detection target size corresponding to each position acquired by the size acquisition means.

Citation Information

Patent Citations

  • Image processor, information processing method and program

    JP2018022340A

  • Image processing system, image processing method and program

    JP2020149565A

  • Image processing apparatus, image processing method, computer program, and storage medium

    JP2021092918A