Image processing method and device, equipment and storage medium

By performing feature extraction, weighting processing and immune optimization on the image information in gesture interaction technology, the problems of low extraction accuracy and clustering redundancy in the existing technology are solved, and the accuracy of gesture interaction and the real-time nature of somatosensory interaction are improved.

CN118823398APending Publication Date: 2024-10-22TCL TECHNOLOGY GROUP CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310420309.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-18
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

In the existing gesture interaction technology, the key frame extraction method cannot fully utilize the original image data features in the action image sequence, resulting in low extraction accuracy. The clustering algorithm is redundant and difficult to determine the number and center of clusters, which affects the interaction accuracy.

Method used

By obtaining the image information to be processed, feature extraction and information weighting processing are performed, using covariance matrices and feature vectors for dimensionality reduction, weighting information based on the amount of posture information and information contribution rate, and using immune processing and clustering optimization to extract target image information. .

Benefits of technology

It improves the attention to posture information in the image processing process, reduces clustering redundancy, and improves the accuracy of image key information extraction and the accuracy of somatosensory interaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118823398A_ABST
    Figure CN118823398A_ABST
Patent Text Reader

Abstract

The invention provides an image processing method and device, equipment and a storage medium. The method comprises the steps of obtaining to-be-processed image information; performing feature extraction and information weighting processing on the to-be-processed image information to obtain image feature information; and clustering and optimizing the image feature information to obtain target image information. According to the technical scheme, accurate positioning extraction of the image key information can be realized, so that the extraction accuracy of the image key information is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of machine interaction technology, and in particular to an image processing method, apparatus, device and storage medium. Background Art

[0002] At present, with the rapid development of artificial intelligence technology and smart terminals, the control and interaction scenarios of smart terminals are becoming more and more diversified. Through somatosensory interaction, it is possible to interact with smart terminals more naturally and enrich the interactive experience. In the existing posture interaction process, the key image information of the human body posture is extracted and identified to achieve interactive operations. However, the existing key frame extraction method cannot fully utilize the original image data features in the action image sequence during the extraction process, and there is a lot of redundancy in the key frame extraction in the clustering algorithm, and it is difficult to determine the number and center of clusters, resulting in the inability to accurately locate and extract the key information of the image, resulting in low extraction accuracy of the key image information in the action image sequence, resulting in low interaction accuracy of subsequent somatosensory interaction. Summary of the invention

[0003] The embodiments of the present application provide an image processing method, apparatus, device and storage medium, which aim to solve the technical problem of low accuracy in extracting key information from images in gesture interaction scenarios in the prior art.

[0004] On the one hand, an embodiment of the present application provides an image processing method, the image processing method comprising the following steps:

[0005] Obtaining image information to be processed;

[0006] Performing feature extraction and information weighting processing on the image information to be processed to obtain image feature information;

[0007] The image feature information is clustered and optimized to obtain target image information.

[0008] In a possible implementation of the present application, the step of obtaining the image information to be processed includes:

[0009] In response to an image processing request, obtaining the image information to be processed in the image processing request and the original image matrix of the image information to be processed;

[0010] Inputting the original image matrix into a preset covariance function to obtain a covariance matrix corresponding to the original image matrix;

[0011] Performing eigendecomposition on the covariance matrix to obtain eigenvalues ​​of the covariance matrix and eigenvectors corresponding to the eigenvalues;

[0012] Calculate the cumulative variance contribution rate of the eigenvalue according to the eigenvector and the preset number of samples, and perform dimensionality reduction processing on the original image matrix according to the cumulative variance contribution rate and the preset dimensionality reduction parameter to obtain a first image matrix;

[0013] A second image matrix of the image information to be processed is obtained, and information weighting processing is performed on the first image matrix according to the second image matrix to obtain image feature information.

[0014] In a possible implementation of the present application, obtaining a second image matrix of the image information to be processed, and performing information weighting processing on the first image matrix according to the second image matrix to obtain image feature information includes:

[0015] Acquire image features of the image information to be processed, and the probability of posture information corresponding to the image features;

[0016] Calculating the posture information amount of the image feature according to the posture information probability, and summarizing the posture information amount to obtain the total posture information amount of the image information to be processed;

[0017] Calculating the information contribution rate of the image feature according to the posture information amount and the total posture information amount;

[0018] Inputting the information contribution into a preset diagonal matrix function to obtain a second image matrix of the image information to be processed;

[0019] The first image matrix is ​​subjected to information weighting processing according to the second image matrix to obtain image feature information.

[0020] In a possible implementation of the present application, clustering and optimizing the image feature information to obtain target image information includes:

[0021] Collecting matrix row samples of each row in the image feature information, and summarizing the matrix row samples of each row to obtain an initial sample class of the image feature information;

[0022] Calculating the cosine similarity of each matrix sample in the initial sample class, and converting the cosine similarity into a class affinity of the initial sample class;

[0023] Performing immunization on the initial sample class according to the class affinity to obtain a target sample class;

[0024] The cluster center of the image feature information is calculated according to the target sample class, and the target image information of the image information to be processed is extracted according to the cluster center.

[0025] In a possible implementation of the present application, the initial sample class is subjected to immunization according to the class affinity to obtain a target sample class, including:

[0026] Acquire an initial sample class whose class affinity in the image feature information is greater than a preset affinity threshold, and obtain an antibody sample class;

[0027] Filtering the initial sample classes whose class affinity is less than a preset inhibition rate in the antibody sample classes, and cloning the filtered antibody sample classes according to a preset cloning probability to obtain cloned sample classes;

[0028] Performing sample transformation on the initial sample class according to a preset crossover probability and a preset mutation probability to obtain a transformed sample class;

