Trained model and data processing device

The trained model and data processing device address the challenge of image quality deterioration in CNN-based recognition by incorporating quality estimation, improving accuracy through adaptive processing based on image quality parameters.

JP7543080B2Active Publication Date: 2024-09-02SECOM CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2020176698
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-10-21
Publication Date
2024-09-02
Estimated Expiration
2040-10-21

AI Technical Summary

Technical Problem

Existing image recognition methods using CNNs suffer from decreased performance due to image quality deterioration such as block noise or out-of-focus issues, and adding noise to training data to simulate various degradation types does not adequately address recognition accuracy in diverse camera and installation conditions.

Method used

A trained model and data processing device that includes a quality estimation component to account for image quality parameters like compression, sharpness, noise, and camera information, allowing data processing to adapt to various quality deteriorations by using these parameters during processing.

Benefits of technology

Improves recognition accuracy by performing data processing according to the quality of the input image, enhancing performance in environments with varying image quality issues.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007543080000003
    Figure 0007543080000003
  • Figure 0007543080000011
    Figure 0007543080000011
  • Figure 0007543080000014
    Figure 0007543080000014
Patent Text Reader

Abstract

To provide a learned model and a data processor that enable data processing according to quality of target data and improve processing accuracy in an environment where various quality deterioration may occur.SOLUTION: A data input layer 49A acquires target data, a data intermediate layer 49B receives an output of a data input layer 49A and a parameter related to quality of the target data output from a quality estimator 48 as inputs, and a data output layer 49C receives an output of the data intermediate layer 49B and outputs a processing result of the target data. The target data is processed by inputting the target data and the parameter related to the quality of the target data output from the quality estimator 48 into a data processor 49.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a trained model and a data processing device for outputting processing results of target data. [Background technology]

[0002] As a technology for recognizing a specific object from an image, there is a method using CNN (convolutional neural networks) as described in Non-Patent Document 1. Non-Patent Document 1 uses CNN to estimate the position, size, type, etc. of an object appearing in an image. [Prior art documents] [Non-patent literature]

[0003] [Non-Patent Document 1] Ren, Shaoqing, et al. "Faster R-CNN: towards real-time object detection with region proposal networks." IEEE transactions on pattern analysis and machine intelligence 39.6 (2017): 1137-1149. Summary of the Invention [Problem to be solved by the invention]

[0004] In the method described in Non-Patent Document 1, the images used for learning are taken with high image quality, and there is a problem that the recognition performance is degraded if the input image has image quality degradation such as block noise or out-of-focus. As a countermeasure, it is possible to add noise to the images used for learning and reproduce the same image quality degradation as expected in the input image. On the other hand, when performing recognition processing with a wide variety of cameras and installation conditions, different image quality degradation occurs in each case, so many types of noise are added as a very wide range of noise for learning, which cannot be covered by a single CNN alone, resulting in a problem of degraded recognition performance.

[0005] Therefore, the present invention has been made in consideration of the above problems, and aims to provide a trained model and a data processing device that enable data processing according to the quality of the target data and improves processing accuracy in environments where various quality degradations are possible. [Means for solving the problem]

[0006] In order to achieve the above-mentioned object, the trained model of the first invention is a trained model including a data input means for acquiring target data, a data intermediate means for receiving the output of the data input means and parameters related to the quality of the target data output from a quality estimation unit for estimating the quality of the target data, and a data processing unit having a data output means for receiving the output of the data intermediate means and outputting the processing result of the target data, and the model is trained using the target data for training the data processing unit, the correct processing result of the target data, and the parameters related to the quality of the target data output from the quality estimation unit as a training dataset.

[0007] According to the trained model of the first invention, parameters related to the estimated quality of the target data are used during data processing, making it possible to process data according to the quality of the target data, thereby improving processing accuracy in environments where various quality degradations are possible.

[0008] Moreover, the quality estimation unit can be trained using target data for quality estimation unit training and the quality of the target data as a training data set for quality estimation unit training.

[0009] Moreover, the quality estimation unit can be trained by further including target data for training the data processing unit and the quality of the target data in a training data set for training the quality estimation unit.

[0010] The trained model of the second invention is a trained model including a data processing unit equipped with a data input means for acquiring target data and parameters related to the quality of the target data, a data intermediate means to which the target data and parameters related to the quality of the target data are input as output of the data input means, and a data output means to which the output of the data intermediate means is input and which outputs the processing result of the target data, and the model is trained using the target data for training the data processing unit, the correct processing result of the target data, and the parameters related to the quality of the target data as a training dataset.

[0011] According to the trained model of the second invention, parameters related to the quality of the input target data are used during data processing, making it possible to process data according to the quality of the target data, thereby improving processing accuracy in environments where various quality degradations are possible.

[0012] In addition, the data processing unit is a neural network having the data input means, the data output means, and the data intermediate means provided between the data input means and the data output means, and the output of the data intermediate means can be determined according to a parameter related to the quality of the target data.

[0013] Furthermore, the data processing unit may be a convolutional neural network, and a filter coefficient of a filter used in the convolution process of the data intermediate means may be determined according to a parameter related to the quality of the target data.

[0014] In addition, the target data is an image, and the quality may include at least one of a parameter related to image compression, a parameter related to image sharpness, a parameter related to false color, a parameter related to an interlacing method, a parameter related to image sensor noise, a parameter related to camera information, a parameter related to resolution, a parameter related to lens distortion, a parameter related to frame type, a parameter related to color cast, and a parameter related to contrast.

[0015] A data processing device according to a third invention is a data processing device comprising a data processing unit including a data input means, a data intermediate means, and a data output means, and a quality estimation unit for estimating the quality of target data, wherein the data input means acquires target data, the data intermediate means receives the output of the data input means and parameters related to the quality of the target data output from the quality estimation unit, the data output means receives the output of the data intermediate means and outputs the processing result of the target data, and the data processing unit learns using target data for data processing unit training, the correct processing result of the target data, and the parameters related to the quality of the target data output from the quality estimation unit as a training dataset, and the target data is processed by inputting the target data and the parameters related to the quality of the target data output from the quality estimation unit to the data processing unit.

[0016] According to the data processing device of the third invention, parameters related to the estimated quality of the target data are used during data processing, making it possible to process data according to the quality of the target data, thereby improving processing accuracy in environments where various quality degradations are possible.

[0017] A data processing device according to a fourth invention is a data processing device comprising a data processing unit including a data input means, a data intermediate means, and a data output means, wherein the data input means acquires target data and parameters related to the quality of the target data, the data intermediate means receives the target data and parameters related to the quality of the target data which are the output of the data input means, the data output means receives the output of the data intermediate means and outputs the processing result of the target data, the data processing unit learns using the target data for data processing unit training, the correct processing result of the target data, and the parameters related to the quality of the target data as a training dataset, and the target data is processed by inputting the target data and the parameters related to the quality of the target data to the data processing unit.

[0018] According to the data processing device of the fourth aspect of the present invention, parameters related to the quality of the input target data are used during data processing, making it possible to process data according to the quality of the target data, thereby improving processing accuracy in environments where various quality degradations are possible. Effect of the Invention

[0019] As described above, the trained model and data processing device of the present invention enable data processing according to the quality of the target data, thereby making it possible to improve processing accuracy in environments where various quality degradations are possible. [Brief description of the drawings]

