A progressive personnel face matching method and device based on computer vision

By adopting a progressive facial matching method and combining a three-level comparison process of benchmark and full-scene facial feature database, the problem of low facial matching accuracy in complex monitoring scenarios is solved, and efficient and accurate recognition is achieved in complex poses and partial occlusion scenarios.

CN123182282APending Publication Date: 2026-11-27ZKTECO CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611395223.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-09
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing face recognition solutions have low accuracy in matching faces in complex monitoring scenarios, and are particularly lacking in robustness under non-ideal imaging conditions such as pose shift, partial occlusion, and illumination distortion, resulting in decreased reliability of recognition output.

Method used

A progressive facial matching method based on computer vision is adopted, which uses a three-level global comparison process: first, a first-level comparison is performed with a benchmark facial feature library; if it fails, a second-level comparison is performed with a full-scene facial feature library; and finally, a third-level comparison is performed with the benchmark library. By combining the advantages of the benchmark and the full-scene facial feature library, accurate matching can be achieved in complex poses and partially occluded scenarios.

Benefits of technology

It improves the accuracy of facial matching in complex monitoring scenarios, balances the recognition efficiency in conventional scenarios with the recognition accuracy in complex multi-pose scenarios, effectively makes up for the shortcomings of a single benchmark library that cannot adapt to complex monitoring images, and improves the control effectiveness of intelligent monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182282A_ABST
    Figure CN123182282A_ABST
Patent Text Reader

Abstract

The application discloses a progressive personnel face matching method and device based on computer vision, comprising: acquiring a current monitoring area image and performing target personnel face feature extraction to generate to-be-identified face feature data; performing first-level global comparison on the to-be-identified face feature data and a benchmark face feature library to generate a first-level comparison result; if the first-level comparison result is a matching failure, performing second-level global comparison on the to-be-identified face feature data and a full-scene face feature library to screen candidate face feature data; performing third-level global comparison on each candidate face feature data and the benchmark face feature library to generate a third-level comparison result of each candidate face feature data; performing optimal screening processing on all third-level comparison results to generate a face matching result of the to-be-identified face feature data. The application adopts a progressive face matching architecture, improves the accuracy of personnel face matching in a complex scene, and can be widely applied to the technical field of image data processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image data processing technology, and in particular to a progressive face matching method and apparatus based on computer vision. Background Technology

[0002] With the development of computer vision technology, facial recognition technology is being applied more and more widely. In addition to cooperative access control verification equipment, non-cooperative facial recognition is also being implemented in many places, which can be used for identity verification, security protection and other businesses, providing technical support for regional access control.

[0003] Most existing facial recognition solutions use a standard facial sample set to conduct a single round of global comparison, comparing the facial features extracted from the image with the sample set to output the identity recognition result.

[0004] The existing single-round comparison architecture is highly dependent on image acquisition conditions. When faced with non-ideal imaging conditions such as pose shift, partial occlusion, and illumination distortion, the matching robustness is insufficient, and face matching failure is prone to occur, resulting in a decrease in the reliability of recognition output in complex scenarios. Summary of the Invention

[0005] This invention provides a progressive facial matching method and device based on computer vision, which solves the technical problem of low facial matching accuracy in complex monitoring scenarios.

[0006] In a first aspect, the present invention provides a progressive facial matching method based on computer vision, comprising:

[0007] Acquire images of the current monitored area;

[0008] The facial features of the target person are extracted from the image of the current monitoring area to generate facial feature data to be identified;

[0009] The facial feature data to be identified is compared with the benchmark facial feature library at the first level to generate the first level comparison result.

[0010] If the first-level comparison result is a matching failure, the facial feature data to be identified is compared with the full-scene facial feature library in the second level of global comparison to filter candidate facial feature data.

[0011] The candidate facial feature data is compared with the benchmark facial feature library at the third level to generate the third level comparison result of each candidate facial feature data.

[0012] The best of all the third-level comparison results are selected and filtered to generate the facial matching result of the facial feature data to be identified.

[0013] In some embodiments, the step of extracting facial features of the target person from the image of the current monitored area to generate facial feature data to be identified includes:

[0014] A behavior analysis visual model is used to identify violations and locate personnel in the current monitored area image, and outputs the matched target violation and the area where the target personnel associated with the target violation are located.

[0015] Facial detection is performed on the area where the target person is located to identify the valid facial region;

[0016] Facial features are extracted from the effective facial region to generate facial feature data to be identified.

[0017] In some embodiments, the step of performing a first-level global comparison between the facial feature data to be identified and a benchmark facial feature library to generate a first-level comparison result includes:

[0018] The facial feature data to be identified is compared with each benchmark facial feature data in the benchmark facial feature library to generate a first similarity between the facial feature data to be identified and each benchmark facial feature data.

[0019] If there is a reference facial feature data with a first similarity greater than a preset similarity threshold, then the reference facial feature data with the highest first similarity is selected as the target facial feature data, the first-level comparison result is determined as a successful match, and the personnel identity information bound to the target facial feature data and the target facial feature data are associated with the first-level comparison result.

[0020] If no baseline facial feature data with a similarity greater than the preset similarity threshold exists, the first-level comparison result will be determined as a matching failure.

[0021] In some embodiments, it also includes:

[0022] If the first-level comparison result is a successful match, then based on the personnel identity information and target facial feature data associated with the first-level comparison result, a facial matching result of the facial feature data to be identified is generated.

[0023] In some embodiments, the construction of the full-scene facial feature library includes:

[0024] Acquire historical images of the monitored area;

[0025] Facial detection is performed on the historical monitoring area images to locate sample facial regions;

[0026] A facial feature extraction model is used to extract facial features and recognize poses in the facial region of the sample, and output scene facial feature data and corresponding facial pose labels.

[0027] After associating the scene facial feature data with the facial pose label, the data is stored in a pre-built full-scene facial feature library.

[0028] In some embodiments, the step of performing a second-level global comparison between the facial feature data to be identified and a full-scene facial feature database to filter candidate facial feature data includes:

[0029] The facial feature data to be identified is compared with the facial feature data of each scene in the full-scene facial feature library to generate a second similarity between the facial feature data to be identified and each scene facial feature data.

[0030] Based on the second similarity, all scene facial feature data are sorted in descending order to obtain the second-level sorting result;

[0031] The facial feature data of the scene that is in the top preset position in the second-level sorting result is used as candidate facial feature data.