[0029] The updated affinity of the transformed sample class is calculated, and if the updated affinity is less than a preset immune affinity threshold, the transformed sample class is set as a target sample class of the image information to be processed.

[0030] In a possible implementation of the present application, calculating the cluster center of the target sample class and extracting the target image information in the target sample class according to the cluster center includes:

[0031] Acquire each cluster image of the target sample class in the image feature information, calculate the average value of each cluster image, and obtain the cluster center of the image feature information;

[0032] Calculating the distance parameter between each of the cluster images and the cluster center, and extracting the cluster image with the smallest distance parameter in the target sample class;

[0033] The cluster image with the smallest distance parameter in the target sample class is set as the target image information of the image information to be processed.

[0034] In a possible implementation of the present application, after calculating the cluster center of the target sample class and extracting the target image information in the target sample class according to the cluster center, the method further includes:

[0035] Collecting motion posture features in the target image information, inputting the motion posture features into a preset posture recognition model for posture classification, and obtaining a posture recognition result;

[0036] Accessing a gesture interaction database, acquiring a target interaction operation associated with the gesture recognition result, and executing the target interaction operation.

[0037] On the other hand, the present application provides an image processing device, the image processing device comprising:

[0038] An image extraction module is configured to obtain image information to be processed;

[0039] A feature extraction module is configured to perform feature extraction and information weighting processing on the image information to be processed to obtain image feature information;

[0040] The feature clustering module is configured to perform clustering and optimization processing on the image feature information to obtain target image information.

[0041] On the other hand, the present application also provides an image processing device, the image processing device comprising:

[0042] one or more processors;

[0043] Memory; and

[0044] One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the steps of the image processing method.

[0045] On the other hand, the present application also provides a computer-readable storage medium on which a computer program is stored, and the computer program is loaded by a processor to execute the steps in the image processing method.

[0046] In the present application, the image information to be processed is obtained, and the image information to be processed is subjected to feature extraction and information weighting processing to obtain image feature information that fully utilizes the original image information; and the image feature information is subjected to clustering and immune optimization processing to obtain the target image information. When extracting the target image frame of the image sequence, the original image data is introduced to weight the information amount of the feature extraction matrix, thereby increasing the attention to the posture information in the image processing process, and immune processing is introduced in the clustering process to reduce clustering redundancy, thereby improving the accuracy of image processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0048] Figure 1 A schematic diagram of a scene of an image processing method according to an embodiment of the present application;

[0049] Figure 2 A schematic diagram of a flow chart of an embodiment of an image processing method in an embodiment of the present application;

[0050] Figure 3A schematic flow chart of an embodiment of determining a target sample class in calculating image feature information and extracting a cluster center according to the target sample class in an image processing method provided in an embodiment of the present application;

[0051] Figure 4 A schematic flow chart of an embodiment of performing immune processing in the image processing method provided in an embodiment of the present application;

[0052] Figure 5 A schematic diagram of a flow chart of an embodiment of gesture interaction in the image processing method provided in an embodiment of the present application;

[0053] Figure 6 A schematic diagram of the structure of an embodiment of an image processing device provided in an embodiment of the present application;

[0054] Figure 7 A schematic diagram of the structure of an embodiment of an image processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0056] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0057] In this application, the word "exemplary" is used to mean "serving as an example, illustration, or illustration." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any person skilled in the art to implement and use the invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the invention can be implemented without using these specific details. In other instances, well-known structures and processes are not elaborated in detail to avoid obscuring the description of the invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in this application.

[0058] At present, with the rapid development of artificial intelligence technology and smart terminals, the control and interaction scenarios of smart terminals are becoming more and more diversified. Through somatosensory interaction, it is possible to interact with smart terminals more naturally and enrich the interactive experience. In the existing posture interaction process, the key image information of the human body posture is extracted and identified to achieve interactive operations. However, the existing key frame extraction method cannot fully utilize the original image data features in the action image sequence during the extraction process, and there is a lot of redundancy in the key frame extraction in the clustering algorithm, and it is difficult to determine the number and center of clusters, resulting in the inability to accurately locate and extract the key information of the image, resulting in low extraction accuracy of the key image information in the action image sequence, resulting in low interaction accuracy of subsequent somatosensory interaction.

[0059] Based on this, the present application proposes an image processing method, apparatus, device and computer-readable storage medium to solve the technical problem of low accuracy in extracting key image information in gesture interaction scenarios in the prior art.

[0060] The image processing method in the embodiment of the present invention is applied to an image processing apparatus, and the image processing apparatus is arranged in an image processing device. The image processing device is provided with one or more processors, a memory, and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the image processing method; wherein the image processing device can be an intelligent terminal, such as a mobile phone, a tablet computer, a network device, and a smart computer; optionally, the image processing device can also be a server, or a service cluster composed of multiple servers.

[0061] like Figure 1 As shown, Figure 1 This is a scene diagram of the image processing method of an embodiment of the present application. The image processing scene in the embodiment of the present invention includes an image processing device 100 (an image processing apparatus is integrated in the image processing device 100), and a computer-readable storage medium corresponding to the image processing method runs in the image processing device 100 to execute the steps of the image processing method.

[0062] Understandably, Figure 1 The image processing equipment in the image processing method scenario shown, or the devices included in the image processing equipment, do not constitute a limitation on the embodiments of the present invention, that is, the number of devices and types of devices of the image processing equipment included in the image processing method scenario, or the number of devices and types of devices included in each device do not affect the overall implementation of the technical solution in the embodiments of the present invention, and can all be regarded as equivalent replacements or derivatives of the technical solution claimed to be protected in the embodiments of the present invention.

[0063] The image processing device 100 in the embodiment of the present invention is mainly used to: obtain image information to be processed;

[0064] Performing feature extraction and information weighting processing on the image information to be processed to obtain image feature information;

