A face recognition system and method

By using edge computing nodes in the face recognition system to perform feature extraction and recognition of face video streams, the problems of high face recognition accuracy and network delay in the existing technology are solved, and a more efficient recognition effect is achieved.

CN113283397BActive Publication Date: 2024-08-27CHINA PING AN LIFE INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110728715.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-29
Publication Date
2024-08-27
Estimated Expiration
2041-06-29

AI Technical Summary

Technical Problem

Existing face recognition systems have problems with low accuracy and large network delays in scenarios such as meeting sign-in, resulting in low face recognition efficiency.

Method used

Using an edge recognition system, the face video stream is collected through the camera and feature extraction is performed on the edge computing node. Only the extracted features are sent to the central computer room for recognition, which reduces network bandwidth requirements and delays, and improves recognition efficiency.

Benefits of technology

Through the collaborative deployment of edge computing nodes and central computer rooms, the pressure on the central computer room is reduced, network delays are reduced, the accuracy and efficiency of face recognition are improved, and network bandwidth is saved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113283397B
    Figure CN113283397B
Patent Text Reader

Abstract

The embodiment of the present application belongs to the field of face recognition and is applied in the field of smart cities. It relates to a face recognition method, including the camera, which is used to collect face video streams and transmit the face video streams to the edge recognition device; the edge recognition device is used to collect face areas from the face video streams through the face processing terminal, and send the face areas to the edge computing nodes determined by the node acquisition algorithm; the edge computing nodes then perform feature extraction on the face areas, and send the extracted face features to the central computer room for face recognition to obtain face recognition results. The use of this method can greatly reduce the demand for network bandwidth, improve network throughput, reduce network latency, and improve the efficiency of face recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of face recognition, and in particular to a face recognition system and method. Background Art

[0002] With the application and popularization of various electronic products, electronic sign-in has been widely used in the fields of conference sign-in, employee sign-in, student sign-in, etc. Taking the conference sign-in scenario as an example, the existing sign-in solution based on face recognition is as follows: several face sign-in devices are set at the entrance of the venue. When the sign-in user enters the venue, he / she points his / her face to the camera of the face sign-in device. The camera of the face sign-in device collects the face image (usually a photo) of the sign-in user and sends the face image of the sign-in user to the server. The server recognizes and matches the face image of the sign-in user and obtains the sign-in result.

[0003] In the existing technology, the accuracy of face recognition cannot be achieved and the network delay is large. Summary of the invention

[0004] Based on this, in response to the above technical problems, the present application provides a face recognition system and method to solve the technical problems in the prior art that the accuracy of face recognition is not high and the network delay is large.

[0005] A face recognition system, the system comprising at least one camera and an edge recognition device, wherein the edge recognition device comprises a face processing terminal, a plurality of edge computing nodes directly or indirectly connected to each other, and a central computer room:

[0006] The camera is used to collect a face video stream and transmit the face video stream to the edge recognition device;

[0007] The edge recognition device is used to collect the face area from the face video stream through the face processing terminal, and send the face area to the edge computing node determined by the node acquisition algorithm; then extract the features of the face area through the edge computing node, and send the extracted face features to the central computer room for face recognition to obtain a face recognition result, wherein the face area is a regional image including the face.

[0008] A face recognition method is applied to an edge recognition device, wherein the edge recognition device includes a face processing terminal, a plurality of edge computing nodes connected to each other directly or indirectly, and a central computer room:

[0009] The face processing terminal collects a face area from a face video stream collected by a camera, and sends the face area to an edge computing node determined by a node acquisition algorithm, wherein the face area is a regional image including a face;

[0010] The edge computing node is then used to extract features from the face area, and the extracted face features are sent to the central computer room for face recognition to obtain face recognition results.