[0032] In some embodiments, the step of performing a third-level global comparison between each of the candidate facial feature data and the benchmark facial feature library to generate a third-level comparison result for each of the candidate facial feature data includes:

[0033] The candidate facial feature data is compared with each benchmark facial feature data in the benchmark facial feature library to generate a third similarity between the candidate facial feature data and each benchmark facial feature data.

[0034] If there is a reference facial feature data with a third similarity greater than a preset similarity threshold, then the reference facial feature data with the highest third similarity will be used as the facial feature data to be matched.

[0035] The third similarity between the facial feature data to be matched and the candidate facial feature data and the facial feature data to be matched is integrated to generate the third-level comparison result of the candidate facial feature data.

[0036] In some embodiments, it also includes:

[0037] If no baseline facial feature data with a third similarity greater than a preset similarity threshold exists, the corresponding candidate facial feature data will be removed.

[0038] If all candidate facial feature data are eliminated, the facial matching result of the facial feature data to be identified is determined as a facial matching failure, and the facial feature data to be identified is stored in the full-scene facial feature library.

[0039] In some embodiments, the step of performing a selective screening process on all the third-level comparison results to generate a facial matching result for the facial feature data to be identified includes:

[0040] Extract the facial feature data to be matched and the third similarity of the facial feature data to be matched from each of the third-level comparison results;

[0041] Based on the third similarity, all facial feature data to be matched are sorted in descending order to obtain the third-level sorting result;

[0042] The facial feature data that is first in the third-level sorting results is used as the matched facial feature data.

[0043] Based on the hit facial feature data, the target person's identity information bound to the hit facial feature data, and the target violation associated with the facial feature data to be identified, a facial matching result of the facial feature data to be identified is generated.

[0044] Secondly, the present invention provides a progressive facial matching device based on computer vision, comprising:

[0045] The image acquisition module is used to acquire images of the current monitored area;

[0046] The feature extraction module is used to extract facial features of target persons from the image of the current monitoring area and generate facial feature data to be identified.

[0047] The first comparison module is used to perform a first-level global comparison between the facial feature data to be identified and the benchmark facial feature library, and generate a first-level comparison result.

[0048] The second comparison module is used to perform a second-level global comparison between the facial feature data to be identified and the full-scene facial feature library if the first-level comparison result is a matching failure, and to filter candidate facial feature data.

[0049] The third comparison module is used to perform a third-level global comparison between each of the candidate facial feature data and the benchmark facial feature library, and generate a third-level comparison result for each of the candidate facial feature data.

[0050] The face matching module is used to perform optimal filtering on all the third-level comparison results to generate the face matching result of the facial feature data to be identified.

[0051] As can be seen from the above technical solutions, the present invention has the following advantages: The present invention provides a progressive facial matching method and device based on computer vision, which acquires the image of the current monitoring area and extracts the facial features of the target person to generate facial feature data to be identified, ensuring the timeliness of the identification data, accurately stripping effective facial features, and eliminating invalid interference data; by performing a first-level global comparison between the facial feature data to be identified and the benchmark facial feature library, standard face matching is completed, improving the recognition efficiency in conventional scenes; if the first-level comparison result is a matching failure, the facial feature data to be identified is performed a second-level global comparison with the full-scene facial feature library to filter candidate facial feature data, realize complex pose face filtering, and expand the range of samples to be matched; by performing a third-level global comparison between each candidate facial feature data and the benchmark facial feature library, a third-level comparison result of each candidate facial feature data is generated to realize candidate facial feature verification, avoid mismatches, and improve recognition accuracy; by performing optimal screening processing on all third-level comparison results, facial matching results of the facial feature data to be identified are generated, and the optimal matching results are output to achieve accurate personnel tracing and matching. This invention adopts a three-level progressive facial matching architecture, abandoning the traditional single-match mode. It combines the advantages of a baseline facial feature library and a full-scene facial feature library, taking into account both the recognition efficiency in conventional scenes and the recognition accuracy in complex multi-pose and partially occluded scenes. It effectively makes up for the shortcomings of a single baseline library that cannot adapt to complex monitoring images, greatly improves the accuracy of facial matching of personnel in complex monitoring scenarios, and effectively enhances the control effectiveness of intelligent monitoring. Attached Figure Description

[0052] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0053] Figure 1 A flowchart illustrating a progressive human face matching method based on computer vision, provided for an embodiment of the present invention;

[0054] Figure 2 Another flowchart of a progressive human face matching method based on computer vision provided for an embodiment of the present invention;

[0055] Figure 3 A schematic diagram of a progressive human face matching device based on computer vision provided in an embodiment of the present invention;

[0056] Figure 4 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0057] This invention provides a progressive facial matching method and apparatus based on computer vision to solve the technical problem of low facial matching accuracy in complex monitoring scenarios.

[0058] To make the objectives, features, and advantages of this invention more apparent and understandable, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0059] Please see Figure 1 , Figure 1 An optional flowchart of a progressive human face matching method based on computer vision provided for an embodiment of the present invention includes steps 101 to 106.

[0060] Step 101: Obtain the image of the current monitored area;

[0061] An IPC camera (Internet Protocol Camera) refers to a digital camera device that transmits video data based on network protocols. It supports high-definition video capture, remote parameter configuration, and network transmission. In this embodiment, it serves as a terminal for capturing on-site images.

[0062] The monitored area refers to the physical space where IPC cameras are deployed and included in the video surveillance range, including but not limited to key control points such as office areas, production plant areas, and park control areas.

[0063] On-site images refer to single-frame high-definition images captured from the video stream by the IPC camera after it has captured video of the monitored area, according to a preset capture cycle. These images serve as the raw input data for subsequent facial feature extraction and personnel matching.

[0064] The capture cycle refers to the time interval between two adjacent image captures set by the background monitoring system. In this embodiment, it is set to a fixed value of 5 seconds, but it can be configured according to actual needs and is not limited.

[0065] A video stream refers to a sequence of dynamic video data that is captured and continuously transmitted in real time by an IPC camera, consisting of consecutive video frames.

[0066] The back-end processing terminal refers to the data processing equipment deployed in the monitoring center or cloud, which is responsible for receiving on-site images uploaded by IPC cameras and performing subsequent processing such as image storage, facial feature extraction, violation event identification, and personnel matching.

[0067] Encrypted upload refers to the use of encrypted transmission protocols (such as HTTPS, HyperText Transfer Protocol Secure) between the IPC camera and the back-end processing terminal to transmit data, thereby improving the data security of on-site images during transmission.

