Personnel identification method and device based on complex field, electronic equipment and storage medium

By using the complex domain transformation model to process global and local feature vectors and calculate fusion feature vectors in the human body capture system, the problem of low retrieval accuracy in the existing technology is solved, and more efficient and accurate human body recognition is achieved.

CN118587737AActive Publication Date: 2024-09-03HEBEI XIONGAN NEW DISTRICT PUBLIC SECURITY BUREAU
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410660773.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-09-03
Estimated Expiration
2044-05-27

AI Technical Summary

Technical Problem

In the human body capture system, the existing technology ignores the intrinsic connection between local image features and the internal connection between local features and global features, resulting in low retrieval accuracy.

Method used

Using a person recognition method based on the complex domain, the global feature vector and local feature vector are obtained, and input into the vector complex domain transformation model, the real part matrix and the imaginary part matrix are output, the fusion feature vector is calculated, and then vector retrieval is performed to realize the human body Identify.

Benefits of technology

Effectively capture the complex relationships between local features and between local features and global features in the image, deeply mine the implicit associations in the data, enhance feature expression capabilities, improve recognition accuracy and stability, and achieve more efficient and accurate human image recognition. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587737A
    Figure CN118587737A
Patent Text Reader

Abstract

The invention provides a personnel identification method and device based on a complex field, electronic equipment and a storage medium, and relates to the technical field of image identification processing. The method comprises the following steps: acquiring a global feature vector and a plurality of local feature vectors determined based on a human body image; wherein the lengths of the local feature vectors and the global feature vectors are the same; inputting the local feature vectors and the global feature vectors into a vector complex field transformation model, and outputting a real part matrix and an imaginary part matrix; calculating a fusion feature vector according to the real part matrix and the imaginary part matrix; and performing vector retrieval according to the fused feature vector to complete identification of the person corresponding to the human body image. Complex relations and subtle changes between local features and between the local features and global features in the image are captured based on the vector complex field transformation model, implicit association in data is deeply mined, and the feature expression ability is enhanced. And retrieval is carried out by using the fusion feature vector, so that the recognition precision and stability are improved, and more efficient and accurate human body image recognition is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image recognition processing technology, and in particular to a method, device, electronic device and storage medium for personnel recognition based on a complex domain. Background Art

[0002] In the current security inspection and capture systems, human capture technology has attracted increasing attention due to its image search function. In general application scenarios, the local image features and global image features of human capture are independently modeled and retrieved. However, in some scenarios, these two retrieval methods need to be fused. A common fusion method is to weighted average the multiple similarities obtained by local feature retrieval and the similarities of global retrieval. However, this method ignores the intrinsic connection between local image features and the intrinsic connection between local features and global features, which will result in low retrieval accuracy. Summary of the invention

[0003] The embodiments of the present application provide a complex domain-based person recognition method, device, electronic device and storage medium to solve the problem of low retrieval accuracy caused by ignoring the intrinsic connection between local image features and the intrinsic connection between local features and global features.

[0004] In a first aspect, an embodiment of the present application provides a method for identifying a person based on a plural domain, characterized by comprising: Acquire a global feature vector and a plurality of local feature vectors determined based on a human body image; wherein the lengths of the local feature vectors and the global feature vector are the same; Input the global eigenvector and each local eigenvector into a vector complex domain transformation model, and output a real matrix and an imaginary matrix; Calculate a fused eigenvector according to the real matrix and the imaginary matrix; Vector retrieval is performed based on the fused feature vector to complete the identification of the person corresponding to the human image.

[0005] In a possible implementation, the vector complex domain transformation model includes: an input layer, a complex domain transformation layer, a fully connected network layer and a complex domain inverse transformation layer; The input layer is used to merge the global feature vector and each local feature vector to obtain a merged vector; The complex domain transformation layer is used to transform the combined vector into the complex domain to obtain a modulus matrix and an angle matrix; The fully connected network layer is used to calculate the module value matrix and the angle matrix respectively to obtain the angle matrix and the module value matrix exponential part after linear transformation; The complex domain inverse transformation layer is used to transform the module value matrix and the angle matrix after the linear transformation back into the real part matrix and the imaginary part matrix; The complex domain transformation layer and the complex domain inverse transformation layer perform conversion between vectors and the complex domain based on the Euler formula.