[0011] The above-mentioned face recognition system and method are applied to an edge recognition device, which includes a face processing terminal, a plurality of edge computing nodes connected to each other directly or indirectly, and a central computer room: the face processing terminal collects the face area from the face video stream collected by the camera, and sends the face area to the edge computing node determined by the node acquisition algorithm; the edge computing node then extracts the features of the face area, and sends the extracted face features to the central computer room for face recognition to obtain face recognition results. The edge computing nodes and the central computer room are deployed in various areas for data processing, thereby reducing the pressure on the central computer room and reducing the delay speed of network inference. In addition, by transmitting only face features to the central computer room for face comparison under specific circumstances, the demand for network bandwidth can be greatly reduced, the network throughput can be improved, the network delay can be reduced, and the efficiency of face recognition can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0013] Figure 1 This is a schematic diagram of the application environment of the face recognition system;

[0014] Figure 2 is a schematic diagram of an edge recognition device;

[0015] Figure 3 Flow chart of a face recognition method for face tracking in one embodiment. DETAILED DESCRIPTION

[0016] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0017] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0018] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0019] The face recognition method provided by the embodiment of the present invention can be applied to Figure 1 In the application environment shown, the application environment may include a terminal 102, a network and a server 104, the network is used to provide a communication link medium between the terminal 102 and the server 104, and the network may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0020] It should be noted that the face recognition method provided in the embodiment of the present application is generally executed by the server / terminal, and accordingly, the edge recognition device used therein is generally arranged in the server / terminal device.

[0021] This application can be applied in the field of smart cities, and in particular, can be applied to smart enterprises, thereby promoting the construction of smart cities.

[0022] Please refer to Figure 1, which shows a schematic diagram of an implementation environment provided by an embodiment of the present invention, the implementation environment may include at least one camera 102, and an edge recognition device 104 for processing images captured by the camera 102. The camera 102 may be deployed at the entrance channel of the face recognition site. When the user passes through the entrance and enters the venue, the camera 102 may capture a video stream including the user's face in real time.

[0023] Optionally, the camera 102 is a high-definition camera and supports real-time transmission of video streams. Taking the corporate clock-in scenario as an example, assuming that there are six entrances to the corporate workplace, a high-definition network camera can be deployed at each entrance and connected to the local area network. The camera collects the video stream at the entrance in real time. When each employee passes through any entrance, the face image of the participant will be recorded in the video stream collected by the camera.

[0024] In one embodiment, Figure 1 As shown, a face recognition system is provided, which is applied to include at least one camera 102 and an edge recognition device 104, wherein, as Figure 2 As shown, the edge recognition device 104 includes a face processing terminal 202, a plurality of edge computing nodes 204 directly or indirectly connected to each other, and a central computer room 206.

[0025] In particular, it can be applied to face recognition systems with millions of people, especially large-scale face recognition scenarios, such as the clock-in attendance system of large enterprises and the face recognition system of railway stations. During peak hours, because some face collection sites are far away from the central computer room 206 for face recognition, the network delay is 1 to 2 seconds or more, which is mainly reflected in the large network delay, extended face recognition time and poor experience. In addition, hardware computing power and cost, and the acceleration of deep learning models are also a pain point. Sometimes, although there are deep models, they cannot be supported on ordinary PCs. If the hardware is to be upgraded to support deep models, the cost will increase. If only shallow face recognition models are used, the accuracy of face recognition cannot meet the requirements. The hardware cost, model size and recognition effect are interdependent and influence each other.

[0026] Among them, at least one camera 102 of the present application refers to a camera set at different geographical locations, used to collect face video streams, and then send the collected face video streams to the edge recognition device 104.

[0027] Furthermore, the camera 102 may be deployed at an entrance or exit of an enterprise workplace. When a user passes through the entrance or exit, the camera captures a video stream recording the user's face in real time.

[0028] Optionally, the camera 102 may also be deployed at a high-speed railway station or a railway station checkpoint. When a user passes through the checkpoint, the camera captures a video stream with the user's face in real time.

