Face recognition access control terminal offline method and system
By storing policy data and logical rules locally in the access control terminal, autonomous permission verification and data synchronization are achieved when the network is disconnected, the problem of insufficient robustness of the access control system in the existing technology when network abnormalities is solved, ensuring the continuous availability of access control functions and improving management efficiency.
Patent Information
- Application Number
- CN202510360624.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-26
- Publication Date
- 2025-06-17
AI Technical Summary
The existing access control system cannot realize the storage and independent judgment of localized policy data when network abnormalities are not available, resulting in insufficient robustness of the system and the continuous availability of access control functions in the event of network disconnection.
Design a facial recognition access control terminal offline method. By storing VIP list, permission rules, courses and appointment data locally on the access control terminal, it realizes independent permission verification when the network is disconnected, and quickly synchronizes data after the network is restored to ensure that the terminal policy is consistent with the server.
In the case of disconnection of the network, the access control terminal can independently perform permission verification to ensure the continuous availability of the access control function, reduce the risk of misjudgment, ensure normal traffic requirements, and improve management efficiency.
Smart Images

Figure CN120164277A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of access control, and particularly to a method and system for offline operation of a face recognition access control terminal. Background Art
[0002] Access control systems play an important role in the management of university laboratories and are widely used in scenarios such as personnel authorized access, course-related access, and reserved time slot access. Through strict permission control, they can effectively prevent unauthorized personnel from entering the laboratory and avoid equipment damage or item loss. In the prior art, a typical laboratory access control system usually consists of a face recognition terminal and a background server working together to implement access control based on preset permission rules.
[0003] Specifically, the server is configured with multi-dimensional access strategy data, including VIP lists, the authority scope of laboratory administrators, course-related lists, reservation review data, and specific access rules such as time slot restrictions. The access control terminal and the server maintain real-time communication through a WebSocket long connection. When a user triggers face recognition, the access control terminal sends a permission verification request to the server, and the server returns an opening determination result based on real-time query of the above strategy data. The access control terminal then controls the door magnet to perform an opening or rejection operation accordingly.
[0004] However, the above system highly depends on the stability of the network connection. In actual deployment, the access control terminal and the server may be disconnected for a short time due to network fluctuations, hardware failures, or environmental interference, resulting in the following problems: 1. Communication interruption leads to invalid permission verification: When the network is disconnected, the access control terminal cannot obtain the determination result returned by the server in real time, and can neither perform permission verification based on the latest strategy data, such as temporary VIP authorization and emergency reservation changes, nor complete the opening action, directly affecting the normal access needs of administrators, teachers, and students. 2. Lack of local decision-making ability in the offline scenario: The existing system does not store necessary strategy data or preset logic rules locally in the access control terminal, resulting in the complete loss of autonomous judgment ability of the access control terminal during the disconnection period and insufficient system robustness. 3. The reconnection mechanism is imperfect: After the short-term disconnection is restored, there may be delays or omissions in the data synchronization between the terminal and the server, further leading to the risk of incorrect permission judgment.
[0005] Therefore, there is an urgent need to design an access control system that supports offline operation, can still implement reliable access control based on local strategy data and preset logic during network anomalies, and ensure the rapid synchronization of data changes during the disconnection period after the network is restored, so as to solve the problem of excessive dependence on real-time communication in the prior art. Summary of the Invention
[0006] The object of the present invention is to propose a face recognition access control terminal offline method and system for solving the problem that the access control terminal cannot be synchronized in the above offline situation.
[0007] A face recognition access control terminal offline method includes the following non-sequential steps: Data change synchronization: The server makes user data changes, and the access control terminal synchronously obtains the changed user data. The user data is divided into administrator, student, and teacher data. Set the access control opening and closing logic: Set different administrator access control logic opening and closing judgments, teacher and student access control logic opening and closing judgments. Judge the receipt result: The access control transmits the receipt processing result to the server, and the server judges the receipt result.
[0008] Furthermore, in a face recognition access control terminal offline method, the data synchronization change includes the following sub-steps: Administrator synchronization change: Change of administrator list, change of laboratory management scope, change of communication rules. Student and teacher synchronization change: Creation of scheduled tasks, creation of temporary tasks.
[0009] Furthermore, in a face recognition access control terminal offline method, the administrator synchronization change includes the following sub-steps: Change of administrator list: Change the VIP list, the server issues the VIP name change list to the access control terminal, and the access control terminal obtains the VIP name change list. Change of laboratory management scope: The administrator changes the laboratory management scope of students and teachers, the server issues the laboratory management scope change list, and the access control terminal obtains the laboratory management scope change list. Change of communication rules: The administrator changes the passage time limit of students and teachers, the server issues the communication rule change list, and the access control terminal obtains the communication rule change list.
[0010] Furthermore, in a face recognition access control terminal offline method, the administrator synchronization change includes the following sub-steps: Creation of scheduled tasks: Query the courses of each laboratory at 1 am, reserve the corresponding teacher and student user data, and the server issues them to the access control terminal respectively. Creation of temporary tasks: When there are changes in the class schedule data, reservation data, and issued passage rule data for the courses of each laboratory at 1 am, trigger the access control terminal to correct.
[0011] Furthermore, in a face recognition access control terminal offline method, the administrator access control logic opening and closing judgment includes the following sub-steps: If the verification is a VIP, directly open the door. If it is verified that the person is not a VIP, then verify whether there is the management scope of the current laboratory access control: If there is the management scope of the current laboratory access control, then directly open the door; If there is no management scope of the current laboratory access control, then verify whether there is a communicated rule issued: If it meets the conditions of being within the communication rule change list and within the communication time period, then directly open the door; If it does not meet the conditions of being within the communication rule change list or does not meet the communication time period, then do not open the door.
[0012] Furthermore, a face recognition access control terminal offline method, the logical opening and closing judgment of the teacher and student access control includes the following sub-steps: If it is verified that the person is a VIP, then directly open the door; If it is verified that the person is not a VIP, then verify whether the person is in the course list of the laboratory during the current time period: If the person is in the course list of the laboratory during the current time period, then directly open the door; If the person is not in the course list of the laboratory during the current time period, then verify whether there is a reservation that has been approved during the current time period: If there is a reservation that has been approved during the current time period, then directly open the door; If there is no reservation that has been approved during the current time period, then verify whether there is a communicated rule issued: If it meets the conditions of being within the communication rule change list and within the communication time period, then directly open the door; If it does not meet the conditions of being within the communication rule change list or does not meet the communication time period, then do not open the door.
[0013] Furthermore, a face recognition access control terminal offline method, the judgment of the receipt result includes the following sub-steps: Execute the judgment of the class sign receipt: If the instruction is successfully received, the access control terminal executes the instruction and returns the execution result; If the issued instruction is lost and the server does not receive the receipt within 3 seconds, then reissue the access control instruction to the class sign. If the reissue fails after more than 3 attempts, the access control instruction issuance fails; The server judges the receipt result: If the execution is successful, update the execution status to successful and end the process; If the execution fails, retry issuing the access control instruction. If it fails after 3 retries, record the failure data and notify the developer to troubleshoot via text message or email.
[0014] A face recognition access control offline system includes a server and an access control terminal; The server is used to execute data change synchronization, issue access control logic rules, and process receipt results The access control terminal is used to receive and store synchronization data, execute access control logic judgment, and return the processing result.
[0015] Advantages of the present invention: The access control terminal locally stores VIP lists, permission rules, courses, and reservation data, and can still independently execute permission verification when the network is disconnected, ensuring the continuous availability of the access control function; the server synchronizes data in a dual-mode of scheduled tasks and real-time triggering. During the network disconnection period, the changed content is automatically uploaded after the network is restored, ensuring the consistency between the terminal policy and the server; combining the differential verification logics of administrators, teachers, and students, integrating VIP permissions, laboratory scope, course time periods, and reservation review, reducing the risk of misjudgment; still meeting the normal access requirements during the network disconnection period, avoiding waiting or congestion caused by network interruption, improving management efficiency, and adapting to the requirements of different laboratory scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a flowchart of a face recognition access control offline method. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0017] In order to have a clearer understanding of the technical features, objectives, and effects of the present invention, the specific embodiments of the present invention will now be described with reference to the accompanying drawings.
[0018] As shown in the attached Figure 1 figure, Specific Embodiment 1 is based on the normal operation of online data synchronization and access control logic 1. Data synchronization stage: Administrator data distribution: The administrator updates the VIP list on the server side. For example, adding Laboratory Head A as a VIP, adjusting the laboratory management scope, expanding Teacher B's permissions to Laboratory X, and modifying the communication rules to restrict Student C from entering Laboratory Y during non-course time periods. The server immediately pushes the changed data to the relevant access control terminals through WebSocket, and the terminals update the locally stored VIP list, permission table, and communication rules.
[0019] Course / reservation data distribution: At 1:00 am every day, the server automatically generates the next day's laboratory course list. For example, Laboratory X has a course of Teacher D from 9:00 to 11:00, associating Students E and F, and distributes it to the corresponding access control terminals. At the same time, when Teacher G submits a reservation application for Laboratory X on the same day and it is approved, the server triggers a temporary task in real time and pushes the reservation data to the access control terminal of Laboratory X.
[0020] 2. Access control logic execution stage: Administrator identity verification: When Administrator A swipes their face in Laboratory X, the access control terminal detects that they are a VIP and directly opens the door. When non-VIP Administrator B swipes their face, the terminal verifies that they have the management permission for Laboratory X and also opens the door.
[0021] Teacher / Student Authentication: Teacher D swipes their face to enter Laboratory X during the class period from 9:00 to 11:00. The terminal checks that they are on the class list and immediately opens the door. Student E attempts to enter at 11:30 due to being late. The terminal finds that they are not within the class period and have no reservation, but since they are on the temporary communication rule change list and are allowed to enter before 12:00 today, the terminal opens the door after determining that the conditions are met.
[0022] 3. Receipt Processing Stage: After each door opening by the access control terminal, it sends a "door opening successful" receipt to the server. If the server does not receive the receipt within 3 seconds, it retries sending the instruction until it succeeds or reaches the 3 - time limit.
[0023] The server records all receipt statuses. If the terminal fails to execute the instruction due to a fault, such as a damaged door magnet, the server marks it as failed and notifies the operation and maintenance personnel.
[0024] Specific Embodiment 2: Offline Operation in the Case of Network Interruption 1. Decision on Data Localization during Network Disconnection: The network between the access control terminal in Laboratory Y and the server is interrupted, but the VIP list and today's class schedule are locally stored. For example, student H has an experiment class from 14:00 to 16:00 and communication rules. For example, student I is temporarily authorized to enter the whole day today.
[0025] When student H swipes their face at 15:00, the terminal determines that they have the right to enter according to the local class list, directly opens the door and caches the operation log. An outsider J attempts to swipe their face. The terminal detects that they are not on any list and refuses to open the door and records the abnormal event.
[0026] 2. Data Synchronization and Compensation after Network Recovery: After the network recovers, the terminal immediately uploads the cached opening records of student H and the abnormal event person J to the server. The server updates the access log and triggers an alarm.
[0027] During the network disconnection period, the administrator adds student K to the VIP list of Laboratory Y on the server side. After the network recovers, the server preferentially back - uploads this changed data to the terminal to ensure the timeliness of subsequent verification.
[0028] The above shows and describes the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited by the above - mentioned embodiments. What is described in the above - mentioned embodiments and the specification only illustrates the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention will have various changes and improvements, and these changes and improvements all fall within the scope of the present invention claimed. The scope of protection claimed by the present invention is defined by the appended claims and their equivalents.
Claims
1. A face recognition access control terminal offline method, characterized in that: The following non-sequential steps are included: Data change synchronization: The server changes user data, and the access control terminal obtains the changed user data synchronously; The user data is divided into administrator, student and teacher data; Set the access control logic: set different access control logic for administrators, teachers and students; Determine receipt result: The access control system transmits the receipt processing result to the server, and the server determines the receipt result.
2. According to claim 1, a face recognition access control terminal offline method is characterized in that: The data synchronization change includes the following sub-steps: Administrator synchronization changes: changes to the administrator list, laboratory management scope, and communication rules; Synchronous changes of students and teachers: creation of scheduled tasks and creation of temporary tasks.
3. According to claim 2, a face recognition access control terminal offline method is characterized in that: The administrator synchronization change includes the following sub-steps: Administrator list change: change the VIP list, the server sends the VIP name change list to the access control terminal, and the access control terminal obtains the VIP name change list; Change of laboratory management scope: The administrator changes the laboratory management scope of students and teachers, the server sends the laboratory management scope change list, and the access control terminal obtains the laboratory management scope change list; Communication rule changes: The administrator changes the access time limit for students and teachers, the server sends a communication rule change list, and the access control terminal obtains the communication rule change list.
4. According to claim 2, a face recognition access control terminal offline method is characterized in that: The administrator synchronization change includes the following sub-steps: Creation of scheduled tasks: query the courses of each laboratory at 1 a.m., make reservations for the corresponding teacher and student user data, and the server sends them to the access control terminal respectively; Temporary task creation: At 1 a.m., when the course schedule data, reservation data, and access rule data of each laboratory change, the access control terminal will be modified.
5. According to claim 1, a facial recognition access control terminal offline method is characterized in that: The administrator access control logic opening and closing judgment includes the following sub-steps: If the person is verified as a VIP, the door will be opened directly; If the verification is not VIP, verify whether there is a management scope for the current laboratory access control: If there is a management scope for the current laboratory access control, open the door directly; If there is no management scope for the current laboratory access control, verify whether there is a communication rule issued: If the conditions are in the communication rule change list and within the communication time period, the door will be opened directly; If it is not on the communication rule change list or within the communication time period, the door will not be opened.
6. The offline method for face recognition access control terminal according to claim 1, characterized in that: The teacher and student door access logic opening and closing judgment includes the following sub-steps: If the person is verified as a VIP, the door will be opened directly; If you are not a VIP, verify whether you are on the course list of the laboratory in the current time period: If the course is on the list of lab courses in the current time period, the door will be opened directly; If it is not in the course list of the laboratory in the current time period, verify whether there is an approved reservation in the current time period: If there is an approved appointment in the current time period, the door will be opened directly; If there is no approved appointment in the current time period, verify whether there is a communication rule to be issued: If the conditions are in the communication rule change list and within the communication time period, the door will be opened directly; If it is not on the communication rule change list or within the communication time period, the door will not be opened.
7. The offline method for face recognition access control terminal according to claim 1, characterized in that: The determination of the receipt result includes the following sub-steps: Class card receipt execution judgment: If the command is received successfully, the access control terminal executes the command and sends a receipt of the execution result; If the command is lost, the server will resend the access control command to the class card if it does not receive a receipt within 3 seconds, and retry the command. If the command is sent more than 3 times, the access control command fails. Server determines receipt result: If the execution is successful, update the execution status to success and end the process; If the execution fails, retry to issue the access control command. If the retries fail three times, record the failure data and notify the developer by SMS or email for troubleshooting.
8. A face recognition access control offline system, characterized in that: Including server and access control terminal; The service is used to execute data change synchronization, issue access control logic rules and process receipt results The access control terminal is used to receive and store synchronization data, perform access control logic judgment and return processing results.
Citation Information
Cited By
Access control attendance checking method and system
CN121033970A