[0065] The image feature information is clustered and optimized to obtain target image information.

[0066] The image processing device 100 in the embodiment of the present invention can be an independent image processing device, such as a mobile phone, a tablet computer, a network device, a server, a smart terminal such as a smart computer, or an image processing network or an image processing cluster composed of multiple image processing devices.

[0067] The embodiments of the present application provide an image processing method, apparatus, device, and computer-readable storage medium, which are described in detail below.

[0068] It can be understood by those skilled in the art that Figure 1 The application environment shown in is only one of the application scenarios related to the present application solution and does not constitute a limitation on the application scenario of the present application solution. Other application environments may also include Figure 1 More or fewer image processing devices, or image processing network connections, as shown, for example Figure 1 Only one image processing device is shown in the figure. It can be understood that the scenario of the image processing method can also include one or more image processing devices, which is not limited here. The image processing device 100 can also include a memory for storing image information to be processed and other data.

[0069] It should be noted that Figure 1 The scene diagram of the image processing method shown is only an example. The scene of the image processing method described in the embodiment of the present invention is to more clearly illustrate the technical solution of the embodiment of the present invention, and does not constitute a limitation on the technical solution provided by the embodiment of the present invention.

[0070] Based on the scenario of the above-mentioned image processing method, various embodiments of the image processing method disclosed in the present invention are proposed.

[0071] like Figure 2 As shown, Figure 2 This is a flow chart of an embodiment of an image processing method in an embodiment of the present application. The image processing method includes the following steps 201 to 203:

[0072] 201. Obtain image information to be processed;

[0073] The image processing method in this embodiment is applied to an image processing device, and the type and number of the image processing device are not specifically limited, that is, the image processing device can be one or more intelligent terminals or servers. In a specific embodiment, the image processing device is a smart computer.

[0074] Specifically, the image processing device is configured to perform dimensionality reduction according to the eigenvalues ​​and eigenvectors of the image information to be processed to generate a first image matrix, and obtain the posture information amount and information contribution of the original image data features carrying the image information to be processed to generate a second image matrix, and perform information fusion on the first image matrix through the second image matrix, and extract the target image information of the image information to be processed according to the fused image feature information, so that the extracted target image information contains more posture information to improve the extraction accuracy.

[0075] Specifically, during operation, the image processing device responds to an image processing request, wherein the image processing request is an operation instruction that carries the image information to be processed and drives the image processing device to extract key frames containing user gestures and movements from the image information to be processed. Optionally, the triggering method of the image processing request is not specifically limited here, that is, the image processing request can be actively triggered by the user, for example, the user inputs the image information to be processed into the image processing device and clicks the image processing button of the image processing device to actively trigger the image processing request. Optionally, the image processing request can also be automatically triggered by the image processing device, for example, the image processing device pre-sets the image processing process, starts the camera module under preset conditions, collects the user's image information to be processed, and triggers the image processing request.

[0076] Specifically, after receiving the image processing request, the image processing device parses the image processing request and obtains the image information to be processed carried in the image processing request, wherein the image information to be processed may be an action video containing a specific action or an image sequence composed of several action images.

[0077] 202. Perform feature extraction and information weighting processing on the image information to be processed to obtain image feature information;

[0078] Specifically, after acquiring the image information to be processed, the image processing device performs principal component analysis on the image information to be processed to obtain a first image matrix of the image information to be processed, wherein the first image matrix is ​​an image matrix obtained by performing principal component analysis on the image information to be processed and carries the characteristics of the image information to be processed.

[0079] Specifically, after acquiring the image information to be processed, the image processing device collects the grayscale values ​​of each target image in the image information to be processed, summarizes the grayscale values ​​of each image, generates an image vector of the target image, and generates an original image matrix of the image information to be processed through each target image. Optionally, in a specific embodiment, the image information to be processed includes m target images, each target image includes n grayscale values, the image processing device sets the grayscale values ​​as vector elements, generates an image vector of each target image, and generates an original image matrix of the image information to be processed according to each image vector, and the original image matrix is ​​a matrix of size m*n.

[0080] Specifically, after acquiring the original image matrix, the image processing device inputs the original image matrix into a preset covariance function to obtain a covariance matrix corresponding to the original image matrix, wherein the preset covariance function expression is as follows:

[0081]

[0082] After obtaining the covariance matrix of the target image matrix, the image processing device performs eigendecomposition on the covariance, solves the eigenvalues ​​of the covariance matrix, and calculates the eigenvectors corresponding to the eigenvalues. Specifically, the calculation formula is as follows:

[0083] λ i x i =C*x i

[0084] Among them, λ i is the eigenvalue, x i is the eigenvector, and C is the covariance matrix.

[0085] After obtaining the eigenvalues ​​and eigenvectors, the image processing device arranges the eigenvalues ​​in descending order, and calculates the cumulative variance contribution rate of the eigenvalues ​​based on the vectors and the preset number of samples. Specifically, the calculation formula is as follows:

[0086]

[0087] Among them, p i That is, the cumulative variance contribution rate of the eigenvalue, n is the preset number of samples, λ j is the characteristic value.

[0088] After obtaining the cumulative variance contribution rate of each eigenvalue, the image processing device performs dimensionality reduction processing on the original image matrix according to the cumulative variance contribution rate and preset dimensionality reduction parameters, thereby generating a first image matrix of the image information to be processed.

[0089] Specifically, the image processing device sorts each eigenvalue in descending order according to the cumulative variance contribution rate, and selects the target eigenvalue corresponding to the preset dimension reduction parameter to perform a linear transformation on the original image matrix to generate a first image matrix of the image information to be processed. Specifically, the transformation formula is as follows:

[0090] Y=P*[x1,x2,…,x k ]

[0091] Among them, Y is the first image matrix, P is the original image matrix, and k is the preset dimensionality reduction parameter.