[0006] In a possible implementation, when the input layer merges the global feature vector and each local feature vector, it is based on the following formula:

[0007]

[0008] in, is the vector dot product; is the global eigenvector; for k local eigenvectors; n is the vector fusion order; is the merged output vector; For the l The merge vector of columns; The dimension is The parameter matrix of For the j Row, No. l Column parameters; .

[0009] In a possible implementation, when the complex domain transform layer transforms the merged vector to the complex domain, it is based on the following formula:

[0010] in, ; ; is the real part; is the imaginary part; is the modulus value vector; ; is the angle vector; ;in, , and Both d dimensional vector; for k dimensional vector can learn parameters; for No. j parameters; Then merge the vector Converts to:

[0011]

[0012]

[0013] in, is matrix multiplication; For the l The merge vector of columns; is the modulus value vector; For the j Row, No. l Column parameters; ; is the angle vector; ; is the complex modulus; is the complex angle.

[0014] In a possible implementation, the complex domain inverse transform layer converts the linearly transformed modulus matrix and angle matrix back to the real matrix and imaginary matrix based on the following formula:

[0015] in, For the l The combined vector of columns; both the real and imaginary matrices have dimensions n×d The real part is ; The imaginary part is ; ; is the complex modulus; is the complex angle.

[0016] In a possible implementation, the vector complex domain transformation model further includes: a normalization layer, which is used to normalize the real matrix and the imaginary matrix output by the complex domain inverse transformation layer.

[0017] In a possible implementation, calculating the fused feature vector according to the real matrix and the imaginary matrix includes: According to the normalized results of the real matrix and the imaginary matrix, the fused feature vector is calculated based on the following formula:

[0018] in, is the fusion feature vector; n is the vector fusion order; for The real part of for The imaginary part of For the l The merge vector of columns; .

[0019] In a possible implementation, the method further includes: Constructing original training data according to global feature vectors and multiple local feature vectors of multiple human body images; The original training data is labeled according to the business, and similarity calibration is performed on the feature vectors in the original training data in pairs according to the labeling results to generate training data; Training a fusion feature vector algorithm according to the training data; The two-by-two combination of the feature vectors includes: taking a global feature vector corresponding to a human body picture and a plurality of local feature vectors as a group, and combining two-by-two feature vector groups corresponding to different human body pictures.

[0020] In a second aspect, an embodiment of the present application provides a person identification device based on a plural domain, comprising: An acquisition module, used to acquire a global feature vector and a plurality of local feature vectors determined based on a human body image; wherein the length of each local feature vector is the same as that of the global feature vector; A complex domain transformation module, used for inputting the global eigenvector and each local eigenvector into a vector complex domain transformation model, and outputting a real matrix and an imaginary matrix; A calculation module, used for calculating a fused eigenvector according to the real matrix and the imaginary matrix; The recognition module is used to perform vector retrieval based on the fused feature vector to complete the recognition of the person corresponding to the human image.

[0021] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the first aspect or any possible implementation method of the first aspect are implemented.

[0022] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps of the first aspect or any possible implementation method of the first aspect.

