Image processing device, learning device and control method

The image processing apparatus addresses inefficient learning by determining learning importance based on focus and obstruction differences, using data augmentation to enhance neural network performance in image recognition.

JP2024146290AInactive Publication Date: 2024-10-15CANON KK
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2023059093
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing neural network-based image recognition technologies struggle to efficiently learn and adapt to different use cases, particularly when obstructions affect the focus and blur detection targets, leading to inefficient learning outcomes.

Method used

An image processing apparatus that determines learning importance for each region of an image based on differences in focus and obstruction, using data augmentation techniques to generate expanded images and adjust loss coefficients for machine learning, prioritizing areas that need more focus during the learning process.

Benefits of technology

Enables efficient learning by prioritizing regions of interest, effectively suppressing false detections and ensuring accurate focus on detection targets, enhancing the performance of neural networks in various use cases.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024146290000001_ABST
    Figure 2024146290000001_ABST
Patent Text Reader

Abstract

To allow for efficient learning according to a purpose or a use case of the learning.SOLUTION: An image processing device generates image data used for learning of a detector which executes a detection task. The image processing device comprises: acquisition means of acquiring an input image including a detection object of the detection task; processing means of applying data extension processing to the input image to generate an extended image; and determination means of determining learning importance in the learning of the detector to each of a plurality of mutually different areas included in the extended image.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to training neural networks. [Background technology]

[0002] In recent years, research in the field of image recognition has been actively conducted, and various methods have been proposed to detect object regions in images using neural networks (NN). In addition, it is a challenge to accurately track objects while detecting them in captured images acquired in real time. In particular, it is a challenge to accurately detect objects when they are partially blocked by other objects.

[0003] In addition, various data augmentation (DA) methods have been proposed to improve the learning accuracy in image recognition using NN. Data augmentation is a method of padding learning data by artificially applying image processing (blurring, shaking, image synthesis, rotation, translation, enlargement / reduction, up / down / left / right inversion, noise addition, color tone change, brightness change, etc.) to image data. Patent Document 1 proposes a method of adjusting the blur added to each image data so that the degree of blur of multiple image data is uniform. Patent Document 2 proposes a method of synthesizing an image of an obstructing object so that the target object is hidden, so that the detection accuracy does not decrease even when the target object is partially hidden. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] Patent Publication No. 2021-196995 [Patent Document 2] Patent Publication No. 2021-33707 Summary of the Invention [Problem to be solved by the invention]

[0005] By the way, in a situation where a camera detects a person's head and focuses on it, if there is an obstruction between the camera and the head, the obstruction may be erroneously detected as the head and the camera may focus on the obstruction. In that case, if the difference in distance between the obstruction and the head is large, a photo with the head out of focus will be taken, which is a problem. On the other hand, if the difference in distance is small, both the head and the obstruction will be in focus, which is not a problem. In other words, the importance of each area in the image changes depending on the purpose of learning or the use case. However, the technology disclosed in the above patent document has a problem in that it is not possible to perform efficient learning according to the purpose of learning or the use case.

[0006] The present invention has been made in consideration of such problems, and aims to provide a technology that enables efficient learning according to the learning purpose or use case. [Means for solving the problem]

[0007] In order to solve the above-mentioned problems, an image processing device according to the present invention has the following arrangement. That is, an image processing device for generating image data used for training a detector that executes a detection task includes: an acquisition means for acquiring an input image including a detection target of the detection task; a processing means for applying a data augmentation process to the input image to generate an augmented image; a determination means for determining a learning importance in learning the detector for each of a plurality of different regions included in the extended image; Equipped with. Effect of the Invention

[0008] According to the present invention, it is possible to provide a technique that enables efficient learning according to the purpose of learning. [Brief description of the drawings]

[0009] [Figure 1] FIG. 1 is a diagram illustrating a hardware configuration of an image processing device. [Diagram 2] FIG. 2 is a diagram illustrating a functional configuration of a training data generating device. [Diagram 3] FIG. 2 is a diagram illustrating a functional configuration of a learning device. [Figure 4] 13 is a flowchart of a process executed by the training data generating device. [Diagram 5] FIG. 4 is a diagram for explaining how importance is determined in the first embodiment. [Figure 6] 13 is a flowchart of a process executed by a DA unit in the second embodiment. [Figure 7] FIG. 11 is a diagram for explaining how importance is determined in the second embodiment. [Figure 8] FIG. 13 is a diagram illustrating how importance is determined in the third embodiment. [Figure 9] 13 is a flowchart of a process executed by an importance determining unit in the fourth embodiment. [Figure 10] FIG. 13 is a diagram for explaining how importance is determined in the fourth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, the embodiments will be described in detail with reference to the attached drawings. Note that the following embodiments do not limit the invention according to the claims. Although the embodiments describe a number of features, not all of these features are essential to the invention, and the features may be combined in any manner. Furthermore, in the attached drawings, the same reference numbers are used for the same or similar configurations, and duplicated descriptions are omitted.