[0092] After acquiring the first image matrix, the image processing device further corrects the first image matrix by using the Shannon information so that the extracted image features contain more posture information.

[0093] Specifically, the image processing device also introduces information quantity theory in the feature extraction process of the image information to be processed, and generates a second image matrix of the image information to be processed according to the posture information quantity and information quantity contribution rate of the image information to be processed.

[0094] Specifically, after acquiring the image information to be processed, the image processing device collects image features of the image information to be processed, and obtains the posture information probability of each image feature according to the image probability distribution of the image information to be processed, wherein the posture information probability is the probability of carrying human body posture information in the characterization image feature.

[0095] After acquiring the image features and the corresponding posture information probabilities, the image processing device also calculates the posture information amount of the image features according to the posture information probability, and summarizes each posture information amount to obtain the total posture information amount of the image information to be processed. Optionally, the posture information amount calculation formula is as follows:

[0096] I i = -log2h i (i=1,2,…,n)

[0097] Among them, I i is the amount of posture information, h i is the probability of posture information.

[0098] Specifically, after acquiring the posture information amount and the total posture information amount, the image processing device calculates the information amount contribution rate of each image feature according to the posture information amount and the total posture information amount, that is, the image processing device compares the posture information amount of the image feature with the total posture information amount to obtain the information amount contribution rate of each image feature. The information amount contribution rate is a parameter that characterizes the proportion of the posture information amount carried in the target image.

[0099] After obtaining the information contribution rate of each image feature, the image processing device inputs the information contribution rate into a preset diagonal matrix function to obtain a second image matrix of the image information to be processed, wherein the diagonal matrix function is a matrix function in which the elements other than the main diagonal are 0; the second image matrix is ​​an image feature matrix that carries the information amount of the original image features of the image information to be processed. Specifically, the expression of the second image matrix is ​​as follows:

[0100] W=diag[w1,w2,…,w k ]

[0101] Where W is the second image matrix, w1,w2,…,w k is the information contribution rate.

[0102] After acquiring the second image matrix, the image processing device performs information fusion on the first image matrix according to the second image matrix to obtain image feature information fused with the posture information of the image information to be processed.

[0103] Specifically, the image processing device performs weighted correction on the first image matrix by the second image matrix to obtain image feature information. Specifically, the expression of the image feature information is as follows:

[0104] Y * =YW

[0105] Among them, Y * is the image feature information, Y is the first image matrix, and W is the second image matrix.

[0106] Optionally, after obtaining the image feature information, the image processing device also performs immune processing on the image feature information, and performs image processing based on the immune-processed image feature information, in order to avoid the problem that subsequent clustering extraction of target image information may fall into a local optimal solution, resulting in a long calculation time and difficulty in determining the cluster center.

[0107] 203. Cluster and optimize the image feature information to obtain target image information.

[0108] Specifically, after acquiring the image feature information, the image processing device calculates the cluster center of the image feature information, and extracts the target image information of the image information to be processed according to the cluster center.

[0109] Specifically, the image processing device obtains each target sample class in the image feature information, wherein the image sample class whose affinity of the target sample class is less than a preset immune affinity threshold. The image processing device obtains cluster images in each target sample class, calculates the average value between each cluster image, and sets the average value as the cluster center of the image feature information.

[0110] Specifically, after obtaining the cluster center of the image feature information, the image processing device calculates the distance parameter between each cluster image in each target sample class and the cluster center, and extracts the cluster image with the smallest distance parameter in the target sample class, and sets the cluster image with the smallest distance parameter in the target sample class as the target image information of the image information to be processed, wherein the target image information is a key image frame carrying representative posture and action information in the image information to be processed.

[0111] Specifically, after acquiring the target image information of the target image, the image processing device performs the interactive operation corresponding to the target image information.

[0112] In this embodiment, the image processing device obtains the image information to be processed, performs feature extraction and information weighting processing on the image information to be processed, obtains image feature information that fully utilizes the original image information, and performs clustering and immune optimization processing on the image feature information to obtain target image information. When extracting the target image frame of the image sequence, the original image data is introduced to weight the information amount of the feature extraction matrix, thereby increasing the attention to the posture information in the image processing process, and immune processing is introduced in the clustering process to reduce clustering redundancy, thereby improving the accuracy of image processing.

[0113] like Figure 3 As shown, Figure 3 The present invention provides an image processing method for calculating image feature information to determine a target sample class and extracting a cluster center according to the target sample class. Specifically, the method includes steps 301 to 304:

[0114] 301. Collect matrix row samples of each row in the image feature information, and summarize the matrix row samples of each row to obtain an initial sample class of the image feature information;

[0115] Based on the above embodiments, in this embodiment, after acquiring the image feature information of the image information to be processed, the image processing device also performs immune processing on the image feature information to obtain the target sample class of the image feature information, and extracts the target image information of the image information to be processed according to the target sample class.

[0116] Specifically, the image processing device obtains the matrix row samples of each row in the image feature information, and summarizes the matrix row samples of each row to obtain the initial sample class of the image feature information, that is, the elements in the initial sample class are the matrix row sample images of the corresponding matrix rows in the image feature information.

[0117] 302. Calculate the cosine similarity of each matrix sample in the initial sample class, and convert the cosine similarity into a class affinity of the initial sample class;

[0118] Specifically, after acquiring each initial sample class of the image feature information, the image processing device calculates the class affinity of each initial sample class. The image processing device compares the matrix samples in each initial sample class with other matrix samples in the initial sample class to obtain the cosine similarity between each matrix sample, and calculates the class affinity of the initial sample class through the cosine similarity.

[0119] Specifically, the calculation formula for the cosine similarity between the matrix samples is as follows:

[0120]