[0023] The embodiment of the present application provides a method, device, electronic device and storage medium for personnel recognition based on a complex domain, by obtaining a global feature vector and multiple local feature vectors based on a human body image, and each local feature vector has the same length as the global feature vector. These vectors are input into a vector complex domain transformation model, and a real matrix and an imaginary matrix are output. The fused feature vector is calculated by the real matrix and the imaginary matrix, and the retrieval is performed based on the vector to realize the recognition of the person corresponding to the human body image. The vector complex domain transformation model can effectively capture the complex relationship and subtle changes between local features in the image and between local features and global features, deeply explore the implicit associations in the data, and enhance the feature expression capability. Retrieval is performed using the fused feature vector to improve recognition accuracy and stability, and to achieve more efficient and accurate human image recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0025] Figure 1 is a flowchart of an implementation method of a plural domain-based personnel identification method provided in an embodiment of the present application; Figure 2 It is a schematic diagram of a feature fusion network structure based on a complex domain provided by an embodiment of the present application; Figure 3 It is a schematic diagram of the training architecture of the fusion feature vector algorithm provided in one embodiment of the present application; Figure 4 It is a structural diagram of a personnel identification device based on a complex domain provided in an embodiment of the present application; Figure 5 It is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0026] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0027] The terms "first", "second", etc. in the specification and claims of the embodiments of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present application described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.

[0028] Unless otherwise specified, the term "plurality" means two or more. The character " / " indicates that the objects before and after are in an "or" relationship. For example, A / B means: A or B. The term "and / or" is a description of the association relationship between objects, indicating that there can be three relationships. For example, A and / or B means: A or B, or, A and B.

[0029] The words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include the plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or including refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups of these. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method or device including the elements.

[0030] In this application, each embodiment may focus on the differences from other embodiments, and the same or similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts may refer to the description of the method part.

[0031] This solution aims to apply the feature fusion algorithm based on the Euler formula to the human body capture model fusion business, directly use the local image feature vector and global image feature vector of the human body constructed by the upstream system, and automatically fuse the local image features and global image features of the human body through training to generate a fused feature vector. Use the generated fused feature vector for vector retrieval to improve the accuracy of fused retrieval.

[0032] The solution provided in this embodiment provides strong support for public safety, social governance and other fields, improving the accuracy and real-time performance of personnel identification to meet ever-changing application needs.

[0033] In order to make the purpose, technical solutions and advantages of the present application clearer, specific embodiments will be described below in conjunction with the accompanying drawings.

[0034] Figure 1 is a flowchart of a method for identifying a person based on a plurality of domains provided in an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps: S101, obtaining a global feature vector and a plurality of local feature vectors determined based on a human body image; wherein the length of each local feature vector is the same as that of the global feature vector.

[0035] The execution subject of the method provided in the embodiment of the present application includes but is not limited to a server, a processor, a microprocessor and other devices with data processing functions. In the actual operation process, the specific implementation method of the execution subject can be selected according to actual needs. This embodiment does not impose any special restrictions on this, and only needs to have data processing functions. The goals of the execution subject for personnel identification include completing security inspection tasks, monitoring specific personnel or categories of personnel, and tracking and capturing mobile targets by cameras.

[0036] In one possible implementation, before the execution subject performs personnel identification, the vector modeling processing results of the human body image output by the upstream system or external image processing device are directly obtained, that is, the global feature vector and multiple local feature vectors determined based on the human body image are obtained. In actual application scenarios, the execution subject often needs to process a large amount of image data. At this time, with the help of external image processing equipment to share part of the computing tasks and give full play to its processing capabilities, it helps to reduce the computing burden of the execution subject and enable it to complete the personnel identification task more efficiently. In addition, in complex environments, the execution subject can work in collaboration with other external devices, such as external image processing devices, to achieve more efficient information processing and personnel identification. By directly obtaining the processing results of the external image processing device, the execution subject can obtain effective information more quickly, thereby improving its collaborative work efficiency with other related devices.

[0037] In a possible implementation, the execution subject establishes a corresponding processing module to perform vector modeling processing operations of human body images to improve the performance of the overall system.

[0038] First, the human body image is semantically segmented, and the segmented local features are modeled separately, such as selecting the left hip, right hip, left shoulder, right shoulder and other local images for vector modeling to generate local feature vectors of the same length. At the same time, the entire human body image is feature modeled to generate a global feature vector. In order to enhance the comparability between the features, the length of the local feature vector and the global feature vector are the same.

[0039] S102, inputting the global eigenvector and each local eigenvector into a vector complex domain transformation model, and outputting a real part matrix and an imaginary part matrix.

