A pedestrian re-identification method and system

By using multiple neural network models to extract and fuse features in pedestrian re-identification technology, and combining illumination and blur enhancement processing, the problem of sensitivity to illumination and clarity in the existing technology is solved, and the robustness and efficiency of recognition are improved. .

CN112989911BActive Publication Date: 2024-10-15SHENZHEN ORBBEC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011458203.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-10
Publication Date
2024-10-15
Estimated Expiration
2040-12-10

AI Technical Summary

Technical Problem

Existing pedestrian re-identification technology is sensitive to illumination and image clarity, and has poor feature robustness, resulting in low recognition efficiency and inaccuracy.

Method used

Use at least two neural network models with different architectures to extract global and local features of pedestrians, and generate robust fusion features for comparison and identification through feature fusion, illumination and blur enhancement processing, principal component analysis and other methods.

Benefits of technology

The robustness and recognition accuracy of pedestrian re-identification are improved, the database search scope is narrowed, and the recognition efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112989911B_ABST
    Figure CN112989911B_ABST
Patent Text Reader

Abstract

The present invention discloses a pedestrian re-identification method and system, comprising the following steps: obtaining a pedestrian image to be identified and processing it to obtain a pedestrian area image; inputting the pedestrian area image into at least two neural network training models with different architectures to respectively obtain the global features and local features of the pedestrian in the pedestrian area image; fusing the global features and the local features of the pedestrian to obtain the fused features of the pedestrian; comparing the fused features with the features in the pedestrian feature library to perform identification. The present invention compares the fused features with the features in the pedestrian feature library, deletes unreasonable IDs in the pedestrian database, narrows the search range in the database, improves the efficiency and accuracy of pedestrian identification, and greatly improves the robustness of pedestrian re-identification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to a pedestrian re-identification method and system. Background Art

[0002] Person re-identification, also known as pedestrian re-identification, is a technology that uses computer vision technology to determine whether a specific pedestrian exists in an image or video sequence. It is designed to compensate for the visual limitations of fixed cameras by giving a monitored pedestrian image and retrieving the pedestrian image across devices. It can be widely used in intelligent video surveillance, intelligent security and other fields.

[0003] Pedestrian re-identification is a hot topic in computer vision research. It mainly solves the problem of pedestrian recognition and retrieval across cameras and scenes. For example, based on pedestrian data captured by a certain camera or in a certain scene, it is necessary to recognize the pedestrian through another camera or in another scene. This technology can recognize pedestrians based on their clothing, body shape, hairstyle and other information.

[0004] Existing pedestrian re-identification technology generally adopts a single model technology of deep learning, that is, it learns the characteristic distribution of pedestrians through massive data, and then obtains the characteristics of a certain pedestrian, and then performs a large database search based on the characteristics of the pedestrian.

[0005] However, the above-mentioned existing technical methods have certain drawbacks. For example, they are sensitive to lighting, image clarity, etc., and because the human body itself is a non-rigid body, the learned features are not robust, and it is easy to search out wrong pedestrians, resulting in low recognition efficiency and inaccurate recognition.

[0006] The disclosure of the above-mentioned background technology content is only used to assist in understanding the inventive concept and technical solution of the present invention. It does not necessarily belong to the prior art of this patent application. In the absence of clear evidence that the above-mentioned content has been disclosed on the filing date of this patent application, the above-mentioned background technology should not be used to evaluate the novelty and creativity of this application. Summary of the invention

[0007] The object of the present invention is to provide a pedestrian re-identification method and system to solve at least one of the above-mentioned background technical problems.

[0008] To achieve the above object, the technical solution of the embodiment of the present invention is implemented as follows:

[0009] A pedestrian re-identification method comprises the following steps:

[0010] Obtaining a pedestrian image to be identified and processing it to obtain a pedestrian area image;

[0011] Inputting the pedestrian region image into at least two neural network training models with different architectures to respectively obtain global features and local features of pedestrians in the pedestrian region image;

[0012] Fusing the global features and the local features of the pedestrian to obtain a fused feature of the pedestrian;

[0013] The fused features are compared with the features in the pedestrian feature library for identification.

[0014] Furthermore, the method further comprises the steps of:

[0015] The pedestrian area image is processed to obtain a preprocessed image.

[0016] Furthermore, the processing of the pedestrian area image includes:

[0017] The pedestrian area image is subjected to illumination enhancement and / or blur enhancement processing, wherein the pedestrian area image is subjected to brightness and contrast random enhancement processing according to the following formula:

[0018] g(x)=αf(x)+β

[0019] Among them, f(x) is the source image pixel, g(x) is the image pixel output after processing, α is the contrast coefficient, and β is the brightness coefficient.

[0020] Furthermore, the step of inputting the pedestrian region image into at least two neural network training models of different architectures to respectively obtain global features and local features of pedestrians in the pedestrian region image includes:

[0021] The pedestrian area image is input into a global neural network training model for processing to extract the global features; at the same time, the pedestrian area image is segmented into multiple image areas, and the multiple image areas are respectively input into different local neural network training models for processing to extract multiple different local features.

[0022] Furthermore, fusing the global features and the local features of the pedestrian to obtain the fused features of the pedestrian includes:

[0023] The global feature and the multiple different local features are input into a fully connected layer to perform feature fusion processing to obtain the fused feature.

[0024] Furthermore, the method also includes the steps of: after merging different features to perform feature fusion, reducing the dimension of the fused features by using a principal component analysis algorithm, so that the fused features are consistent with the dimensions of pedestrian features in the pedestrian feature library.

[0025] Another technical solution of the embodiment of the present invention is:

[0026] A pedestrian re-identification system includes an image acquisition module, an image feature extraction module, a feature fusion module, and a feature comparison and recognition module; wherein:

[0027] The image acquisition module is used to acquire the pedestrian image to be identified and process it to obtain the pedestrian area image;

[0028] The image feature extraction module is used to input the pedestrian area image into at least two neural network training models with different architectures to respectively obtain the global features and local features of pedestrians in the pedestrian area image;

[0029] The feature comparison and identification module is used to compare the fused features with the features in the pedestrian feature library for identification.

[0030] Furthermore, an image preprocessing module is included to process the pedestrian area image to obtain a preprocessed image.

[0031] Furthermore, the image preprocessing module includes an illumination enhancement processing unit and / or a blur enhancement processing unit for performing illumination enhancement processing and / or blur enhancement processing on the pedestrian area image.

[0032] Furthermore, the feature comparison and identification module includes a feature comparison unit and a time-space information comparison unit; wherein the feature comparison unit is used to perform a similarity comparison between the features in the fused features and the features in the pedestrian feature library; the time-space information comparison unit is used to read the time information and space information of the pedestrian area image, and for the IDs with high similarity in the pedestrian feature library, further perform a time information and space information comparison.

[0033] The beneficial effects of the technical solution of the present invention are:

[0034] Compared with the prior art, the pedestrian re-identification method and system of the present invention compares the fused features with the features in the pedestrian feature library, deletes unreasonable IDs in the pedestrian database, narrows the search range in the database, improves the efficiency and accuracy of pedestrian recognition, and greatly improves the robustness of pedestrian re-identification. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0036] Figure 1is a flow chart of a pedestrian re-identification method according to an embodiment of the present invention;

[0037] Figure 2 is a schematic diagram of the architecture of a pedestrian re-identification method according to an embodiment of the present invention;

[0038] Figure 3 is a schematic diagram of a pedestrian re-identification system according to another embodiment of the present invention. DETAILED DESCRIPTION

[0039] In order to make the technical problems, technical solutions and beneficial effects to be solved by the embodiments of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0040] It should be noted that when a component is referred to as being "fixed to" or "disposed on" another component, it can be directly on the other component or indirectly on the other component. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element. In addition, connection can be used for fixing or for circuit connection.

[0041] It should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the embodiments of the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.

[0042] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0043] Figure 1 A flowchart of a pedestrian re-identification method provided according to an embodiment of the present invention is shown, and the method comprises the following steps:

[0044] Obtaining a pedestrian image to be identified and processing it to obtain a pedestrian area image;

[0045] Inputting the pedestrian region image into at least two neural network training models with different architectures to respectively obtain global features and local features of pedestrians in the pedestrian region image;

[0046] Fusing the global features and the local features of the pedestrian to obtain a fused feature of the pedestrian;

[0047] The fused features are compared with the features in the pedestrian feature library for identification.

[0048] Specifically, the pedestrian image containing the background area information is processed by the pedestrian detection algorithm to obtain the pedestrian area image. In one embodiment, the pedestrian image to be identified is collected by the acquisition device, and the pedestrian image may be a color image, an infrared image, and a depth image. Among them, the acquisition device may be a depth camera based on structured light, binocular, and TOF (time of flight algorithm) technology. In one embodiment, the acquisition device includes a structured light depth camera and a color camera for acquiring depth images, infrared images, and color images. Among them, the acquisition frequencies of the depth images, infrared images, and color images may be the same or different, and are set accordingly according to specific functional requirements, such as cross-collecting depth images, infrared images, and color images at a frequency of 60FPS, or acquiring depth images, infrared images, and color images at 30FPS respectively.