[0121] Among them, sim is cosine similarity, a and b are different matrix samples.

[0122] Specifically, after obtaining the cosine similarity, the image processing device calculates the class affinity of the initial sample class according to the cosine similarity. Specifically, the calculation formula of the class affinity f is as follows:

[0123]

[0124] 303. Performing immunization on the initial sample class according to the class affinity to obtain a target sample class;

[0125] Specifically, after obtaining the class affinity of the initial sample class, the image processing device also performs immunization processing on the initial sample class according to the class affinity to obtain the target sample class, thereby avoiding premature convergence of the algorithm in the subsequent clustering process and preventing excessive homogeneity of the samples.

[0126] Specifically, after obtaining the initial sample class and the corresponding class affinity, the image processing device performs operations such as antibody selection, antibody inhibition, antibody cloning, antibody poorness and antibody mutation on the initial sample class according to the class affinity to obtain a significantly evolved target sample class.

[0127] 304. Calculate a cluster center of the image feature information according to the target sample class, and extract target image information of the image information to be processed according to the cluster center.

[0128] Specifically, after acquiring the target sample class, the image processing device also acquires cluster images in the target sample class, calculates an average value between each cluster image, and sets the average value as the cluster center of the image feature information.

[0129] Specifically, after obtaining the cluster center of the image feature information, the image processing device calculates the distance parameter between each cluster image in each target sample class and the cluster center, and extracts the cluster image with the smallest distance parameter in the target sample class, and sets the cluster image with the smallest distance parameter in the target sample class as the target image information of the image information to be processed, wherein the target image information is an image frame carrying representative posture and action information in the image information to be processed.

[0130] In this embodiment, the image processing device collects matrix row samples of each row in the image feature information, summarizes the matrix row samples of each row to obtain the initial sample class of the image feature information; calculates the cosine similarity of each matrix sample in the initial sample class, and converts the cosine similarity into the class affinity of the initial sample class; performs immune processing on the initial sample class according to the class affinity to obtain the target sample class; calculates the cluster center of the image feature information according to the target sample class, and extracts the target image information of the image information to be processed according to the cluster center. The target image information is quickly extracted through affinity and immune hierarchical clustering, which reduces the image processing time and improves the real-time performance of somatosensory interaction.

[0131] like Figure 4 As shown, Figure 4 This is a flow chart of an embodiment of immune optimization in the image processing method provided in the embodiment of the present application, specifically, including steps 401 to 404:

[0132] 401. Acquire an initial sample class whose class affinity in the image feature information is greater than a preset affinity threshold, and obtain an antibody sample class;

[0133] Based on the above embodiment, in this embodiment, after acquiring each initial sample class and the class affinity of each initial sample class in the image feature information, the image processing device performs antibody selection processing on the initial sample class to obtain an antibody sample class.

[0134] Specifically, the image processing device compares the class affinity of each initial sample class with a preset affinity threshold, and generates an antibody sample class according to the comparison result.

[0135] Specifically, the image processing device arranges each initial sample according to the size of the class affinity, and compares the affinity with a preset affinity threshold, obtains the initial sample class whose class affinity in the image feature information is greater than the preset affinity threshold, and sets the initial sample class whose class affinity is greater than the preset affinity threshold as the antibody sample class.

[0136] 402. Filtering the initial sample classes whose class affinity is less than a preset inhibition rate in the antibody sample classes, and performing sample cloning on the filtered antibody sample classes according to a preset cloning probability to obtain cloned sample classes;

[0137] Specifically, the image processing device also pre-sets a preset inhibition rate, and filters the initial sample class in the antibody sample class by the preset inhibition rate. That is, the image processing device compares the class affinity of the initial sample class with the preset inhibition rate, and filters the antibody sample class according to the comparison result. Among them, the preset inhibition rate is the minimum affinity of the preset antibody sample class. Optionally, in a specific embodiment, in order to improve processing efficiency, the preset inhibition rate can also be increased according to actual application requirements.

[0138] Optionally, if the class affinity of the initial sample class is greater than the preset suppression rate, the image processing device determines that the initial sample class is an initial sample class that does not require filtering, and the image processing device retains the initial sample class.

[0139] Optionally, if the class affinity of the initial sample class is less than the preset suppression rate, the image processing device determines that the initial sample class is an initial sample class that needs to be filtered, and the image processing device deletes the initial sample class.

[0140] Specifically, after filtering the antibody sample class, the image processing device also clones the filtered antibody sample class according to a preset cloning probability to obtain a sample clone class, wherein the sample clone class is the antibody sample class after antibody cloning, so that the sample size of the sample clone class remains the same as the sample size of the antibody sample class before filtering or is slightly smaller than the sample size of the antibody sample class. The preset cloning probability is a probability parameter pre-set to ensure the sample size.

[0141] 403. Perform sample transformation on the initial sample class according to a preset crossover probability and a preset mutation probability to obtain a transformed sample class;

[0142] Specifically, after obtaining the cloned sample class, the image processing device also randomly changes the samples of the initial sample class according to a preset crossover probability and a preset mutation probability to obtain a transformed sample class.

[0143] Specifically, the image processing device randomly selects several element columns from the initial sample class according to a preset crossover probability, and randomly exchanges the elements by column to obtain an initial transformation class. Optionally, the preset crossover probability can be a fixed probability parameter that is pre-set and has a value range of 0.4 to 0.99. In a specific embodiment, each row of samples in the initial sample class is in the form of a vector, and a random number from 0 to 1 is generated for the position of each element in the vector. If the random number is less than the preset crossover probability, a crossover operation is performed on the element position.

[0144] Specifically, the image processing device further performs a class mutation operation on the initial transformation class according to a preset mutation probability, that is, randomly generates a corresponding random number for each element in the initial transformation class, and if the random number is less than the preset transformation class, the class vector element less than the preset mutation probability is changed to 0 to obtain a transformation sample class. Optionally, the preset mutation probability has a value range of 0.0001 to 0.1.