[0068] Optionally, step 101 includes the following sub-steps:

[0069] Monitoring point planning and equipment deployment: Based on management and control needs, IPC high-definition video surveillance cameras are deployed to cover key monitoring points such as office areas, production plants, and park control areas. The equipment supports 24 / 7 uninterrupted video acquisition and high-definition image output, and is adaptable to complex lighting and multi-angle shooting scenarios.

[0070] Device parameter configuration and linkage settings: The background monitoring system completes the device linkage configuration of each IPC camera, sets the fixed automatic capture cycle to 5 seconds, and configures parameters such as image resolution, acquisition time period, and transmission encryption method;

[0071] Real-time video stream acquisition: The IPC camera acquires the live video stream of the monitored area in real time and continuously outputs continuous video frame data;

[0072] Periodic capture: The background monitoring system captures a high-definition on-site image every 5 seconds from the real-time video stream transmitted by the IPC camera according to a preset 5-second capture cycle, which is the image of the current monitoring area.

[0073] Encrypted image upload and storage: The IPC camera automatically uploads the captured images to the back-end processing terminal using an encrypted transmission protocol. The back-end processing terminal completes the raw data acquisition and storage of the images, providing basic data support for subsequent facial feature extraction, violation identification, and personnel matching.

[0074] Step 102: Extract facial features of the target person from the image of the current monitoring area to generate facial feature data to be identified;

[0075] Optionally, step 102 includes the following sub-steps:

[0076] Using a behavioral analysis visual model, we can identify violations and locate personnel in the current monitored area, and output the matched target violations and the area where the target personnel associated with the target violations are located.

[0077] Perform facial detection on the area where the target person is located to identify the valid facial region;

[0078] Facial features are extracted from the effective facial regions to generate facial feature data to be identified.

[0079] A behavior analysis visual model refers to a computer vision model that has the functions of image content analysis, behavior classification and judgment and target area localization. In this embodiment, it is used to identify preset violations and locate the corresponding personnel area.