[0020] [Figure 1] 1 is a block diagram showing a configuration of a quality estimator learning device according to an embodiment of the present invention. [Diagram 2] 2 is a block diagram showing a configuration of a quality estimator learning means of the quality estimator learning device according to the embodiment of the present invention. FIG. [Diagram 3] 1 is a block diagram showing a configuration of a data processor learning device according to an embodiment of the present invention; [Figure 4] 2 is a block diagram showing a configuration of a data processor learning means of the data processor learning device according to the embodiment of the present invention; FIG. [Diagram 5] 11 is a block diagram showing a configuration of a feature synthesis unit of the data processor; [Figure 6] 1 is a block diagram showing a configuration of a data processing device according to an embodiment of the present invention; [Figure 7] 2 is a block diagram showing a configuration of a recognition unit of the data processing device according to the embodiment of the present invention; FIG. [Figure 8] 5 is a flowchart showing the operation of a learning process by the quality estimator learning device according to the embodiment of the present invention. [Figure 9] 5 is a flowchart showing the operation of a learning process by the data processor learning device according to the embodiment of the present invention. [Figure 10] 5 is a flowchart showing the operation of a recognition process by the data processing device according to the embodiment of the present invention. [Figure 11] FIG. 13 is a block diagram showing a configuration of a data processor learning means of a data processor learning device according to another embodiment of the present invention. [Figure 12] FIG. 13 is a block diagram showing a configuration of a data processor learning means of a data processor learning device according to another embodiment of the present invention. [Figure 13] FIG. 13 is a block diagram showing a configuration of a recognition unit of a data processing device according to another embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0021] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. As an example of an embodiment of a data processing system, a system including a quality estimator learning device, a data processor learning device, and a data processing device will be described. In addition, in this embodiment, a case will be described in which the target data is an image, the data processing is object detection, and the quality of the target data is image quality.

[0022] The quality estimator learning device constructs a quality estimator that estimates the image quality of an input image. The data processor learning device constructs a data processor that estimates the position and category of an object appearing in the input image. The data processing device uses the quality estimator created by the quality estimator learning device and the data processor created by the data processor learning device to recognize an object appearing in an image capturing a space in which the object may exist, and notifies the recognition result. In recognizing an object, the circumscribing rectangle and category of the object are estimated.

[0023] In this embodiment, an example will be described in which the target object is a person, but in the present invention, the target object may be a part of a human body, such as the upper body of a person, or an object other than a person, such as a vehicle. Furthermore, a plurality of targets may be set, such as a person, a car, a bicycle, etc. Furthermore, the quality estimator is an example of a quality estimation unit. The data processor is an example of a data processing unit. The configuration of each device in the data processing system will be described in order.

[0024] <Configuration of quality estimator learning device> The quality estimator training device is a device that trains a quality estimator that estimates the image quality of an input image by using training data for quality estimator training that is prepared in advance. 1 shows a block diagram of the quality estimator learning device 2. The quality estimator learning device 2 includes a quality estimator learning data storage means 20, an image quality degradation means 21, a quality estimator learning means 22, and a learned model storage means 23.

[0025] A large number of images for quality estimator training are stored in the quality estimator training data storage means 20. These images are high quality images with little degradation in image quality. In this invention, a high-quality image refers to an image that is free of factors that hinder object detection, such as no superimposed noise, no block noise due to compression such as JPEG, and no false colors.

[0026] The image quality degradation means 21 reads the quality estimator learning image from the quality estimator learning data storage means 20, and creates a learning degraded image. The learning degraded image is created by adding various image quality changing processes. In this embodiment, Gaussian filter processing or JPEG degradation processing is applied as the image quality changing process.

[0027] Gaussian filter processing randomly selects a filter size from eight options: 0, 1, 2, 4, 8, 16, 32, and 64, and applies a Gaussian filter to the input image with the selected filter size. This allows the generation of an image that appears out of focus. The degree of blurring varies depending on the filter size, and the larger the filter size, the more blurred the image that is generated. Note that a filter size of 0 indicates that Gaussian filter processing is not performed.

[0028] JPEG degradation processing involves encoding an input image in JPEG format using a randomly selected JPEG quality factor, and then decoding it again. JPEG quality factor is a value between 1 and 100, with higher values ​​indicating higher image quality. This processing makes it possible to add noise specific to JPEG. In this embodiment, a quality factor is randomly selected from ten types: 10, 20, 30, . . . , 100, and used to perform JPEG degradation processing.

[0029] The image quality parameters of the Gaussian filter generated by the image quality degradation means 21 are represented by an eight-dimensional one-hot vector. For example, if the selected filter size is 4, the image quality parameters of the Gaussian filter are represented by (0,0,0,1,0,0,0,0). The image quality parameters of the JPEG quality factor are represented by a ten-dimensional one-hot vector. For example, if the selected quality factor is 20, the image quality parameters of the JPEG quality factor are represented by (0,1,0,0,0,0,0,0,0,0,0).

[0030] The image quality degradation means 21 outputs the image quality parameters, i.e., the filter size selected by the Gaussian filter and the selected JPEG quality factor, as correct image quality parameters, linked to a learning degraded image that has been subjected to both Gaussian filter processing and JPEG degradation processing using the parameters selected for a high-image-quality image.

[0031] The quality estimator learning means 22 reads the learning degraded image and the correct image quality parameters from the image quality degradation means 21, and uses them as a training data set for learning the quality estimator to learn the quality estimator. In other words, the quality estimator is trained so that when the learning degraded image is input, a value close to the correct image quality parameters linked to the learning degraded image is output. After learning, the obtained quality estimator is stored in the trained model storage means 23.

[0032] As shown in FIG. 2, the quality estimator learning means 22 includes a learning estimator 38, an image quality estimation error calculator 42, and a parameter updater 43. The learning estimation unit 38 estimates image quality parameters using a quality estimator 39. The quality estimator 39 is composed of a neural network that receives a color image as input and outputs estimated image quality parameters. An overview of the network structure of the quality estimator 39 in the quality estimator learning device 2 is shown in Figure 2. The quality estimator 39 is composed of an image quality feature extraction unit 40 and an image quality estimation unit 41. The image quality feature extraction unit 40 receives a learning degraded image as input and calculates image quality feature quantities. The image quality estimation unit 41 receives the calculated image quality feature quantities as input and outputs estimated values ​​of image quality parameters.

[0033] The image quality feature extraction unit 40 and the image quality estimation unit 41 are, for example, CNNs configured with convolution processing, full connection processing, a ReLU function (activation function), max-pooling, etc. This configuration is determined in advance, and parameters such as filters and biases used in the convolution processing and full connection processing are obtained by the quality estimator learning means 22.

[0034] The image quality feature extraction unit 40 first calculates a feature map by repeating convolution processing, ReLU function, and max-pooling on the input image. This feature map is in the form of a three-dimensional numerical sequence with vertical, horizontal, and channel dimensions. The image quality feature extraction unit 40 performs global average pooling on the calculated feature map, averaging the feature map in the vertical and horizontal directions. As a result, the feature map becomes a feature vector with the dimension of the number of channels. The image quality feature extraction unit 40 outputs this feature vector as an image quality feature.

[0035] The image quality estimation unit 41 uses the image quality feature values ​​calculated by the image quality feature extraction unit 40 to calculate image quality parameter estimates (estimated image quality parameters) for each type of image quality through full-coupling processing, a softmax function, etc. In this embodiment, there are eight types of Gaussian filter sizes and ten types of JPEG quality factors, and the estimation of each image quality parameter is considered to be a classification problem. Therefore, the image quality estimation unit 41 calculates the probability value of the image quality parameter for each type of image quality as the estimated image quality parameter.

[0036] The estimated image quality parameter for the filter size of the Gaussian filter is a value that represents how blurred the input image is, and corresponds to the filter size of the Gaussian filter used to blur an unblurred image. The estimated image quality parameter is expressed as an 8-dimensional vector. For example, the first element represents the probability that the input image is as blurred as an image processed with a Gaussian filter with a filter size of 0, the second element represents the probability that the input image is as blurred as an image processed with a Gaussian filter with a filter size of 1, and the third element represents the probability that the input image is as blurred as an image processed with a Gaussian filter with a filter size of 2.