[0049] In one embodiment, the color image, infrared image and depth image collected by the acquisition device are registered, that is, the corresponding relationship between each pixel in the depth image, infrared image and color image is found through the registration algorithm to eliminate the parallax caused by the different spatial positions of the color image, infrared image and depth image. It should be noted that the registration can be completed by a dedicated processor in the acquisition device or by an external processor.

[0050] In one embodiment, the pedestrian image to be identified is pre-stored in a storage device, and the storage device is directly accessed by the control and processor to read the pedestrian image to be identified.

[0051] In one embodiment, the obtained pedestrian image is subjected to a cutout process to remove background area information in the pedestrian image to obtain a pedestrian area image. It should be noted that the existing cutout process technology can be used for the cutout process, which is not particularly limited in this embodiment.

[0052] In one embodiment, the steps further include:

[0053] The pedestrian area image is processed to obtain a preprocessed image; specifically, the pedestrian area image is subjected to illumination enhancement processing, and the brightness and contrast of the pedestrian area image are randomly enhanced according to the following formula:

[0054] g(x)=αf(x)+β

[0055] Among them, f(x) is the source image pixel, g(x) is the image pixel output after processing, α is the contrast coefficient, which is used to control the contrast of the adjusted image; β is the brightness coefficient, which is used to control the brightness of the adjusted image.

[0056] In one embodiment, processing the pedestrian area image further includes: performing blur enhancement processing on the pedestrian area image, and performing random blur enhancement on the pedestrian area image. Among them, median filtering, Gaussian filtering, bilateral filtering, etc. can be randomly used to blur the image. By blurring the image, the entire processing system can also be applied to blurry images, and the system can also perform recognition even if the collected image is very blurry.

[0057] In one embodiment, the preprocessed image is input into at least two neural network training models of different architectures to extract different features, and the different features are merged to perform feature fusion to obtain fused features; wherein the extracted different features include global features and local features; in one embodiment, the local features are at least two.

[0058] In one embodiment, the preprocessed image is input into a global neural network training model for processing to extract global features. At the same time, the preprocessed image is horizontally divided into three areas and respectively input into three local neural network training models for processing to extract different local features and obtain three different local features.

[0059] In one embodiment, referring to Figure 2 As shown in the figure, the image processed by fuzzy enhancement is input into the neural network A training model for processing to obtain the global feature A; at the same time, the image processed by fuzzy enhancement is segmented into multiple image regions. The following takes the horizontal division into three regions as an example. Figure 2 As shown, the image is horizontally divided into three image regions, and the three image regions are respectively input into the neural network B training model, the neural network C training model, and the neural network D training model to obtain local features B, local features C, and local features D, respectively.

[0060] It should be noted that fuzzy enhancement processing is not a necessary step in the embodiments of the present invention. In some embodiments, fuzzy enhancement processing may not be performed. In the case where fuzzy enhancement processing is not performed, the image after illumination enhancement processing is directly input into the neural network A training model for processing or directly segmented to obtain multiple image areas after segmentation.

[0061] In one embodiment, the global feature and multiple local features of the image are fused to obtain a fused feature, wherein the fused feature is uniquely correlated with the pedestrian. Figure 2 As shown in the figure, the global feature A, local feature B, local feature C, and local feature D are fused, and the fusion method adopts the connection method. Specifically, the features are input into the fully connected layer, where the fully connected layer is composed of multiple neurons and connected to the last convolutional layer of each neural network. The fully connected layer is used to connect the above features to generate a feature vector with the same dimension as the number of neurons. Figure 2 In the illustrated embodiment, the global feature and three different local features are input into a fully connected layer, and feature fusion processing is performed to obtain a fused feature.

[0062] In some embodiments, after different features are combined for feature fusion, the fused features are further reduced in dimension using a principal component analysis (PCA) algorithm so that the obtained fused features are consistent with the dimensions of pedestrian features in the pedestrian feature library, so as to improve the efficiency of feature comparison.