[0029] In some embodiments, the edge recognition device 104, such as Figure 2 As shown, it is mainly used to process the video stream and perform face recognition to obtain the face recognition result, collect the face area from the face video stream through the face processing terminal 202, and send the face area to the edge computing node 204 determined by the node acquisition algorithm; then extract the features of the face area through the edge computing node, and send the extracted face features to the central computer room 206 for face recognition to obtain the face recognition result, and return the face recognition result to the face processing terminal 202 to perform corresponding operations, such as opening and closing the gate.

[0030] Further, the face processing terminal 202 detects the face in the face video stream to obtain at least one face region including the face to be detected, performs quality detection on the face region to obtain a quality detection result, and then sends the face region corresponding to the face whose quality detection result is unclear to the edge computing node 204 determined by the node acquisition algorithm;

[0031] Furthermore, when the quality detection result is clear, the face area can be directly sent to the central computer room 206 for face recognition.

[0032] A face image frame is randomly captured from the face video stream captured by the camera 102, and face detection is performed through OpenCV on the face processing terminal 202, wherein OpenCV is a cross-platform computer vision and machine learning software library released based on the BSD license (open source).

[0033] Specifically, the face detection steps are:

[0034] A face image is obtained and grayscaled to obtain a grayscale image; the face position coordinates of at least one face to be detected are obtained by a cascade classifier based on Haar features, and the face area corresponding to the face position coordinates is obtained. Furthermore, before performing face detection, a large number of positive images and negative images (i.e., images with faces and images without faces) are required to train the classifier.

[0035] Then, face quality detection is performed. A lightweight quality judgment model and a face key point discrimination model are introduced in this application. Among them, the quality judgment model mainly classifies the faces after face alignment, and there are five main categories: front face, side face, blur, mask and occlusion. Only the front face picture is used for the next step of face recognition feature calculation and is considered to be a clear image. Feature extraction can be performed through the face processing terminal and directly transmitted to the central computer room 206 for feature comparison to complete the recognition operation. Otherwise, the face area is transmitted to the edge computing node 204 determined by the node acquisition algorithm for feature extraction.

[0036] Furthermore, in this embodiment, the face processing terminal can randomly cut out the face video stream. Figure 1 The frame includes a face image, and face detection is performed on the face image using OpenCV and a face detection model on the face processing terminal to obtain a face region including the face.

[0037] Specifically, a face image frame is randomly captured from the face video stream, and face detection is performed through OpenCV and a face detection model on the face processing terminal, wherein OpenCV is a cross-platform computer vision and machine learning software library released based on the BSD license (open source).

[0038] Get the face image through OpenCV, call the face detection model, pass in the above image, and return the face coordinate position and the position of the face key points (5 points).

[0039] Furthermore, before performing face detection, a large number of positive images and negative images (i.e., images with faces and images without faces and the coordinates of facial key points, including the left eye, right eye, nose tip, left corner of the mouth, and right corner of the mouth) are required for face detection training.

[0040] The face detection model may be a PCN face detection model, that is, a PCN progressive face detection model.

[0041] Furthermore, the face key points are the 5 key point information brought out by the face detection model, the center of the left eye, the center of the right eye, the tip of the nose, the left corner of the mouth, and the right corner of the mouth. The key points are used for face alignment. Face alignment is a commonly used and very important step in face recognition in the industry. This application uses the key point information to classify the front face image again, mainly the head down, the side face at a large angle, and the head up at a large angle, to further filter out non-standard non-front face information, to ensure the image quality of the next step of face recognition, to save network and computing resources, to improve the accuracy and recall rate of face recognition, and to significantly reduce invalid and low-quality face recognition requests.

[0042] The traditional method is to directly transmit the image of the face area of ​​face recognition to the central computer room 206 for calculation. The present embodiment extracts features from unclear face images before transmitting them to the central computer room 206. Considering that a face feature has only 256 or 2048 bytes, and a face image requires 6K or 50 bytes of more content, it saves at least 3 times, or dozens of times, of network bandwidth, reduces network latency, and improves face recognition timeliness. It also avoids the technical problem of not being able to obtain high-quality faces and always failing face recognition.