[0037] The estimated image quality parameter for the quality factor of JPEG degradation processing is a value that expresses the degree of degradation of the input image, such as JPEG degradation, and corresponds to the quality factor at which JPEG degradation processing is performed on an uncompressed image. The estimated image quality parameter is expressed as a 10-dimensional vector. For example, the first element represents the probability that the input image is as degraded as an image processed by JPEG degradation processing with a quality factor of 10, the second element represents the probability that the input image is as degraded as an image processed by JPEG degradation processing with a quality factor of 20, and the third element represents the probability that the input image is as degraded as an image processed by JPEG degradation processing with a quality factor of 30. Note that a value other than JPEG quality may be used as the image quality parameter for image compression. Also, a value other than the Gaussian filter size may be used as the image quality parameter for sharpness.

[0038] Specifically, the image quality estimation unit 41 is composed of a full-coupling process of each image quality parameter and a softmax function, and calculates estimated image quality parameters for each type of image quality from the image quality feature amount, i.e., a probability vector corresponding to the image quality parameter. This allows the probability of an 8-dimensional vector as the estimated image quality parameter for the filter size of the Gaussian filter and a 10-dimensional vector as the estimated image quality parameter for the JPEG quality factor to be calculated.

[0039] The image quality estimation error calculation unit 42 calculates the error found from the correct image quality parameters output from the image quality degradation means 21 and the estimated image quality parameters output from the image quality estimation unit 41. This error is found by calculating the error between the estimated image quality parameters and the correct image quality parameters for each type of image quality and taking the sum of these errors. In this embodiment, since the estimation of the Gaussian filter size and the JPEG quality factor is considered to be a classification problem, the cross entropy error, which is widely used as an error in classification problems, is used as the error between both image quality parameters. Although the estimation of image quality parameters is treated as a classification problem, it may be treated as a regression problem. In that case, the output value of the image quality estimation unit 41 of the quality estimator 39 is not the probability value of each parameter, but each parameter itself is estimated, and the error from the correct image quality parameter is measured by the square error. This is the same as for the image quality estimator 61 of the quality estimator 58 described later.

[0040] The parameter update unit 43 updates the parameters of the quality estimator 39 so as to minimize the error calculated by the image quality estimation error calculation unit 42. The stochastic gradient method is used to minimize the error. In learning by the stochastic gradient method, the parameters of the image quality feature extraction unit 40 and the image quality estimation unit 41 are first initialized with random values ​​or the like. After that, the gradient of the parameters is calculated by the error backpropagation method based on the error between the estimated image quality parameter and the correct image quality parameter, and the parameters of the image quality feature extraction unit 40 and the image quality estimation unit 41 are updated based on the gradient. The quality estimator learning device 2 learns the quality estimator 39 by repeating the above-mentioned processes of reading the learning data, calculating the error, and updating the parameters of the image quality feature extraction unit 40 and the image quality estimation unit 41. As the iteration end condition, for example, whether or not the amount of variation of the error has become smaller than a predetermined threshold value, whether or not the number of iterations has been reached, or the like can be used. The quality estimator learning device 2 stores the finally obtained parameters of the quality estimator 39 together with the network structure and the like in the learned model storage means 23 as a learned quality estimator.

[0041] Through the above learning, the image quality feature extraction unit 40 of the quality estimator 39 becomes able to extract information suitable for estimating the image quality parameters of the learning degraded image with high accuracy. On the other hand, since the quality estimator learning image used in the above learning is a high quality image with little image degradation, most of the image degradation of the learning degraded image output by the image quality degradation means 21 is caused by the image quality degradation means 21. Therefore, the image quality feature amount output by the image quality feature extraction unit 40 obtained by learning contains a lot of information about image quality degradation in the input image, and this is used by the data processor. Note that the image quality feature amount is an example of a parameter related to quality input to the data processor.

[0042] <Configuration of Data Processor Learning Device> The data processor learning device is a device that uses learning data for data processor learning prepared in advance to learn a data processor that estimates the object position, etc., of an input image. 3 shows a block diagram of the data processor learning device 3. The data processor learning device 3 includes a data processor learning data storage means 30, an image quality degradation means 31, a data processor learning means 32, and a learned model storage means 33.

[0043] The data processor learning data storage means 30 stores correct answer object information, which is composed of a circumscribing rectangle (center position, vertical width, horizontal width) for each object in an image and an object category, associated with each of a plurality of images as learning data for data processor learning. These images are high quality images with little degradation in image quality. The correct answer object information is an example of a correct answer processing result.

[0044] The image quality degradation means 31 reads in the data processor training image from the data processor training data storage means 30, and performs Gaussian filter processing and JPEG degradation processing on the read image in the same manner as the image quality degradation means 21 of the quality estimator training device 2 to create a training degraded image.

[0045] The data processor learning means 32 reads the learning degraded image from the image quality degradation means 31, the correct object information linked to the data processor learning image that was the basis of the learning degraded image from the data processor learning data storage means 30, and the trained quality estimator obtained by the quality estimator learning device 2 from the trained model storage means 33, and uses the learning degraded image and the correct object information as a training data set to train the data processor 49, and stores the obtained data processor 49 in the trained model storage means 33.

[0046] As shown in FIG. 4, the data processor learning means 32 includes a learning processing unit 47, an object detection error calculation unit 55, and a parameter update unit . The learning processing unit 47 uses a quality estimator 48 and a data processor 49 to output the estimated center position, vertical width, horizontal width, and probability value of each category for each object in the image.

[0047] The data processor 49 is composed of a neural network that receives as input a color image and image quality features calculated by the quality estimator, and outputs the estimated center position, vertical width, horizontal width, and probability value of each category for each object in the image. An overview of the network structure of the data processor 49 in the data processor learning device 3 is shown in FIG. 4. The quality estimator obtained by the quality estimator learning device 2 is composed of an image quality feature extraction unit 50 and an image quality estimation unit 51, but in this embodiment, only the image quality feature extraction unit 50 is used. The data processor 49 is composed of an object feature extraction unit 52, a feature synthesis unit 53, and a recognition unit 54.

[0048] The image quality feature extraction unit 50 and the object feature extraction unit 52 receive the learning degraded image as input, and output the image quality feature and the object feature, respectively. The feature synthesis unit 53 synthesizes the image quality feature and the object feature, and outputs it as a synthesized feature. The recognition unit 54 uses the synthesized feature to calculate object information in the image (center position, vertical width, horizontal width, and probability value of each category), and outputs it as the recognition result.

[0049] The data processor 49 is a CNN including a data input layer 49A, a data intermediate layer 49B, and a data output layer 49C. The data intermediate layer 49B includes an object feature extraction unit 52 and a feature synthesis unit 53, and the data output layer 49C includes a recognition unit 54. The data input layer 49A acquires and outputs a degraded image for learning. The data hidden layer 49B receives the output of the data input layer 49A and the image quality feature output from the quality estimator 48, and outputs a composite feature. The output of the data intermediate layer 49B is input to the data output layer 49C, which outputs the recognition result of the learning degraded image.

[0050] The object feature extraction unit 52, feature synthesis unit 53, and recognition unit 54 are configured by convolution processing, full connection processing, ReLU function (activation function), max-pooling, etc. The network structure of the data processor 49 is determined in advance, and parameters such as filters and biases used in the convolution processing and full connection processing are obtained by the data processor learning means 32.

[0051] In this embodiment, a Feature Pyramid Network (see Non-Patent Document 2) is used as the object feature extraction unit 52. This calculates multiple feature maps with different vertical and horizontal widths from the input image using processes such as convolution processing, ReLU function, max-pooling, and up-sampling. The object feature extraction unit 52 outputs these feature maps as image features.