[0011] (First embodiment) A learning data generating device that performs data augmentation (DA) processing will be described as a first embodiment of an image processing device according to the present invention. In the first embodiment, a method for determining learning importance based on the difference in image state between an object and an object other than the object (such as an obstruction) will be described in particular. A learning device that performs learning of DA-processed image data based on learning importance will also be described.

[0012] <Configuration of each device> 1 is a diagram showing the hardware configuration of training data generation device 200. Learning device 300 also has a similar hardware configuration. Training data generation device 200 and learning device 300 may be implemented as separate devices, or may be implemented as an integrated device that executes different programs to realize the respective functions.

[0013] The CPU 100 is a central processing unit that performs calculations and logical judgments for various processes. A control program is stored in a read-only memory (ROM) 110. A random access memory (RAM) 120 is used as a temporary storage area such as a main memory and a work area for the CPU 100.

[0014] The HDD 130 is a hard disk drive for storing various data (image data, parameters) and programs executed by the CPU 100. An external storage device may be used to fulfill a similar role. Here, the external storage device may be realized, for example, by a medium (recording medium) and an external storage drive for realizing access to the medium. Known examples of such media include flexible disks (FDs), CD-ROMs, DVDs, USB memories, MOs, and flash memories. The external storage device may also be a server device connected via a network.

[0015] The input unit 140 is composed of a keyboard, a touch panel, etc., and accepts input from a user. The display unit 150 is composed of a liquid crystal display, etc., and displays various data and processing results to the user. The communication unit 160 is for communicating with other devices, and may receive instructions from a user from other devices, or may output processing results to other devices.

[0016] The training data generation device 200 and the training device 300 can be configured using a general-purpose information processing device having the above-mentioned configuration.

[0017] FIG. 2 is a diagram showing the functional configuration of the training data generating device 200. As shown in FIG.

[0018] The information acquisition unit 210 acquires learning image data, a correct answer label, an object image to be combined with the learning image data, an image state of the subject, and the like. The correct answer label is a label correct answer value of each area of ​​the corresponding learning image data and is prepared in advance. The object image will be described in the second embodiment. The image state is the focus level, color tone, brightness, noise level, blur / shake level, occlusion level, subject direction, and the like, and is input or calculated in advance.

[0019] The DA unit 220 performs data extension on the input learning image data. In addition to image processing on the learning image data, the DA unit 220 may also perform operations such as pasting an object image to partially cover the subject.

[0020] The importance determination unit 230 determines the learning importance based on the image processing result of the DA unit 220. It may be determined further based on the image information acquired from the information acquisition unit 210. In the following description, a loss coefficient is used as the learning importance. Details of the learning importance will be described later with reference to Figs. 4 and 5. Here, a specific calculation method of the learning importance may be defined in advance, or may be a calculation method designated by the user via the input unit 140 according to the purpose of learning.

[0021] The learning image data that has been image-processed by the DA unit 220 is stored as learning data 240 in a state associated with the correct answer label and the learning importance determined by the importance determination unit 230 .

[0022] 3 is a diagram showing a functional configuration of the learning device 300. The learning device 300 performs learning of the detection unit 320 using the learning data 240 generated by the learning data generating device 200.

[0023] The learning data acquisition unit 310 acquires the learning data 240. As described above, the learning data 240 includes learning image data and associated correct answer labels and learning importance.

[0024] The detection unit 320 detects an object region included in the training image data by using the detector 321. At this time, the detector 321 detects the object region by using weight information stored in the parameter storage unit 322.

[0025] Various recognition models may be used for the detector 321, such as a NN like a Covolutional Neural Network (CNN), a Vision Transformer (ViT), or a Support Vector Machine (SVM) combined with a feature extractor. Here, a case where a CNN is used as the detector 321 will be described. Also, it is assumed that the weight information stored in the parameter storage unit 322 is updated by machine learning using the backpropagation method. In the machine learning using the backpropagation method, learning is carried out so as to reduce loss.

[0026] The loss calculation unit 330 compares the detection result output from the detector 321 with the correct label acquired by the learning data acquisition unit 310 to calculate the "loss." At this time, the loss calculation unit 330 weights the false positive loss and the non-detection loss based on the learning importance determined by the importance determination unit 230. Specifically, weighting is performed so that the loss is large for areas where learning is to be prioritized. That is, in machine learning using the backpropagation method, learning is advanced so as to reduce the loss, so the loss is set large for areas where learning is to be prioritized.

[0027] Therefore, for example, if it is desired to suppress false positives with higher priority than undetected positives, the loss coefficient is multiplied so that the false positive loss is larger than the undetected loss. Also, if there is an area in the image where it is desired to suppress undetected or false positives with higher priority, the loss coefficient of that area is made larger than other areas, and learning is performed so that the undetected loss or false positive loss for that area is larger.