[0080] Target violations refer to pre-defined abnormal behaviors that require personnel identification and tracing (such as smoking, using mobile phones in the work area, or leaving one's post).

[0081] The target personnel area refers to the sub-region of the image in which the person associated with the target violation is located, providing a limited range for face detection.

[0082] The effective facial area refers to the image area that has been confirmed by facial detection and contains complete and recognizable facial information, while invalid areas such as those without faces, blurred faces, and incomplete faces are removed.

[0083] The facial feature data to be identified refers to the multi-dimensional facial feature vector (face embedding) extracted from the effective facial region, which is the core calculation object for subsequent facial similarity comparisons at all levels.

[0084] The original image captured when a violation is detected refers to the corresponding captured image that is locked when the target violation is detected. Data iteration and overlay are suspended for feature extraction and identity tracing.

[0085] Specifically, the execution flow of step 102 is as follows:

[0086] Violation recognition and personnel area localization: The behavior analysis visual model is used to perform frame-by-frame parsing of the image of the current monitoring area, perform preset violation recognition and personnel area localization processing, and output the matched target violation behavior and the area where the target personnel associated with the target violation behavior are located; if no target violation behavior is detected, the image frame is transferred to the regular database entry iteration process of the full scene facial feature library;

[0087] Face detection and effective region filtering: For images where target violations are detected, face detection is performed on the area where the target person is located to identify and select the face region; invalid face regions with no face, blurred face, or incomplete face are filtered out, and effective face regions that meet the recognition requirements are retained;

[0088] Facial feature extraction and output: Feature encoding extraction is performed on the effective facial regions to generate a multi-dimensional facial feature vector, i.e., the facial feature data to be identified, and the subsequent progressive facial matching process is triggered simultaneously.

[0089] For example, taking a personnel management scenario in a production plant as an example, the back-end processing terminal calls the behavior analysis visual model to analyze the on-site images uploaded by all IPC cameras frame by frame, and presets three types of violations: smoking, playing with mobile phones in the work area, and leaving the post.

[0090] When an IPC camera at a production workshop captures an image (currently monitored area) showing a user using a mobile phone in the work area, the system immediately locks the original image of that violation, pauses the iterative overlay of that frame, and outputs the coordinates of the area associated with the violation. Based on these coordinates, the system extracts the corresponding area of ​​the person's image, performs facial detection on that area, selects the face region, and filters out blurry or incomplete invalid face data, retaining only identifiable and valid facial areas. Feature encoding is then performed on the valid facial areas to generate 128-dimensional facial feature data for identification, automatically triggering a subsequent three-level progressive facial matching process to initiate the identification and tracing of the violator.

[0091] If no pre-defined violation is detected in the on-site image, the captured image is transferred to the routine feature extraction and database entry iteration process of the full-scene facial feature library.

[0092] Step 103: Perform a first-level global comparison between the facial feature data to be identified and the benchmark facial feature database to generate the first-level comparison result;

[0093] Optionally, step 103 includes the following sub-steps:

[0094] The facial feature data to be identified is compared with each benchmark facial feature data in the benchmark facial feature database to generate the first similarity between the facial feature data to be identified and each benchmark facial feature data.

[0095] If there is a reference facial feature data with a first similarity greater than a preset similarity threshold, the reference facial feature data with the highest first similarity is selected as the target facial feature data, the first-level comparison result is determined as a successful match, and the personnel identity information bound to the target facial feature data and the target facial feature data are associated with the first-level comparison result.

[0096] If no baseline facial feature data with a first similarity greater than the preset similarity threshold exists, the first-level comparison result will be determined as a matching failure.

[0097] If the first-level comparison result is a successful match, then based on the personnel identity information and target facial feature data associated with the first-level comparison result, a facial matching result of the facial feature data to be identified is generated.

[0098] The benchmark facial feature database refers to a pre-built database of standard facial features of personnel, which stores standard frontal facial feature data of personnel who have completed registration and associated personnel identity information, providing a benchmark comparison dataset for the first-level comparison.

[0099] The baseline facial feature data refers to the standard facial feature vectors of the registered personnel stored in the baseline facial feature database, which are standardized feature data extracted under the standard frontal face posture.

[0100] The first similarity refers to the feature similarity value between the facial feature data to be identified and a single baseline facial feature data, which is used to quantify the degree of matching between the facial features of the two.

[0101] The target facial feature data refers to the baseline facial feature data with the highest similarity obtained when the first-level comparison and matching is successful, which corresponds to the facial features of the registered personnel.

[0102] Personnel identification information refers to personnel identification information (such as personnel number, name, and department) that is linked to and bound to the baseline facial feature data, and is used for tracing the identity of personnel who violate regulations.

[0103] The specific execution process of step 103 is as follows:

[0104] One-by-one traversal and similarity calculation: The facial feature data to be identified is compared with each benchmark facial feature data in the benchmark facial feature database to calculate the feature similarity, and the first similarity between the facial feature data to be identified and each benchmark facial feature data is generated.

[0105] The first similarity score is calculated using cosine similarity, as shown in the following formula:

[0106] ;

[0107] in, Let be the first similarity score corresponding to the i-th benchmark facial feature data in the benchmark facial feature database. The feature vector corresponding to the facial feature data to be identified. Let i be the feature vector corresponding to the i-th baseline facial feature data in the baseline facial feature database. Let X be the magnitude of vector X. For vectors The length of the mold, Let vector X and vector The dot product;

[0108] All first similarities are compared with the preset similarity threshold T1; if there is a first similarity greater than T1, the first-level comparison result is determined to be a successful match; if none of the first similarities are greater than T1, the first-level comparison result is determined to be a failed match.

[0109] When the first-level comparison result is a successful match, the benchmark facial feature data with the highest value among all first similarity scores is selected as the target facial feature data. The target facial feature data and its associated personal identity information are associated with the first-level comparison result, and the facial matching result of the facial feature data to be identified is directly generated, thus terminating the current matching process.

[0110] When the first-level comparison result is a failure to match, the current facial feature data to be identified is retained, and the subsequent second-level full-scene facial feature database comparison process is triggered.

[0111] In some embodiments, the baseline facial feature library is a static baseline database built in advance by the system, independent of the real-time capture full-scene facial feature library. The specific construction and update process is as follows:

[0112] Importing Personnel Filing Ledger: The background monitoring system batch-enters the basic personnel information ledger of all on-duty personnel within the monitoring area, fully recording personnel identity information such as unique employee ID, name, department, and position, and completing the basic personnel data archiving;

[0113] Collect standard facial images: Collect standard bareheaded frontal photos of all on-duty personnel, strictly screen valid images with even lighting, no masks, hats, or hair covering the face, and upright facial posture, and remove invalid photos that are blurry, have color cast, or are skewed.

[0114] Extracting standardized baseline features: The computer vision model is used to perform facial detection and feature extraction on the selected standard bareheaded front-facing photos, accurately extracting standardized facial feature vectors with uniform dimensions and regular parameters, and generating baseline facial feature data for the corresponding personnel;

[0115] Data association and binding: Each individual baseline facial feature data is bound and associated with the corresponding person's identity information, and statically entered into the pre-built baseline facial feature library to complete the initial construction of the baseline database;

[0116] Differentiated static update and maintenance: The baseline facial feature library does not participate in the automatic iterative update of daily captured images. It only completes the addition, deletion and correction of feature data as needed when there are personnel changes such as new employees joining, employees leaving or canceling their employment, and changes in personnel positions and department information, so as to ensure the accuracy and uniqueness of the baseline data.

[0117] The personnel basic information ledger refers to a dataset that summarizes the fixed identity information of all on-duty personnel within the monitoring area. It includes core filing information such as the personnel's unique employee number, name, department, and position, and is used for tracing back to the source by binding it with facial feature data.

[0118] Step 104: If the first-level comparison result is a matching failure, the facial feature data to be identified is compared with the full-scene facial feature database in the second level to filter candidate facial feature data.

[0119] Specifically, step 104 includes the following sub-steps:

[0120] The facial feature data to be identified is compared with the full-scene facial feature database in a second-level global comparison to filter candidate facial feature data, including:

[0121] The facial feature data to be identified is compared with the facial feature data of each scene in the full-scene facial feature database to generate a second similarity between the facial feature data to be identified and the facial feature data of each scene.

[0122] Based on the second similarity, all scene facial feature data are sorted in descending order to obtain the second-level sorting result;

[0123] The facial feature data of the scene that ranks in the top preset position in the second-level sorting results are used as candidate facial feature data.

[0124] The full-scene facial feature library (face_embedding, real-time capture feature library) refers to a dynamically iteratively constructed facial feature database that includes scene facial feature data and associated facial pose labels extracted from historical valid capture images under multiple poses and multiple occlusion scenarios. It provides a comparison dataset for the second-level wide-area screening and is different from the static standard benchmark facial feature library. It supports real-time data input and updates.

[0125] Scene facial feature data refers to a single facial feature vector stored in the full-scene facial feature library. It is extracted from historical captured images and covers various monitoring scenarios such as frontal face, side face, head down, and partial occlusion. Each data point is associated with the corresponding collection source and facial pose label.

[0126] The second similarity refers to the feature similarity value between the facial feature data to be identified and the facial feature data of a single scene. It is used to quantify the degree of matching between the facial features of the two and is a quantitative indicator for the second level of comparison.

[0127] The preset number of bits refers to the pre-set threshold for the number of candidate feature data to be selected, denoted as K. It is used to limit the size of the candidate data output by the second-level screening, balancing the subsequent computational load and matching coverage.

[0128] The specific execution process of step 104 is as follows:

[0129] Receive the facial feature data to be identified that failed the first-level comparison and matching, calculate the feature similarity between it and each scene facial feature data in the full-scene facial feature database, and generate the second similarity corresponding to each scene facial feature data. The second similarity is also calculated using cosine similarity.

[0130] The second similarity scores of all scene facial feature data in the full-scene facial feature library are sorted in descending order of numerical value from high to low to generate the second-level similarity ranking results.

[0131] Based on the preset number of digits K, the facial feature data of the scene ranked in the top K positions from the second-level similarity ranking results are selected as candidate facial feature data and output to the third-level global comparison process; the remaining low similarity data are directly removed to reduce the amount of subsequent verification calculations.

[0132] In some embodiments, the construction of a full-scene facial feature library includes:

[0133] Acquire historical images of the monitored area;

[0134] Perform facial detection on historical surveillance area images to locate sample facial regions;

[0135] A facial feature extraction model is used to extract facial features and recognize poses in the facial region of the sample, and output scene facial feature data and corresponding facial pose labels.

[0136] After associating scene facial feature data with facial pose labels, the data is stored in a pre-built full-scene facial feature library.

[0137] Historical monitoring area images refer to images captured by IPC cameras in the monitoring area in the past, which serve as the raw image data source for the initial construction of the full-scene facial feature library.

[0138] The sample facial region refers to the image region with valid and identifiable facial information obtained from the captured image through facial detection and localization. Invalid image regions such as those without faces, blurred faces, and black screens are removed, and it is the input object for feature extraction.

[0139] A facial feature extraction model refers to a computer vision model that has the functions of face region detection, facial feature encoding extraction, and pose classification. It can output feature vectors and pose classification results in parallel for the input face region.

[0140] Facial pose labels refer to pose classification markers (such as frontal face, side face, head down, partial occlusion, etc.) that are bound and associated with facial feature data of the scene, and are used to characterize the facial pose and occlusion scene attributes of the corresponding features.

[0141] For example, the construction of the full-scene facial feature library is divided into two stages: initialization construction and dynamic iterative update. The specific execution process is as follows:

[0142] Acquire historical monitoring area images: Collect all captured images uploaded by all IPC cameras in the monitoring area in the past to form a historical monitoring area image dataset, which serves as the original image material for the initial construction of the full-scene facial feature library;

[0143] Face detection and sample region localization: Perform face detection on each historical monitoring area image to locate the face region within the image; filter out images without faces, blurred faces, black screens and other invalid images, and retain valid face regions that meet the quality requirements, i.e., sample face regions;

[0144] Feature extraction and pose recognition: The facial feature extraction model is invoked to perform facial feature extraction and pose recognition processing in parallel on the facial regions of each sample, and the corresponding scene facial feature data and the facial pose label corresponding to the facial region of the sample are output.

[0145] Associated storage and dynamic iteration: Single scene facial feature data is bound and associated with the corresponding facial pose label and stored in a pre-built full-scene facial feature library; during system operation, newly added valid captured images are processed in the same way and added to the library in real time. The database is continuously iterated and updated to comprehensively collect facial features under various pose scenarios, forming a full-scene facial feature sample pool.

[0146] Step 105: Perform a third-level global comparison between each candidate facial feature data and the benchmark facial feature database to generate the third-level comparison results of each candidate facial feature data.

[0147] Optionally, step 105 includes the following sub-steps:

[0148] The candidate facial feature data is compared with each benchmark facial feature data in the benchmark facial feature database to generate a third similarity between the candidate facial feature data and each benchmark facial feature data.

[0149] If there is a baseline facial feature data with a third similarity greater than a preset similarity threshold, then the baseline facial feature data with the highest third similarity will be used as the facial feature data to be matched.

[0150] Integrate the third similarity between the facial feature data to be matched and the candidate facial feature data and the facial feature data to be matched to generate the third-level comparison result of the candidate facial feature data;

[0151] If there is no baseline facial feature data with a third similarity greater than the preset similarity threshold, the corresponding candidate facial feature data will be removed.

[0152] If all candidate facial feature data are eliminated, the facial matching result of the facial feature data to be identified is determined as a facial matching failure, and the facial feature data to be identified is stored in the full-scene facial feature library.

[0153] The third-level global comparison refers to the comparison step of comparing each candidate facial feature dataset output by the second-level screening with the benchmark facial feature database to achieve full and accurate verification. This is used to achieve accurate traceability of personnel identity in non-standard face scenarios and is the core verification link of the three-level progressive matching architecture.

[0154] The third similarity refers to the feature similarity value between a single candidate facial feature data and a single baseline facial feature data, which is a quantitative judgment indicator for the third level of comparison.

[0155] The facial feature data to be matched refers to the third most similarity data obtained after comparing a single candidate facial feature data with the benchmark database, which is higher than the preset threshold. This data is the effective matching benchmark feature for the corresponding candidate.

[0156] The specific execution process of step 105 is as follows:

[0157] Receive the candidate facial feature dataset from the second-level comparison output, calculate the feature similarity between each candidate facial feature data and each benchmark facial feature data in the benchmark facial feature library, and generate the third similarity between each candidate and each benchmark data. The third similarity is calculated using cosine similarity.

[0158] For each candidate facial feature data, all its corresponding third similarity scores are compared with a preset similarity threshold T1. If there is a third similarity score greater than T1, the benchmark facial feature data with the highest score is selected as the facial feature data to be matched. The facial feature data to be matched and its associated highest third similarity score are integrated to generate the third-level comparison result of the candidate facial feature data. If all the third similarity scores of the candidate are not greater than T1, the candidate facial feature data is removed.

[0159] Traverse all candidate facial feature data, complete all third-level comparison calculations and result determinations; if there are valid third-level comparison results, output all valid results to the subsequent screening processing steps; if all candidate facial feature data are eliminated, determine the facial matching result of the facial feature data to be identified as a facial matching failure, and store the facial feature data to be identified in the full-scene facial feature library to complete the dynamic iterative update of the database.

[0160] For example, taking the above-mentioned personnel management scenario in a certain production plant area as an example, the candidate facial feature dataset output in step 104 contains a total of 15 candidate facial feature data, and the third-level global comparison uses the preset similarity threshold T1 of the first-level comparison as 70%.

[0161] The background processing terminal processes 15 candidate facial feature data one by one: the k-th candidate facial feature vector C k Compared with all N baseline facial feature vectors Y1, Y2, Y3, ..., Y in the baseline facial feature database N Calculate the cosine similarity for each candidate facial feature data to obtain all the third similarities S. 3k1 S 3k2 S 3k3 S 3kN .

[0162] For each candidate facial feature data, if its highest third similarity is greater than or equal to 70%, the benchmark facial feature data corresponding to the highest third similarity is selected as the facial feature data to be matched, and the third-level comparison result of the candidate facial feature data is generated after binding the corresponding highest third similarity; if the highest third similarity is less than 70%, the candidate data is directly removed.

[0163] After traversing 15 candidate facial feature data, if at least one valid third-level comparison result exists, all valid results are pushed to the subsequent filtering and processing steps, and the best result is output as the final matching result. If the highest third similarity of all 15 candidate data is less than 70%, all of them are removed. In this case, the matching of the facial feature data to be identified is determined to be unsuccessful. The facial feature data to be identified is then stored in the full-scene facial feature library to supplement the sample pool data and complete the database iterative update.

[0164] Step 106: Select the best of all the third-level comparison results to generate the facial matching results of the facial feature data to be identified.

[0165] Specifically, step 106 includes the following sub-steps:

[0166] Extract the facial feature data to be matched and the third similarity of the facial feature data to be matched from each third-level comparison result;

[0167] Based on the third similarity, all facial feature data to be matched are sorted in descending order to obtain the third-level sorting result;

[0168] The facial feature data that is first in the third-level sorting results is used as the matching facial feature data;

[0169] Based on the hit facial feature data, the target person's identity information bound to the hit facial feature data, and the target violation associated with the facial feature data to be identified, a facial matching result of the facial feature data to be identified is generated.

[0170] The hit facial feature data refers to the third most similar facial feature data to be matched, which is selected from all valid third-level comparison results. It corresponds to the baseline facial features of the person to be finally matched and is the core basis for generating facial matching results.

[0171] The facial matching result refers to the final output of a single progressive facial matching process, which includes the matched facial feature data and the personnel identity information it is bound to, and is used to trigger front-end violation alarms and personnel identity tracing.

[0172] Violation tracing logs refer to structured archived records generated after a successful match (integrating violation time, capture location, violation type, and personnel identity information), used for subsequent control and tracing, data statistics, and behavior analysis.

[0173] The closed-loop update mechanism refers to the standardized closing mechanism executed after a single matching process ends. It includes strategies such as archiving successfully matched data, adding failed matching features to the database, clearing candidate datasets, and releasing computing resources. This mechanism is used to achieve dynamic database iteration and system resource reuse.

[0174] The specific execution flow of step 106 is as follows:

[0175] Traverse all third-level comparison results, extract the facial feature data to be matched contained in each result, and the highest third similarity of the corresponding facial feature data to be matched;

[0176] All facial feature data to be matched are sorted in descending order according to the third similarity score, from high to low, to generate the third-level similarity ranking results.

[0177] The facial feature data that ranks first in the third-level similarity ranking results is selected as the matching facial feature data;

[0178] Retrieve the identity information of the person bound to the hit facial feature data, combine the corresponding third similarity value and the target violation associated with the facial feature data to be identified, generate the facial matching result of the facial feature data to be identified, push it to the front end of the system, and trigger violation alarm and personnel identity tracing.

[0179] For scenarios where facial matching is successful, the system integrates the time of the violation, the capture location number, the target violation behavior, and the identity information of the matched person to generate a structured violation tracing log and archive it.

[0180] For scenarios where all Level 3 comparison results are invalid and the final matching is deemed unsuccessful, the facial feature data to be identified is stored in the full-scene facial feature database, and non-standard pose sample data is added.

[0181] After completing the output and data processing, the candidate dataset generated in this matching process is automatically cleared, the occupied computing resources are released, and the process waits for the next violation identification to trigger the matching process, forming a closed-loop mechanism for data iteration and resource reuse.

[0182] For example, taking the personnel management scenario of a certain production plant as an example, after completing the third-level global comparison of all 15 candidate facial feature data in step 105, the process enters the screening and closed-loop process in step 106.

[0183] If three valid results are obtained after the third-level comparison, with corresponding highest third similarities of 76%, 73%, and 71%, all higher than the preset similarity threshold of 70%, these three facial feature data to be matched and their corresponding highest third similarities are extracted. They are then sorted in descending order of similarity value from high to low, and the facial feature data to be matched with the first position and corresponding to 76% similarity is selected as the matched facial feature data.

[0184] The system retrieves the employee ID, name, workshop, and other identity information of the person whose facial features were matched, along with the violation of using a mobile phone, to generate a complete facial matching result. This result is then pushed to the monitoring center's front-end interface to complete the violation alert and personnel identification. Simultaneously, the system automatically integrates the time of the violation, the location of the capture point in the production workshop, the work area, the violation of using a mobile phone, and the identity information of the matched personnel to generate a structured violation identification log, which is then permanently stored and archived.

[0185] If, after the third-level comparison of 15 candidate facial feature data, all of the highest third similarity scores are below 70%, and there is no effective matching result, then the matching of the facial feature data to be identified is determined to be unsuccessful. The facial feature data to be identified is then stored in the full-scene facial feature library to supplement non-standard pose face samples.

[0186] Regardless of whether the match is successful or not, after the matching process ends, the dataset of 15 candidate facial features and intermediate computation data will be automatically cleared, the occupied computing resources will be released, and the system will be restored to the pending state, waiting for the next violation identification to start the matching process. By continuously iterating and enriching the sample library, the accuracy of personnel identification in complex scenarios will be gradually improved.

[0187] In some embodiments, refer to Figure 2 , Figure 2 This is another optional flowchart of a progressive human face matching method based on computer vision provided in an embodiment of the present invention. Figure 2 The process for each step is as follows:

[0188] S1 monitoring equipment deployment and video capture configuration: Complete the IPC deployment and linkage parameter configuration of the monitoring points to realize the periodic capture, encrypted transmission and raw data storage of images in the monitoring area, providing basic data support for subsequent violation identification, feature extraction and personnel matching;

[0189] S2 Dual-Face Feature Database Construction and Data Initialization: Construct two complementary face feature databases: a baseline face feature database (personnel registration feature database) and a full-scene face feature database (real-time capture feature database). Complete the standard feature input of registered personnel and the initialization of historical capture features, forming a dual-database architecture that is complementary between standardized baselines and full-scene samples.

[0190] S3 Real-time Video Violation Intelligent Recognition: It identifies violations and locates target personnel in the captured images of the monitored area. When a preset violation is detected, the corresponding image is locked and a subsequent progressive face matching process is triggered. Captured images without detected violations are entered into the regular iterative database process of the full-scene feature library.

[0191] S4 First Round Precise Database Matching - Filing Database 1:N Global Comparison: The facial feature data to be identified is compared with the benchmark facial feature database at the first level of full comparison. If a standard frontal face (target facial feature data) is matched, the matching is completed directly and the result is output; non-standard face that fails to match automatically enters the next level of comparison process.

[0192] S5 Second Round Wide Area Screening - Real-time Feature Library 1:N Candidate Set Extraction: The facial feature data to be identified that failed the first-level matching is compared with the full-scene facial feature library in the second level. After sorting in descending order of similarity, a preset number of candidate facial feature data are selected, which reduces the amount of subsequent verification calculation while ensuring coverage.

[0193] S6 Third Round Precision Verification - Candidate Set N:N Secondary Comparison: All candidate facial feature data are compared one by one with the benchmark facial feature library to complete the secondary verification in non-standard face scenarios and generate the third-level comparison results corresponding to each candidate facial feature data.

[0194] S7 Data Archiving and Closed-Loop Update: Selects the best of all Level 3 comparison results and outputs the final face matching result; Simultaneously completes the archiving of successfully matched data, the addition of features from failed matches to the database, the clearing of candidate datasets and the release of computing resources, forming a closed-loop process of dynamic database iteration and system resource reuse.

[0195] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0196] The progressive face matching device based on computer vision provided in the embodiments of this application will be described below. The progressive face matching device based on computer vision described below and the progressive face matching method based on computer vision described above can be referred to in correspondence.