[0043] Furthermore, in the face recognition model, the present application also sets a face quality judgment model on the face processing terminal through two dual-model modes, deep and shallow. For relatively clear faces, a relatively shallow deep learning model is used directly locally to extract features, and then transmitted to the central computer room for authentication. For relatively blurry or poor quality faces, the image corresponding to the face is transmitted to the edge computing node, and the GPU is deployed on the edge computing node for inference to implement feature extraction operations, and then transmitted to the central node for face recognition and comparison.

[0044] The edge computing node is determined by judging whether the edge computing node and the face processing terminal are in the same local area network;

[0045] Generally, face processing terminals in the same local area network share an edge computing node 204, such as the same building. This method can establish a service through a pre-selected fixed IP and access it. Another method is to use smart DNS to select the most suitable network and the nearest edge computing node, i.e., edge computing device, for communication based on the customer's own location.

[0046] In addition, optionally, smart DNS can be used to select the most appropriate network and the nearest edge computing node for communication based on the customer's location.

[0047] For example, every province in the country has an edge computing node 204, that is, an edge computing device. Then the face processing terminal in the province will automatically determine the edge computing node in the province for communication through the intelligent DNS, thereby reducing network latency.

[0048] Among them, the edge recognition device extracts features of the face area whose quality detection result is unclear through the edge computing node, and sends the extracted face features to the central computer room for face recognition. Among them, the edge recognition device is a device that performs face recognition in collaboration with terminal preprocessing, edge computing and central computing. On the edge node, this embodiment deploys a GPU or a chip with deep learning reasoning acceleration to support a very deep deep learning model. The specific steps are:

[0049] In some embodiments, feature extraction can be performed by means of a histogram of oriented gradients, wherein the Histogram of Oriented Gradients (HOG) is a feature description method used for object detection in computer vision and image processing (feature description method: simplifying the image by extracting useful information from the image and discarding irrelevant information, and applying the information to the algorithm). Hog features combined with SVM classifiers have been widely used in image recognition, especially in pedestrian detection, and have achieved great success.

[0050] Extract useful information from the image. Generally, useful information refers to the edge contour of the object. In the image, the edge and corner of the object contain more information about the shape of the object, which is the object contour that can be seen at ordinary times. If the information of the edge and corner of the image can be extracted, it will be very helpful for object detection. The gradient feature around the edge and corner of the image varies greatly, so in the HOG feature description method, the distribution (histogram) of the gradient direction is used as its feature.

[0051] Specifically: calculate the image gradient; calculate the gradient histogram in the cell, normalize the block, and calculate the HOG feature as the extracted face feature.

[0052] Specifically, the HOG feature extraction method is to grayscale any facial image with a face in a video stream, that is, to regard the facial image as a three-dimensional image of x, y, z (grayscale); then use the Gamma correction method to standardize the color space of the input image; the purpose is to adjust the contrast of the image, reduce the impact of local shadows and lighting changes in the image, and suppress noise interference; then calculate the gradient of each pixel of the image (including size and direction), mainly to capture contour information, while further weakening the interference of lighting.

[0053] The image is divided into small cells (for example, 6*6 pixels / cell); the gradient histogram of each cell (the number of different gradients) is counted to form the descriptor of each cell; several cells are grouped into a block (for example, 3*3 cells / block), and the feature descriptors of all cells in a block are connected in series to obtain the HOG feature descriptor of the block.

[0054] By concatenating the HOG feature descriptors of all blocks in the image, we can get the HOG feature descriptor of the face image (the target to be detected) and obtain the final feature vector that can be used for classification.

[0055] Furthermore, the central computer room searches a preset feature library based on the Faiss library to see whether there is a target feature consistent with the facial feature; if so, the face corresponding to the target feature is used as the target face of the face to be detected, as the face recognition result; if not, the step of detecting the face in the face video stream through the face processing terminal is repeated until the face recognition result is obtained, or the operation of detecting each frame of the face in the face processing terminal is completed to obtain a face recognition result in which the face to be detected does not exist.