[0028] In the following embodiments, the learning importance is reflected in machine learning by multiplying the loss by a loss coefficient generated in the form of a map (data in which each area is mapped on the image data), but it does not necessarily have to be used in the form of a map.

[0029] The weight update unit 340 updates the weight information of the NN using the backpropagation method based on the loss calculated by the loss calculation unit 330. Thereafter, the updated weight information is output to the output unit 350 and stored in the parameter storage unit 322. The stored weight information will be used by the detector 321 during the next learning. The output unit 350 can be a memory of a general-purpose computer or a control circuit inside a camera, but is not limited to a specific one.

[0030] The weight information output to the output unit 350 is used in an image recognition device. The image recognition device is, for example, an object detection circuit for autofocus control in a camera. However, the image recognition device may be a program that performs object detection for use in image processing in a smartphone, and is not limited to a specific form.

[0031] <Operation of each device> The following provides a more detailed explanation of the operations of training data generation device 200 and learning device 300. In particular, the following describes the determination of the learning importance in training data generation device 200 and the use of the learning importance in learning device 300. In the following explanation, an example of generating training data used for learning a human region detection task is shown, but it is not necessarily a detection task.

[0032] In addition, in the following explanation, the aim is to have the camera learn to "preferentially suppress erroneous detection of areas that are significantly out of focus, even if an area other than a person is erroneously detected," and an example is given of a method for determining the importance of learning based on the difference in image state between the target object and areas other than the target object.

[0033] Fig. 4(a) shows an overall flowchart executed by the learning data generation device. Fig. 5 is a diagram for explaining the determination of importance in the first embodiment. Here, an example of performing DA processing and learning importance determination on a learning image 500 shown in Fig. 5(a) will be explained.

[0034] In S401, the information acquisition unit 210 acquires a dataset used for learning from the input unit 140. The dataset acquired at this time includes one or more learning image data (for example, video data including one or more frame images). It also includes a correct answer label corresponding to each learning image data, an object image to be combined with the learning image data, an image state, and the like.

[0035] In S402, the information acquisition unit 210 acquires one learning image data (for example, one frame image) as an input image from the data set to be processed. Here, the learning image 500 shown in Fig. 5(a) is input as the learning image data. As described above, the subject to be learned in the learning device 300 in this embodiment is a human region.

[0036] In S403, the DA unit 220 acquires the learning image 500 from the information acquisition unit 210 and applies data augmentation processing to generate an augmented image. Fig. 4(b) shows a detailed flowchart of the DA processing (S403).

[0037] In S411, the DA unit 220 reads the learning image 500. In the learning image 500, the "person" and the "tree" are in focus, but the "background" is out of focus. In other words, the person and the tree are clearly visible, but the background is strongly blurred.

[0038] In S412, the DA unit 220 determines the image processing content for the learning image 500. In this embodiment, image processing refers to processing that changes the image state, and is processing that is a combination of one or more of rotation, translation, enlargement / reduction, up / down / left / right inversion, noise addition, color tone change, and brightness change. Here, it is determined that a "weak blurring process" is to be performed on the person area of ​​the learning image 500. This is to allow learning so that a person can be detected even in an unfocused situation. Note that in S412, the DA unit 220 may determine not to perform image processing.

[0039] In S413, the DA unit 220 applies the image processing determined in S412 to the learning image 500. Here, an image is generated in which the tree is in focus, the person is slightly blurred, and the background is strongly blurred, as exemplarily shown in image 510 in Fig. 5(b).

[0040] Furthermore, the DA unit 220 derives the focus degree (degree of focus) in the image 510. Note that, although an example of deriving the focus degree from the image 510 that has been subjected to the DA process will be described here, the focus degree of each region may be set first, and the DA process may be performed according to the set focus degree.

[0041] 5(c) shows focus level information 520, which is a table showing the focus level in each area (person, tree, background) of image 510. The focus level value is normalized in the range of 0.0 to 1.0. A focus level of "1.0" corresponds to an in-focus state, and a focus level of "0.0" corresponds to an out-of-focus state (=very blurred).

[0042] The area of ​​the person has been lightly blurred in S413, so the focus level has dropped to 0.8. The area of ​​the tree remains in focus, so the focus level is 1.0. The area of ​​the background is significantly out of focus, so the focus level is 0.2. This focus level information is used when determining importance.

[0043] In S404, the importance determination unit 230 determines the learning importance for each region of the extended image generated by the DA processing in S403. Fig. 4(c) shows a detailed flowchart of the learning importance determination (S404).

[0044] In S421, the importance determination section 230 reads information necessary for determining the learning importance, specifically, the image information acquired in S402, the image subjected to the DA processing in S403, and the focus level information.