[0040] Among them, the vector complex domain transformation model has a strong expressive ability and can effectively capture the complex relationship and subtle changes between local features and between local features and global features in the image. After model processing, the real part matrix and the imaginary part matrix are obtained.

[0041] S103, calculating a fused eigenvector according to the real matrix and the imaginary matrix.

[0042] Compared with the weighted average of the multiple different similarities obtained by independent local feature retrieval and the similarity of global retrieval, step S103 calculates the fused feature vector based on the real matrix and the imaginary matrix. By integrating these two parts of information, it is possible to deeply explore the implicit associations in the data and enhance the feature expression ability. This process usually adopts various fusion strategies, such as weighted summation, multiplication fusion, etc. Therefore, in actual operation, before calculating the fused feature vector of the real matrix and the imaginary matrix, the fused feature vector algorithm needs to be pre-trained to improve the efficiency of feature extraction and fusion.

[0043] S104, performing vector retrieval based on the fused feature vector to complete the identification of the person corresponding to the human image.

[0044] Among them, the recognition of the person corresponding to the human image is performed based on the fused feature vector. The purpose is to use the fused feature vector to improve the accuracy and stability of recognition, so as to achieve more efficient and accurate human image recognition.

[0045] In an embodiment of the present application, a global feature vector and multiple local feature vectors based on a human body image are obtained, and the length of each local feature vector is consistent with that of the global feature vector. These vectors are input into a vector complex domain transformation model, and a real matrix and an imaginary matrix are output. The fused feature vector is calculated by the real matrix and the imaginary matrix, and a search is performed based on the vector to realize the recognition of the person corresponding to the human body image. The vector complex domain transformation model can effectively capture the complex relationship and subtle changes between local features in the image and between local features and global features, deeply explore the implicit associations in the data, and enhance the ability to express features. Retrieval is performed using the fused feature vector to improve recognition accuracy and stability, and to achieve more efficient and accurate human image recognition.

[0046] In a possible implementation, the vector complex domain transformation model includes: an input layer, a complex domain transformation layer, a fully connected network layer, and a complex domain inverse transformation layer; The input layer is used to merge the global feature vector and each local feature vector to obtain a merged vector; A complex domain transformation layer, used to transform the merged vector into the complex domain to obtain a modulus matrix and an angle matrix; The fully connected network layer is used to calculate the module value matrix and the angle matrix respectively to obtain the angle matrix and the module value matrix index part after linear transformation; The complex domain inverse transform layer is used to convert the linearly transformed modulus matrix and angle matrix back to the real matrix and imaginary matrix.

[0047] In one possible implementation, the complex domain transformation layer and the complex domain inverse transformation layer perform conversion between vectors and the complex domain based on the Euler formula. In other possible implementations, the global feature vector and each local feature vector may be transformed into the complex domain by other means to deeply analyze the complex relationship and subtle changes between local features and between local features and global features.

[0048] To facilitate understanding of the execution order of each layer, Figure 2 Take this as an example to illustrate.

[0049] Figure 2 Schematic diagram of a feature fusion network structure based on a complex domain provided by an embodiment of the present application. Figure 2 As shown, the overall network structure is as follows Figure 1 As shown in the figure, the entire network consists of an input layer, a complex domain transformation layer, a fully connected network layer, a complex domain inverse transformation layer, and a normalization layer.

[0050] Input 1 global feature vector and k local feature vectors human feature vectors, and output a fused feature vector. The output dimension of the input layer is d×(k+1).

[0051] The complex domain transformation layer transforms the input vector into the complex space. The modulus vector is subjected to logarithm operation (here the natural logarithm e is selected as the base logarithm) and then input into the fully connected network layer; the angle vector is directly input into the fully connected network layer. The output of the complex domain transformation layer is two matrices of dimension d×(k+1), namely the modulus matrix and the angle matrix.

[0052] The parameters of the fully connected network layer are , the bias is 0. Calculate the exponential part of the modulus matrix and the angle matrix separately: The modulus matrix (exponential part) passes through the fully connected network layer:

[0053] The angle matrix passes through a fully connected network layer:

[0054] The output of the fully connected network layer is two matrices of dimension n×d, which are the exponential part of the modulus matrix and the angle matrix after the linear transformation. Before entering the complex domain inverse transformation layer, the modulus exponential part needs to be exponentially calculated by e.

[0055] The complex domain inverse transform layer converts the module value matrix and angle matrix output by the fully connected network layer back to the real matrix and imaginary matrix.

[0056] The real part is:

[0057] The imaginary part is:

[0058] The complex domain inverse transform layer outputs two matrices of dimension n×d, representing the real and imaginary matrices converted back respectively.

[0059] The normalization layer performs layer normalization on the real and imaginary matrices output by the complex domain inverse transform layer. This layer does not change the dimensions of the input and output.

[0060] above, Figure 2 The vector complex domain transformation model is introduced as a whole. The main execution process of each layer is explained below.

[0061] In one possible implementation, the input layer merges the global feature vector and each local feature vector based on the following formula:

[0062]

[0063] in, is the vector dot product; is the global eigenvector; for k local eigenvectors; n is the vector fusion order; is the merged output vector; For the l The merge vector of columns; The dimension is The parameter matrix of For the j Row, No. l Column parameters; .

[0064] In a possible implementation, the complex domain transform layer transforms the merged vector to the complex domain based on the following formula:

[0065] in, ; ; is the real part; is the imaginary part; is the modulus value vector; ; is the angle vector; ;in, , and Both d dimensional vector; for k dimensional vector can learn parameters; for No. j parameters; Then merge the vector Converts to:

[0066]

[0067]

[0068] in, is matrix multiplication; For the l The merge vector of columns; is the modulus value vector; For the j Row, No. l Column parameters; ; is the angle vector; ; is the complex modulus; is the complex angle.

[0069] In a possible implementation, the complex domain inverse transform layer converts the linearly transformed modulus matrix and angle matrix back to the real matrix and imaginary matrix based on the following formula:

[0070] in, For the l The combined vector of columns; both the real and imaginary matrices have dimensions n×d The real part is ; The imaginary part is ; ; is the complex modulus; is the complex angle.

[0071] In a possible implementation, the vector complex domain transformation model further includes: a normalization layer, which is used to normalize the real matrix and the imaginary matrix output by the complex domain inverse transformation layer.

[0072] In a possible implementation, calculating the fused feature vector according to the real matrix and the imaginary matrix in step S103 includes: According to the normalized results of the real matrix and the imaginary matrix, the fused eigenvector is calculated based on the following formula:

[0073] in, is the fusion feature vector; n is the vector fusion order; for The real part of for The imaginary part of For the l The merge vector of columns; .

[0074] In a possible implementation, the method further includes: Constructing original training data according to global feature vectors and multiple local feature vectors of multiple human body images; The original training data is labeled according to the business, and the similarity of the feature vectors in the original training data is calibrated based on the labeling results to generate training data; Training the fused feature vector algorithm based on the training data; The pairwise combination of feature vectors includes: combining a global feature vector corresponding to a human body picture and a plurality of local feature vectors as a group, and combining feature vector groups corresponding to different human body pictures in pairs.

[0075] Figure 3 It is a schematic diagram of the fusion feature vector algorithm training architecture provided in one embodiment of the present application.

[0076] Specifically, each piece of training data needs to consist of two sets of feature vectors and an expected similarity. In the specific implementation process, the similarity measurement method used is cosine distance, with a value range of -1 to 1, and the similarity is divided into 4 levels (target similarity): complete similarity (1.0), general similarity (0.3), general dissimilarity (-0.3), and complete dissimilarity (-1.0). From the original training data, the formal training data is generated after the similarity calibration is performed on the two combinations. For the final training data set, the number of training data corresponding to the four similarity levels should be roughly the same.

[0077] In this embodiment, the fusion feature vector algorithm is trained through training data, aiming to improve the accuracy of the fusion feature vector in expressing the complex relationships and subtle changes between local features of the human body and between local features and global features, so as to improve the accuracy of personnel retrieval and identification, thereby contributing to public safety, social governance and other fields.

