CN111431699A - Method, device and system for quickly validating face authentication function - Google Patents

Method, device and system for quickly validating face authentication function Download PDF

Info

Publication number
CN111431699A
CN111431699A CN201910931339.6A CN201910931339A CN111431699A CN 111431699 A CN111431699 A CN 111431699A CN 201910931339 A CN201910931339 A CN 201910931339A CN 111431699 A CN111431699 A CN 111431699A
Authority
CN
China
Prior art keywords
data
face
storage
personnel
management platform
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910931339.6A
Other languages
Chinese (zh)
Inventor
王洪帅
吕刚
许林
周阿雷
刘陈林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201910931339.6A priority Critical patent/CN111431699A/en
Publication of CN111431699A publication Critical patent/CN111431699A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0861Network architectures or network communication protocols for network security for authentication of entities using biometrical features, e.g. fingerprint, retina-scan
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0894Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage

Abstract

The embodiment of the invention discloses a method, a device and a system for quickly validating a face authentication function, relates to the field of security and protection, and solves the problem that in the prior art, the face authentication function of a face access control device takes a long time to validate. The method comprises the following steps: acquiring personnel authority data and face modeling data issued by a management platform; writing the personnel authority data and the face modeling data into a memory, wherein the personnel authority data and the face modeling data in the memory are used for executing face authentication; and sending a message to the management platform indicating that the face authentication can be performed. The invention can be applied to the deployment of face access control equipment.

Description