[0045] In S422, the importance determination unit 230 determines a method of calculating the loss according to the purpose of learning. As described above, the purpose here is to have the system learn to "preferentially suppress erroneous detection of a region that is significantly out of focus even if an area other than a person is erroneously detected." Therefore, here, it is determined to calculate the loss for suppressing erroneous detection and the loss coefficient for suppressing non-detection based on the focus level information.

[0046] In S423, the importance determination unit 230 generates a false positive loss map 530 and an undetected loss map 540 according to the loss calculation method determined in S422. The false positive loss map 530 is a map indicating a loss coefficient for suppressing false positives, and the larger the value of the loss coefficient, the higher the learning importance. Similarly, the undetected loss map is a map indicating a loss coefficient for suppressing undetection, and the larger the value of the loss coefficient, the higher the learning importance. In machine learning using the backpropagation method, learning is carried out so as to reduce loss, so it is possible to set the learning importance using loss.

[0047] In the false positive loss map 530, a loss coefficient is set according to the difference in focus between the subject (person) and other areas (trees and background). Specifically, the loss coefficient is set to be larger for areas with a larger difference in focus.

[0048] In the above-mentioned image 510, the difference in focus level for the person region is zero. Also, the difference in focus level between the person and the background (0.6) is larger than the difference in focus level between the person and the tree (0.2). Therefore, in the false positive loss map 530 shown in FIG. 5(d), the loss coefficient is set to "none (zero)" for the person region, the loss coefficient is set to "large" for the background region, and the loss coefficient is set to "medium" for the tree region. As a result, the learning importance is set as follows: background region > tree region > person region.

[0049] On the other hand, in the undetected loss map 540, a loss coefficient is set only for the person region. Therefore, in the undetected loss map 540 shown in FIG. 5(d), a loss coefficient of "large" is set for the person region, and a loss of "zero" is set for the background region and the tree region.

[0050] In S405, the training data generation device 200 checks whether processing has been completed for all frame images included in the data set to be processed. If processing has been completed, the processing ends, and if processing has not been completed, the process returns to S402 to obtain unprocessed frame images and repeats the processing of S403 to S405.

[0051] As described above, according to the first embodiment, the learning importance (weighting) is set for each region of the composite image when learning is performed on image data after data augmentation (DA) processing. Specifically, weighting is performed so that the loss is large for regions that are to be given priority for learning.

[0052] For example, regarding the false positive loss, the weight of the loss is set larger for a given area (detection target) with a larger difference in focus level. This makes it possible to train the recognition model (NN weighting coefficient) so that even if a false positive occurs in the camera's autofocus (AF), the occurrence of focus shifts in the detection target is suppressed.

[0053] Second embodiment In the second embodiment, the operation of the learning data generation device 200 when performing a process of synthesizing an object image with learning image data as DA processing will be described. Specifically, an object image is added to learning image data including a person as an obstructing object that obstructs the person. As in the first embodiment, the aim is to train the device so that "even when an area other than a person is erroneously detected, erroneous detection of an area that is significantly out of focus is preferentially suppressed." Note that the learning method in the learning device 300 is the same as in the first embodiment, and therefore description thereof will be omitted.

[0054] <Device Operation> Fig. 6 is a flowchart of the process executed by the DA unit in the second embodiment. The overall flowchart executed by the learning data generation device 200 is similar to that in the first embodiment (Fig. 4(a)), so a description thereof will be omitted. Fig. 7 is a diagram for explaining the determination of importance in the second embodiment.

[0055] In S601, the DA unit 220 reads image information. The image information specifically includes a learning image 700 (FIG. 7(a)), an object image 710 (FIG. 7(b)) for image synthesis, and focus level information of the learning image 700.

[0056] In S602, the DA unit 220 executes a first image processing. The first image processing is image processing on the learning image 700, such as enlargement / reduction processing or blurring processing. Note that the first image processing is not necessarily required. Here, since no image processing is performed, the learning image 700 is output as it is.

[0057] In S603, the DA unit 220 selects an object image 710 to be synthesized (added) to partially occlude a subject (person) included in the learning image 700. Here, the object image 710 read in S601 is used, but if there are multiple object images, one or more object images are selected.

[0058] In S604, the DA unit 220 executes the second image processing. The second image processing is image processing on the object image 710, such as enlargement / reduction processing or blurring processing. Note that the second image processing is not necessarily required. Here, it is assumed that the enlargement processing and blurring processing are performed on the object image 710, and the object image 711 is output.

[0059] In S605, the DA unit 220 performs image synthesis of the learning image 700 and the object image 711. At this time, it is sufficient that the object image 711 is synthesized to partially occlude the subject (person) included in the learning image 700, and the proportion of the subject that is occluded can be set to any value. Here, it is assumed that a synthetic image 720 is output in which the object image 711 occludes about 20% of the person area in the learning image 700. Note that multiple synthetic images with different occlusion proportions and occlusion positions may be generated.

