Digital visual door lock control method and system
By performing identity and action sequence verification in the visual door lock, combined with the number of people and action verification, the problem of irrelevant personnel entering in a multi-person unlocking scenario is solved, and the security and accuracy of the access control system are improved.
Patent Information
- Application Number
- CN202411060545.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-08-05
AI Technical Summary
Existing visual door locks cannot effectively identify and prevent irrelevant persons from entering in multi-person unlocking scenarios, resulting in low security.
By receiving the identity recognition information from the door lock, the identity recognition image is collected for facial recognition, the fixed authorized personnel in the preset authority library are determined, the number of people is verified and the action sequence is verified, and the door lock control instructions are generated to ensure that only authorized personnel can unlock the door, and Monitor personnel locations in real time to prevent illegal intrusions.
It achieves reliable identification and verification of multiple people's identity information, ensures that irrelevant persons cannot enter, improves the security of the access control system and the security of the use environment, and prevents fraudulent use of identities and illegal intrusions.
Smart Images

Figure CN118587802B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to data processing technology, and in particular to a digital-based visual door lock control method and system. Background Art
[0002] Visual door locks are locks that are improved on the basis of traditional mechanical locks. They are more intelligent and simple in terms of user security, identification and management. They are usually equipped with high-definition cameras and have a super large viewing angle, which means that users can clearly see the wide scene outside the door through the screen of the smart lock or the mobile phone APP. The viewing angle of traditional cat's eyes is often small, while the visual smart lock greatly expands the user's field of view and enhances security.
[0003] In the prior art, facial recognition is usually relied on alone. When there are multiple persons in front of the door lock waiting for identification and verification to unlock, the access control system can unlock the door as long as it recognizes the facial information with identity record. When the unlocking person does not have the authority to bring people into the room, it cannot prevent other persons who are not allowed to enter the room. As a result, illegal intrusion may occur, resulting in low security.
[0004] Therefore, how to identify multiple people unlocking the door, achieve safe unlocking, ensure that unauthorized persons cannot enter the house, and improve security has become an urgent problem to be solved. Summary of the invention
[0005] The embodiment of the present invention provides a digital-based visual door lock control method and system, which can identify multiple people unlocking scenes, realize safe unlocking, ensure that unauthorized persons cannot enter the house, and improve security.
[0006] According to a first aspect of an embodiment of the present invention, a digital visual door lock control method is provided, comprising:
[0007] Receiving identity recognition information sent by the door lock end, controlling a collection device at the door lock end to collect an identity recognition image based on the identity recognition information, performing facial recognition on the identity recognition image, and obtaining multiple identity information;
[0008] When it is determined that the multiple identity information contains information of fixed authorized personnel in a preset authority library, the subject personnel in the multiple identity information are obtained, and the number of personnel in the identity recognition image is verified based on the preset standard number of the subject personnel to obtain a number verification result;
[0009] According to the number verification result, a subject verification sequence corresponding to the subject person is obtained and broadcasted, and based on a preset time length, a collection device at the door lock end is controlled to collect the subject action sequence of the subject person;
[0010] The subject action sequence is verified based on the subject verification sequence to obtain an identity verification result, and a door lock control instruction is generated according to the identity verification result and sent to the door lock end.
[0011] Optionally, in a possible implementation manner of the first aspect, when determining that the multiple identity information includes information of fixed authorized personnel in a preset authority library, obtaining subject personnel in the multiple identity information, and verifying the number of personnel in the identity recognition image based on a preset standard number of the subject personnel to obtain a number verification result, including:
[0012] Retrieving a preset authority library corresponding to the door lock end, wherein the preset authority library has a one-to-one correspondence between fixed authorized personnel and authorization levels;
[0013] When it is determined that the identity information is a fixed authorized person in the preset authority library, the corresponding identity information is used as a candidate person, and the authorization level of each candidate person in the preset authority library is retrieved as the candidate level;
[0014] Selecting a candidate corresponding to the maximum candidate level as the main person, obtaining a preset standard number of people corresponding to the authorization level of the main person, the authorization level having a corresponding preset standard number of people and action verification quantity;
[0015] Identify the number of persons in the identity recognition image, and when it is determined that the number of persons is less than or equal to the preset standard number of persons, generate a number compliance result;
[0016] When it is determined that the number of people is greater than the preset standard number, a number violation result is generated, and a number verification result is obtained based on the number compliance result and the number violation result.
[0017] Optionally, in a possible implementation of the first aspect, acquiring a subject verification sequence corresponding to the subject person according to the number verification result for broadcasting, and controlling a collection device at the door lock end to collect a subject action sequence of the subject person based on a preset duration, includes:
[0018] When it is determined that the number verification result is a number compliance result, the number of action verifications corresponding to the authorization level of the subject person is obtained;
[0019] Retrieving a demonstration action library, randomly selecting demonstration actions in the demonstration action library based on the number of action verifications, obtaining a subject verification sequence corresponding to the subject person, and broadcasting the demonstration actions in the subject verification sequence;
[0020] Based on the preset time length, the collection device at the door lock end is controlled to collect the main action sequence of the main person.
[0021] Optionally, in a possible implementation manner of the first aspect, the verifying the subject action sequence based on the subject verification sequence to obtain an identity verification result, and generating a door lock control instruction according to the identity verification result and sending it to the door lock end includes:
[0022] When it is determined that the subject verification sequence is consistent with the subject action sequence, an identity compliance result is obtained;
[0023] When it is determined that the subject verification sequence is inconsistent with the subject action sequence, an identity violation result is obtained;
[0024] An identity verification result is obtained according to the identity compliance result and the identity violation result. When it is determined that the identity verification result is an identity compliance result, a door lock control instruction is generated and sent to the door lock end.
[0025] Optionally, in a possible implementation of the first aspect, the method further includes:
[0026] When it is determined that the identity information is not that of a fixed authorized person in the preset authority library, a customized identification strategy is called to identify the temporary authorized person and obtain a temporary verification result;
[0027] Based on the temporary verification result, a restricted area is configured on the collection interface of the collection device corresponding to the door lock end;
[0028] The acquisition device controlling the door lock end acquires the position judgment image of the temporarily authorized personnel in real time, and generates warning information according to the position relationship between the restricted area in the position judgment image and the temporary position of the temporarily authorized personnel, and sends it to the authorization end corresponding to the temporarily authorized personnel.
[0029] Optionally, in a possible implementation of the first aspect, when it is determined that the identity information is not a fixed authorized person in a preset authority library, calling a customized identification strategy to identify the temporary authorized person to obtain a temporary verification result, including:
[0030] When it is determined that the identity information is not a fixed authorized person in the preset authority library, the customized authority library corresponding to the door lock end is retrieved, the customized authority library has multiple temporary numbers, and the temporary numbers have corresponding temporary identifiers and temporary volumes;
[0031] The corresponding identity recognition image is used as a verification recognition image, the serial number in the verification recognition image is recognized based on OCR text recognition to obtain the number to be verified, and the identification to be verified of the object in the verification recognition image is extracted according to OpenCV;
[0032] When it is determined that the temporary number is consistent with the number to be verified, and the temporary identifier is consistent with the identifier to be verified, a temporary compliance result is generated;
[0033] When it is determined that the temporary number is inconsistent with the number to be verified, or the temporary identifier is inconsistent with the identifier to be verified, a temporary violation result is generated;
[0034] A temporary verification result is obtained according to the temporary compliance result and the temporary violation result.
[0035] Optionally, in a possible implementation of the first aspect, configuring a restricted area on a collection interface of a collection device corresponding to the door lock end based on the temporary verification result includes:
[0036] When it is determined that the temporary verification result is a temporary compliance result, the corresponding temporary number is used as the dispatch number, and the person corresponding to the dispatch number is used as the temporary authorized person;
[0037] A ratio of the temporary volume of the delivery number to the reference volume is used to obtain a proportion coefficient, and a restricted distance is obtained by multiplying the proportion coefficient by the reference distance.
[0038] When it is determined that the acquisition interface of the acquisition device corresponding to the door lock end has a threshold pixel value, the threshold pixel points in the acquisition interface are determined based on the threshold pixel value, and the adjacent threshold pixel points are counted to obtain a threshold pixel point set;
[0039] Based on OpenCV, the shape of the threshold pixel set is obtained to obtain a threshold rectangular frame, and the lower border line of the threshold rectangular frame is extracted;
[0040] Determine the opening direction of the door lock end, and perform positive translation on the lower frame line based on the opening direction and the limiting distance to obtain a limiting frame line;
[0041] The endpoints on the same side of the lower frame line and the limiting frame line are connected to generate a restricted area in the acquisition interface.
[0042] Optionally, in a possible implementation of the first aspect, configuring a restricted area on a collection interface of a collection device corresponding to the door lock end based on the temporary verification result includes:
[0043] When it is determined that the temporary verification result is a temporary compliance result, the corresponding temporary number is used as the dispatch number, the person corresponding to the dispatch number is used as the temporary authorized person, and a planning layer with the same size as the collection interface is constructed;
[0044] Sending the temporary volume corresponding to the planning layer and the dispatching personnel to the user terminal, receiving the triggering trace of the planning layer by the user terminal based on the temporary volume, and determining the initial restricted area based on the triggering trace;
[0045] Based on the preset coordinate origin, a planning coordinate system is constructed for the planning layer and the acquisition interface respectively, and the coordinates of the trace pixel points of the area line corresponding to the initial restricted area in the planning layer are obtained;
[0046] Determine the upper zone line and the lower zone line in the initial restricted area as transverse zone lines, and the left zone line and the right zone line as longitudinal zone lines respectively;
[0047] Extracting the largest number of vertical coordinates among the coordinates of the trace pixel points corresponding to each of the horizontal area lines as the restricted vertical coordinate, and extracting the largest number of horizontal coordinates among the coordinates of the trace pixel points corresponding to each of the vertical area lines as the restricted horizontal coordinate;
[0048] A restriction transverse line is constructed according to the restriction longitudinal coordinate, a restriction longitudinal line is constructed based on the restriction transverse coordinate, a restriction area is generated according to the restriction transverse line and the restriction longitudinal line, and the restriction area is updated to the acquisition interface.
[0049] Optionally, in a possible implementation of the first aspect, the acquisition device controlling the door lock end acquires a position determination image of the temporarily authorized person in real time, and generates warning information according to a positional relationship between a restricted area in the position determination image and a temporary position of the temporarily authorized person, and sends the warning information to an authorization end corresponding to the temporarily authorized person, including:
[0050] Controlling the acquisition device at the door lock end to acquire the position determination image of the temporarily authorized person in real time, and determining the temporary position of the temporarily authorized person in the position determination image;
[0051] When it is determined that the temporary location is not within the restricted area in the location judgment image, a warning message is generated and sent to the delivery end corresponding to the temporary authorized person.
[0052] A second aspect of an embodiment of the present invention provides a digital-based visual door lock control system, comprising:
[0053] An identification module, used to receive the identity identification information sent by the door lock end, control the acquisition device of the door lock end to collect the identity identification image based on the identity identification information, perform facial recognition on the identity identification image, and obtain multiple identity information;
[0054] A verification module, used to obtain the subject persons in the multiple identity information when determining that the multiple identity information contains the information of the fixed authorized persons in the preset authority library, and verify the number of persons in the identity recognition image based on the preset standard number of the subject persons to obtain the number verification result;
[0055] A reporting module, used to obtain a subject verification sequence corresponding to the subject person according to the number verification result and report it, and control the collection device at the door lock end to collect the subject action sequence of the subject person based on a preset time length;
[0056] The sending module is used to verify the subject action sequence based on the subject verification sequence, obtain an identity verification result, generate a door lock control instruction according to the identity verification result and send it to the door lock end.
[0057] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a memory, a processor and a computer program, wherein the computer program is stored in the memory, and the processor runs the computer program to execute the first aspect of the present invention and various methods that may be involved in the first aspect.
[0058] According to a fourth aspect of an embodiment of the present invention, a storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the first aspect of the present invention and various methods that may be involved in the first aspect.
[0059] The beneficial effects of the present invention are as follows:
[0060] 1. The present invention can automatically identify personnel and determine their authority, realize safe unlocking, ensure that irrelevant personnel cannot enter the house, and improve the security of the access control system. Among them, the present invention can perform facial recognition on the collected identity recognition image, so as to obtain the identity information in the identity recognition image, so as to compare the identity with the fixed authorized personnel in the preset authority library, so that when the corresponding person is determined to be a fixed authorized person, the corresponding preset standard number of people is obtained, and compared and verified with the number of people in the identity recognition image, so as to obtain the number verification result, and combine it with the action instruction to perform double verification, enhance the reliability and authenticity of the identity information, effectively prevent the situation of identity fraud, and improve the security of the access control system.
[0061] 2. The present invention can identify and verify the identity information of multiple people, ensure the reliability and authenticity of the identity information of multiple people, and realize safe unlocking. First of all, the present invention can preliminarily identify and verify the identity information, so as to determine the fixed authorized personnel with the highest unlocking authority, and then obtain the preset standard number of people and the current number of people for verification. After the verification is passed, a secondary verification is performed in combination with the action instruction to enhance the reliability and security of the identity information, prevent the misuse of identity information, and ensure the safety of the unlocking environment. Among them, the present invention can select the demonstration actions in turn to obtain the subject verification sequence for broadcasting, and collect the real subject action sequence of the subject personnel, so as to automatically compare and realize the verification of double information, improve the accuracy of the identity information, and ensure safe unlocking at the same time.
[0062] 3. The present invention can monitor the personnel information after the door lock is opened in real time, prevent illegal intrusion, and ensure the safety of the house. Among them, the present invention can determine the restricted area through the temporary number and temporary volume of the delivery personnel, so that the personnel can move in the restricted area, thereby monitoring the personnel position in real time to prevent illegal intrusion by the delivery personnel, and when it is identified that the temporary position of the delivery personnel is not in the restricted area, it will generate early warning information in time, and make a quick early warning prompt to ensure the safety of the house, and the present invention can determine the prohibited area of the item and send it to the delivery end, so that the delivery personnel can intuitively view the corresponding prohibited area, so as to place the items in an area that does not hinder the closing of the door, saving the placement time of the delivery personnel, and can reduce the time of repeatedly adjusting the placement of the items, thereby improving the delivery efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 A flowchart of a digital visual door lock control method provided by the present invention;
[0064] Figure 2 A schematic diagram of a restricted area provided by the present invention;
[0065] Figure 3 A schematic diagram of a prohibited area provided by the present invention;
[0066] Figure 4 A schematic diagram of the structure of a digital visual door lock control system provided by the present invention;
[0067] Figure 5 A schematic diagram of the hardware structure of an electronic device provided by the present invention. DETAILED DESCRIPTION
[0068] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0069] like Figure 1 As shown, the present invention provides a flow chart of a digital-based visual door lock control method, and the digital-based visual door lock control method includes:
[0070] S1, receiving the identity recognition information sent by the door lock end, controlling the acquisition device of the door lock end to collect the identity recognition image based on the identity recognition information, performing facial recognition on the identity recognition image, and obtaining multiple identity information.
[0071] It should be noted that when the server corresponding to the door lock receives the trigger operation information of the person to identify and verify the unlocking, the server will control the acquisition device to capture images of the area in front of the door lock, and then perform facial recognition on the collected identity recognition image to obtain the identity information of multiple people, such as face images.
[0072] It can be understood that the identity recognition information is the unlocking trigger information for preparing identity recognition, and can be the trigger operation information of a person clicking on the door lock. For example, when a person clicks on the door lock to trigger it, the sensor corresponding to the door lock end will send the identity recognition information to the server, so that the server can control the acquisition device on the door lock to perform image acquisition. The door lock end is a visual door lock with Bluetooth and wireless communication technology, which can receive and transmit information to and from the server. The acquisition device is a device for data acquisition, such as a camera. The identity recognition image is an image that can be used to identify the identity of a person before it is collected into the door lock. The identity information is information indicating the identity of the person, which can be a facial image of the person.
[0073] Through the above implementation, the present invention can perform facial recognition on the identity recognition image to obtain the identity information of the corresponding person, so as to facilitate subsequent verification based on the identity information. When the unlocking conditions are met, the door is unlocked, thereby improving the safety of using the visual door lock.
[0074] S2, when it is determined that the multiple identity information contains information of fixed authorized personnel in the preset authority library, the main personnel in the multiple identity information are obtained, and the number of people in the identity recognition image is verified based on the preset standard number of the main personnel to obtain the number verification result.
[0075] It should be noted that the person who opens the lock can be a family member or a relative or friend. In order to enable the person to unlock the house quickly and prevent other people from breaking into the house, the identity information of the corresponding person can be entered into the database in advance, so that when unlocking the house, the identity information in the identity recognition image can be identified and compared with the identity information entered in the database to confirm the unlocking.
[0076] It is not difficult to understand that when the server determines that the multiple identities identified in the identity recognition image contain information of fixed authorized personnel in the preset permission library, it can be said that there is a person among the multiple people who can perform safe unlocking. However, when people with different identity information unlock the room, the number of people who can be brought into the room is limited to prevent unrelated people from entering when the owner is not at home and causing economic losses. Therefore, the current number of people can be verified and checked so that safe unlocking can be performed.
[0077] It can be understood that the preset permission library is a database of pre-set identity information with unlocking authority, the fixed authorized personnel are persons with fixed unlocking authority, such as the owner of the house, children, and friends, the main personnel are the fixed authorized personnel with the largest number of people corresponding to the preset standard, the preset standard number of people is the number of people who are allowed to unlock and enter the house at the same time set for the fixed authorized personnel, and the number verification result is the result of verifying the number of people.
[0078] Through the above implementation, the present invention can obtain the number verification result, so as to perform a secondary verification on the main action sequence of the main person according to the number verification result, thereby ensuring the safety when unlocking.
[0079] In some embodiments, the specific implementation of step S2 (when determining that the multiple identity information includes information of fixed authorized personnel in a preset authority library, obtaining the subject personnel in the multiple identity information, and verifying the number of personnel in the identity recognition image based on the preset standard number of the subject personnel to obtain the number verification result) includes:
[0080] S21, calling a preset authority library corresponding to the door lock terminal, wherein the preset authority library has a one-to-one correspondence between fixed authorized personnel and authorization levels.
[0081] It can be understood that the authorization level is the authority level of the personnel, which can be preset manually, such as the first level and the second level, wherein fixed authorized personnel and authorization levels correspond one to one, such as personnel A, B, and C are at the first level, and personnel D and E are at the second level.
[0082] It is not difficult to understand that fixed authorized personnel can be divided into multiple levels to ensure that the corresponding fixed authorized personnel will not bring too many people into the house, thereby ensuring the safety of the people in the house.
[0083] S22, when it is determined that the identity information is a fixed authorized person in the preset authority library, the corresponding identity information is used as a candidate person, and the authorization level of each candidate person in the preset authority library is retrieved as the candidate level.
[0084] It can be understood that when the identity information in the collected identity recognition image is compared and verified with the fixed authorized personnel in the preset authority library, and it is determined that the corresponding identity information is the fixed authorized personnel in the preset authority library, the corresponding identity information can be used as a candidate personnel, and the authorization level of each candidate personnel in the preset authority library can be retrieved as the candidate level.
[0085] For example: when it is determined that identity information A and identity information D are fixed authorized personnel, the alternative personnel can be obtained as the personnel corresponding to identity information A and identity information D, and since the authorization level of fixed authorized personnel A is the first level and the authorization level of fixed authorized personnel D is the second level, the alternative levels can be obtained as the first level and the second level.
[0086] Through the above implementation, the present invention can obtain candidate personnel and candidate levels, so as to obtain the corresponding preset standard number of people for comparison and verification, thereby ensuring safe unlocking.
[0087] S23, selecting the candidate personnel corresponding to the maximum candidate level as the main personnel, obtaining the preset standard number of people corresponding to the authorization level of the main personnel, and the authorization level has the corresponding preset standard number of people and the number of action verifications.
[0088] It is understandable that different authorization levels have corresponding preset standard numbers of people and numbers of action verifications.
[0089] The action verification number is the number of actions for unlocking verification, for example, it can be 2 or 3.
[0090] It is not difficult to understand that when there are multiple alternative personnel, the alternative personnel corresponding to the largest alternative level are selected as the main personnel in order to determine the current number of people to obtain the number verification result, and when the authorization level is the first level, the corresponding preset standard number of people can be 10, and the number of action verifications can be 2. It can be said that when the authorization level of the identity information is the first level, no more than 10 people can be brought into the house, and 2 actions are required for verification. The lock can be unlocked only after passing the verification. Through multiple aspects of verification, the safety of unlocking is ensured.
[0091] Through the above implementation, the present invention can determine the main personnel and the preset standard number of people, so as to conduct subsequent number verification and ensure the safety of unlocking.
[0092] S24, identifying the number of persons in the identity recognition image, and generating a number compliance result when determining that the number of persons is less than or equal to the preset standard number of persons.
[0093] It can be understood that when the identity recognition image is identified and it is determined that the number of people is less than or equal to the preset standard number, it can be said that the current number of people is within the range of the number of people allowed in the house, so that a number compliance result can be generated to facilitate subsequent unlocking based on the number compliance result.
[0094] Among them, the number compliance result is the judgment result that the number of people meets the normal number for unlocking.
[0095] For example, when the collected identity recognition image is identified, the number of people is 4, and since the standard number is 10, since 4<10, a result that the number of people is compliant can be generated for subsequent unlocking.
[0096] S25, when it is determined that the number of people is greater than the preset standard number of people, a number violation result is generated, and a number verification result is obtained based on the number compliance result and the number violation result.
[0097] It can be understood that the number violation result is the determination result that the number of people does not meet the normal number for unlocking, and the number verification result is the result obtained by verifying the number of people, including the number compliance result and the number violation result.
[0098] It is not difficult to understand that when a number violation result is obtained, it means that the current number of people exceeds the number of people who are eligible to enter the house, and there may be dangerous people. Therefore, the door does not need to be unlocked to ensure the safety of people in the house.
[0099] S3, obtaining the subject verification sequence corresponding to the subject person according to the number verification result and broadcasting it, and controlling the collection device at the door lock end to collect the subject action sequence of the subject person based on a preset duration.
[0100] It should be noted that when the result of the number verification is a compliance result, the personnel can perform corresponding actions according to the subject verification sequence to achieve secondary verification of the personnel unlocking information, ensure the authenticity of the unlocking personnel, prevent personnel from using the image of the subject person to verify unlocking, and improve the safety of personnel unlocking.
[0101] It can be understood that the subject verification sequence is an action sequence for verifying the information of the subject personnel, the preset duration is a pre-set duration, such as 5s, and the subject action sequence is a sequence of actions performed by the subject personnel.
[0102] It is not difficult to understand that after the number of people is verified, the verification action can be selected for broadcasting so that the main person can execute it, and the lock can be unlocked after the verification is successful.
[0103] In some embodiments, the specific implementation of step S3 (obtaining a subject verification sequence corresponding to the subject person according to the number verification result for broadcasting, and controlling the collection device at the door lock end to collect the subject action sequence of the subject person based on a preset duration) includes:
[0104] S31, when it is determined that the number verification result is a number compliance result, the number of action verifications corresponding to the authorization level of the subject person is obtained.
[0105] It is understandable that the number of actions required for unlocking verification by subjects with different authorization levels is different. For example, the owner of the house may only need to perform one action to successfully verify and unlock the door quickly. When the corresponding friend's authorization level is the second level, in order to ensure the authenticity of the person, three verification actions may be required to successfully verify and unlock the door.
[0106] The action verification number is the number of actions for unlocking verification.
[0107] Through the above implementation, the present invention can obtain the number of action verifications, so as to randomly select demonstration actions according to the number of action verifications in the future, so as to perform action verification on the person who unlocks the door.
[0108] S32, calling up a demonstration action library, randomly selecting demonstration actions in the demonstration action library in turn based on the number of action verifications, obtaining a subject verification sequence corresponding to the subject person, and broadcasting the demonstration actions in the subject verification sequence.
[0109] It can be understood that the demonstration action library is a database containing demonstration actions, which can be preset manually. The demonstration actions are execution actions for demonstration verification, such as blinking, shaking the head left and right, nodding up and down, etc.
[0110] It is not difficult to understand that, for example, when the demonstration actions randomly selected in sequence are blinking and shaking the head left and right, the subject verification sequence can be obtained as (blinking, shaking the head left and right), and then the demonstration actions in the subject verification sequence are broadcasted so that subsequent personnel can perform the actions in sequence to achieve identity verification.
[0111] S33, based on a preset duration, controlling the collection device at the door lock end to collect the main action sequence of the main person.
[0112] It can be understood that when the preset time is 5s, the acquisition device can be controlled to capture images of the subject's actions so as to obtain the subject's action sequence, which is then compared with the subject's verification sequence to determine the corresponding identity verification result, thereby controlling the opening of the door lock.
[0113] For example, when the preset duration is 5 seconds, the verification actions of the person unlocking the door are collected in sequence as blinking and shaking the head left and right, so the main action sequence can be obtained as (blinking and shaking the head left and right).
[0114] Through the above implementation, the present invention can obtain the subject action sequence, so as to compare it with the subject verification sequence later, thereby obtaining the identity verification result, so as to obtain an accurate unlocking instruction and ensure the unlocking safety.
[0115] S4, verifying the subject action sequence based on the subject verification sequence to obtain an identity verification result, generating a door lock control instruction according to the identity verification result and sending it to the door lock end.
[0116] It is understandable that the identity verification result is the result of verifying the identity of the unlocking person.
[0117] It is not difficult to understand that the subject verification sequence is compared and verified with the subject action sequence to generate a corresponding identity verification result, and then the door lock control instruction can be obtained according to the identity verification result to determine whether the door lock is opened or closed to ensure the safety of unlocking.
[0118] In some embodiments, the specific implementation of step S4 (the subject action sequence is verified based on the subject verification sequence to obtain an identity verification result, and a door lock control instruction is generated according to the identity verification result and sent to the door lock end) includes:
[0119] S41, when it is determined that the subject verification sequence is consistent with the subject action sequence, an identity compliance result is obtained.
[0120] It can be understood that the identity compliance result is a verification result confirming that the identity of the unlocking person conforms to the correct person identity information.
[0121] It is not difficult to understand that when the subject verification sequence is consistent with the subject action sequence, it can be said that the unlocking person is a dynamic and real person, so that the unlocking can be performed subsequently.
[0122] S42, when it is determined that the subject verification sequence is inconsistent with the subject action sequence, an identity violation result is obtained.
[0123] It can be understood that the identity violation result is a verification result confirming that the identity of the unlocking person does not match the correct person identity information.
[0124] It is not difficult to understand that when the subject verification sequence is inconsistent with the subject action sequence, it means that real-time action cannot be performed when verifying the current identity information, and there is a risk of counterfeiting, so that an identity violation result can be obtained so that the lock will not be unlocked subsequently to ensure safety.
[0125] S43, obtaining an identity verification result according to the identity compliance result and the identity violation result, and when it is determined that the identity verification result is an identity compliance result, generating a door lock control instruction and sending it to the door lock end.
[0126] It is understandable that when the identity verification result is an identity compliance result, a door lock control instruction will be generated and sent to the door lock end for unlocking.
[0127] Among them, the identity verification result includes an identity compliance result and an identity violation result, and the door lock control instruction is an instruction operation to control the opening of the door lock.
[0128] It should be noted that in real life, there are usually people who unlock the door. For example, if a person is not in the house, in order to store the takeaway items indoors in time to prevent loss, the person can be temporarily unlocked. In order to ensure that the person unlocking the door is the corresponding temporary authorized person, the temporary authorized person can be authenticated to achieve safe unlocking. Furthermore, it also includes:
[0129] A1, when it is determined that the identity information is not that of a fixed authorized person in a preset authority library, a customized identification strategy is retrieved to perform identity identification on a temporary authorized person to obtain a temporary verification result.
[0130] It can be understood that after the facial information of the person in the collected image is recognized, if it is determined that the person with the corresponding identity information is not a fixed authorized person in the preset authority library, the temporary authorized person is identified and a temporary verification result is obtained to determine whether the door lock can be opened.
[0131] The temporary authorized person is a person who is temporarily authorized to unlock the door, and the temporary verification result is the result of identity verification of the temporary authorized person.
[0132] In some embodiments, the specific implementation of step A1 (when it is determined that the identity information is not a fixed authorized person in the preset authority library, calling a customized identification strategy to identify the temporary authorized person and obtain a temporary verification result) includes:
[0133] A11, when it is determined that the identity information is not a fixed authorized person in the preset authority library, the customized authority library corresponding to the door lock end is retrieved, the customized authority library has multiple temporary numbers, and the temporary numbers have corresponding temporary identifiers and temporary volumes.
[0134] It can be understood that the customized permission library is a database of personnel with temporary unlocking authority, and can be an information library that is customized and entered manually according to the current temporary personnel. For example, when the purchased item A is delivered by a delivery person numbered 001, the corresponding delivery platform information and the delivery person number can be entered. At the same time, the information of the item A purchased by the individual is also entered in advance to facilitate subsequent temporary unlocking verification. When multiple information are verified successfully at the same time, the lock can be unlocked to ensure safety.
[0135] Among them, the temporary number is the identity number of the person who can temporarily unlock the door, such as 001, 002, etc., the temporary identifier is the information identifier of the item purchased by the person, such as the name of the purchased item is item A, and the temporary volume is the volume of the item corresponding to the temporary identifier.
[0136] It is not difficult to understand that after a person purchases an item on the platform, a specific person will deliver the item, and each delivery person has a corresponding identity number for real-time monitoring. Therefore, the person who purchases the item can enter the number of the corresponding delivery person on the shopping platform, as well as the identification and volume information of the purchased item, so as to facilitate subsequent multi-faceted information verification, ensure the authenticity of the person's identity, and achieve safe unlocking.
[0137] A12, using the corresponding identity recognition image as a verification recognition image, recognizing the number in the verification recognition image based on OCR text recognition to obtain the number to be verified, and extracting the identification to be verified of the object in the verification recognition image according to OpenCV.
[0138] It can be understood that the verification identification image is the identity identification image collected by the door lock acquisition device to facilitate subsequent image recognition, the number to be verified is the number in the verification identification image, and the mark to be verified is the name mark of the object in the verification identification image, for example, item A.
[0139] Among them, OCR text recognition is an existing technology that can perform text recognition and will not be described in detail here.
[0140] Through the above implementation, the present invention can perform information recognition on the image collected by the current door lock, thereby obtaining a number to be verified and an identification to be verified, so as to facilitate subsequent information verification and ensure unlocking safety.
[0141] A13, when it is determined that the temporary number is consistent with the number to be verified, and the temporary identifier is consistent with the identifier to be verified, a temporary compliance result is generated.
[0142] It can be understood that when the entered temporary number is consistent with the currently identified number to be verified, it can be said that the identity number of the current door delivery person is correct, thereby generating a temporary compliance result to facilitate the subsequent determination of the opening status of the door lock.
[0143] Among them, the temporary compliance result is the result of verifying the identity of the temporary authorized person.
[0144] A14, when it is determined that the temporary number is inconsistent with the number to be verified, or the temporary identifier is inconsistent with the identifier to be verified, a temporary violation result is generated.
[0145] It is understandable that when the entered temporary number is inconsistent with the currently identified number to be verified, it may mean that the identity number of the current door delivery person is incorrect and may be an imposter, thereby generating a temporary violation result so that the door lock will not be opened subsequently to ensure the safety of the house.
[0146] Among them, the temporary violation result is the result of failure to verify the identity of the temporary authorized person.
[0147] A15, obtaining a temporary verification result according to the temporary compliance result and the temporary violation result.
[0148] It is understandable that the interim verification results include interim compliance results and interim non-compliance results.
[0149] Through the above implementation, the present invention can obtain a temporary verification result, so as to configure the restricted area of the collection interface according to the temporary verification result later.
[0150] A2, based on the temporary verification result, a restricted area is configured on the collection interface of the collection device corresponding to the door lock end.
[0151] It should be noted that the purchased items can be temporarily placed in a certain area inside the door without going deep into the room. In order to prevent the delivery personnel from maliciously entering the room and causing losses, certain restrictions are imposed on the delivery personnel's area of action.
[0152] For example: when a delivery person is identified as exceeding a restricted area, a warning or alarm can be issued to ensure the safety of the house.
[0153] It can be understood that the acquisition interface is the image interface captured by the acquisition device, and the restricted area is the area that limits the range of movement of the temporarily authorized personnel.
[0154] Through the above implementation, the present invention can configure a restricted area to facilitate subsequent security monitoring of temporarily authorized personnel.
[0155] In some embodiments, the specific implementation of the step (configuring a restricted area on the collection interface of the collection device corresponding to the door lock end based on the temporary verification result) includes:
[0156] A21, when it is determined that the temporary verification result is a temporary compliance result, the corresponding temporary number is used as the dispatch number, and the person corresponding to the dispatch number is used as the temporary authorized person.
[0157] It should be noted that on the same day, a person may purchase multiple items, which will require multiple people to deliver them. In addition, since the items may vary in size, the areas of the room that people need to enter when storing them will also be different. For example, when the delivered item is food, the corresponding delivery person may only need to enter the area within 0.5 meters of the door, but when the delivered item is a large household appliance, it may be necessary to enter the area within 2 meters of the room.
[0158] It can be understood that when the temporary verification result is a temporary compliance result, it can be said that the identity of the corresponding delivery personnel is correct, and the door can be unlocked, allowing the delivery personnel to store the items in the house. In order to determine the volume of the corresponding items, and thus determine the size of the restricted area according to the volume of the items, and then implement the configuration, the identified temporary number can be used as the delivery number, and the person corresponding to the delivery number can be used as a temporary authorized person, so as to facilitate the subsequent acquisition of the delivered items and the corresponding volume size of the corresponding delivery personnel.
[0159] A22, based on the ratio of the temporary volume of the delivery number to the reference volume, obtain the proportion coefficient, and obtain the restricted distance according to the product of the proportion coefficient and the reference distance.
[0160] It can be understood that the temporary volume is the volume of items delivered by the person corresponding to the delivery number, the benchmark volume is manually preset and is used to determine the restricted distance of the restricted area, the accounting coefficient is the ratio of the temporary volume to the benchmark volume, the benchmark distance is the benchmark value for determining the restricted distance, which can be manually preset, and the restricted distance is the length distance of the restricted area, that is, the product of the accounting coefficient and the benchmark distance.
[0161] Through the above implementation, the present invention can obtain the restricted distance, so as to subsequently construct the corresponding restricted area.
[0162] A23, when it is determined that the acquisition interface of the acquisition device corresponding to the door lock end has a threshold pixel value, the threshold pixel points in the acquisition interface are determined based on the threshold pixel value, and the adjacent threshold pixel points are counted to obtain a threshold pixel point set.
[0163] It can be understood that the threshold pixel value is the pixel value corresponding to the threshold of the house, for example, it can be black, the threshold pixel point is the pixel point corresponding to the threshold pixel value in the acquisition interface, and the threshold pixel point set is a set of adjacent threshold pixel points.
[0164] It is not difficult to understand that when the threshold pixel value is identified in the acquisition interface, the threshold pixel point set in the acquisition interface can be obtained based on the threshold pixel point, so as to subsequently obtain the boundary line of the restricted area.
[0165] A24, based on OpenCV, obtain the shape composed of the threshold pixel point set, obtain a threshold rectangular frame, and extract the lower border line of the threshold rectangular frame.
[0166] It should be noted that when the door is opened, the camera on the door lock can capture the corresponding threshold image, and since the door has a certain thickness, the corresponding threshold will also have a certain width, and the captured threshold shape may be a rectangle.
[0167] It is understandable that OpenCV can perform contour recognition on pixel points corresponding to pixel values, so that the shape of the threshold pixel point set can be extracted using existing technology. The threshold rectangular frame is a rectangular shape composed of the threshold pixel point set, and the lower border line is the lower boundary line of the threshold rectangular frame.
[0168] Through the above implementation, the present invention can obtain the lower border line, so as to determine the restricted area that needs to be configured according to the lower border line later.
[0169] A25, determining the opening direction of the door lock end, and performing a positive translation on the lower frame line based on the opening direction and the limiting distance to obtain a limiting frame line.
[0170] It can be understood that the opening direction is the direction of movement of the door after the door lock is opened, for example, it can be the direction from outdoor to indoor, and the limiting frame line is the boundary line of the restricted area, which can be the boundary line determined by translating the lower frame line to a limiting distance.
[0171] Through the above implementation, the present invention can obtain a restriction frame line to facilitate subsequent generation of a restriction area.
[0172] A26, connecting the end points on the same side of the lower border line and the limiting border line to generate a restricted area in the acquisition interface.
[0173] It is understandable that if Figure 2 As shown, the endpoints of the same direction corresponding to the two boundaries (the lower border line and the limit frame line) are connected to obtain a rectangular area enclosed by them, which is the limit area.
[0174] Through the above implementation, the present invention can generate a restricted area, so as to facilitate the subsequent real-time monitoring of the position of the temporarily authorized personnel according to the restricted area to ensure safety.
[0175] In other embodiments, the specific implementation of the step (configuring a restricted area on the collection interface of the collection device corresponding to the door lock end based on the temporary verification result) includes:
[0176] B21, when it is determined that the temporary verification result is a temporary compliance result, the corresponding temporary number is used as the dispatch number, the person corresponding to the dispatch number is used as the temporary authorized person, and a planning layer with the same size as the collection interface is constructed.
[0177] It should be noted that not only can the restricted area be determined based on the temporary volume, but also personnel can trigger the setting of restricted areas by themselves, thereby conducting real-time monitoring of temporarily authorized personnel unlocking and entering the room.
[0178] It can be understood that when it is determined that the temporary verification result is a temporary compliance result, the dispatch number is the temporary number that has passed the verification, the temporary authorized personnel is the person corresponding to the dispatch number, and the planning layer is the layer for constructing the restricted area, for example, it can be a transparent layer.
[0179] Through the above implementation, the present invention can obtain a planning layer with the same size as the acquisition interface, so that subsequent users can actively plan the restricted area on the planning layer.
[0180] B22, sending the temporary volume corresponding to the planning layer and the delivery personnel to the user end, receiving the triggering trace of the planning layer by the user end based on the temporary volume, and determining the initial restricted area based on the triggering trace.
[0181] It can be understood that the user end is the information terminal of the house user connected to the door lock, for example, it can be a mobile phone, the trigger trace is the operation trace of triggering the planning layer on the user end, and the initial restricted area is the area enclosed by the trigger trace.
[0182] It is not difficult to understand that the temporary volume corresponding to the planning layer and the dispatching personnel is sent to the user end, so that the user can trigger and set the area on the planning layer according to the temporary volume, so as to obtain the restricted area later and monitor the location of the temporarily authorized personnel in real time.
[0183] B23, constructing a planning coordinate system for the planning layer and the acquisition interface based on a preset coordinate origin, and obtaining the coordinates of the trace pixel points of the area line corresponding to the initial restricted area in the planning layer.
[0184] It can be understood that since the planning layer and the acquisition interface have the same size, the coordinates of the planning coordinate system constructed in the planning layer and the acquisition interface are one-to-one corresponding, so that the restricted area in the corresponding acquisition interface can be obtained based on the coordinates of the pixel points of the initial restricted area in the planning layer.
[0185] Among them, the preset coordinate origin is the origin position of the preset coordinate system, which can be preset manually. The planned coordinate system is a coordinate system constructed based on the preset coordinate origin. The area line is the boundary line of the initial restricted area. The trace pixel point coordinates are the coordinates of the pixel points of the area line corresponding to the trigger trace.
[0186] Through the above implementation, the present invention can obtain the trace pixel point coordinates on each area line of the initial restricted area, so as to obtain the restricted area according to the trace pixel point coordinates in the acquisition interface later.
[0187] B24, determining the upper zone line and the lower zone line in the initial restricted area as transverse zone lines, and the left zone line and the right zone line as longitudinal zone lines respectively.
[0188] It can be understood that the upper area line is the upper boundary line of the initial restriction area, the lower area line is the lower boundary line of the initial restriction area, the horizontal restriction area line is the upper area line and the lower area line in the initial restriction area, the left area line is the left boundary line of the initial restriction area, the right area line is the right boundary line of the initial restriction area, and the longitudinal area line is the longitudinal boundary line of the initial restriction area, including the left area line and the right area line.
[0189] B25, extracting the largest number of vertical coordinates from the coordinates of the trace pixel points corresponding to each of the horizontal area lines as the restricted vertical coordinate, and extracting the largest number of horizontal coordinates from the coordinates of the trace pixel points corresponding to each of the vertical area lines as the restricted horizontal coordinate.
[0190] It should be noted that when a person on the user side triggers a circle to mark an area on the planning layer, the trigger trace may be distorted due to hand shaking and other reasons, resulting in an irregular initial restricted area. Therefore, in order to make the restricted area obtained subsequently neat and regular and facilitate the identification and comparison of the personnel's position, the initial restricted area can be adjusted to obtain a restricted area with neat boundary lines.
[0191] The vertical coordinate is limited to the vertical coordinate with the largest number of trace pixel coordinates corresponding to the horizontal area line, and the horizontal coordinate is limited to the horizontal coordinate with the largest number of trace pixel coordinates corresponding to the vertical area line.
[0192] It is not difficult to understand that when a line segment is parallel to the horizontal axis and is a neat straight line segment, the horizontal coordinates of the pixels on the line segment are different, but the vertical coordinates are the same. For example, by connecting the pixel coordinates of (-5,5), (-4,5), (-3,5), (-2,5), (-1,5), (0,5), (1,5), (2,5), and (3,5), a straight line segment parallel to the horizontal axis can be obtained. Therefore, in order to obtain the straight boundary line of the restricted area corresponding to the horizontal area line, the vertical coordinate with the largest number in the coordinates of the trace pixel points corresponding to each horizontal area line can be used as the restricted vertical coordinate, so as to facilitate the subsequent determination of the straight horizontal boundary line of the restricted area. Similarly, the horizontal coordinate with the largest number in the coordinates of the trace pixel points corresponding to the vertical area line can be used as the restricted horizontal coordinate, so as to obtain the straight vertical boundary line of the restricted area.
[0193] B26, constructing a restriction transverse line according to the restriction longitudinal coordinate, constructing a restriction longitudinal line based on the restriction transverse coordinate, generating a restriction area according to the restriction transverse line and the restriction longitudinal line, and updating the restriction area to the acquisition interface.
[0194] It can be understood that the limiting transverse line is a transverse boundary line whose longitudinal coordinates are all limiting longitudinal coordinates, and the limiting longitudinal line is a longitudinal boundary line whose transverse coordinates are all limiting transverse coordinates.
[0195] It is not difficult to understand that the generated restricted horizontal lines and restricted vertical lines are connected end to end according to their positions to generate restricted areas, and the restricted areas are updated in the collection interface to facilitate position monitoring of temporarily authorized personnel and prevent the occurrence of safety accidents.
[0196] A3, controls the acquisition device at the door lock end to acquire the position judgment image of the temporarily authorized personnel in real time, and generates an early warning message based on the positional relationship between the restricted area in the position judgment image and the temporary position of the temporarily authorized personnel, and sends it to the authorization end corresponding to the temporarily authorized personnel.
[0197] It can be understood that the acquisition device on the control door lock end takes real-time images of the position of the temporarily authorized person after the door is unlocked, thereby obtaining a position judgment image, so as to determine whether the temporarily authorized person has exceeded the restricted area based on the restricted area and the position of the temporarily authorized person in the position judgment image, and when there is a trend of intrusion, timely early warning prompts can be given to ensure safety.
[0198] Among them, the location judgment image is an image with the location information of the temporarily authorized person, the temporary location is the location of the temporarily authorized person, the warning information is the prompt information for danger warning, and the authorization end is the platform terminal where the authorization system is located.
[0199] It is not difficult to understand that the shopping platform where users shop, the delivery platform where delivery personnel deliver items, and multiple corresponding platforms such as the system and supervision platform are related. Therefore, when a restricted area is generated, the delivery personnel can view the corresponding restricted area through the platform to prevent people from exceeding the restricted area and send early warning information. When an abnormality is detected, the corresponding delivery personnel can be found based on the corresponding platform information, and the loss can be held accountable to realize the supervision function.
[0200] In some embodiments, the specific implementation of step A3 (the acquisition device controlling the door lock end acquires the position judgment image of the temporary authorized person in real time, and generates warning information based on the position relationship between the restricted area in the position judgment image and the temporary position of the temporary authorized person and sends it to the authorization end corresponding to the temporary authorized person) includes:
[0201] A31, controlling the acquisition device at the door lock end to acquire the position determination image of the temporarily authorized person in real time, and determining the temporary position of the temporarily authorized person in the position determination image.
[0202] It is understandable that the acquisition device controlling the door lock performs real-time acquisition and monitoring of the temporarily authorized personnel to obtain a position judgment image, and determines the temporary position of the temporarily authorized personnel in the position judgment image for subsequent comparison with the restricted area.
[0203] A32, when it is determined that the temporary location is not within the restricted area in the location judgment image, a warning message is generated and sent to the delivery terminal corresponding to the temporary authorized person.
[0204] It can be understood that when the temporary location is not within the restricted area in the location judgment image, it may indicate that the corresponding temporarily authorized personnel may have a tendency to invade the house or do not store items indoors. Therefore, an early warning message can be generated and sent to the corresponding delivery end so that relevant personnel can check it in time to ensure indoor safety.
[0205] It should be noted that the delivery personnel may place the items very close to the threshold, so when the personnel close the door, it may hinder the closing of the door. Therefore, in order to reduce the time of repeatedly adjusting the placement of the items, it also includes:
[0206] C1, obtain the side length of the lower border line as the rotation radius, and obtain the rotation direction of the door lock end.
[0207] It can be understood that the rotation radius is the side length of the lower border line, and the rotation direction is the direction in which the door opens, such as clockwise or counterclockwise.
[0208] Through the above implementation, the present invention can obtain the rotation direction, so as to subsequently determine the area where the storage of items is prohibited, and provide reminders to personnel, so as to reduce the time for adjusting the placement of items.
[0209] C2: When it is determined that the rotation direction is counterclockwise, the endpoint on the right side of the rotation radius is used as the rotation center, and a rotation area is constructed based on the rotation center and the rotation radius.
[0210] It can be understood that when the rotation direction is counterclockwise, the rotation center is the right end point of the rotation radius, and the rotation area is the area through which the door rotates. The rotation area can be determined by the rotation center and the rotation radius.
[0211] C3, when it is determined that the rotation direction is clockwise, the left end point of the rotation radius is used as the rotation center, and a rotation area is constructed based on the rotation center and the rotation radius.
[0212] It can be understood that when the rotation direction is clockwise, the center of the rotation circle is the left end point of the rotation radius.
[0213] C4, according to the intersection of the rotating area and the restricted area, a prohibited area is obtained and sent to the delivery end.
[0214] It is understood that a prohibited area is an area where items are prohibited from being stored, i.e. Figure 3 As shown, the area where the rotating area intersects the restricted area, the delivery end is a terminal for the delivery personnel to receive information, which can be a mobile phone, and the rotating area is the fan-shaped area in the figure.
[0215] It is not difficult to understand that the determined prohibited areas are sent to the delivery end so that the delivery personnel can visually view the corresponding prohibited areas, and thus place the items in an area that does not hinder the closing of the door, saving the delivery personnel's placement time and improving delivery efficiency.
[0216] See also Figure 4 , is a structural diagram of a digital visual door lock control system provided by an embodiment of the present invention, the digital visual door lock control system includes:
[0217] The identification module is used to receive the identity identification information sent by the door lock end, control the collection device of the door lock end to collect the identity identification image based on the identity identification information, perform facial recognition on the identity identification image, and obtain multiple identity information.
[0218] The verification module is used to obtain the main person in the multiple identity information when it is determined that the multiple identity information contains information of fixed authorized personnel in the preset authority library, and verify the number of people in the identity recognition image based on the preset standard number of the main person to obtain the number verification result.
[0219] The broadcast module is used to obtain the subject verification sequence corresponding to the subject person according to the number verification result and broadcast it, and control the collection device at the door lock end to collect the subject action sequence of the subject person based on a preset time length.
[0220] The sending module is used to verify the subject action sequence based on the subject verification sequence, obtain an identity verification result, generate a door lock control instruction according to the identity verification result and send it to the door lock end.
[0221] See also Figure 5 , is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention, the electronic device 50 includes: a processor 51, a memory 52 and a computer program; wherein
[0222] The memory 52 is used to store the computer program, which may also be a flash memory. The computer program is, for example, an application program, a functional module, etc. for implementing the above method.
[0223] The processor 51 is used to execute the computer program stored in the memory to implement each step performed by the device in the above method. For details, please refer to the relevant description in the above method embodiment.
[0224] Optionally, the memory 52 may be independent or integrated with the processor 51 .
[0225] When the memory 52 is a device independent of the processor 51, the device may further include:
[0226] The bus 53 is used to connect the memory 52 and the processor 51 .
[0227] The present invention also provides a readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the methods provided by the various embodiments described above.
[0228] Among them, the readable storage medium can be a computer storage medium or a communication medium. The communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The computer storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, a readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application-specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). In addition, the ASIC can be located in a user device. Of course, the processor and the readable storage medium can also exist in a communication device as discrete components. The readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0229] The present invention also provides a program product, which includes an execution instruction, which is stored in a readable storage medium. At least one processor of a device can read the execution instruction from the readable storage medium, and at least one processor executes the execution instruction so that the device implements the methods provided in the above various embodiments.
[0230] In the embodiments of the above-mentioned devices, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0231] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
[0232] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals (including but not limited to signals transmitted between user terminals and other devices, etc.) involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions. For example, the "face images", "face images", "face information", etc. involved in this disclosure are all obtained with full authorization."
Claims
1. A digital visual door lock control method, characterized in that: include: Receiving identity recognition information sent by the door lock end, controlling a collection device at the door lock end to collect an identity recognition image based on the identity recognition information, performing facial recognition on the identity recognition image, and obtaining multiple identity information; When it is determined that the multiple identity information contains information of fixed authorized personnel in a preset authority library, obtaining the subject personnel in the multiple identity information, and verifying the number of personnel in the identity recognition image based on the preset standard number of the subject personnel to obtain a number verification result; According to the number verification result, a subject verification sequence corresponding to the subject person is obtained and broadcasted, and based on a preset time length, a collection device at the door lock end is controlled to collect a subject action sequence of the subject person; Verify the subject action sequence based on the subject verification sequence to obtain an identity verification result, and generate a door lock control instruction according to the identity verification result and send it to the door lock end; When it is determined that none of the multiple identity information is a fixed authorized person in the preset authority library, a customized identification strategy is called to identify the temporary authorized person to obtain a temporary verification result; Based on the temporary verification result, a restricted area is configured on the collection interface of the collection device corresponding to the door lock end; The acquisition device at the door lock end is controlled to acquire the position judgment image of the temporary authorized person in real time, and generate warning information according to the position relationship between the restricted area in the position judgment image and the temporary position of the temporary authorized person, and send it to the authorization end corresponding to the temporary authorized person; When it is determined that none of the multiple identity information is a fixed authorized person in the preset authority library, a customized identification strategy is called to identify the temporary authorized person to obtain a temporary verification result, including: When it is determined that none of the multiple identity information is a fixed authorized person in the preset authority library, a customized authority library corresponding to the door lock end is retrieved, the customized authority library has multiple temporary numbers, and the temporary numbers have corresponding temporary identifiers and temporary volumes; The corresponding identity recognition image is used as a verification recognition image, the serial number in the verification recognition image is recognized based on OCR text recognition to obtain the number to be verified, and the identification to be verified of the object in the verification recognition image is extracted according to OpenCV; When it is determined that the temporary number is consistent with the number to be verified, and the temporary identifier is consistent with the identifier to be verified, a temporary compliance result is generated; When it is determined that the temporary number is inconsistent with the number to be verified, or the temporary identifier is inconsistent with the identifier to be verified, a temporary violation result is generated; Obtaining a temporary verification result according to the temporary compliance result and the temporary violation result; The configuring a restricted area on the collection interface of the collection device corresponding to the door lock end based on the temporary verification result includes: When it is determined that the temporary verification result is a temporary compliance result, the corresponding temporary number is used as the dispatch number, and the person corresponding to the dispatch number is used as the temporary authorized person; Based on the ratio of the temporary volume and the reference volume of the dispatch number, a proportion coefficient is obtained, and the restricted distance is obtained according to the product of the proportion coefficient and the reference distance; When it is determined that the acquisition interface of the acquisition device corresponding to the door lock end has a threshold pixel value, the threshold pixel points in the acquisition interface are determined based on the threshold pixel value, and the adjacent threshold pixel points are counted to obtain a threshold pixel point set; Based on OpenCV, the shape of the threshold pixel set is obtained to obtain a threshold rectangular frame, and the lower border line of the threshold rectangular frame is extracted; Determine the opening direction of the door lock end, and perform positive translation on the lower frame line based on the opening direction and the limiting distance to obtain a limiting frame line; Connecting the end points on the same side of the lower border line and the limiting border line to generate a restricted area in the acquisition interface; The digital-based visual door lock control method further includes: Obtain the side length of the lower border line as the rotation radius, and obtain the rotation direction of the door lock end; When it is determined that the rotation direction is counterclockwise, the right end point of the rotation radius is used as the rotation center, and a rotation area is constructed based on the rotation center and the rotation radius; When it is determined that the rotation direction is clockwise, the left end point of the rotation radius is used as the rotation center, and a rotation area is constructed based on the rotation center and the rotation radius; According to the intersection of the rotating area and the restricted area, a prohibited area is obtained and sent to the authorization terminal corresponding to the temporary authorized person.
2. The method according to claim 1, characterized in that When it is determined that the multiple identity information includes information of fixed authorized personnel in a preset authority library, obtaining the subject personnel in the multiple identity information, and verifying the number of personnel in the identity recognition image based on the preset standard number of the subject personnel to obtain the number verification result, including: Retrieving a preset authority library corresponding to the door lock end, wherein the preset authority library has a one-to-one correspondence between fixed authorized personnel and authorization levels; When it is determined that the multiple identity information includes a fixed authorized person in the preset authority library, the fixed authorized person corresponding to the corresponding identity information is used as a candidate person, and the authorization level of each candidate person in the preset authority library is retrieved as the candidate level; Selecting a candidate corresponding to the maximum candidate level as the main person, obtaining a preset standard number of people corresponding to the authorization level of the main person, the authorization level having a corresponding preset standard number of people and action verification quantity; Identify the number of persons in the identity recognition image, and generate a number compliance result when it is determined that the number of persons is less than or equal to the preset standard number of persons; When it is determined that the number of people is greater than the preset standard number, a number violation result is generated, and a number verification result is obtained based on the number compliance result and the number violation result.
3. The method according to claim 2, characterized in that The method of acquiring a subject verification sequence corresponding to the subject person according to the number verification result and broadcasting it, and controlling the collection device at the door lock end to collect the subject action sequence of the subject person based on a preset time length, includes: When it is determined that the number verification result is a number compliance result, the number of action verifications corresponding to the authorization level of the subject person is obtained; Retrieving a demonstration action library, randomly selecting demonstration actions in the demonstration action library based on the number of action verifications, obtaining a subject verification sequence corresponding to the subject person, and broadcasting the demonstration actions in the subject verification sequence; Based on the preset time length, the collection device at the door lock end is controlled to collect the main action sequence of the main person.
4. The method according to claim 3, characterized in that The subject action sequence is verified based on the subject verification sequence to obtain an identity verification result, and a door lock control instruction is generated according to the identity verification result and sent to the door lock end, including: When it is determined that the subject verification sequence is consistent with the subject action sequence, an identity compliance result is obtained; When it is determined that the subject verification sequence is inconsistent with the subject action sequence, an identity violation result is obtained; An identity verification result is obtained according to the identity compliance result and the identity violation result. When it is determined that the identity verification result is an identity compliance result, a door lock control instruction is generated and sent to the door lock end.
5. The method according to claim 1, characterized in that The acquisition device controlling the door lock end acquires the position judgment image of the temporary authorized person in real time, and generates warning information according to the position relationship between the restricted area in the position judgment image and the temporary position of the temporary authorized person and sends it to the authorization end corresponding to the temporary authorized person, including: Controlling the acquisition device at the door lock end to acquire the position determination image of the temporarily authorized person in real time, and determining the temporary position of the temporarily authorized person in the position determination image; When it is determined that the temporary location is not within the restricted area in the location judgment image, a warning message is generated and sent to the authorization terminal corresponding to the temporary authorization person.
6. A digital visual door lock control system, characterized in that: include: An identification module, used to receive the identity identification information sent by the door lock end, control the acquisition device of the door lock end to collect the identity identification image based on the identity identification information, perform facial recognition on the identity identification image, and obtain multiple identity information; A verification module, configured to obtain the subject persons in the multiple identity information when it is determined that the multiple identity information contains information of fixed authorized persons in a preset authority library, and verify the number of persons in the identity recognition image based on a preset standard number of the subject persons to obtain a number verification result; A broadcast module, used for acquiring a subject verification sequence corresponding to the subject person according to the number verification result and broadcasting it, and controlling the collection device at the door lock end to collect the subject action sequence of the subject person based on a preset time length; A sending module, used to verify the subject action sequence based on the subject verification sequence, obtain an identity verification result, generate a door lock control instruction according to the identity verification result and send it to the door lock end; The digital-based visual door lock control system is also used to: When it is determined that none of the multiple identity information is a fixed authorized person in the preset authority library, a customized identification strategy is called to identify the temporary authorized person to obtain a temporary verification result; Based on the temporary verification result, a restricted area is configured on the collection interface of the collection device corresponding to the door lock end; The acquisition device at the door lock end is controlled to acquire the position judgment image of the temporary authorized person in real time, and generate warning information according to the position relationship between the restricted area in the position judgment image and the temporary position of the temporary authorized person, and send it to the authorization end corresponding to the temporary authorized person; When it is determined that none of the multiple identity information is a fixed authorized person in the preset authority library, a customized identification strategy is called to identify the temporary authorized person to obtain a temporary verification result, including: When it is determined that none of the multiple identity information is a fixed authorized person in the preset authority library, a customized authority library corresponding to the door lock end is retrieved, the customized authority library has multiple temporary numbers, and the temporary numbers have corresponding temporary identifiers and temporary volumes; The corresponding identity recognition image is used as a verification recognition image, the serial number in the verification recognition image is recognized based on OCR text recognition to obtain the number to be verified, and the identification to be verified of the object in the verification recognition image is extracted according to OpenCV; When it is determined that the temporary number is consistent with the number to be verified, and the temporary identifier is consistent with the identifier to be verified, a temporary compliance result is generated; When it is determined that the temporary number is inconsistent with the number to be verified, or the temporary identifier is inconsistent with the identifier to be verified, a temporary violation result is generated; Obtaining a temporary verification result according to the temporary compliance result and the temporary violation result; The configuring a restricted area on the collection interface of the collection device corresponding to the door lock end based on the temporary verification result includes: When it is determined that the temporary verification result is a temporary compliance result, the corresponding temporary number is used as the dispatch number, and the person corresponding to the dispatch number is used as the temporary authorized person; Based on the ratio of the temporary volume and the reference volume of the dispatch number, a proportion coefficient is obtained, and the restricted distance is obtained according to the product of the proportion coefficient and the reference distance; When it is determined that the acquisition interface of the acquisition device corresponding to the door lock end has a threshold pixel value, the threshold pixel points in the acquisition interface are determined based on the threshold pixel value, and the adjacent threshold pixel points are counted to obtain a threshold pixel point set; Based on OpenCV, the shape of the threshold pixel set is obtained to obtain a threshold rectangular frame, and the lower border line of the threshold rectangular frame is extracted; Determine the opening direction of the door lock end, and perform positive translation on the lower frame line based on the opening direction and the limiting distance to obtain a limiting frame line; Connecting the end points on the same side of the lower border line and the limiting border line to generate a restricted area in the acquisition interface; The digital-based visual door lock control system is also used to: Obtain the side length of the lower border line as the rotation radius, and obtain the rotation direction of the door lock end; When it is determined that the rotation direction is counterclockwise, the right end point of the rotation radius is used as the rotation center, and a rotation area is constructed based on the rotation center and the rotation radius; When it is determined that the rotation direction is clockwise, the left end point of the rotation radius is used as the rotation center, and a rotation area is constructed based on the rotation center and the rotation radius; According to the intersection of the rotating area and the restricted area, a prohibited area is obtained and sent to the authorization terminal corresponding to the temporary authorized person.