Method, device and system for quickly validating face authentication function
Technical Field
The invention relates to the field of security and protection, in particular to a method, a device and a system for quickly validating a face authentication function.
Background
In order to enable the face access control device to execute face authentication, face authentication data needs to be successfully issued to the face access control device, so that data required for executing face authentication is stored in the face access control device. At present, the following two schemes for issuing face authentication data exist: the management platform sends each group of personnel permission data and a face picture to face access control equipment one by one, the face access control equipment models the face picture to obtain face modeling data, the personnel permission data, the face picture and the face modeling data are stored in a local database after the face modeling is successful, the management platform is informed, and the management platform continues to send the next group of personnel permission data and the face picture; and secondly, the management platform sends each group of the personnel permission data, the face picture and the face modeling data to the face access control equipment one by one, the face access control equipment directly stores the personnel permission data, the face picture and the face modeling data into a local database and returns a storage result to the management platform, and the management platform continues to send the next group of the personnel permission data, the face picture and the face modeling data.
In the first scheme, the face access control equipment needs to model face pictures one by one to obtain face modeling data, and all data required for executing face authentication can be stored in the face access control equipment for a long time; in the second scheme, although the face access control device does not need to model the face picture, the time required for storing the face picture in the local database is long, and the time consumed for issuing all face authentication data to the face access control device is long. Particularly, under the condition that the number of people is large and the data required by executing the face authentication is large, for example, the face access control equipment is deployed for the first time or a large amount of face authentication data needs to be issued to the face access control equipment due to frequent and large-amount flow of people, the two schemes cause that the data required by executing the face authentication stored in the face access control equipment consumes a lot of time, so that the face authentication function of the face access control equipment cannot be enabled to take effect quickly.
Disclosure of Invention
The embodiment of the invention discloses a method, a device, a system, electronic equipment, a computer storage medium and a computer program product for quickly validating a face authentication function, which are used for reducing the time required by the face authentication function.
In order to achieve the above object, the embodiment of the present invention discloses a method for quickly validating a face authentication function, wherein the method comprises:
acquiring personnel authority data and face modeling data issued by a management platform;
writing the personnel authority data and the face modeling data into a memory, wherein the personnel authority data and the face modeling data in the memory are used for executing face authentication;
and sending a message to the management platform indicating that the face authentication can be performed.
In order to achieve the above object, the embodiment of the present invention discloses a device for quickly validating a face authentication function, which comprises:
the acquisition module is used for acquiring personnel permission data and face modeling data issued by the management platform;
the writing module is used for writing the personnel authority data and the face modeling data into a memory, and the personnel authority data and the face modeling data in the memory are used for executing face authentication;
and the sending module is used for sending a message indicating that the face authentication can be executed to the management platform.
In order to achieve the above object, the embodiment of the present invention discloses a system for quickly validating a face authentication function, which comprises:
the management platform is used for issuing personnel authority data and face modeling data to the equipment; the method comprises the steps of obtaining a message which indicates that face authentication can be performed;
the equipment is used for acquiring the personnel authority data and the face modeling data, and writing the personnel authority data and the face modeling data into a memory, wherein the personnel authority data and the face modeling data in the memory are used for executing face authentication; and after the personnel authority data and the face modeling data are successfully written into the memory, sending a message indicating that face authentication can be executed to the management platform.
In order to achieve the above object, an embodiment of the present invention further discloses an electronic device, which includes a processor and a memory, wherein,
a memory for storing a computer program;
the processor is used for realizing the steps of the method for quickly validating the face authentication function provided by the embodiment of the invention when the program stored in the memory is executed.
In order to achieve the above object, the embodiment of the present invention further discloses a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps of the method for quickly validating the face authentication function provided by the embodiment of the present invention are implemented.
In order to achieve the above object, the embodiment of the present invention further discloses a computer program product, when the computer program product runs on a computer, the computer executes the steps of implementing the method for quickly validating the face authentication function provided by the embodiment of the present invention.
The embodiment of the invention provides a method, a device, a system, electronic equipment, a computer storage medium and a computer program product for quickly validating a face authentication function, after acquiring the personnel permission data and the face modeling data issued by the management platform, writing the personnel permission data and the face modeling data into a memory, after the memory is successfully written, sending a message indicating that the face authentication can be executed to a management platform, since the process of writing the personnel permission data and the face modeling data into the memory is time-consuming, after the personnel authority data and the face modeling data are successfully written into the memory, the personnel authority data and the face modeling data in the memory can be used for executing face authentication, namely face comparison and authority authentication can be carried out at the moment, so that the time length required for the face authentication function to take effect is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for quickly validating a face authentication function according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of another method for quickly validating a face authentication function according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of another method for quickly validating a face authentication function according to an embodiment of the present invention;
fig. 4 is a schematic flow chart of another method for quickly validating a face authentication function according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of a method for quickly validating a face authentication function according to an embodiment of the present invention;
fig. 6 is a schematic flow chart of a method for quickly validating a face authentication function according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a fast human face authentication function validating apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another fast human face authentication function validating apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another fast human face authentication function validating apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a system for quickly validating a face authentication function according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of another fast human face authentication function validating system according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of another fast human face authentication function validating system according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic flow chart of a method for quickly validating a face authentication function according to an embodiment of the present invention, where the method includes:
s101: and the management platform issues the personnel permission data and the face modeling data to the equipment.
And when new personnel permission data and new face modeling data need to be deployed to the equipment, the management platform issues the personnel permission data and the face modeling data to the equipment. It should be noted that the issuing process may be to directly send the person permission data and the face modeling data to the device through the management platform, or to generate a corresponding download address through the storage component after respectively packaging the person permission data and the face modeling data through the management platform, and send the download address to the device, and the device downloads and acquires the person permission data and the face modeling data according to the download address.
The equipment can be face access control equipment and can also be other equipment which needs to carry out personnel authority management through face comparison. The face modeling data can be one or more pieces of face modeling data, and the face modeling data comprises a face template which is generated according to a face modeling algorithm for a face picture of a person and is used for comparing the faces of the person; the face modeling data may also include corresponding person identifiers. The personnel permission data can be one or more pieces of personnel permission data, the personnel permission data comprises personnel permission information, and the personnel permission information can comprise time period information representing the permission owned by a person, for example, the personnel permission data can represent that the person A has the authentication passing permission at 9 to 17 points per day; the personnel authority information can also comprise an authority authentication mode, for example, the required authentication mode for passing the authentication of the personnel A is that the card swiping and the face passing are simultaneously authenticated, and the required authentication mode for passing the authentication of the personnel B is that only the face passing is authenticated; the personnel permission data can also comprise corresponding personnel identification at the same time. It should be noted that, under the condition that the personnel permission data and the face modeling data do not contain corresponding personnel identifiers, the personnel permission data and the face modeling data can be in one-to-one correspondence according to the arrangement sequence; and under the condition that the personnel permission data and the face modeling data contain corresponding personnel identifications, the personnel permission data and the face modeling data can be in one-to-one correspondence through the personnel identifications.
S102: the equipment acquires the personnel permission data and the face modeling data.
S103: and the equipment writes the personnel authority data and the face modeling data into a memory, and the personnel authority data and the face modeling data in the memory are used for executing face authentication.
Therefore, after the personnel authority data and the face modeling data are successfully written into the memory, the equipment can carry out face comparison and authority authentication on the personnel, namely face authentication can be carried out, and the personnel authority data and the face modeling data in the memory are used for carrying out the face authentication. Compared with the prior art, in the scheme that each group of personnel permission data, a face picture and face modeling data are written into a local database one by one, or the group of personnel permission data, the face picture and the face modeling data are written into the local database after the face modeling data are generated one by one according to each group of face pictures, the fact that the personnel permission data, the face picture and the face modeling data are written into the local database is mainly that the personnel permission data, the face picture and the face modeling data are stored in equipment after the equipment is restarted, the face picture is mainly used for interface display, the effective time of the face authentication function of the equipment is considered to be concerned by users, and particularly the personnel permission data and the face modeling data are written into a memory after the personnel permission data and the face modeling data are obtained in a concert venue, a large enterprise with numerous personnel and high requirements on the effective time of the face authentication function of the equipment, because the face modeling data is not required to be generated according to the face picture through equipment, the face picture is not required to be written, and the time required for the process of writing the personnel authority data and the face modeling data into the memory is far shorter than the time required for writing the personnel authority data and the face modeling data into the local database, the time required for the face authentication function of the equipment to take effect is reduced.
S104: and after the personnel authority data and the face modeling data are successfully written into the memory, the equipment sends a message indicating that the face authentication can be executed to a management platform.
The message indicating that the face authentication can be executed may be a signal indicating that writing into the memory is successful, may also be a signal indicating that the equipment is successfully deployed, and may also be a signal prompting that the face authentication can be executed, so that a manager can know that the face authentication function of the equipment is valid after receiving the message on the management platform. Preferably, after the process of writing the data into the memory is successful, the device may further display a prompt message, such as "face authentication can be performed", on the device interface to prompt the user that the face authentication can be performed currently.
S105: the management platform acquires a message indicating that face authentication can be performed.
Preferably, after the management platform acquires the message indicating that the face authentication can be performed, the management platform may further display a prompt message such as "face authentication can be performed" on an interface to inform a manager that the face authentication can be performed currently.
The embodiment of the invention provides a method for quickly validating a face authentication function, wherein after acquiring personnel permission data and face modeling data issued by a management platform, the equipment writes the personnel permission data and the face modeling data into a memory, and after the personnel permission data and the face modeling data are successfully written into the memory, the equipment sends a message indicating that face authentication can be executed to the management platform.
Referring to fig. 2, fig. 2 is a schematic flow chart of another method for quickly validating a face authentication function according to an embodiment of the present invention, where the method includes:
s201: and the management platform sends the download address of the personnel permission data packaging file and the download address of the face modeling data packaging file to the equipment.
And when new personnel permission data and face modeling data need to be deployed to the equipment, the management platform sends the download address of the personnel permission data packaging file and the download address of the face modeling data packaging file to the equipment.
Specifically, the personnel permission data may include one or more pieces of personnel permission data, the face modeling data may include one or more pieces of face modeling data, the management platform may package the personnel permission data and the face modeling data into the personnel permission data package file and the face modeling data package file, respectively, the files may be in a JSON message format (JavaScript Object notification, a lightweight data exchange format), the personnel permission data package file and the face modeling data package file may be stored locally on the management platform, or may be sent to a server by the management platform for storage, and the download address may be UR L (Uniform Resource L adapter) generated by a storage component according to a storage address.
S202: the equipment acquires a download address of a personnel permission data packed file and a download address of a face modeling data packed file issued by a management platform, and downloads the personnel permission data packed file and the face modeling data packed file respectively according to the download address of the personnel permission data packed file and the download address of the face modeling data packed file.
S203: and the equipment respectively reads the personnel permission data and the face modeling data from the personnel permission data packaging file and the face modeling data packaging file.
S204: and the equipment writes the personnel authority data and the face modeling data into a memory, and the personnel authority data and the face modeling data in the memory are used for executing face authentication.
The detailed description of step S204 is referred to in step S103, and the present invention is not described herein again.
S205: and after the personnel authority data and the face modeling data are successfully written into the memory, the equipment sends a message indicating that the face authentication can be executed to a management platform.
The detailed description of step S205 is shown in step S104, and the present invention is not described herein again.
S206: the equipment stores the personnel permission data and the face modeling data in the memory to a local database, and reserves the personnel permission data and the face modeling data in the memory.
After the personnel permission data and the face modeling data are successfully written into the memory, the personnel permission data and the face modeling data in the memory are stored in the local database, so that after the personnel permission data and the face modeling data are all successfully stored in the local database, even if the equipment is restarted, the equipment can read the personnel permission data and the face modeling data from the local database, face authentication can still be carried out, the personnel permission data and the face modeling data are not required to be issued by the management platform after each power-on, and network resource consumption is reduced. Preferably, the process of storing the person authority data and the face modeling data into the local database may be a batch process, so as to reduce the time for storing the person authority data and the face modeling data into the local database. Here, the person authority data and the face modeling data in the memory remain in the memory during the storing into the local database, so that the face authentication is performed while the storing into the local database is not affected.
It should be noted that, in the process of storing the face model data into the local database, there may be a failure in storing part of the person authority data and/or the face model data due to a power failure of the device, insufficient database capacity, and the like, and in the case of a storage failure, the device may record storage failure information corresponding to the person authority data and/or storage failure information corresponding to the face model data. The storage failure information may include a person identification; preferably, the storage failure information may include a person identifier and a failure data type; preferably, the storage failure information may include a person identifier, a failure data type, and a storage failure reason, for example, the face modeling data of person a fails to be stored due to insufficient database capacity, the face modeling data of person a includes a person identifier "a" of person a and a face template of person a, and the recorded storage failure information may be the person identifier: a, failure data type: face modeling data, storage failure reason: the database capacity is insufficient.
S207: and the management platform sends a storage progress query request about the storage progress stored in the local database of the equipment to the equipment according to a preset time interval.
And after acquiring the message indicating that the face authentication can be executed, the management platform starts to send a storage progress query request stored in the local database of the equipment to the equipment according to a preset time interval. It should be noted that, before the process of storing the data in the local database of the device is not queried, the management platform may always send the storage progress query request to the device according to a preset time interval.
S208: and the equipment sends the storage progress related information to the management platform under the condition of acquiring the storage progress query request.
Specifically, in a case where the process of storing the information into the device local database is not finished, that is, when the storage progress is less than 100%, the information related to the storage progress includes a current storage progress, that is, a ratio of the number of processed information pieces to the number of all information pieces to be processed; and under the condition that the process of storing to the local database of the equipment is finished, the information related to the storage progress comprises information which represents whether the storage failure condition exists in the process of storing to the local database. Preferably, the information related to the storage progress may include the current storage progress, the total number of pieces processed in the process of storing to the device local database, the number of failed pieces, and the number of successful pieces, and it can be understood that the case where the number of failed pieces is not zero indicates that the storage failure condition exists, and the case where the number of failed pieces is zero indicates that the storage failure condition does not exist.
S209: the management platform acquires the storage progress related information, and executes steps S210 to S212 when the storage progress related information comprises information indicating that a storage failure condition exists in the process of storing the storage progress related information into the equipment local database; when the information related to the storage progress comprises information indicating that no storage failure condition exists in the process of storing the information to the equipment local database, executing steps S213 to S214; otherwise, the process returns to step S207.
When the process of storing to the local database in the device is finished, the storage progress related information acquired by the management platform may include information indicating whether a storage failure condition exists in the process of storing to the device local database, and when the storage progress related information includes information indicating that the storage failure condition exists, steps S210 to S212 are executed; and when the information related to the storage progress comprises information indicating that no storage failure condition exists, namely the personnel permission data and the face modeling data are successfully stored in the equipment database, executing the steps S213 to S214. When the process of storing the data in the local database in the device is not finished, the storage progress related information acquired by the management platform may include a current storage progress, where the current storage progress may indicate that the process of storing the data in the local database is not finished by the device, and the management platform continues to send the storage progress query request to the device according to a preset time interval, that is, returns to perform step S207.
S210: and the management platform sends a storage failure information inquiry request to the equipment.
And when the management platform acquires the storage progress related information which comprises information indicating that the storage failure condition exists, sending a storage failure information query request to the equipment. The storage failure information query request may be a request for batch query of storage failure information.
S211: and the equipment sends the storage failure information to the management platform.
S212: and the management platform acquires the storage failure information and executes corresponding operation according to the storage failure information.
Specifically, under the condition that the storage failure information includes the person identifier, the management platform may re-issue the person authority data and the face modeling data corresponding to the person identifier in the storage failure information as information that needs to be re-issued by the management platform. Preferably, the storage failure information may include a personnel identifier and a failure data type, and thus, the management platform may re-issue the failure data type corresponding to the personnel identifier in the storage failure information as the information that the management platform needs to re-issue. Preferably, the storage failure information further includes a person identifier, a failure data type, and a storage failure reason, so that the management platform can perform corresponding operations more specifically, for example: under the condition that the storage failure reason is that the capacity of the database is insufficient, the management platform can firstly issue a command for deleting redundant information in the local database of the equipment, and then, the personnel authority data and/or the face modeling data which are failed to be stored are/is taken as information which needs to be issued again by the management platform; under the condition that the storage failure reason is a format error, the management platform can recheck the personnel authority data and/or the face modeling data which are failed to be stored, and re-issue the correct personnel authority data and/or the face modeling data which are failed to be stored as the information which needs to be re-issued by the management platform; when the reason of the storage failure is the read-write failure, for example, the read-write failure is caused by the power failure of the device, the management platform may re-issue the personnel right data and/or the face modeling data which are stored in the failure as the information that needs to be re-issued by the management platform.
It should be noted that, after the device is restarted in a power failure, the device may set the storage progress to 100%, and set the personnel permission data and/or the face modeling data, which are not stored in the local database from the memory at the time of the power failure of the device, as storage failures, so that after the device is restarted in a power failure, the management platform continues to send the storage progress query request to the device according to a preset time interval, and the device may immediately send storage progress related information including information indicating that a storage failure condition exists to the management platform.
The steps S201 to S209 may be referred to in the process that the management platform re-issues the information that needs to be re-issued to the device, and the device re-acquires, writes, and stores the personnel permission data and/or the face modeling data that fails to be stored in the memory into the local database.
S213: and the management platform issues the face picture data to the equipment.
And when the management platform acquires the storage progress related information which comprises information indicating that no storage failure condition exists, the management platform issues the face picture data to the equipment. Here, the management platform may send the face picture data to the device one by one.
The face picture data may include a face picture, and may further include a person identifier corresponding to the face picture. Under the condition that the face picture data, the personnel permission data and the face modeling data do not contain corresponding personnel identifications, the face picture data, the personnel permission data and the face modeling data can be in one-to-one correspondence according to an arrangement sequence; and under the condition that the face picture data, the personnel permission data and the face modeling data contain corresponding personnel identifications, the face picture data, the personnel permission data and the face modeling data can be in one-to-one correspondence through the personnel identifications.
S214: the equipment acquires the face picture data issued by the management platform and stores the face picture data to a local database.
The device may acquire and store the face image data item by item, and specifically, the device may acquire and store each piece of face image data in a local database, and then send the acquired and stored face image data to the management platform, and the management platform may issue the next piece of face image data to the device after receiving a signal that the previous piece of face image data has been successfully stored in the local database of the device, until the device acquires all pieces of face image data and stores all pieces of face image data in the local database. After all the face picture data are successfully stored in the local database, the interface can synchronously display the corresponding face picture while the equipment performs face authentication, so that the user experience is improved.
The embodiment of the invention provides another method for quickly validating a face authentication function, which is characterized in that according to the priority paid attention by a user in an actual use scene, when new personnel authority data and face modeling data need to be deployed to the equipment, the deployment process of the equipment is divided into three stages: firstly, after acquiring personnel permission data and face modeling data issued by a management platform, the equipment writes the personnel permission data and the face modeling data into a memory, and because the time consumption of the process of writing into the memory is short, and after the personnel permission data and the face modeling data are written into the memory, the equipment can carry out face comparison and permission authentication, namely face authentication, thereby reducing the time required for the face authentication function of the equipment to take effect; then, the equipment also stores the personnel authority data and the face modeling data in the memory into a local database, so that the personnel authority data and the face modeling data are stored in the local database of the equipment after the equipment is restarted, the face authentication can still be carried out, the personnel authority data and the face modeling data do not need to be issued by the management platform after each power-on, the network resource consumption is reduced, and under the condition that the personnel authority data and the face modeling data are stored into the local database unsuccessfully, the equipment can also send storage failure information to the management platform, so that the management platform can execute corresponding operation according to the storage failure information and resend the information needing to be resent, and finally the personnel authority data and the face modeling data can be completely and successfully stored into the local database of the equipment; and finally, the equipment acquires the face picture data issued by the management platform and stores the face picture data into a local database, so that the face picture can be displayed on an interface, and the user experience is improved.
Referring to fig. 3, fig. 3 is a schematic flow chart of another method for quickly validating a face authentication function according to an embodiment of the present invention, where the method includes:
s301: and the management platform issues the personnel permission data and the face modeling data to the equipment.
And when new personnel permission data and new face modeling data need to be deployed to the equipment, the management platform issues the personnel permission data and the face modeling data to the equipment. It should be noted that the issuing process may be to directly send the person permission data and the face modeling data to the device through the management platform, or to generate a corresponding download address through the storage component after respectively packaging the person permission data and the face modeling data through the management platform, and send the download address to the device, and the device downloads and acquires the person permission data and the face modeling data according to the download address, which may specifically refer to steps S201 to S203. For the detailed description of the device, the personnel permission data and the face modeling data, reference may be made to the description of the relevant part in step S101, and the description of the present invention is not repeated herein.
S302: the equipment acquires the personnel permission data and the face modeling data.
S303: and the equipment writes the personnel authority data and the face modeling data into a memory, and the personnel authority data and the face modeling data in the memory are used for executing face authentication.
The detailed description of step S303 is shown in step S103, and the present invention is not described herein again.
S304: and after the personnel authority data and the face modeling data are successfully written into the memory, the equipment sends a message indicating that the face authentication can be executed to a management platform.
The detailed description of step S304 is shown in step S104, and the present invention is not described herein again.
S305: the equipment stores the personnel permission data and the face modeling data in the memory to a local database, and reserves the personnel permission data and the face modeling data in the memory.
After the personnel permission data and the face modeling data are successfully written into the memory, the equipment stores the personnel permission data and the face modeling data in the memory into a local database, so that after the personnel permission data and the face modeling data are all successfully stored into the local database, even if the equipment is restarted, the personnel permission data and the face modeling data can be read from the local database, the face authentication can still be carried out, the personnel permission data and the face modeling data are not required to be issued by the management platform after each power-on, and the network resource consumption is reduced. Preferably, the process of storing the person authority data and the face modeling data into the local database may be a batch process, so as to reduce the time for storing the person authority data and the face modeling data into the local database. Here, the person authority data and the face modeling data in the memory remain in the memory during the storing into the local database, so that the face authentication is performed while the storing into the local database is not affected.
S306: and the management platform sends a storage progress query request about the storage progress stored in the local database of the equipment to the equipment according to a preset time interval.
The detailed description of step S306 is shown in step S207, and the present invention is not described herein again.
S307: and the equipment sends the storage progress related information to the management platform under the condition of acquiring the storage progress query request.
And after the device acquires the storage progress query request, sending storage progress related information to the management platform. The storage progress related information may include a current storage progress.
S308: the management platform acquires relevant information of storage progress, and executes steps S309 to S310 when the relevant information of storage progress indicates that the process of storing to the local database of the equipment is finished; otherwise, the step S306 is executed back.
S309: and the management platform issues the face picture data to the equipment.
The face picture data may include a face picture, and may further include a person identifier corresponding to the face picture. Under the condition that the face picture data, the personnel permission data and the face modeling data do not contain corresponding personnel identifications, the face picture data, the personnel permission data and the face modeling data can be in one-to-one correspondence according to an arrangement sequence; and under the condition that the face picture data, the personnel permission data and the face modeling data contain corresponding personnel identifications, the face picture data, the personnel permission data and the face modeling data can be in one-to-one correspondence through the personnel identifications.
S310: the equipment acquires the face picture data issued by the management platform and stores the face picture data to a local database.
The detailed description of step S310 is shown in step S214, and the present invention is not described herein again.
The embodiment of the invention provides another method for quickly validating a face authentication function, wherein after acquiring personnel permission data and face modeling data issued by a management platform, equipment firstly writes the personnel permission data and the face modeling data into a memory, and because the time consumption of the process of writing into the memory is short, and after the personnel permission data and the face modeling data are written into the memory, the equipment can carry out face comparison and permission authentication, namely face authentication, so that the time required for the face authentication function of the equipment to take effect is reduced; then, the equipment also stores the personnel authority data and the face modeling data in the memory to a local database, so that the face authentication can still be carried out after the equipment is restarted; and finally, the equipment acquires the face picture data issued by the management platform and stores the face picture data into a local database, so that the face picture can be displayed on an interface, and the user experience is improved.
Referring to fig. 4, fig. 4 is a schematic flowchart of another method for quickly validating a face authentication function according to an embodiment of the present invention, where the method is applicable to a device side, and the method includes:
s401: and acquiring personnel authority data and face modeling data issued by the management platform.
When new personnel permission data and new face modeling data need to be deployed to the equipment, the equipment acquires the personnel permission data and the face modeling data issued by a management platform.
For the detailed description of the device, the personnel permission data and the face modeling data, reference may be made to the description of the relevant part in step S101, and the description of the present invention is not repeated herein.
S402: and writing the personnel authority data and the face modeling data into a memory, wherein the personnel authority data and the face modeling data in the memory are used for executing face authentication.
The detailed description of step S402 is shown in step S103, and the present invention is not described herein again.
S403: and sending a message to the management platform indicating that the face authentication can be performed.
After the personnel authority data and the face modeling data are successfully written into the memory, the device sends a message indicating that the face authentication can be executed to the management platform, so that a manager can know that the face authentication function of the device is effective after the management platform receives the message. Here, the message indicating that the face authentication can be performed may be a signal indicating that writing into the memory is successful, may also be a signal indicating that the device deployment is successful, and may also be a signal prompting that the face authentication can be performed. Preferably, after the device writes the personnel permission data and the face modeling data into the memory successfully, prompt information such as "face authentication can be performed" can be displayed on a device interface, so as to inform a user that the face authentication can be performed currently.
The embodiment of the invention provides a method for quickly validating a face authentication function, which is characterized in that after personnel permission data and face modeling data issued by a management platform are acquired, the personnel permission data and the face modeling data are written into a memory, because the time consumption of the process of writing the personnel permission data and the face modeling data into the memory is short, and after the personnel permission data and the face modeling data are successfully written into the memory, the personnel permission data and the face modeling data in the memory can be used for executing face authentication, namely, face comparison and permission authentication can be carried out at the moment, so that the time required for validating the face authentication function is reduced.
Referring to fig. 5, fig. 5 is a schematic flowchart of a method for quickly validating a face authentication function according to an embodiment of the present invention, where the method is applicable to a device side, and the method includes:
s501: and acquiring a download address of the personnel authority data packaging file and a download address of the face modeling data packaging file which are issued by the management platform.
The management platform can pack the personnel permission data and the face modeling data into the personnel permission data packed file and the face modeling data packed file respectively, the file format can be a JSON message format, the personnel permission data packed file and the face modeling data packed file can be stored locally on the management platform or can be sent to a server by the management platform, the download address can be UR L generated by a storage component according to the storage address, the personnel permission data packed file and the face modeling data packed file can be obtained while the download address of the personnel permission data packed file is obtained, the download address of the face modeling data packed file can be obtained while the download address of the personnel permission data packed file is obtained, and the face modeling data packed data can be used for executing a corresponding download instruction of the personnel permission data and the face modeling data packed data, so that the step S of the equipment can be executed according to the download instruction and the face modeling data.
S502: and respectively downloading the personnel authority data packaging file and the face modeling data packaging file according to the download address of the personnel authority data packaging file and the download address of the face modeling data packaging file.
S503: and respectively reading the personnel authority data and the face modeling data from the personnel authority data packaging file and the face modeling data packaging file.
S504: and writing the personnel authority data and the face modeling data into a memory, wherein the personnel authority data and the face modeling data in the memory are used for executing face authentication.
The detailed description of step S504 is shown in step S103, and the present invention is not described herein again.
S505: and sending a message to the management platform indicating that the face authentication can be performed.
The detailed description of step S505 is shown in step S403, and the present invention is not described herein again.
S506: and storing the personnel permission data and the face modeling data in the memory into a local database, reserving the personnel permission data and the face modeling data in the memory, and acquiring a storage progress query request at preset time intervals in the process of storing the personnel permission data and the face modeling data in the memory into the local database.
For a detailed description about storing the personnel permission data and the face modeling data in the memory into the local database, reference may be made to the related description in step S206, and details of the present invention are not repeated herein.
Here, in the process of storing the device in the local database, the device may also obtain a storage progress query request at preset time intervals. The storage progress query request is a query request which is sent to the equipment by the management platform according to a preset time interval and used for querying the progress stored in the local database of the equipment after the management platform acquires a message which is sent by the equipment and indicates that the face authentication can be executed.
S507: sending storage progress related information to the management platform under the condition that the storage progress query request is acquired, and executing steps S508 to S509 when the storage progress related information comprises information indicating that storage failure exists in the process of storing the storage progress related information to a local database; when the information related to the storage progress includes information indicating that no storage failure condition exists in the process of storing the information into the local database, executing steps S510 to S511; otherwise, the process returns to step S506.
And after the device acquires the storage progress query request, sending storage progress related information to the management platform. Specifically, in a case where the process of storing to the local database has ended, the storage progress related information may include information indicating whether there is a storage failure condition in the process of storing to the local database. Preferably, the information related to the storage progress may include the current storage progress, the total number of pieces processed in the process of storing to the local database, the number of failed pieces, and the number of successful pieces, and it can be understood that the case where the number of failed pieces is not zero indicates that the storage failure condition exists, and the case where the number of failed pieces is zero indicates that the storage failure condition does not exist. When the information related to the storage progress includes information indicating that there is a storage failure condition, executing steps S508 to S509; and when the information related to the storage progress comprises information indicating that no storage failure condition exists, namely the personnel authority data and the face modeling data are successfully stored in the local database, executing the steps S510 to S511.
In a case where the process of storing to the local database is not finished, that is, the storage progress is less than 100%, the storage progress related information may include the current storage progress, that is, a ratio of the number of processed information pieces to the number of all information pieces to be processed. In this way, after sending the storage progress to the management platform, the management platform may know that the device has not finished the process of storing to the device local database, the management platform will continue to send the storage progress query request to the device according to a preset time interval, the device will continue to execute the process of storing to the local database, and obtain the storage progress query request again, that is, return to the execution step S506.
S508: and acquiring a storage failure information inquiry request.
After the storage progress related information including the information indicating that the storage failure condition exists in the process of storing the information into the local database is sent to the management platform, the management platform obtains the information indicating that the storage failure condition exists, and sends a storage failure information query request to the device, and the device obtains the storage failure information query request. The storage failure information query request may be a request for batch query of storage failure information.
S509: and sending the storage failure information to the management platform so that the management platform executes corresponding operation according to the storage failure information.
And after acquiring the storage failure information query request, the equipment sends the storage failure information to the management platform. Therefore, the management platform may execute a corresponding operation according to the storage failure information, specifically, refer to the relevant description in step S212, and it should be noted that after the device is restarted in a power failure, the storage progress is set to 100%, and the personnel permission data and/or the face modeling data that are not stored in the database from the memory at the time of the device power failure are both set to be failed in storage, so that after the device is restarted in a power failure, once the storage progress query request is obtained, the storage progress relevant information indicating that the information on the storage failure condition exists may be immediately sent to the management platform.
After the management platform re-issues the information to be re-issued, the device may refer to steps S501 to S507 to re-acquire, write in, and store the personnel permission data and/or the face modeling data that failed to be stored in the memory to the local database.
S510: and acquiring the face picture data issued by the management platform.
After the information related to the storage progress, which includes the information indicating that no storage failure condition exists in the process of storing the information to the local database, is sent to the management platform, the management platform acquires the information indicating that no storage failure condition exists, the face picture data is issued to the device, and the device acquires the face picture data. The management platform can send the face picture data to the device one by one, and the device can acquire the face picture data one by one. The detailed description of the face picture data can refer to the related description in step S213, and is not repeated herein.
S511: and storing the face picture data to a local database.
The detailed description of step S511 is shown in step S214, and the present invention is not described herein again.
The embodiment of the invention provides a method for quickly validating a face authentication function, wherein after acquiring personnel permission data and face modeling data issued by a management platform, equipment firstly writes the personnel permission data and the face modeling data into a memory, and because the time consumption of the process of writing into the memory is short, and after the personnel permission data and the face modeling data are written into the memory, the equipment can carry out face comparison and permission authentication, namely face authentication, so that the time required for the face authentication function of the equipment to take effect is reduced; then, the equipment also stores the personnel authority data and the face modeling data in the memory into a local database, so that the personnel authority data and the face modeling data are stored in the local database of the equipment after the equipment is restarted, the face authentication can still be carried out, the personnel authority data and the face modeling data do not need to be issued by the management platform after each power-on, the network resource consumption is reduced, and under the condition that the personnel authority data and the face modeling data are stored into the local database unsuccessfully, the equipment can also send storage failure information to the management platform, so that the management platform can execute corresponding operation according to the storage failure information and resend the information needing to be resent, and finally the personnel authority data and the face modeling data can be completely and successfully stored into the local database of the equipment; and finally, the equipment acquires the face picture data issued by the management platform and stores the face picture data into a local database, so that the face picture can be displayed on an interface, and the user experience is improved.
Referring to fig. 6, fig. 6 is a schematic flowchart of a method for quickly validating a face authentication function according to an embodiment of the present invention, where the method is applicable to a device side, and the method includes:
s601: and acquiring personnel authority data and face modeling data issued by the management platform.
When new personnel permission data and new face modeling data need to be deployed to the equipment, the equipment acquires the personnel permission data and the face modeling data issued by a management platform. Here, the person permission data and the face modeling data sent by the management platform may be directly acquired, or the person permission data and the face modeling data may be acquired by acquiring a download address of a person permission data package file and a download address of a face modeling data package file issued by the management platform, and acquiring the person permission data and the face modeling data according to the download addresses may refer to steps S501 to S503. For the detailed description of the device, the personnel permission data and the face modeling data, reference may be made to the description of the relevant part in step S101, and the description of the present invention is not repeated herein.
S602: and writing the personnel authority data and the face modeling data into a memory, wherein the personnel authority data and the face modeling data in the memory are used for executing face authentication.
The detailed description of step S602 is shown in step S103, and the present invention is not described herein again.
S603: and sending a message to the management platform indicating that the face authentication can be performed.
The detailed description of step S603 is shown in step S403, and the present invention is not described herein again.
S604: and storing the personnel permission data and the face modeling data in the memory to a local database, and reserving the personnel permission data and the face modeling data in the memory.
After the personnel permission data and the face modeling data are successfully written into the memory, the equipment stores the personnel permission data and the face modeling data in the memory into a local database, so that after the personnel permission data and the face modeling data are all successfully stored into the local database, even if the equipment is restarted, the personnel permission data and the face modeling data can be read from the local database, the face authentication can still be carried out, the personnel permission data and the face modeling data do not need to be issued by the management platform after each power-on, and the network resource consumption is reduced. Preferably, the process of storing the person authority data and the face modeling data into the local database may be a batch process, so as to reduce the time for storing the person authority data and the face modeling data into the local database. Here, the person authority data and the face modeling data in the memory remain in the memory during the storing into the local database, so that the face authentication is performed while the storing into the local database is not affected.
S605: and after the process of storing the image data in the local database is finished, acquiring the face image data issued by the management platform.
Here, the device may send a signal that the process of storing the personal permission data and the face modeling data in the local database is completed to a management platform after the process of storing the personal permission data and the face modeling data in the local database is completed, the management platform issues the face picture data to the device after acquiring the signal, and the device acquires the face picture data issued by the management platform; or after the management platform acquires the message indicating that the face authentication can be executed, the management platform sends a storage progress query request to the device according to a preset time interval to acquire storage progress related information, and when the management platform acquires the storage progress related information and includes information indicating that the process of storing the information to the device local database is finished, the management device issues face picture data to the device, and the device acquires the face picture data issued by the management platform.
The detailed description of the face picture data can refer to the related description in step S213, and is not repeated herein.
S606: and storing the face picture data to a local database.
The detailed description of step S606 is shown in step S214, and the present invention is not described herein again.
The embodiment of the invention provides a method for quickly validating a face authentication function, wherein after acquiring personnel permission data and face modeling data issued by a management platform, the equipment firstly writes the personnel permission data and the face modeling data into a memory, and because the time consumption of the process of writing into the memory is short, and after the personnel permission data and the face modeling data are written into the memory, the equipment can carry out face authentication, so that the time required for the face authentication function of the equipment to take effect is reduced; then, the equipment also stores the personnel authority data and the face modeling data in the memory into a local database, so that the personnel authority data and the face modeling data are stored in the local database of the equipment after the equipment is restarted, the face authentication can still be carried out, the personnel authority data and the face modeling data are not required to be issued by the management platform after each power-on, and the network resource consumption is reduced; and finally, the equipment acquires the face picture data issued by the management platform and stores the face picture data into a local database, so that the face picture can be displayed on an interface, and the user experience is improved.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a face modeling data issuing device according to an embodiment of the present invention, where the device includes:
an obtaining module 701, configured to obtain personnel permission data and face modeling data issued by a management platform;
a write-in module 702, configured to write the personnel permission data and the face modeling data into a memory, where the personnel permission data and the face modeling data in the memory are used for performing face authentication;
a sending module 703, configured to send a message indicating that face authentication can be performed to the management platform.
The embodiment of the invention provides a device for quickly validating a face authentication function, which is characterized in that after personnel permission data and face modeling data issued by a management platform are acquired, the personnel permission data and the face modeling data are written into a memory, because the time consumption of the process of writing the personnel permission data and the face modeling data into the memory is short, and after the personnel permission data and the face modeling data are successfully written into the memory, the personnel permission data and the face modeling data in the memory can be used for executing face authentication, namely, face comparison and permission authentication can be carried out at the moment, so that the time required for validating the face authentication function is reduced.
Referring to fig. 8, fig. 8 is a schematic structural diagram of another fast human face authentication function validating apparatus according to an embodiment of the present invention, where the apparatus includes:
an obtaining module 801, configured to obtain staff authority data and face modeling data issued by a management platform, where the staff authority data may include staff authorities and corresponding staff authority information, and the face modeling data may include the staff authorities and corresponding face templates; acquiring a storage progress query request about the storage to a local database; under the condition that storage failure exists in the process of storing the information into the local database, acquiring a storage failure information query request; and after the personnel permission data and the face modeling data are successfully stored in a local database, acquiring face picture data issued by a management platform, wherein the face picture data can comprise the personnel permission and a corresponding face picture.
A writing module 802, configured to write the personnel permission data and the face modeling data into a memory, where the personnel permission data and the face modeling data in the memory are used for performing face authentication.
The storage module 803 is configured to store the personnel permission data and the face modeling data in the memory into a local database after the personnel permission data and the face modeling data are written into the memory, where the personnel permission data and the face modeling data in the memory are still retained in the memory during the storage into the local database; and the face image data is stored in a local database after being acquired.
The recording module 804 is configured to record storage failure information corresponding to the storage-failed person authority data and/or storage failure information corresponding to the storage-failed face modeling data under the condition that storage failure occurs in the process of storing the face modeling data in the local database, where the storage failure information includes a person identifier.
A sending module 805, configured to send a message indicating that face authentication may be performed to the management platform; the system comprises a management platform, a storage progress query module and a storage progress query module, wherein the management platform is used for sending storage progress related information to the management platform under the condition of acquiring a storage progress query request, the storage progress related information comprises the current storage progress under the condition that the process of storing to a local database is not finished, and the storage progress related information comprises information which represents whether storage failure exists in the process of storing to the local database or not under the condition that the process of storing to the local database is finished; and sending the storage failure information to the management platform under the condition of acquiring the storage failure information inquiry request.
In an embodiment of the present invention, the obtaining module is further configured to obtain a download address of the personnel permission data package file and a download address of the face modeling data package file sent by the management platform; the system comprises a personnel authority data packaging file, a face modeling data packaging file, a download address of the personnel authority data packaging file and a download address of the face modeling data packaging file, wherein the personnel authority data packaging file and the face modeling data packaging file are used for downloading the personnel authority data packaging file and the face modeling data packaging file respectively; and the system is used for respectively reading the personnel authority data and the face modeling data from the personnel authority data packaging file and the face modeling data packaging file.
The embodiment of the invention provides another device for quickly validating a face authentication function, after acquiring personnel permission data and face modeling data issued by a management platform, equipment firstly writes the personnel permission data and the face modeling data into a memory, and because the time consumption of the process of writing into the memory is short, and after the personnel permission data and the face modeling data are written into the memory, the equipment can carry out face authentication, so that the time required for the face authentication function of the equipment to be validated is reduced; then, the equipment also stores the personnel authority data and the face modeling data in the memory into a local database, so that the personnel authority data and the face modeling data are stored in the local database of the equipment after the equipment is restarted, the face authentication can still be carried out, the personnel authority data and the face modeling data do not need to be issued by the management platform after each power-on, the network resource consumption is reduced, and under the condition that the personnel authority data and the face modeling data are stored into the local database unsuccessfully, the equipment can also send storage failure information to the management platform, so that the management platform can execute corresponding operation according to the storage failure information and resend the information needing to be resent, and finally the personnel authority data and the face modeling data can be completely and successfully stored into the local database of the equipment; and finally, the equipment acquires the face picture data issued by the management platform and stores the face picture data into a local database, so that the face picture can be displayed on an interface, and the user experience is improved.
Referring to fig. 9, fig. 9 is a schematic structural diagram of another fast human face authentication function validating apparatus according to an embodiment of the present invention, where the apparatus includes:
an obtaining module 901, configured to obtain personnel permission data and face modeling data issued by a management platform; and the face image data issued by the management platform is acquired after the process of storing the personnel permission data and the face modeling data into the local database is finished.
A writing module 902, configured to write the personnel permission data and the face modeling data into a memory, where the personnel permission data and the face modeling data in the memory are used for performing face authentication.
The storage module 903 is configured to store the personnel permission data and the face modeling data in the memory into a local database after the personnel permission data and the face modeling data are written into the memory, where the personnel permission data and the face modeling data in the memory are still retained in the memory during the storage into the local database; and the face image data is stored in a local database after being acquired.
A sending module 904, configured to send a message indicating that face authentication can be performed to the management platform.
In an embodiment of the present invention, the obtaining module is further configured to obtain a download address of the personnel permission data package file and a download address of the face modeling data package file sent by the management platform; the system comprises a personnel authority data packaging file, a face modeling data packaging file, a download address of the personnel authority data packaging file and a download address of the face modeling data packaging file, wherein the personnel authority data packaging file and the face modeling data packaging file are used for downloading the personnel authority data packaging file and the face modeling data packaging file respectively; and the system is used for respectively reading the personnel authority data and the face modeling data from the personnel authority data packaging file and the face modeling data packaging file.
The embodiment of the invention provides another device for quickly validating a face authentication function, after acquiring personnel permission data and face modeling data issued by a management platform, equipment firstly writes the personnel permission data and the face modeling data into a memory, and since the time consumption of the process of writing into the memory is short, and after the personnel permission data and the face modeling data are written into the memory, the equipment can carry out face authentication, so that the time required for the face authentication function of the equipment to be validated is reduced; then, the equipment also stores the personnel authority data and the face modeling data in the memory into a local database, so that the personnel authority data and the face modeling data are stored in the local database of the equipment after the equipment is restarted, the face authentication can still be carried out, the personnel authority data and the face modeling data are not required to be issued by the management platform after each power-on, and the network resource consumption is reduced; and finally, the equipment acquires the face picture data issued by the management platform and stores the face picture data into a local database, so that the face picture can be displayed on an interface, and the user experience is improved.
Referring to fig. 10, fig. 10 is a schematic structural diagram of a system for quickly validating a face authentication function according to an embodiment of the present invention, where the system includes:
the management platform 1001 is used for issuing personnel authority data and face modeling data to the equipment; for obtaining a message indicating that face authentication can be performed.
The device 1002 is configured to acquire the person permission data and the face modeling data, and write the person permission data and the face modeling data into a memory, where the person permission data and the face modeling data in the memory are used for performing face authentication; and after the personnel authority data and the face modeling data are successfully written into the memory, sending a message indicating that face authentication can be executed to the management platform.
The embodiment of the invention provides a system for quickly validating a face authentication function, which is characterized in that after personnel permission data and face modeling data issued by a management platform are acquired, the personnel permission data and the face modeling data are written into a memory, because the time consumption of the process of writing the personnel permission data and the face modeling data into the memory is short, and after the personnel permission data and the face modeling data are successfully written into the memory, the personnel permission data and the face modeling data in the memory can be used for executing face authentication, namely, face comparison and permission authentication can be carried out at the moment, so that the time required for validating the face authentication function is reduced.
Referring to fig. 11, fig. 11 is a schematic structural diagram of another fast validation system for a face authentication function according to an embodiment of the present invention, where the system includes:
the management platform 1101 is configured to issue personnel permission data and face modeling data to a device, where the personnel permission data may include a personnel identifier and corresponding personnel permission information, and the face modeling data may include the personnel identifier and a corresponding face template; the method comprises the steps of obtaining a message which indicates that face authentication can be performed; after the information indicating that the face authentication can be executed is obtained, a storage progress inquiry request about the storage to the local database of the equipment is sent to the equipment according to a preset time interval; when the acquired storage progress related information comprises information indicating that storage failure exists in the process of storing the information to a local database, sending a storage failure information query request to the equipment; after the storage failure information is acquired, executing corresponding operation according to the storage failure information; and when the acquired storage progress related information comprises information indicating that no storage failure condition exists in the process of storing the information to the local database, sending face picture data to the equipment, wherein the face picture data can comprise the personnel permission and a corresponding face picture.
The device 1102 is configured to acquire the person permission data and the face modeling data, and write the person permission data and the face modeling data into a memory, where the person permission data and the face modeling data in the memory are used for performing face authentication; after the personnel authority data and the face modeling data are written into the memory, sending a message indicating that face authentication can be executed to the management platform, storing the personnel authority data and the face modeling data in the memory to a local database, and reserving the personnel authority data and the face modeling data in the memory; under the condition that storage failure occurs in the process of storing the data into the local database, recording storage failure information corresponding to personnel authority data which fails to be stored and/or storage failure information corresponding to face modeling data which fails to be stored, wherein the storage failure information comprises personnel identification; under the condition that the storage progress query request is obtained, sending storage progress related information to the management platform; under the condition that a storage failure information query request is obtained, sending the storage failure information to the management platform; the method comprises the steps of obtaining face picture data issued by a management platform, and storing the face picture data to a local database.
In an embodiment of the present invention, the management platform is further configured to send a download address of the personnel permission data packed file and a download address of the face modeling data packed file to the device;
the equipment is also used for acquiring a download address of the personnel authority data packed file and a download address of the face modeling data packed file which are sent by the management platform; according to the download address of the personnel permission data packaging file and the download address of the face modeling data packaging file, respectively downloading the personnel permission data packaging file and the face modeling data packaging file; and respectively reading the personnel authority data and the face modeling data from the personnel authority data packaging file and the face modeling data packaging file.
The embodiment of the invention provides another system for quickly validating a face authentication function, wherein after acquiring personnel permission data and face modeling data issued by a management platform, equipment firstly writes the personnel permission data and the face modeling data into a memory, and because the time consumption of the process of writing into the memory is short, and after the personnel permission data and the face modeling data are written into the memory, the equipment can carry out face authentication, so that the time required for the face authentication function of the equipment to be validated is reduced; then, the equipment also stores the personnel authority data and the face modeling data in the memory into a local database, so that the personnel authority data and the face modeling data are stored in the local database of the equipment after the equipment is restarted, the face authentication can still be carried out, the personnel authority data and the face modeling data do not need to be issued by the management platform after each power-on, the network resource consumption is reduced, and under the condition that the personnel authority data and the face modeling data are stored into the local database unsuccessfully, the equipment can also send storage failure information to the management platform, so that the management platform can execute corresponding operation according to the storage failure information and resend the information needing to be resent, and finally the personnel authority data and the face modeling data can be completely and successfully stored into the local database of the equipment; and finally, the equipment acquires the face picture data issued by the management platform and stores the face picture data into a local database, so that the face picture can be displayed on an interface, and the user experience is improved.
Referring to fig. 12, fig. 12 is a schematic structural diagram of another fast human face authentication function validating system according to an embodiment of the present invention, where the system includes:
the management platform 1201 is used for issuing personnel permission data and face modeling data to the equipment; acquiring a message indicating that face authentication can be performed; after the information indicating that the face authentication can be executed is acquired, sending a storage progress query request about the storage to the local database to the equipment according to a preset time interval; and sending face picture data to the equipment under the condition that the acquired storage progress related information comprises information indicating that the process of storing the personnel permission data and the face modeling data into the local database of the equipment is finished.
The device 1202 is configured to obtain the personnel permission data and the face modeling data, and write the personnel permission data and the face modeling data into a memory, where the personnel permission data and the face modeling data in the memory are used for performing face authentication; after the personnel authority data and the face modeling data are written into the memory, sending a message indicating that face authentication can be executed to the management platform, storing the personnel authority data and the face modeling data in the memory to a local database, and reserving the personnel authority data and the face modeling data in the memory; under the condition that the storage progress query request is obtained, sending storage progress related information to the management platform; the method comprises the steps of obtaining face picture data issued by a management platform, and storing the face picture data to a local database.
In an embodiment of the present invention, the management platform is further configured to send a download address of the personnel permission data packed file and a download address of the face modeling data packed file to the device;
the equipment is also used for acquiring a download address of the personnel authority data packed file and a download address of the face modeling data packed file which are sent by the management platform; according to the download address of the personnel permission data packaging file and the download address of the face modeling data packaging file, respectively downloading the personnel permission data packaging file and the face modeling data packaging file; and respectively reading the personnel authority data and the face modeling data from the personnel authority data packaging file and the face modeling data packaging file.
The embodiment of the invention provides another system for quickly validating a face authentication function, wherein after acquiring personnel permission data and face modeling data issued by a management platform, equipment firstly writes the personnel permission data and the face modeling data into a memory, and because the time consumption of the process of writing into the memory is short, and after the personnel permission data and the face modeling data are written into the memory, the equipment can carry out face authentication, so that the time required for the face authentication function of the equipment to be validated is reduced; then, the equipment also stores the personnel authority data and the face modeling data in the memory into a local database, so that the personnel authority data and the face modeling data are stored in the local database of the equipment after the equipment is restarted, the face authentication can still be carried out, the personnel authority data and the face modeling data are not required to be issued by the management platform after each power-on, and the network resource consumption is reduced; and finally, the equipment acquires the face picture data issued by the management platform and stores the face picture data into a local database, so that the face picture can be displayed on an interface, and the user experience is improved.
Referring to fig. 13, fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device includes:
a memory 1301 for storing a computer program;
the processor 1302 is configured to implement the steps of the method for quickly validating the face authentication function provided in the foregoing embodiment when executing the program stored in the memory.
In one embodiment of the present invention, the electronic device may further include a communication interface, a communication bus, an input/output interface, and a display, wherein the memory, the processor, the input/output interface, the display, and the communication interface are configured to communicate with each other via the communication bus.
The memory may include high-speed random access memory (as a cache) and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device, and accordingly, the memory may also include a memory controller to provide the processor and the input-output interface access to the memory. The processor may be a general purpose processor including a central processing unit, a network processor, etc.; but may also be a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The input-output interface forwards commands or data input by a user via an input-output device (e.g., sensor, keyboard, touch screen). The display displays various information to the user. The communication interface enables communication between the electronic device and other devices, for example, the communication interface may be connected to a network by wire or wirelessly to connect to external other devices. The communication bus can be a peripheral component interconnect standard bus or an extended industry standard architecture bus, and the like, and can be divided into an address bus, a data bus, a control bus, and the like.
The embodiment of the invention provides electronic equipment, wherein after personnel permission data and face modeling data issued by a management platform are acquired, the personnel permission data and the face modeling data are written into a memory, and because the time consumption of the process of writing the personnel permission data and the face modeling data into the memory is short, and after the personnel permission data and the face modeling data are successfully written into the memory, the personnel permission data and the face modeling data in the memory can be used for executing face authentication, namely, the face comparison and permission authentication can be carried out at the moment, so that the time required for the face authentication function to take effect is reduced.
The embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps of the method for quickly validating the face authentication function provided in the above embodiment are implemented, where the computer-readable storage medium may be a read-only memory, a random access memory, a read-only optical disc, a magnetic tape, a floppy disk, an optical data storage device, and the like. After the personnel permission data and the face modeling data issued by the management platform are obtained, the personnel permission data and the face modeling data are written into the memory, and because the time consumption of the process of writing into the memory is short, and after the personnel permission data and the face modeling data are successfully written into the memory, the personnel permission data and the face modeling data in the memory can be used for executing face authentication, namely face comparison and permission authentication can be carried out at the moment, so that the time required for the face authentication function to take effect is reduced.
The embodiment of the invention also provides a computer program product, and when the computer program product runs on a computer, the computer executes the steps of implementing the method for quickly validating the face authentication function provided by the embodiment. The computer program product may include one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on or transmitted over a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), among others. After the personnel permission data and the face modeling data issued by the management platform are obtained, the personnel permission data and the face modeling data are written into the memory, the time consumption of the process of writing the personnel permission data and the face modeling data into the memory is short, and after the personnel permission data and the face modeling data are successfully written into the memory, the personnel permission data and the face modeling data in the memory can be used for executing face authentication, namely face comparison and permission authentication can be carried out at the moment, so that the time required for the face authentication function to take effect is shortened.
For the apparatus, system, electronic device, computer-readable storage medium, and computer program product embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference may be made to some descriptions of the method embodiments for relevant points.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Those skilled in the art will appreciate that all or part of the steps in the above method embodiments may be implemented by a program to instruct relevant hardware to perform the steps, and the program may be stored in a computer-readable storage medium, which is referred to herein as a storage medium, such as: ROM/RAM, magnetic disk, optical disk, etc.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (19)