[0060] FIG. 7(c) shows focus degree information 730, which is a table showing the focus degrees before and after processing by image processing (S602, S604) for the subject (person), object (ball), and background. Before processing, the person and ball are in focus with a focus degree of "1.0", while the background is slightly out of focus with a focus degree of "0.8". After processing, the person was not image-processed in S602, so the focus degree remains at "1.0". Meanwhile, the ball was blurred in S604, so the focus degree falls to "0.5". The background, like the person, was not image-processed in S602, so the focus degree remains at "0.8". This focus degree information is used when determining the importance of learning.

[0061] In S404, the importance determination unit 230 determines the learning importance. The detailed flowchart of the learning importance determination (S404) is the same as that in the first embodiment (FIG. 4(c)).

[0062] In S421, importance determination section 230 reads information necessary for determining the learning importance. Specifically, the image information acquired in S402, composite image 720 subjected to DA processing in S403, and focus level information 730 are read.

[0063] In S422, the importance determination unit 230 determines a method of calculating the loss according to the purpose of learning. As described above, the purpose here is to learn to "preferentially suppress erroneous detection of a region that is significantly out of focus even if an area other than a person is erroneously detected" as in the first embodiment. Therefore, here, it is determined to calculate the loss for suppressing erroneous detection and the loss coefficient for suppressing non-detection based on the focus level information.

[0064] In S423, the importance determination unit 230 generates the false positive loss map 740 and the undetected loss map 750 according to the loss calculation method determined in S422. In the false positive loss map 740, a loss coefficient is set according to the difference in focus between the subject (person) and other areas (ball and background). Specifically, the loss coefficient is set to be larger for areas with a larger difference in focus.

[0065] In the above-mentioned composite image 720, the difference in focus level for the person region is zero. Also, the difference in focus level between the person and the ball (0.5) is larger than the difference in focus level between the person and the background (0.2). Therefore, in the false positive loss map 740 shown in FIG. 7(f), a loss coefficient of "none (zero)" is set for the person region, a loss coefficient of "large" for the ball region, and a loss coefficient of "medium" for the background region. As a result, the learning importance is set as follows: ball region > background region > person region.

[0066] On the other hand, in the undetected loss map 750, a loss coefficient is set only for the area of ​​the person that is not occluded by the ball. Therefore, in the undetected loss map 750 shown in FIG. 7(g), a loss coefficient of "large" is set for the person area, and a loss of "zero" is set for the background area and the ball area.

[0067] In the above description, an example was described in which the blurring process is not performed on the learning image 700 containing a subject (person) and the blurring process is performed on the object image 710 containing an obstructing object (ball), but other combinations may be used. Note that in cases in which the blurring process is not performed on both the learning image 700 and the object image 710, or in cases in which the blurring process is performed on both, the difference in focus level is small, so the loss is set small.

[0068] As described above, according to the second embodiment, when performing learning processing on a synthetic image after data augmentation (DA) processing, a learning importance (weighting) is set for each region of the synthetic image. Specifically, as in the first embodiment, a larger weight is set for a region with a larger difference in focus level with respect to a given region (detection target) in terms of false positive loss. This makes it possible to learn a recognition model (weighting coefficient of NN) so that the occurrence of focus shift of the detection target is suppressed even if a false positive occurs in the autofocus (AF) of the camera.

[0069] Third embodiment In the third embodiment, the operation of the learning data generation device 200 when performing a process of synthesizing an object image with learning image data as a DA process will be described. Specifically, an object image is added to learning image data including a person as an obstruction that obstructs the person. However, the third embodiment differs from the second embodiment in that a semi-transparent area of ​​the obstruction exists due to blurring or shaking of the obstruction. In addition, the third embodiment aims to train the device to "detect a human area to be focused on". Note that the learning method in the learning device 300 is the same as that in the first embodiment, and therefore the description will be omitted.

[0070] <Device Operation> 8 is a diagram for explaining the determination of importance in the third embodiment. The flowchart of the process executed by the DA unit is the same as that in the second embodiment (FIG. 6). The overall flowchart executed by the training data generation device 200 is the same as that in the first embodiment (FIG. 4(a)), so a description thereof will be omitted.

[0071] In S601, the DA unit 220 reads image information. The image information specifically includes a learning image 800 (FIG. 8(a)), an object image 810 (FIG. 8(b)) for image synthesis, and focus level information of the learning image 800.

[0072] In S602, the DA unit 220 executes a first image processing. The first image processing is image processing on the learning image 800, such as enlargement / reduction processing or blurring processing. Note that the first image processing is not necessarily required. Here, since no image processing is performed, the learning image 800 is output as is.