[0056] Specifically, in order to improve the efficiency of face recognition, the face feature search is generally not a linear search. Russia and Japan use Facebook's Faiss library. The Faiss library is a feature comparison method similar to a binary tree structure, which can solve the problem of low efficiency of linear search in the prior art.

[0057] When the corresponding consistent features are detected, the corresponding face is used as the target face of the face to be detected, and the corresponding unique ID is obtained to complete the face recognition operation.

[0058] Furthermore, in order to improve the efficiency of face recognition and reduce the amount of data processing, faces in video streams can also be located by face tracking. Specifically:

[0059] For each face in the face video stream, the face processing terminal performs face tracking, then identifies the face area of ​​the tracked face to be detected according to the time series, and sends the face area to the edge computing node determined by the node acquisition algorithm;

[0060] Extract features from each face region through the edge computing node 204, and send the extracted face features to the central computer room 206 for face recognition;

[0061] The central computer room 206 searches the preset feature library based on the Faiss library to see whether there is a target feature consistent with the facial feature; if so, the face corresponding to the target feature is used as the target face to be detected, as the face recognition result; if not, the step of performing face tracking through the face processing terminal is repeated until the face recognition result is obtained.

[0062] Specifically, face tracking technology is applied to track the face according to the face position coordinates after face detection, that is, the face detection frame, so that for a face that has been successfully recognized, the quality judgment is no longer repeated. After face alignment, and the subsequent feature calculation and recognition, the pressure on the client and server can be greatly reduced. For example, a camera head vaccine collects 5 pictures for recognition. If the first picture in the first second has been successfully recognized, then the subsequent 4 images do not need to be recognized, which can save four-fifths of the calculation. If the same person appears in camera 102 for 3 seconds, the next 2 seconds do not need to be calculated, which saves a total of 14 / 15 of computing resources and loan resources.

[0063] Furthermore, facial feature comparison can be performed by calculating the extracted facial features, such as the homography matrix of facial feature points and the facial feature points of the faces in the feature library, and the faces can be standardized to a unified standard through the transformation relationship. Usually only 4 pairs of points are needed to estimate the matrix. In order to more accurately estimate the transformation relationship of the image, all facial feature points are added to the calculation to list 68 sets of equations. The number of equations is greater than the coefficients to be solved. The RANSAC algorithm is used to solve this super-positive equation, calculating 4 points each time, and selecting the one with the largest number of internal points as the final result.

[0064] In one embodiment, Figure 3 As shown, a face recognition method is provided, which is applied to an edge recognition device, wherein the edge recognition device includes a face processing terminal, a plurality of edge computing nodes connected to each other directly or indirectly, and a central computer room, including:

[0065] Step 302: The face processing terminal collects a face area from the face video stream collected by the camera, and sends the face area to an edge computing node determined by a node acquisition algorithm.

[0066] Specifically, the face in the face video stream is detected by the face processing terminal to obtain at least one face area including the face to be detected; and the face in the face area is quality detected, and the face with the quality detection results of side face, blur, mask and occluded is regarded as an unclear face, and the face area corresponding to the unclear face is sent to the edge computing node determined by the node acquisition algorithm.

[0067] Step 304: extract features of the face area through the edge computing node, and send the extracted face features to the central computer room for face recognition to obtain face recognition results.

[0068] In order to improve the efficiency of face recognition, the search for facial features is generally not a linear search. Russia and Japan use Facebook's Faiss library. Among them, the Faiss library is a feature comparison method similar to a binary tree structure. The Faiss library can solve the problem of low efficiency of linear search in the prior art. When the corresponding consistent features are detected, the corresponding face is used as the target face of the face to be detected, and the corresponding unique ID is obtained to complete the face recognition operation.