[0197] Reference Figure 3 , Figure 3 This is an optional structural diagram of a computer vision-based progressive facial matching device provided in an embodiment of the present invention. The device is used to execute the aforementioned computer vision-based progressive facial matching method, including:

[0198] Image acquisition module 201 is used to acquire images of the current monitored area;

[0199] Feature extraction module 202 is used to extract facial features of target personnel from the image of the current monitoring area and generate facial feature data to be identified;

[0200] The first comparison module 203 is used to perform a first-level global comparison between the facial feature data to be identified and the benchmark facial feature library, and generate a first-level comparison result.

[0201] The second comparison module 204 is used to perform a second-level global comparison between the facial feature data to be identified and the full-scene facial feature library if the first-level comparison result is a failure to match, and to filter candidate facial feature data.

[0202] The third comparison module 205 is used to perform a third-level global comparison of each candidate facial feature data with the benchmark facial feature library, and generate the third-level comparison results of each candidate facial feature data.

[0203] The face matching module 206 is used to perform optimal screening of all third-level comparison results and generate face matching results of the facial feature data to be identified.

[0204] In some embodiments, the feature extraction module 202 is specifically configured as follows:

[0205] Using a behavioral analysis visual model, we can identify violations and locate personnel in the current monitored area, and output the matched target violations and the area where the target personnel associated with the target violations are located.