[0073] In S603, the DA unit 220 selects an object image 810 to be synthesized to partially occlude a subject (person) included in the learning image 800. Here, the object image 810 read in S601 is used, but if there are multiple object images, one or more object images are selected.

[0074] In S604, the DA unit 220 executes the second image processing. The second image processing is image processing for the object image 810, where strong blur processing (processing to express high speed movement to the left) is performed on the object image 810 to generate the object image 811. At this time, the "semi-transparent area with an unclear boundary" generated by the blur processing is stored in the object image 811 as mixed area information.

[0075] In S605, the DA unit 220 performs image synthesis on the learning image 800 and the object image 811. At this time, the image is synthesized so that the object image 811 partially occludes a subject (person) included in the learning image 800.

[0076] In S421, the importance determination unit 230 reads information necessary for determining the learning importance, specifically, the composite image 820 and the mixed region information generated in S403.

[0077] In S422, the importance determination unit 230 determines a method for calculating the loss. Here, a loss calculation method for an image having a mixed region (a region where a semi-transparent obstruction and a subject overlap as described above) is selected. In addition, the loss calculation may be performed in combination with the methods described in other embodiments.

[0078] In S423, the importance determination unit 230 generates a false positive loss map 830 and a non-detection loss map 840 according to the loss calculation method determined in S422. In the false positive loss map 830, a loss coefficient is set for areas other than areas where people are visible, in order to suppress false positives outside of subject (person) areas. Therefore, in the false positive loss map 830 shown in FIG. 8(e), a loss coefficient of "zero" is set for areas where people are visible, and a loss of "large" is set for the background area and the ball area.

[0079] On the other hand, in the undetected loss map 840, a loss coefficient is set for areas where a person is visible. In particular, a loss coefficient of "large" is set for unoccluded person areas, and a loss coefficient of "medium" is set for mixed areas. This is because, when learning a person area to be focused on, the detection priority of a person that appears semi-transparent is lowered. By prioritizing learning of unoccluded person areas over learning of mixed areas (areas that are semi-transparent and have an unstable appearance), learning can be efficiently carried out for the purpose of "detecting a person area to be focused on."

[0080] As described above, according to the third embodiment, by increasing the learning importance of areas that are stably visible and proceeding with learning, it is possible to efficiently learn areas that must be detected in order to focus on people.

[0081] (Fourth embodiment) In the fourth embodiment, the operation of the learning data generation device 200 when performing a process of synthesizing an object image with learning image data as DA processing will be described. Specifically, an object image is added to learning image data including a person as an obstruction that obstructs the person, and the area of ​​the person is divided into a plurality of partial areas. The purpose is to train the device to "detect the person area to be focused on" as in the third embodiment. Note that the learning method in the learning device 300 is the same as in the above-mentioned embodiments, and therefore description thereof will be omitted.

[0082] <Device Operation> Fig. 9 is a flowchart of the process executed by the importance determination unit in the fourth embodiment. The process in Fig. 9 is performed prior to the process in Fig. 4(c). The flowchart of the process executed by the DA unit is the same as that in the second and third embodiments (Fig. 6). The overall flowchart executed by the training data generation device 200 is the same as that in the first embodiment (Fig. 4(a)), so a description thereof will be omitted.

[0083] In the fourth embodiment, the DA unit 220 synthesizes a pole image with an image 1000 shown in Fig. 10(a) to generate an image 1010 in which the pole is blocking a subject (a person). In the image 1010, both the person and the pole are in focus.

[0084] In S901, the importance determination unit 230 reads area information of a person in the image 1010. In S902, the importance determination unit 230 determines whether the learning target area is divided. If it is divided, the process proceeds to S903, and if it is not divided, the process ends.

[0085] In image 1010, the subject (person) is divided (segmented) into three regions, as shown in image 1020 in FIG. 10(c). In the following description, the left partial region is called region 1, the upper right partial region is called region 2, and the lower right partial region is called region 3, as shown in image 1020. Note that, although it is assumed that the determination in S902 uses an object contour extraction method that is generally used for contour extraction of binary images, the determination may be performed using other methods. Furthermore, the determination may be performed using a correct answer label prepared in advance.

[0086] In S903, importance determination unit 230 calculates how many pixels each of the divided regions (here, regions 1 to 3) will have. Each region information obtained in S903 is used to determine the loss calculation method in S422.

[0087] In S422, the importance determination unit 230 determines a method for calculating the loss. Here, since the person region is divided, a loss calculation method based on the number of pixels in the partial region is selected. In addition, the loss calculation may be performed in combination with the methods described in other embodiments.

[0088] In S423, the importance determination unit 230 generates the false positive loss map 1030 and the undetected loss map 1040 according to the loss calculation method determined in S422. In the false positive loss map 1030, a loss coefficient is set for areas other than the areas where people are visible (areas 1 to 3 in this case) in order to suppress false positives outside the subject (person) area. Therefore, in the false positive loss map 1030 shown in Fig. 10(d), a loss coefficient of "none (zero)" is set for the areas where people are visible, and a loss of "large" is set for the background area and the pole area.