[0052] [Non-Patent Document 2] LIN, Tsung-Yi, et al. “Feature pyramid networks for object detection.” In: Proceedings of the IEEE conference on computer vision and pattern recognition. (2017): 2117-2125.

[0053] The feature synthesis unit 53 calculates a synthetic feature by performing a convolution process on the object feature using a filter set calculated using the image quality feature. Specifically, the synthetic feature is calculated as shown in Fig. 5. First, consider a plurality of filter sets to be used in the convolution process. Here, the serial number of the filter set is i, the number of filter sets is N, the serial number of the filter in the filter set is c, the number of filters is C, and the c-th filter in the i-th filter set is W. c,iAll the filters are assumed to be the same size. The feature synthesis unit 53 calculates a weight for each filter set using the image quality feature. The weight for each filter set is calculated by performing full coupling processing and a softmax function on the image quality feature (see 53A in FIG. 5). The weight is then used to find a weighted sum for the filter set (see 53B in FIG. 5). Specifically, the weight for the i-th filter is set as α i Then, the c-th filter in the weighted sum filter set is the weighted sum of i=1,...,N, and is expressed by the following equation.

[0054]

number

[0055] In addition, in a formula,  ̄X indicates that there is a “ ̄” on the symbol X. The filter set obtained by this weighted sum is c} c=1,...,C The object features are subjected to convolution processing using (see 53C in FIG. 5), and the result is output as a composite feature. In addition, when the structure of Non-Patent Document 2 is used, multiple object feature quantities with different vertical and horizontal widths are obtained as object feature quantities output from the object feature extraction unit 52. For each of these, a filter set is prepared, and the above processing is performed to calculate multiple composite feature quantities. In addition to the weights used in the full connection processing, W c,i This is also sought through learning.

[0056] Alternatively, the image quality features and the object features may simply be concatenated. Specifically, if the image quality features are a feature vector with Cq channels and the object features are a feature map with H height, W width and Co channels, the image quality features are replicated to obtain a feature map with H height, W width and Cq channels, and the replicated feature is concatenated with the image quality features, and the feature map with H height, W width and Cq+Co channels is output as a composite feature. In addition, in order to obtain the weights of the filter sets and synthesize the filter sets used in the convolution process by the weighted sum of the filter sets, the weights of the filter sets may be obtained by full connection processing and the ReLU function or the sigmoid function, or the filter sets may be generated by full connection processing. The same applies to the feature synthesis unit 63 of the data processor 59 described later.

[0057] The recognition unit 54 repeats convolution processing and ReLU function on the composite feature to calculate the circumscribing rectangle (center position, vertical width, horizontal width) of the estimated object and the probability value of each category, and outputs them as the recognition result. However, for the probability value of each category, a sigmoid function is applied at the end of the processing to convert the value range to between 0 and 1 before outputting. In addition, since the circumscribing rectangle is output in relative coordinates centered on each pixel of the feature map, it is converted to absolute coordinates on the image. When the structure of Non-Patent Document 2 is used, multiple composite feature values ​​with different vertical widths and horizontal widths are obtained, and the above processing is performed for each composite feature value.

[0058] The object detection error calculation unit 55 calculates the error between the recognition result calculated by the recognition unit 54 and the correct object information. The error is the sum of the error calculated from the center position, vertical width, and horizontal width of the circumscribing rectangle and the error calculated from the probability value of each category.

[0059] Specifically, first, a correct answer object is associated with a circumscribing rectangle calculated by the recognition unit 54 and located in the vicinity of the circumscribing rectangle of the correct answer object. For the unassociated circumscribing rectangle, an error is calculated with the category as background. At this time, in order to stabilize the learning, only the circumscribing rectangle calculated from the composite feature amount having small height and width and low resolution (composite feature amount having small height and width) is associated with a large correct answer object, and only the circumscribing rectangle calculated from the composite feature amount having large height and width and high resolution (composite feature amount having large height and width) is associated with a small correct answer object. An error is calculated based on this association. The error of the probability value of the category is calculated by using the cross entropy error between the estimated value and the correct answer category. The errors of the center position, height, and width of the circumscribing rectangle are calculated by the Smooth L1 distance between the estimated value and the correct answer. For the circumscribing rectangle associated with the category "background", the errors of the center position, height, and width of the circumscribing rectangle are not calculated. The average error is calculated for each of the error in the probability value of the category, the error in the center position, the vertical width, and the horizontal width of the circumscribing rectangle, and the sum of these is used for minimization.

[0060] The parameter update unit 56 updates the parameters of the object feature extraction unit 52, the feature synthesis unit 53, and the recognition unit 54 of the data processor 49 so as to minimize the error calculated by the object detection error calculation unit 55. The parameters updated by the parameter update unit 56 include not only the filters and biases for the convolution process and the full combination process, but also the W used in the weighted sum of the filter set of the feature synthesis unit 53. c,i In this embodiment, the parameter update unit 56 does not update the parameters of the quality estimator.

[0061] A stochastic gradient method is used to minimize the error. In learning by the stochastic gradient method, first, each parameter of the data processor 49 to be obtained by learning is initialized with a random value or the like. Then, the gradient of each parameter is calculated by the error backpropagation method, and each parameter is updated based on the gradient. The data processor learning device 3 learns the data processor 49 by repeating the above-mentioned processes of reading the learning data, calculating the error, and updating the parameters. As the iteration end condition, for example, whether or not the amount of error fluctuation is smaller than a predetermined threshold value, or whether or not a predetermined number of iterations has been reached, can be used. The data processor learning device 3 stores the finally obtained parameters of the data processor in the learned model storage means 33 as a learned data processor together with the network structure of the data processor 49, etc. The parameters of the quality estimator may be updated by propagating the error to the quality estimator through the image quality features by using the error backpropagation method.

[0062] The feature synthesis unit 53 synthesizes a filter set based on image quality features that represent the image quality of the input image. Through the above-mentioned learning, the feature synthesis unit 53 synthesizes a filter set used in the convolution process and calculates a synthetic feature so that object recognition becomes more accurate. In other words, the feature synthesis unit 53 calculates a synthetic feature that will result in more accurate object recognition according to the image quality of the input image. Therefore, recognition processing according to the image quality of the input image becomes possible.

[0063] <Configuration of data processing device> The data processing device is a device that analyzes an image captured of a space in which a person may exist, detects a circumscribing rectangle of a person captured in the image, and notifies the recognition result. 6 shows a block diagram of the data processing device 1. The data processing device 1 includes an image acquisition means 10, a recognition means 11, a display means 12, and a trained model storage means 13. The image acquisition means 10 acquires a captured image, which is a color image, from a surveillance camera, and outputs the image to the recognition means 11 .

[0064] The trained model storage means 13 stores in advance a trained quality estimator obtained by the quality estimator learning device 2 and a trained data processor obtained by the data processor learning device 3. The trained data processor is an example of a trained model.

[0065] The recognition means 11 first reads the trained quality estimator and data processor from the trained model storage means 13. Next, when a captured image is input from the image acquisition means 10, the recognition means 11 estimates the circumscribing rectangle and probability value of the object using the quality estimator 58 and data processor 59, as shown in FIG. The quality estimator 58 uses parameters of the trained quality estimator obtained by the quality estimator learning device 2.

[0066] The data processor 59 is a CNN including a data input layer 59A, a data intermediate layer 59B, and a data output layer 59C, similar to the data processor 49. The data intermediate layer 59B includes an object feature extraction unit 62 and a feature synthesis unit 63, and the data output layer 59C includes a recognition unit 64.

[0067] The parameters of the object feature extraction unit 62, the feature synthesis unit 63, and the recognition unit 64 of the data processor 59 use the trained data processor parameters obtained by the data processor training device 3. The data input layer 59A acquires and outputs captured images. Similar to the data hidden layer 49B, the data hidden layer 59B receives the output of the data input layer 59A and the image quality features output from the quality estimator 58, and outputs a composite feature. The data output layer 59C receives the output of the data intermediate layer 59B, similar to the data output layer 49C, and outputs the recognition result of the captured image.