[0206] Perform facial detection on the area where the target person is located to identify the valid facial region;

[0207] Facial features are extracted from the effective facial regions to generate facial feature data to be identified.

[0208] In some embodiments, the first comparison module 203 is specifically configured as follows:

[0209] The facial feature data to be identified is compared with each benchmark facial feature data in the benchmark facial feature database to generate the first similarity between the facial feature data to be identified and each benchmark facial feature data.

[0210] If there is a reference facial feature data with a first similarity greater than a preset similarity threshold, the reference facial feature data with the highest first similarity is selected as the target facial feature data, the first-level comparison result is determined as a successful match, and the personnel identity information bound to the target facial feature data and the target facial feature data are associated with the first-level comparison result.

[0211] If no baseline facial feature data with a first similarity greater than the preset similarity threshold exists, the first-level comparison result will be determined as a matching failure.

[0212] If the first-level comparison result is a successful match, then based on the personnel identity information and target facial feature data associated with the first-level comparison result, a facial matching result of the facial feature data to be identified is generated.

[0213] In some embodiments, the second comparison module 204 is specifically configured as follows:

[0214] The facial feature data to be identified is compared with the full-scene facial feature database in a second-level global comparison to filter candidate facial feature data, including:

[0215] The facial feature data to be identified is compared with the facial feature data of each scene in the full-scene facial feature database to generate a second similarity between the facial feature data to be identified and the facial feature data of each scene.