[0089] On the other hand, in the undetected loss map 1040, "no (zero)" loss is set for the background region and the pole region. Different loss coefficients are set for the three partial regions where people are visible according to the region area (number of pixels). Here, a "large" loss coefficient is set for region 1, the widest of the three partial regions, a "no (zero)" loss coefficient for region 3, the narrowest, and a "medium" loss coefficient for region 2.

[0090] This means that for the purpose of "detecting a human region to be focused on", it is sufficient to be able to detect at least a part of the human body. In other words, if area 1, which is expected to be relatively wide and more stably detectable, can be detected, it is possible to focus (even if areas 2 and 3 cannot be detected).

[0091] For this reason, it is believed that learning will proceed efficiently by prioritizing learning of region 1, which is a relatively wide region. For this reason, a loss factor of "large" is set for region 1. On the other hand, relatively narrow regions have fewer characteristics of the human body, and often become noise for detector 321. In other words, there is a risk that learning will not progress if an attempt is made to learn a relatively narrow region. A loss factor of "medium" is set for region 2, and a loss factor of "none (zero)" is set for region 3.

[0092] As described above, according to the fourth embodiment, when a subject to be learned is divided into multiple regions, a larger loss coefficient is set for a relatively large region that can be detected more stably. By increasing the learning importance of regions that can be seen stably and proceeding with learning, it is possible to efficiently learn regions that must be detected to focus on a person.

[0093] In the above description, the learning importance is determined according to the area of ​​the area in which a person is photographed, but the learning importance may be determined in combination with the detection results of facial organ points (feature points such as eyes, nose, and mouth), etc. For example, the learning importance may be determined based on information about the parts photographed, such as by increasing the learning importance of an area in which a relatively large number of facial organ points are photographed.

[0094] (Modification) In the above embodiment, an example was described in which the learning importance was set according to the difference in "focus level," "visibility (clarity level)," and "area" between the area of ​​the detection object and the area other than the detection object. However, the learning importance may be set according to the difference in other image conditions depending on the purpose of learning. Here, the image conditions refer to the focus level, color tone, brightness, noise level, blur / shake level, occlusion level, subject orientation, etc.

[0095] For example, if the goal is to "improve the detection rate under various conditions," the learning importance may be determined according to the color tone difference. Also, if the goal is to "generate a recognition model that is robust to changes in the lighting environment," the learning importance may be determined according to the brightness difference.

[0096] In the above embodiment, a loss map is used to calculate the loss due to false positives and non-detections, but this is not necessarily required. Also, the relationship between the learning importance of false positives and non-detections may be changed depending on the purpose of learning.

[0097] The disclosure of this specification includes the following image processing device, learning device, and control method. (Item 1) 1. An image processing device that generates image data used to train a detector that performs a detection task, comprising: an acquisition means for acquiring an input image including a detection target of the detection task; a processing means for applying a data augmentation process to the input image to generate an augmented image; a determination means for determining a learning importance in learning the detector for each of a plurality of different regions included in the extended image; An image processing device comprising: (Item 2) The determining means determines a learning importance of each of the plurality of regions based on a difference from the image state of the detection target. 2. The image processing device according to item 1, (Item 3) The plurality of regions includes a region of an object that has been blurred by the data augmentation process. 3. The image processing device according to item 1 or 2. (Item 4) The plurality of regions includes a region of an obstruction that is added by the data augmentation process and obstructs the detection target. 4. The image processing device according to any one of items 1 to 3, (Item 5) The obstruction is blurred by the data augmentation process. 5. The image processing device according to item 4, (Item 6) The determining means determines a learning importance of each of the plurality of areas based on a difference in a focus degree of the detection object. 6. The image processing device according to any one of items 3 to 5, (Item 7) The determining means determines a weighting of a false positive loss in the learning of the detector as the learning importance. 7. The image processing device according to any one of items 1 to 6, (Item 8) The determining means further determines a weighting of undetected losses in training the detector; The weighting of the undetected loss is set to zero for areas other than the area to be detected. 8. The image processing device according to any one of items 1 to 7, (Item 9) the plurality of regions include a region of an obstruction that is added by the data augmentation process and obstructs the detection target, and a mixed region of a semi-transparent region caused by the obstruction and the detection target region, The obstruction is blurred by the data augmentation process, and the semi-transparent area is an area caused by the blurring process, The weighting of the undetected loss for the mixed region is set to be smaller than the weighting of the undetected loss for the detection target region. 9. The image processing device according to item 8, (Item 10) the plurality of regions includes a region of an obstruction that is added by the data augmentation process and obstructs the detection target, the detection target area is divided into a plurality of partial areas by the obstruction, The weighting of the undetected loss for each of the plurality of partial regions is set to be larger as the area of ​​the partial region increases. 9. The image processing device according to item 8, (Item 11) the detection target is a person, The image processing device further includes a detection unit for detecting face organ points of a person included in the extended image, The weighting of the undetected loss for each of the plurality of sub-regions is determined further based on the number of facial feature points included in each of the plurality of sub-regions. 11. The image processing device according to item 10, (Item 12) A learning means for learning a detector that executes a detection task based on one or more augmented images generated by the image processing device according to any one of items 1 to 11 and learning importance corresponding to each of the one or more augmented images. A learning device comprising: (Item 13) The detection task is performed in an autofocus (AF) of a camera, The detector is trained to suppress occurrence of focus shift due to the AF even if a false detection occurs. 13. The learning device according to item 12, (Item 14) 1. A method for controlling an image processing device that generates image data used for training a detector that executes a detection task, comprising: acquiring an input image including a detection target of the detection task; a processing step of applying a data augmentation process to the input image to generate an augmented image; determining a learning importance level in the learning of the detector for each of a plurality of different regions included in the extended image; A control method comprising:

[0098] (Other Examples) The present invention can also be realized by a process in which a program for implementing one or more of the functions 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) that implements one or more of the functions.

[0099] The invention is not limited to the above-described embodiments, and various modifications and variations are possible without departing from the spirit and scope of the invention. Accordingly, the following claims are appended to apprise the public of the scope of the invention. [Explanation of symbols]

[0100] 200 learning data generating device; 210 information acquiring unit; 220 DA unit; 230 importance determining unit; 300 learning device; 310 learning data acquiring unit; 320 detection unit; 330 loss calculation unit; 340 weight updating unit

Claims

1. 1. An image processing device that generates image data used to train a detector that performs a detection task, comprising: an acquisition means for acquiring an input image including a detection target of the detection task; a processing means for applying a data augmentation process to the input image to generate an augmented image; a determination means for determining a learning importance in learning the detector for each of a plurality of different regions included in the extended image; An image processing device comprising:

2. The determining means determines a learning importance of each of the plurality of regions based on a difference from the image state of the detection target.

2. The image processing device according to claim 1,

3. The plurality of regions includes a region of an object that has been blurred by the data augmentation process.

2. The image processing device according to claim 1,

4. The plurality of regions includes a region of an obstruction that is added by the data augmentation process and obstructs the detection target.

2. The image processing device according to claim 1,

5. The obstruction is blurred by the data augmentation process.

5. The image processing device according to claim 4.

6. The determining means determines a learning importance of each of the plurality of areas based on a difference in a focus degree of the detection object.

4. The image processing device according to claim 3.

7. The determining means determines a weighting of a false positive loss in the learning of the detector as the learning importance.

2. The image processing device according to claim 1,

8. The determining means further determines a weighting of undetected losses in training the detector; The weighting of the undetected loss is set to zero for areas other than the area to be detected.

2. The image processing device according to claim 1,

9. the plurality of regions include a region of an obstruction that is added by the data augmentation process and obstructs the detection target, and a mixed region of a semi-transparent region caused by the obstruction and the detection target region, The obstruction is blurred by the data augmentation process, and the semi-transparent area is an area caused by the blurring process, The weighting of the undetected loss for the mixed region is set to be smaller than the weighting of the undetected loss for the detection target region.

9. The image processing device according to claim 8,

10. the plurality of regions includes a region of an obstruction that is added by the data augmentation process and obstructs the detection target, the detection target area is divided into a plurality of partial areas by the obstruction, The weighting of the undetected loss for each of the plurality of partial regions is set to be larger as the area of ​​the partial region increases.

9. The image processing device according to claim 8,

11. the detection target is a person, The image processing device further includes a detection unit for detecting face organ points of a person included in the extended image, The weighting of the undetected loss for each of the plurality of sub-regions is determined further based on the number of facial feature points included in each of the plurality of sub-regions. The image processing device according to claim 10 .

12. A learning means for learning a detector that executes a detection task based on one or more augmented images generated by the image processing device according to any one of claims 1 to 11 and a learning importance corresponding to each of the one or more augmented images. A learning device comprising:

13. The detection task is performed in the autofocus (AF) of a camera, The detector is trained to suppress occurrence of focus shift due to the AF even if a false detection occurs.

13. The learning device according to claim 12.

14. 1. A method for controlling an image processing device that generates image data used for training a detector that executes a detection task, comprising: acquiring an input image including a detection target of the detection task; a processing step of applying a data augmentation process to the input image to generate an augmented image; determining a learning importance level in the learning of the detector for each of a plurality of different regions included in the extended image; A control method comprising:

Citation Information

Patent Citations

  • Information processing apparatus

    JP2021033707A

  • Image processing system, image processing method, and program

    JP2021196995A