[0069] Optionally, for each face in the face video stream, face tracking is performed through the face processing terminal, and then the face area of ​​the tracked face to be detected is identified in time series, and the face area is sent to an edge computing node determined by a node acquisition algorithm; feature extraction is performed on each face area through the edge computing node, and the extracted face features are sent to the central computer room for face recognition; the central computer room searches a preset feature library based on the Faiss library to see whether there is a target feature consistent with the face feature; if so, the face corresponding to the target feature is used as the target face of the face to be detected, as the face recognition result; if not, the step of tracking the face through the face processing terminal is repeated until the face recognition result is obtained.

[0070] Specifically, the application of face tracking technology realizes face tracking based on the face position coordinates after face detection, that is, the face detection frame, so that for a face that has been successfully recognized, there is no need to repeat the quality judgment. After face alignment, and the subsequent feature calculation and recognition, the pressure on the client and server can be greatly reduced. For example, a camera collects 5 pictures for recognition. If the first picture in the first second has been successfully recognized, then the subsequent 4 images do not need to be recognized, which can save four-fifths of the calculation. If the same person appears in the camera for 3 seconds, the next 2 seconds do not need to be calculated, which saves a total of 14 / 15 of computing resources and loan resources.

[0071] Furthermore, facial feature comparison can be performed by calculating the extracted facial features, such as the homography matrix of facial feature points and the facial feature points of the faces in the feature library, and the faces can be standardized to a unified standard through the transformation relationship. Usually only 4 pairs of points are needed to estimate the matrix. In order to more accurately estimate the transformation relationship of the image, all facial feature points are added to the calculation to list 68 sets of equations. The number of equations is greater than the coefficients to be solved. The RANSAC algorithm is used to solve this super-positive equation, calculating 4 points each time, and selecting the one with the largest number of internal points as the final result.

[0072] In the above-mentioned face recognition method, by being applied to an edge recognition device, the edge recognition device includes a face processing terminal, a plurality of edge computing nodes connected to each other directly or indirectly, and a central computer room: the face processing terminal collects the face area from the face video stream collected by the camera, and sends the face area to the edge computing node determined by the node acquisition algorithm; then the edge computing node extracts the features of the face area, and sends the extracted face features to the central computer room for face recognition to obtain the face recognition result. The edge computing nodes and the central computer room are deployed in various areas for data processing, thereby reducing the pressure of the central computer room and reducing the delay speed of network inference. In addition, by transmitting only the face features to the central computer room for face comparison under specific circumstances, the demand for network bandwidth can be greatly reduced, the network throughput can be improved, the network delay can be reduced, and the efficiency of face recognition can be improved.

[0073] It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages do not necessarily have to be executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages does not have to be sequentially, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0074] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through computer-readable instructions, and the computer-readable instructions can be stored in a non-volatile computer-readable storage medium. When the computer-readable instructions are executed, they may include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0075] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0076] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for those of ordinary skill in the art, without departing from the concept of the present application, several modifications, improvements or equivalent replacements of some technical features can be made, and these modifications or replacements do not make the essence of the same technical solution depart from the spirit and scope of the technical solution of each embodiment of the present invention, and all belong to the protection scope of the present application. Therefore, the protection scope of the patent of this application shall be subject to the attached claims.

Claims

1. A face recognition system, characterized in that: The system includes at least one camera and an edge recognition device, wherein the edge recognition device includes a face processing terminal, a plurality of edge computing nodes connected to each other directly or indirectly, and a central computer room: The camera is used to collect a face video stream and transmit the face video stream to the edge recognition device; The edge recognition device is used to collect a face area from the face video stream through the face processing terminal, and send the face area to an edge computing node determined by a node acquisition algorithm; then extract features from the face area through the edge computing node, and send the extracted face features to the central computer room for face recognition to obtain a face recognition result, wherein the face area is a regional image including a face; The edge recognition device is specifically used for: Detecting a face in the face video stream by the face processing terminal to obtain at least one face region including a face to be detected; and Performing quality detection on the faces in the face area, treating the faces with any of the following quality detection results as profile, blur, mask, and occlusion as unclear faces, and sending the face area corresponding to the unclear faces to the edge computing node determined by the node acquisition algorithm; The edge recognition device is further used for: The face with a positive face in the quality inspection result is regarded as a clear face, and the face area corresponding to the clear face is transmitted to the central computer room; The edge recognition device is further used for: Before sending the face area with unclear quality detection results to the edge computing node determined by the node acquisition algorithm, obtain an edge computing node located in the same local area network as the face processing terminal from multiple edge computing nodes that are directly or indirectly connected to each other, and determine the edge computing node for extracting features from the face area; A shallow deep learning model is deployed on the face processing terminal, and a GPU or a chip with deep learning reasoning acceleration is deployed on the edge node to support a deep deep learning model.