[0068] Specifically, the captured image input to the recognition means 11 is first input to an image quality feature extraction section 60 of the quality estimator 58 and an object feature extraction section 62 of the data processor, which output image quality features and object features, respectively. A feature synthesis section 63 calculates a synthesized feature using both features. The synthesized feature is then input to a recognition section 64, which calculates an estimated circumscribing rectangle of the object and a probability value of the type. Note that although multiple circumscribing rectangles are calculated, there may be cases where the areas overlap significantly, so that circumscribing rectangles that overlap significantly are deleted using Non-Maximum Suppression processing. The recognition means 11 outputs the circumscribing rectangle of the object that remains as the recognition result together with the captured image.

[0069] The display means 12 superimposes the recognition result on the captured image and displays it on a display.

[0070] <Example of data processing system operation> Next, an example of the operation of the data processing system will be described with reference to FIGS. In this embodiment, first, a quality estimator that estimates the image quality of an input image is trained using the quality estimator training device 2. Next, the quality estimator created by the quality estimator training device 2 and the data processor training device 3 are used to train a data processor that estimates an object in an image.

[0071] Using a quality estimator previously trained by a quality estimator learning device 2 and a data processor previously trained by a data processor learning device 3, the data processing device 1 recognizes the circumscribing rectangle of a person appearing in a captured image capturing a space in which a person may exist, and notifies the recognition result.

[0072] An example of the operation of the quality estimator learning device 2, the data processor learning device 3, and the data processor 1 will be described in order. <Example of operation of the quality estimator learning device> 8 is a schematic flow diagram regarding the operation of the quality estimator learning device 2. When the learning operation of the quality estimator is started, the quality estimator learning device 2 sets the quality estimator to a predetermined network structure and initializes the parameters of the network with random numerical values ​​or the like (step S10).

[0073] The quality estimator learning device 2 reads a quality estimator learning image from the quality estimator learning data storage means 20 (step S11). The quality estimator learning device 2 generates a learning degraded image from the read quality estimator learning image in the image quality degradation means 21, and outputs the degraded image and the image quality parameters used to generate the degraded image as a training data set (step S12).

[0074] The quality estimator learning device 2 uses the training data set in the quality estimator learning means 22 to input the degraded image to the quality estimator to calculate an estimated image quality, and calculates an error using this and the image quality parameters (step S13). The quality estimator learning device 2, in the quality estimator learning means 22, calculates the gradient of each parameter of the quality estimator by the error backpropagation method based on the calculated error, and updates each parameter of the quality estimator by the stochastic gradient method using the gradient (step S14).

[0075] The quality estimator learning device 2 determines whether the iteration end condition is satisfied (step S15). If the condition is satisfied, the quality estimator is stored in the trained model storage means 23 (step S16) and the process ends. If the condition is not satisfied, the operations from step S11 to step S14 are repeated until the iteration end condition is satisfied. As the iteration end condition, for example, whether or not the amount of error fluctuation becomes smaller than a predetermined threshold value, whether or not a predetermined number of iterations has been reached, etc. can be used.

[0076] <Example of operation of data processor learning device> 9 is a schematic flow diagram regarding the operation of the data processor learning device 3. When the learning operation of the data processor is started, first, the data processor learning device 3 reads the quality estimator obtained in advance by the quality estimator learning device 2 from the learned model storage means 33 (step S20), sets the data processor to a predetermined network structure, and initializes the parameters of the network with random numerical values ​​or the like (step S21).

[0077] The data processor learning device 3 reads the data processor learning image and the corresponding correct object information from the data processor learning data storage means 30 (step S22). The data processor learning device 3 generates a degraded image for learning from the data processor learning image in the image quality degradation means 31, and sets the correct object information corresponding to the degraded image for learning and the data processor learning image on which the degraded image for learning is based as a training data set (step S23).

[0078] The data processor learning device 3 inputs the learning degraded image to the quality estimator and the data processor in the data processor learning means 32 to obtain a recognition result, and calculates an error using the result and the correct object information (step S24). The data processor learning device 3, in the data processor learning means 32, calculates the gradient of each parameter of the data processor by the error backpropagation method based on the calculated error, and updates each parameter of the data processor by the stochastic gradient method using the gradient (step S25).

[0079] The data processor learning device 3 determines whether the iteration end condition is satisfied (step S26). If the iteration end condition is satisfied, the data processor is stored in the trained model storage means 33 (step S27) and the process ends. If the iteration end condition is not satisfied, the operations from step S22 to step S25 are repeated until the iteration end condition is satisfied. As the iteration end condition, for example, whether or not the amount of error variation has become smaller than a predetermined threshold value, whether or not a predetermined number of iterations has been reached, etc. can be used.

[0080] <Example of operation of data processing device> FIG. 10 is a schematic flow diagram regarding the operation of the data processing device 1. As shown in FIG. When the operation is started, the data processing device 1 reads the trained quality estimator and the trained data processor from the trained model storage means 13 (step S30). Next, the data processing device 1 acquires a captured image, which is a color image, by the image acquisition means 10 (step S31). The acquired captured image is transmitted to the recognition means 11. The data processing device 1 inputs the received captured image to a quality estimator and a data processor in the recognition means 11 to obtain a recognition result, and outputs the recognition result together with the captured image to the display means 12 (step S32). The data processing device 1 displays the acquired image and the recognition result on the display by the display means 12 (step S33). Then, a monitor visually checks the displayed recognition result to judge the situation, and if there is an abnormality, dispatches a troubleshooter as necessary. After the recognition result is displayed, the process returns to image acquisition by the image acquisition means 10 (step S31), and continues to operate until the data processing device 1 is stopped.

[0081] As described above, in a data processing device according to an embodiment of the present invention, the output of the data input layer and the image quality features output from the quality estimator are input to the data intermediate layer of the data processor, and the output of the data intermediate layer is input to the data output layer, which outputs the recognition result of the captured image, thereby enabling recognition processing according to the image quality and enabling improvement of recognition accuracy in environments where various quality degradations may occur.

[0082] <Modification> The present invention is not limited to the device configuration and operation of the above-described embodiment, and various modifications and applications are possible without departing from the spirit and scope of the present invention.

[0083] (Variation 1) In the above embodiment, the quality estimator and the data processor are trained in that order, but both may be trained simultaneously. In this case, the data processor training means 32 of the data processor training device 3 may be replaced with a data processor training means 232 shown in FIG. 11. The data processor training means 232 includes a training processing unit 67, an image quality estimation error calculation unit 72, an object detection error calculation unit 76, and a parameter update unit 77. The learning processing unit 67 estimates image quality parameters of the learning degraded image using a quality estimator 68. Similar to the quality estimator 39, the quality estimator 68 includes an image quality feature extraction unit 70 and an image quality estimation unit 71. The learning processing unit 67 uses a quality estimator 68 and a data processor 69 to output the estimated center position, vertical width, horizontal width, and probability value of each category for each object in the learning degraded image. The data processor 69, like the data processor 49, is configured to include a data input layer 69A, a data intermediate layer 69B, and a data output layer 69C, where the data intermediate layer 69B is configured to include an object feature extraction unit 73 and a feature synthesis unit 74, and the data output layer 69C is configured to include a recognition unit 75. The image quality estimation error calculation section 72, like the image quality estimation error calculation section 42, uses the correct image quality parameters and the estimated image quality parameters to calculate an image quality estimation error. Similar to object detection error calculation unit 55, object detection error calculation unit 76 uses the correct object information and the recognition result to calculate an object detection error. The parameter update unit 77 updates the parameters of the quality estimator 68 and the data processor 69 so as to minimize the sum of the image quality estimation error and the object detection error. The data processor learning device 3 repeats the processes of reading the learning data, calculating the error, and updating the parameters of the quality estimator 68 and the data processor 69, thereby learning the quality estimator 68 and the data processor 69.

