A human resources authority management device based on face image processing
Through face image processing and semantic recognition technology, the automatic configuration of human resources authority management devices is realized, which solves the cumbersome and inflexible problems of traditional authority management methods, improves efficiency and prevents data tampering, and ensures the accuracy and accuracy of authority. Data integrity.
Patent Information
- Application Number
- CN202410885812.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-03
AI Technical Summary
The authorization process of traditional human resources authority management methods is cumbersome, inefficient, and the authority control is inflexible. It cannot be automatically configured according to the work plan, and there is a risk of human tampering with access records.
A human resources rights management device based on face image processing is used to realize automatic configuration of personnel and access control rights through face recognition models and semantic recognition models. Information signatures are used to prevent data tampering, and infrared sensors are combined to prevent tailgating.
It simplifies the permission settings for personnel and access control, achieves precise permission control, improves configuration efficiency, prevents human tampering, and ensures the integrity of access data.
Smart Images

Figure CN118430112B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of image processing, and in particular to a human resource authority management device based on face image processing. Background Art
[0002] With the development of science and technology, the management of human resources by enterprises has become more and more complicated. In modern enterprises, human resource rights management is a vital task. In order to ensure the legal and efficient allocation of resources, enterprises need an intelligent rights management system. However, there are many problems with traditional rights management. The main problem is that traditional rights management methods usually rely on manual operations or authentication methods based on payment platforms. Specifically, the authorization process of traditional rights management methods is cumbersome, and rights management through payment platforms requires users to perform multiple operations, which is inefficient. On the other hand, rights control is not flexible, and traditional methods cannot flexibly control the allocation of rights.
[0003] The Chinese patent announcement number is CN220627111U, which discloses an automatic monitoring and control device for access control in a computer room, including an access control control unit, an identity recognition detection unit, a database storage unit, a network monitoring control and alarm unit, a telex system and an electromagnetic lock. The access control unit is respectively connected to the identity recognition detection unit, the database storage unit, the network monitoring control and alarm unit and the telex system, and the telex system is connected to the electromagnetic lock; the identity recognition detection unit is mainly composed of a face recognition detection unit, an RFID detection unit and a fingerprint recognition detection unit; the network monitoring control and alarm unit is mainly composed of a remote control unit, a network monitoring unit and a fault alarm unit. It can be actually applied to the access control system of the data computer room of the command center, providing a new design idea for the control of confidential computer rooms, effectively solving the problem of personnel safety management in confidential computer rooms, and proposing a new application method for the construction of confidentiality systems in computer rooms.
[0004] There is also a publication number of CN116797193A, which discloses an AI senseless access and attendance system, including a portrait collection unit, an access control unit, an AI intelligent edge analysis unit, an AI senseless access and attendance platform, and a communication device, wherein: the portrait collection unit uses a camera for access monitoring video collection, multiplexing ordinary monitoring; the access control unit is used for access door switch control; the AI intelligent edge analysis unit extracts the received video stream data to obtain a static image, and performs back-end face recognition and behavior analysis through the machine's own GPU computing power. The system of the present invention can quickly identify the access of personnel, and can identify and record the access personnel, and the operation and maintenance can be done through the platform, which greatly improves work efficiency and provides convenience for managers. The system can accurately identify and record the access personnel, with high accuracy, avoiding the problem of high artificial misrecognition rate. Summary of the invention
[0005] The present invention provides a human resource authority management device based on face image processing, which solves the problems that human resource authority configuration is inflexible, requires users to perform multiple operations, and has low efficiency. It can also realize the extraction of work tasks in work plans or work records, and automatically realize intelligent access control authority configuration according to personnel's work plans or work logs. In addition, by adopting an information feature code processing method, it prevents human tampering with access control records and ensures the integrity of access data.
[0006] In order to achieve the above purpose, the following technical solutions are adopted:
[0007] A human resources authority management device based on face image processing comprises a switch (7), an access control controller (8), and an access control device, wherein the access control device comprises a camera (3-2) and a gate (1), and the authority management device further comprises:
[0008] A server (5) is used to store the work plans and assigned tasks of the personnel, and the server (5) stores the human resource authority configuration and the semantic recognition model;
[0009] A continuous face recognition model is set in the industrial PC (6), and the continuous face recognition model includes a face detection model and a face recognition model. The continuous face recognition model can realize face information extraction and recognition, and can also judge the distance relationship between the face and the camera (3-2) according to the size of the boundary box in the face detection model;
[0010] The industrial PC (6) is connected to the access controller (8) via the switch (7), and the access controller (8) is used to control the access status of the gate (1). The method for using the authority management device is as follows:
[0011] S101 configures permissions, and stores personnel information, personnel work plans and assigned tasks, personnel and work tasks, and configuration relationships between tasks and access control permissions in the server (5), thereby forming a configuration relationship between personnel and access control permissions;
[0012] S102: access control. When a person passes through the access control, the authority management device controls the access status of the gate (1) according to the configuration relationship judgment result between the person and the access control authority in step S101;
[0013] S103 face recognition, the face image of the person collected by the camera (3-2) is compared with the face recognition model to obtain the person information. When the person information matches the configuration relationship between the person and the access control authority in the server (5), the gate (1) is opened to allow the person to pass freely, otherwise the access control is closed;
[0014] S104 records the result, regardless of whether the person passes or not, the current information and information feature code are recorded;
[0015] The semantic recognition model can extract specific work tasks from personnel work plans and assigned tasks, and implement the configuration of personnel access control permissions through the human resources permission configuration and the work tasks; the face detection model can recognize the face image and the size of the face boundary frame from the image acquired by the camera (3-2), and recognize the specific personnel through the face image, thereby obtaining the personnel's specific work tasks and the configured access control permissions in the server (5), and matching the access control permissions obtained by the personnel to the access control controller (8) to control the access status of the gate (1).
[0016] Furthermore, the current information recorded in step S104 includes: the recognized face image, the time when the face image is recorded, the traffic status, and the current information feature code, wherein the current information feature code is used to prevent human tampering or deletion of the recorded data in the authority management device;
[0017] The method for generating the information feature code is specifically as follows: the feature code of the identified facial image, the time when the facial image is recorded, the traffic status and the information feature code of the previous record are superimposed in sequence, and then the superimposed data is processed by md5 to generate a string of 32-bit feature codes; the feature code of the identified facial image is read by Python's PIL library, and the read image is converted into a byte stream by using the tobytes() function, and then the converted byte stream is processed by md5 hash value to obtain the feature code of the identified facial image.
[0018] Further, the steps for configuring human resources permissions are as follows:
[0019] S401 Access Permissions for Door Access Control: First set the access permissions for each door access control;
[0020] S402 work task: assigning the access rights corresponding to the work task to the work task;
[0021] S403 Personnel access rights: Through the work tasks undertaken by the personnel, as well as the personnel's work plans or assigned work tasks, the specific work tasks are extracted through the semantic recognition model. The specific work tasks are one or more jobs. Multiple work tasks are assigned to the personnel. Each work task corresponds to one or more access control rights. The personnel obtains all access control rights corresponding to the work tasks through the configuration of the work tasks.
[0022] Furthermore, the specific steps of the semantic recognition model extraction task are as follows:
[0023] S201 Corpus collection: Collect the terms commonly used by personnel in work plans or task assignments to form a corpus, annotate the sentences involved, and correspond them to the corresponding work tasks;
[0024] S202 data preprocessing: filtering punctuation marks in each sentence in the corpus and removing spaces;
[0025] S203: Establish a word frequency dictionary set: Use the Jieba word segmentation to segment each sentence in the corpus, convert the words into a "word: word frequency" format, use the words as subscripts, and save them in the format of "word: [sequence number, word frequency]", thereby forming a word frequency dictionary set;
[0026] S204 sentence vectorization: After step S203, all sentences in the corpus are vectorized. For each sentence, a vectorized zero matrix with the same dimension as the word frequency dictionary set is generated, and then the words in the sentence after word segmentation are mapped to the zero matrix, and the zero matrix is converted into a word frequency matrix. Finally, each value in the word frequency matrix is divided by the number of words in the sentence to obtain the sentence vector matrix.
[0027] S205 builds a neural network model: the structure of the neural network is five layers, the number of neurons in the input layer is the same as the number of elements in the word frequency dictionary set, the number of neurons in the second, third and fourth layers are 128, 128 and 64 respectively, the number of neurons in the output layer is the same as the number of tasks set, that is, one neuron corresponds to one task, Relu is used as the activation function, the loss function is cross entropy, and the optimizer uses stochastic gradient descent (SGD);
[0028] S206 training the model, inputting the sentence vectorization result and the corresponding labeling result in step S204 into the neural network model in step S205 for iterative training for 1000 times or until the error value converges or stabilizes;
[0029] S207 saves the semantic recognition model, and saves the model generated by training in step S206.
[0030] Furthermore, the access control device mainly comprises a gate (1) and a barrier (2), wherein the two gates (1) are installed in parallel on the passage, the two ends of the gate (1) are connected to the barrier (2), the upper end of the gate (1) is provided with a shooting column (3) for obtaining a facial image of a person, and the middle part of the gate (1) is provided with a baffle (4) for controlling the passage state of the access control device.
[0031] Furthermore, the gate (1) comprises a gate body (1-1), and four infrared sensors (1-2) for sensing whether a person passes through are symmetrically distributed on the inner side of the gate body (1-1). The function of the two left and right infrared sensors (1-2) of the gate (1) is to detect whether there is overlap when objects pass by, thereby preventing tailgating.
[0032] Furthermore, the barrier plate (2) comprises a barrier plate body (2-1), and an infrared sensor 2 (2-2) for detecting whether an object passes by is provided on the outer side of the barrier plate body (2-1). By cooperating between the infrared sensor 1 (1-2) and the infrared sensor 2 (2-2), it can be detected whether there are multiple people passing through the gate machine (1).
[0033] Furthermore, the shooting column (3) comprises a shooting body (3-1), a support column (3-5) is provided at the lower end of the shooting body (3-1), the support column (3-5) is mounted on a stabilizing plate (3-6), a concave surface is provided on the front of the shooting body (3-1), a camera (3-2) is provided in the middle part above the concave surface, fill lights (3-3) are provided on the left and right sides of the camera (3-2), and a screen (3-4) for displaying the picture shot by the camera (3-2) is provided below the fill lights (3-3).
[0034] Furthermore, the generation process of the face continuous recognition model is as follows:
[0035] S301 collects face video data, obtains face video data, processes the video data, and constructs a data set for a face detection model;
[0036] S302 annotates the face data set, extracts frames from the face video data, and extracts them at an interval of 5 frames per second. The extracted images are used to form a face detection model data set, and the resolution of the acquired data set is 224x224 pixels; Labelme annotation software is used to annotate the face images in the face detection model data set with facial detection frames to obtain annotated data sets;
[0037] S303 uses the labeled data set to train a face detection model, and uses the trained detection model to detect face images, and cuts out the detected face area to form a face image data set for the face recognition model; uses the labeled face detection model data set to input into the detection model to train the detection model, and the detection model is a YOLOv8 model; the detection model is trained for 10,000 iterations;
[0038] The target detection results are obtained by training the detection model. The target detection results include the bounding box position, category and confidence score of each object, and the size of the bounding box according to the coordinates of the upper left corner and the lower right corner of the bounding box. In the same image, we use the size of the bounding box to judge the distance between the face and the camera, so as to identify the order of different people in front of the camera.
[0039] S304 saves the face detection model, and saves the trained YOLOv8 model as a face detection model for subsequent face detection;
[0040] S305 face image data set, uses the trained detection model to detect the face image, cuts out the detected face area, and forms a face recognition model data set.
[0041] S306 builds a face recognition model, which uses a ResNet-50 model;
[0042] S307 training the face recognition model: performing multiple iterations of training on step S306, and stopping the training when the training reaches 10,000 times or the model converges;
[0043] S308 saves the face recognition model and saves the trained face recognition model for subsequent use.
[0044] Furthermore, the basic structure of the ResNet-50 model is:
[0045] ResNet-50 contains 50 convolutional layers, which solves the gradient vanishing problem when training deep neural networks by introducing a residual structure;
[0046] Convolutional layers and pooling layers in ResNet-50: The first layer is a 7x7 convolutional layer with a stride of 2 and 64 output channels; followed by a maximum pooling layer with a stride of 2; after that, ResNet-50 contains a series of convolutional layers, normalization layers, and activation functions; the core of ResNet-50 lies in the residual block, each of which contains two convolutional layers with a skip connection in between; the last layer of ResNet-50 has a global average pooling layer, which takes the average value of each channel of the feature map as the output.
[0047] The beneficial effects of the present invention are:
[0048] 1. Through the configuration relationship between personnel and access control permissions, personnel can match corresponding access control permissions according to the work tasks they need to complete, which can simplify the cumbersome setting relationship between personnel and access control, realize precise permission control based on work tasks, and reduce direct operations on access control permissions;
[0049] 2. The semantic recognition model can be used to quickly and accurately extract and match work plans or work records with work tasks, improve the efficiency of permission configuration, and automatically implement intelligent access control permission configuration based on personnel's work plans or work logs;
[0050] 3. By adopting the information feature code, it can prevent human tampering and maintain the integrity of the pass data;
[0051] 4. The face information is extracted and recognized through the face continuous recognition model. At the same time, the distance between the face and the camera (3-2) can be determined according to the size of the bounding box in the face detection model.
[0052] 5. By setting up the infrared sensor 1 (1-2) and the infrared sensor 2 (2-2), the baffle (4) can be kept in a continuously open state under the cooperation of the two, so as to facilitate the continuous passage of people and prevent people from overlapping and following through the gate (1). BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 is a flow chart of a rights management device;
[0054] Figure 2 It is a flowchart of human resources authority configuration;
[0055] Figure 3 This is an example diagram of human resources authority configuration;
[0056] Figure 4 It is the generation flow chart of the semantic recognition model;
[0057] Figure 5 It is a schematic diagram of the structure of the access control device;
[0058] Figure 6 yes Figure 5 Exploded diagram of
[0059] Figure 7 is a schematic diagram of the structure of a gate machine (1);
[0060] Figure 8 is a schematic diagram of the structure of the fence (2);
[0061] Fig. 9It is the generation flow chart of face detection model and face recognition model;
[0062] Fig.10 It is a component connection diagram of the rights management device.
[0063] 1: Gate, 2: Fence, 3: Shooting column, 4: Baffle, 5: Server, 6: Industrial PC, 7: Switch, 8: Access controller, 1-1: Gate body, 1-2: Infrared sensor 1, 1-3: Baffle mounting hole, 2-1: Fence body, 2-2: Infrared sensor 2, 3-1: Shooting body, 3-2: Camera, 3-3: Fill light, 3-4: Screen, 3-5: Pillar, 3-6: Stabilizing board. DETAILED DESCRIPTION
[0064] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below in conjunction with the drawings in the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments.
[0065] A human resources authority management device based on face image processing is used to manage the relationship between personnel authority and corresponding access control, such as Figure 1 As shown, the specific steps are as follows:
[0066] like Figure 2 As shown, the steps for permission configuration are as follows:
[0067] S401 Access Permissions for Door Access Control: First set the access permissions for each door access control;
[0068] S402 work task: assigning the access rights corresponding to the work task to the work task;
[0069] S403 Personnel access rights: The staff will assign multiple work tasks to the personnel according to the assigned work tasks, and each work task will correspond to one or more access rights for access control. Thus, the personnel can obtain all the access rights for access control corresponding to the completed work tasks through the configuration of work tasks.
[0070] To further illustrate the permission configuration process, Figure 3 As shown in the figure, work task one is matched with the access rights of access control one and access control two, work task two is matched with the access rights of access control one and access control three, and work task three is matched with the access rights of other access control doors. When person one needs to undertake work task one and work task two, person one will obtain the access rights of access control one, access control two and access control three. Similarly, when person two needs to undertake work task three, person two will obtain the access rights of other access control doors.
[0071] like Figure 4As shown in the figure, the specific process of the semantic recognition model extraction task is as follows:
[0072] S201 Collect corpus: mark corresponding work tasks: collect the commonly used work plans of personnel to form a corpus, mark the sentences therein, and correspond them to corresponding work tasks;
[0073] S202 data preprocessing: filtering punctuation marks in each sentence in the corpus and removing spaces;
[0074] S203: Establish a word frequency dictionary set: Use the Jieba word segmentation to segment each sentence in the corpus, convert the words into a "word: word frequency" format, use the words as subscripts, and save them in the format of "word: [sequence number, word frequency]", thereby forming a word frequency dictionary set;
[0075] S204 Sentence vectorization: After step S203, all sentences in the corpus are vectorized. For each sentence, a vectorized zero matrix with the same dimension as the word frequency dictionary set is generated, and then the words in the sentence after word segmentation are mapped to the zero matrix. If a word appears once in the sentence, the value at the corresponding position in the zero matrix is increased by 1, thereby converting the zero matrix into a word frequency matrix. Finally, each value in the word frequency matrix is divided by the quantity value of the sentence words.
[0076] To explain the process of sentence vectorization, for example, the existing word frequency dictionary has 1000 words. There is a corpus called "I am going to check my personal file tomorrow". After word segmentation, it will be divided into "I, prepare, tomorrow, want to, check, personal, file". In the word frequency dictionary: "I: [0:80]", "Prepare: [3:21]", "Tomorrow: [31:10]", "Want: [55:30]", "Check: [101:8]", "Personal: [208:6]", "File: [210:8]". Generate a 1*1000 zero matrix. The process of vectorizing the above sentence will first form a word frequency matrix of [1, 0, 0, 1, 0, 0, ... 0], and finally divide it by the number of words in the sentence 7 to get the sentence vectorization matrix [1 / 7, 0, 0, 1 / 7, 0, 0, ... 0].
[0077] Through the above sentence vectorization processing, the semantics in the sentence can be converted into specific numerical expressions.
[0078] S205 builds a neural network model: the structure of the neural network is five layers. The number of neurons in the input layer is the same as the number of elements in the word frequency dictionary set. The number of neurons in the second, third and fourth layers are 128, 128 and 64 respectively. The number of neurons in the output layer is the same as the number of set tasks, that is, one neuron corresponds to one task. Relu is used as the activation function, the loss function is cross entropy, and the optimizer uses stochastic gradient descent (SGD).
[0079] S206 trains the model, inputting the sentence vectorization result and the corresponding labeling result in step S204 into the neural network model in step S205 for iterative training 1000 times or until the error value converges or stabilizes.
[0080] S207 saves the semantic recognition model, and saves the model generated by training in step S206 for setting in the industrial PC (6) of the authority management device.
[0081] S102: Access control: when a person passes through the access control, the authority management device identifies and controls the person according to the authority configured in step S101, and the control is specifically performed through the access control device;
[0082] like Figure 5 and 6 As shown, the access control device mainly comprises a gate (1) and a barrier (2), wherein two gates (1) are installed in parallel on a passage, and the barrier (2) is connected to both ends of the gate (1), a shooting column (3) for obtaining a facial image of a person is provided at the upper end of the gate (1), and a baffle (4) for controlling the passage state of the access control device is provided in the middle of the gate (1).
[0083] like Figure 7 As shown, the gate (1) includes a gate body (1-1), and four infrared sensors (1-2) are symmetrically distributed on the inner side of the gate body (1-1) for sensing whether a person passes through. The reason for setting two infrared sensors (1-2) on the left and right sides of the gate (1) is that when the two infrared sensors (1-2) simultaneously detect that an object has passed through, it means that there are multiple people overlapping and trying to follow through the gate (1), so that the baffle (4) is in a closed state, prohibiting multiple people from overlapping and passing, and displaying a prompt "No following through" on the screen (3-4).
[0084] like Figure 5 As shown, the fence (2) comprises a fence body (2-1), and an infrared sensor 2 (2-2) is arranged on the outer side of the fence body (2-1).
[0085] like Figure 8 As shown, the shooting column (3) includes a shooting body (3-1), a support column (3-5) is provided at the lower end of the shooting body (3-1), the support column (3-5) is installed on a stabilizing plate (3-6), a concave surface is provided on the front of the shooting body (3-1), a camera (3-2) is provided in the middle part above the concave surface, fill lights (3-3) are provided on the left and right sides of the camera (3-2), and a screen (3-4) for displaying the picture shot by the camera (3-2) is provided below the fill lights (3-3).
[0086] Continuous face recognition model, such as Fig. 9 As shown, the generation process is as follows:
[0087] S301 collects face video data, obtains face video data, processes the video data, and constructs a data set for a face detection model;
[0088] By shooting a video of a human face, the human face video data is obtained;
[0089] S302 labels the face data set, extracts frames from the video data at an interval of 5 frames per second, and forms a face detection model data set with the extracted images. The resolution of the acquired data set is 224x224 pixels.
[0090] Labelme annotation software is used to annotate the face images in the face detection model data set with face detection frames to obtain annotated data sets.
[0091] S303 uses the labeled data set to train a face detection model, and uses the trained detection model to detect face images, and cuts out the detected face area to form a face image data set for the face recognition model.
[0092] Use the labeled face detection model dataset and input it into the detection model to train the detection model. The detection model is the YOLOv8 model.
[0093] When building the YOLOv8 model, the specific parameters are:
[0094] The number of target categories is 10 categories;
[0095] The depth scaling factor of the model is 0.33;
[0096] The width scaling factor of the model is 0.5;
[0097] The number of samples in each batch during training is 500;
[0098] The number of training iterations is 10,000;
[0099] The learning rate of the model is 0.01;
[0100] The size of the input image is 224x224.
[0101] Through the above training, we get the target detection results, including the bounding box position, category and confidence score of each object. At the same time, we can also get the size of the bounding box based on the position of the object's bounding box, that is, the coordinates of the upper left and lower right corners of the bounding box, and then calculate the difference between the coordinates of the upper left and lower right corners. In the same image, we use the size of the bounding box to judge the distance between the face and the camera, so that we can accurately identify the order of different people in front of the camera.
[0102] S304 saves the face detection model and saves the trained YOLOv8 model as a face detection model for subsequent face detection.
[0103] S305 face image data set, uses the trained detection model to detect the face image, cuts out the detected face area, and forms a face recognition model data set.
[0104] S306 builds a face recognition model, which uses a ResNet-50 model, processes the data set of the recognition model, and scales the face image to 112*112.
[0105] The basic structure of the ResNet-50 model is:
[0106] ResNet-50 contains 50 convolutional layers and solves the gradient vanishing problem when training deep neural networks by introducing a residual structure.
[0107] Convolutional and pooling layers in ResNet-50:
[0108] The first layer of ResNet-50 is a 7x7 convolutional layer with a stride of 2 and 64 output channels.
[0109] This is followed by a max pooling layer with a stride of 2.
[0110] After that, ResNet-50 contains a series of convolutional layers, batch normalization layers, and activation functions (ReLU).
[0111] The core of ResNet-50 lies in the residual block, each of which contains two convolutional layers with a skip connection in between.
[0112] The last layer of ResNet-50 has a global average pooling layer, which takes the average value of each channel of the feature map as the output.
[0113] S307 trains the face recognition model: perform multiple iterations of training on step S306, and stop training when the training reaches 10,000 times or the model converges.
[0114] S308 saves the face recognition model and saves the trained face recognition model for subsequent use.
[0115] S103 face recognition, if the face information of the person matches the permission configuration information in the permission management device, the access control device is opened to allow the person to pass freely, otherwise the access control is closed;
[0116] S104 records the result. Regardless of whether the person passes or not, the current information and information feature code are recorded. The current information includes: the recognized face image, the time when the face image is recorded, the pass status, and the current information feature code. The current information feature code is used to prevent the recorded data in the authority management device from being tampered with or deleted. The method for generating the information feature code is to superimpose the feature code of the recognized face image, the time when the face image is recorded, the pass status, and the information feature code of the previous record in sequence, and then process the superimposed data through md5 to generate a string of 32-bit feature codes. The feature code of the recognized face image is read by Python's PIL library, and the read image is converted into a byte stream using the tobytes() function, and then the converted byte stream is processed by md5 hash value, and finally the feature code of the recognized face image is obtained.
[0117] The connection relationship between the main components of the rights management device is as follows Fig.10 As shown, the server (5) is used to store personnel work records and work tasks, and is used to save human resource authority configuration relationships and semantic recognition models. A face detection model and a face recognition model are set in the industrial PC (6). The industrial PC (6) is connected to the camera (3-2) and the access controller (8) through a switch (7). The access controller (8) is connected to the gate (1). When the camera (3-2) obtains a face image of a person, it is uploaded to the industrial PC (6) through the switch (7). In the industrial PC (6), the face detection model is first used to extract the face and the size of the face boundary box from the image. Then, the face recognition model and the face stored in the server (5) are used to determine whether the person has the authority to pass through the gate. Then, the information is transmitted to the access controller (8) through the switch (7). If the person has the authority to pass through the gate, the gate (1) is opened, otherwise the gate (1) is closed.
[0118] On the other hand, since the access control device is provided with a plurality of infrared sensors one (1-2), and the barrier (2) is also provided with an infrared sensor two (2-2), when a plurality of persons pass through the access control device in sequence, when person one passes through infrared sensor one (1-2), if person one has the authority to pass through the gate machine, the gate machine (1) opens the baffle (4) to allow person one to pass through. At the same time, infrared sensor two (2-2) detects that person two has passed through infrared sensor two (2-2). At this time, the camera (3-2) can simultaneously capture the faces of person one and person two due to angle adjustment. The face detection model detects the size of the face boundary frames of person one and person two, and the distance between person one and person two and the camera (3-2) can be determined. Then, the face recognition model is used to identify person two to determine whether they have the corresponding right of passage. If person two also has the right of passage, at this time, the baffle (4) is always in an open state, facilitating barrier-free passage of person two.
[0119] The above shows and describes the basic principle and main features of the present invention and the advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments.
Claims
1. A human resources authority management device based on face image processing, comprising a switch (7), an access control controller (8), and an access control device, wherein the access control device comprises a camera (3-2) and a gate (1), and the authority management device further comprises: A server (5) is used to store the work plans and assigned tasks of the personnel, and the server (5) stores the human resource authority configuration and the semantic recognition model; A continuous face recognition model is set in the industrial PC (6), and the continuous face recognition model includes a face detection model and a face recognition model. The continuous face recognition model can realize face information extraction and recognition, and can also judge the distance relationship between the face and the camera (3-2) according to the size of the boundary box in the face detection model; The industrial PC (6) is connected to the access controller (8) via the switch (7), and the access controller (8) is used to control the access status of the gate (1). The method for using the authority management device is as follows: S101 configures permissions, and stores personnel information, personnel work plans and assigned tasks, personnel and work tasks, and configuration relationships between tasks and access control permissions in the server (5), thereby forming a configuration relationship between personnel and access control permissions; S102: access control. When a person passes through the access control, the authority management device controls the access status of the gate (1) according to the configuration relationship judgment result between the person and the access control authority in step S101; S103 face recognition, the face image of the person collected by the camera (3-2) is compared with the face recognition model to obtain the person information. When the person information matches the configuration relationship between the person and the access control authority in the server (5), the gate (1) is opened to allow the person to pass freely, otherwise the access control is closed; S104 records the result, regardless of whether the person passes or not, the current information and information feature code are recorded; The semantic recognition model extracts specific work tasks from the personnel work plan and the assigned tasks, and implements the configuration of personnel access control permissions through the human resources permission configuration and the work tasks; the face detection model recognizes the face image and the face boundary frame size from the image acquired by the camera (3-2), and recognizes the specific personnel through the face image, thereby obtaining the specific work task and the configured access control permissions of the personnel in the server (5), and matching the access control permissions obtained by the personnel to the access control controller (8) to control the access status of the gate (1); the current information recorded in step S104 includes: the recognized face image, the time when the face image is recorded, the access status, and the current information feature code, and the current information feature code is used to prevent human tampering or deletion of the recorded data in the permission management device; The method for generating the information feature code is specifically as follows: the feature code of the identified facial image, the time when the facial image is recorded, the traffic status and the information feature code of the previous record are superimposed in sequence, and then the superimposed data is processed by md5 to generate a string of 32-bit feature codes; the feature code of the identified facial image is read by Python's PIL library, and the read image is converted into a byte stream by using the tobytes() function, and then the converted byte stream is processed by md5 hash value to obtain the feature code of the identified facial image.
2. The human resources authority management device based on face image processing according to claim 1 is characterized in that: The steps for configuring human resources permissions are as follows: S401 Access Permissions for Door Access Control: First set the access permissions for each door access control; S402 work task: assigning the access rights corresponding to the work task to the work task; S403 Personnel access rights: Through the work tasks undertaken by the personnel, as well as the personnel's work plans or assigned work tasks, the specific work tasks are extracted through the semantic recognition model. The specific work tasks are one or more jobs. Multiple work tasks are assigned to the personnel. Each work task corresponds to one or more access control rights. The personnel obtains all access control rights corresponding to the work tasks through the configuration of the work tasks.
3. The human resources authority management device based on face image processing according to claim 1 is characterized in that: The specific steps of the semantic recognition model extraction task are as follows: S201 Corpus collection: Collect the terms commonly used by personnel in work plans or task assignments to form a corpus, annotate the sentences involved, and correspond them to the corresponding work tasks; S202 data preprocessing: filtering punctuation marks in each sentence in the corpus and removing spaces; S203: Establish a word frequency dictionary set: Use the Jieba word segmentation to segment each sentence in the corpus, convert the words into the form of "word: word frequency", take the words as the subscript, and save them in the form of "word: [sequence number, word frequency]", so as to form a word frequency dictionary set; S204 Sentence vectorization: After step S203, all sentences in the corpus are vectorized. For each sentence, a vectorized zero matrix with the same dimension as the word frequency dictionary set is generated. Then, the words of the sentence after word segmentation by Jieba are mapped to the zero matrix, and the zero matrix is converted into a word frequency matrix. Finally, each value in the word frequency matrix is divided by the number of words in the sentence to obtain a sentence vector matrix. S205 builds a neural network model: the structure of the neural network is five layers, the number of neurons in the input layer is the same as the number of elements in the word frequency dictionary set, the number of neurons in the second, third and fourth layers are 128, 128 and 64 respectively, the number of neurons in the output layer is the same as the number of tasks set, that is, one neuron corresponds to one task, Relu is used as the activation function, the loss function is cross entropy, and the optimizer uses stochastic gradient descent (SGD); S206 training the model, inputting the sentence vectorization result and the corresponding labeling result in step S204 into the neural network model in step S205 for iterative training for 1000 times or until the error value converges or stabilizes; S207 saves the semantic recognition model, and saves the model generated by training in step S206.
4. The human resources authority management device based on face image processing according to claim 1, characterized in that: The access control device mainly comprises a gate (1) and a barrier (2), wherein two gates (1) are installed in parallel on a passage, and the two ends of the gate (1) are connected to the barrier (2), and the upper end of the gate (1) is provided with a shooting column (3) for obtaining a facial image of a person, and the middle part of the gate (1) is provided with a baffle (4) for controlling the passage state of the access control device.
5. The human resources authority management device based on face image processing according to claim 4 is characterized in that: The gate (1) comprises a gate body (1-1), and four infrared sensors (1-2) for sensing whether a person passes through are symmetrically distributed on the inner side of the gate body (1-1). The left and right infrared sensors (1-2) of the gate (1) are used to detect whether there is overlap when objects pass through, thereby preventing tailgating.
6. The human resources authority management device based on face image processing according to claim 5 is characterized in that: The barrier (2) comprises a barrier body (2-1), and an infrared sensor 2 (2-2) for detecting whether an object passes by is arranged on the outer side of the barrier body (2-1). Whether there are multiple people passing through the gate (1) is detected by the cooperation of the infrared sensor 1 (1-2) and the infrared sensor 2 (2-2).
7. The human resources authority management device based on face image processing according to claim 5 is characterized by: The shooting column (3) comprises a shooting body (3-1), a support column (3-5) is arranged at the lower end of the shooting body (3-1), the support column (3-5) is mounted on a stabilizing plate (3-6), a concave surface is arranged on the front of the shooting body (3-1), a camera (3-2) is arranged in the middle part above the concave surface, fill lights (3-3) are arranged on the left and right sides of the camera (3-2), and a screen (3-4) for displaying the picture shot by the camera (3-2) is arranged below the fill lights (3-3).
8. A human resources authority management device based on face image processing according to any one of claims 5 to 7, characterized in that: The generation process of the face continuous recognition model is as follows: S301 collects face video data, obtains face video data, processes the video data, and constructs a data set for a face detection model; S302 annotates the face data set, extracts frames from the face video data, and extracts them at an interval of 5 frames per second. The extracted images are used to form a face detection model data set, and the resolution of the acquired data set is 224x224 pixels; Labelme annotation software is used to annotate the face images in the face detection model data set with facial detection frames to obtain annotated data sets; S303 uses the labeled data set to train a face detection model, and uses the trained detection model to detect face images, and cuts out the detected face area to form a face image data set for the face recognition model; Use the labeled face detection model data set and input it into the detection model to train the detection model. The detection model is a YOLOv8 model. The detection model is trained after 10,000 iterations. The target detection results are obtained by training the detection model. The target detection results include the bounding box position, category and confidence score of each object, and the size of the bounding box according to the coordinates of the upper left corner and the lower right corner of the bounding box. In the same image, we use the size of the bounding box to judge the distance between the face and the camera, so as to identify the order of different people in front of the camera. S304 saves the face detection model, and saves the trained YOLOv8 model as a face detection model for subsequent face detection; S305 face image data set, using the trained detection model to detect the face image, cropping the detected face area to form a face recognition model data set; S306 builds a face recognition model, which uses a ResNet-50 model; S307 training the face recognition model: performing multiple iterations of training on step S306, and stopping the training when the training reaches 10,000 times or the model converges; S308 saves the face recognition model and saves the trained face recognition model for subsequent use.
9. The human resources authority management device based on face image processing according to claim 8, characterized in that: The basic structure of the ResNet-50 model is: ResNet-50 contains 50 convolutional layers, which solves the gradient vanishing problem when training deep neural networks by introducing a residual structure; Convolutional layers and pooling layers in ResNet-50: The first layer is a 7x7 convolutional layer with a stride of 2 and 64 output channels; followed by a maximum pooling layer with a stride of 2; after that, ResNet-50 contains a series of convolutional layers, normalization layers, and activation functions; the core of ResNet-50 lies in the residual block, each of which contains two convolutional layers with a skip connection in between; the last layer of ResNet-50 has a global average pooling layer, which takes the average value of each channel of the feature map as the output.
Citation Information
Patent Citations
AI non-inductive access and attendance system
CN116797193A
Machine room entrance guard automatic monitoring control device
CN220627111U
Face image processing method and device
CN110472460A
Access control system and control method and device thereof
CN111063073A
Door lock control method and device for power grid equipment, equipment and storage medium
CN113327354A