2. The system according to claim 1, characterized in that The edge recognition device is further used for: Searching, through the central computer room, from a preset feature library based on the Faiss library whether there is a target feature that is consistent with the facial feature; If it exists, the face corresponding to the target feature is used as the target face of the face to be detected, as the face recognition result; If it does not exist, repeat the step of detecting the face in the face video stream through the face processing terminal until the face recognition result is obtained, or complete the operation of detecting the face in each frame of the face video stream to obtain a face recognition result in which the face to be detected does not exist.

3. The system according to claim 1, characterized in that The edge recognition device is further used for: A face image is randomly captured from the face video stream by the face processing terminal, and face detection is performed on the face image using OpenCV and a face detection model on the face processing terminal to obtain a face region including the face.

4. The system according to claim 1, characterized in that The edge recognition device is further used for: For each face in the face video stream, the face processing terminal performs face tracking, then identifies the face area of ​​the tracked face to be detected according to the time series, and sends the face area to the edge computing node determined by the node acquisition algorithm; the edge computing node performs feature extraction on each face area, and sends the extracted face features to the central computer room for face recognition; Searching, through the central computer room, from a preset feature library based on the Faiss library whether there is a target feature that is consistent with the facial feature; If so, the people corresponding to the target features are used as the target faces of the faces to be detected to obtain face recognition results; if not, the steps of performing face tracking through the face processing terminal are repeated until the face recognition results are obtained.

5. A face recognition method, characterized in that: Applied to an edge recognition device, the edge recognition device includes a face processing terminal, a plurality of edge computing nodes directly or indirectly connected to each other, and a central computer room; The face processing terminal collects a face area from a face video stream collected by a camera, and sends the face area to an edge computing node determined by a node acquisition algorithm, wherein the face area is a regional image including a face; Then, the edge computing node is used to extract features of the face area, and the extracted face features are sent to the central computer room for face recognition to obtain face recognition results; The face processing terminal collects a face area from a face video stream collected by a camera, and sends the face area to an edge computing node determined by a node acquisition algorithm, including: Detecting a face in the face video stream by the face processing terminal to obtain at least one face region including a face to be detected; and Performing quality detection on the faces in the face area, treating the faces with any of the following quality detection results as profile, blur, mask, and occlusion as unclear faces, and sending the face area corresponding to the unclear faces to the edge computing node determined by the node acquisition algorithm; The face with a positive face in the quality inspection result is regarded as a clear face, and the face area corresponding to the clear face is transmitted to the central computer room; Before sending the face area with unclear quality detection results to the edge computing node determined by the node acquisition algorithm, obtain an edge computing node located in the same local area network as the face processing terminal from multiple edge computing nodes that are directly or indirectly connected to each other, and determine the edge computing node for extracting features from the face area; A shallow deep learning model is deployed on the face processing terminal, and a GPU or a chip with deep learning reasoning acceleration is deployed on the edge node to support a deep deep learning model.

6. The method according to claim 5, characterized in that The detecting of the face in the face video stream by the face processing terminal to obtain at least one face region including a face to be detected comprises: A face image is randomly captured from the face video stream by the face processing terminal, and face detection is performed on the face image using OpenCV and a face detection model on the face processing terminal to obtain a face region including the face.