[0145] 404. Calculate the updated affinity of the clone sample class and the transformed sample class. If the updated affinity is less than a preset immune affinity threshold, set the transformed sample class and / or the clone sample class as the target sample class of the image information to be processed.

[0146] Specifically, after obtaining the transformed sample class, the image processing device also calculates the updated affinity of the cloned sample class and the transformed sample class, and compares the updated affinity with a preset immune affinity threshold, and obtains the target sample class of the image information to be processed according to the comparison result. The updated affinity is the current class affinity of the transformed sample class.

[0147] Optionally, if the updated affinity is greater than the immune affinity threshold, the image processing device determines that the degree of transformation of the clone sample class or the transformed sample class corresponding to the updated affinity does not meet the subsequent clustering requirements, and the image processing device re-immunizes the variant sample class.

[0148] Optionally, if the update affinity is less than the immune affinity threshold, the image processing device determines that the transformed sample class corresponding to the update affinity has evolved significantly, and the image processing device sets the clone sample class or transformed sample class whose update affinity is less than the immune affinity threshold as the target sample class for image information to be processed.

[0149] Specifically, after acquiring the target sample class, the image processing device calculates the cluster center of the target sample class, and extracts the target image information of the image information to be processed according to the cluster center.

[0150] In this embodiment, the image processing device obtains the antibody sample class by obtaining the initial sample class whose class affinity is greater than the preset affinity threshold in the image feature information; filters the initial sample class whose class affinity is less than the preset inhibition rate in the antibody sample class, and clones the filtered antibody sample class according to the preset cloning probability to obtain the cloned sample class; performs sample transformation on the initial sample class according to the preset crossover probability and the preset mutation probability to obtain the transformed sample class; calculates the updated affinity of the transformed sample class, and if the updated affinity is less than the preset immune affinity threshold, sets the transformed sample class as the target sample class of the image information to be processed. The immune processing of the image feature information is realized to prevent excessive homogeneity of the samples and improve the extraction speed of the target image frame.

[0151] like Figure 5 As shown, Figure 5 This is a flow chart of an embodiment of gesture interaction in the image processing method provided in the embodiment of the present application, specifically, including steps 501 to 502:

[0152] 501. Collect motion posture features in the target image information, input the motion posture features into a preset posture recognition model to perform posture classification, and obtain a posture recognition result;

[0153] Based on the above embodiments, in this embodiment, after acquiring the target image information in the image information to be processed, the image processing device performs gesture recognition on the target image information to obtain a gesture recognition result.

[0154] Specifically, the image processing device pre-sets a posture recognition model for recognizing user posture. After acquiring the target image information, the image processing device inputs the target image information into the feature extraction module in the posture recognition model for feature extraction to obtain the motion posture features in the target image information.

[0155] Specifically, after acquiring the motion posture feature in the target image information, the image processing device also inputs the motion posture feature into the posture classification module in the posture recognition model for posture classification to obtain a posture recognition result. The posture recognition result is a posture classification result corresponding to the motion posture feature. Optionally, the posture recognition result includes body recognition results such as dance posture recognition results and hand gesture recognition results.

[0156] 502. Access a gesture interaction database, obtain a target interaction operation associated with the gesture recognition result, and execute the target interaction operation.

[0157] Specifically, after obtaining the gesture classification result corresponding to the target image information, the image processing device accesses the gesture interaction database, obtains the target interaction operation associated with the gesture recognition result, and executes the target interaction operation.

[0158] Specifically, the image processing device pre-stores target interaction actions corresponding to different posture classification results. Optionally, the target interaction action may be to control a specific device to perform a corresponding operation or to evaluate the posture classification result.

[0159] Optionally, in a specific embodiment, the posture classification result is an improvisational dance, which is a series of randomly generated movements without a fixed template. The target interactive action is to drive a preset dance scoring model to evaluate the dance key frames corresponding to the improvisational dance, and output the corresponding dance scores in real time to improve the user's interactive experience.

[0160] Optionally, in other embodiments, the posture classification result may be a hand gesture action, and the image processing device obtains an operation instruction corresponding to the hand gesture interaction action in a posture interaction database, and drives the target device to execute the operation instruction.

[0161] In this embodiment, the image processing device collects the motion posture features in the target image information, inputs the motion posture features into a preset posture recognition model for posture classification, obtains the posture recognition result, accesses the posture interaction database, obtains the target interaction operation associated with the posture recognition result, and executes the target interaction operation, so as to accurately identify the user's interaction posture and execute the corresponding operation according to the interaction posture in real time.

[0162] In order to better implement the image processing method in the embodiment of the present application, based on the image processing method, an image processing device is also provided in the embodiment of the present application, such as Figure 6 As shown, Figure 6 The following is a schematic diagram of the structure of an embodiment of an image processing device provided in an embodiment of the present application. Specifically, the image processing device 600 includes:

[0163] The image extraction module 601 is configured to obtain image information to be processed;

[0164] The feature extraction module 602 is configured to perform feature extraction and information weighting processing on the image information to be processed to obtain image feature information;

[0165] The feature clustering module 603 is configured to perform clustering and optimization processing on the image feature information to obtain target image information.

[0166] In a possible implementation of this embodiment, the image processing apparatus obtains image information to be processed, including:

[0167] In response to an image processing request, obtaining the image information to be processed in the image processing request and the original image matrix of the image information to be processed;

[0168] Inputting the original image matrix into a preset covariance function to obtain a covariance matrix corresponding to the original image matrix;

[0169] Performing eigendecomposition on the covariance matrix to obtain eigenvalues ​​of the covariance matrix and eigenvectors corresponding to the eigenvalues;

