[go: up one dir, main page]

WO2020001196A1 - Image processing method, electronic device, and computer readable storage medium - Google Patents

Image processing method, electronic device, and computer readable storage medium Download PDF

Info

Publication number
WO2020001196A1
WO2020001196A1 PCT/CN2019/087570 CN2019087570W WO2020001196A1 WO 2020001196 A1 WO2020001196 A1 WO 2020001196A1 CN 2019087570 W CN2019087570 W CN 2019087570W WO 2020001196 A1 WO2020001196 A1 WO 2020001196A1
Authority
WO
WIPO (PCT)
Prior art keywords
vector
classification
center
distance
sample
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2019/087570
Other languages
French (fr)
Chinese (zh)
Inventor
陈岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of WO2020001196A1 publication Critical patent/WO2020001196A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • G06F18/232Non-hierarchical techniques
    • G06F18/2321Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions

Definitions

  • the present application relates to the field of computer technology, and in particular, to an image method, an electronic device, and a computer-readable storage medium.
  • Deep learning algorithms require a large number of training images.
  • engineers formulate screening criteria and screen a large number of images to obtain training images based on the screening criteria.
  • an image processing method an electronic device, and a computer-readable storage medium are provided.
  • An image processing method includes:
  • Clustering the sample vector according to the number of classifications to obtain the clustering center and classification vector corresponding to each classification; level
  • the similarity between the clustering center and the classification vector in each classification is detected, and the training image corresponding to the classification vector whose similarity is greater than the first threshold is used as the first type of training image for the classification.
  • An electronic device includes a memory and a processor.
  • the memory stores a computer program.
  • the processor causes the processor to perform the following operations:
  • Clustering the sample vector according to the number of classifications to obtain a clustering center and a classification vector corresponding to each classification;
  • the similarity between the clustering center and the classification vector in each classification is detected, and the training image corresponding to the classification vector whose similarity is greater than the first threshold is used as the first type of training image for the classification.
  • a computer-readable storage medium stores a computer program thereon.
  • the computer program is executed by a processor, the following operations are implemented:
  • Clustering the sample vector according to the number of classifications to obtain a clustering center and a classification vector corresponding to each classification;
  • the similarity between the clustering center and the classification vector in each classification is detected, and the training image corresponding to the classification vector whose similarity is greater than the first threshold is used as the first type of training image for the classification.
  • the image processing method, electronic device, and computer-readable storage medium provided in the embodiments of the present application can filter training images of each category according to the sample vectors output by the activation layer of the neural network, which can improve the filtering efficiency of the training image.
  • FIG. 1 is a flowchart of an image processing method in one or more embodiments.
  • FIG. 2 is a flowchart of performing clustering processing on sample vectors in one or more embodiments.
  • FIG. 3 is a flowchart of performing clustering processing on sample vectors in another or more embodiments.
  • FIG. 4 is a schematic diagram of a clustering process of sample vectors in one or more embodiments.
  • FIG. 5 is a flowchart of an image processing method in one or more embodiments.
  • FIG. 6 is a flowchart of an image processing method in another embodiment.
  • FIG. 7 is a structural block diagram of an image processing apparatus in one or more embodiments.
  • FIG. 8 is a schematic diagram of an internal structure of an electronic device in one or more embodiments.
  • FIG. 9 is a schematic diagram of an image processing circuit in one or more embodiments.
  • first”, “second”, and the like used in this application can be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from another element.
  • the first image may be referred to as a second image, and similarly, the second image may be referred to as a first image. Both the first image and the second image are images, but they are not the same image.
  • FIG. 1 is a flowchart of an image processing method according to an embodiment. As shown in FIG. 1, an image processing method includes operations 102 to 106. among them:
  • a training image is input to a neural network, and a sample vector output by an activation layer of the neural network is obtained.
  • the training image may be an image stored locally on the electronic device, or an image downloaded from the network by the electronic device.
  • a large number of training images are needed for training.
  • Neural network refers to a computing model composed of a large number of nodes (neurons) connected to each other.
  • the neural network may be CNN (Convolutional Neural Network, Convolutional Neural Network), DNN (Deep Neural Network, Deep Neural Network), RNN (Recurrent Neural Network, Recurrent Neural Network), etc., and is not limited thereto.
  • a neural network generally includes an input layer, a hidden layer, and an output layer; the input layer is used to receive the input of the image; the hidden layer is used to process the received image; the output layer is used to output the processing result of the image processing.
  • the hidden layers of the neural network may include a convolutional layer, an activation layer, a pooling layer, and a fully connected layer.
  • the sample vector refers to a vector composed of feature values in a feature map output by a neural network activation layer according to a preset rule after a training image is input into a neural network.
  • the electronic device can input the training image into the neural network, and the electronic device can obtain a sample vector composed of the feature values in the feature map according to the rules according to the feature map output by the activation layer in the neural network.
  • Operation 104 Perform clustering processing on the sample vector according to the number of classifications to obtain a clustering center and a classification vector corresponding to each classification.
  • the number of classifications refers to the number of scene classifications that the trained neural network can use for recognition.
  • the number of classifications can also refer to the number of scene classifications in the training image.
  • the classification can be landscape, beach, blue sky, green grass, snow, night, dark, backlight, sunrise / sunset, fireworks, spotlight, indoor, macro, text document, portrait, baby, cat, dog , Food, etc. are not limited to this.
  • Clustering refers to the process by which training images are divided into multiple classifications composed of similar scene classifications.
  • the electronic device can use a partitioning method such as K-MEANS (hard clustering) algorithm or K-MEDOIDS (center point) algorithm, and a hierarchical method such as BIRCH (Balanced Iterative Reducing and Clustering Using Hierarchies).
  • K-MEANS hard clustering
  • K-MEDOIDS center point
  • BIRCH Bit Iterative Reducing and Clustering Using Hierarchies
  • clustering algorithm and other algorithms, such as graph theory clustering method, perform clustering processing on training images.
  • the cluster center refers to the center vector of each classification, and the distance between the cluster center in the classification and the classification vector in the classification is the smallest.
  • a classification vector refers to a sample vector corresponding to each classification. For example, there are sample vectors A, B, C, and D. If the classification is M and N, the electronic device performs cluster processing on the sample vectors. Sample vectors A and B form classification M, and sample vectors C and D form classification N. , The classification vectors corresponding to
  • the electronic device performs cluster processing on the sample vector according to the required number of classifications, and can obtain a classification vector and a clustering center corresponding to each classification.
  • Operation 106 Detect the similarity between the clustering center and the classification vector in each classification, and use the training image corresponding to the classification vector whose similarity is greater than the first threshold as the first type of training image for classification.
  • the electronic device may determine the similarity between the cluster center and the classification vector by calculating the distance between the cluster center and the classification vector; the greater the distance, the more similar the classification vector is to the cluster center of the classification. The smaller the distance, the greater the similarity between the classification vector and the clustering center of the classification.
  • the electronic device can set corresponding similarity for different distance values in advance, obtain the distance value between the cluster center and the classification vector through detection, and obtain the corresponding similarity according to the distance value as the similarity between the cluster center and the classification vector.
  • the first threshold can be set according to the requirements of the actual application.
  • the first threshold may be 70%, 80%, 90%, etc., and is not limited thereto.
  • the first type of training image refers to a training image with the same classification that can be used to train a neural network that can recognize the classification, that is, the first type of training image can be used as a positive sample in neural network training.
  • the electronic device can obtain the clustering center of each classification and the classification vector in the classification, detect the similarity between each classification vector in the classification and the clustering center of the classification, and obtain the training image corresponding to the classification vector whose similarity is greater than the first threshold. This training image is used as the first type of training image in this classification.
  • the present application by inputting a training image to a neural network, obtaining a sample vector output from an activation layer of the neural network, and performing cluster processing on the sample vector according to the number of classifications, to obtain a clustering center and a classification vector corresponding to each classification. Detecting the similarity between the clustering center and the classification vector in each classification, and using the training image corresponding to the classification vector whose similarity is greater than the first threshold value as the first type of training image for classification can improve the efficiency of filtering the training image.
  • the process of obtaining a sample vector output by the activation layer of the neural network in the provided image processing method includes: obtaining a sample vector output by the penultimate activation layer in the neural network.
  • the activation layer of the neural network is a layer for performing a function change on the feature map obtained through the convolution layer according to the activation function.
  • the electronic device can obtain a sample vector of the output of the activation layer in the neural network.
  • the electronic device can obtain a sample vector output by the penultimate activation layer in the neural network. For example, when the training image E is input into the neural network, the output of each activation layer in the neural network is out (1), out (2), ..., out (k), and k is the number of activation layers in the neural network. Then, the electronic device can obtain the vector output by the penultimate activation layer in the neural network, that is, out (k-1), as the sample vector corresponding to the training image E.
  • the electronic device obtains the sample vector output from the penultimate activation layer in the neural network, which can increase the dimension of the sample vector and facilitate the differentiation of different training images.
  • the sample vector is clustered according to the number of classifications to obtain the clustering center corresponding to each classification.
  • classification vector detecting the similarity between the clustering center and the classification vector in each classification, and using the training image corresponding to the classification vector whose similarity is greater than the first threshold as the first type of training image for classification, can improve the efficiency of training image screening.
  • a process of performing clustering processing on a sample vector according to the number of classifications in the provided image processing method includes operations 202 to 206. among them:
  • a classification number of center vectors are configured according to the classification number.
  • the electronic device configures the number of classification center vectors according to the number of classifications, and each classification corresponds to a center vector. Specifically, the electronic device may randomly select the classified number of center vectors according to the classified number. In one embodiment, the electronic device may also obtain a preset number of classified center vectors.
  • Operation 204 Adjust each center vector according to the distance between the sample vector and each center vector.
  • the distance between the sample vector and each center vector can be detected using the distance formula.
  • the distance formula may be a Manhattan distance formula, a Euclidean distance formula, a relative entropy formula, and the like, and is not limited thereto.
  • the electronic device can detect the distance between the sample vector and each center vector according to the distance formula, use the classification corresponding to the center vector with the smallest sample vector distance as the classification of the sample vector, and center the center according to the distance between each sample vector and the center vector in the classification. The vector is adjusted.
  • Operation 206 Obtain the adjusted center vector as the classified cluster center.
  • the electronic device obtains the adjusted center vector as the clustering center of the classification, and among the sample vectors, the sample vector with the smallest distance from the clustering center of the classification is the classification vector in the classification.
  • the electronic device configures the number of classified center vectors according to the number of classifications, adjusts each center vector according to the distance between the sample vector and each center vector, and obtains the adjusted center vector as the clustering center of the classification, and can obtain the clustering center corresponding to each classification.
  • the process of adjusting each center vector according to the distance between the sample vector and each center vector includes operations 302 to 310. among them:
  • Operation 302 Configure a classified number of center vectors according to the classified number.
  • the classification corresponding to the center vector with the smallest distance between the sample vectors is used as the classification of the sample vectors.
  • the electronic device After the electronic device detects the distance between the sample vector and each center vector, and classifies the sample vector with the smallest distance from the center vector into a classification, the distance between all the sample vectors and the center vector in the classification is the lowest.
  • Operation 306 Adjust the center vector according to the distance between each sample vector and the center vector in the classification.
  • the electronic device adjusts the center vector so that the distance between all the sample vectors and the center vector in the classification is the smallest.
  • the electronic device may use a square error to construct an objective function.
  • the objective function is the sum of the squared differences of the distances of all sample vectors in the classification to the clustering centers of the classification. The distance of the vector is the smallest, so the objective function needs to be smaller.
  • the electronic device can obtain the partial derivative of the objective function to obtain the update function of the center vector, and adjust the center vector according to the update function and the distance between each sample vector and the center vector in the classification.
  • Operation 308 Repeat the classification of the center vector with the smallest distance from the sample vector as the sample vector according to the adjusted center vector, and adjust the center vector according to the distance between each vector and the center vector in the classification.
  • the adjusted center vector changes, so the distance between each sample vector and the adjusted center vector also changes.
  • the electronic device uses the adjusted center vector as the new center vector of each classification, re-detects the distance between each sample vector and the center vector, and uses the classification corresponding to the center vector with the smallest sample vector distance as the new classification of the sample vector, and Adjust the center vector according to the distance between each sample vector and the center vector in the classification.
  • a final center vector is obtained as a clustering center for classification.
  • the preset number of times can be set according to the requirements of the actual application, which is not limited here.
  • the electronic device can obtain the center vector obtained as the cluster center of each classification when the number of adjustments of the center vector exceeds a preset number of times.
  • the sample vector with the smallest distance from the cluster center is the classification in the classification. vector.
  • the electronic device may also obtain the adjusted center vector as the clustering center when the distance between the adjusted center vector and the last adjusted center vector is smaller than the first distance value.
  • the electronic device may also obtain the center vector as the clustering center of the classification when the distance between all the sample vectors and the center vector in the classification is smaller than the second distance value.
  • FIG. 4 is a schematic diagram of a clustering process of sample vectors in an embodiment.
  • the vectors F, G, H, I, and J are sample vectors corresponding to the training images F, G, H, I, and J, respectively; as shown in (b) of FIG. 4,
  • the electronic device can randomly configure two center vectors X and Y; the electronic device can detect the distance between each sample vector F, G, H, I, J and the center vector X and Y, as shown in FIG.
  • the distance between the sample vector F, G, H and the center vector X is less than the distance from the center vector Y, and the distance between the sample vector I, J and the center vector X is greater than the distance from the center vector Y, then The sample vectors F, G, and H are classified into the classification corresponding to the center vector X, and the sample vectors I and J are classified into the classification corresponding to the center vector Y.
  • the electronic device After the classification is completed, the electronic device The vectors F, G, and H adjust the center vector X, and the adjusted center vector is X1.
  • the center vector is adjusted according to the sample vectors I and J, and the adjusted center vector is Y1.
  • the electronic device needs to re-test the sample.
  • the distances between the vectors F, G, H, I, J and the center vectors X1, Y1 are shown in (e) in Figure 4.
  • the sample vectors H and The distance of the heart vector Y1 is smaller than the distance from the center vector X1, and the sample vector H is re-classified into the classification corresponding to the center vector Y1.
  • the electronic device can continue to repeatedly calculate (c) and FIG. 4 in FIG. 4
  • the process of (d) in 4 adjusts the center vector until the number of adjustments exceeds a preset number.
  • the center vectors Xn and Yn are the center vectors obtained by adjusting n times. When n is greater than a preset number, the electronic device can obtain Xn and Yn as the clustering centers of classification, respectively.
  • the electronic device adjusts the center vector according to the classification corresponding to the center vector with the smallest distance from the sample vector as the sample vector, adjusts the center vector according to the distance between each sample vector and the center vector in the classification, and readjusts the center vector according to the adjusted center vector.
  • the number of adjustments exceeds a preset number, the final center vector is obtained as the clustering center of the classification, and the clustering center corresponding to each classification can be obtained.
  • the process of adjusting each center vector according to the distance between the sample vector and each center vector includes operations 502 to 504. among them:
  • the electronic device can determine the similarity between the cluster center and the classification vector by calculating the distance between the cluster center and the classification vector; the larger the distance, the smaller the similarity between the classification vector and the cluster center of the classification, and the smaller the distance, The greater the similarity between the classification vector and the clustering center of the classification; the electronic device can set the similarity for different distance values in advance.
  • the training image corresponding to the sample vector whose similarity between the cluster centers is less than the second threshold is used as the classified second type training image.
  • the second threshold may be set according to the requirements of the actual application, and may be, for example, 10%, 20%, 30%, and the like, without being limited thereto.
  • the electronic device detects the similarity between each classification vector in the classification and the clustering center of the classification, obtains a training image corresponding to the classification vector whose similarity is less than the second threshold, and uses the training image as the second type of training image in the classification.
  • the second type of training image may be a training image used to reduce the error rate of the neural network that can be trained to recognize the classification, that is, the second type of training image may be used as a negative sample in the training of the neural network.
  • the electronic device detects the similarity between the cluster center of each classification and the sample vector, and uses the training image corresponding to the sample vector whose similarity to the cluster center is less than the second threshold as the second type of training image for classification, which can improve the training image screening efficiency.
  • the process of adjusting each center vector according to the distance between the sample vector and each center vector includes operations 602 to 604. among them:
  • Operation 602 Detect the distance between the cluster center and the classification vector in each classification.
  • the distance calculation formula may be a European-style distance calculation formula, a standard European-style distance calculation formula, a Manhattan distance calculation formula, a cosine distance calculation formula, and the like are not limited thereto.
  • the electronic device can detect the distance between the cluster center and the classification vector in each classification according to the distance calculation formula. The larger the distance, the smaller the similarity between the classification vector and the cluster center of the classification, and the smaller the distance, the greater the similarity between the classification vector and the cluster center of the classification.
  • the process of detecting the distance between the clustering center and the classification vector in each classification in the provided image processing method further includes: detecting a distance between the clustering center and the classification vector in each classification by using a European distance calculation formula.
  • the electronic device can obtain the European distance calculation formula as Where d ij represents the distance between the vector i and the vector j. x ik represents the k-th eigenvalue in the vector i, x jk represents the k-th eigenvalue in the vector j, and n represents the number of eigenvalues in the vector.
  • the electronic device can obtain the clustering center in the classification and the classification vector of the classification, and use the European-style distance calculation formula to substitute the clustering center and each feature value in the classification vector into the distance calculation formula to obtain the clustering center and the classification vector distance.
  • Operation 604 Use the training image corresponding to the classification vector whose distance is less than the preset distance as the first type of training image in the classification.
  • the preset distance can be set according to actual application requirements, which is not limited here.
  • the electronic device uses the clustering center and the classification vector in each classification to use the training image corresponding to the classification vector whose distance is less than the preset distance as the first type of training image in the classification.
  • the electronic device can obtain the correspondence of each classification from a large number of training images.
  • the first type of training images can improve the filtering efficiency of training images.
  • an image processing method is provided, and specific operations for implementing the method are as follows:
  • Neural networks are convolutional neural networks, deep neural networks, recurrent neural networks, and so on.
  • a neural network generally includes an input layer, a hidden layer, and an output layer; the input layer is used to receive the input of the image; the hidden layer is used to process the received image; the output layer is used to output the processing result of the image processing.
  • the hidden layers of the neural network may include a convolutional layer, an activation layer, a pooling layer, and a fully connected layer.
  • the electronic device can input the training image into the neural network, and the electronic device can obtain a sample vector composed of the feature values in the feature map according to the rules according to the feature map output by the activation layer in the neural network.
  • the electronic device obtains a sample vector output by the penultimate activation layer in the neural network.
  • the output of each activation layer in the neural network is out (1), out (2), ..., out (k), and k is the number of activation layers in the neural network.
  • the electronic device can obtain the vector output by the penultimate activation layer in the neural network, that is, out (k-1), as the sample vector corresponding to the training image E.
  • the electronic device obtains the sample vector output by the penultimate activation layer in the neural network, which can improve the dimension of the sample vector and facilitate the discrimination of different training images.
  • the electronic device performs cluster processing on the sample vector according to the number of classifications to obtain a clustering center and a classification vector corresponding to each classification.
  • the number of classifications refers to the number of scene classifications that the trained neural network can use for recognition.
  • Scene classification can be scenery, beach, blue sky, green grass, snow, night, dark, backlight, sunrise / sunset, fireworks, spotlight, indoor, macro, text document, portrait, baby, cat, dog, food, etc. this.
  • the electronic device performs cluster processing on the sample vector according to the required number of classifications, and can obtain a classification vector and a clustering center corresponding to each classification.
  • the electronic device configures the number of classified center vectors according to the number of classifications, adjusts each center vector according to the distance between the sample vector and each center vector, and obtains the adjusted center vector as the clustering center for classification.
  • the electronic device configures the number of classification center vectors according to the number of classifications, and each classification corresponds to a center vector.
  • the electronic device may randomly select the classified number of center vectors according to the classified number.
  • the distance between the sample vector and each center vector can be detected using the distance formula.
  • the distance formula may be a Manhattan distance formula, a Euclidean distance formula, a relative entropy formula, and the like, and is not limited thereto.
  • the electronic device obtains the adjusted center vector as the clustering center of the classification, and among the sample vectors, the sample vector with the smallest distance from the clustering center of the classification is the classification vector in the classification.
  • the electronic device configures the number of classification center vectors according to the number of classifications; the classification corresponding to the center vector with the smallest distance from the sample vector is used as the classification of the sample vector; and the center vector is adjusted according to the distance between each sample vector and the center vector in the classification; According to the adjusted center vector, the classification with the center vector having the smallest distance from the sample vector as the sample vector is repeatedly performed, and the operation of adjusting the center vector according to the distance between each vector and the center vector in the classification is performed; when the number of adjustments exceeds a preset number of times, Obtain the final center vector as the clustering center for classification.
  • the electronic device may also obtain the adjusted center vector as the clustering center when the distance between the adjusted center vector and the last adjusted center vector is smaller than the first distance value. In one embodiment, the electronic device may also obtain the center vector as the clustering center of the classification when the distance between all the sample vectors and the center vector in the classification is smaller than the second distance value.
  • the electronic device detects the similarity between the clustering center and the classification vector in each classification, and uses the training image corresponding to the classification vector whose similarity is greater than the first threshold as the first type of training image for classification.
  • the electronic device can obtain the clustering center of each classification and the classification vector in the classification, detect the similarity between each classification vector in the classification and the clustering center of the classification, and obtain the training image corresponding to the classification vector whose similarity is greater than the first threshold. This training image is used as the first type of training image in this classification.
  • the electronic device detects the distance between the cluster center and the classification vector in each classification, and uses the training image corresponding to the classification vector whose distance is less than a preset distance as the first type of training image in the classification.
  • the distance calculation formula may be a European-style distance calculation formula, a standard European-style distance calculation formula, a Manhattan distance calculation formula, a cosine distance calculation formula, and the like are not limited thereto.
  • the preset distance can be set according to actual application requirements.
  • the electronic device uses the clustering center and the classification vector in each classification to use the training image corresponding to the classification vector whose distance is less than the preset distance as the first type of training image in the classification.
  • the electronic device detects the similarity between the cluster center of each classification and the sample vector, and uses the training image corresponding to the sample vector whose similarity to the cluster center is less than the second threshold as the second type of training image for classification.
  • the second threshold can be set according to the requirements of the actual application.
  • the electronic device detects the similarity between each classification vector in the classification and the clustering center of the classification, obtains a training image corresponding to the classification vector whose similarity is less than the second threshold, and uses the training image as the second type of training image in the classification.
  • the electronic device uses a European-style distance calculation formula to detect the distance between the cluster center and the classification vector in each classification.
  • the electronic device can obtain the Euclidean distance calculation formula, and obtain the cluster center in the classification and the classification vector of the classification, and use the Euclidean distance calculation formula to substitute the cluster center and each feature value in the classification vector into the distance calculation formula to obtain The distance between the cluster center and the classification vector.
  • FIG. 7 is a structural block diagram of an image processing apparatus according to an embodiment.
  • an image processing apparatus includes a vector acquisition module 720, a cluster processing module 740, and an image determination module 760. among them:
  • a vector acquisition module 720 is configured to input a training image to a neural network, and obtain a sample vector output from an activation layer of the neural network.
  • a clustering processing module 740 is configured to perform clustering processing on the sample vector according to the number of classifications to obtain a clustering center and a classification vector corresponding to each classification.
  • the image determination module 760 is configured to detect the similarity between the cluster center and the classification vector in each classification, and use the training image corresponding to the classification vector whose similarity is greater than the first threshold as the first type of training image for classification.
  • the vector acquisition module 720 may be further configured to acquire a sample vector output by the penultimate activation layer in the neural network.
  • the cluster processing module 740 may be further configured to configure the number of classification center vectors according to the number of classifications, adjust each center vector according to the distance between the sample vector and each center vector, and obtain the adjusted center vector as the classified cluster. center.
  • the distance processing module 740 may be further configured to use the classification corresponding to the center vector with the smallest distance to the sample vector as the classification of the sample vector, adjust the center vector according to the distance between each sample vector and the center vector in the classification, and adjust according to the adjustment.
  • the subsequent center vector repeatedly performs the classification using the center vector with the smallest distance from the sample vector as the sample vector, and adjusts the center vector according to the distance between each sample vector and the center vector in the classification. When the number of adjustments exceeds a preset number, the operation is obtained. The final center vector is used as the classification cluster center.
  • the image determination module 760 may be further configured to detect the similarity between the cluster center of each classification and the sample vector, and use the training image corresponding to the sample vector whose similarity with the cluster center is less than the second threshold as the classification.
  • the second type of training images may be further configured to detect the similarity between the cluster center of each classification and the sample vector, and use the training image corresponding to the sample vector whose similarity with the cluster center is less than the second threshold as the classification. The second type of training images.
  • the image determination module 760 may be further configured to detect the distance between the cluster center and the classification vector in each classification, and use the training image corresponding to the classification vector whose distance is less than a preset distance as the first type of training image in the classification.
  • the image determination module 760 may be further configured to detect the distance between the cluster center and the classification vector in each classification by using a European distance calculation formula.
  • the image processing apparatus obtains a sample vector output by an activation layer of a neural network by inputting a training image to a neural network, and performs cluster processing on the sample vector according to the number of classifications to obtain a clustering center and classification corresponding to each classification.
  • Vector to detect the similarity between the clustering center and the classification vector in each classification, and use the training image corresponding to the classification vector whose similarity is greater than the first threshold as the first type of training image for classification, which can improve the filtering efficiency of the training image.
  • each module in the above image processing apparatus is for illustration only. In other embodiments, the image processing apparatus may be divided into different modules as needed to complete all or part of the functions of the above image processing apparatus.
  • Each module in the image processing apparatus may be implemented in whole or in part by software, hardware, and a combination thereof.
  • the above-mentioned modules may be embedded in the hardware in or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • FIG. 8 is a schematic diagram of the internal structure of the electronic device in one embodiment.
  • the electronic device includes a processor, a memory, and a network interface connected through a system bus.
  • the processor is used to provide computing and control capabilities to support the operation of the entire electronic device.
  • the memory is used to store data, programs, and the like. At least one computer program is stored on the memory, and the computer program can be executed by a processor to implement the image processing method applicable to the electronic device provided in the embodiments of the present application.
  • the memory may include a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system and a computer program.
  • the computer program can be executed by a processor to implement an image processing method provided by each of the following embodiments.
  • the internal memory provides a cached operating environment for operating system computer programs in a non-volatile storage medium.
  • the network interface may be an Ethernet card or a wireless network card, and is used to communicate with external electronic devices.
  • the electronic device may be a mobile phone, a computer, a tablet computer, or a personal digital assistant or a wearable device.
  • each module in the image processing apparatus provided in the embodiments of the present application may be in the form of a computer program.
  • the computer program can be run on a terminal or a server.
  • the program module constituted by the computer program can be stored in the memory of the terminal or server.
  • the computer program is executed by a processor, the operations of the method described in the embodiments of the present application are implemented.
  • An embodiment of the present application further provides a computer-readable storage medium.
  • One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the operations of the image processing method.
  • a computer program product containing instructions that, when run on a computer, causes the computer to perform an image processing method.
  • An embodiment of the present application further provides an electronic device.
  • the above electronic device includes an image processing circuit, and the image processing circuit may be implemented by using hardware and / or software components, and may include various processing units defining an ISP (Image Signal Processing) pipeline.
  • FIG. 9 is a schematic diagram of an image processing circuit in one embodiment. As shown in FIG. 9, for ease of description, only aspects of the image processing technology related to the embodiments of the present application are shown.
  • the image processing circuit includes an ISP processor 940 and a control logic 950.
  • the image data captured by the imaging device 910 is first processed by the ISP processor 940, which analyzes the image data to capture image statistical information that can be used to determine and / or one or more control parameters of the imaging device 910.
  • the imaging device 910 may include a camera having one or more lenses 912 and an image sensor 914.
  • the image sensor 914 may include a color filter array (such as a Bayer filter).
  • the image sensor 914 may obtain light intensity and wavelength information captured with each imaging pixel of the image sensor 914, and provide a set of raw data that may be processed by the ISP processor 940. Image data.
  • the sensor 920 may provide parameters (such as image stabilization parameters) of the acquired image processing to the ISP processor 940 based on the interface type of the sensor 920.
  • the sensor 920 interface may use a SMIA (Standard Mobile Imaging Architecture) interface, other serial or parallel camera interfaces, or a combination of the foregoing interfaces.
  • SMIA Standard Mobile Imaging Architecture
  • the image sensor 914 may also send the original image data to the sensor 920, and the sensor 920 may provide the original image data to the ISP processor 940 based on the interface type of the sensor 920, or the sensor 920 stores the original image data in the image memory 930.
  • the ISP processor 940 processes the original image data pixel by pixel in a variety of formats.
  • each image pixel may have a bit depth of 9, 10, 12, or 14 bits, and the ISP processor 940 may perform one or more image processing operations on the original image data and collect statistical information about the image data.
  • the image processing operations may be performed with the same or different bit depth accuracy.
  • the ISP processor 940 may also receive image data from the image memory 930.
  • the sensor 920 interface sends the original image data to the image memory 930, and the original image data in the image memory 930 is then provided to the ISP processor 940 for processing.
  • the image memory 930 may be a part of a memory device, a storage device, or a separate dedicated memory in an electronic device, and may include a DMA (Direct Memory Access) feature.
  • DMA Direct Memory Access
  • the ISP processor 940 may perform one or more image processing operations, such as time-domain filtering.
  • the processed image data may be sent to the image memory 930 for further processing before being displayed.
  • the ISP processor 940 receives processing data from the image memory 930 and performs image data processing on the processing data in the original domain and in the RGB and YCbCr color spaces.
  • the image data processed by the ISP processor 940 may be output to the display 970 for viewing by the user and / or further processed by a graphics engine or a GPU (Graphics Processing Unit).
  • the output of the ISP processor 940 can also be sent to the image memory 930, and the display 970 can read image data from the image memory 930.
  • the image memory 930 may be configured to implement one or more frame buffers.
  • the output of the ISP processor 940 may be sent to an encoder / decoder 960 to encode / decode image data.
  • the encoded image data can be saved and decompressed before being displayed on the display 970 device.
  • the encoder / decoder 960 may be implemented by a CPU or a GPU or a coprocessor.
  • the statistical data determined by the ISP processor 940 may be sent to the control logic 950 unit.
  • the statistical data may include image information of the image sensor 914 such as auto exposure, auto white balance, auto focus, flicker detection, black level compensation, and lens 912 shading correction.
  • the control logic 950 may include a processor and / or a microcontroller that executes one or more routines (such as firmware). The one or more routines may determine the control parameters of the imaging device 910 and the ISP processing according to the received statistical data. Parameters of the controller 940.
  • control parameters of the imaging device 910 may include sensor 920 control parameters (such as gain, integration time for exposure control, image stabilization parameters, etc.), camera flash control parameters, lens 912 control parameters (such as focus distance for focusing or zooming), or these A combination of parameters.
  • ISP control parameters may include gain levels and color correction matrices for automatic white balance and color adjustment (eg, during RGB processing), and lens 912 shading correction parameters.
  • the image processing method in FIG. 9 can be used to implement the foregoing image processing method.
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM), which is used as external cache memory.
  • RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDR, SDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR dual data rate SDRAM
  • SDRAM enhanced SDRAM
  • SLDRAM synchronous Link (Synchlink) DRAM
  • SLDRAM synchronous Link (Synchlink) DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Probability & Statistics with Applications (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Image Analysis (AREA)

Abstract

An image processing method, comprising: inputting training images to a neural network, and obtaining sample vectors output from a neural network activation layer; clustering the sample vectors according to the number of classifications, and obtaining clustering centers and classification vectors corresponding to the classifications; detecting the similarity between the clustering centers and the classification vectors in the classifications, and using the training images corresponding to the classification vectors of which the similarity is greater than a first threshold value as a first class of training images of the classifications.

Description

图像处理方法、电子设备、计算机可读存储介质Image processing method, electronic device, computer-readable storage medium

相关申请的交叉引用Cross-reference to related applications

本申请要求于2018年06月28日提交中国专利局、申请号为2018106860743、发明名称为“图像处理方法和装置、电子设备、计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed on June 28, 2018 with the Chinese Patent Office, application number 2018106860743, and the invention name is "image processing method and device, electronic device, computer-readable storage medium", and its entire content Incorporated by reference in this application.

技术领域Technical field

本申请涉计算机技术领域,特别是涉及一种图像方法、电子设备、计算机可读存储介质。The present application relates to the field of computer technology, and in particular, to an image method, an electronic device, and a computer-readable storage medium.

背景技术Background technique

随着计算机和深度学习技术的不断发展,采用深度学习算法对图像进行识别和分类成为图像处理的重要一部分。深度学习算法需要大量的训练图像,传统技术中,工程师通过制定筛选标准,根据筛选标准对大量的图像进行筛选得到训练图像,存在筛选训练图像效率低的问题。With the continuous development of computers and deep learning technologies, the use of deep learning algorithms to identify and classify images has become an important part of image processing. Deep learning algorithms require a large number of training images. In traditional technology, engineers formulate screening criteria and screen a large number of images to obtain training images based on the screening criteria. However, there is a problem of low efficiency in screening training images.

发明内容Summary of the invention

根据本申请的各种实施例提供一种图像处理方法、电子设备、计算机可读存储介质。According to various embodiments of the present application, an image processing method, an electronic device, and a computer-readable storage medium are provided.

一种图像处理方法,包括:An image processing method includes:

将训练图像输入到神经网络,获取神经网络激活层输出的样本向量;Input the training image to the neural network, and obtain the sample vector output by the activation layer of the neural network;

根据分类数量对所述样本向量进行聚类处理,获得各个分类对应的聚类中心及分类向量;级Clustering the sample vector according to the number of classifications to obtain the clustering center and classification vector corresponding to each classification; level

检测所述各个分类中聚类中心与分类向量的相似度,将所述相似度大于第一阈值的分类向量对应的训练图像作为所述分类的第一类训练图像。The similarity between the clustering center and the classification vector in each classification is detected, and the training image corresponding to the classification vector whose similarity is greater than the first threshold is used as the first type of training image for the classification.

一种电子设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如下操作:An electronic device includes a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor causes the processor to perform the following operations:

将训练图像输入到神经网络,获取神经网络激活层输出的样本向量;Input the training image to the neural network, and obtain the sample vector output by the activation layer of the neural network;

根据分类数量对所述样本向量进行聚类处理,获得各个分类对应的聚类中心及分类向量;及Clustering the sample vector according to the number of classifications to obtain a clustering center and a classification vector corresponding to each classification; and

检测所述各个分类中聚类中心与分类向量的相似度,将所述相似度大于第一阈值的分类向量对应的训练图像作为所述分类的第一类训练图像。The similarity between the clustering center and the classification vector in each classification is detected, and the training image corresponding to the classification vector whose similarity is greater than the first threshold is used as the first type of training image for the classification.

一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如下操作:A computer-readable storage medium stores a computer program thereon. When the computer program is executed by a processor, the following operations are implemented:

将训练图像输入到神经网络,获取神经网络激活层输出的样本向量;Input the training image to the neural network, and obtain the sample vector output by the activation layer of the neural network;

根据分类数量对所述样本向量进行聚类处理,获得各个分类对应的聚类中心及分类向量;及Clustering the sample vector according to the number of classifications to obtain a clustering center and a classification vector corresponding to each classification; and

检测所述各个分类中聚类中心与分类向量的相似度,将所述相似度大于第一阈值的分类向量对应的训练图像作为所述分类的第一类训练图像。The similarity between the clustering center and the classification vector in each classification is detected, and the training image corresponding to the classification vector whose similarity is greater than the first threshold is used as the first type of training image for the classification.

本申请实施例提供的图像处理方法、电子设备、计算机可读存储介质,可以根据神经网络激活层输出的样本向量筛选各个分类的训练图像,可以提高训练图像筛选效率。The image processing method, electronic device, and computer-readable storage medium provided in the embodiments of the present application can filter training images of each category according to the sample vectors output by the activation layer of the neural network, which can improve the filtering efficiency of the training image.

本申请的一个或多个实施例的细节在下面的附图和描述中提出。本发明的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。Details of one or more embodiments of the present application are set forth in the accompanying drawings and description below. Other features, objects, and advantages of the invention will be apparent from the description, the drawings, and the claims.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions in the embodiments of the present application or the prior art more clearly, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are merely These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without paying creative work.

图1为一个或多个实施例中图像处理方法的流程图。FIG. 1 is a flowchart of an image processing method in one or more embodiments.

图2为一个或多个实施例中对样本向量进行聚类处理的流程图。FIG. 2 is a flowchart of performing clustering processing on sample vectors in one or more embodiments.

图3为另一个或多个实施例中对样本向量进行聚类处理的流程图。FIG. 3 is a flowchart of performing clustering processing on sample vectors in another or more embodiments.

图4为一个或多个实施例中样本向量进行聚类处理过程的示意图。FIG. 4 is a schematic diagram of a clustering process of sample vectors in one or more embodiments.

图5为一个或多个实施例中图像处理方法的流程图。FIG. 5 is a flowchart of an image processing method in one or more embodiments.

图6为另一个或多个实施例中图像处理方法的流程图。FIG. 6 is a flowchart of an image processing method in another embodiment.

图7为一个或多个实施例中图像处理装置的结构框图。FIG. 7 is a structural block diagram of an image processing apparatus in one or more embodiments.

图8为一个或多个实施例中电子设备的内部结构示意图。FIG. 8 is a schematic diagram of an internal structure of an electronic device in one or more embodiments.

图9为一个或多个实施例中图像处理电路的示意图。FIG. 9 is a schematic diagram of an image processing circuit in one or more embodiments.

具体实施方式detailed description

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution, and advantages of the present application clearer, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the application, and are not used to limit the application.

可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一图像称为第二图像,且类似地,可将第二图像称为第一图像。第一图像和第二图像两者都是图像,但其不是同一图像。It can be understood that the terms “first”, “second”, and the like used in this application can be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from another element. For example, without departing from the scope of the present application, the first image may be referred to as a second image, and similarly, the second image may be referred to as a first image. Both the first image and the second image are images, but they are not the same image.

图1为一个实施例中图像处理方法的流程图。如图1所示,一种图像处理方法,包括操作102至操作106。其中:FIG. 1 is a flowchart of an image processing method according to an embodiment. As shown in FIG. 1, an image processing method includes operations 102 to 106. among them:

操作102,将训练图像输入到神经网络,获取神经网络激活层输出的样本向量。In operation 102, a training image is input to a neural network, and a sample vector output by an activation layer of the neural network is obtained.

训练图像可以是存储在电子设备本地的图像,还可以是电子设备从网络下载的图像等。在神经网络的训练过程中,需要大量的训练图像进行训练。神经网络是指由大量的节点(神经元)之间相互联接构成的一种运算模型。具体地,神经网络可以是CNN(Convolutional Neural Network,卷积神经网络)、DNN(Deep Neural Network,深度神经网络)、RNN(Recurrent Neural Network,循环神经网络)等,不限于此。神经网络一般包括输入层、隐层和输出层;输入层用于接收图像的输入;隐层用于对接收到的图像进行处理;输出层用于输出对图像处理的处理结果。神经网络的隐层可以包括卷积层、激活层、池化层和全连接层。样本向量是指训练图像输入神经网络后,由神经网络激活层输出的特征图中的特征值按预设规则组成的向量。The training image may be an image stored locally on the electronic device, or an image downloaded from the network by the electronic device. During the training of the neural network, a large number of training images are needed for training. Neural network refers to a computing model composed of a large number of nodes (neurons) connected to each other. Specifically, the neural network may be CNN (Convolutional Neural Network, Convolutional Neural Network), DNN (Deep Neural Network, Deep Neural Network), RNN (Recurrent Neural Network, Recurrent Neural Network), etc., and is not limited thereto. A neural network generally includes an input layer, a hidden layer, and an output layer; the input layer is used to receive the input of the image; the hidden layer is used to process the received image; the output layer is used to output the processing result of the image processing. The hidden layers of the neural network may include a convolutional layer, an activation layer, a pooling layer, and a fully connected layer. The sample vector refers to a vector composed of feature values in a feature map output by a neural network activation layer according to a preset rule after a training image is input into a neural network.

电子设备可以将训练图像输入到神经网络中,电子设备可以根据神经网络中激活层输出的特征图获取由特征图中的特征值按规则组成的样本向量。The electronic device can input the training image into the neural network, and the electronic device can obtain a sample vector composed of the feature values in the feature map according to the rules according to the feature map output by the activation layer in the neural network.

操作104,根据分类数量对样本向量进行聚类处理,获得各个分类对应的聚类中心及分类向量。Operation 104: Perform clustering processing on the sample vector according to the number of classifications to obtain a clustering center and a classification vector corresponding to each classification.

分类数量是指训练的神经网络可用于识别的场景分类的数量。分类数量也可以指训练图像中场景分类的数量。在一个实施例中,分类可以是风景、海滩、蓝天、绿草、雪景、夜景、黑暗、背光、日出/日落、烟火、聚光灯、室内、微距、文本文档、人像、婴儿、猫、狗、美食等,不限于此。聚类是指训练图像分成由类似的场景分类组成的多个分类的过程。具体地,电子设备可以采用划分法如K-MEANS(硬聚类)算法或K-MEDOIDS(中心点)算法等、层次法如BIRCH(Balanced Iterative Reducing and Clustering using Hierarchies,基于层次的平衡迭代减少与聚类)算法等、图论聚类法等算法对训练图像进 行聚类处理。聚类中心是指各个分类的中心向量,分类中的聚类中心距离该分类中的分类向量距离最小。分类向量是指各个分类对应的样本向量。例如,存在样本向量A、B、C、D,若分类为M和N两个分类,电子设备对样本向量进行聚类处理后样本向量A和B组成分类M,样本向量C和D组成分类N,则分类M对应的分类向量为A和B,分类N对应的分类向量为C和D。The number of classifications refers to the number of scene classifications that the trained neural network can use for recognition. The number of classifications can also refer to the number of scene classifications in the training image. In one embodiment, the classification can be landscape, beach, blue sky, green grass, snow, night, dark, backlight, sunrise / sunset, fireworks, spotlight, indoor, macro, text document, portrait, baby, cat, dog , Food, etc. are not limited to this. Clustering refers to the process by which training images are divided into multiple classifications composed of similar scene classifications. Specifically, the electronic device can use a partitioning method such as K-MEANS (hard clustering) algorithm or K-MEDOIDS (center point) algorithm, and a hierarchical method such as BIRCH (Balanced Iterative Reducing and Clustering Using Hierarchies). (Clustering) algorithm and other algorithms, such as graph theory clustering method, perform clustering processing on training images. The cluster center refers to the center vector of each classification, and the distance between the cluster center in the classification and the classification vector in the classification is the smallest. A classification vector refers to a sample vector corresponding to each classification. For example, there are sample vectors A, B, C, and D. If the classification is M and N, the electronic device performs cluster processing on the sample vectors. Sample vectors A and B form classification M, and sample vectors C and D form classification N. , The classification vectors corresponding to classification M are A and B, and the classification vectors corresponding to classification N are C and D.

电子设备根据需要的分类数量对样本向量进行聚类处理,可以得到各个分类对应的分类向量和聚类中心。The electronic device performs cluster processing on the sample vector according to the required number of classifications, and can obtain a classification vector and a clustering center corresponding to each classification.

操作106,检测各个分类中聚类中心与分类向量的相似度,将相似度大于第一阈值的分类向量对应的训练图像作为分类的第一类训练图像。Operation 106: Detect the similarity between the clustering center and the classification vector in each classification, and use the training image corresponding to the classification vector whose similarity is greater than the first threshold as the first type of training image for classification.

电子设备检测聚类中心与分类向量的相似度的方法可以有多种。在一个实施例中,电子设备可以通过计算聚类中心与分类向量之间的距离确定聚类中心与分类向量的相似度;距离越大,则分类向量与该分类的聚类中心的相似度越小,距离越小,则分类向量与该分类的聚类中心的相似度越大。电子设备可以预先为不同的距离值设定对应的相似度,通过检测得到聚类中心与分类向量的距离值,根据该距离值获取对应的相似度作为聚类中心与分类向量的相似度。第一阈值可以根据实际应用的需求进行设定。例如,第一阈值可以是70%、80%、90%等不限于此。第一类训练图像是指具有相同分类的,可用于训练可实现对该分类进行识别的神经网络的训练图像,即第一类训练图像可以作为神经网络训练中的正样本。There are various methods for the electronic device to detect the similarity between the cluster center and the classification vector. In one embodiment, the electronic device may determine the similarity between the cluster center and the classification vector by calculating the distance between the cluster center and the classification vector; the greater the distance, the more similar the classification vector is to the cluster center of the classification. The smaller the distance, the greater the similarity between the classification vector and the clustering center of the classification. The electronic device can set corresponding similarity for different distance values in advance, obtain the distance value between the cluster center and the classification vector through detection, and obtain the corresponding similarity according to the distance value as the similarity between the cluster center and the classification vector. The first threshold can be set according to the requirements of the actual application. For example, the first threshold may be 70%, 80%, 90%, etc., and is not limited thereto. The first type of training image refers to a training image with the same classification that can be used to train a neural network that can recognize the classification, that is, the first type of training image can be used as a positive sample in neural network training.

电子设备可以获取各个分类的聚类中心及分类中的分类向量,检测分类中的各个分类向量与该分类的聚类中心的相似度,获取相似度大于第一阈值的分类向量对应的训练图像,将该训练图像作为该分类中的第一类训练图像。The electronic device can obtain the clustering center of each classification and the classification vector in the classification, detect the similarity between each classification vector in the classification and the clustering center of the classification, and obtain the training image corresponding to the classification vector whose similarity is greater than the first threshold. This training image is used as the first type of training image in this classification.

本申请提供的实施例中,通过将训练图像输入到神经网络,获取神经网络激活层输出的样本向量,根据分类数量对样本向量进行聚类处理,获得各个分类对应的聚类中心及分类向量,检测各个分类中聚类中心与分类向量的相似度,将相似度大于第一阈值的分类向量对应的训练图像作为分类的第一类训练图像,可以提高训练图像筛选效率。In the embodiment provided by the present application, by inputting a training image to a neural network, obtaining a sample vector output from an activation layer of the neural network, and performing cluster processing on the sample vector according to the number of classifications, to obtain a clustering center and a classification vector corresponding to each classification. Detecting the similarity between the clustering center and the classification vector in each classification, and using the training image corresponding to the classification vector whose similarity is greater than the first threshold value as the first type of training image for classification can improve the efficiency of filtering the training image.

在一个实施例中,提供的图像处理方法中获取神经网络激活层输出的样本向量的过程包括:获取神经网络中倒数第二个激活层输出的样本向量。In one embodiment, the process of obtaining a sample vector output by the activation layer of the neural network in the provided image processing method includes: obtaining a sample vector output by the penultimate activation layer in the neural network.

神经网络的激活层是用于根据激活函数对经过卷积层得到的特征图进行函数变化的层。电子设备可以获取神经网络中激活层输出的样本向量。在一个实施例中,电子设备可以获取神经网络中倒数第二个激活层输出的样本向量。例如,当训练图像E输入神经网络时,神经网络中每个激活层的输出为out(1),out(2),...,out(k),k为神经网络中激活层的数量,则电子设备可以获取神经网络中倒数第二个激活层输出的向量即out(k-1)作为训练图像E对应的样本向量。The activation layer of the neural network is a layer for performing a function change on the feature map obtained through the convolution layer according to the activation function. The electronic device can obtain a sample vector of the output of the activation layer in the neural network. In one embodiment, the electronic device can obtain a sample vector output by the penultimate activation layer in the neural network. For example, when the training image E is input into the neural network, the output of each activation layer in the neural network is out (1), out (2), ..., out (k), and k is the number of activation layers in the neural network. Then, the electronic device can obtain the vector output by the penultimate activation layer in the neural network, that is, out (k-1), as the sample vector corresponding to the training image E.

电子设备获取神经网络中倒数第二个激活层输出的样本向量,可以提高样本向量的维度,便于区分不同的训练图像,根据分类数量对样本向量进行聚类处理,获得各个分类对应的聚类中心及分类向量,检测各个分类中聚类中心与分类向量的相似度,将相似度大于第一阈值的分类向量对应的训练图像作为分类的第一类训练图像,可以提高训练图像筛选效率。The electronic device obtains the sample vector output from the penultimate activation layer in the neural network, which can increase the dimension of the sample vector and facilitate the differentiation of different training images. The sample vector is clustered according to the number of classifications to obtain the clustering center corresponding to each classification. And classification vector, detecting the similarity between the clustering center and the classification vector in each classification, and using the training image corresponding to the classification vector whose similarity is greater than the first threshold as the first type of training image for classification, can improve the efficiency of training image screening.

如图2所示,在一个实施例中,提供的图像处理方法中根据分类数量对样本向量进行聚类处理的过程包括操作202至操作206。其中:As shown in FIG. 2, in one embodiment, a process of performing clustering processing on a sample vector according to the number of classifications in the provided image processing method includes operations 202 to 206. among them:

操作202,根据分类数量配置分类数量个中心向量。In operation 202, a classification number of center vectors are configured according to the classification number.

电子设备根据分类数量配置分类数量个中心向量,则每一个分类都对应一个中心向量。具体地,电子设备可以根据分类数量随机选择分类数量个中心向量。在一个实施例中,电子设备也可以获取预先设定的分类数量个中心向量。The electronic device configures the number of classification center vectors according to the number of classifications, and each classification corresponds to a center vector. Specifically, the electronic device may randomly select the classified number of center vectors according to the classified number. In one embodiment, the electronic device may also obtain a preset number of classified center vectors.

操作204,根据样本向量与各个中心向量的距离调整各个中心向量。Operation 204: Adjust each center vector according to the distance between the sample vector and each center vector.

样本向量与各个中心向量的距离可以采用距离公式进行检测。具体地,距离公式可以是曼哈顿距离公式、欧式距离公式、相对熵公式等,不限于此。电子设备可以根据距离公式检测样本向量与各个中心向量之间的距离,将与样本向量距离最小的中心向量对应的分类作为样本向量的分类,并根据分类中各样本向量与中心向量的距离对中心向量进行调整。The distance between the sample vector and each center vector can be detected using the distance formula. Specifically, the distance formula may be a Manhattan distance formula, a Euclidean distance formula, a relative entropy formula, and the like, and is not limited thereto. The electronic device can detect the distance between the sample vector and each center vector according to the distance formula, use the classification corresponding to the center vector with the smallest sample vector distance as the classification of the sample vector, and center the center according to the distance between each sample vector and the center vector in the classification. The vector is adjusted.

操作206,获取调整后的中心向量作为分类的聚类中心。Operation 206: Obtain the adjusted center vector as the classified cluster center.

电子设备获取调整后的中心向量作为分类的聚类中心,则样本向量中,与分类的聚类中心距离最小的样本向量为该分类中的分类向量。The electronic device obtains the adjusted center vector as the clustering center of the classification, and among the sample vectors, the sample vector with the smallest distance from the clustering center of the classification is the classification vector in the classification.

电子设备根据分类数量配置分类数量个中心向量,根据样本向量与各个中心向量的距离调整各个中心向量,获取调整后的中心向量作为分类的聚类中心,可以获取各个分类对应的聚类中心。The electronic device configures the number of classified center vectors according to the number of classifications, adjusts each center vector according to the distance between the sample vector and each center vector, and obtains the adjusted center vector as the clustering center of the classification, and can obtain the clustering center corresponding to each classification.

如图3所示,在一个实施例中,根据所述样本向量与各个中心向量的距离调整所述各个中心向量的过程包括操作302至操作310。其中:As shown in FIG. 3, in one embodiment, the process of adjusting each center vector according to the distance between the sample vector and each center vector includes operations 302 to 310. among them:

操作302,根据分类数量配置分类数量个中心向量。Operation 302: Configure a classified number of center vectors according to the classified number.

操作304,将与样本向量距离最小的中心向量所对应的分类作为样本向量的分类。In operation 304, the classification corresponding to the center vector with the smallest distance between the sample vectors is used as the classification of the sample vectors.

电子设备检测样本向量与各个中心向量的距离之后,将与中心向量的距离最小的样本向量归为一个分类,则该分类中所有样本向量与该中心向量的距离最下。After the electronic device detects the distance between the sample vector and each center vector, and classifies the sample vector with the smallest distance from the center vector into a classification, the distance between all the sample vectors and the center vector in the classification is the lowest.

操作306,根据分类中各个样本向量与中心向量的距离调整中心向量。Operation 306: Adjust the center vector according to the distance between each sample vector and the center vector in the classification.

电子设备对中心向量进行调整,使得分类中所有样本向量与中心向量的距离最小。具体地,电子设备可以采用平方误差构建目标函数,目标函数为分类中所有样本向量到分类的聚类中心的距离的平方差之和,电子设备对中心向量进行调整使得分类中所有样本向量与中心向量的距离最小,则目标函数需要更小,电子设备可以对目标函数求取偏导数,得到中心向量的更新函数,根据更新函数和分类中各个样本向量与中心向量的距离调整中心向量。The electronic device adjusts the center vector so that the distance between all the sample vectors and the center vector in the classification is the smallest. Specifically, the electronic device may use a square error to construct an objective function. The objective function is the sum of the squared differences of the distances of all sample vectors in the classification to the clustering centers of the classification. The distance of the vector is the smallest, so the objective function needs to be smaller. The electronic device can obtain the partial derivative of the objective function to obtain the update function of the center vector, and adjust the center vector according to the update function and the distance between each sample vector and the center vector in the classification.

操作308,根据调整后的中心向量重复执行将与样本向量距离最小的中心向量作为所述样本向量的分类,根据分类中各个向量与中心向量的距离调整中心向量的操作。Operation 308: Repeat the classification of the center vector with the smallest distance from the sample vector as the sample vector according to the adjusted center vector, and adjust the center vector according to the distance between each vector and the center vector in the classification.

调整后的中心向量发生了改变,因此各个样本向量与调整后的中心向量的距离也发生了改变。电子设备将调整后的中心向量作为各个分类的新的中心向量,重新检测各个样本向量与中心向量的距离,将与样本向量距离最小的中心向量对应的分类作为该样本向量的新的分类,并根据分类中各个样本向量与中心向量的距离调整中心向量。The adjusted center vector changes, so the distance between each sample vector and the adjusted center vector also changes. The electronic device uses the adjusted center vector as the new center vector of each classification, re-detects the distance between each sample vector and the center vector, and uses the classification corresponding to the center vector with the smallest sample vector distance as the new classification of the sample vector, and Adjust the center vector according to the distance between each sample vector and the center vector in the classification.

操作310,当调整次数超过预设次数时,获取最终的中心向量作为分类的聚类中心。In operation 310, when the number of adjustments exceeds a preset number of times, a final center vector is obtained as a clustering center for classification.

预设次数可以根据实际应用中的需求进行设定,在此不做限定。电子设备可以在中心向量的调整次数超过预设次数时,获取得到的中心向量作为各个分类的聚类中心,则样本向量中,与分类的聚类中心距离最小的样本向量为该分类中的分类向量。电子设备也可以在调整后的中心向量与上一次调整的中心向量的距离值小于第一距离值时,获取该调整后的中心向量作为分类的聚类中心。在一个实施例中,电子设备还可以在分类中所有样本向量与中心向量的距离小于第二距离值时,获取该中心向量作为分类的聚类中心。The preset number of times can be set according to the requirements of the actual application, which is not limited here. The electronic device can obtain the center vector obtained as the cluster center of each classification when the number of adjustments of the center vector exceeds a preset number of times. Among the sample vectors, the sample vector with the smallest distance from the cluster center is the classification in the classification. vector. The electronic device may also obtain the adjusted center vector as the clustering center when the distance between the adjusted center vector and the last adjusted center vector is smaller than the first distance value. In one embodiment, the electronic device may also obtain the center vector as the clustering center of the classification when the distance between all the sample vectors and the center vector in the classification is smaller than the second distance value.

如图4所示为一个实施例中样本向量进行聚类处理过程的示意图。如图4中的(a)所示,向量F、G、H、I、J分别为训练图像F、G、H、I、J对应的样本向量;如图4中的(b)所示,当分类数量为2时,电子设备可以随机配置两个中心向量X和Y;电子设备可以检测各个样本向量F、G、H、I、J与中心向量X和Y的距离,如图4中的(c)所示,样本向量F、G、H与中心向量X的距离均小于与中心向量Y的距离,样本向量I、J与中心向量X的距离均大于与中心向量Y的距离,则将样本向量F、G、H归为中心向量X对应的分类,将样本向量I、J归为中心向量Y对应的分类;如图4中的(d)所示,分类完成后,电子设备根据样本向量F、G、H对中心向量X进行调整,得到调整后的中心向量为 X1,根据样本向量I、J对中心向量进行调整,得到调整后的中心向量为Y1,则电子设备需重新检测样本向量F、G、H、I、J与中心向量X1、Y1之间的距离,如图4中的(e)所示,样本向量H与中心向量Y1的距离小于与中心向量X1的距离,则将样本向量H重新归为中心向量Y1对应的分类中;在聚类过程中,电子设备可以不断重复运算图4中的(c)和图4中的(d)的过程对中心向量进行调整直到调整次数超过预设次数。如图4中的(f)所示,中心向量Xn与Yn分别为调整n次后得到的中心向量,当n大于预设次数时,电子设备可以获取Xn与Yn分别作为分类的聚类中心。FIG. 4 is a schematic diagram of a clustering process of sample vectors in an embodiment. As shown in (a) of FIG. 4, the vectors F, G, H, I, and J are sample vectors corresponding to the training images F, G, H, I, and J, respectively; as shown in (b) of FIG. 4, When the number of classifications is 2, the electronic device can randomly configure two center vectors X and Y; the electronic device can detect the distance between each sample vector F, G, H, I, J and the center vector X and Y, as shown in FIG. 4 As shown in (c), the distance between the sample vector F, G, H and the center vector X is less than the distance from the center vector Y, and the distance between the sample vector I, J and the center vector X is greater than the distance from the center vector Y, then The sample vectors F, G, and H are classified into the classification corresponding to the center vector X, and the sample vectors I and J are classified into the classification corresponding to the center vector Y. As shown in (d) of FIG. 4, after the classification is completed, the electronic device The vectors F, G, and H adjust the center vector X, and the adjusted center vector is X1. The center vector is adjusted according to the sample vectors I and J, and the adjusted center vector is Y1. The electronic device needs to re-test the sample. The distances between the vectors F, G, H, I, J and the center vectors X1, Y1 are shown in (e) in Figure 4. The sample vectors H and The distance of the heart vector Y1 is smaller than the distance from the center vector X1, and the sample vector H is re-classified into the classification corresponding to the center vector Y1. During the clustering process, the electronic device can continue to repeatedly calculate (c) and FIG. 4 in FIG. 4 The process of (d) in 4 adjusts the center vector until the number of adjustments exceeds a preset number. As shown in (f) in FIG. 4, the center vectors Xn and Yn are the center vectors obtained by adjusting n times. When n is greater than a preset number, the electronic device can obtain Xn and Yn as the clustering centers of classification, respectively.

电子设备根据将与样本向量距离最小的中心向量所对应的分类作为样本向量的分类,根据分类中各个样本向量与中心向量的距离调整中心向量,并根据调整后的中心向量重新对中心向量进行调整,当调整次数超过预设次数时,获取最终的中心向量作为分类的聚类中心,可以获取各个分类对应的聚类中心。The electronic device adjusts the center vector according to the classification corresponding to the center vector with the smallest distance from the sample vector as the sample vector, adjusts the center vector according to the distance between each sample vector and the center vector in the classification, and readjusts the center vector according to the adjusted center vector. When the number of adjustments exceeds a preset number, the final center vector is obtained as the clustering center of the classification, and the clustering center corresponding to each classification can be obtained.

如图5所示,在一个实施例中,根据所述样本向量与各个中心向量的距离调整所述各个中心向量的过程包括操作502至操作504。其中:As shown in FIG. 5, in one embodiment, the process of adjusting each center vector according to the distance between the sample vector and each center vector includes operations 502 to 504. among them:

操作502,检测各个分类的聚类中心与样本向量的相似度。In operation 502, the similarity between the cluster center of each classification and the sample vector is detected.

电子设备可以通过计算聚类中心与分类向量之间的距离确定聚类中心与分类向量的相似度;距离越大,则分类向量与该分类的聚类中心的相似度越小,距离越小,则分类向量与该分类的聚类中心的相似度越大;电子设备可以为预先为不同的距离值设定相似度。The electronic device can determine the similarity between the cluster center and the classification vector by calculating the distance between the cluster center and the classification vector; the larger the distance, the smaller the similarity between the classification vector and the cluster center of the classification, and the smaller the distance, The greater the similarity between the classification vector and the clustering center of the classification; the electronic device can set the similarity for different distance values in advance.

操作504,将与聚类中心的相似度小于第二阈值的样本向量对应的训练图像作为分类的第二类训练图像。In operation 504, the training image corresponding to the sample vector whose similarity between the cluster centers is less than the second threshold is used as the classified second type training image.

第二阈值可以根据实际应用的需求进行设定,例如可以是10%、20%、30%等不限于此。电子设备检测分类中的各个分类向量与该分类的聚类中心的相似度,获取相似度小于第二阈值的分类向量对应的训练图像,将该训练图像作为该分类中的第二类训练图像。第二类训练图像可以是用于降低训练的可实现对该分类进行识别的神经网络的错误率的训练图像,即第二类训练图像可以作为神经网络训练中的负样本。The second threshold may be set according to the requirements of the actual application, and may be, for example, 10%, 20%, 30%, and the like, without being limited thereto. The electronic device detects the similarity between each classification vector in the classification and the clustering center of the classification, obtains a training image corresponding to the classification vector whose similarity is less than the second threshold, and uses the training image as the second type of training image in the classification. The second type of training image may be a training image used to reduce the error rate of the neural network that can be trained to recognize the classification, that is, the second type of training image may be used as a negative sample in the training of the neural network.

电子设备检测各个分类的聚类中心与样本向量的相似度,将与聚类中心的相似度小于第二阈值的样本向量对应的训练图像作为分类的第二类训练图像,可以提高训练图像筛选效率。The electronic device detects the similarity between the cluster center of each classification and the sample vector, and uses the training image corresponding to the sample vector whose similarity to the cluster center is less than the second threshold as the second type of training image for classification, which can improve the training image screening efficiency. .

如图6所示,在一个实施例中,根据所述样本向量与各个中心向量的距离调整所述各个中心向量的过程包括操作602至操作604。其中:As shown in FIG. 6, in one embodiment, the process of adjusting each center vector according to the distance between the sample vector and each center vector includes operations 602 to 604. among them:

操作602,检测各个分类中聚类中心与分类向量的距离。Operation 602: Detect the distance between the cluster center and the classification vector in each classification.

距离计算公式可以是欧式距离计算公式、标准欧式距离计算公式、曼哈顿距离计算公式、余弦距离计算公式等不限于此。电子设备可以根据距离计算公式检测各个分类中聚类中心与分类向量的距离。距离越大,则分类向量与该分类的聚类中心的相似度越小,距离越小,则分类向量与该分类的聚类中心的相似度越大。The distance calculation formula may be a European-style distance calculation formula, a standard European-style distance calculation formula, a Manhattan distance calculation formula, a cosine distance calculation formula, and the like are not limited thereto. The electronic device can detect the distance between the cluster center and the classification vector in each classification according to the distance calculation formula. The larger the distance, the smaller the similarity between the classification vector and the cluster center of the classification, and the smaller the distance, the greater the similarity between the classification vector and the cluster center of the classification.

在一个实施例中,提供的图像处理方法中检测各个分类中聚类中心与分类向量的距离的过程还包括:采用欧式距离计算公式检测各个分类中聚类中心与分类向量的距离。In one embodiment, the process of detecting the distance between the clustering center and the classification vector in each classification in the provided image processing method further includes: detecting a distance between the clustering center and the classification vector in each classification by using a European distance calculation formula.

电子设备可以获取欧式距离计算公式为

Figure PCTCN2019087570-appb-000001
其中,d ij表示向量i与向量j之间的距离。x ik表示向量i中的第k个特征值,x jk表示向量j中的第k个特征值,n表示向量中特征值的个数。电子设备可以获取分类中的聚类中心与该分类的分类向量,通过上述欧式距离计算公式将聚类中心与分类向量中的各个特征值对应的代入距离计算公式中,获取聚类中心与分类向量的距离。 The electronic device can obtain the European distance calculation formula as
Figure PCTCN2019087570-appb-000001
Where d ij represents the distance between the vector i and the vector j. x ik represents the k-th eigenvalue in the vector i, x jk represents the k-th eigenvalue in the vector j, and n represents the number of eigenvalues in the vector. The electronic device can obtain the clustering center in the classification and the classification vector of the classification, and use the European-style distance calculation formula to substitute the clustering center and each feature value in the classification vector into the distance calculation formula to obtain the clustering center and the classification vector distance.

操作604,将距离小于预设距离的分类向量对应的训练图像作为分类中的第一类训练图像。Operation 604: Use the training image corresponding to the classification vector whose distance is less than the preset distance as the first type of training image in the classification.

预设距离可以根据实际应用需求进行设定,在此不做限定。电子设备通过各个分类中聚类中心与分类向量,将距离小于预设距离的分类向量对应的训练图像作为分类中的第一类训练图像。The preset distance can be set according to actual application requirements, which is not limited here. The electronic device uses the clustering center and the classification vector in each classification to use the training image corresponding to the classification vector whose distance is less than the preset distance as the first type of training image in the classification.

通过检测各个分类中聚类中心与分类向量的距离,将距离小于预设距离的分类向量对应的训练图像作为分类中的第一类训练图像,则电子设备可以从大量的训练图像获取各个分类对应的第一类训练图像,可以提高训练图像的筛选效率。By detecting the distance between the clustering center and the classification vector in each classification, and using the training image corresponding to the classification vector whose distance is less than the preset distance as the first type of training image in the classification, the electronic device can obtain the correspondence of each classification from a large number of training images. The first type of training images can improve the filtering efficiency of training images.

在一个实施例中,提供了一种图像处理方法,实现该方法的具体操作如下所述:In one embodiment, an image processing method is provided, and specific operations for implementing the method are as follows:

首先,电子设备将训练图像输入到神经网络,获取神经网络激活层输出的样本向量。神经网络可是卷积神经网络、深度神经网络、循环神经网络等。神经网络一般包括输入层、隐层和输出层;输入层用于接收图像的输入;隐层用于对接收到的图像进行处理;输出层用于输出对图像处理的处理结果。神经网络的隐层可以包括卷积层、激活层、池化层和全连接层。电子设备可以将训练图像输入到神经网络中,电子设备可以根据神经网络中激活层输出的特征图获取由特征图中的特征值按规则组成的样本向量。First, the electronic device inputs the training image to the neural network and obtains the sample vector output by the activation layer of the neural network. Neural networks are convolutional neural networks, deep neural networks, recurrent neural networks, and so on. A neural network generally includes an input layer, a hidden layer, and an output layer; the input layer is used to receive the input of the image; the hidden layer is used to process the received image; the output layer is used to output the processing result of the image processing. The hidden layers of the neural network may include a convolutional layer, an activation layer, a pooling layer, and a fully connected layer. The electronic device can input the training image into the neural network, and the electronic device can obtain a sample vector composed of the feature values in the feature map according to the rules according to the feature map output by the activation layer in the neural network.

可选地,电子设备获取神经网络中倒数第二个激活层输出的样本向量。例如,当训练图像E输入神经网络时,神经网络中每个激活层的输出为out(1),out(2),...,out(k),k为神经网络中激活层的数量,则电子设备可以获取神经网络中倒数第二个激活层输出的向量即out(k-1)作为训练图像E对应的样本向量。电子设备获取神经网络中倒数第二个激活层输出的样本向量,可以提高样本向量的维度,便于区分不同的训练图像Optionally, the electronic device obtains a sample vector output by the penultimate activation layer in the neural network. For example, when the training image E is input into the neural network, the output of each activation layer in the neural network is out (1), out (2), ..., out (k), and k is the number of activation layers in the neural network. Then, the electronic device can obtain the vector output by the penultimate activation layer in the neural network, that is, out (k-1), as the sample vector corresponding to the training image E. The electronic device obtains the sample vector output by the penultimate activation layer in the neural network, which can improve the dimension of the sample vector and facilitate the discrimination of different training images.

接着,电子设备根据分类数量对样本向量进行聚类处理,获得各个分类对应的聚类中心及分类向量。分类数量是指训练的神经网络可用于识别的场景分类的数量。场景分类可以是风景、海滩、蓝天、绿草、雪景、夜景、黑暗、背光、日出/日落、烟火、聚光灯、室内、微距、文本文档、人像、婴儿、猫、狗、美食等不限于此。电子设备根据需要的分类数量对样本向量进行聚类处理,可以得到各个分类对应的分类向量和聚类中心。Next, the electronic device performs cluster processing on the sample vector according to the number of classifications to obtain a clustering center and a classification vector corresponding to each classification. The number of classifications refers to the number of scene classifications that the trained neural network can use for recognition. Scene classification can be scenery, beach, blue sky, green grass, snow, night, dark, backlight, sunrise / sunset, fireworks, spotlight, indoor, macro, text document, portrait, baby, cat, dog, food, etc. this. The electronic device performs cluster processing on the sample vector according to the required number of classifications, and can obtain a classification vector and a clustering center corresponding to each classification.

可选地,电子设备根据分类数量配置分类数量个中心向量,根据样本向量与各个中心向量的距离调整各个中心向量,获取调整后的中心向量作为分类的聚类中心。电子设备根据分类数量配置分类数量个中心向量,则每一个分类都对应一个中心向量。具体地,电子设备可以根据分类数量随机选择分类数量个中心向量。样本向量与各个中心向量的距离可以采用距离公式进行检测。具体地,距离公式可以是曼哈顿距离公式、欧式距离公式、相对熵公式等,不限于此。电子设备获取调整后的中心向量作为分类的聚类中心,则样本向量中,与分类的聚类中心距离最小的样本向量为该分类中的分类向量。Optionally, the electronic device configures the number of classified center vectors according to the number of classifications, adjusts each center vector according to the distance between the sample vector and each center vector, and obtains the adjusted center vector as the clustering center for classification. The electronic device configures the number of classification center vectors according to the number of classifications, and each classification corresponds to a center vector. Specifically, the electronic device may randomly select the classified number of center vectors according to the classified number. The distance between the sample vector and each center vector can be detected using the distance formula. Specifically, the distance formula may be a Manhattan distance formula, a Euclidean distance formula, a relative entropy formula, and the like, and is not limited thereto. The electronic device obtains the adjusted center vector as the clustering center of the classification, and among the sample vectors, the sample vector with the smallest distance from the clustering center of the classification is the classification vector in the classification.

可选地,电子设备根据分类数量配置分类数量个中心向量;将与样本向量距离最小的中心向量所对应的分类作为样本向量的分类;根据分类中各个样本向量与中心向量的距离调整中心向量;根据调整后的中心向量重复执行将与样本向量距离最小的中心向量作为所述样本向量的分类,根据分类中各个向量与中心向量的距离调整中心向量的操作;当调整次数超过预设次数时,获取最终的中心向量作为分类的聚类中心。电子设备也可以在调整后的中心向量与上一次调整的中心向量的距离值小于第一距离值时,获取该调整后的中心向量作为分类的聚类中心。在一个实施例中,电子设备还可以在分类中所有样本向量与中心向量的距离小于第二距离值时,获取该中心向量作为分类的聚类中心。Optionally, the electronic device configures the number of classification center vectors according to the number of classifications; the classification corresponding to the center vector with the smallest distance from the sample vector is used as the classification of the sample vector; and the center vector is adjusted according to the distance between each sample vector and the center vector in the classification; According to the adjusted center vector, the classification with the center vector having the smallest distance from the sample vector as the sample vector is repeatedly performed, and the operation of adjusting the center vector according to the distance between each vector and the center vector in the classification is performed; when the number of adjustments exceeds a preset number of times, Obtain the final center vector as the clustering center for classification. The electronic device may also obtain the adjusted center vector as the clustering center when the distance between the adjusted center vector and the last adjusted center vector is smaller than the first distance value. In one embodiment, the electronic device may also obtain the center vector as the clustering center of the classification when the distance between all the sample vectors and the center vector in the classification is smaller than the second distance value.

接着,电子设备检测各个分类中聚类中心与分类向量的相似度,将相似度大于第一阈值的分类向量对应的训练图像作为分类的第一类训练图像。电子设备可以获取各个分类的聚类中心及分类中的分类向量,检测分类中的各个分类向量与该分类的聚类中心的相似度,获取相似度大于第一阈值的分类向量对应的训练图像,将该训练图像作为该分类中的第一类训练图像。Next, the electronic device detects the similarity between the clustering center and the classification vector in each classification, and uses the training image corresponding to the classification vector whose similarity is greater than the first threshold as the first type of training image for classification. The electronic device can obtain the clustering center of each classification and the classification vector in the classification, detect the similarity between each classification vector in the classification and the clustering center of the classification, and obtain the training image corresponding to the classification vector whose similarity is greater than the first threshold. This training image is used as the first type of training image in this classification.

可选地,电子设备检测各个分类中聚类中心与分类向量的距离,将距离小于预设距离的分类向量对应的训练图像作为分类中的第一类训练图像。距离计算公式可以是欧式距离计算公式、标准欧式距离计算公式、曼哈顿距离计算公式、余弦距离计算公式等不限于此。预设距离可以根据实际应用需求进行设定。电子设备通过各个分类中聚类中心与分类向量,将距离小于预设距离的分类向量对应的训练图像作为分类中的第一类训练图像。Optionally, the electronic device detects the distance between the cluster center and the classification vector in each classification, and uses the training image corresponding to the classification vector whose distance is less than a preset distance as the first type of training image in the classification. The distance calculation formula may be a European-style distance calculation formula, a standard European-style distance calculation formula, a Manhattan distance calculation formula, a cosine distance calculation formula, and the like are not limited thereto. The preset distance can be set according to actual application requirements. The electronic device uses the clustering center and the classification vector in each classification to use the training image corresponding to the classification vector whose distance is less than the preset distance as the first type of training image in the classification.

可选地,电子设备检测各个分类的聚类中心与样本向量的相似度,将与聚类中心的相似度小于第二阈值的样本向量对应的训练图像作为分类的第二类训练图像。第二阈值可以根据实际应用的需求进行设定。电子设备检测分类中的各个分类向量与该分类的聚类中心的相似度,获取相似度小于第二阈值的分类向量对应的训练图像,将该训练图像作为该分类中的第二类训练图像。Optionally, the electronic device detects the similarity between the cluster center of each classification and the sample vector, and uses the training image corresponding to the sample vector whose similarity to the cluster center is less than the second threshold as the second type of training image for classification. The second threshold can be set according to the requirements of the actual application. The electronic device detects the similarity between each classification vector in the classification and the clustering center of the classification, obtains a training image corresponding to the classification vector whose similarity is less than the second threshold, and uses the training image as the second type of training image in the classification.

可选地,电子设备采用欧式距离计算公式检测各个分类中聚类中心与分类向量的距离。电子设备可以获取欧式距离计算公式,并获取分类中的聚类中心与该分类的分类向量,通过欧式距离计算公式将聚类中心与分类向量中的各个特征值对应的代入距离计算公式中,获取聚类中心与分类向量的距离。Optionally, the electronic device uses a European-style distance calculation formula to detect the distance between the cluster center and the classification vector in each classification. The electronic device can obtain the Euclidean distance calculation formula, and obtain the cluster center in the classification and the classification vector of the classification, and use the Euclidean distance calculation formula to substitute the cluster center and each feature value in the classification vector into the distance calculation formula to obtain The distance between the cluster center and the classification vector.

应该理解的是,虽然图2、3、5、6的流程图中的各个操作按照箭头的指示依次显示,但是这些操作并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些操作的执行并没有严格的顺序限制,这些操作可以以其它的顺序执行。而且,图2、3、5、6中的至少一部分操作可以包括多个子操作或者多个阶段,这些子操作或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子操作或者阶段的执行顺序也不必然是依次进行,而是可以与其它操作或者其它操作的子操作或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the operations in the flowcharts of FIGS. 2, 3, 5, and 6 are sequentially displayed in accordance with the directions of the arrows, these operations are not necessarily performed in the order indicated by the arrows. Unless explicitly stated in this article, there is no strict order in which these operations can be performed, and these operations can be performed in other orders. Moreover, at least a part of the operations in Figs. 2, 3, 5, and 6 may include multiple sub-operations or multiple stages. These sub-operations or stages are not necessarily performed at the same time, but may be performed at different times. These The execution order of the sub-operations or stages is not necessarily performed sequentially, but may be performed in turn or alternately with at least a part of the sub-operations or stages of other operations or other operations.

图7为一个实施例图像处理装置的结构框图。如图7所示,一种图像处理装置包括向量获取模块720、聚类处理模块740、图像确定模块760。其中:FIG. 7 is a structural block diagram of an image processing apparatus according to an embodiment. As shown in FIG. 7, an image processing apparatus includes a vector acquisition module 720, a cluster processing module 740, and an image determination module 760. among them:

向量获取模块720,用于将训练图像输入到神经网络,获取神经网络激活层输出的样本向量。A vector acquisition module 720 is configured to input a training image to a neural network, and obtain a sample vector output from an activation layer of the neural network.

聚类处理模块740,用于根据分类数量对样本向量进行聚类处理,获得各个分类对应的聚类中心及分类向量。A clustering processing module 740 is configured to perform clustering processing on the sample vector according to the number of classifications to obtain a clustering center and a classification vector corresponding to each classification.

图像确定模块760,用于检测各个分类中聚类中心与分类向量的相似度,将相似度大于第一阈值的分类向量对应的训练图像作为分类的第一类训练图像。The image determination module 760 is configured to detect the similarity between the cluster center and the classification vector in each classification, and use the training image corresponding to the classification vector whose similarity is greater than the first threshold as the first type of training image for classification.

在一个实施例中,向量获取模块720还可以用于获取神经网络中倒数第二个激活层输出的样本向量。In one embodiment, the vector acquisition module 720 may be further configured to acquire a sample vector output by the penultimate activation layer in the neural network.

在一个实施例中,聚类处理模块740还可以用于根据分类数量配置分类数量个中心向量,根据样本向量与各个中心向量的距离调整各个中心向量,获取调整后的中心向量作为分类的聚类中心。In one embodiment, the cluster processing module 740 may be further configured to configure the number of classification center vectors according to the number of classifications, adjust each center vector according to the distance between the sample vector and each center vector, and obtain the adjusted center vector as the classified cluster. center.

在一个实施例中,距离处理模块740还可以用于将与样本向量距离最小的中心向量所对应的分类作为样本向量的分类,根据分类中各个样本向量与中心向量的距离调整中心向量,根据调整后的中心向量重复执行将与样本向量距离最小的中心向量作为所述样本向量的分类,根据分类中各个样本向量与中心向量的距离调整中心向量的操作,当调整次数超过预设次数时,获取最终的中心向量作为分类的聚类中心。In one embodiment, the distance processing module 740 may be further configured to use the classification corresponding to the center vector with the smallest distance to the sample vector as the classification of the sample vector, adjust the center vector according to the distance between each sample vector and the center vector in the classification, and adjust according to the adjustment. The subsequent center vector repeatedly performs the classification using the center vector with the smallest distance from the sample vector as the sample vector, and adjusts the center vector according to the distance between each sample vector and the center vector in the classification. When the number of adjustments exceeds a preset number, the operation is obtained. The final center vector is used as the classification cluster center.

在一个实施例中,图像确定模块760还可以用于检测各个分类的聚类中心与样本向量的相似度,将与聚类中心的相似度小于第二阈值的样本向量对应的训练图像作为分类的第二类训练图像。In one embodiment, the image determination module 760 may be further configured to detect the similarity between the cluster center of each classification and the sample vector, and use the training image corresponding to the sample vector whose similarity with the cluster center is less than the second threshold as the classification. The second type of training images.

在一个实施例中,图像确定模块760还可以用于检测各个分类中聚类中心与分类向量的距离,将距离小于预设距离的分类向量对应的训练图像作为分类中的第一类训练图像。In one embodiment, the image determination module 760 may be further configured to detect the distance between the cluster center and the classification vector in each classification, and use the training image corresponding to the classification vector whose distance is less than a preset distance as the first type of training image in the classification.

在一个实施例中,图像确定模块760还可以用于采用欧式距离计算公式检测各个分类中聚类中心与分类向量的距离。In one embodiment, the image determination module 760 may be further configured to detect the distance between the cluster center and the classification vector in each classification by using a European distance calculation formula.

本申请实施例提供的图像处理装置,通过将训练图像输入到神经网络,获取神经网络激活层输出的样本向量,根据分类数量对样本向量进行聚类处理,获得各个分类对应的聚类中心及分类向量,检测各个分类中聚类中心与分类向量的相似度,将相似度大于第一阈值的分类向量对应的训练图像作为分类的第一类训练图像,可以提高训练图像筛选效率。The image processing apparatus provided in the embodiment of the present application obtains a sample vector output by an activation layer of a neural network by inputting a training image to a neural network, and performs cluster processing on the sample vector according to the number of classifications to obtain a clustering center and classification corresponding to each classification. Vector, to detect the similarity between the clustering center and the classification vector in each classification, and use the training image corresponding to the classification vector whose similarity is greater than the first threshold as the first type of training image for classification, which can improve the filtering efficiency of the training image.

上述图像处理装置中各个模块的划分仅用于举例说明,在其他实施例中,可将图像处理装置按照需要划分为不同的模块,以完成上述图像处理装置的全部或部分功能。The division of each module in the above image processing apparatus is for illustration only. In other embodiments, the image processing apparatus may be divided into different modules as needed to complete all or part of the functions of the above image processing apparatus.

关于图像处理装置的具体限定可以参见上文中对于图像处理方法的限定,在此不再赘述。上述图像处理装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the image processing device, refer to the foregoing limitation on the image processing method, and details are not described herein again. Each module in the image processing apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The above-mentioned modules may be embedded in the hardware in or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

图8为一个实施例中电子设备的内部结构示意图。如图8所示,该电子设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该处理器用于提供计算和控制能力,支撑整个电子设备的运行。存储器用于存储数据、程序等,存储器上存储至少一个计算机程序,该计算机程序可被处理器执行,以实现本申请实施例中提供的适用于电子设备的图像处理方法。存储器可包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统和计算机程序。该计算机程序可被处理器所执行,以用于实现以下各个实施例所提供的一种图像处理方法。内存储器为非易失性存储介质中的操作系统计算机程序提供高速缓存的运行环境。网络接口可以是以太网卡或无线网卡等,用于与外部的电子设备进行通信。该电子设备可以是手机、电脑、平板电脑或者个人数字助理或穿戴式设备等。FIG. 8 is a schematic diagram of the internal structure of the electronic device in one embodiment. As shown in FIG. 8, the electronic device includes a processor, a memory, and a network interface connected through a system bus. The processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The memory is used to store data, programs, and the like. At least one computer program is stored on the memory, and the computer program can be executed by a processor to implement the image processing method applicable to the electronic device provided in the embodiments of the present application. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by a processor to implement an image processing method provided by each of the following embodiments. The internal memory provides a cached operating environment for operating system computer programs in a non-volatile storage medium. The network interface may be an Ethernet card or a wireless network card, and is used to communicate with external electronic devices. The electronic device may be a mobile phone, a computer, a tablet computer, or a personal digital assistant or a wearable device.

本申请实施例中提供的图像处理装置中的各个模块的实现可为计算机程序的形式。该计算机程序可在终端或服务器上运行。该计算机程序构成的程序模块可存储在终端或服务器的存储器上。该计算机程序被处理器执行时,实现本申请实施例中所描述方法的操作。The implementation of each module in the image processing apparatus provided in the embodiments of the present application may be in the form of a computer program. The computer program can be run on a terminal or a server. The program module constituted by the computer program can be stored in the memory of the terminal or server. When the computer program is executed by a processor, the operations of the method described in the embodiments of the present application are implemented.

本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行图像处理方法的操作。An embodiment of the present application further provides a computer-readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the operations of the image processing method.

一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行图像处理方法。A computer program product containing instructions that, when run on a computer, causes the computer to perform an image processing method.

本申请实施例还提供一种电子设备。上述电子设备中包括图像处理电路,图像处理电路可以利用硬件和/或软件组件实现,可包括定义ISP(Image Signal Processing,图像信号处理)管线的各种处理单元。图9为一个实施例中图像处理电路的示意图。如图9所示,为便于说明,仅示出与本申请实施例相关的图像处理技术的各个方面。An embodiment of the present application further provides an electronic device. The above electronic device includes an image processing circuit, and the image processing circuit may be implemented by using hardware and / or software components, and may include various processing units defining an ISP (Image Signal Processing) pipeline. FIG. 9 is a schematic diagram of an image processing circuit in one embodiment. As shown in FIG. 9, for ease of description, only aspects of the image processing technology related to the embodiments of the present application are shown.

如图9所示,图像处理电路包括ISP处理器940和控制逻辑器950。成像设备910捕捉的图像数据首先由ISP处理器940处理,ISP处理器940对图像数据进行分析以捕捉可用于确定和/或成像设备910的一个或多个控制参数的图像统计信息。成像设备910可包括具有一个或多个透镜912和图像传感器914的照相机。图像传感器914可包括色彩滤镜阵列(如Bayer滤镜),图像传感器914可获取用图像传感器914的每个成像像素捕捉的光强度和波长信息,并提供可由ISP处理器940处理的一组原始图像数据。传感器920(如陀螺仪)可基于传感器920接口类型把采集的图像处理的参数(如防抖参数)提供给ISP处理器940。传感器920接口可以利用SMIA(Standard Mobile Imaging Architecture,标准移动成像架构)接口、其它串行或并行照相机接口或上述接口的组合。As shown in FIG. 9, the image processing circuit includes an ISP processor 940 and a control logic 950. The image data captured by the imaging device 910 is first processed by the ISP processor 940, which analyzes the image data to capture image statistical information that can be used to determine and / or one or more control parameters of the imaging device 910. The imaging device 910 may include a camera having one or more lenses 912 and an image sensor 914. The image sensor 914 may include a color filter array (such as a Bayer filter). The image sensor 914 may obtain light intensity and wavelength information captured with each imaging pixel of the image sensor 914, and provide a set of raw data that may be processed by the ISP processor 940. Image data. The sensor 920 (such as a gyroscope) may provide parameters (such as image stabilization parameters) of the acquired image processing to the ISP processor 940 based on the interface type of the sensor 920. The sensor 920 interface may use a SMIA (Standard Mobile Imaging Architecture) interface, other serial or parallel camera interfaces, or a combination of the foregoing interfaces.

此外,图像传感器914也可将原始图像数据发送给传感器920,传感器920可基于传 感器920接口类型把原始图像数据提供给ISP处理器940,或者传感器920将原始图像数据存储到图像存储器930中。In addition, the image sensor 914 may also send the original image data to the sensor 920, and the sensor 920 may provide the original image data to the ISP processor 940 based on the interface type of the sensor 920, or the sensor 920 stores the original image data in the image memory 930.

ISP处理器940按多种格式逐个像素地处理原始图像数据。例如,每个图像像素可具有9、10、12或14比特的位深度,ISP处理器940可对原始图像数据进行一个或多个图像处理操作、收集关于图像数据的统计信息。其中,图像处理操作可按相同或不同的位深度精度进行。The ISP processor 940 processes the original image data pixel by pixel in a variety of formats. For example, each image pixel may have a bit depth of 9, 10, 12, or 14 bits, and the ISP processor 940 may perform one or more image processing operations on the original image data and collect statistical information about the image data. The image processing operations may be performed with the same or different bit depth accuracy.

ISP处理器940还可从图像存储器930接收图像数据。例如,传感器920接口将原始图像数据发送给图像存储器930,图像存储器930中的原始图像数据再提供给ISP处理器940以供处理。图像存储器930可为存储器装置的一部分、存储设备、或电子设备内的独立的专用存储器,并可包括DMA(Direct Memory Access,直接直接存储器存取)特征。The ISP processor 940 may also receive image data from the image memory 930. For example, the sensor 920 interface sends the original image data to the image memory 930, and the original image data in the image memory 930 is then provided to the ISP processor 940 for processing. The image memory 930 may be a part of a memory device, a storage device, or a separate dedicated memory in an electronic device, and may include a DMA (Direct Memory Access) feature.

当接收到来自图像传感器914接口或来自传感器920接口或来自图像存储器930的原始图像数据时,ISP处理器940可进行一个或多个图像处理操作,如时域滤波。处理后的图像数据可发送给图像存储器930,以便在被显示之前进行另外的处理。ISP处理器940从图像存储器930接收处理数据,并对所述处理数据进行原始域中以及RGB和YCbCr颜色空间中的图像数据处理。ISP处理器940处理后的图像数据可输出给显示器970,以供用户观看和/或由图形引擎或GPU(Graphics Processing Unit,图形处理器)进一步处理。此外,ISP处理器940的输出还可发送给图像存储器930,且显示器970可从图像存储器930读取图像数据。在一个实施例中,图像存储器930可被配置为实现一个或多个帧缓冲器。此外,ISP处理器940的输出可发送给编码器/解码器960,以便编码/解码图像数据。编码的图像数据可被保存,并在显示于显示器970设备上之前解压缩。编码器/解码器960可由CPU或GPU或协处理器实现。When receiving raw image data from the image sensor 914 interface or from the sensor 920 interface or from the image memory 930, the ISP processor 940 may perform one or more image processing operations, such as time-domain filtering. The processed image data may be sent to the image memory 930 for further processing before being displayed. The ISP processor 940 receives processing data from the image memory 930 and performs image data processing on the processing data in the original domain and in the RGB and YCbCr color spaces. The image data processed by the ISP processor 940 may be output to the display 970 for viewing by the user and / or further processed by a graphics engine or a GPU (Graphics Processing Unit). In addition, the output of the ISP processor 940 can also be sent to the image memory 930, and the display 970 can read image data from the image memory 930. In one embodiment, the image memory 930 may be configured to implement one or more frame buffers. In addition, the output of the ISP processor 940 may be sent to an encoder / decoder 960 to encode / decode image data. The encoded image data can be saved and decompressed before being displayed on the display 970 device. The encoder / decoder 960 may be implemented by a CPU or a GPU or a coprocessor.

ISP处理器940确定的统计数据可发送给控制逻辑器950单元。例如,统计数据可包括自动曝光、自动白平衡、自动聚焦、闪烁检测、黑电平补偿、透镜912阴影校正等图像传感器914统计信息。控制逻辑器950可包括执行一个或多个例程(如固件)的处理器和/或微控制器,一个或多个例程可根据接收的统计数据,确定成像设备910的控制参数及ISP处理器940的控制参数。例如,成像设备910的控制参数可包括传感器920控制参数(例如增益、曝光控制的积分时间、防抖参数等)、照相机闪光控制参数、透镜912控制参数(例如聚焦或变焦用焦距)、或这些参数的组合。ISP控制参数可包括用于自动白平衡和颜色调整(例如,在RGB处理期间)的增益水平和色彩校正矩阵,以及透镜912阴影校正参数。The statistical data determined by the ISP processor 940 may be sent to the control logic 950 unit. For example, the statistical data may include image information of the image sensor 914 such as auto exposure, auto white balance, auto focus, flicker detection, black level compensation, and lens 912 shading correction. The control logic 950 may include a processor and / or a microcontroller that executes one or more routines (such as firmware). The one or more routines may determine the control parameters of the imaging device 910 and the ISP processing according to the received statistical data. Parameters of the controller 940. For example, the control parameters of the imaging device 910 may include sensor 920 control parameters (such as gain, integration time for exposure control, image stabilization parameters, etc.), camera flash control parameters, lens 912 control parameters (such as focus distance for focusing or zooming), or these A combination of parameters. ISP control parameters may include gain levels and color correction matrices for automatic white balance and color adjustment (eg, during RGB processing), and lens 912 shading correction parameters.

本实施例中运用图9中图像处理技术可实现上述图像处理方法。In this embodiment, the image processing method in FIG. 9 can be used to implement the foregoing image processing method.

本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。合适的非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to memory, storage, database, or other media used in this application may include non-volatile and / or volatile memory. Suitable non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM), which is used as external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDR, SDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation manners of the present application, and their descriptions are more specific and detailed, but they should not be construed as limiting the patent scope of the present application. It should be noted that, for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of this application patent shall be subject to the appended claims.