[0084] (Variation 2) In the above embodiment, image quality features are input to data processors 49, 59, but estimated image quality parameters may also be input to data processors 49, 59. In the above embodiment, there are eight types of Gaussian filter sizes and ten types of JPEG quality factors as image quality parameters, and 18 probability values ​​are calculated as estimated image quality parameters, which may then be input to feature synthesis units 53, 63.

[0085] (Variation 3) In the above embodiment, the image quality features input to the data processors 49 and 59 are converted from feature maps to feature vectors by global average pooling, but in order to utilize image quality information for each local region, the feature maps before global average pooling may be input to the data processors 49 and 59 as image quality features, and a filter set may be synthesized for each local region. In this case, the image quality features and the object features may differ in vertical and horizontal width, but the size of the image quality features may be converted to the same size as the object features using bilinear interpolation or the like. Also, when both features are concatenated, the size of the image quality features may be converted to the same size as the object features and concatenated. Furthermore, in the above embodiment, a plurality of filter sets are combined using weights calculated from image quality features, and the combined filter is used to perform a convolution process on object features to calculate a combined feature. However, in this modified example, first, a plurality of feature maps are calculated by performing a convolution process on object features with each filter set, and then the feature maps are combined using weights calculated from image quality features to calculate a combined feature, which is preferable in terms of processing by parallel computation.

[0086] (Variation 4) In the above embodiment, Gaussian filter processing or JPEG degradation processing is used as the image quality degradation processing, but contrast conversion processing or false color adding processing may also be used. When contrast conversion processing is used as the image quality degradation processing, the contrast of the image is corrected to make it excessively brighter or darker, and the contrast conversion parameters such as whether or not such changes occurred and the degree of change are used as the image quality parameters. For example, when gamma correction, which is one of the parameters of contrast conversion, is used, the gamma value is used as the image quality parameter. The quality estimator 39 estimates this gamma value. In the learning of the quality estimator 39, a gamma value is randomly selected, and contrast conversion processing is performed on the input image using this, the processed image is used as an image for training the quality estimator, and the image for training the quality estimator and the selected parameters are used as a training data set for training the quality estimator. When a false color adding process is used as the image quality degradation process, the image quality parameter is the presence or absence of false color, and the quality estimator 39 estimates the presence or absence of this false color. In the learning of the quality estimator 39, when each channel of the input image is moved in a direction that differs by several pixels, false color occurs in high frequency regions. Therefore, this is used as a false color adding process, and a false color adding process is randomly performed on the input image, and the processed image is used as an image for training the quality estimator, and the image for training the quality estimator and the presence or absence of false color are used as a training data set for training the quality estimator. Alternatively, the image for training the quality estimator is visually inspected by a person and information on the presence or absence of false color is added, and the information and the image are used as a training data set for training the quality estimator. When color cast processing is used as the image quality degradation processing, a pseudo-color cast image can be created by modifying the tone curve for each RGB channel according to the selected hue and intensity, and this is used as the color cast processing. The color cast hue and intensity are used as image quality parameters, and the quality estimator 39 estimates the color cast hue and intensity. In the training of the quality estimator 39, parameters such as the hue and intensity of the color cast processing are randomly selected, and the input image is subjected to color cast processing using these parameters, the processed image is used as an image for training the quality estimator, and the image for training the quality estimator and the selected parameters are used as a training data set for training the quality estimator.

[0087] (Variation 5) In the above embodiment, image quality features are extracted using CNN, but image quality information calculated by processing without learning may be used as image quality features. For example, the intensity of high frequency components of the input image, a histogram of edge intensity, LBP features, etc. can be used to indicate the degree of blur and clarity. In addition, the number of colors in the image, a color histogram, etc. can be used to indicate whether the image is extremely bright or dark.

[0088] (Variation 6) In the above embodiment, the quality estimators 39, 48 and the data processors 49, 59 are configured by CNN, but are not limited to this. For example, if CNN is not used for the quality estimators 39, 48, the image quality feature extraction units 40, 50 extract HOG features, LBP features, color histograms, etc., and the image quality estimation units 41, 51 estimate image quality parameters using logistic regression, SVM, Random Forest, or AdaBoost, and the estimation results are input to the feature synthesis units 53, 63 of the data processors 49, 59 as quality-related parameters. In the above configuration, the image quality features selected by logistic regression with L1 regularization or the image quality features selected by AdaBoost may be input to the feature synthesis units 53, 63 of the data processors 49, 59. When a CNN is not used in the data processors 49 and 59, the object feature extraction units 52 and 62 extract HOG features or Haar-like features as object features, the feature synthesis units 53 and 63 link the image quality features and the object features, and the recognition units 54 and 64 use logistic regression, SVM, Random Forest, AdaBoost, or the like.

[0089] (Variation 7) In the above embodiment, the quality estimator training image used in training the quality estimator training device 2 was different from the data processor training image used in training the data processor training device 3, but the data processor training image may also be used as the quality estimator training image.

[0090] (Variation 8) In the above embodiment, the data processing for an image has been described as an example of object recognition for estimating the position and type of an object appearing in the image, but other image recognition tasks may be used. For example, the data processing for an image may be image classification for estimating the type of an object appearing in the image, semantic segmentation for estimating the type of each pixel of the image, crowd density estimation for estimating the number of people per local area at each pixel, or keypoint detection for estimating the joint positions of an object.

[0091] (Variation 9) In the above embodiment, the data processing may be behavior recognition or object detection using a moving image as the target data. In this case, the estimation result of the encoding parameter, the estimation result of the presence or absence of flicker, the estimation result of the degree of camera shake, etc. may be used as the parameter related to the quality of the target data. In addition to the estimation result, intermediate features used during the estimation may be used as the parameter related to the quality of the target data. The encoding parameters used when encoding the input video include the codec, bit rate, etc. To train a quality estimator that estimates the encoding parameters, videos that have been re-encoded with each encoding parameter changed can be used. When using the presence or absence of flicker as a quality parameter, a video containing artificial flicker can be generated by varying the brightness of the image at a certain time and spatial period, and this can be used as a training dataset for learning the quality estimator. A blurred video can be generated by convolving an anisotropic filter PSF (point spread function) with images at each time point while sequentially changing the filter. When the degree of blurring is used as a quality parameter, blurred videos generated with multiple degrees of change and the degrees of blurring are used as a training data set for learning the quality estimator.

[0092] (Variation 10) In the above embodiment, the data processing may be object detection or semantic segmentation for estimating the type of each point using a depth image or a point cloud as the target data. In this case, the estimation result of the blur degree according to the distance, the estimation result of the blur degree according to the material or shape of the object, the sensor method (ToF method, stereo camera method, etc.), etc. may be used as the parameter related to the quality of the target data. In addition to the estimation result, intermediate feature values ​​used during the estimation may be used as the parameter related to the quality of the target data. To learn how to estimate the degree of blur based on distance and the degree of blur based on the material and shape of an object, data measured by both a high-precision sensor and an actual sensor may be used as a training data set for training the quality estimator, or data generated by CG with noise added may be used as a training data set for training the quality estimator. The sensor method (ToF method, stereo camera method, etc.) may be known at the time of execution, and may be estimated from the target data if the method is unknown. For this estimation learning, the data actually collected by each sensor may be used as a training data set for learning the quality estimator, or the data of each method pseudo-generated by CG may be used as a training data set for learning the quality estimator.