[0078] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0079] The following is an embodiment of the device of the present application. For details not described in detail, please refer to the corresponding method embodiment described above.

[0080] Figure 4 is a schematic diagram of the structure of a personnel identification device based on a complex domain provided by an embodiment of the present application, such as Figure 4 For the sake of convenience, only the parts related to the embodiment of the present application are shown. Figure 4 As shown, the device comprises: An acquisition module 401 is used to acquire a global feature vector and a plurality of local feature vectors determined based on a human body image; wherein the length of each local feature vector is the same as that of the global feature vector; A complex domain transformation module 402 is used to input the global eigenvector and each local eigenvector into a vector complex domain transformation model, and output a real matrix and an imaginary matrix; A calculation module 403 is used to calculate a fused eigenvector according to the real matrix and the imaginary matrix; The identification module 404 is used to perform vector retrieval based on the fused feature vector to complete the identification of the person corresponding to the human image.

[0081] In a possible implementation, a training module is further included, which is used to construct original training data according to the global feature vectors and multiple local feature vectors of multiple human body pictures; annotate the original training data according to the business, and perform similarity calibration on the feature vectors in the original training data in pairs according to the annotated results to generate training data; and train the fusion feature vector algorithm according to the training data; The two-by-two combination of the feature vectors includes: taking a global feature vector corresponding to a human body picture and a plurality of local feature vectors as a group, and combining two-by-two feature vector groups corresponding to different human body pictures.

[0082] In an embodiment of the present application, a global feature vector and multiple local feature vectors based on a human body image are obtained, and the length of each local feature vector is consistent with that of the global feature vector. These vectors are input into a vector complex domain transformation model, and a real matrix and an imaginary matrix are output. The fused feature vector is calculated by the real matrix and the imaginary matrix, and a search is performed based on the vector to realize the recognition of the person corresponding to the human body image. The vector complex domain transformation model can effectively capture the complex relationship and subtle changes between local features in the image and between local features and global features, deeply explore the implicit associations in the data, and enhance the ability to express features. Retrieval is performed using the fused feature vector to improve recognition accuracy and stability, and to achieve more efficient and accurate human image recognition.

[0083] Figure 5 Schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 5 As shown, the electronic device 5 of this embodiment includes: a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50. When the processor 50 executes the computer program 52, the steps in the above-mentioned various embodiments of the method for identifying a person based on a plural domain are implemented, for example Figure 1 Alternatively, when the processor 50 executes the computer program 52, the functions of each module / unit in the above-mentioned device embodiments are implemented, for example Figure 4 The functions of each module are shown.

[0084] Exemplarily, the computer program 52 may be divided into one or more modules / units, one or more modules / units are stored in the memory 51 and executed by the processor 50 to complete the present application. One or more modules / units may be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program 52 in the electronic device 5. For example, the computer program 52 may be divided into Figure 4 The modules shown.

[0085] The electronic device 5 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The electronic device 5 may include, but is not limited to, a processor 50 and a memory 51. Those skilled in the art will appreciate that Figure 5 It is only an example of the electronic device 5 and does not constitute a limitation of the electronic device 5. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.

[0086] The processor 50 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0087] The memory 51 may be an internal storage unit of the electronic device 5, such as a hard disk or memory of the electronic device 5. The memory 51 may also be an external storage device of the electronic device 5, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 5. Further, the memory 51 may also include both an internal storage unit of the electronic device 5 and an external storage device. The memory 51 is used to store computer programs and other programs and data required by the electronic device. The memory 51 may also be used to temporarily store data that has been output or is to be output.

