Face recognition method and system for fence net channel
By dynamically adjusting the identity recognition method and using appropriate identification methods according to the preset timetable, the problem of access and exit obstruction caused by the failure of a single identification method is solved, which improves the security and accuracy of identity recognition and improves the user experience.
Patent Information
- Application Number
- CN202510303256.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-14
- Publication Date
- 2025-06-06
AI Technical Summary
Current access control systems rely mostly on a single identification method in terms of identity identification, which may lead to obstacles in access and exit of personnel when the identity information of personnel cannot be identified, affecting the user experience.
By dynamically adjusting the identity recognition method, it is determined to use any method of facial information recognition or access card information recognition based on the preset timetable, or a two-factor verification method is adopted at a specific time to ensure the security and accuracy of identity recognition.
It effectively solves the problem of people being blocked when a single recognition method cannot work, improves the security and accuracy of identity identification, reduces the inconvenience caused by identification failure, and improves the user experience.
Smart Images

Figure CN120108075A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data detection technology, and in particular to a method and system for face recognition in a fence network channel. Background Art
[0002] In many key or special areas, access control systems are generally deployed at the entrances and exits to ensure the safety of personnel entering and exiting. Such access control systems often integrate fence network channel design, which is carefully made of high-strength steel wire, iron plate or aluminum alloy, and is processed by advanced processes such as hot-dip galvanizing to improve its anti-oxidation and corrosion resistance. Through precise electric welding technology, these materials are cleverly connected into a mesh structure to construct a passage that is both sturdy and not easily damaged.
[0003] Fence network channels are widely used in various public places, construction sites and transportation infrastructure. Their core function is to achieve precise access control and efficient safety isolation. It can be customized according to the needs of specific sites to adapt to different safety and management standards. Especially in construction sites, the access control system embedded in the fence network channel plays a vital role. The system uses a strict personnel access control mechanism to ensure that only authorized personnel can enter and exit, effectively preventing unauthorized intrusions, thereby maintaining order and safety at the construction site. However, the current access control system mostly relies on a single identification method for identity recognition. When the identity information of a person cannot be identified, it may cause obstruction of personnel access and affect the user experience.
[0004] Therefore, there is an urgent need for a face recognition method and system for a fence network channel that can solve the above-mentioned technical problems. Summary of the invention
[0005] The present application provides a face recognition method and system for a fence network channel, which dynamically adjusts the identity recognition method according to the first time the first user arrives at the target construction site, effectively solving the problem of blocked access to personnel when a single recognition method fails to work, and improving the user experience.
[0006] In the first aspect, the present application provides a face recognition method for a fence network channel, which is applied to a server, and the method includes: obtaining a target time corresponding to a first user, where the first user is any person entering or exiting a target construction site; determining whether the target time exists in a preset first timetable, where the preset first timetable is the non-working time corresponding to the target construction site, and the target construction site is a construction site constructed using a fence network channel; when the target time exists in the preset first timetable, the target fence network channel is controlled to adopt a first recognition method; obtaining first identity information corresponding to the first user, where the first identity information includes any one of first facial information and first access card information; determining whether the first facial information is consistent with the preset facial information, or determining whether the first access card information is consistent with the preset access card information; when the first facial information is consistent with the preset facial information, or the first access card information is consistent with the preset access card information, confirming that the identity verification of the first user has passed; sending an opening instruction to the target access control so that the first user can pass through the target fence network channel, where the target access control is the access control corresponding to the entrance and exit of the target fence network channel.
[0007] By adopting the above technical solution, the target time corresponding to the first user is obtained. When the target time is within the preset first time table, it is determined that the first identification method is used to control the target fence network channel. The identification method is dynamically adjusted according to the judgment of the target time to obtain the first identity information corresponding to the first user. When the first facial information is consistent with the preset facial information or the first access card information is consistent with the preset access card information, it is confirmed that the identity verification of the first user has passed, and an opening instruction is sent to the target access control so that the first user can pass through the target fence network channel. By adopting the first identification method, when a single identification method cannot work normally, another method can be used for verification, thereby ensuring the security of identity identification, improving the accuracy of identification, reducing the inconvenience brought to users due to identification failure, and further improving the user experience.
[0008] Optionally, after determining whether the target time exists in the preset first schedule, the method also includes: if the target time does not exist in the preset first schedule, determining whether the target time exists in the preset second schedule, the preset second schedule being the working hours corresponding to the target construction site; when the target time exists in the preset second schedule, controlling the target fence network channel to adopt a second identification method; obtaining the second identity information corresponding to the first user, the second identity information including the second facial information and the second access card information; determining whether the second facial information is consistent with the preset facial information, and determining whether the second access card information is consistent with the preset access card information; when the second facial information is consistent with the preset facial information, and the second access card information is consistent with the preset access card information, confirming that the identity verification of the first user has passed; sending an opening instruction to the target access control to facilitate the first user to pass through the target fence network channel.
[0009] By adopting the above technical solution, when the target time is not in the preset first timetable, it is determined whether the target time is in the preset second timetable. If the target time is in the preset second timetable, it is determined that the second identification method is adopted to control the target fence network channel. The second identification method adopts a more stringent double verification method, which greatly improves the security of the target construction site. Only when the first user meets the conditions of facial recognition and access card recognition at the same time can he pass the access control, which effectively prevents unauthorized personnel from entering the construction area and improves the user experience.
[0010] Optionally, before sending an opening command to the target access control to facilitate the first user to pass through the target fence network channel, the method also includes: obtaining a second user, the second user is the person corresponding to the target access control card, and the target access control card is any access control card; obtaining a target image corresponding to the second user, and determining whether the target image is the same as a preset image, the preset image is an image of the person holding the target access control card; when the target image is different from the preset image, confirming that the second user is added to the blacklist.
[0011] By adopting the above technical solution, the target image corresponding to the second user is obtained, and the target image is compared with the preset image. Through the comparison, the unauthorized user or the fraudulent use of the access card can be effectively identified. When the target image does not match the preset image, the second user is automatically added to the blacklist. By real-time monitoring and verifying the identity of the access card user, potential security risks can be prevented, and the security of the access control system is effectively improved.
[0012] Optionally, after obtaining the first identity information corresponding to the first user, the method further includes: determining whether the first user is in a blacklist; when the first user is in the blacklist, confirming that the target fence network channel is controlled to adopt a second identification method for the first user.
[0013] By adopting the above technical solution, it is determined whether the first user is on the blacklist. By checking whether the first user is on the blacklist, known security risks can be quickly identified, and a more stringent identification method can be adopted for users on the blacklist, thereby effectively preventing people on the blacklist from entering based on simple identification, ensuring that security is guaranteed while improving user experience.
[0014] Optionally, after the target time exists in the preset second schedule, the method also includes: determining whether the first user is in the whitelist, the whitelist being the list information corresponding to the preset personnel; when the first user is in the whitelist, confirming that the control target fence network channel adopts the first identification method for the first user.
[0015] By adopting the above technical solution, it is possible to accurately control which users are allowed to use a specific identification method based on the whitelist. When the first user is in the whitelist, it can be confirmed that the first identification method is used for the first user. For users on the whitelist, there is no need for a tedious verification process, thereby achieving multiple technical effects such as improving security, improving traffic efficiency, and enhancing user experience.
[0016] Optionally, before determining whether the first user is in the whitelist, the method also includes: obtaining the position information corresponding to the third user at the target construction site; determining whether the position information is in the preset position table; when the position information is in the preset position table, confirming to add the third user to the whitelist.
[0017] By adopting the above technical solution, the job information of the third user at the target construction site is obtained, and the job information is compared with the preset job table, so as to accurately determine whether the third user belongs to a group with specific permissions. This precise permission management method helps only users with corresponding positions and responsibilities to obtain corresponding permissions. When the job information of the third user is in the preset job table, the third user is automatically added to the whitelist. This automated whitelist adding mechanism reduces the need for manual intervention and improves the safety and management efficiency of the construction site.
[0018] Optionally, after obtaining the first identity information corresponding to the first user, the method also includes: obtaining the target license plate information corresponding to the target vehicle; determining whether the target license plate information exists in the preset license plate table; when the target license plate information exists in the preset license plate table, confirming that the license plate verification of the target vehicle has passed, and sending an opening command to the target access control system to facilitate the target vehicle to pass through the target fence network channel.
[0019] By adopting the above technical solution, the target vehicle is subjected to automated license plate recognition technology, which can quickly obtain the target license plate information corresponding to the target license plate, and compare the target license plate information with the preset license plate table. Once the comparison is successful, it is confirmed that the target vehicle has passed the verification, and an opening command is immediately sent to the target access control, so that the target vehicle can quickly pass through the target fence network channel, thereby greatly improving the traffic efficiency.
[0020] In a second aspect of the present application, a face recognition system for a fence network channel is provided, the system is a server, and the server includes an acquisition unit, a processing unit and a sending unit; the acquisition unit acquires a target time corresponding to a first user, the first user is any person entering and exiting a target construction site; acquires first identity information corresponding to the first user, the first identity information includes any one of first facial information and first access card information; the processing unit determines whether the target time exists in a preset first schedule, the preset first schedule is the non-working time corresponding to the target construction site, and the target construction site is a construction site constructed using a fence network channel; when the target time exists in the preset first schedule, the target fence network channel is controlled to adopt a first recognition method; determines whether the first facial information is consistent with the preset facial information, or determines whether the first access card information is consistent with the preset access card information; when the first facial information is consistent with the preset facial information, or the first access card information is consistent with the preset access card information, it is confirmed that the identity verification of the first user has passed; the sending unit sends an opening instruction to the target access control so that the first user can pass through the target fence network channel, the target access control is the access control corresponding to the entrance and exit of the target fence network channel.
[0021] Optionally, the processing unit is used to determine whether the target time exists in a preset second timetable if the target time does not exist in the preset first timetable, and the preset second timetable is the working time corresponding to the target construction site; when the target time exists in the preset second timetable, the target fence network channel is controlled to adopt a second identification method; the acquisition unit is used to obtain the second identity information corresponding to the first user, and the second identity information includes second facial information and second access card information; the processing unit is used to determine whether the second facial information is consistent with the preset facial information, and to determine whether the second access card information is consistent with the preset access card information; when the second facial information is consistent with the preset facial information, and the second access card information is consistent with the preset access card information, it is confirmed that the identity verification of the first user has passed; the sending unit is used to send an opening instruction to the target access control to facilitate the first user to pass through the target fence network channel.
[0022] Optionally, the acquisition unit is used to acquire a second user, where the second user is the person using the target access card, and the target access card is any access card; acquire a target image corresponding to the second user, and determine whether the target image is the same as a preset image, where the preset image is an image of the person holding the target access card; and the processing unit is used to confirm that the second user is added to the blacklist when the target image is different from the preset image.
[0023] Optionally, the processing unit is used to determine whether the first user is in the blacklist; when the first user is in the blacklist, it is confirmed that the target fence network channel is controlled to adopt a second identification method for the first user.
[0024] Optionally, the processing unit is used to determine whether the first user is in a whitelist, where the whitelist is list information corresponding to preset personnel; when the first user is in the whitelist, it is confirmed that the control target fence network channel adopts a first identification method for the first user.
[0025] Optionally, the acquisition unit is used to obtain the position information corresponding to the third user at the target construction site; the processing unit is used to determine whether the position information is in the preset position table; when the position information is in the preset position table, confirm to add the third user to the whitelist.
[0026] Optionally, the acquisition unit is used to obtain the target license plate information corresponding to the target vehicle; the processing unit is used to determine whether the target license plate information exists in the preset license plate table; the sending unit is used to confirm that the license plate verification of the target vehicle has passed when the target license plate information exists in the preset license plate table, and send an opening command to the target access control to facilitate the target vehicle to pass through the target fence network channel.
[0027] In a third aspect of the present application, an electronic device is provided, which includes a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory, so that an electronic device executes any one of the methods described above in the present application.
[0028] In a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, any one of the above methods of the present application is executed.
[0029] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. Obtain the target time corresponding to the first user. When the target time is in the preset first time table, determine to control the target fence network channel using the first identification method, dynamically adjust the identification method according to the judgment of the target time, obtain the first identity information corresponding to the first user, and when the first facial information is consistent with the preset facial information or the first access card information is consistent with the preset access card information, it is confirmed that the identity verification of the first user has passed, and send an opening instruction to the target access control so that the first user can pass through the target fence network channel. By adopting the first identification method, when a single identification method cannot work properly, another method can be used for verification, thereby ensuring the security of identity identification, improving the accuracy of identification, reducing the inconvenience caused to users due to identification failure, and further improving the user experience.
[0030] 2. When the target time is not in the preset first schedule, determine whether the target time is in the preset second schedule. If the target time is in the preset second schedule, determine that the second identification method is used to control the target fence network channel. The second identification method adopts a more stringent double verification method, which greatly improves the security of the target construction site. Only when the first user meets the conditions of facial recognition and access card recognition at the same time can he pass the access control, effectively preventing unauthorized personnel from entering the construction area and improving the user experience.
[0031] 3. Obtain the target image corresponding to the second user, and compare the target image with the preset image. Through comparison, unauthorized users or access card fraud can be effectively identified. When the target image does not match the preset image, the second user is automatically added to the blacklist. By real-time monitoring and verifying the identity of the access card user, potential security risks can be prevented, effectively improving the security of the access control system. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a flow chart of a face recognition method for a fence network channel provided in an embodiment of the present application; Figure 2 It is a structural schematic diagram of a face recognition system for a fence network channel provided in an embodiment of the present application; Figure 3 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application.
[0033] Explanation of the reference numerals: 201, acquisition unit; 202, processing unit; 203, sending unit; 300, electronic device; 301, processor; 302, communication bus; 303, user interface; 304, network interface; 305, memory. DETAILED DESCRIPTION
[0034] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.
[0035] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.
[0036] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0037] In many key or special areas, access control systems are generally deployed at the entrances and exits to ensure the safety of personnel entering and exiting. Such access control systems often integrate fence network channel design, which is carefully made of high-strength steel wire, iron plate or aluminum alloy, and is processed by advanced processes such as hot-dip galvanizing to improve its anti-oxidation and corrosion resistance. Through precise electric welding technology, these materials are cleverly connected into a mesh structure to construct a passage that is both sturdy and not easily damaged.
[0038] Fence network channels are widely used in various public places, construction sites and transportation infrastructure. Their core function is to achieve precise access control and efficient safety isolation. It can be customized according to the needs of specific sites to adapt to different safety and management standards. Especially in construction sites, the access control system embedded in the fence network channel plays a vital role. The system uses a strict personnel access control mechanism to ensure that only authorized personnel can enter and exit, effectively preventing unauthorized intrusions, thereby maintaining order and safety at the construction site. However, the current access control system mostly relies on a single identification method for identity recognition. When the identity information of a person cannot be identified, it may cause obstruction of personnel access and affect the user experience.
[0039] Therefore, how to deal with the problem that the current single recognition method cannot work properly and causes the entry and exit of personnel to be blocked is an urgent problem to be solved. The embodiment of the present application provides a face recognition method for a fence network channel, which is applied to a server. The server of the present application can be a platform that provides face recognition services for construction sites. Figure 1 This is a flow chart of a face recognition method for a fence network channel provided in an embodiment of the present application, with reference to Figure 1 The method includes the following steps S101-S107.
[0040] S101: Obtain a target time corresponding to a first user, where the first user is any person entering or exiting a target construction site.
[0041] In the above S101, in order to ensure the safety of the construction site, an access control system is usually set up at the entrance and exit of the construction site, and the access control system is usually integrated with the fence network channel design. Users need to perform identity verification at the access control system when entering and exiting the construction site, and can enter and exit only after passing the verification. Time recording equipment (such as access control systems, cameras with timestamp recording, etc.) will be installed at the entrance and exit of the construction site. The target construction site is any site that is under construction or to be constructed. When a user (i.e., the first user) is detected entering and exiting, the time when the first user arrives at the access control system is automatically captured, and the time is sent to the server as the target time.
[0042] S102: Determine whether there is a target time in a preset first timetable, where the preset first timetable is a non-working time corresponding to a target construction site, and the target construction site is a construction site constructed using a fence network channel.
[0043] In the above S102, after obtaining the target time corresponding to the first user, a schedule can be preset, that is, a preset first schedule, which includes the non-working time period of the construction site, such as the commuting time of the construction site. The target time is compared with the preset first schedule to check whether the target time falls within the preset first schedule. The target construction site in this application is an access control system constructed by integrating a fence network channel, and the access control system is used as an interception device for the entrance and exit of the target construction site.
[0044] S103: When there is a target time in the preset first time table, the target fence network channel is controlled to adopt the first identification method.
[0045] In the above S103, when the target time falls within the preset first time table, the server controls the target fence network channel to adopt the first identification method, and the first identification method includes any one of facial information recognition or access card information recognition. In addition to the two identification methods mentioned in this application, fingerprint recognition and iris recognition can also be selected. The specific selection of which identification method can be determined based on the actual situation and location, and no excessive restrictions are made here. The server sends an instruction to the target fence network channel to adjust the identity identification method of the target fence network channel to the first identification method. At this time, the target fence network channel refers to the module for entering the user identity in the access control system.
[0046] S104: Acquire first identity information corresponding to the first user, where the first identity information includes any one of first facial information and first access card information.
[0047] In the above S104, the first identity information corresponding to the first user can be obtained, and the first identity information includes any one of the first facial information and the first access card information. The first facial information can be the facial information of the first user captured by the camera, and the first access card information refers to the access card information obtained by the access card reader when the first user places the access card at the card swiping position of the access control system. The first identity information used at this time is any one of the first facial information and the first access card information.
[0048] S105: Determine whether the first facial information is consistent with the preset facial information, or determine whether the first access card information is consistent with the preset access card information.
[0049] In the above S105, after obtaining the first identity information corresponding to the first user, the first identity information includes any one of the first facial information or the first access card information. When the first identity information is the first facial information, it is determined whether the first facial information is consistent with the preset facial information; when the first identity information is the first access card information, it is determined whether the first access card information is consistent with the preset access card information.
[0050] S106: When the first facial information is consistent with the preset facial information, or the first access card information is consistent with the preset access card information, it is confirmed that the identity verification of the first user has passed.
[0051] In the above S106, if the first identity information is the first facial information, it is determined whether the first facial information is consistent with the preset facial information. When the first facial information is consistent with the preset facial information, it is confirmed that the identity verification of the first user has passed. If the first identity information is the first access card information, it is determined whether the first access card information is consistent with the preset access card information. When the first access card information is consistent with the preset facial information, it is confirmed that the identity verification of the first user has passed. As long as the first facial information and the first access card information meet any one of the identity verification conditions, it can be considered that the identity verification of the first user has passed. The verification result can be fed back to the first user through a display screen, sound prompts, etc.
[0052] S107: Sending an opening instruction to the target access control system so that the first user can pass through the target fence network passage. The target access control system is the access control system corresponding to the entrance and exit of the target fence network passage.
[0053] In the above S107, after confirming that the identity verification of the first user has passed, an opening instruction is immediately sent to the target access control at the entrance and exit of the target fence network channel. After receiving the opening instruction, the target access control performs an opening operation (such as unlocking, opening the door, etc.) to allow the first user to pass. The entire process effectively improves the safety management efficiency of the construction site through automation and intelligent means, ensuring that only authorized personnel can enter and exit the construction site during non-working hours.
[0054] In addition, if the target time does not exist in the preset first schedule, it is determined whether the target time exists in the preset second schedule, and the preset second schedule is the working time corresponding to the target construction site; when the target time exists in the preset second schedule, the target fence network channel is controlled to adopt the second identification method; the second identity information corresponding to the first user is obtained, and the second identity information includes the second facial information and the second access card information; it is determined whether the second facial information is consistent with the preset facial information, and whether the second access card information is consistent with the preset access card information; when the second facial information is consistent with the preset facial information, and the second access card information is consistent with the preset access card information, it is confirmed that the identity verification of the first user has passed; and an opening instruction is sent to the target access control so that the first user can pass through the target fence network channel. Specifically, after confirming that the target time is not in the preset first schedule, it can be detected whether the target time exists in the preset second schedule, and the preset second schedule refers to the working time corresponding to the target construction site, that is, the actual working time period corresponding to the target construction site. When the target time is in the preset second schedule, the identification method of the target fence network channel is adjusted to the second identification method, and the second identification method is a double verification method, that is, facial recognition and access card recognition must be satisfied at the same time. Send a command to the target fence network channel to switch to the second recognition mode. Then obtain the second identity information corresponding to the first user. Since the first identity information refers to any one of the first facial information and the first access card information. However, the second identity information refers to all the identity information of the second facial information and the second access card information. The second facial information can be captured by a camera with higher or different precision, and the second access card information is also obtained by the access card reader. After collecting the second identity information corresponding to the first user, it is determined whether the second facial information is consistent with the preset facial information, and whether the second access card information is consistent with the preset access card information. Different from the single-factor verification of the first identity information, it is necessary to verify the facial information and the access card information at the same time. Compare the collected second facial information and the second access card information with the preset facial information and the preset access card information. Only when the second facial information and the second access card information are completely consistent with the preset information, the identity verification of the first user is considered to be passed. According to the result of the double verification, it is determined whether the identity of the first user has passed the verification. If the verification is passed, a message of successful verification can be fed back to the first user through a display screen, sound or other means. Once the first user's identity passes the double verification, an opening command is immediately sent to the target access control. After receiving the opening command, the target access control performs the corresponding operation (such as opening the door, etc.) to allow the first user to pass through the fence network channel smoothly. When confirming the use of the second identification method, when verifying the second identity information corresponding to the first user, as long as there is any inconsistency in the facial information or the access card information, it can be confirmed that the identity verification of the first user has failed, and a message of verification failure can be fed back to the first user through the display screen.The entire facial recognition process improves the safety of the construction site and optimizes the first-user entry and exit experience to a certain extent by distinguishing between working hours and non-working hours and adopting different identity recognition methods.
[0055] In a possible implementation, in order to further enhance the user's travel experience, the user's corresponding identity recognition method can be determined by setting a whitelist and a blacklist, without considering the time when the user arrives at the target construction site, and different identity recognition methods can be used according to the time.
[0056] The first method of setting a whitelist is to decide whether to add the user to the whitelist based on the user's job information, so that a simpler identity verification method can be adopted in the subsequent identity verification. Specifically, it includes: obtaining the job information corresponding to the third user at the target construction site; judging whether the job information is in the preset job table; when the job information is in the preset job table, confirming to add the third user to the whitelist. Specifically, in the target construction site, different users correspond to different job information. The job information corresponding to the third user can be obtained first to ensure that the job information is in line with the specifications of the target construction site. A preset job table can be maintained in advance, which lists the jobs with special permissions or requiring special attention in the target construction site. These jobs may be determined based on the needs, safety regulations or management requirements of the construction project. It can also be understood that the preset job table contains the corresponding person in charge of the target construction site. Compare the job information of the third user with the preset job table. This usually involves string matching, number matching or other forms of logical judgment. If a match is found, it means that the job information of the third user is in the preset job table. When the job information of the third user is in the preset job table, it is confirmed that the third user is added to the whitelist. A whitelist can be maintained first to record those users with special permissions or who need special treatment. When it is confirmed that the job information of the third user is in the preset job table, the third user is automatically added to the whitelist, which usually involves the record of the whitelist updater in the database.
[0057] In addition, after adding specific users in the target construction site to the whitelist, when the first user arrives at the target construction site, it can be determined whether the first user is in the whitelist. If the first user is in the whitelist, the corresponding identity recognition method is adopted. Specifically, it includes: determining whether the first user is in the whitelist, the whitelist is the list information corresponding to the preset personnel; when the first user is in the whitelist, it is confirmed that the control target fence network channel adopts the first recognition method for the first user. Specifically, the relevant information of the first user can be obtained first, and the relevant information includes facial features. The facial features of the first user are compared with the records in the whitelist. The comparison process may involve matching of multiple fields to ensure accurate identification of the identity of the first user. If a record matching the first user information is found, it means that the first user is in the whitelist. If no match is found, the first time when the first user arrives at the target construction site continues to be obtained, and the identity recognition method is determined according to the first time. Once it is confirmed that the first user is in the whitelist, the first identification method will be selected for the first user according to the preset rules. The first identification method is a more convenient verification method. An instruction is sent to the target fence network channel to require the first user to be authenticated using the first identification method. The first identification method only needs to obtain the first user's facial information or access card information, and then verify the information to determine whether the first user's identity verification has passed. After confirming that the first user's identity verification has passed, an opening instruction is sent to the target access control so that the first user can pass through the target fence network channel. The identity of the first user is determined by querying the whitelist, and an appropriate identification method is selected based on whether the first user is in the whitelist. This method not only improves the efficiency of identity verification, but also provides users with a more convenient passage experience.
[0058] The second way to set up a blacklist is to authenticate the identity of users who enter using access cards. When the identity of the user using the access card is inconsistent with the identity of the user holding the access card, the user is confirmed to be added to the blacklist, which effectively prevents users from impersonating access cards. Specifically, it includes: obtaining a second user, the second user is the person corresponding to the target access card, and the target access card is any access card; obtaining the target image corresponding to the second user, judging whether the target image is the same as the preset image, the preset image is the image of the person holding the target access card; when the target image is not the same as the preset image, it is confirmed that the second user is added to the blacklist. Specifically, when the second user (the person who has used the target access card) approaches the access control system, the access card reader reads the information of the target access card. The unique identifier on the target access card (such as the card number, RFID tag, etc.) is used to identify which user's access card it is, and thus associated with the second user. Installing a camera near the access control system will automatically capture its image as the target image when the user approaches. The captured image can be preprocessed, such as denoising, adjusting brightness and contrast, and face detection, so as to better perform subsequent comparison. Determine whether the target image is the same as the preset image. The preset image refers to the image of the person holding the target access card. Among the people allowed to enter the construction site, an access card will be distributed to each construction worker. The access card is based on the image submitted by the user when registering as the basic data, and the basic data is bound to the corresponding access card so that one user corresponds to one access card. The target image can be compared with the preset image using an image comparison algorithm (such as feature point matching, deep learning model, etc.). According to the comparison result, the similarity between the target image and the preset image is calculated. If the similarity exceeds a preset threshold, it is confirmed that the two are the same. If the similarity does not exceed a preset threshold, it is confirmed that the two are not the same. When it is confirmed that the target image is not the same as the preset image, it is confirmed that the second user is added to the blacklist. In this application, the blacklist refers to the person who enters and exits with the access card who does not match the holder of the access card, that is, the target access card may be lost or used by someone else. Therefore, after the user corresponding to the target access card is added to the blacklist, a strict identity verification method is subsequently used for the users in the blacklist to ensure the correct identity of the people entering the construction site.
[0059] In addition to the above-mentioned method of adding to the blacklist, a method can also be provided to determine whether a user is added to the blacklist. After determining that the fourth user uses an access card to enter the target construction site, the user's identity information is determined to be A based on the access card. After confirming that A has been in the target construction site, that is, A has not left the target construction site. In the access control system, it is detected that the fifth user uses facial recognition to enter the target construction site, and the identity of the fifth user's facial information is determined. The identity information corresponding to the fifth user is also A. At this time, when the identity information corresponding to the access card and the identity information corresponding to the face are the same user, it is confirmed that user A has lost the access card or lent it to others for use, so user A is added to the blacklist.
[0060] Further, after adding the user to the blacklist using the above method, when the first user arrives at the target construction site, it can be determined whether the first user is in the blacklist. If the first user is in the blacklist, the second identification method is used, which specifically includes: determining whether the first user is in the blacklist; when the first user is in the blacklist, it is confirmed that the control target fence network channel adopts the second identification method for the first user. Specifically, before obtaining the identity information of the first user, it is necessary to first query whether the first user is in the blacklist. The blacklist contains the user's unique identifier (such as ID number, employee number, and access card number, etc.) or other information that can be used to uniquely identify the user. When obtaining the relevant information of the first user (such as facial feature information, etc.) and comparing it with the blacklist, if the relevant information of the first user is found in the blacklist, it means that the first user is in the blacklist. Once it is confirmed that the first user is in the blacklist, according to the preset rules, the identification method for the first user is adjusted, and the second identification method is selected for the first user. The second identification method includes facial recognition and access card recognition. The second identification method is a more stringent or complex identity verification method to ensure effective verification even for users who are known to be at risk. Send the second identification method to the target fence network channel, requiring the first user to use the second identification method for identity authentication, and requiring the first user to provide facial information and access card information at the same time. After receiving the instruction, the target fence network channel will perform the corresponding verification process on the first user. Including collecting the facial information and access card information of the first user, comparing them with the preset facial information and preset access card information in the preset database, and making a decision to allow the first user to pass according to the comparison result. If the relevant information of the first user is not found in the blacklist, it means that the first user is not in the blacklist. The corresponding identification method is determined according to the first time corresponding to the first user. By increasing the special treatment of blacklist users, the safety prevention ability of the construction site is improved. For users with known risks, more stringent identification methods can also be adopted to ensure that their identities are effectively verified, and decide whether to allow them to enter the construction site. When the user is not in the whitelist and the user is not in the blacklist, it is confirmed that the identity recognition method is dynamically adjusted according to the time when the user arrives at the target construction site to prevent the failure of a single identification method to perform face recognition on the in and out personnel, affecting the user's travel experience.
[0061] In a possible implementation, in addition to personnel entering and exiting the target construction site, there are also vehicles entering and exiting the target construction site. By identifying the vehicles entering and exiting, the safety of the construction site is further enhanced, specifically including: obtaining the target license plate information corresponding to the target vehicle; determining whether the target license plate information exists in the preset license plate table; when the target license plate information exists in the preset license plate table, confirming that the license plate verification of the target vehicle has passed, and sending an opening instruction to the target access control so that the target vehicle can pass through the target fence network channel. Specifically, when the target vehicle approaches the fence network channel, the license plate recognition system installed near the channel will be started. The system usually uses a high-definition camera to capture the image of the front of the vehicle, and uses image processing technology and license plate recognition algorithms to extract license plate information from it. The license plate recognition algorithm can automatically locate the license plate area from the image, and accurately identify the characters and numbers on the license plate to form complete license plate information, that is, the target vehicle information. A preset license plate table will be pre-built in the server, and the preset license plate table contains the license plate information of all vehicles allowed to pass through the fence network channel. This table can be static and stored in the database, or it can be dynamically updated. Dynamic means that based on the transportation situation of the target construction site on the day, the information of unregistered license plates is temporarily added, and addition or deletion operations can be performed according to actual needs. The extracted target license plate information is compared with the records in the preset license plate table. This process usually involves a string matching algorithm, which determines whether there are identical records by comparing the character sequence of the license plate information. If a matching record is found, it means that the target license plate information exists in the preset license plate table; if no matching record is found, it is confirmed that the target license plate information cannot enter the target construction site. Once it is confirmed that the target license plate information exists in the preset license plate table, it can be considered that the license plate verification of the target vehicle has passed. An opening command will be sent to the target access control through a communication interface (such as RS-485, TCP / IP, etc.). This command contains the unique identifier of the access control device and the opening command to ensure that only the target access control will respond to this command. After receiving the opening command, the target access control will perform the corresponding action (such as unlocking, opening the door, etc.) so that the target vehicle can pass through the fence network channel smoothly. After the access control is executed, a feedback signal may be sent to the system to indicate that the access control has been successfully opened or closed.
[0062] By adopting the above method, the time corresponding to the user's arrival at the target construction site is obtained, and the identity recognition method is determined according to the time. By dynamically adjusting the identity recognition method, the situation where a single recognition method fails to work can be effectively reduced, and different identity recognition methods improve the safety management efficiency of the construction site. When the user's arrival time cannot be obtained, by setting a blacklist and a whitelist, the corresponding identity recognition method is adopted for the users on the blacklist and the whitelist, ensuring that only those who have passed the identity authentication can enter and exit the construction site, further improving the personnel's passage experience.
[0063] The present application also provides a face recognition system for a fence network channel. Figure 2 This is a schematic diagram of the structure of a face recognition system for a fence network channel provided in an embodiment of the present application, with reference to Figure 2 , the system is a server, and the server includes an acquisition unit 201, a processing unit 202 and a sending unit 203.
[0064] The acquisition unit 201 acquires the target time corresponding to the first user, where the first user is any person entering or exiting the target construction site; and acquires the first identity information corresponding to the first user, where the first identity information includes any one of the first facial information and the first access card information.
[0065] The processing unit 202 determines whether there is a target time in a preset first schedule, where the preset first schedule is the non-working time corresponding to the target construction site, and the target construction site is a construction site constructed using a fence network channel; when the target time exists in the preset first schedule, the target fence network channel is controlled to adopt a first recognition method; determines whether the first facial information is consistent with the preset facial information, or determines whether the first access card information is consistent with the preset access card information; when the first facial information is consistent with the preset facial information, or the first access card information is consistent with the preset access card information, it is confirmed that the identity verification of the first user has passed.
[0066] The sending unit 203 sends an opening instruction to the target access control so that the first user can pass through the target fence network passage. The target access control is the access control corresponding to the entrance and exit of the target fence network passage.
[0067] In a possible implementation, the processing unit 202 is used to determine whether the target time exists in a preset second schedule if the target time does not exist in the preset first schedule, and the preset second schedule is the working time corresponding to the target construction site; when the target time exists in the preset second schedule, the target fence network channel is controlled to adopt the second identification method; the acquisition unit 201 is used to obtain the second identity information corresponding to the first user, and the second identity information includes the second facial information and the second access card information; the processing unit 202 is used to determine whether the second facial information is consistent with the preset facial information, and to determine whether the second access card information is consistent with the preset access card information; when the second facial information is consistent with the preset facial information, and the second access card information is consistent with the preset access card information, it is confirmed that the identity verification of the first user has passed; the sending unit 203 is used to send an opening instruction to the target access control to facilitate the first user to pass through the target fence network channel.
[0068] In a possible implementation, the acquisition unit 201 is used to acquire a second user, where the second user is a person using a target access card, and the target access card is any access card; acquire a target image corresponding to the second user, and determine whether the target image is the same as a preset image, where the preset image is an image of a person holding the target access card; and the processing unit 202 is used to confirm that the second user is added to the blacklist when the target image is different from the preset image.
[0069] In a possible implementation, the processing unit 202 is configured to determine whether the first user is in a blacklist; when the first user is in the blacklist, it is determined that the target fence network channel is controlled to adopt a second identification method for the first user.
[0070] In a possible implementation, the processing unit 202 is used to determine whether the first user is in a whitelist, where the whitelist is list information corresponding to preset personnel; when the first user is in the whitelist, it is confirmed that the control target fence network channel adopts a first identification method for the first user.
[0071] In a possible implementation, the acquisition unit 201 is used to obtain the position information corresponding to the third user at the target construction site; the processing unit 202 is used to determine whether the position information is in the preset position table; when the position information is in the preset position table, it is confirmed that the third user is added to the whitelist.
[0072] In one possible implementation, the acquisition unit 201 is used to acquire the target license plate information corresponding to the target vehicle; the processing unit 202 is used to determine whether the target license plate information exists in the preset license plate table; the sending unit 203 is used to confirm that the license plate verification of the target vehicle has passed when the target license plate information exists in the preset license plate table, and send an opening command to the target access control to facilitate the target vehicle to pass through the target fence network channel.
[0073] It should be noted that: when the system provided in the above embodiment realizes its functions, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the system and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0074] The present application also discloses an electronic device. Figure 3 , Figure 3 The electronic device 300 may include: at least one processor 301 , at least one network interface 304 , a user interface 303 , a memory 305 , and at least one communication bus 302 .
[0075] The communication bus 302 is used to realize the connection and communication between these components.
[0076] The user interface 303 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.
[0077] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0078] Among them, the processor 301 may include one or more processing cores. The processor 301 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 305, and calling data stored in the memory 305. Optionally, the processor 301 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 301 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application requests; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 301, and it can be implemented separately through a chip.
[0079] Among them, the memory 305 may include a random access memory (RAM) or a read-only memory (Read-Only Memory). Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area. Instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. can be stored; the data storage area can store data involved in the above-mentioned various method embodiments, etc. The memory 305 can also be optionally at least one storage device located away from the aforementioned processor 301.
[0080] like Figure 3 As shown, the memory 305 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application for face recognition of a fence network channel.
[0081] exist Figure 3 In the electronic device 300 shown, the user interface 303 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 301 can be used to call the face recognition application stored in the fence network channel in the memory 305. When executed by one or more processors, the electronic device executes one or more methods described in the above embodiments.
[0082] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.
[0083] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0084] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0085] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0086] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0087] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.
[0088] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, it will be easy for those skilled in the art to think of other embodiments of the present disclosure. This application is intended to cover any variation, use or adaptive change of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field that are not recorded in the present disclosure.
Claims
1. A face recognition method for a fence network channel, characterized in that: Applied in a server, the method comprises: Obtaining a target time corresponding to a first user, where the first user is any person entering or exiting a target construction site; Determine whether the target time exists in a preset first timetable, the preset first timetable is the non-working time corresponding to the target construction site, and the target construction site is a construction site constructed using a fence network channel; When the target time exists in the preset first time table, the target fence network channel is controlled to adopt the first identification method; Acquire first identity information corresponding to the first user, where the first identity information includes any one of first facial information and first access card information; Determining whether the first facial information is consistent with preset facial information, or determining whether the first access card information is consistent with preset access card information; When the first facial information is consistent with the preset facial information, or the first access card information is consistent with the preset access card information, it is confirmed that the identity verification of the first user has passed; An opening instruction is sent to a target access control system so that the first user can pass through the target fence network passage. The target access control system is a access control system corresponding to an entrance and exit of the target fence network passage.
2. The method according to claim 1, characterized in that: After determining whether the target time exists in the preset first time table, the method further includes: If the target time does not exist in the preset first schedule, determining whether the target time exists in the preset second schedule, wherein the preset second schedule is the working time corresponding to the target construction site; When the target time exists in the preset second time table, the target fence network channel is controlled to adopt the second identification method; Acquire second identity information corresponding to the first user, where the second identity information includes second facial information and second access card information; Determine whether the second facial information is consistent with the preset facial information, and determine whether the second access card information is consistent with the preset access card information; When the second facial information is consistent with the preset facial information, and the second access card information is consistent with the preset access card information, it is confirmed that the identity verification of the first user has passed; The opening instruction is sent to the target access control system so that the first user can pass through the target fence network passage.
3. The method according to claim 2, characterized in that Before sending an opening instruction to the target access control so that the first user can pass through the target fence network passage, the method further includes: Obtain a second user, where the second user is a person corresponding to a target access card, and the target access card is any access card; Obtaining a target image corresponding to the second user, and determining whether the target image is the same as a preset image, wherein the preset image is an image of a person holding the target access card; When the target image is different from the preset image, it is confirmed that the second user is added to the blacklist.
4. The method according to claim 3, characterized in that After obtaining the first identity information corresponding to the first user, the method further includes: Determining whether the first user is in the blacklist; When the first user is in the blacklist, it is confirmed that the target fence network channel is controlled to adopt the second identification method for the first user.
5. The method according to claim 2, characterized in that: After the target time exists in the preset second schedule, the method further includes: Determine whether the first user is in a whitelist, where the whitelist is list information corresponding to preset persons; When the first user is in the whitelist, it is confirmed that the target fence network channel is controlled to adopt the first identification method for the first user.
6. The method according to claim 5, characterized in that Before determining whether the first user is in the whitelist, the method further includes: Acquire the job information of the third user corresponding to the target construction site; Determining whether the job information is in a preset job table; When the job information is in the preset job table, it is confirmed to add the third user to the whitelist.
7. The method according to claim 1, characterized in that After obtaining the first identity information corresponding to the first user, the method further includes: Get the target license plate information corresponding to the target vehicle; Determine whether the target license plate information exists in the preset license plate table; When the target license plate information exists in the preset license plate table, it is confirmed that the license plate verification of the target vehicle has passed, and the opening instruction is sent to the target access control so that the target vehicle can pass through the target fence network channel.
8. A face recognition system for a fence network channel, characterized in that: The system is a server, and the server comprises an acquisition unit (201), a processing unit (202) and a sending unit (203); The acquisition unit (201) acquires a target time corresponding to a first user, the first user being any person entering or exiting a target construction site; acquires first identity information corresponding to the first user, the first identity information comprising any one of first facial information and first access card information; The processing unit (202) determines whether the target time exists in a preset first timetable, the preset first timetable is the non-working time corresponding to the target construction site, and the target construction site is a construction site constructed using a fence network channel; when the target time exists in the preset first timetable, the target fence network channel is controlled to adopt a first identification method; determines whether the first facial information is consistent with the preset facial information, or determines whether the first access card information is consistent with the preset access card information; when the first facial information is consistent with the preset facial information, or the first access card information is consistent with the preset access card information, confirms that the identity verification of the first user has passed; The sending unit (203) sends an opening instruction to a target access control system so that the first user can pass through the target fence network passage. The target access control system is a access control system corresponding to an entrance and exit of the target fence network passage.
9. An electronic device, characterized in that: The electronic device (300) comprises a processor (301), a memory (305), a user interface (303) and a network interface (304), wherein the memory (305) is used to store instructions, the user interface (303) and the network interface (304) are used to communicate with other devices, and the processor (301) is used to execute the instructions stored in the memory (305) so that the electronic device (300) executes the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 7 is performed.