Claims (20)

一种图像处理方法,包括:An image processing method includes: 将训练图像输入到神经网络,获取神经网络激活层输出的样本向量;Input the training image to the neural network, and obtain the sample vector output by the activation layer of the neural network; 根据分类数量对所述样本向量进行聚类处理,获得各个分类对应的聚类中心及分类向量;及Clustering the sample vector according to the number of classifications to obtain a clustering center and a classification vector corresponding to each classification; and 检测所述各个分类中聚类中心与分类向量的相似度,将所述相似度大于第一阈值的分类向量对应的训练图像作为所述分类的第一类训练图像。The similarity between the clustering center and the classification vector in each classification is detected, and the training image corresponding to the classification vector whose similarity is greater than the first threshold is used as the first type of training image for the classification. 根据权利要求1所述的方法,其特征在于,所述获取神经网络激活层输出的样本向量,包括:The method according to claim 1, wherein the acquiring a sample vector output by an activation layer of a neural network comprises: 获取神经网络中倒数第二个激活层输出的样本向量。Get the sample vector of the output of the penultimate activation layer in the neural network. 根据权利要求1所述的方法,其特征在于,所述根据分类数量对所述样本向量进行聚类处理,包括:The method according to claim 1, wherein the clustering the sample vectors according to the number of classifications comprises: 根据所述分类数量配置分类数量个中心向量;Configuring a classification number of center vectors according to the classification number; 根据所述样本向量与各个中心向量的距离调整所述各个中心向量;及Adjusting each center vector according to the distance between the sample vector and each center vector; and 获取调整后的中心向量作为分类的聚类中心。Obtain the adjusted center vector as the clustering center of classification. 根据权利要求3所述的方法,其特征在于,所述根据所述样本向量与各个中心向量的距离调整所述各个中心向量,包括:The method according to claim 3, wherein the adjusting each center vector according to a distance between the sample vector and each center vector comprises: 将与所述样本向量距离最小的中心向量所对应的分类作为所述样本向量的分类;Use the classification corresponding to the center vector with the smallest distance to the sample vector as the classification of the sample vector; 根据所述分类中各个样本向量与所述中心向量的距离调整中心向量;Adjusting a center vector according to a distance between each sample vector and the center vector in the classification; 根据所述调整后的中心向量重复执行所述将与所述样本向量距离最小的中心向量作为所述样本向量的分类,根据所述分类中各个样本向量与所述中心向量的距离调整中心向量的操作;及Repeatedly performing the classification that uses the center vector with the smallest distance from the sample vector as the sample vector according to the adjusted center vector, and adjusts the center vector according to the distance between each sample vector and the center vector in the classification Operation; and 当调整次数超过预设次数时,获取最终的中心向量作为所述分类的聚类中心。When the number of adjustments exceeds a preset number, the final center vector is obtained as the clustering center of the classification. 根据权利要求1所述的方法,其特征在于,还包括:The method according to claim 1, further comprising: 检测所述各个分类的聚类中心与样本向量的相似度;及Detecting the similarity between the cluster center of each classification and the sample vector; and 将与所述聚类中心的相似度小于第二阈值的样本向量对应的训练图像作为所述分类的第二类训练图像。A training image corresponding to a sample vector whose similarity with the clustering center is less than a second threshold is used as the classified second-type training image. 根据权利要求1所述的方法,其特征在于,还包括:The method according to claim 1, further comprising: 检测所述各个分类中聚类中心与分类向量的距离;及Detecting a distance between a clustering center and a classification vector in each of the classifications; and 将所述距离小于预设距离的分类向量对应的训练图像作为所述分类中的第一类训练图像。A training image corresponding to a classification vector whose distance is less than a preset distance is used as a first type training image in the classification. 根据权利要求6所述的方法,其特征在于,所述检测所述各个分类中聚类中心与分类向量的距离,包括:The method according to claim 6, wherein the detecting a distance between a clustering center and a classification vector in each classification comprises: 采用欧式距离计算公式检测所述各个分类中聚类中心与分类向量的距离。The Euclidean distance calculation formula is used to detect the distance between the cluster center and the classification vector in each classification. 一种电子设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如下操作:An electronic device includes a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor causes the processor to perform the following operations: 将训练图像输入到神经网络,获取神经网络激活层输出的样本向量;Input the training image to the neural network, and obtain the sample vector output by the activation layer of the neural network; 根据分类数量对所述样本向量进行聚类处理,获得各个分类对应的聚类中心及分类向量;及Clustering the sample vector according to the number of classifications to obtain a clustering center and a classification vector corresponding to each classification; and 检测所述各个分类中聚类中心与分类向量的相似度,将所述相似度大于第一阈值的分类向量对应的训练图像作为所述分类的第一类训练图像。The similarity between the clustering center and the classification vector in each classification is detected, and the training image corresponding to the classification vector whose similarity is greater than the first threshold is used as the first type of training image for the classification. 根据权利要求8所述的电子设备,其特征在于,所述处理器执行所述获取神经网络激活层输出的样本向量时,还执行如下操作:The electronic device according to claim 8, wherein when the processor executes the obtaining the sample vector output by the activation layer of the neural network, the processor further performs the following operations: 获取神经网络中倒数第二个激活层输出的样本向量。Get the sample vector of the output of the penultimate activation layer in the neural network. 根据权利要求8所述的电子设备,其特征在于,所述处理器执行所述根据分类数量对所述样本向量进行聚类处理时,还执行如下操作:The electronic device according to claim 8, wherein when the processor executes the clustering processing on the sample vectors according to the number of classifications, the processor further performs the following operations: 根据所述分类数量配置分类数量个中心向量;Configuring a classification number of center vectors according to the classification number; 根据所述样本向量与各个中心向量的距离调整所述各个中心向量;及Adjusting each center vector according to the distance between the sample vector and each center vector; and 获取调整后的中心向量作为分类的聚类中心。Obtain the adjusted center vector as the clustering center of classification. 根据权利要求10所述的电子设备,其特征在于,所述处理器执行所述根据所述样本向量与各个中心向量的距离调整所述各个中心向量时,还执行如下操作:The electronic device according to claim 10, wherein when the processor executes the adjusting each center vector according to a distance between the sample vector and each center vector, the processor further performs the following operations: 将与所述样本向量距离最小的中心向量所对应的分类作为所述样本向量的分类;Use the classification corresponding to the center vector with the smallest distance to the sample vector as the classification of the sample vector; 根据所述分类中各个样本向量与所述中心向量的距离调整中心向量;Adjusting a center vector according to a distance between each sample vector and the center vector in the classification; 根据所述调整后的中心向量重复执行所述将与所述样本向量距离最小的中心向量作为所述样本向量的分类,根据所述分类中各个样本向量与所述中心向量的距离调整中心向量的操作;及Repeatedly performing the classification that uses the center vector with the smallest distance from the sample vector as the sample vector according to the adjusted center vector, and adjusts the center vector's Operation; and 当调整次数超过预设次数时,获取最终的中心向量作为所述分类的聚类中心。When the number of adjustments exceeds a preset number, the final center vector is obtained as the clustering center of the classification. 根据权利要求8所述的电子设备,其特征在于,所述计算机程序被所述处理器执行时,使得所述处理器还执行如下操作:The electronic device according to claim 8, wherein when the computer program is executed by the processor, the processor further causes the processor to perform the following operations: 检测所述各个分类的聚类中心与样本向量的相似度;及Detecting the similarity between the cluster center of each classification and the sample vector; and 将与所述聚类中心的相似度小于第二阈值的样本向量对应的训练图像作为所述分类的第二类训练图像。A training image corresponding to a sample vector whose similarity with the clustering center is less than a second threshold is used as the classified second-type training image. 根据权利要求12所述的电子设备,其特征在于,所述计算机程序被所述处理器执行时,使得所述处理器还执行如下操作:The electronic device according to claim 12, wherein when the computer program is executed by the processor, the processor causes the processor to further perform the following operations: 检测所述各个分类中聚类中心与分类向量的距离;及Detecting a distance between a clustering center and a classification vector in each of the classifications; and 将所述距离小于预设距离的分类向量对应的训练图像作为所述分类中的第一类训练图像。A training image corresponding to a classification vector whose distance is less than a preset distance is used as a first type training image in the classification. 根据权利要求13所述的电子设备,其特征在于,所述处理器执行所述检测所述各个分类中聚类中心与分类向量的距离时,还执行如下操作:The electronic device according to claim 13, wherein when the processor executes the detecting a distance between a clustering center and a classification vector in each classification, the processor further performs the following operations: 采用欧式距离计算公式检测所述各个分类中聚类中心与分类向量的距离。The Euclidean distance calculation formula is used to detect the distance between the cluster center and the classification vector in each classification. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如下操作:A computer-readable storage medium on which a computer program is stored is characterized in that, when the computer program is executed by a processor, the following operations are performed: 将训练图像输入到神经网络,获取神经网络激活层输出的样本向量;Input the training image to the neural network, and obtain the sample vector output by the activation layer of the neural network; 根据分类数量对所述样本向量进行聚类处理,获得各个分类对应的聚类中心及分类向量;及Clustering the sample vector according to the number of classifications to obtain a clustering center and a classification vector corresponding to each classification; and 检测所述各个分类中聚类中心与分类向量的相似度,将所述相似度大于第一阈值的分类向量对应的训练图像作为所述分类的第一类训练图像。The similarity between the clustering center and the classification vector in each classification is detected, and the training image corresponding to the classification vector whose similarity is greater than the first threshold is used as the first type of training image for the classification. 根据权利要求15所述的计算机可读存储介质,其特征在于,所述处理器执行所述获取神经网络激活层输出的样本向量时,还执行:The computer-readable storage medium according to claim 15, wherein when the processor executes the obtaining the sample vector output by the activation layer of the neural network, it further executes: 获取神经网络中倒数第二个激活层输出的样本向量。Get the sample vector of the output of the penultimate activation layer in the neural network. 根据权利要求15所述的计算机可读存储介质,其特征在于,所述处理器执行所述根据分类数量对所述样本向量进行聚类处理时,还执行如下操作:The computer-readable storage medium according to claim 15, wherein when the processor performs the clustering processing on the sample vectors according to the number of classifications, the processor further performs the following operations: 根据所述分类数量配置分类数量个中心向量;Configuring a classification number of center vectors according to the classification number; 根据所述样本向量与各个中心向量的距离调整所述各个中心向量;及Adjusting each center vector according to the distance between the sample vector and each center vector; and 获取调整后的中心向量作为分类的聚类中心。Obtain the adjusted center vector as the clustering center of classification. 根据权利要求15所述的计算机可读存储介质,其特征在于,所述处理器执行所述根据所述样本向量与各个中心向量的距离调整所述各个中心向量时,还执行如下操作:The computer-readable storage medium according to claim 15, wherein when the processor executes the adjusting each center vector according to the distance between the sample vector and each center vector, the processor further performs the following operations: 将与所述样本向量距离最小的中心向量所对应的分类作为所述样本向量的分类;Use the classification corresponding to the center vector with the smallest distance to the sample vector as the classification of the sample vector; 根据所述分类中各个样本向量与所述中心向量的距离调整中心向量;Adjusting a center vector according to a distance between each sample vector and the center vector in the classification; 根据所述调整后的中心向量重复执行所述将与所述样本向量距离最小的中心向量作为所述样本向量的分类,根据所述分类中各个样本向量与所述中心向量的距离调整中心向量的操作;及Repeatedly performing the classification that uses the center vector with the smallest distance from the sample vector as the sample vector according to the adjusted center vector, and adjusts the center vector according to the distance between each sample vector and the center vector in the classification Operation; and 当调整次数超过预设次数时,获取最终的中心向量作为所述分类的聚类中心。When the number of adjustments exceeds a preset number, the final center vector is obtained as the clustering center of the classification. 根据权利要求15所述的计算机可读存储介质,其特征在于,所述处理器还执行如下操作:The computer-readable storage medium of claim 15, wherein the processor further performs the following operations: 检测所述各个分类的聚类中心与样本向量的相似度;及Detecting the similarity between the cluster center of each classification and the sample vector; and 将与所述聚类中心的相似度小于第二阈值的样本向量对应的训练图像作为所述分类的第二类训练图像。A training image corresponding to a sample vector whose similarity with the clustering center is less than a second threshold is used as the classified second-type training image. 根据权利要求15所述的计算机可读存储介质,其特征在于,所述处理器还执行如下操作:The computer-readable storage medium of claim 15, wherein the processor further performs the following operations: 检测所述各个分类中聚类中心与分类向量的距离;及Detecting a distance between a clustering center and a classification vector in each of the classifications; and 将所述距离小于预设距离的分类向量对应的训练图像作为所述分类中的第一类训练图像。A training image corresponding to a classification vector whose distance is less than a preset distance is used as a first type training image in the classification.
PCT/CN2019/087570 2018-06-28 2019-05-20 Image processing method, electronic device, and computer readable storage medium Ceased WO2020001196A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810686074.3 2018-06-28
CN201810686074.3A CN109002843A (en) 2018-06-28 2018-06-28 Image processing method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2020001196A1 true WO2020001196A1 (en) 2020-01-02