[0088] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0089] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0090] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0091] In the embodiments provided in the present application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0092] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0093] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0094] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various embodiments of the personnel identification method based on the plural domain can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. Computer-readable media can include: any entity or device that can carry computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0095] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for identifying people based on a complex domain, characterized in that: include: Acquire a global feature vector and a plurality of local feature vectors determined based on a human body image; wherein the lengths of the local feature vectors and the global feature vector are the same; Input the global eigenvector and each local eigenvector into a vector complex domain transformation model, and output a real matrix and an imaginary matrix; Calculate a fused eigenvector according to the real matrix and the imaginary matrix; Vector retrieval is performed based on the fused feature vector to complete the identification of the person corresponding to the human image.

2. The method according to claim 1, characterized in that The vector complex domain transformation model includes: an input layer, a complex domain transformation layer, a fully connected network layer and a complex domain inverse transformation layer; The input layer is used to merge the global feature vector and each local feature vector to obtain a merged vector; The complex domain transformation layer is used to transform the combined vector into the complex domain to obtain a modulus matrix and an angle matrix; The fully connected network layer is used to calculate the module value matrix and the angle matrix respectively to obtain the angle matrix and the module value matrix exponential part after linear transformation; The complex domain inverse transformation layer is used to transform the module value matrix and the angle matrix after the linear transformation back into the real part matrix and the imaginary part matrix; The complex domain transformation layer and the complex domain inverse transformation layer perform conversion between vectors and the complex domain based on the Euler formula.

3. The method according to claim 2, characterized in that When the input layer combines the global feature vector and each local feature vector, it is based on the following formula: in, is the vector dot product; is the global eigenvector; for k local eigenvectors; n is the vector fusion order; is the merged output vector; For the l The merge vector of columns; The dimension is The parameter matrix of For the j Row, No. l Column parameters; .

4. The method according to claim 3, characterized in that When the complex domain transform layer transforms the merged vector to the complex domain, it is based on the following formula: in, ; ; is the real part; is the imaginary part; is the modulus value vector; ; is the angle vector; ;in, , and Both d dimensional vector; for k dimensional vector can learn parameters; for No. j parameters; Then merge the vector Converts to: in, is matrix multiplication; For the l The merge vector of columns; is the modulus value vector; For the j Row, No. l Column parameters; ; is the angle vector; ; is the complex modulus; is the complex angle.

5. The method according to claim 4, characterized in that The complex domain inverse transformation layer converts the linearly transformed modulus matrix and angle matrix back to the real matrix and imaginary matrix based on the following formula: in, For the l The combined vector of columns; both the real and imaginary matrices have dimensions n×d The real part is ; The imaginary part is ; ; is the complex modulus; is the complex angle.

6. The method according to claim 2, characterized in that The vector complex domain transformation model also includes: a normalization layer, which is used to normalize the real matrix and the imaginary matrix output by the complex domain inverse transformation layer.

7. The method according to any one of claims 1 to 6, characterized in that The step of calculating the fused feature vector according to the real matrix and the imaginary matrix includes: According to the normalized results of the real matrix and the imaginary matrix, the fused feature vector is calculated based on the following formula: in, is the fusion feature vector; n is the vector fusion order; for The real part of for The imaginary part of For the l The merge vector of columns; .

8. A person identification device based on a complex domain, characterized in that: include: An acquisition module, used to acquire a global feature vector and a plurality of local feature vectors determined based on a human body image; wherein the length of each local feature vector is the same as that of the global feature vector; A complex domain transformation module, used for inputting the global eigenvector and each local eigenvector into a vector complex domain transformation model, and outputting a real matrix and an imaginary matrix; A calculation module, used for calculating a fused eigenvector according to the real matrix and the imaginary matrix; The recognition module is used to perform vector retrieval based on the fused feature vector to complete the recognition of the person corresponding to the human image.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that: When the processor executes the computer program, the steps of the method in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • TF-IGLSTM thermal error prediction model and intelligent processing and error control system

    CN115859500A

  • Space target identification method based on complex field multi-scale visual transformer

    CN116091889A

  • Image processing method and device, electronic equipment and storage medium

    CN116958585A

  • Maneuvering space target identification method based on plural region graph Transform

    CN116994143A

  • Multi-channel magnetic resonance imaging method based on CMA-Net

    CN118071857A