[0063] In some embodiments, after the fusion feature is obtained, the recognition is completed by comparing the similarity between the feature in the fusion feature and each feature in the pedestrian feature library. In some embodiments, the time information and spatial information (coordinate information) of each pedestrian area image are read, and the accuracy of recognition is improved by feature comparison, time information comparison and spatial information comparison.

[0064] In some embodiments, the similarity is compared between the features in the fusion features and each feature in the pedestrian feature library, and the similarity is sorted to find the top ten most similar IDs; the time information tu and the spatial information su of the pedestrian image to be retrieved are compared according to the time information t1-t10 and the spatial information s1-s10 of the top ten most similar IDs, because the speed of pedestrians is limited, within a reasonable range, if the speed of pedestrians v = (si-su) / (ti-tu) is not within the reasonable pedestrian speed range, the ID is deleted. According to the similarity from high to low, the rationality is compared one by one, and unreasonable IDs are deleted, so as to improve the recognition accuracy.

[0065] It should be noted that the creative solution of the present invention cannot directly locate the pedestrian to be identified from the pedestrian database, but by deleting unreasonable IDs in the pedestrian database and thereby narrowing the pedestrian search range, the speed, efficiency and robustness of pedestrian identification can be improved.

[0066] Figure 3This is a schematic diagram of a pedestrian re-identification system according to another embodiment of the present invention. The system 300 includes: an image acquisition module 301, an image preprocessing module 302, an image feature extraction module 303, a feature fusion module 304, and a feature comparison and recognition module 305; wherein the image acquisition module 301 is used to acquire the pedestrian image to be identified and process it to obtain a pedestrian area image; the image preprocessing module 302 is used to process the pedestrian area image to obtain a preprocessed image; the image feature extraction module 303 is used to input the pedestrian area image into at least two neural network training models of different architectures to respectively obtain the global features and local features of the pedestrian in the pedestrian area image; the feature fusion module 304 is used to fuse the global features and local features of the pedestrian to obtain the fused features of the pedestrian; the feature comparison and recognition module 305 is used to compare the fused features with the features in the pedestrian feature library for identification.

[0067] Specifically, the image feature extraction module 303 includes at least two different neural network architectures, and different features are extracted from the preprocessed image by constructing different neural network architectures to obtain a global feature map and a local feature map.

[0068] In one embodiment, the image pre-processing module 302 includes a lighting enhancement processing unit 3021 for performing lighting enhancement processing on the pedestrian area image.

[0069] In one embodiment, the image preprocessing module 302 also includes a blur enhancement processing unit 3022 for blur enhancement processing of pedestrian area images. By blurring the image, the entire processing system can also be applied to blurred images. Even if the captured image is very blurry, the system can still perform recognition.

[0070] In one embodiment, the feature comparison and identification module 305 includes a feature comparison unit 3051 for performing a similarity comparison between the feature in the fused feature map and each feature in the pedestrian feature library.

[0071] In one embodiment, the feature comparison and identification module 305 includes a time-space information comparison unit 3052 for reading the time information and space information of the pedestrian area image. For IDs with high similarity in the pedestrian feature library, the time information and space information are further compared to improve the accuracy of recognition.

[0072] In one embodiment, a storage unit is further included to store the acquired pedestrian area image and the time information and space information of the pedestrian area image.

[0073] It should be noted that the pedestrian re-identification system of the embodiment of the present invention is used to execute the pedestrian re-identification method of the aforementioned embodiment. The detailed description of the specific functions of each module can be found in the description of the pedestrian re-identification method embodiment, which will not be repeated here.

[0074] The present invention also proposes a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the pedestrian re-identification method of the above embodiment is implemented. The storage medium can be implemented by any type of volatile or non-volatile storage device, or a combination thereof.

[0075] Embodiments of the present invention may include or utilize a special or general-purpose computer including computer hardware, as discussed in more detail below. Embodiments within the scope of the present invention also include physical and other computer-readable media for carrying or storing computer-executable instructions and / or data structures. Such computer-readable media can be any available media that can be accessed by a general or special-purpose computer system. The computer-readable medium that stores computer-executable instructions is a physical storage medium. The computer-readable medium that carries computer-executable instructions is a transmission medium. Therefore, by way of example and not limitation, embodiments of the present invention may include at least two distinct computer-readable media: a physical computer-readable storage medium and a transmission computer-readable medium.

[0076] An embodiment of the present application also provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, at least the pedestrian re-identification method described in the aforementioned embodiment is implemented.