Family

ID=64600760

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/087570 Ceased WO2020001196A1 (en) 2018-06-28 2019-05-20 Image processing method, electronic device, and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN109002843A (en)
WO (1) WO2020001196A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111783900A (en) * 2020-07-10 2020-10-16 宁波方太厨具有限公司 Training method of oil smoke concentration detection model and control method of range hood gear
CN112668635A (en) * 2020-12-25 2021-04-16 浙江大华技术股份有限公司 Image archiving method, device, equipment and computer storage medium
CN114092920A (en) * 2022-01-18 2022-02-25 腾讯科技(深圳)有限公司 Model training method, image classification method, device and storage medium
CN115063622A (en) * 2022-07-01 2022-09-16 上海商汤智能科技有限公司 Clustering method, apparatus and computer-readable storage medium
CN117932337A (en) * 2024-01-17 2024-04-26 广芯微电子(广州)股份有限公司 Method and device for training neural network based on embedded platform

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109002843A (en) * 2018-06-28 2018-12-14 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment and computer readable storage medium
CN109948734B (en) * 2019-04-02 2022-03-29 北京旷视科技有限公司 Image clustering method and device and electronic equipment
CN110210535B (en) * 2019-05-21 2021-09-10 北京市商汤科技开发有限公司 Neural network training method and device and image processing method and device
CN111445304B (en) * 2020-02-26 2024-07-05 平安科技(深圳)有限公司 Information recommendation method, device, computer equipment and storage medium
CN111444366B (en) * 2020-04-10 2024-02-20 Oppo广东移动通信有限公司 Image classification method, device, storage medium and electronic equipment
CN111598012B (en) * 2020-05-19 2021-11-12 恒睿(重庆)人工智能技术研究院有限公司 Picture clustering management method, system, device and medium
CN113408670B (en) * 2021-08-17 2021-12-10 深圳电通信息技术有限公司 Image classification method and device
CN113920373B (en) * 2021-10-29 2024-06-21 平安银行股份有限公司 Object classification method, device, terminal equipment and storage medium
CN114299337A (en) * 2021-12-28 2022-04-08 银河水滴科技(北京)有限公司 Article detection method and detection system
CN114494797A (en) * 2022-01-27 2022-05-13 北京百度网讯科技有限公司 Method and apparatus for training image detection model

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104992191A (en) * 2015-07-23 2015-10-21 厦门大学 Image classification method based on deep learning feature and maximum confidence path
WO2017055878A1 (en) * 2015-10-02 2017-04-06 Tractable Ltd. Semi-automatic labelling of datasets
CN107122712A (en) * 2017-03-27 2017-09-01 大连大学 It polymerize the palmprint image recognition methods of description vectors based on convolutional neural networks and two-way local feature
CN107609541A (en) * 2017-10-17 2018-01-19 哈尔滨理工大学 A kind of estimation method of human posture based on deformable convolutional neural networks
CN108121781A (en) * 2017-12-18 2018-06-05 辽宁师范大学 Search method of related feedback images with parameter optimization is chosen based on efficient sample
CN109002843A (en) * 2018-06-28 2018-12-14 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment and computer readable storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102494987A (en) * 2011-12-13 2012-06-13 天津卓朗科技发展有限公司 Automatic category rating method for microscopic particles in nodular cast iron
CN103093235B (en) * 2012-12-30 2016-01-20 北京工业大学 A kind of Handwritten Numeral Recognition Method based on improving distance core principle component analysis
CN103473275A (en) * 2013-08-23 2013-12-25 中山大学 Automatic image labeling method and automatic image labeling system by means of multi-feature fusion
CN104765768B (en) * 2015-03-09 2018-11-02 深圳云天励飞技术有限公司 The quick and precisely search method of magnanimity face database
CN107562742B (en) * 2016-06-30 2021-02-05 江苏苏宁云计算有限公司 Image data processing method and device
CN106203525A (en) * 2016-07-18 2016-12-07 戎巍 Electronic equipment and the image processing method of application thereof and system
CN107729928B (en) * 2017-09-30 2021-10-22 百度在线网络技术(北京)有限公司 Information acquisition method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104992191A (en) * 2015-07-23 2015-10-21 厦门大学 Image classification method based on deep learning feature and maximum confidence path
WO2017055878A1 (en) * 2015-10-02 2017-04-06 Tractable Ltd. Semi-automatic labelling of datasets
CN107122712A (en) * 2017-03-27 2017-09-01 大连大学 It polymerize the palmprint image recognition methods of description vectors based on convolutional neural networks and two-way local feature
CN107609541A (en) * 2017-10-17 2018-01-19 哈尔滨理工大学 A kind of estimation method of human posture based on deformable convolutional neural networks
CN108121781A (en) * 2017-12-18 2018-06-05 辽宁师范大学 Search method of related feedback images with parameter optimization is chosen based on efficient sample
CN109002843A (en) * 2018-06-28 2018-12-14 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment and computer readable storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111783900A (en) * 2020-07-10 2020-10-16 宁波方太厨具有限公司 Training method of oil smoke concentration detection model and control method of range hood gear
CN112668635A (en) * 2020-12-25 2021-04-16 浙江大华技术股份有限公司 Image archiving method, device, equipment and computer storage medium
CN114092920A (en) * 2022-01-18 2022-02-25 腾讯科技(深圳)有限公司 Model training method, image classification method, device and storage medium
CN115063622A (en) * 2022-07-01 2022-09-16 上海商汤智能科技有限公司 Clustering method, apparatus and computer-readable storage medium
CN117932337A (en) * 2024-01-17 2024-04-26 广芯微电子(广州)股份有限公司 Method and device for training neural network based on embedded platform