[0170] Calculate the cumulative variance contribution rate of the eigenvalue according to the eigenvector and the preset number of samples, and perform dimensionality reduction processing on the original image matrix according to the cumulative variance contribution rate and the preset dimensionality reduction parameter to obtain a first image matrix;

[0171] A second image matrix of the image information to be processed is obtained, and information weighting processing is performed on the first image matrix according to the second image matrix to obtain image feature information.

[0172] In a possible implementation of this embodiment, the image processing device performs feature extraction and information weighting processing on the image information to be processed to obtain image feature information, including:

[0173] Acquire image features of the image information to be processed, and the probability of posture information corresponding to the image features;

[0174] Calculating the posture information amount of the image feature according to the posture information probability, and summarizing the posture information amount to obtain the total posture information amount of the image information to be processed;

[0175] Calculating the information contribution rate of the image feature according to the posture information amount and the total posture information amount;

[0176] Inputting the information contribution into a preset diagonal matrix function to obtain a second image matrix of the image information to be processed;

[0177] The first image matrix is ​​subjected to information weighting processing according to the second image matrix to obtain image feature information.

[0178] In a possible implementation of this embodiment, the image processing device calculates the cluster center of the image feature information, and extracts the target image information of the image information to be processed according to the cluster center, including:

[0179] Collecting matrix row samples of each row in the image feature information, and summarizing the matrix row samples of each row to obtain an initial sample class of the image feature information;

[0180] Calculating the cosine similarity of each matrix sample in the initial sample class, and converting the cosine similarity into a class affinity of the initial sample class;

[0181] Performing immunization on the initial sample class according to the class affinity to obtain a target sample class;

[0182] The cluster center of the image feature information is calculated according to the target sample class, and the target image information of the image information to be processed is extracted according to the cluster center.

[0183] In a possible implementation of this embodiment, the image processing device performs immune processing on the initial sample class according to the class affinity to obtain the target sample class, including:

[0184] Acquire an initial sample class whose class affinity in the image feature information is greater than a preset affinity threshold, and obtain an antibody sample class;

[0185] Filtering the initial sample classes whose class affinity is less than a preset inhibition rate in the antibody sample classes, and cloning the filtered antibody sample classes according to a preset cloning probability to obtain cloned sample classes;

[0186] Performing sample transformation on the initial sample class according to a preset crossover probability and a preset mutation probability to obtain a transformed sample class;

[0187] The updated affinity of the transformed sample class is calculated, and if the updated affinity is less than a preset immune affinity threshold, the transformed sample class is set as a target sample class of the image information to be processed.

[0188] In a possible implementation of this embodiment, the image processing device calculates the cluster center of the target sample class, and extracts the target image information in the target sample class according to the cluster center, including:

[0189] Acquire each cluster image of the target sample class in the image feature information, calculate the average value of each cluster image, and obtain the cluster center of the image feature information;

[0190] Calculating the distance parameter between each of the cluster images and the cluster center, and extracting the cluster image with the smallest distance parameter in the target sample class;

[0191] The cluster image with the smallest distance parameter in the target sample class is set as the target image information of the image information to be processed.

[0192] In a possible implementation of this embodiment, after the image processing device calculates the cluster center of the target sample class and extracts the target image information in the target sample class according to the cluster center, it further includes:

[0193] Collecting motion posture features in the target image information, inputting the motion posture features into a preset posture recognition model for posture classification, and obtaining a posture recognition result;

[0194] Accessing a gesture interaction database, acquiring a target interaction operation associated with the gesture recognition result, and executing the target interaction operation.

[0195] In this embodiment, the image processing device obtains the image information to be processed, performs feature extraction and information weighting processing on the image information to be processed, obtains image feature information that fully utilizes the original image information, and performs clustering and immune optimization processing on the image feature information to obtain target image information. When extracting the target image frame of the image sequence, the original image data is introduced to weight the information amount of the feature extraction matrix, thereby increasing the attention to the posture information in the image processing process, and immune processing is introduced in the clustering process to reduce clustering redundancy, thereby improving the accuracy of image processing.

[0196] The embodiment of the present invention also provides an image processing device, such as Figure 7 As shown, Figure 7 A schematic diagram of the structure of an embodiment of an image processing device provided in an embodiment of the present application.

[0197] The image processing device integrates any one of the image processing devices provided by the embodiments of the present invention, and the image processing device includes:

[0198] one or more processors;

[0199] Memory; and

[0200] One or more applications, wherein the one or more applications are stored in the memory and are configured to cause the processor to execute the steps of the image processing method described in any of the above-mentioned image processing method embodiments.

[0201] Specifically, the image processing device may include one or more processing core processors 701, one or more computer-readable storage media memories 702, a power supply 703, an input unit 704 and other components. Those skilled in the art will understand that Figure 7 The structure of the image processing device shown in the figure does not constitute a limitation on the image processing device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0202] The processor 701 is the control center of the image processing device. It uses various interfaces and lines to connect various parts of the entire image processing device. By running or executing software programs and / or modules stored in the memory 702 and calling data stored in the memory 702, it executes various functions of the image processing device and processes data, thereby monitoring the image processing device as a whole. Optionally, the processor 701 may include one or more processing cores; preferably, the processor 701 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 701.

[0203] The memory 702 can be used to store software programs and modules. The processor 701 executes various functional applications and data processing by running the software programs and modules stored in the memory 702. The memory 702 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the image processing device, etc. In addition, the memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 702 may also include a memory controller to provide the processor 701 with access to the memory 702.

[0204] The image processing device also includes a power supply 703 for supplying power to various components. Preferably, the power supply 703 can be logically connected to the processor 701 through a power management system, so as to manage charging, discharging, power consumption management and other functions through the power management system. The power supply 703 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.