[0077] It is to be understood that the above content is a further detailed description of the present invention in conjunction with specific / preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For those of ordinary skill in the technical field to which the present invention belongs, without departing from the concept of the present invention, it can also make several substitutions or modifications to these described embodiments, and these substitutions or modifications should be deemed to belong to the protection scope of the present invention. In the description of this specification, the description of reference terms "an embodiment", "some embodiments", "preferred embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention.

[0078] In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples without contradicting each other. Although the embodiments of the present invention and their advantages have been described in detail, it should be understood that various changes, substitutions and modifications can be made herein without departing from the scope defined by the appended claims.

[0079] Furthermore, the scope of the present invention is not intended to be limited to the particular embodiments of the processes, machines, manufactures, compositions of matter, means, methods, and steps described in the specification. One of ordinary skill in the art will readily appreciate that the above disclosures, processes, machines, manufactures, compositions of matter, means, methods, or steps, currently existing or to be developed, may be utilized to perform substantially the same functions as the corresponding embodiments described herein or to obtain substantially the same results as the embodiments described herein. Therefore, the appended claims are intended to include within their scope such processes, machines, manufactures, compositions of matter, means, methods, or steps.

Claims

1. A pedestrian re-identification method, characterized in that: The steps include: Obtaining a pedestrian image to be identified and processing it to obtain a pedestrian area image; Performing random brightness and / or contrast enhancement processing on the pedestrian region image to obtain a preprocessed image, and inputting the preprocessed image into a global neural network training model for processing to obtain global features of pedestrians in the pedestrian region image; The pre-processed image is horizontally divided into three regions, and the regions are respectively input into three local neural network training models for processing, so as to obtain three local features of pedestrians in the pedestrian region image; the architecture of the global neural network training model is different from that of the local neural network training model; Fusing the global features and the local features of the pedestrian to obtain a fused feature of the pedestrian; Compare the fused features with features in a pedestrian feature library for identification; By comparing the similarity between the features in the fusion feature and each feature in the pedestrian feature library, the similarity is sorted to find the top ten most similar IDs; according to the time information t1-t10 and spatial information s1-s10 of the top ten most similar IDs, the time information tu and spatial information su of the pedestrian image to be retrieved are compared. Because the speed of the pedestrian is limited, it is within a reasonable range. If the speed of the pedestrian v= (si-su) / (ti-tu) is not within the reasonable pedestrian speed range, the ID is deleted; according to the similarity from high to low, the rationality is compared one by one, and the unreasonable ID is deleted, so as to improve the recognition accuracy.

2. The pedestrian re-identification method according to claim 1, characterized in that: The brightness and contrast of the pedestrian area image are randomly enhanced according to the following formula: in, is the source image pixel, is the image pixel after processing, α is the contrast coefficient, and β is the brightness coefficient.

3. The pedestrian re-identification method according to claim 1, characterized in that: The fusing the global features and the local features of the pedestrian to obtain the fused features of the pedestrian comprises: The global feature and the multiple local features are input into a fully connected layer to perform feature fusion processing to obtain the fused feature.

4. The pedestrian re-identification method according to claim 3, characterized in that: The method further includes the steps of: after merging different features for feature fusion, reducing the dimension of the fused features by a principal component analysis algorithm, so that the fused features are consistent with the dimensions of pedestrian features in the pedestrian feature library.

5. A pedestrian re-identification system, characterized in that: include: The image acquisition module is used to acquire the pedestrian image to be identified and process it to obtain the pedestrian area image; The image preprocessing module is used to perform random brightness and contrast enhancement processing on the pedestrian area image to obtain a preprocessed image; The image feature extraction module is used to input the preprocessed image into a global neural network training model for processing to obtain the global features of the pedestrians in the pedestrian area image; the preprocessed image is horizontally divided into three areas, and the areas are respectively input into three local neural network training models for processing to obtain three local features of the pedestrians in the pedestrian area image; the architecture of the global neural network training model is different from that of the local neural network training model; The feature fusion module fuses the global features and the local features of the pedestrian to obtain a fusion feature of the pedestrian; The feature comparison and recognition module is used to compare the fusion feature with the features in the pedestrian feature library for recognition; The feature comparison and identification module includes a feature comparison unit and a time-space information comparison unit; the feature comparison unit is used to perform a similarity comparison between the fused feature and the feature in the pedestrian feature library; the time-space information comparison unit is used to read the time information and space information of the pedestrian area image, and perform time information comparison and space information comparison with the IDs with high similarity in the pedestrian feature library to delete unreasonable IDs in the pedestrian feature library.