1. A method for quickly validating a face authentication function is characterized by comprising the following steps:
acquiring personnel authority data and face modeling data issued by a management platform;
writing the personnel authority data and the face modeling data into a memory, wherein the personnel authority data and the face modeling data in the memory are used for executing face authentication;
and sending a message to the management platform indicating that the face authentication can be performed.
2. The method of claim 1, wherein after the writing of the person rights data and the face modeling data to memory, the method further comprises:
and storing the personnel permission data and the face modeling data in the memory to a local database, and reserving the personnel permission data and the face modeling data in the memory.
3. The method of claim 2, wherein the person rights data comprises a person identification and corresponding person rights information, wherein the face modeling data comprises the person identification and a corresponding face template, and wherein the method further comprises:
acquiring a storage progress query request about the storage to a local database;
sending storage progress related information to the management platform, wherein the storage progress related information comprises the current storage progress under the condition that the process of storing to the local database is not finished, and the storage progress related information comprises information indicating whether storage failure exists in the process of storing to the local database under the condition that the process of storing to the local database is finished.
4. The method of claim 3, further comprising:
under the condition that storage failure occurs in the process of storing the data into the local database, recording storage failure information corresponding to personnel authority data which fails to be stored and/or storage failure information corresponding to face modeling data which fails to be stored, wherein the storage failure information comprises personnel identification;
the storage progress related information includes information indicating that a storage failure condition exists in the process of storing the storage progress to the local database, and after the storage progress related information is sent to the management platform, the method further includes:
acquiring a storage failure information query request;
and sending the storage failure information to the management platform.
5. The method of claim 2, wherein after the storing to the local database is complete, the method further comprises:
acquiring face picture data issued by a management platform;
and storing the face picture data to a local database.
6. The method according to claim 3, wherein the storage progress related information includes information indicating that there is no storage failure condition in the process of storing to the local database, and after the sending of the storage progress related information to the management platform, the method further includes:
acquiring face picture data issued by a management platform, wherein the face picture data comprises the personnel identification and a corresponding face picture;
and storing the face picture data to a local database.
7. The method according to any one of claims 1 to 6, wherein the acquiring of the personnel permission data and the face modeling data issued by the management platform comprises:
acquiring a download address of a personnel authority data packed file and a download address of a face modeling data packed file which are sent by a management platform;
according to the download address of the personnel permission data packaging file and the download address of the face modeling data packaging file, respectively downloading the personnel permission data packaging file and the face modeling data packaging file;
and respectively reading the personnel authority data and the face modeling data from the personnel authority data packaging file and the face modeling data packaging file.
8. A face authentication function fast validation apparatus, the apparatus comprising:
the acquisition module is used for acquiring personnel permission data and face modeling data issued by the management platform;
the writing module is used for writing the personnel authority data and the face modeling data into a memory, and the personnel authority data and the face modeling data in the memory are used for executing face authentication;
and the sending module is used for sending a message indicating that the face authentication can be executed to the management platform.
9. The apparatus of claim 8, further comprising:
and the storage module is used for storing the personnel permission data and the face modeling data in the memory into a local database after the personnel permission data and the face modeling data are written into the memory, and the personnel permission data and the face modeling data in the memory are still kept in the memory in the process of storing the personnel permission data and the face modeling data in the local database.
10. The apparatus of claim 9, wherein the person authority data comprises a person identifier and corresponding person authority information, and the face modeling data comprises the person identifier and a corresponding face template;
the acquisition module is further used for acquiring a storage progress query request about the storage to the local database;
the sending module is further configured to send storage progress related information to the management platform when the storage progress query request is obtained, where the storage progress related information includes a current storage progress when the process of storing to the local database is not finished, and the storage progress related information includes information indicating whether a storage failure condition exists in the process of storing to the local database when the process of storing to the local database is finished.
11. The apparatus of claim 10, further comprising:
the recording module is used for recording storage failure information corresponding to the personnel authority data with storage failure and/or storage failure information corresponding to the face modeling data with storage failure under the condition that storage failure occurs in the process of storing the personnel authority data into the local database, wherein the storage failure information comprises personnel identification;
the information related to the storage progress comprises information indicating that a storage failure condition exists in the process of storing the information to the local database, and the acquisition module is further used for acquiring a storage failure information query request after the information related to the storage progress is sent to the management platform;
the sending module is further configured to send the storage failure information to the management platform when the storage failure information query request is obtained.
12. The device according to claim 9, wherein the obtaining module is further configured to obtain the face image data sent by the management platform after the process of storing the face image data in the local database is finished;
the storage module is further used for storing the face image data to a local database.
13. The device according to claim 10, wherein the storage progress related information includes information indicating that there is no storage failure in the process of storing to the local database, and the obtaining module is further configured to obtain face picture data issued by the management platform after the storage progress related information is sent to the management platform, where the face picture data includes the person identifier and a corresponding face picture;
the storage module is further used for storing the face image data to a local database.
14. A system for fast validating a face authentication function, the system comprising:
the management platform is used for issuing personnel authority data and face modeling data to the equipment; the method comprises the steps of obtaining a message which indicates that face authentication can be performed;
the equipment is used for acquiring the personnel authority data and the face modeling data, and writing the personnel authority data and the face modeling data into a memory, wherein the personnel authority data and the face modeling data in the memory are used for executing face authentication; and after the personnel authority data and the face modeling data are successfully written into the memory, sending a message indicating that face authentication can be executed to the management platform.
15. The system of claim 14, wherein the device is further configured to, after the writing of the human permission data and the human face modeling data into the memory is successful, store the human permission data and the human face modeling data in the memory to a local database, and retain the human permission data and the human face modeling data in the memory.
16. The system of claim 15, wherein the person rights data comprises a person identification and corresponding person rights information, and the face modeling data comprises the person identification and a corresponding face template;
the device is further used for obtaining a storage progress query request about the storage to a local database; sending storage progress related information to the management platform under the condition that the storage progress query request is obtained, wherein the storage progress related information comprises the current storage progress under the condition that the process of storing to the local database is not finished, and the storage progress related information comprises information indicating whether storage failure exists in the process of storing to the local database under the condition that the process of storing to the local database is finished;
the management platform is further configured to send the storage progress query request to the device at a preset time interval after acquiring a message indicating that face authentication can be performed; and acquiring the relevant information of the storage progress.
17. The system according to claim 16, wherein the device is further configured to, in a case that storage failure occurs during the storage into the local database, record storage failure information corresponding to storage-failed human right data and/or storage failure information corresponding to storage-failed human face modeling data, where the storage failure information includes a human identifier; under the condition that a storage failure information query request is obtained, sending the storage failure information to the management platform;
the management platform is further configured to send a storage failure information query request to the device when the acquired storage progress related information includes information indicating that a storage failure condition exists in the process of storing the information to the device local database; and after the storage failure information is acquired, executing corresponding operation according to the storage failure information.
18. The system of claim 15, wherein the device is further configured to send, to the management platform, information indicating that the process stored in the local database is completed, in case that the process stored in the local database is completed; acquiring face picture data issued by a management platform; storing the face picture data to a local database;
the management platform is further used for issuing the face picture data to the equipment under the condition that the information indicating that the process of storing the face picture data to the local database of the equipment is finished is acquired.
19. The system according to claim 16, wherein the management platform is further configured to, when the acquired information related to the storage progress includes information indicating that no storage failure condition exists in the process of storing the information in the local database, issue face picture data to the device, where the face picture data includes the person identifier and a corresponding face picture;
the device is also used for acquiring the face picture data issued by the management platform; and storing the face picture data to a local database.
CN201910931339.6A 2019-09-29 2019-09-29 Method, device and system for quickly validating face authentication function Pending CN111431699A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910931339.6A CN111431699A (en) 2019-09-29 2019-09-29 Method, device and system for quickly validating face authentication function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910931339.6A CN111431699A (en) 2019-09-29 2019-09-29 Method, device and system for quickly validating face authentication function