[0216] Based on the second similarity, all scene facial feature data are sorted in descending order to obtain the second-level sorting result;

[0217] The facial feature data of the scene that ranks in the top preset position in the second-level sorting results are used as candidate facial feature data.

[0218] In some embodiments, the third comparison module 205 is specifically configured as follows:

[0219] The candidate facial feature data is compared with each benchmark facial feature data in the benchmark facial feature database to generate a third similarity between the candidate facial feature data and each benchmark facial feature data.

[0220] If there is a baseline facial feature data with a third similarity greater than a preset similarity threshold, then the baseline facial feature data with the highest third similarity will be used as the facial feature data to be matched.

[0221] Integrate the third similarity between the facial feature data to be matched and the candidate facial feature data and the facial feature data to be matched to generate the third-level comparison result of the candidate facial feature data;

[0222] If there is no baseline facial feature data with a third similarity greater than the preset similarity threshold, the corresponding candidate facial feature data will be removed.

[0223] If all candidate facial feature data are eliminated, the facial matching result of the facial feature data to be identified is determined as a facial matching failure, and the facial feature data to be identified is stored in the full-scene facial feature library.

[0224] In some embodiments, the face matching module 206 is specifically configured as follows:

[0225] Extract the facial feature data to be matched and the third similarity of the facial feature data to be matched from each third-level comparison result;

[0226] Based on the third similarity, all facial feature data to be matched are sorted in descending order to obtain the third-level sorting result;

[0227] The facial feature data that is first in the third-level sorting results is used as the matching facial feature data;

[0228] Based on the hit facial feature data, the target person's identity information bound to the hit facial feature data, and the target violation associated with the facial feature data to be identified, a facial matching result of the facial feature data to be identified is generated.

[0229] In some embodiments, the aforementioned computer vision-based progressive facial matching device further includes a feature library construction module, which is used to construct a full-scene facial feature library, specifically configured as follows:

[0230] Acquire historical images of the monitored area;

[0231] Perform facial detection on historical surveillance area images to locate sample facial regions;

[0232] A facial feature extraction model is used to extract facial features and recognize poses in the facial region of the sample, and output scene facial feature data and corresponding facial pose labels.

[0233] After associating scene facial feature data with facial pose labels, the data is stored in a pre-built full-scene facial feature library.

[0234] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0235] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.

[0236] The modules described as separate components may or may not be physically separate. Similarly, the components shown as modules may or may not be physical modules; they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment, depending on actual needs.

[0237] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.

[0238] If the integrated module is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0239] This invention also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the aforementioned progressive facial matching method based on computer vision. This electronic device can be any smart terminal, including a tablet computer.

[0240] It is understood that the content of the above method embodiments is applicable to this device embodiment. The specific functions implemented by this device embodiment are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0241] Please see Figure 4 , Figure 4 The hardware structure of an electronic device according to another embodiment is illustrated, including:

[0242] The processor 901 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present invention.