[0093] (Variation 11) In the above embodiment, the data processing may be an event sound estimation or a speech sentence estimation using the target data as acoustic data. In this case, the estimation result of the type of noise (white noise, pink noise, etc.) or the type of environmental sound (factory noise, car running sound, etc.) may be used as a parameter related to the quality of the target data. In addition to the estimation result, intermediate features used during estimation may be used as a parameter related to the quality. To train a quality estimator that estimates the type of noise or environmental sound, acoustic data that is simulated by overlaying pre-generated or pre-recorded noise or environmental sound onto event sounds or speech sounds can be used as a training data set for training the quality estimator.

[0094] (Variation 12) In the above embodiment, the target data may be acceleration or angular velocity measured by an IMU or the like, and the data processing may involve human gesture recognition or activity estimation. In this case, as parameters related to the quality of the target data, statistics such as average value and variance in a stationary state, or moving statistics such as moving average and moving variance during execution of an action may be used. The statistics in a stationary state may be measured in advance in an actual stationary state, or the statistics in a stationary state may be estimated appropriately from the target data during execution of an action. In this case, the stationary state data and the data during execution of an action used for learning the estimation may be collected by actually wearing a sensor on a person, or may be calculated by simulation. In addition to the estimation result, intermediate features used during estimation may be used as parameters related to quality.

[0095] (Variation 13) In the above embodiment, the image quality parameters may be accepted as input without using a quality estimator. In this case, the data processor learning means 332 shown in Fig. 12 is used instead of the data processor learning means 32 of the data processor learning device 3, and the image quality degradation means 31 is omitted. The data processor 81 accepts the image quality parameters as image quality features, and the data processor learning means 332 uses the learning images, the image quality features input for the learning images, and the ground truth object information as a training data set to learn the data processor 81. The data processor learning means 332 includes a learning processing unit 80 , an object detection error calculation unit 85 , and a parameter update unit 86 . The learning processing unit 80 uses a data processor 81 to output the estimated center position, vertical width, horizontal width, and probability value of each category for each object in the learning image. Like the data processor 49, the data processor 81 includes a data input layer 81A, a data intermediate layer 81B, and a data output layer 81C, the data intermediate layer 81B includes an object feature extraction unit 82 and a feature synthesis unit 83, and the data output layer 81C includes a recognition unit 84. The data input layer 81A acquires and outputs training images and image quality features of the training images. Similar to object detection error calculation unit 55, object detection error calculation unit 85 calculates an object detection error using the correct object information and the recognition result. Parameter update unit 86 updates the parameters of data processor 81 so as to minimize the object detection error. The data processor learning device 3 learns the data processor 81 by repeating the processes of reading the learning data, calculating the error, and updating the parameters of the data processor 81. The schematic flow diagram regarding the operation of the data processor learning device 3 is similar to that of FIG. 9 above, with steps S20 and S23 omitted. When JPEG quality is used as the image quality parameter, the data processor 81 uses a randomly selected JPEG quality factor to encode the training image in JPEG format, and then uses the decoded image, the quality factor, and the correct object information as a training data set. In addition, when the Gaussian filter size is used as the image quality parameter, the learning of the data processor 81 uses an image obtained by applying a Gaussian filter to an input image using a randomly selected filter size, the filter size, and the correct object information as a training data set. Furthermore, when the presence or absence of false color is used as an image quality parameter, in the learning of the data processor 81, a person visually checks the learning images, annotates information on the presence or absence of false color, and the information, the images, and the correct object information are used as a training data set. Alternatively, since false color occurs in high frequency regions when each channel of an image is moved in a different direction by several pixels, whether or not this false color addition processing is performed is regarded as the presence or absence of false color, and the false color addition processing is performed randomly on the learning images, and the processed images, the presence or absence of processing, and the correct object information are used as a training data set. In addition, when contrast transformation parameters are used as image quality parameters, the learning of the data processor 81 uses randomly selected contrast transformation parameters to change the contrast of the learning image, and uses the image, the selected parameters, and the correct object information as a training data set. In addition, when the hue and intensity of the color cast are used as image quality parameters, the data processor 81 randomly selects parameters such as the hue and intensity of the color cast processing, and uses these to perform color cast processing on the training image, using that image, the selected parameters, and the correct object information.

[0096] 13 is used instead of the recognition means 11 of the data processing device 1. The recognition means 311 uses the image quality features input for the captured image and the data processor 90 to output the estimated center position, vertical width, horizontal width, and probability value of each category for each object in the captured image. Like the data processor 59, the data processor 90 includes a data input layer 90A, a data intermediate layer 90B, and a data output layer 90C, the data intermediate layer 90B includes an object feature extraction unit 91 and a feature synthesis unit 92, and the data output layer 90C includes a recognition unit 93. The data input layer 90A acquires and outputs a captured image and image quality features of the captured image. When using JPEG quality as the image quality parameter, if the captured image is in JPEG format, the quality factor of the captured image is used. Alternatively, the quality factor is set by a person in advance. When a Gaussian filter size is used as an image quality parameter, a person sets the filter size in advance according to the degree of blur in the captured image. Furthermore, when the presence or absence of false color is used as an image quality parameter, the presence or absence of false color is set in advance by a person. Furthermore, when contrast conversion parameters are used as image quality parameters, the parameters are set in advance by a person. Furthermore, when the hue and intensity of a color cast are used as image quality parameters, a person sets parameters such as the hue and intensity of a color cast in an input image.

[0097] (Variation 14) In addition to the image quality parameters described in the above embodiment, the following image quality parameters may be set. For example, whether or not the image is interlaced is used as an image quality parameter. In this case, in the learning of the quality estimator 39, information on whether or not the image is interlaced is added by the settings when the image for learning the quality estimator is taken or by a person visually checking the image for learning the quality estimator, and the information and the image for learning the quality estimator are used as a training data set. Alternatively, the interlace method can be simulated by shifting the positions of the pixels in the odd rows and the pixels in the even rows of the image, so whether or not this interlacing process is performed is regarded as whether or not the image is interlaced, and the input image is subjected to interlacing process randomly, the processed image is used as the image for learning the quality estimator, and the image for learning the quality estimator and the presence or absence of the process are used as a training data set for learning the quality estimator to learn the quality estimator 39. Furthermore, as in the above-mentioned modified example 13, in the case where there is no quality estimator, in the learning of the data processor 81, information on whether or not the image is interlaced is added by using the settings at the time of shooting the image for data processor learning or by having a person visually confirm the image, and the information, the image for data processor learning, and the correct object information are used as a training data set. Alternatively, an interlacing process is randomly performed on the input image, and the processed image is used as the image for data processor learning, and the image for data processor learning, the presence or absence of processing, and the correct object information are used as a training data set to learn the data processor 81. In the data processing device 1, whether or not the image is interlaced is set as an image quality parameter by using the settings at the time of shooting or by having a person visually confirm the image in advance.

[0098] In addition, a parameter related to noise of an image sensor may be used as the image quality parameter. For example, a parameter of the distribution of noise caused by an image sensor, such as photon shot noise, dark shot noise, and read noise, is used as the image quality parameter. The noise distribution is assumed to be a Gaussian distribution, and in the learning of the quality estimator 39, a plurality of types of variance parameters of the Gaussian distribution are set in advance, and an image obtained by adding values ​​sampled for each pixel from the Gaussian distribution of randomly selected variance parameters is used as a learning degraded image, and the quality estimator 39 is trained to estimate this variance parameter.

[0099] Furthermore, as in the above-mentioned modified example 13, when there is no quality estimator, in the learning of the data processor 81, the noise distribution parameters of the image sensor used for the image for data processor learning are measured under various lighting conditions, and the image for data processor learning, the noise distribution parameters at the time of capturing the image, and the correct object information are used as a training data set. In the data processing device 1, the noise distribution parameters of the image sensor under the capturing environment are measured, and the values ​​are used.