Publications (1)

Publication Number Publication Date
CN111431699A true CN111431699A (en) 2020-07-17

Family

ID=71546741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910931339.6A Pending CN111431699A (en) 2019-09-29 2019-09-29 Method, device and system for quickly validating face authentication function

Country Status (1)

Country Link
CN (1) CN111431699A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116938601A (en) * 2023-09-15 2023-10-24 湖南视觉伟业智能科技有限公司 Division authentication method for real-name authentication equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106572092A (en) * 2016-10-29 2017-04-19 厦门中控生物识别信息技术有限公司 Data transmission method, security integration platform and system
CN107025710A (en) * 2017-04-10 2017-08-08 深圳市和泰业成建设工程有限责任公司 Method for verifying authority and device
CN109241111A (en) * 2018-08-27 2019-01-18 武汉虹信技术服务有限责任公司 A kind of distributed face identification system and method for database based on memory
CN110120114A (en) * 2019-05-30 2019-08-13 北京建自凯科系统工程有限公司 A kind of human body recognition method based on access control system, system and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106572092A (en) * 2016-10-29 2017-04-19 厦门中控生物识别信息技术有限公司 Data transmission method, security integration platform and system
CN107025710A (en) * 2017-04-10 2017-08-08 深圳市和泰业成建设工程有限责任公司 Method for verifying authority and device
CN109241111A (en) * 2018-08-27 2019-01-18 武汉虹信技术服务有限责任公司 A kind of distributed face identification system and method for database based on memory
CN110120114A (en) * 2019-05-30 2019-08-13 北京建自凯科系统工程有限公司 A kind of human body recognition method based on access control system, system and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
FEISHIXIN: "《C#人脸识别入门篇--提取人脸特征值及人脸识别URL:https://blog.csdn.net/feishixin/article/details/77397027》", 《CSDN》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116938601A (en) * 2023-09-15 2023-10-24 湖南视觉伟业智能科技有限公司 Division authentication method for real-name authentication equipment
CN116938601B (en) * 2023-09-15 2023-11-24 湖南视觉伟业智能科技有限公司 Division authentication method for real-name authentication equipment