[0243] The memory 902 can be implemented as a read-only memory (ROM), static storage device, dynamic storage device, or random access memory (RAM). The memory 902 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 902 and is called and executed by the processor 901 to implement the computer vision-based progressive human face matching method of the embodiments of this invention.

[0244] The input / output interface 903 is used to implement information input and output;

[0245] The communication interface 904 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0246] Bus 905 transmits information between various components of the device (e.g., processor 901, memory 902, input / output interface 903, and communication interface 904);

[0247] The processor 901, memory 902, input / output interface 903, and communication interface 904 are connected to each other within the device via bus 905.

[0248] This invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the aforementioned progressive human face matching method based on computer vision.

[0249] It is understood that the content of the above method embodiments is applicable to this storage medium embodiment. The specific functions implemented in this storage medium embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.

[0250] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0251] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A progressive facial matching method based on computer vision, characterized in that, include: Acquire images of the current monitored area; The facial features of the target person are extracted from the image of the current monitoring area to generate facial feature data to be identified; The facial feature data to be identified is compared with the benchmark facial feature library at the first level to generate the first level comparison result. If the first-level comparison result is a matching failure, the facial feature data to be identified is compared with the full-scene facial feature library in the second level of global comparison to filter candidate facial feature data. The candidate facial feature data is compared with the benchmark facial feature library at the third level to generate the third level comparison result of each candidate facial feature data. The best of all the third-level comparison results are selected and filtered to generate the facial matching result of the facial feature data to be identified.

2. The progressive facial matching method based on computer vision according to claim 1, characterized in that, The step of extracting facial features of the target person from the image of the current monitored area to generate facial feature data to be identified includes: A behavior analysis visual model is used to identify violations and locate personnel in the current monitored area image, and outputs the matched target violation and the area where the target personnel associated with the target violation are located. Facial detection is performed on the area where the target person is located to identify the valid facial region; Facial features are extracted from the effective facial region to generate facial feature data to be identified.

3. The progressive facial matching method based on computer vision according to claim 1, characterized in that, The step of performing a first-level global comparison between the facial feature data to be identified and the benchmark facial feature database to generate a first-level comparison result includes: The facial feature data to be identified is compared with each benchmark facial feature data in the benchmark facial feature library to generate a first similarity between the facial feature data to be identified and each benchmark facial feature data. If there is a reference facial feature data with a first similarity greater than a preset similarity threshold, then the reference facial feature data with the highest first similarity is selected as the target facial feature data, the first-level comparison result is determined as a successful match, and the personnel identity information bound to the target facial feature data and the target facial feature data are associated with the first-level comparison result. If no baseline facial feature data with a similarity greater than the preset similarity threshold exists, the first-level comparison result will be determined as a matching failure.

4. The progressive facial matching method based on computer vision according to claim 3, characterized in that, Also includes: If the first-level comparison result is a successful match, then based on the personnel identity information and target facial feature data associated with the first-level comparison result, a facial matching result of the facial feature data to be identified is generated.

5. The progressive facial matching method based on computer vision according to claim 1, characterized in that, The construction of the full-scene facial feature library includes: Acquire historical images of the monitored area; Facial detection is performed on the historical monitoring area images to locate sample facial regions; A facial feature extraction model is used to extract facial features and recognize poses in the facial region of the sample, and output scene facial feature data and corresponding facial pose labels. After associating the scene facial feature data with the facial pose label, the data is stored in a pre-built full-scene facial feature library.

6. The progressive facial matching method based on computer vision according to claim 1, characterized in that, The step of performing a second-level global comparison between the facial feature data to be identified and the full-scene facial feature database to filter candidate facial feature data includes: The facial feature data to be identified is compared with the facial feature data of each scene in the full-scene facial feature library to generate a second similarity between the facial feature data to be identified and each scene facial feature data. Based on the second similarity, all scene facial feature data are sorted in descending order to obtain the second-level sorting result; The facial feature data of the scene that is in the top preset position in the second-level sorting result is used as candidate facial feature data.

7. The progressive facial matching method based on computer vision according to claim 1, characterized in that, The step of performing a third-level global comparison between each candidate facial feature data and the benchmark facial feature database to generate a third-level comparison result for each candidate facial feature data includes: The candidate facial feature data is compared with each benchmark facial feature data in the benchmark facial feature library to generate a third similarity between the candidate facial feature data and each benchmark facial feature data. If there is a reference facial feature data with a third similarity greater than a preset similarity threshold, then the reference facial feature data with the highest third similarity will be used as the facial feature data to be matched. The third similarity between the facial feature data to be matched and the candidate facial feature data and the facial feature data to be matched is integrated to generate the third-level comparison result of the candidate facial feature data.

8. The progressive facial matching method based on computer vision according to claim 7, characterized in that, Also includes: If no baseline facial feature data with a third similarity greater than a preset similarity threshold exists, the corresponding candidate facial feature data will be removed. If all candidate facial feature data are eliminated, the facial matching result of the facial feature data to be identified is determined as a facial matching failure, and the facial feature data to be identified is stored in the full-scene facial feature library.

9. The progressive facial matching method based on computer vision according to claim 2, characterized in that, The step of performing a selective filtering process on all the third-level comparison results to generate the facial matching result of the facial feature data to be identified includes: Extract the facial feature data to be matched and the third similarity of the facial feature data to be matched from each of the third-level comparison results; Based on the third similarity, all facial feature data to be matched are sorted in descending order to obtain the third-level sorting result; The facial feature data that is first in the third-level sorting results is used as the matched facial feature data. Based on the hit facial feature data, the target person's identity information bound to the hit facial feature data, and the target violation associated with the facial feature data to be identified, a facial matching result of the facial feature data to be identified is generated.

10. A progressive facial matching device based on computer vision, characterized in that, include: The image acquisition module is used to acquire images of the current monitored area; The feature extraction module is used to extract facial features of target persons from the image of the current monitoring area and generate facial feature data to be identified. The first comparison module is used to perform a first-level global comparison between the facial feature data to be identified and the benchmark facial feature library, and generate a first-level comparison result. The second comparison module is used to perform a second-level global comparison between the facial feature data to be identified and the full-scene facial feature library if the first-level comparison result is a matching failure, and to filter candidate facial feature data. The third comparison module is used to perform a third-level global comparison between each of the candidate facial feature data and the benchmark facial feature library, and generate a third-level comparison result for each of the candidate facial feature data. The face matching module is used to perform optimal filtering on all the third-level comparison results to generate the face matching result of the facial feature data to be identified.