Cross-domain personnel identification and matching method, device and electronic device
Screening images through face target detection and human body target detection, combined with deep learning feature extraction and cluster analysis, solves the problems of high computing resource consumption and low recognition accuracy in cross-domain person identification, and achieves efficient cross-domain person identification and trajectory track.
Patent Information
- Application Number
- CN202411070398.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-06
AI Technical Summary
Traditional cross-domain person identification and trajectory tracking methods require a large amount of computing resources, and the differences in face images at different viewing angles and sharpness affect the accuracy and credibility of recognition, making it difficult to achieve cross-domain person identification matching and trajectory tracking accuracy. ensure.
A cross-domain person recognition matching method based on face target detection and human body target detection is used to filter target object images through IOU ratio, and the feature attention selection enhancement module of dilated convolutional neural network and compression-suppression structure is combined to extract facial features. and cluster analysis, which calculates the similarity of face cluster representation vectors to confirm object identity.
It reduces the consumption of computing resources, improves the accuracy and efficiency of identification, helps to build and track personnel trajectories, and enhances the accuracy of cross-domain personnel identification and matching.
Smart Images

Figure CN118587758B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of face recognition, and specifically to a cross-domain personnel identification and matching method, device and electronic equipment. Background Art
[0002] In the field of cross-domain personnel identification and trajectory tracking, it is often necessary to process facial images captured by multiple cameras to establish personnel trajectories. The traditional method is to send each captured facial image to the facial recognition module for identity matching. This technical route requires a lot of computing resources and is time-consuming and laborious. Not only that, not every image meets the standards for facial recognition, but filtering out frames may cause gaps in the trajectory of the person, thus affecting subsequent trajectory tracking. In addition, facial images at different viewing angles and clarity have large differences, which affects the accuracy and credibility of facial recognition, making it difficult to guarantee the accuracy of cross-domain personnel identification matching and trajectory tracking.
[0003] Therefore, an optimized cross-domain person identification and matching scheme is desired. Summary of the invention
[0004] This application is made in view of the above problems. One object of this application is to provide a cross-domain personnel identification and matching method, device and electronic device.
[0005] An embodiment of the present application provides a cross-domain personnel identification and matching method, which includes:
[0006] Acquire a queue of first to-be-recognized object images captured by a first camera;
[0007] Acquire a queue of second to-be-recognized object images captured by a second camera;
[0008] Based on face target detection and human target detection, extracting a queue of first target object images from the queue of the first object images to be identified and extracting a queue of second target object images from the queue of the second object images to be identified;
[0009] Performing facial feature extraction and cluster analysis on the queue of the first target object images to obtain a first target object face cluster representation vector;
[0010] Performing facial feature extraction and cluster analysis on the queue of the second target object images to obtain a second target object face cluster representation vector;
[0011] Calculating the similarity between the first target object face cluster representation vector and the second target object face cluster representation vector;
[0012] Based on the comparison between the similarity and a preset threshold, it is confirmed whether the target object in the queue of the first target object image and the target object in the queue of the second target object image are the same object.
[0013] For example, according to the cross-domain personnel recognition and matching method of an embodiment of the present application, based on face target detection and human target detection, extracting a queue of first target object images from the queue of the first object images to be recognized and extracting a queue of second target object images from the queue of the second object images to be recognized, including:
[0014] Performing face target detection and human target detection on each first object image to be identified in the queue of the first object images to be identified to obtain a human body bounding box and a face bounding box;
[0015] Calculating the IOU ratio between the human body bounding box and the face bounding box of each first object to be identified image;
[0016] Based on the comparison between the IOU ratio of each first to-be-recognized object image and a preset threshold, it is determined whether to include the corresponding first to-be-recognized object image into the queue of the first target object image.
[0017] For example, according to the cross-domain personnel recognition and matching method of an embodiment of the present application, performing face target detection and human target detection on each first object image to be identified in the queue of the first object images to be identified to obtain a human bounding box and a face bounding box includes:
[0018] The first to-be-recognized object images are respectively input into a face target detection network and a human target detection network to obtain the human body bounding box and the face bounding box.
[0019] For example, according to the cross-domain person recognition and matching method of an embodiment of the present application, calculating the IOU ratio between the human body bounding box and the face bounding box of each first to-be-recognized object image includes:
[0020] The IOU ratio between the human body bounding box and the face bounding box of each first object to be identified image is calculated using the following ratio calculation formula;
[0021] Wherein, the ratio calculation formula is:
[0022]
[0023] in, represents the intersection area, which is the area of the intersection between the human body bounding box and the face bounding box, represents a union area, where the union area is the area of the union between the human body bounding box and the face bounding box.
[0024] For example, according to the cross-domain personnel recognition and matching method of an embodiment of the present application, based on face target detection and human target detection, extracting a queue of first target object images from the queue of the first object images to be recognized and extracting a queue of second target object images from the queue of the second object images to be recognized, including:
[0025] Performing face target detection and human target detection on each second object image to be identified in the queue of the second object images to be identified to obtain a human body bounding box and a face bounding box;
[0026] Calculating the IOU ratio between the human body bounding box and the face bounding box of each second object to be identified image;
[0027] Based on the comparison between the IOU ratio of each second to-be-recognized object image and a preset threshold, it is determined whether to include the corresponding second to-be-recognized object image into the queue of the second target object image.
[0028] For example, according to the cross-domain personnel recognition and matching method of an embodiment of the present application, performing facial feature extraction and cluster analysis on the queue of the first target object image to obtain the first target object face cluster representation vector includes:
[0029] Inputting each first target object image in the queue of the first target object images into a face feature extractor based on a dilated convolutional neural network model to obtain a queue of first target object face feature images;
[0030] Inputting each first target object face feature map in the queue of the first target object face feature map into a feature attention selection and enhancement module based on a compression-suppression structure to obtain a queue of enhanced first target object face feature maps;
[0031] Respectively calculating the global mean vector of each enhanced first target object face feature map in the queue of enhanced first target object face feature maps to obtain a queue of enhanced first target object face feature vectors;
[0032] The queue of the enhanced first target object face feature vector is input into a feature distribution reverse mask clustering analysis network to obtain the first target object face cluster representation vector.
[0033] For example, according to the cross-domain personnel identification and matching method of an embodiment of the present application, each first target object face feature map in the queue of the first target object face feature map is respectively input into a feature attention selection and enhancement module based on a compression-suppression structure to obtain a queue of enhanced first target object face feature maps, including:
[0034] Calculating the global mean of each feature matrix of the first target object face feature map along the channel dimension to obtain a first target object face feature compression information representation vector;
[0035] Performing one-dimensional convolution encoding on the first target object face feature compression information representation vector to obtain a first target object face compression information correlation representation feature vector;
[0036] Cascading the first target object face feature compression information representation vector and the first target object face compression information association representation feature vector to obtain the first target object face compression information multi-scale representation vector;
[0037] Using the negative number of the eigenvalue of each position in the multi-scale associated eigenvector of the first target object face compression information as the exponent of the natural constant to calculate the exponential function value based on the natural constant according to the position to obtain the multi-scale associated class support eigenvector of the first target object face compression information;
[0038] Calculating the reciprocal of the sum of the eigenvalues of each position in the multi-scale association class support eigenvector of the first target object face compression information and a constant one to obtain a first target object face weight eigenvector;
[0039] Using a Sigmoid function to normalize the multi-scale associated feature vector of the first target object face compression information to obtain a first target object face weight feature vector;
[0040] The eigenvalues at each position in the first target object face weighted feature vector are multiplied by each feature matrix along the channel dimension of the first target object face feature map by position to obtain an enhanced first target object face feature map.
[0041] For example, according to the cross-domain personnel identification and matching method of an embodiment of the present application, the queue of the enhanced first target object face feature vector is input into a feature distribution reverse mask clustering analysis network to obtain the first target object face cluster representation vector, including:
[0042] Calculating the cluster mean vector of the queue of the enhanced first target object face feature vector to obtain the enhanced first target object face semantic cluster center feature vector;
[0043] Respectively calculating the one-norm of the enhanced first target object face feature vector and the one-norm of the enhanced first target object face semantic cluster center feature vector to obtain the one-norm representation value of the enhanced first target object face and the one-norm representation value of the enhanced first target object face semantic cluster center;
[0044] Calculate the product of the norm representation value of the enhanced first target object face and the norm representation value of the enhanced first target object face semantic cluster center to obtain the norm representation value of the enhanced first target object face semantics-cluster center semantic correlation;
[0045] Calculating the multiplication between the transposed vector of the enhanced first target object face feature vector and the enhanced first target object face semantic cluster center feature vector to obtain an enhanced first target object face semantic-cluster center semantic correlation feature value;
[0046] Calculate the division between the enhanced first target object face semantics-cluster center semantic correlation feature value and the enhanced first target object face semantics-cluster center semantic correlation-norm representation value to obtain the enhanced first target object face cluster center semantic correlation coefficient;
[0047] Taking the reciprocals of the semantic correlation coefficients of the enhanced first target object face cluster centers in the sequence of the semantic correlation coefficients of the enhanced first target object face cluster centers to obtain a sequence of the semantic anti-correlation coefficients of the enhanced first target object face cluster centers;
[0048] Using the negative number of each enhanced semantic anti-correlation coefficient of the first target object face cluster center in the sequence of enhanced semantic anti-correlation coefficients of the first target object face cluster center as the exponent of the natural constant to calculate the exponential function value based on the natural constant according to the position to obtain the sequence of enhanced semantic anti-correlation class support coefficients of the first target object face cluster center;
[0049] Calculating the reciprocal of the sum of each of the enhanced first target object face cluster center semantic anti-correlation class support coefficients in the sequence of enhanced first target object face cluster center semantic anti-correlation class support coefficients and a constant one to obtain a sequence of enhanced first target object face cluster center semantic anti-correlation weight coefficients;
[0050] Using each enhanced first target object face cluster center semantic anti-correlation weight coefficient in the sequence of enhanced first target object face cluster center semantic anti-correlation weight coefficients as a weight, weighting each enhanced first target object face feature vector in the sequence of enhanced first target object face feature vectors to obtain a sequence of suppressed enhanced first target object face feature vectors;
[0051] Calculating the positional difference between each corresponding group of the enhanced first target object face feature vectors and the suppressed enhanced first target object face feature vectors in the sequence of the enhanced first target object face feature vectors and the sequence of the suppressed enhanced first target object face feature vectors to obtain a sequence of the filtered enhanced first target object face feature vectors;
[0052] The position-wise mean vector of the sequence of the screened and enhanced first target object face feature vectors is calculated to obtain the first target object face cluster representation vector.
[0053] For example, according to the cross-domain personnel recognition and matching method of an embodiment of the present application, performing facial feature extraction and cluster analysis on the queue of the second target object image to obtain a second target object face cluster representation vector includes:
[0054] Inputting each second target object image in the queue of the second target object images into a face feature extractor based on a dilated convolutional neural network model to obtain a queue of second target object face feature images;
[0055] Inputting each second target object face feature map in the queue of the second target object face feature map into a feature attention selection and enhancement module based on a compression-suppression structure to obtain a queue of enhanced second target object face feature maps;
[0056] Respectively calculating the global mean vector of each enhanced second target object face feature map in the queue of enhanced second target object face feature maps to obtain a queue of enhanced second target object face feature vectors;
[0057] The queue of enhanced second target object face feature vectors is input into a feature distribution reverse mask clustering analysis network to obtain the second target object face cluster representation vector.
[0058] The embodiment of the present application also provides a cross-domain personnel identification and matching device, which includes:
[0059] A queue acquisition module of first to-be-recognized object images, used to acquire a queue of first to-be-recognized object images captured by a first camera;
[0060] A queue acquisition module for second to-be-identified object images, used to acquire a queue of second to-be-identified object images captured by a second camera;
[0061] A target detection module, configured to extract a queue of first target object images from the queue of the first object images to be identified and extract a queue of second target object images from the queue of the second object images to be identified based on face target detection and human target detection;
[0062] A first feature extraction and cluster analysis module, configured to perform facial feature extraction and cluster analysis on the queue of the first target object images to obtain a first target object face cluster representation vector;
[0063] A second feature extraction and cluster analysis module, used for performing facial feature extraction and cluster analysis on the queue of the second target object images to obtain a second target object face cluster representation vector;
[0064] A similarity module, used to calculate the similarity between the first target object face cluster representation vector and the second target object face cluster representation vector;
[0065] The calculation module is used to confirm whether the target object in the queue of the first target object image and the target object in the queue of the second target object image are the same object based on the comparison between the similarity and a preset threshold.
[0066] An embodiment of the present application further provides an electronic device, comprising:
[0067] processor;
[0068] A memory, in which computer program instructions are stored, and when the computer program instructions are executed by the processor, the processor executes the cross-domain personnel identification and matching method as described in any of the preceding items.
[0069] According to the cross-domain personnel identification and matching method, device and electronic device of the embodiments of the present application, the identities of cross-domain personnel can be identified and matched without the need to perform face recognition on each image, thereby reducing the consumption of computing resources and improving the accuracy and efficiency of identification, which is helpful for building and tracking personnel trajectories. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings of the embodiments of the present application are briefly introduced below. Obviously, the drawings described below only relate to some embodiments of the present application, and are not intended to limit the present application.
[0071] Figure 1 A schematic diagram of the application architecture of the cross-domain personnel identification and matching method in an embodiment of the present application is shown;
[0072] Figure 2 A flow chart of a cross-domain personnel identification and matching method in an embodiment of the present application is shown;
[0073] Figure 3 A flowchart of sub-step S540 of the cross-domain personnel identification and matching method in an embodiment of the present application is shown;
[0074] Figure 4A schematic diagram of the structure of a cross-domain personnel identification and matching device in an embodiment of the present application is shown;
[0075] Figure 5 An application scenario diagram of the cross-domain personnel identification and matching method in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0076] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work also fall within the scope of protection of the present application.
[0077] The terms used in this specification are those common terms currently widely used in the art in consideration of the functions of the present application, but these terms may vary according to the intentions of those skilled in the art, precedents, or new technologies in the art. In addition, specific terms may be selected, and in this case, their detailed meanings will be described in the detailed description of the present application. Therefore, the terms used in the specification should not be understood as simple names, but rather as a general description based on the meaning of the terms and the present application.
[0078] Although the present application makes various references to certain modules in the system according to the embodiments of the present application, any number of different modules can be used and run on the user terminal and / or server. The modules are only illustrative, and different aspects of the system and method can use different modules.
[0079] Flowcharts are used in the present application to illustrate the operations performed by the system according to the embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed accurately in order. On the contrary, various steps may be processed in reverse order or simultaneously as required. At the same time, other operations may also be added to these processes, or a certain step or several steps of operations may be removed from these processes.
[0080] Example 1
[0081] Figure 1 A schematic diagram of the application architecture of the cross-domain personnel identification and matching method in an embodiment of the present application is shown, including a server 100 and a terminal device 200.
[0082] The terminal device 200 and the server 100 can be connected via the Internet to achieve mutual communication. Optionally, the above-mentioned Internet uses standard communication technology and / or protocol. The Internet is usually the Internet, but it can also be any network, including but not limited to any combination of a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a private network or a virtual private network. In some embodiments, the data exchanged through the network can be represented by technologies and / or formats including Hyper Text Markup Language (HTML), Extensible Markup Language (XML), etc. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec), etc. can be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can also be used to replace or supplement the above-mentioned data communication technologies.
[0083] The server 100 can provide various network services for the terminal device 200, wherein the server 100 can be a single server, a server cluster consisting of several servers, or a cloud computing center. Specifically, the server 100 may include a processor 110 (Center Processing Unit, CPU), a memory 120, an input device 130, and an output device 140, etc. The input device 130 may include a keyboard, a mouse, a touch screen, etc., and the output device 140 may include a display device, such as a liquid crystal display (Liquid Crystal Display, LCD), a cathode ray tube (Cathode Ray Tube, CRT), etc.
[0084] The memory 120 may include a read-only memory (ROM) and a random access memory (RAM), and provides the processor 110 with program instructions and data stored in the memory 120. In the embodiment of the present application, the memory 120 may be used to store the program of the cross-domain personnel identification and matching method in the embodiment of the present application.
[0085] The processor 110 calls the program instructions stored in the memory 120, and the processor 110 is used to execute the steps of any cross-domain personnel identification and matching method in the embodiments of the present application according to the obtained program instructions.
[0086] In addition, the application architecture diagram in the embodiment of the present application is intended to more clearly illustrate the technical solution in the embodiment of the present application, and does not constitute a limitation on the technical solution provided in the embodiment of the present application. Of course, for other application architectures and business applications, the technical solution provided in the embodiment of the present application is also applicable to similar problems.
[0087] The following is a non-restrictive description of the cross-domain personnel identification and matching method provided according to at least one embodiment of the present application through several examples or embodiments. As described below, different features in these specific examples or embodiments can be combined with each other without conflicting with each other to obtain new examples or embodiments, and these new examples or embodiments also fall within the scope of protection of the present application.
[0088] In view of the above technical problems, in the technical solution of this application, a cross-domain personnel identification and matching method is proposed, such as Figure 2 As shown, it includes: S510, obtaining a queue of first object images to be identified captured by a first camera; S520, obtaining a queue of second object images to be identified captured by a second camera; S530, based on face target detection and human target detection, extracting a queue of first target object images from the queue of the first object images to be identified and extracting a queue of second target object images from the queue of the second object images to be identified; S540, performing face feature extraction and cluster analysis on the queue of the first target object images to obtain a first target object face cluster representation vector; S550, performing face feature extraction and cluster analysis on the queue of the second target object images to obtain a second target object face cluster representation vector; S560, calculating the similarity between the first target object face cluster representation vector and the second target object face cluster representation vector; S570, based on a comparison between the similarity and a preset threshold, confirming whether the target object in the queue of the first target object images and the target object in the queue of the second target object images are the same object.
[0089] Wherein, in step S530, based on face target detection and human target detection, a queue of first target object images is extracted from the queue of the first object images to be identified and a queue of second target object images is extracted from the queue of the second object images to be identified, including: performing face target detection and human target detection on each first object image to be identified in the queue of the first object images to be identified to obtain a human bounding box and a face bounding box; calculating the IOU ratio between the human bounding box and the face bounding box of each first object image to be identified; and determining whether to include the corresponding first object image to be identified into the queue of the first target object images based on a comparison between the IOU ratio of each first object image to be identified and a preset threshold.
[0090] Specifically, face target detection and human target detection are performed on each first object image to be identified in the queue of the first object images to be identified to obtain a human bounding box and a face bounding box, including: inputting each first object image to be identified into a face target detection network and a human target detection network respectively to obtain the human bounding box and the face bounding box.
[0091] Specifically, calculating the IOU ratio between the human body bounding box and the face bounding box of each of the first to-be-recognized object images includes: calculating the IOU ratio between the human body bounding box and the face bounding box of each of the first to-be-recognized object images using the following ratio calculation formula; wherein the ratio calculation formula is:
[0092]
[0093] in, represents the intersection area, which is the area of the intersection between the human body bounding box and the face bounding box, represents a union area, where the union area is the area of the union between the human body bounding box and the face bounding box.
[0094] Further, in step S530, based on face target detection and human target detection, a queue of first target object images is extracted from the queue of the first object images to be identified and a queue of second target object images is extracted from the queue of the second object images to be identified, and it also includes: performing face target detection and human target detection on each second object image to be identified in the queue of the second object images to be identified to obtain a human bounding box and a face bounding box; calculating the IOU ratio between the human bounding box and the face bounding box of each second object image to be identified; and determining whether to include the corresponding second object image to be identified into the queue of the second target object images based on a comparison between the IOU ratio of each second object image to be identified and a preset threshold.
[0095] It should be understood that in the technical solution of the present application, based on the IOU ratio, it can be confirmed whether the targets selected by the human body bounding box and the face bounding box belong to the same object target. Therefore, target screening is performed based on the comparison between the IOU ratio and the preset threshold. That is, based on the IOU ratio, a queue of first target object images is extracted from the queue of the first object images to be identified and a queue of second target object images is extracted from the queue of the second object images to be identified, so that image frames that do not belong to the same target object in the queue of the first object images to be identified and the queue of the second object images to be identified are proposed.
[0096] Furthermore, in the above-mentioned cross-domain personnel identification and matching method, it extracts the queues of target object images under different cameras by intelligently identifying and detecting human faces and human targets, and applying the target IOU relationship between the two. Then, after performing feature capture and cluster analysis on the queues of target object images under different cameras respectively through an image processing algorithm based on artificial intelligence and deep learning, the similarity between the target object face clustering semantics of the two is used to determine whether the target object is the same object, thereby assigning a corresponding identity tag to the target object. In this way, the identities of cross-domain personnel can be better identified and matched, and there is no need to perform face recognition on each image, which reduces the consumption of computing resources, improves the accuracy and efficiency of recognition, and helps to build and track personnel trajectories.
[0097] In particular, after extracting the queue of the object images to be identified from the queue of the object images to be identified based on face target detection and human target detection, in order to be able to analyze and compare the semantics of the sequence images of the target objects collected by the two under different cameras, so as to confirm whether the target objects in the images are the same object, it is necessary to extract the face semantics and clustering features in the sequence images. Specifically, face feature extraction and cluster analysis are performed on the queue of the first target object images to obtain the first target object face cluster representation vector. It is worth mentioning that here, face feature extraction can extract features from the image that help distinguish different individuals. These features usually include the position and shape information of facial key points such as eyes, nose, mouth, etc., as well as more subtle texture and color differences, which help to distinguish different faces. In cross-domain personnel recognition, accurate and discriminative face features are crucial to ensure the accuracy of matching. Through cluster analysis, the face semantic features contained in each target object image can be clustered, thereby improving the expressiveness of the features and helping to improve the accuracy of cross-domain personnel recognition matching.
[0098] Based on this, Figure 3As shown, facial feature extraction and cluster analysis are performed on the queue of the first target object images to obtain a first target object face cluster representation vector, including: S541, inputting each first target object image in the queue of the first target object images into a facial feature extractor based on a hole convolutional neural network model to obtain a queue of first target object face feature maps; S542, inputting each first target object face feature map in the queue of the first target object face feature map into a feature attention selection enhancement module based on a compression-suppression structure to obtain a queue of enhanced first target object face feature maps; S543, respectively calculating the global mean vector of each enhanced first target object face feature map in the queue of enhanced first target object face feature maps to obtain a queue of enhanced first target object face feature vectors; S544, inputting the queue of enhanced first target object face feature vectors into a feature distribution inverse mask cluster analysis network to obtain the first target object face cluster representation vector.
[0099] Specifically, in the technical solution of the present application, in the process of performing facial feature extraction and cluster analysis on the queue of the first target object images, first, each first target object image in the queue of the first target object images is respectively input into a facial feature extractor based on a dilated convolutional neural network model for feature mining, so as to respectively extract the implicit facial feature distribution information about the target object in each of the first target object images, thereby obtaining a queue of first target object facial feature maps. It should be understood that through the dilated convolutional neural network, key features in facial images, such as the position and shape of facial key points such as eyes, nose, and mouth, can be accurately extracted, and these features are indispensable in the recognition and matching process.
[0100] Then, considering that in the face recognition task, since the target object image may contain a large amount of redundant information and noise, it is necessary to select and enhance the facial feature distribution information to improve the accuracy of subsequent face recognition and identity matching. Based on this, in the technical solution of the present application, each first target object face feature map in the queue of the first target object face feature map is further input into the feature attention selection and enhancement module based on the compression-suppression structure to obtain a queue of enhanced first target object face feature maps. Specifically, the feature attention selection and enhancement module based on the compression-suppression structure compresses the facial feature information contained in each feature matrix of the first target object face feature map along the channel dimension by using global average pooling, and captures the correlation information between the compressed information by one-dimensional convolutional coding, and then extracts features through a multi-layer perceptron composed of two fully connected layers and SiLU activation functions, and then normalizes the extracted features to obtain weight values of different channels, and finally combines the weight values to perform feature amplification and suppression operations on the first target object face feature map, so as to enhance the network's ability to recognize and select features of important face regions in the feature map, so as to emphasize the important parts of the feature map. For example, it can help the model focus on key areas of the face, such as the eyes, nose, and mouth, which are crucial for face recognition. In particular, the SiLU activation function, compared to the original ReLU activation function, has the characteristics of no upper bound, lower bound, smoothness, and non-monotonicity, which can improve the training effect and performance of deep networks. Through the processing of the feature attention selection and enhancement module based on the compression-suppression structure, redundant or unimportant image features can be effectively removed, and only the most representative and discriminative facial semantic features are retained, thereby enhancing the representation ability of the features. This selective feature extraction helps to reduce the interference of noise and irrelevant information.
[0101] Correspondingly, in step S542, each first target object face feature map in the queue of the first target object face feature map is respectively input into the feature attention selection and enhancement module based on the compression-suppression structure to obtain a queue of enhanced first target object face feature maps, including: calculating the global mean of each feature matrix along the channel dimension of the first target object face feature map to obtain a first target object face feature compression information representation vector; performing one-dimensional convolution encoding on the first target object face feature compression information representation vector to obtain a first target object face compression information association representation feature vector; cascading the first target object face feature compression information representation vector and the first target object face compression information association representation feature vector to obtain a first target object face compression information multi-scale representation vector; using the first target object face feature compression information representation vector and the first target object face compression information association representation feature vector to obtain a first target object face compression information multi-scale representation vector; The negative number of the eigenvalue at each position in the multi-scale association feature vector of face compression information is used as the exponent of the natural constant to calculate the position-based exponential function value with the natural constant as the base to obtain the first target object face compression information multi-scale association class support feature vector; the reciprocal of the sum of the eigenvalue at each position in the first target object face compression information multi-scale association class support feature vector and the constant one is calculated to obtain the first target object face weight feature vector; the first target object face compression information multi-scale association feature vector is normalized using the Sigmoid function to obtain the first target object face weight feature vector; the eigenvalue at each position in the first target object face weight feature vector is multiplied by each feature matrix along the channel dimension of the first target object face feature map by position to obtain an enhanced first target object face feature map.
[0102] In a specific example, each first target object face feature map in the queue of the first target object face feature map is input into a feature attention selection and enhancement module based on a compression-suppression structure to obtain a queue of enhanced first target object face feature maps, including: each first target object face feature map in the queue of the first target object face feature map is input into the feature attention selection and enhancement module based on a compression-suppression structure to process the first target object face feature map using the following feature attention selection and enhancement formula to obtain the queue of enhanced first target object face feature maps; wherein the feature attention selection and enhancement formula is:
[0103]
[0104]
[0105]
[0106] in, is the facial feature map of the first target object, Represents the facial feature map of the first target object No. The coordinates in the channel are The eigenvalues of a point, and are the height and width of the facial feature map of the first target object, respectively, is the facial feature compression information representation vector of the first target object, is a one-dimensional convolutional code, It is to cascade the vectors. is the multi-scale representation vector of the face compression information of the first target object, is a multi-layer perceptron, represents positional multiplication, It is each enhanced first target object facial feature map in the queue of enhanced first target object facial feature maps.
[0107] Further, since each enhanced first target object face feature map in the queue of the enhanced first target object face feature map contains the distribution information of the face features of the first target object taken at different times after being enhanced and highlighted, these features have associated semantics, and this associated semantics can well reflect the facial features and information of the target object, which is helpful for cross-domain personnel recognition and matching. Based on this, in the technical solution of the present application, the global mean vector of each enhanced first target object face feature map in the queue of the enhanced first target object face feature map is further calculated to obtain a queue of enhanced first target object face feature vectors, and the queue of enhanced first target object face feature vectors is input into the feature distribution reverse mask clustering analysis network to obtain the first target object face clustering representation vector. It should be understood that by calculating the global mean vector of each enhanced first target object face feature map, it is helpful to extract the overall face semantic feature information, so as to convert each enhanced face feature map into a compact and representative feature vector. These feature vectors contain important features and global semantic information of the face image, which is helpful for subsequent feature analysis and clustering. By calculating the global mean vector, the dimension of the features can be effectively reduced, redundant information can be removed, and the key features of the face can be retained, which helps to improve computational efficiency and reduce the complexity of subsequent steps.
[0108] In particular, the feature distribution reverse mask cluster analysis network can analyze the queue of the enhanced first target object face feature vector through a clustering algorithm to identify the internal structure therein and extract a representative cluster center vector. Next, the semantic correlation coefficient between each enhanced first target object face feature vector and the cluster center is calculated to quantify the similarity between them. By taking the reciprocal of these correlation coefficients, the semantic anti-correlation coefficient is obtained to emphasize the facial semantic features that are significantly different from the cluster center. Subsequently, the anti-correlation coefficients are normalized using a Sigmoid function to ensure that the weight coefficients are within a reasonable range, providing a balanced weight distribution for subsequent facial semantic feature weighting. The weighting step generates a queue of the suppressed enhanced first target object face feature vector by applying the normalized weight coefficients to the original feature vector. This process realizes the reverse screening of feature components to screen out feature components in the feature distribution that are more likely to be interference components or noise distributions. By calculating the difference between the enhanced face feature vector of the first target object and the suppressed enhanced face feature vector of the first target object, the feature components that are interference components or noise components in the feature distribution are filtered out, thereby more accurately representing the face cluster feature information of the target object. Finally, by calculating the mean vector of the queue of the filtered enhanced face feature vector of the first target object, the face cluster representation vector of the first target object is obtained. This operation integrates all the enhanced features to form a key feature vector that can represent the entire data set. In this way, a richer and more discriminative representation of the face features of the target object can be provided, thereby enhancing the generalization ability of the model and the cross-domain person recognition performance.
[0109] Correspondingly, in step S544, the queue of the enhanced first target object facial feature vectors is input into the feature distribution reverse mask clustering analysis network to obtain the first target object facial cluster representation vector, including: calculating the cluster mean vector of the queue of the enhanced first target object facial feature vectors to obtain the enhanced first target object facial semantic cluster center feature vector; respectively calculating the norms of the enhanced first target object facial feature vector and the enhanced first target object facial semantic cluster center feature vector to obtain the enhanced first target object facial one-norm representation value and the enhanced first target object facial semantic cluster center one-norm representation value; calculating the enhanced first target object facial one-norm representation value and the enhanced first target object facial semantic cluster center one-norm representation value. The method comprises the following steps: calculating the product of the values of the semantic cluster center-norm representation to obtain the value of the semantic correlation between the semantics of the face of the first target object and the cluster center; calculating the multiplication between the transposed vector of the enhanced face feature vector of the first target object and the feature vector of the enhanced face semantic cluster center to obtain the feature value of the semantic correlation between the semantics of the face of the first target object and the cluster center; calculating the division between the feature value of the semantic correlation between the semantics of the face of the first target object and the value of the semantic correlation between the semantics of the face of the first target object and the norm representation to obtain the semantic correlation coefficient of the face cluster center of the first target object; taking each enhanced feature in the sequence of the semantic correlation coefficient of the face cluster center of the first target object The reciprocal of the semantic correlation coefficient of the first target object face cluster center is calculated to obtain a sequence of the semantic anti-correlation coefficients of the first target object face cluster center; the negative of each of the strengthened semantic anti-correlation coefficients of the first target object face cluster center in the sequence of the strengthened semantic anti-correlation coefficients of the first target object face cluster center is used as the exponent of the natural constant to calculate the exponential function value based on the natural constant according to the position to obtain a sequence of the semantic anti-correlation class support coefficients of the first target object face cluster center; the reciprocal of the sum of each of the strengthened semantic anti-correlation class support coefficients of the first target object face cluster center in the sequence of the strengthened semantic anti-correlation class support coefficients of the first target object face cluster center and the constant 1 is calculated to obtain the sequence of the strengthened semantic anti-correlation class support coefficients of the first target object face cluster center The method comprises the following steps: determining a sequence of semantic anti-correlation weight coefficients of the face cluster centers of the first target object; using each of the semantic anti-correlation weight coefficients of the face cluster centers of the first target object in the sequence of the semantic anti-correlation weight coefficients of the face cluster centers of the first target object as a weight, weighting each of the enhanced first target object face feature vectors in the sequence of the enhanced first target object face feature vectors to obtain a sequence of suppressed enhanced first target object face feature vectors; calculating the positional difference between each group of corresponding enhanced first target object face feature vectors and suppressed enhanced first target object face feature vectors in the sequence of the enhanced first target object face feature vectors and the sequence of suppressed enhanced first target object face feature vectors to obtain a sequence of filtered enhanced first target object face feature vectors;Calculate the position mean vector of the sequence of the screened and enhanced first target object face feature vectors to obtain the first target object face cluster representation vector. ;
[0110] In a specific example, the queue of the enhanced first target object face feature vectors is input into a feature distribution reverse mask clustering analysis network to obtain the first target object face cluster representation vector, including: inputting the queue of the enhanced first target object face feature vectors into the feature distribution reverse mask clustering analysis network to process the first target object face cluster representation vector according to the following clustering analysis formula; wherein the clustering analysis formula is:
[0111]
[0112]
[0113]
[0114]
[0115]
[0116]
[0117]
[0118]
[0119] in, is the queue of the enhanced first target object face feature vector, is the first in the queue of the enhanced first target object face feature vector Enhanced facial feature vector of the first target object, is the number of vectors in the queue of the enhanced first target object face feature vector, To strengthen the semantic clustering center feature vector of the first target object face, is the one-norm of the vector, For the said The semantic correlation coefficient between the enhanced first target object face feature vector and the enhanced first target object face semantic cluster center feature vector, For the said The semantic anti-correlation coefficient corresponding to the facial feature vector of the first target object is enhanced. For the said The semantic anti-correlation weight coefficient corresponding to the facial feature vector of the first target object is enhanced, For the said The suppressed and enhanced first target object face feature vectors corresponding to the enhanced first target object face feature vectors, To suppress and strengthen the sequence of the facial feature vector of the first target object, To screen and strengthen the facial feature vector of the first target object, To filter and strengthen the sequence of facial feature vectors of the first target object, A face cluster representation vector for the first target object.
[0120] Further, in step S550, facial feature extraction and cluster analysis are performed on the queue of the second target object images to obtain a second target object face cluster representation vector, including: inputting each second target object image in the queue of the second target object images into a facial feature extractor based on a hole convolutional neural network model to obtain a queue of second target object face feature maps; inputting each second target object face feature map in the queue of the second target object face feature maps into a feature attention selection enhancement module based on a compression-suppression structure to obtain a queue of enhanced second target object face feature maps; calculating the global mean vector of each enhanced second target object face feature map in the queue of enhanced second target object face feature maps to obtain a queue of enhanced second target object face feature vectors; inputting the queue of enhanced second target object face feature vectors into a feature distribution inverse mask cluster analysis network to obtain the second target object face cluster representation vector.
[0121] Furthermore, in the technical solution of the present application, the cross-domain personnel identification and matching method also includes a training step: for training the face feature extractor based on the void convolutional neural network model, the feature attention selection and enhancement module based on the compression-suppression structure, and the feature distribution reverse mask clustering analysis network.
[0122] Wherein, the training step includes: obtaining training data, the training data including a queue of first training object images to be identified collected by a first camera, a queue of second training object images to be identified collected by a second camera, and true hash similarity; based on face target detection and human target detection, extracting a queue of first training target object images from the queue of the first training object images to be identified and extracting a queue of second training target object images from the queue of the second training object images to be identified; inputting each first training target object image in the queue of the first training target object images into the face feature extractor based on the hole convolutional neural network model to obtain a queue of first training target object face feature maps; Each first training target object face feature map in the queue of the first training target object face feature map is respectively input into the feature attention selection and enhancement module based on the compression-suppression structure to obtain a queue of enhanced first training target object face feature maps; the global mean vector of each enhanced first training target object face feature map in the queue of the enhanced first training target object face feature map is respectively calculated to obtain a queue of enhanced first training target object face feature vectors; the queue of enhanced first training target object face feature vectors is input into the feature distribution reverse mask clustering analysis network to obtain a first training target object face cluster representation vector; each second training target object image in the queue of the second training target object image is divided into The invention relates to a method for extracting facial features of a second training target object and a facial feature extractor based on a dilated convolutional neural network model. The method comprises the following steps: first, inputting the facial feature extractor based on a dilated convolutional neural network model to obtain a queue of facial feature maps of a second training target object; second, inputting the facial feature maps of the second training target object in the queue of facial feature maps of the second training target object respectively into the feature attention selection and enhancement module based on a compression-inhibition structure to obtain a queue of enhanced facial feature maps of the second training target object; second, calculating the global mean vector of each enhanced facial feature map of the second training target object in the queue of enhanced facial feature maps of the second training target object respectively to obtain a queue of enhanced facial feature vectors of the second training target object; and inputting the queue of enhanced facial feature vectors of the second training target object into the feature distribution reverse mask clustering analysis network to obtain A second training target object face cluster representation vector; calculating the predicted hash similarity between the first training target object face cluster representation vector and the second training target object face cluster representation vector; calculating the difference loss function between the true hash similarity and the predicted hash similarity; based on the difference loss function, training the face feature extractor based on the void convolutional neural network model, the feature attention selection enhancement module based on the compression-suppression structure, and the feature distribution inverse mask cluster analysis network, wherein, at each iteration of the training, the first training target object face cluster representation vector and the second training target object face cluster representation vector are optimized based on the predicted hash similarity.
[0123] Specifically, in the technical solution of the present application, the queue of facial feature vectors for the first training target object is further enhanced based on the compression-suppression structure on the basis of the image semantic feature representation of the first training object image by the queue of the first training object image to be identified, so that the queue of facial feature vectors for the first training target object has a priori-posterior image semantic probability causal association missing relative to the queue of the first training object image to be identified. Similarly, the queue of facial feature vectors for the second training target object is missing a priori-posterior image semantic probability causal association missing relative to the queue of the second training object image to be identified. Inputting the queue of facial feature vectors for the first training target object and the queue of facial feature vectors for the second training target object into the feature distribution reverse mask clustering analysis network will further amplify the priori-posterior image semantic probability causal association missing of the obtained high-dimensional feature representation relative to the image source domain distribution. Thus, when calculating the similarity, such as hash similarity, between the first training target object face cluster representation vector and the second training target object face cluster representation vector, there is a missing mapping association to the common hash similarity domain, which affects the calculation accuracy of the hash similarity.
[0124] Therefore, during the training process, the applicant of the present application optimizes the first training target object face cluster representation vector and the second training target object face cluster representation vector based on the predicted hash similarity at each iteration of the first training target object face cluster representation vector and the second training target object face cluster representation vector, that is, when the model is back-propagated based on gradient descent parameter update based on the difference loss function between the true hash similarity and the predicted hash similarity, including: activating each feature value of the first training target object face cluster representation vector and the second training target object face cluster representation vector based on probability Function, such as probabilistic softmax function, to obtain each probabilistic feature value; determine the cognitive symbol value based on the comparison of each probabilistic feature value with the predicted hash similarity, wherein the cognitive symbol value is equal to one, zero and negative one in response to each probabilistic feature value being greater than, equal to and less than the predicted hash similarity, respectively; multiply each probabilistic feature value by the cognitive symbol value and a first weight as a hyperparameter, and multiply each probabilistic feature value by a feature mean of each probabilistic feature value and a second weight as a hyperparameter, and then perform difference calculation on the two products and take the absolute value to obtain the optimized feature value.
[0125] Optimizing the first training target object face cluster representation vector and the second training target object face cluster representation vector based on the predicted hash similarity, comprising: optimizing the first training target object face cluster representation vector and the second training target object face cluster representation vector based on the predicted hash similarity using the following optimization formula; wherein the optimization formula is:
[0126]
[0127]
[0128] in, are the probabilistic eigenvalues of the first training target object face cluster representation vector and the second training target object face cluster representation vector, is the predicted hash similarity, is the cognitive symbol function, and is a hyperparameter, is the characteristic mean of each probabilized eigenvalue, It is the probabilistic feature value of the first training target object face cluster representation vector and the second training target object face cluster representation vector after optimization.
[0129] That is, by comparing the probabilistic amplitude of the eigenvalues of the first training target object face cluster representation vector and the second training target object face cluster representation vector with the predicted hash similarity, the hash similarity cognitive phase transformation response of the first training target object face cluster representation vector and the second training target object face cluster representation vector is obtained, and the phase shift response of the eigenvalues of the first training target object face cluster representation vector and the second training target object face cluster representation vector relative to the hash similarity representation of the feature as a whole is subjected to a feature distribution sequence invariance transformation based on differential distribution expansion, so as to realize the causal constraint of the posterior-prior image semantic feature distribution representation of the first training target object face cluster representation vector and the second training target object face cluster representation vector, and compensate for the mapping association loss when the first training target object face cluster representation vector and the second training target object face cluster representation vector are mapped to the common hash similarity domain, thereby improving the calculation accuracy of the hash similarity. In this way, it is possible to better judge whether the target objects under different cameras are the same object, so as to identify and match the identities of cross-domain personnel, which is helpful for the construction and tracking of personnel trajectories.
[0130] Based on the above embodiments, see Figure 4The figure is a schematic diagram of the structure of a cross-domain personnel identification and matching device 800 in an embodiment of the present application. The cross-domain personnel identification and matching device 800 includes: a first queue acquisition module 810 for acquiring a queue of first object images to be identified acquired by a first camera; a second queue acquisition module 820 for acquiring a queue of second object images to be identified acquired by a second camera; a target detection module 830 for extracting a queue of first target object images from the queue of the first object images to be identified and a queue of second target object images from the queue of the second object images to be identified based on face target detection and human target detection; a first feature extraction and cluster analysis module 840 for performing clustering analysis on the first target object images; The queue performs facial feature extraction and cluster analysis to obtain a first target object face cluster representation vector; a second feature extraction and cluster analysis module 850 is used to perform facial feature extraction and cluster analysis on the queue of the second target object image to obtain a second target object face cluster representation vector; a similarity module 860 is used to calculate the similarity between the first target object face cluster representation vector and the second target object face cluster representation vector; a calculation module 870 is used to confirm whether the target object in the queue of the first target object image and the target object in the queue of the second target object image are the same object based on the comparison between the similarity and a preset threshold.
[0131] Here, those skilled in the art can understand that the specific functions and operations of each module in the above-mentioned cross-domain personnel identification and matching device 800 have been referred to above. Figure 2 to Figure 3 The cross-domain personnel identification and matching method has been introduced in detail in the description of the cross-domain personnel identification and matching method, and therefore, its repeated description will be omitted.
[0132] Figure 5 FIG. 1 is an application scenario diagram of the cross-domain personnel identification and matching method according to an embodiment of the present application. Figure 5 As shown, in this application scenario, first, a queue of first to-be-recognized object images captured by a first camera is obtained (for example, Figure 5 D1 as shown in FIG. 1 ) and a queue of second to-be-recognized object images captured by a second camera (eg, Figure 5 Then, the queue of the first to-be-recognized object images and the queue of the second to-be-recognized object images are input to a server (for example, Figure 5 In S) as shown in , the server is able to use the cross-domain personnel recognition matching algorithm to process the first queue of object images to be identified and the second queue of object images to be identified to confirm whether the target object in the queue of the first target object image and the target object in the queue of the second target object image are the same object.
[0133] Based on the above embodiments, another exemplary embodiment of an electronic device is also provided in the embodiments of the present application. In some possible implementations, the electronic device in the embodiments of the present application may include a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor can implement the steps of the cross-domain personnel identification and matching method in the above embodiments when executing the program.
[0134] For example, in the case of electronic equipment Figure 1 Taking the server 100 in the example as an example, the processor in the electronic device is the processor 110 in the server 100, and the memory in the electronic device is the memory 120 in the server 100.
[0135] Example 2
[0136] Furthermore, in one embodiment of the present application, a cross-domain personnel identification and matching method is also provided. The cross-domain personnel identification and matching method comprises: step 1, storage of a queue to be identified. Capture human body / face information through the lens, save as a target sequence according to the target's IOU relationship, and assign pseudo labels. Step 2, face quality optimization. Select high-quality pictures as face recognition input to improve the credibility of face recognition results. Step 3, face recognition. Extract facial features from clear front faces, perform face comparison in the personnel base database, and identify personnel identity information. Step 4, match human body ID. Match the identified front face with the human body, calculate the IOU of the face frame and the human body frame, and if the threshold is exceeded, the face and the human body are regarded as the same person ID. Step 5, sort the difficulty of unrecognized sequences. Step 6, compare the average features of unknown ID sequences, and assign cross-domain personnel identification IDs.
[0137] Accordingly, the method has the following beneficial effects: 1. The target queue only needs to perform face recognition once to complete the face identity information verification of all targets. The pseudo-label method stores the targets of the same identity in the same queue, so only one face recognition is needed to match all identity ID information for the queue. This method can save computing resources to a great extent and has reliable accuracy. Even if the face information is lost, the identity can still be confirmed in the form of pseudo-labels in the queue. 2. Use the reid method and sort by difficulty to allocate cross-domain identity IDs. There are few cases where the face of the monitoring perspective meets the recognition requirements. Therefore, in cross-domain scenarios, the queues of multiple camera perspectives are first sorted by difficulty, and then the reid method is used to confirm the identity similarity. The queues are compared from easy to difficult in turn. If the similarity exceeds the threshold, the identity feature vector is updated and then compared with the next step. This method can take into account the temporal changes in the perspective, and the comparison results have higher credibility and recall rate.
[0138] Specifically, four queues Q1 to Q4 are first provided, and multiple images are stored in each queue. At the current four cross-domain viewing times, the best face is selected from each queue Q for face recognition. When only the first face of Q3 and the last face of Q4 meet the face recognition requirements, Q4 is directly assigned an id. After Q3 is assigned an id, the human feature vectors of Q3 and Q4 are matched. Among them, due to the reordering relationship, the human posture orientation is analyzed, and Q1 is on the back, so the score is low. Q2 has a higher sorting priority, and Q1 is slightly behind. Q3 successfully matches Q2, and then successfully matches Q1, so the face id of Q3 is assigned to Q2 and Q1. Q4 does not match the human feature information, so the face id does not need to be assigned to the cross-domain event.
[0139] More specifically, in step 1: multi-view cameras capture human / face events to form a cross-domain time series queue to be identified . qi is all events at time T from a single perspective, including snapshots of faces and human figures. The captured face / human events are assigned to a time series queue by calculating whether the iou of the context target detection box exceeds the threshold, and a pseudo label id is assigned to each q. For face and human events at the same time, when the face area is within the human body area, the two events are considered to be the same target.
[0140] In step 2: filter out low-quality images of recorded face events, and do not send images that do not meet the face recognition requirements to the recognition module to save computing resources, such as blurry, severely blocked, etc. N frontal, clear and unobstructed faces are selected for recognition.
[0141] In step 3: send the pictures that meet the requirements to the recognition module, select res50 as the arcface method of the backbone network in the face recognition module to extract the unique feature vector of the face, use it as the query content, match it with the pre-entered personnel information base, calculate the similarity between the feature vectors, find the maximum score and determine whether it exceeds the set threshold to obtain the matched identity information. In the face sequence events to be identified, the most recognition results are used as the final result to ensure the elimination of accidental errors. When several face events in the face sequence are successfully identified, an id can be assigned to all events in the face sequence. In step 1, the face and the human body have been paired in advance, so when the face obtains the personnel information, the corresponding human body sequence is also assigned the same personnel id information.
[0142] In step 4: reorder cross-domain human temporal events. Since the movement of the human body in space is a time-varying process, the spatial position relationship under different cameras cannot be distinguished in cross-domain scenarios. When there are large differences in posture and relative angle during re-identification, wrong recognition results may occur. Therefore, reordering cross-domain scene data is of great significance. It can make the re-identification process from easy to difficult, which is in line with the personnel tracking logic of actual scenarios.
[0143] In this link, human posture is inserted as the main basis for reordering human temporal events. First, the average posture angle of the human sequence with known identity ID is calculated and used as the sorting basis. Then the average posture angle of the human sequence with unmatched ID across domains is calculated. The difference is compared with the benchmark as the basis for reordering, and the difference is sorted from small to large for re-identification. When the difference is small, it is considered that the cross-domain difficulty is small, and the difference between domains is small and in the adjacent interval of the time-varying process. When the difference is large, it is considered that the difference between domains is large, and it is difficult to re-identify directly.
[0144] In step 5: After reordering, first extract the unique human feature vector of the human time series event. This vector can reflect the unique feature information of the human body, and calculate the average of all human feature vectors under the pseudo label as the feature vector of the pseudo label. Then compare the feature similarity according to the order after sorting. If it exceeds the threshold, the cross-domain match is successful. At the same time, the matched feature vector and the query feature vector need to be self-learned and weighted updated as a new feature vector. Finally, the updated feature vector is compared in sequence. If it exceeds the threshold, it is self-learned and updated. If it does not exceed the threshold, it is regarded as an unrecognized target and the pseudo label continues to be used.
[0145] Those skilled in the art will appreciate that the contents disclosed in this application may be subject to various variations and improvements. For example, the various devices or components described above may be implemented by hardware, or by software, firmware, or a combination of some or all of the three.
[0146] In addition, although the present application makes various references to certain units in the system according to embodiments of the present application, any number of different units can be used and run on the client and / or server. The units are only illustrative, and different aspects of the system and method can use different units.
[0147] Those skilled in the art will appreciate that all or part of the steps in the above method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk. Optionally, all or part of the steps in the above embodiment can also be implemented using one or more integrated circuits. Accordingly, each module / unit in the above embodiment can be implemented in the form of hardware or in the form of software function modules. The present application is not limited to any particular form of combination of hardware and software.
[0148] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art to which this application belongs. It should also be understood that terms such as those defined in common dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant technology, and should not be interpreted in an idealized or extremely formal sense, unless explicitly defined as such herein.
[0149] The above is an explanation of the present application and should not be considered as limiting thereof. Although several exemplary embodiments of the present application have been described, those skilled in the art will readily appreciate that many modifications may be made to the exemplary embodiments without departing from the novel teachings and advantages of the present application.
Claims
1. A cross-domain personnel identification and matching method, characterized in that: include: Acquire a queue of first to-be-recognized object images captured by a first camera; Acquire a queue of second to-be-recognized object images captured by a second camera; Based on face target detection and human target detection, extracting a queue of first target object images from the queue of the first object images to be identified and extracting a queue of second target object images from the queue of the second object images to be identified; Performing facial feature extraction and cluster analysis on the queue of the first target object images to obtain a first target object face cluster representation vector; Performing facial feature extraction and cluster analysis on the queue of the second target object images to obtain a second target object face cluster representation vector; Calculating the similarity between the first target object face cluster representation vector and the second target object face cluster representation vector; Based on a comparison between the similarity and a preset threshold, determining whether a target object in the queue of the first target object image and a target object in the queue of the second target object image are the same object; The step of performing facial feature extraction and cluster analysis on the queue of the first target object images to obtain a first target object face cluster representation vector includes: Inputting each first target object image in the queue of the first target object images into a face feature extractor based on a dilated convolutional neural network model to obtain a queue of first target object face feature images; Inputting each first target object face feature map in the queue of the first target object face feature map into a feature attention selection and enhancement module based on a compression-suppression structure to obtain a queue of enhanced first target object face feature maps; Respectively calculating the global mean vector of each enhanced first target object face feature map in the queue of enhanced first target object face feature maps to obtain a queue of enhanced first target object face feature vectors; Inputting the queue of enhanced first target object face feature vectors into a feature distribution reverse mask clustering analysis network to obtain the first target object face cluster representation vector; The method of inputting each first target object face feature map in the queue of the first target object face feature map into a feature attention selection and enhancement module based on a compression-suppression structure to obtain a queue of enhanced first target object face feature maps includes: Calculating the global mean of each feature matrix of the first target object face feature map along the channel dimension to obtain a first target object face feature compression information representation vector; Performing one-dimensional convolution encoding on the first target object face feature compression information representation vector to obtain a first target object face compression information correlation representation feature vector; Cascading the first target object face feature compression information representation vector and the first target object face compression information association representation feature vector to obtain the first target object face compression information multi-scale representation vector; Using the negative number of the eigenvalue of each position in the multi-scale associated eigenvector of the first target object face compression information as the exponent of the natural constant to calculate the exponential function value based on the natural constant according to the position to obtain the multi-scale associated class support eigenvector of the first target object face compression information; Calculating the reciprocal of the sum of the eigenvalues of each position in the multi-scale association class support eigenvector of the first target object face compression information and a constant one to obtain a first target object face weight eigenvector; Using a Sigmoid function to normalize the multi-scale associated feature vector of the first target object face compression information to obtain a first target object face weight feature vector; The eigenvalues at each position in the first target object face weighted feature vector are multiplied by each feature matrix along the channel dimension of the first target object face feature map by position to obtain an enhanced first target object face feature map.
2. The cross-domain personnel identification and matching method according to claim 1, characterized in that: Based on face target detection and human target detection, extracting a queue of first target object images from the queue of the first object images to be identified and extracting a queue of second target object images from the queue of the second object images to be identified, comprising: Performing face target detection and human target detection on each first object image to be identified in the queue of the first object images to be identified to obtain a human body bounding box and a face bounding box; Calculating the IOU ratio between the human body bounding box and the face bounding box of each first object to be identified image; Based on the comparison between the IOU ratio of each first to-be-recognized object image and a preset threshold, it is determined whether to include the corresponding first to-be-recognized object image into the queue of the first target object image.
3. The cross-domain personnel identification and matching method according to claim 2, characterized in that: Performing face target detection and human target detection on each first object image to be identified in the queue of the first object images to be identified to obtain a human body bounding box and a face bounding box, including: The first to-be-recognized object images are respectively input into a face target detection network and a human target detection network to obtain the human body bounding box and the face bounding box.
4. The cross-domain personnel identification and matching method according to claim 2, characterized in that: Calculating the IOU ratio between the human body bounding box and the face bounding box of each first to-be-recognized object image, comprising: The IOU ratio between the human body bounding box and the face bounding box of each first object to be identified image is calculated using the following ratio calculation formula; Wherein, the ratio calculation formula is: , in, represents the intersection area, which is the area of the intersection between the human body bounding box and the face bounding box, represents a union area, where the union area is the area of the union between the human body bounding box and the face bounding box.
5. The cross-domain personnel identification and matching method according to claim 2, characterized in that: Based on face target detection and human target detection, extracting a queue of first target object images from the queue of the first object images to be identified and extracting a queue of second target object images from the queue of the second object images to be identified, comprising: Performing face target detection and human target detection on each second object image to be identified in the queue of the second object images to be identified to obtain a human body bounding box and a face bounding box; Calculating the IOU ratio between the human body bounding box and the face bounding box of each second object to be identified image; Based on the comparison between the IOU ratio of each second to-be-recognized object image and a preset threshold, it is determined whether to include the corresponding second to-be-recognized object image into the queue of the second target object image.
6. The cross-domain personnel identification and matching method according to claim 1, characterized in that: Inputting the queue of the enhanced first target object face feature vectors into a feature distribution reverse mask clustering analysis network to obtain the first target object face cluster representation vector, including: Calculating the cluster mean vector of the queue of the enhanced first target object face feature vector to obtain the enhanced first target object face semantic cluster center feature vector; Respectively calculating the one-norm of the enhanced first target object face feature vector and the one-norm of the enhanced first target object face semantic cluster center feature vector to obtain the one-norm representation value of the enhanced first target object face and the one-norm representation value of the enhanced first target object face semantic cluster center; Calculate the product of the norm representation value of the enhanced first target object face and the norm representation value of the enhanced first target object face semantic cluster center to obtain the norm representation value of the enhanced first target object face semantics-cluster center semantic correlation; Calculating the multiplication between the transposed vector of the enhanced first target object face feature vector and the enhanced first target object face semantic cluster center feature vector to obtain an enhanced first target object face semantic-cluster center semantic correlation feature value; Calculate the division between the enhanced first target object face semantics-cluster center semantic correlation feature value and the enhanced first target object face semantics-cluster center semantic correlation-norm representation value to obtain the enhanced first target object face cluster center semantic correlation coefficient; Taking the reciprocals of the semantic correlation coefficients of the enhanced first target object face cluster centers in the sequence of the semantic correlation coefficients of the enhanced first target object face cluster centers to obtain a sequence of the semantic anti-correlation coefficients of the enhanced first target object face cluster centers; Using the negative number of each enhanced semantic anti-correlation coefficient of the first target object face cluster center in the sequence of enhanced semantic anti-correlation coefficients of the first target object face cluster center as the exponent of the natural constant to calculate the exponential function value based on the natural constant according to the position to obtain the sequence of enhanced semantic anti-correlation class support coefficients of the first target object face cluster center; Calculating the reciprocal of the sum of each of the enhanced first target object face cluster center semantic anti-correlation class support coefficients in the sequence of enhanced first target object face cluster center semantic anti-correlation class support coefficients and a constant one to obtain a sequence of enhanced first target object face cluster center semantic anti-correlation weight coefficients; Using each enhanced first target object face cluster center semantic anti-correlation weight coefficient in the sequence of enhanced first target object face cluster center semantic anti-correlation weight coefficients as a weight, weighting each enhanced first target object face feature vector in the sequence of enhanced first target object face feature vectors to obtain a sequence of suppressed enhanced first target object face feature vectors; Calculating the positional difference between each corresponding group of the enhanced first target object face feature vectors and the suppressed enhanced first target object face feature vectors in the sequence of the enhanced first target object face feature vectors and the sequence of the suppressed enhanced first target object face feature vectors to obtain a sequence of the filtered enhanced first target object face feature vectors; The position-wise mean vector of the sequence of the screened and enhanced first target object face feature vectors is calculated to obtain the first target object face cluster representation vector.
7. The cross-domain personnel identification and matching method according to claim 6, characterized in that: Performing facial feature extraction and cluster analysis on the queue of the second target object images to obtain a second target object face cluster representation vector includes: Inputting each second target object image in the queue of the second target object images into a face feature extractor based on a dilated convolutional neural network model to obtain a queue of second target object face feature images; Inputting each second target object face feature map in the queue of the second target object face feature map into a feature attention selection and enhancement module based on a compression-suppression structure to obtain a queue of enhanced second target object face feature maps; Respectively calculating the global mean vector of each enhanced second target object face feature map in the queue of enhanced second target object face feature maps to obtain a queue of enhanced second target object face feature vectors; The queue of enhanced second target object face feature vectors is input into a feature distribution reverse mask clustering analysis network to obtain the second target object face cluster representation vector.
8. A cross-domain personnel identification and matching device, characterized in that: include: A queue acquisition module of first to-be-recognized object images, used to acquire a queue of first to-be-recognized object images captured by a first camera; A queue acquisition module for second to-be-identified object images, used to acquire a queue of second to-be-identified object images captured by a second camera; A target detection module, configured to extract a queue of first target object images from the queue of the first object images to be identified and extract a queue of second target object images from the queue of the second object images to be identified based on face target detection and human target detection; A first feature extraction and cluster analysis module, configured to perform facial feature extraction and cluster analysis on the queue of the first target object images to obtain a first target object face cluster representation vector; A second feature extraction and cluster analysis module, used for performing facial feature extraction and cluster analysis on the queue of the second target object images to obtain a second target object face cluster representation vector; A similarity module, used to calculate the similarity between the first target object face cluster representation vector and the second target object face cluster representation vector; a calculation module, configured to confirm whether a target object in the queue of the first target object image and a target object in the queue of the second target object image are the same object based on a comparison between the similarity and a preset threshold; The step of performing facial feature extraction and cluster analysis on the queue of the first target object images to obtain a first target object face cluster representation vector includes: Inputting each first target object image in the queue of the first target object images into a face feature extractor based on a dilated convolutional neural network model to obtain a queue of first target object face feature images; Inputting each first target object face feature map in the queue of the first target object face feature map into a feature attention selection and enhancement module based on a compression-suppression structure to obtain a queue of enhanced first target object face feature maps; Respectively calculating the global mean vector of each enhanced first target object face feature map in the queue of enhanced first target object face feature maps to obtain a queue of enhanced first target object face feature vectors; Inputting the queue of enhanced first target object face feature vectors into a feature distribution reverse mask clustering analysis network to obtain the first target object face cluster representation vector; The method of inputting each first target object face feature map in the queue of the first target object face feature map into a feature attention selection and enhancement module based on a compression-suppression structure to obtain a queue of enhanced first target object face feature maps includes: Calculating the global mean of each feature matrix of the first target object face feature map along the channel dimension to obtain a first target object face feature compression information representation vector; Performing one-dimensional convolution encoding on the first target object face feature compression information representation vector to obtain a first target object face compression information correlation representation feature vector; Cascading the first target object face feature compression information representation vector and the first target object face compression information association representation feature vector to obtain the first target object face compression information multi-scale representation vector; Using the negative number of the eigenvalue of each position in the multi-scale associated eigenvector of the first target object face compression information as the exponent of the natural constant to calculate the exponential function value based on the natural constant according to the position to obtain the multi-scale associated class support eigenvector of the first target object face compression information; Calculating the reciprocal of the sum of the eigenvalues of each position in the multi-scale association class support eigenvector of the first target object face compression information and a constant one to obtain a first target object face weight eigenvector; Using a Sigmoid function to normalize the multi-scale associated feature vector of the first target object face compression information to obtain a first target object face weight feature vector; The eigenvalues at each position in the first target object face weighted feature vector are multiplied by each feature matrix along the channel dimension of the first target object face feature map by position to obtain an enhanced first target object face feature map.
9. An electronic device, characterized in that: include: processor; A memory, in which computer program instructions are stored, and when the computer program instructions are executed by the processor, the processor executes the cross-domain personnel identification and matching method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Face data processing method, device and storage medium
CN109086697A