Similar Documents

Publication Publication Date Title
CN103544153B (en) A kind of data-updating method based on data base and system
TW201439792A (en) System and method for accessing database
WO2017032170A1 (en) Method and apparatus for importing mirror image file
US11360966B2 (en) Information processing system and method of controlling information processing system
CN114780019A (en) Electronic device management method and device, electronic device and storage medium
CN108369503A (en) Automatic system response to external field replaceable units (FRU) process
CN110119386A (en) Data processing method, data processing equipment, medium and calculating equipment
CN111431699A (en) Method, device and system for quickly validating face authentication function
US20170213182A1 (en) Information processing system, information processing method, and non-transitory computer readable storage medium
CN111400056A (en) Message queue-based message transmission method, device and equipment
CN111552575A (en) Message queue-based message consumption method, device and equipment
CN107257281B (en) Method, apparatus and computer readable storage medium for NOR F L ASH storage key record
CN114817154A (en) Shared file operation method and device, computer equipment and shared file system
CN111373384A (en) Server device, vehicle-mounted device, and data communication method
JP2008250864A (en) Data storing method, data storing system and information processor
JP6552162B2 (en) Information processing apparatus, information processing method, and program
CN114186976A (en) Workflow transfer method and device, computer equipment and storage medium
US9424405B2 (en) Using receipts to control assignments of items of content to users
US9100239B2 (en) Information processing system, portable information processing apparatus, and information processing method
CN110413616A (en) A kind of backup method and device of database undo table space
JP2009301190A (en) Document processor and document processing program
US11768693B2 (en) System and method for configurable device management
CN103678478A (en) Information processing apparatus, information processing method, and program
US20230195692A1 (en) File processing apparatus, file processing method, and storage medium
JP6930329B2 (en) Portable information processing equipment and information processing programs

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200717

RJ01 Rejection of invention patent application after publication