[0205] The image processing device may further include an input unit 704, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0206] Although not shown, the image processing device may further include a display unit, etc., which will not be described in detail herein. Specifically, in this embodiment, the processor 701 in the image processing device will load the executable files corresponding to the processes of one or more application programs into the memory 702 according to the following instructions, and the processor 701 will run the application programs stored in the memory 702, thereby realizing various functions, as follows:

[0207] Obtaining image information to be processed;

[0208] Performing feature extraction and information weighting processing on the image information to be processed to obtain image feature information;

[0209] The image feature information is clustered and optimized to obtain target image information.

[0210] To this end, an embodiment of the present invention provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any image processing method provided in an embodiment of the present invention. For example, the computer program may be loaded by a processor to execute the following steps:

[0211] Obtaining image information to be processed;

[0212] Performing feature extraction and information weighting processing on the image information to be processed to obtain image feature information;

[0213] The image feature information is clustered and optimized to obtain target image information.

[0214] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.

[0215] In specific implementation, the above units or structures can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units or structures can refer to the previous method embodiments, which will not be repeated here.

[0216] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0217] The above is a detailed introduction to an image processing method provided in an embodiment of the present application. Specific embodiments are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. An image processing method, characterized in that: The method comprises: Obtaining image information to be processed; Performing feature extraction and information weighting processing on the image information to be processed to obtain image feature information; The image feature information is clustered and optimized to obtain target image information.

2. The image processing method according to claim 1, characterized in that: The step of performing feature extraction and information weighting processing on the image information to be processed to obtain image feature information includes: Acquire an original image matrix of the image information to be processed, input the original image matrix into a preset covariance function, and obtain a covariance matrix corresponding to the original image matrix; Performing eigendecomposition on the covariance matrix to obtain eigenvalues ​​of the covariance matrix and eigenvectors corresponding to the eigenvalues; Calculate the cumulative variance contribution rate of the eigenvalue according to the eigenvector and the preset number of samples, and perform dimensionality reduction processing on the original image matrix according to the cumulative variance contribution rate and the preset dimensionality reduction parameter to obtain a first image matrix; A second image matrix of the image information to be processed is obtained, and information weighting processing is performed on the first image matrix according to the second image matrix to obtain image feature information.

3. The image processing method according to claim 2, characterized in that: The step of acquiring a second image matrix of the image information to be processed and performing information weighting processing on the first image matrix according to the second image matrix to obtain image feature information includes: Acquire image features of the image information to be processed, and the probability of posture information corresponding to the image features; Calculating the posture information amount of the image feature according to the posture information probability, and summarizing the posture information amount to obtain the total posture information amount of the image information to be processed; Calculating the information contribution rate of the image feature according to the posture information amount and the total posture information amount; Inputting the information contribution into a preset diagonal matrix function to obtain a second image matrix of the image information to be processed; The first image matrix is ​​subjected to information weighting processing according to the second image matrix to obtain image feature information.

4. The image processing method according to claim 1, wherein: The clustering and optimization processing of the image feature information to obtain target image information includes: Collecting matrix row samples of each row in the image feature information, and summarizing the matrix row samples of each row to obtain an initial sample class of the image feature information; Calculating the cosine similarity of each matrix sample in the initial sample class, and converting the cosine similarity into a class affinity of the initial sample class; Performing immunization on the initial sample class according to the class affinity to obtain a target sample class; The cluster center of the image feature information is calculated according to the target sample class, and the target image information of the image information to be processed is extracted according to the cluster center.

5. The image processing method according to claim 4, characterized in that: The step of performing immune treatment on the initial sample class according to the class affinity to obtain a target sample class includes: Acquire an initial sample class whose class affinity in the image feature information is greater than a preset affinity threshold, and obtain an antibody sample class; Filtering the initial sample classes whose class affinity is less than a preset inhibition rate in the antibody sample classes, and cloning the filtered antibody sample classes according to a preset cloning probability to obtain cloned sample classes; Performing sample transformation on the initial sample class according to a preset crossover probability and a preset mutation probability to obtain a transformed sample class; The updated affinity of the clone sample class and the transformed sample class is calculated. If the updated affinity is less than a preset immune affinity threshold, the transformed sample class and / or the clone sample class is set as a target sample class for the image information to be processed.

6. The image processing method according to claim 1, wherein: The clustering and optimization processing of the image feature information to obtain target image information includes: Acquire each cluster image of the target sample class in the image feature information, calculate the average value of each cluster image, and obtain the cluster center of the image feature information; Calculating the distance parameter between each of the cluster images and the cluster center, and extracting the cluster image with the smallest distance parameter in the target sample class; The cluster image with the smallest distance parameter in the target sample class is set as the target image information of the image information to be processed.

7. The image processing method according to any one of claims 1 to 6, characterized in that: After calculating the cluster center of the target sample class and extracting the target image information in the target sample class according to the cluster center, the method further includes: Collecting motion posture features in the target image information, inputting the motion posture features into a preset posture recognition model for posture classification, and obtaining a posture recognition result; Accessing a gesture interaction database, acquiring a target interaction operation associated with the gesture recognition result, and executing the target interaction operation.

8. An image processing device, characterized in that: The image processing device comprises: An image extraction module is configured to obtain image information to be processed; A feature extraction module is configured to perform feature extraction and information weighting processing on the image information to be processed to obtain image feature information; The feature clustering module is configured to perform clustering and optimization processing on the image feature information to obtain target image information.

9. An image processing device, characterized in that: The image processing device comprises: one or more processors; Memory; and One or more application programs, wherein the one or more application programs are stored in the memory and are configured to be executed by the processor to implement the steps of the image processing method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps of the image processing method according to any one of claims 1 to 7.