[0100] Also, camera information at the time of shooting may be used as image quality parameters. For example, F-number (aperture value), shutter speed, ISO sensitivity, focal length, camera model, and shutter method (global shutter, rolling shutter) are used as image quality parameters. In learning the quality estimator 39, each parameter at the time of shooting an image for quality estimator training is stored, and the image for quality estimator training and the parameters at the time of shooting the image are used as a training data set for quality estimator training.

[0101] Furthermore, as in the above-mentioned modified example 13, when there is no quality estimator, in the learning of the data processor 81, each parameter at the time of shooting an image for data processor learning is held, and the image for data processor learning, the parameters at the time of shooting the image, and the correct answer object information are used as a training data set. The data processing device 1 holds each parameter under the shooting environment, and uses the values.

[0102] Resolution may also be used as the image quality parameter. For example, assuming that a captured image is enlarged and reduced multiple times in the process of inputting the captured image to the data processing device 1, the minimum image size from capture to input to the data processing device 1 and the enlargement / reduction rate from the minimum image size to the final image size are used as the image quality parameters. In the training of the quality estimator 39, the input image is randomly enlarged or reduced, and the image is used as an image for training the quality estimator, and the image for training the quality estimator and the corresponding minimum image size and enlargement / reduction rate are used as a training data set for training the quality estimator.

[0103] Also, as in the above-mentioned modified example 13, when there is no quality estimator, in the learning of the data processor 81, the input image is randomly enlarged or reduced, and the image is used as an image for learning the data processor, and the image for learning the data processor, the corresponding minimum image size, the enlargement or reduction rate, and the correct answer object information are used as a training data set. The data processing device 1 holds the minimum size until it is input to the data processing device 1, and uses it.

[0104] Information on lens distortion may also be used as the image quality parameter. For example, distortion parameters are used. In training the quality estimator 39, the distortion parameters of the camera used for the images for training the quality estimator are measured, or the distortion parameters are calculated for each image based on structural lines in the images for training the quality estimator, and the images for training the quality estimator and the distortion parameters of those images are used as a training data set for training the quality estimator.

[0105] Furthermore, as in the above-mentioned modified example 13, when there is no quality estimator, the data processor 81 learns by measuring the distortion parameters of the camera used for the image for data processor learning, or by calculating the distortion parameters for each image based on structural lines in the image for data processor learning, and using the image for data processor learning, the distortion parameters of the image, and the correct object information as a training data set. The data processing device 1 measures the distortion parameters of the camera to be used in advance and uses the values.

[0106] Information on the frame type may also be used as the image quality parameter. For example, if the target data is a video such as h.264 format divided into frames, the frame type (I frame, P frame, B frame, etc.) is used as the image quality parameter. If the target data is a video, the sequence of frame types is used as the image quality parameter. In training the quality estimator 39, when the training video is divided to create images for training the quality estimator, the type of frame corresponding to each image for training the quality estimator is retained, and the images for training the quality estimator and the types of frames corresponding to them are used as a training data set for training the quality estimator.

[0107] Furthermore, as in the above-mentioned modified example 13, in the case where there is no quality estimator, in the learning of the data processor 81, when dividing the learning video and creating images for the data processor learning, the type of frame corresponding to each image for the data processor learning is stored, and the images for the data processor learning, the type of frame corresponding to each image, and the correct answer object information are used as a training data set. The data processing device 1 uses the type of frame for each image when dividing the captured video.

[0108] As described above, those skilled in the art can make various modifications to the embodiments within the scope of the present invention. [Explanation of symbols]

[0109] 1 Data Processing Device 2 Quality estimator learning device 3 Data processor learning device 10 Image Acquisition Method 11 Recognition means 12 Display means 22 Quality estimator training method 32, 232, 332 Data processor learning means 39, 48, 58, 68 quality estimator 49, 59, 69, 81, 90 Data processor 49A, 59A, 69A, 81A, 90A Data input layer 49B, 59B, 69B, 81B, 90B Data Intermediate Layer Output layer for 49C, 59C, 69C, 81C, 90C data

Claims

1. A trained model for inputting target data and outputting a processing result of the target data using parameters related to the quality of the target data obtained when estimating the quality of the target data, comprising: a convolutional neural network having input means for data, output means for data, and intermediate means for data provided between the input means for data and the output means for data, a filter coefficient of a filter used in the convolution process of the data intermediate means is determined in response to a parameter related to the quality of the target data; The parameters of the trained model are trained using target data for learning, a correct answer processing result of the target data for learning, and parameters related to the quality of the target data for learning as a training data set; Computer, A trained model characterized by performing a calculation on the target data inputted to the data input means of the convolutional neural network based on parameters of the trained model trained using the training data set and the filter coefficients of a filter used in the convolution processing of the data intermediate means determined in accordance with parameters related to the quality of the target data, and outputting the processing results of the target data from the data output means.

2. The target data is an image, The trained model of claim 1, wherein the quality includes at least one of a parameter related to image compression, a parameter related to image sharpness, a parameter related to false color, a parameter related to an interlacing method, a parameter related to image sensor noise, a parameter related to camera information, a parameter related to resolution, a parameter related to lens distortion, a parameter related to frame type, a parameter related to color cast, and a parameter related to contrast.

3. a data processing section including input means for data, intermediate means for data and output means for data; a quality estimation unit for estimating the quality of the target data; A data processing device comprising: The data input means acquires target data, the data intermediate means receives the output of the data input means and the parameters relating to the quality of the target data output from the quality estimation unit; the data output means receives the output of the data intermediate means and outputs a processing result of the target data; The data processing unit is trained using target data for data processing unit training, a correct answer processing result of the target data, and parameters related to the quality of the target data output from the quality estimation unit as a training data set; The target data and the parameters relating to the quality of the target data output from the quality estimation unit are input to the data processing unit, whereby the target data is processed. a data processing device, the data processing unit is a convolutional neural network having the data input means, the data output means, and the data intermediate means provided between the data input means and the data output means, a filter coefficient of a filter used in the convolution process of the data intermediate means is determined in response to a parameter related to the quality of the target data; The data processing unit determines filter coefficients of a filter used in the convolution processing of the data intermediate means in accordance with parameters related to the quality of the target data, performs a calculation based on the target data and the filter coefficients, and outputs a processing result of the target data.

4. A data processing device comprising a data processing section including an input means for data, an intermediate means for data, and an output means for data, The data input means acquires target data and parameters related to the quality of the target data, The data intermediate means receives the target data, which is an output of the data input means, and parameters related to the quality of the target data, the data output means receives the output of the data intermediate means and outputs a processing result of the target data; The data processing unit is trained using target data for data processing unit training, a correct answer processing result of the target data, and parameters related to the quality of the target data as a training data set; The target data and parameters related to the quality of the target data are input to the data processing unit to process the target data. a data processing device, the data processing unit is a convolutional neural network having the data input means, the data output means, and the data intermediate means provided between the data input means and the data output means, a filter coefficient of a filter used in the convolution process of the data intermediate means is determined in response to a parameter related to the quality of the target data; The data processing unit determines filter coefficients of a filter used in the convolution processing of the data intermediate means in accordance with parameters related to the quality of the target data, performs a calculation based on the target data and the filter coefficients, and outputs a processing result of the target data.

Citation Information

Patent Citations

  • Image quality estimation device, image quality estimation method, and image quality estimation program

    JP2014130427A

  • Learning data generation device, learning device, image evaluation device, learning data generation method, learning method, image evaluation method, and image processing program

    JP2017058930A

  • Image processing device, program, and learning method

    JP2020149530A

  • Object tracking system, intelligent imaging device, object feature quantity extraction device, object feature quantity extraction method, and recording medium

    WO2018173848A1