Also Published As

Publication number Publication date
CN109002843A (en) 2018-12-14

Similar Documents

Publication Publication Date Title
WO2020001196A1 (en) Image processing method, electronic device, and computer readable storage medium
CN108764372B (en) Data set construction method and device, mobile terminal and readable storage medium
US11178324B2 (en) Focusing method and device, electronic device and computer-readable storage medium
US11138478B2 (en) Method and apparatus for training, classification model, mobile terminal, and readable storage medium
CN108805103B (en) Image processing method and apparatus, electronic device, computer-readable storage medium
US10896323B2 (en) Method and device for image processing, computer readable storage medium, and electronic device
WO2019233263A1 (en) Method for video processing, electronic device and computer-readable storage medium
CN108764208B (en) Image processing method and device, storage medium, electronic device
EP3937481A1 (en) Image display method and device
CN108810418B (en) Image processing method, image processing device, mobile terminal and computer readable storage medium
CN110149482A (en) Focusing method, focusing device, electronic equipment and computer readable storage medium
WO2019233393A1 (en) Image processing method and apparatus, storage medium, and electronic device
WO2019233266A1 (en) Image processing method, computer readable storage medium and electronic device
CN110580487A (en) Neural network training method, construction method, image processing method and device
WO2019237887A1 (en) Image processing method, electronic device, and computer readable storage medium
WO2019233392A1 (en) Image processing method and apparatus, electronic device, and computer-readable storage medium
CN111881849A (en) Image scene detection method, device, electronic device and storage medium
CN108961302A (en) Image processing method, image processing device, mobile terminal and computer readable storage medium
CN108875820A (en) Information processing method and device, electronic equipment, computer readable storage medium
CN108959462A (en) Image processing method and device, electronic equipment, computer readable storage medium
CN108764321B (en) Image recognition method and device, electronic equipment and storage medium
WO2023125750A1 (en) Image denoising method and apparatus, and storage medium
CN108717530A (en) Image processing method, device, computer readable storage medium and electronic equipment
WO2022183321A1 (en) Image detection method, apparatus, and electronic device
CN108848306B (en) Image processing method and apparatus, electronic device, computer-readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19825385

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19825385

Country of ref document: EP

Kind code of ref document: A1