A binocular pedestrian recognition method and device in monitoring scene
By adopting a binocular pedestrian recognition method in a surveillance scene, fusing face and pedestrian features, and using different focal length image imaging sources and feature matching, the problem of low pedestrian recognition accuracy is solved, and the recognition accuracy and robustness are improved in real time. Update the feature base library to adapt to environmental changes.
Patent Information
- Application Number
- CN202111355977.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-16
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-11-16
AI Technical Summary
In the existing technology, pedestrian recognition faces problems such as large image resolution changes, inconsistent shooting angles, poor lighting conditions, environmental changes, and changes in pedestrian postures and clothing, etc., resulting in low recognition accuracy and becoming a difficulty in the field of computer vision.
Binocular pedestrian recognition method is used to collect images through two image imaging sources with different focal lengths, and a pedestrian recognition pipeline is designed to integrate facial features and pedestrian features, and use face and pedestrian detectors, trackers, trajectory evaluation and feature extraction to calculate Cosine distance is used for matching, and the base database of pedestrian features is updated in real time.
It improves the accuracy of pedestrian recognition in surveillance scenarios, enhances the robustness and real-time performance of recognition, and effectively solves the impact of time changes and environmental factors on pedestrian feature recognition.
Smart Images

Figure CN114332909B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer vision research, and in particular to a binocular pedestrian recognition method and device in a monitoring scenario. Background Art
[0002] Face recognition is one of the most important applications of image analysis and understanding. Face recognition uses computers to analyze face videos or images, extract effective identification information from them, and ultimately determine the identity of the face object. The research on face recognition can be traced back to the late 1960s. The main idea was to design feature extractors and then use machine learning algorithms for classification. After deep learning was introduced into the field of face recognition in 2012, feature extraction was completed by neural networks. Deep learning has achieved great success in face recognition.
[0003] Pedestrian recognition refers to the identification of pedestrians appearing in front of the camera, and is widely used in intelligent video surveillance, security, criminal investigation and other fields.
[0004] In the process of realizing the present invention, the inventors found that there are at least the following problems in the prior art: due to the large changes in the resolution of pedestrian images, non-uniform shooting angles, poor lighting conditions, large environmental changes, and constant changes in pedestrian postures and clothing, pedestrian recognition has become a research hotspot and difficult problem in the current computer vision field that is both valuable and extremely challenging. Summary of the invention
[0005] In order to overcome the shortcomings of the prior art, the present invention provides a binocular pedestrian recognition method and device in a monitoring scenario, and designs a pedestrian recognition pipeline that effectively integrates facial features and pedestrian features, thereby effectively solving the pedestrian recognition problem in the monitoring scenario, taking into account both facial features and pedestrian features, and greatly improving the recognition accuracy. The technical solution is as follows:
[0006] The present invention provides a binocular pedestrian recognition method in a monitoring scene. The binocular pedestrian recognition method adopts an image imaging source with two different focal lengths, and can simultaneously capture images of different distances in the same scene at the same frame rate. The method specifically includes the following steps:
[0007] In the first step, the face detector on the long focal length image frame gives the initial position of the face on the current frame, and at the same time, the pedestrian detector on the short focal length image frame gives the initial position of the pedestrian target on the current frame.
[0008] The long focal length image frame is scaled from the original resolution to the appropriate resolution and then input into the face detector. The face detector outputs the position of each face on the scaled frame, and restores the face position to the position relative to the original resolution based on the ratio with the original resolution, which is denoted as Fbox(i). At the same time, the corresponding short focal length image frame is also scaled from the original resolution to the appropriate resolution and then input into the pedestrian detector. The pedestrian detector outputs the position of each pedestrian on the scaled frame, and also restores the pedestrian position to the position relative to the original resolution based on the ratio with the original resolution, which is denoted as Hbox(i).
[0009] In the second step, the face tracker performs tracking on subsequent frames, and at the same time, the pedestrian tracker performs tracking on subsequent frames;
[0010] The face tracker tracks the face position Fbox(i) to obtain the face positions Fbox(i+1), Fbox(i+2), …, Fbox(i+n) in subsequent long focal length frames. At the same time, the pedestrian tracker tracks the pedestrian position Hbox(i) to obtain the pedestrian positions Hbox(i+1), Hbox(i+2), …, Hbox(i+n) in subsequent short focal length frames.
[0011] The third step is to evaluate the face trajectory, extract the key points of the face and correct them; evaluate the pedestrian trajectory, extract the key points of the pedestrian and correct them;
[0012] As the tracking continues on the subsequent long focal length frames, when the face cannot be tracked and this continues for a certain number of frames, the face track is marked as ended and the track is recorded as Ft(i); for each face in the track, the corresponding key points are detected. For the face whose key point detection fails, it is marked in the track that the key points of the face cannot be extracted.
[0013] As the tracking continues in the subsequent short focal length frames, when the pedestrian cannot be tracked and continues for a certain number of frames, the pedestrian trajectory is marked as ended and the trajectory is recorded as Ht(i). For each pedestrian position in the trajectory, the corresponding skeleton key point is detected.
[0014] The fourth step is to extract pedestrian features and facial features;
[0015] For each face image from which key points are successfully extracted in the face trajectory, feature values are extracted in chronological order, and the mean of these feature values is calculated and normalized, and the normalized mean is used as the face feature.
[0016] For each pedestrian in the pedestrian trajectory, the skeleton key points of the arm parts are removed as a sequence and features are extracted using the pedestrian feature extraction model, and the model output value is used as the pedestrian feature.
[0017] The fifth step is to perform fusion recognition;
[0018] The cosine distance is calculated using the facial features and each facial feature value in the database. When the cosine distance value is greater than the set threshold
[0019] When the distance value is greater than the set threshold α2, α2>α1, the face match is marked as a high-confidence match.
[0020] The cosine distance is calculated using the pedestrian feature and each pedestrian feature value in the base database. When the cosine distance value is greater than the set threshold β1, the pedestrian is successfully matched, otherwise it cannot be matched; when the pedestrian is successfully matched, if the distance value is greater than the set threshold β2, β2>β1, then the pedestrian match is marked as a high-confidence match.
[0021] When the face match is successful and it is a high-confidence match, the recognition is successful and the recognition result is stored. If the pedestrian cannot be matched at this time, the pedestrian features at this time are used to update the base database; if the pedestrian is also matched successfully at this time, the pedestrian matching result is added and stored in the recognition result; if the pedestrian match is also a high-confidence match at this time, the pedestrian features at this time are used to update the base database to improve the timeliness of the base database.
[0022] When the face match fails, if the pedestrian cannot be matched at this time, the recognition fails and the face and pedestrian match is ignored; if the pedestrian match is successful at this time, the recognition is successful and the recognition result is stored; if the pedestrian match is also a high-confidence match at this time, the base database is updated with the pedestrian features at this time.
[0023] Preferably, in the second step, during the tracking process of the face tracker and / or pedestrian tracker, the corresponding detector is run once after each continuous tracking of a certain number of frames. Further, the continuous tracking of a certain number of frames is determined according to the change of the target position.
[0024] Preferably, the method further includes a sixth step of reporting identification: the successful identification result in the fifth step is transmitted and data is stored through the communication link of the identification system. Furthermore, the reported data in step 6 also includes the pedestrian ID and feature value.
[0025] Compared with the prior art, one of the above technical solutions has the following beneficial effects: by constructing a multi-eye acquisition solution that meets the requirements of both facial features and pedestrian features, a pedestrian recognition pipeline that effectively integrates facial features and pedestrian features is designed, thereby effectively solving the pedestrian recognition problem in monitoring scenarios, taking into account both facial features and pedestrian features, and greatly improving the recognition accuracy. By updating the pedestrian feature base in real time, the pedestrian features are kept at a high real-time level, and the adverse factors caused by time changes that affect pedestrian feature recognition are further avoided. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 A flow chart of a binocular pedestrian recognition method in a monitoring scenario provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0027] In order to illustrate the technical solution and working principle of the present invention, the following will further describe the embodiments of the present invention in detail with reference to the accompanying drawings. All the above optional technical solutions can be combined in any way to form optional embodiments of the present invention, which will not be described one by one here.
[0028] The terms "first step", "second step", "third step" and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those described herein.
[0029] In the following surveillance scenarios, in order to obtain facial features, the camera image will be required to have as large a proportion of the facial image as possible, while in order to obtain pedestrian features, the camera image will be required to capture the entire pedestrian as much as possible, rather than just a portion of it. In order to be able to comprehensively utilize facial features and pedestrian features, it is necessary to design a reasonable and effective method: (1) to meet the collection requirements of both features as much as possible; (2) to be able to effectively integrate the two features to improve the recognition effect.
[0030] A first aspect: The present disclosure provides a binocular pedestrian recognition method in a monitoring scenario.
[0031] The binocular pedestrian recognition method does not use a conventional binocular stereo vision system, but uses an image source with two different focal lengths, which can simultaneously capture images of different distances in the same scene at the same frame rate. Figure 1 A flow chart of a binocular pedestrian recognition method in a monitoring scenario provided by an embodiment of the present disclosure, combined with the figure, mainly includes the following steps:
[0032] In the first step, the face detector on the long focal length image frame gives the initial position of the face on the current frame, and at the same time, the pedestrian detector on the short focal length image frame gives the initial position of the pedestrian target on the current frame.
[0033] The long focal length image frame is scaled from the original resolution to the appropriate resolution and then input into the face detector. The face detector outputs the position of each face on the scaled frame, and restores the face position to the position relative to the original resolution based on the ratio with the original resolution, which is denoted as Fbox(i). At the same time, the corresponding short focal length image frame is also scaled from the original resolution to the appropriate resolution and then input into the pedestrian detector. The pedestrian detector outputs the position of each pedestrian on the scaled frame, and also restores the pedestrian position to the position relative to the original resolution based on the ratio with the original resolution, which is denoted as Hbox(i).
[0034] In the second step, the face tracker performs tracking on subsequent frames, and at the same time, the pedestrian tracker performs tracking on subsequent frames;
[0035] The face tracker tracks the face position Fbox(i) to obtain the face positions Fbox(i+1), Fbox(i+2), ..., Fbox(i+n) in the subsequent long focal length frames (the subsequent ones are relative to the first frame). At the same time, the pedestrian tracker tracks the pedestrian position Hbox(i) to obtain the pedestrian positions Hbox(i+1), Hbox(i+2), ..., Hbox(i+n) in the subsequent short focal length frames. Trackers generally have cumulative errors. As the number of tracking frames increases, the position offset will become larger and larger. In order to control the error, preferably, in the second step, during the tracking process of the face tracker and / or pedestrian tracker, the corresponding detector is run once after each continuous tracking of a certain number of frames. To ensure the accuracy of the face and pedestrian positions. Furthermore, each continuous tracking of a certain number of frames is determined based on the changes in the target position.
[0036] The third step is to evaluate the face trajectory, extract the face key points and correct them; evaluate the pedestrian trajectory, extract the pedestrian key points and correct them.
[0037] As the tracking continues on the subsequent long focal length frames, when the face cannot be tracked and continues for a certain number of frames, the face track is marked as finished and the track is recorded as Ft(i). For each face in the track, the corresponding key points are detected. For faces that fail to detect key points, the face is marked in the track as unable to extract key points.
[0038] As the tracking continues in the subsequent short focal length frames, when the pedestrian cannot be tracked and continues for a certain number of frames, the pedestrian trajectory is marked as ended and the trajectory is recorded as Ht(i). For each pedestrian position in the trajectory, the corresponding skeleton key point is detected.
[0039] The fourth step is to extract pedestrian features and facial features.
[0040] For each face image from which key points are successfully extracted in the face trajectory, feature values are extracted in chronological order, and the mean of these feature values is calculated and normalized, and the normalized mean is used as the face feature.
[0041] For each pedestrian in the pedestrian trajectory, the skeleton key points of the arm parts are removed as a sequence and features are extracted using the pedestrian feature extraction model, and the model output value is used as the pedestrian feature.
[0042] The pedestrian feature design can effectively eliminate the local interference caused by changes in time, changes in pedestrian clothing, and changes in external light in the monitoring scene by extracting features from the sequence of bone key points without the arm part, avoiding the meaningless interference caused by arm movements and enhancing the robustness of pedestrian features to changes in pedestrian appearance.
[0043] The fifth step is to perform fusion recognition.
[0044] The cosine distance is calculated using the facial features and each facial feature value in the database. When the cosine distance value is greater than the set threshold α1, the face match is successful, otherwise it cannot be matched. When the face match is successful, if the distance value is greater than the set threshold α2, α2>α1, then the face match is marked as a high-confidence match.
[0045] The cosine distance is calculated using the pedestrian feature and each pedestrian feature value in the base database. When the cosine distance value is greater than the set threshold β1, the pedestrian is successfully matched, otherwise it cannot be matched; when the pedestrian is successfully matched, if the distance value is greater than the set threshold β2, β2>β1, then the pedestrian match is marked as a high-confidence match.
[0046] When the face match is successful and it is a high-confidence match, the recognition is successful and the recognition result is stored. If the pedestrian cannot be matched at this time, the pedestrian features at this time are used to update the base database; if the pedestrian is also matched successfully at this time, the pedestrian matching result is added and stored in the recognition result; if the pedestrian match is also a high-confidence match at this time, the pedestrian features at this time are used to update the base database to improve the timeliness of the base database.
[0047] When the face match fails, if the pedestrian cannot be matched at this time, the recognition fails and the face and pedestrian match is ignored; if the pedestrian match is successful at this time, the recognition is successful and the recognition result is stored; if the pedestrian match is also a high-confidence match at this time, the base database is updated with the pedestrian features at this time.
[0048] By effectively integrating facial features and pedestrian features, the pedestrian feature database is updated in real time, so that the pedestrian features maintain a high degree of real-time performance, and further avoid the impact of adverse factors caused by time changes on pedestrian feature recognition.
[0049] Preferably, the method further comprises a sixth step of identifying and reporting.
[0050] The successful identification result in the fifth step is transmitted through the communication link of the identification system and the data is stored.
[0051] Furthermore, the reported data in step 6 also includes pedestrian ID and feature value.
[0052] In a second aspect, an embodiment of the present disclosure provides a binocular pedestrian recognition device in a monitoring scenario, which can implement a binocular pedestrian recognition method in a monitoring scenario described in any one of all possible implementation methods.
[0053] It should be noted that in practical applications, the above functions can be distributed to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The binocular pedestrian recognition device in a monitoring scenario provided in the above embodiment and the binocular pedestrian recognition method embodiment in a monitoring scenario belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0054] The present invention is described above by way of example in conjunction with the accompanying drawings. Obviously, the specific implementation of the present invention is not limited to the above-mentioned method. All non-substantial improvements made by adopting the method concept and technical solution of the present invention; or directly applying the above-mentioned concept and technical solution of the present invention to other occasions without improvement or equivalent replacement, are within the protection scope of the present invention.
Claims
1. A binocular pedestrian recognition method in a monitoring scenario, characterized in that: The binocular pedestrian recognition method adopts an image imaging source with two different focal lengths, and can simultaneously capture images of different distances in the same scene at the same frame rate, and specifically includes the following steps: In the first step, the face detector gives the initial position of the face in the current frame on the long focal length image frame, and at the same time, the pedestrian detector gives the initial position of the pedestrian target in the current frame on the short focal length image frame; The long focal length image frame is scaled from the original resolution to the appropriate resolution and then input into the face detector. The face detector outputs the position of each face on the scaled frame, and restores the face position to the position relative to the original resolution according to the ratio with the original resolution, which is recorded as Fbox(i). At the same time, the corresponding short focal length image frame is also scaled from the original resolution to the appropriate resolution and then input into the pedestrian detector. The pedestrian detector outputs the position of each pedestrian on the scaled frame, and also restores the pedestrian position to the position relative to the original resolution according to the ratio with the original resolution, which is recorded as Hbox(i). In the second step, the face tracker performs tracking on subsequent frames, and at the same time, the pedestrian tracker performs tracking on subsequent frames; The face tracker tracks the face position Fbox(i) to obtain the face positions Fbox(i+1), Fbox(i+2), …, Fbox(i+n) in subsequent long focal length frames, and the pedestrian tracker tracks the pedestrian position Hbox(i) to obtain the pedestrian positions Hbox(i+1), Hbox(i+2), …, Hbox(i+n) in subsequent short focal length frames; The third step is to evaluate the face trajectory, extract the key points of the face and correct them; evaluate the pedestrian trajectory, extract the key points of the pedestrian and correct them; As the tracking continues on the subsequent long focal length frames, when the face cannot be tracked and continues for a certain number of frames, the face track is marked as finished and the track is recorded as Ft(i); for each face in the track, the corresponding key point is detected, and for the face whose key point detection fails, the face is marked in the track as unable to extract the key point; As the tracking continues in the subsequent short focal length frames, when the pedestrian cannot be tracked and continues for a certain number of frames, the pedestrian trajectory is marked as ended and the trajectory is recorded as Ht(i); for each pedestrian position in the trajectory, the corresponding skeleton key point is detected; The fourth step is to extract pedestrian features and facial features; For each face image from which key points are successfully extracted in the face trajectory, feature values are extracted in chronological order, and the mean of these feature values is calculated and normalized, and the normalized mean is used as the face feature; For each pedestrian in the pedestrian trajectory, the skeleton key points of the arm parts are removed as a sequence and the pedestrian feature extraction model is used to extract features, and the model output value is used as the pedestrian feature; The fifth step is to perform fusion recognition; The cosine distance is calculated using the facial feature and each facial feature value in the database. When the cosine distance value is greater than the set threshold α1, the face match is successful, otherwise it is unmatched. When the face match is successful, if the distance value is greater than the set threshold α2, α2>α1, then the face match is marked as a high-confidence match. The cosine distance is calculated using the pedestrian feature and each pedestrian feature value in the base database. When the cosine distance value is greater than the set threshold β1, the pedestrian is successfully matched, otherwise it cannot be matched; when the pedestrian is successfully matched, if the distance value is greater than the set threshold β2, β2>β1, then the pedestrian match is marked as a high-confidence match; When the face match is successful and it is a high-confidence match, the recognition is successful and the recognition result is stored; if the pedestrian cannot be matched at this time, the pedestrian features at this time are used to update the base database; if the pedestrian is also matched successfully at this time, the pedestrian matching result is added and stored in the recognition result; if the pedestrian match is also a high-confidence match at this time, the pedestrian features at this time are used to update the base database to improve the timeliness of the base database; When the face match fails, if the pedestrian cannot be matched at this time, the recognition fails and the face and pedestrian match is ignored; if the pedestrian match is successful at this time, the recognition is successful and the recognition result is stored; if the pedestrian match is also a high-confidence match at this time, the base database is updated with the pedestrian features at this time.
2. The binocular pedestrian recognition method in a monitoring scenario according to claim 1 is characterized in that: In the second step, during the tracking process of the face tracker and / or pedestrian tracker, the corresponding detector is run once after each continuous tracking of a certain number of frames.
3. The binocular pedestrian recognition method in a monitoring scenario according to claim 2 is characterized in that: The certain number of frames for each continuous tracking is determined according to the change of the target position.
4. A binocular pedestrian recognition method in a monitoring scenario according to any one of claims 1 to 3, characterized in that: The sixth step is to report the identification: the result of successful identification in the fifth step is transmitted and data is stored through the communication link of the identification system.
5. The binocular pedestrian recognition method in a monitoring scenario according to claim 4 is characterized in that: The reported data in step 6 also includes the pedestrian ID and feature value.
6. A binocular pedestrian recognition device in a monitoring scene, characterized in that: The device can implement the binocular pedestrian recognition method in a monitoring scenario as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Automatic face registration and recognition system and method in monitoring scene
CN112183162A
Monitoring video pedestrian recognition and tracking method and device and storage medium
CN112257502A
Deep learning-based cross-camera pedestrian multi-target tracking method and device
CN112270310A
Pedestrian identification method and device in monitoring scene
CN112651369A
Single-camera multi-target pedestrian tracking method
CN112836640A
