CN111652096B - Face recognition method, device and system based on block chain - Google Patents

Face recognition method, device and system based on block chain Download PDF

Info

Publication number
CN111652096B
CN111652096B CN202010440801.5A CN202010440801A CN111652096B CN 111652096 B CN111652096 B CN 111652096B CN 202010440801 A CN202010440801 A CN 202010440801A CN 111652096 B CN111652096 B CN 111652096B
Authority
CN
China
Prior art keywords
face
face recognition
service
information
blockchain
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.)
Active
Application number
CN202010440801.5A
Other languages
Chinese (zh)
Other versions
CN111652096A (en
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202010440801.5A priority Critical patent/CN111652096B/en
Publication of CN111652096A publication Critical patent/CN111652096A/en
Application granted granted Critical
Publication of CN111652096B publication Critical patent/CN111652096B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/217Validation; Performance evaluation; Active pattern learning techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/285Selection of pattern recognition techniques, e.g. of classifiers in a multi-classifier system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/94Hardware or software architectures specially adapted for image or video understanding
    • G06V10/95Hardware or software architectures specially adapted for image or video understanding structured as a network, e.g. client-server architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/50Maintenance of biometric data or enrolment thereof

Abstract

The invention provides a face recognition method, a device and a system based on a block chain, wherein the method comprises the following steps: the received face recognition service request comprising the current service scene information; acquiring face information according to the face recognition request; determining a corresponding pre-registered face recognition index library according to the current service scene information; and calling a blockchain intelligent contract face recognition service to execute face recognition according to the determined face recognition index library and the acquired face information to generate a face recognition result. The invention provides unified service for scene application through intelligent contracts of block chain face recognition and face registration, thereby realizing that face recognition scene systems in various fields can be accessed by adopting unified standards and avoiding repeated construction of the systems and waste of resources. Different index libraries are built according to different application scenes, so that the efficiency of face searching is improved.

Description

Face recognition method, device and system based on block chain
Technical Field
The invention relates to a face recognition technology, in particular to a face recognition method, device and system based on a block chain.
Background
Face recognition is a biological recognition technology for automatically performing identity recognition according to facial features of people. Along with the rapid development of the face recognition technology, each industry establishes a face information base and a corresponding application system according to the characteristics of application scenes of the industry. For example, the public security system checks the identity information of the citizen through the face recognition system, and financial institutions such as banks establish the face recognition system for ATM deposit and withdrawal business, merchant receipt business and other business, and the payment institutions complete face payment business through face recognition.
The face recognition application system of the prior art has a plurality of problems, such as: the face recognition systems in various fields are repeatedly built, and unified standards are not available temporarily, so that resource waste is caused. While industry has begun to have ideas of centrally managing and building industry-level face systems, for example, the Union of Pacification has begun to build financial industry-level face payment systems, but only in the payment field. The safety problem of the face information is more outstanding, and the face information has leakage and unauthorized use problems, so that unified supervision and control are difficult to obtain. The advantages and disadvantages of the face recognition related algorithm are difficult to evaluate, the algorithm is continuously improved and optimized, the face recognition application system of an enterprise is difficult to follow in time, and the problems of high updating cost, untimely updating and the like of a new algorithm exist.
Disclosure of Invention
In order to solve the problem of resource waste caused by repeated construction of a face recognition system in the prior art, the invention provides a face recognition method based on a block chain, which comprises the following steps:
the received face recognition service request comprising the current service scene information;
acquiring face information according to the face recognition request;
determining a corresponding pre-registered face recognition index library according to the current service scene information;
and calling a blockchain intelligent contract face recognition service to execute face recognition according to the determined face recognition index library and the acquired face information to generate a face recognition result.
In the embodiment of the invention, the method further comprises the following steps:
receiving a face registration service request comprising service scene information;
face information and customer information are collected to generate face registration information;
and calling a blockchain intelligent contract face registration service, registering according to the service scene information, the pre-established index rule and the face registration information, and generating a face identification index library corresponding to each service scene information.
In the embodiment of the invention, the step of calling the blockchain intelligent contract face recognition service to execute face recognition according to the determined face recognition index library and the collected face information to generate a face recognition result comprises the following steps:
Invoking a blockchain intelligent contract face recognition service to execute face recognition according to the collected face information;
and the face recognition is carried out, and a face recognition result comprising face registration information is generated according to the acquired face information and the determined face recognition index library.
In the embodiment of the invention, the client information includes: customer name, certificate information and mobile phone number;
the service scene information comprises: a bank card number of business transaction, a transaction password and a short message verification code.
In the embodiment of the invention, the method further comprises the following steps:
receiving a preset authority management rule;
carrying out authentication on the signature certificate in the service request according to the authority management rule to generate an authentication result; wherein, the service request comprises: face recognition service request and face registration service request;
invoking a blockchain intelligent contract service according to the authentication result; wherein, the intelligent contract service of the block chain comprises: the blockchain intelligent contract face recognition service and the blockchain intelligent contract face registration service.
In the embodiment of the invention, the method further comprises the following steps:
acquiring face picture data and a face recognition algorithm in the process of calling a blockchain intelligent contract face recognition service to execute face recognition;
And performing neural network training on the face recognition algorithm by using the face picture data to optimize the face recognition algorithm.
Meanwhile, the invention also provides a face recognition device based on the block chain, which comprises:
the recognition request receiving module is used for receiving a face recognition service request comprising current service scene information;
the identification information acquisition module is used for acquiring face information according to the face identification request;
the index library determining module is used for determining a corresponding pre-registered face recognition index library according to the current service scene information;
and the face recognition module is used for calling the blockchain intelligent contract face recognition service to execute face recognition according to the determined face recognition index library and the face recognition service request, and generating a face recognition result.
In an embodiment of the present invention, the apparatus further includes:
the registration request receiving module is used for receiving a face registration service request comprising service scene information;
the registration information generation module is used for acquiring face information and client information to generate face registration information;
and the registration module is used for calling the blockchain intelligent contract face registration service, registering according to the service scene information, the pre-established index rule and the face registration information, and generating a face identification index library corresponding to the service scene information.
In an embodiment of the present invention, the face recognition module includes:
the identification unit is used for calling the blockchain intelligent contract face identification service to execute face identification according to the acquired face information;
and the result generation unit is used for generating a face recognition result comprising face registration information according to the acquired face information and the determined face recognition index library.
In the embodiment of the invention, the client information includes: customer name, certificate information and mobile phone number;
the service scene information comprises: a bank card number of business transaction, a transaction password and a short message verification code.
In an embodiment of the present invention, the apparatus further includes:
the permission rule setting module is used for receiving a preset permission management rule;
the authorization result generation module is used for performing authorization on the signature certificate in the service request according to the authority management rule to generate an authorization result; wherein, the service request comprises: face recognition service request and face registration service request;
the calling module is used for calling the blockchain intelligent contract service according to the authentication result; wherein, the intelligent contract service of the block chain comprises: the blockchain intelligent contract face recognition service and the blockchain intelligent contract face registration service.
In an embodiment of the present invention, the apparatus further includes:
the recognition data acquisition module is used for acquiring face picture data and a face recognition algorithm in the face recognition process of calling the blockchain intelligent contract face recognition service;
and the algorithm optimization module is used for utilizing the face picture data to carry out neural network training on the face recognition algorithm so as to optimize the face recognition algorithm.
The invention also provides a computer device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the method.
Meanwhile, the invention also provides a computer readable storage medium which stores a computer program for executing the method.
The invention fully utilizes the characteristics of decentralization, non-tamper-property of information, transparency and the like of the blockchain technology, and provides unified service for scene application through intelligent contracts of blockchain face recognition and face registration. Face registration and face recognition service are uniformly provided by the block chain, so that the face recognition scene system in each field can be accessed by uniform standards, and repeated construction of the system and waste of resources are avoided. In addition, when the face information is registered by the block chain, the block chain establishes different index libraries according to different application scenes, so that the face searching efficiency is improved. And (3) formulating a related algorithm adopted by face recognition through intelligent contracts of the block chain, and periodically acquiring face recognition data through the block chain. And carrying out data analysis according to the samples of the face data, scoring the deviation rates of different face recognition algorithms and automatically selecting the face recognition algorithms preferentially, so that the problem of selecting the face algorithm preferentially is solved, and the updating cost of the face algorithm is reduced.
The foregoing and other objects, features and advantages of the invention will be apparent from the following more particular description of preferred embodiments, as illustrated in the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a face recognition method based on block chains provided by the invention;
FIG. 2 is a flowchart of a face registration method based on blockchain provided in an embodiment of the present invention;
FIG. 3 is a schematic diagram of a face recognition processing system based on a blockchain according to an embodiment of the present invention;
FIG. 4 is a block chain based face recognition method according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating steps of a face registration service according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating steps of face recognition according to an embodiment of the present invention;
Fig. 7 is a block diagram of a face recognition device based on a blockchain provided by the invention;
fig. 8 is a schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The blockchain technology has the characteristics of decentralization, non-tamper-proof information, transparency and the like, and is increasingly favored in the fields of finance, insurance and the like. The invention provides a face recognition application system constructed by means of the characteristics of decentralization of a block chain and non-falsification of information. Therefore, application systems of various industries are realized, face information is registered through a block chain according to the characteristics of service scenes, and different face index libraries are built according to different application scenes by utilizing the block chain. Meanwhile, a user authority management system is established for each user of the face scene, and each user uses face data in the authority, so that the problems of non-uniform face algorithm standard, security, authority management, face database dividing rule and the like of a face recognition system in the prior art are solved, and the reliability and accuracy of the face algorithm are further improved.
As shown in fig. 1, the face recognition method based on the blockchain provided by the invention comprises the following steps:
step S101, a face recognition service request comprising current service scene information is received;
step S102, acquiring face information according to the face recognition request;
step S103, determining a corresponding pre-registered face recognition index library according to the current service scene information;
and step S104, invoking a blockchain intelligent contract face recognition service to execute face recognition according to the determined face recognition index library and the acquired face information to generate a face recognition result.
The face recognition method based on the blockchain also comprises the following steps before the face recognition: the receiving user requests for face information registration, as shown in fig. 2, specifically includes:
step S201, receiving a face registration service request comprising service scene information;
step S202, face information and customer information are collected to generate face registration information;
step S203, calling a blockchain intelligent contract face registration service, registering according to the business scene information, the pre-established index rule and the face registration information, and generating a face identification index library corresponding to each business scene information.
In the embodiment of the invention, the face registration information comprises: the acquired face information and the client information input by the user are registered through the blockchain intelligent contract face registration service, so that support is provided for realizing face recognition, registration is further carried out according to the business scene information, the pre-established index rule and the face registration information, namely, the scene information and the index of the acquired face information and the client information input by the user are established according to the business scene information and the pre-established index rule, and a face recognition index library corresponding to each business scene information is generated.
In the embodiment of the invention, the face information comprises: the acquired face images and images, and the client information comprises: customer name, certificate information and mobile phone number; the service scene information includes: a bank card number of business transaction, a transaction password and a short message verification code.
The invention provides a face recognition application system which is constructed by means of the characteristics of decentralization of a block chain and non-falsification of information, face information is registered through the block chain, and different face index libraries are built by utilizing the block chain according to different application scenes, so that application systems of various industries are realized, and face recognition is carried out according to the characteristics of own business scenes. The technical scheme of the invention is further described in detail below with reference to specific examples.
As shown in fig. 3, the face recognition processing system based on the blockchain according to an embodiment of the present invention includes a blockchain 1, a face registration server 2, a face scene service provider application server 3, a face data analysis server 4, a supervision server 5, and a rights management server 6.
The blockchain 1 comprises a plurality of blockchain nodes, and the number of the nodes is related to the number of the partners participating in the system. The implementation functions of the block chain 1 in this embodiment include:
1) Each blockchain node is responsible for receiving and forwarding information to the whole network.
2) And signature verification and authority control are carried out on service requesters such as face registration service, face recognition service, face transaction data query and the like according to the authority management matrix sent by the authority management server 6.
3) Verifying and achieving consensus in the whole block chain by adopting a consensus algorithm
4) Information that agrees is recorded into the blockchain.
5) Intelligent contracts for face registration and face recognition are performed.
6) And updating relevant algorithm parameters and algorithm selection of the intelligent contract of the face registration and identification service by using the analysis result of the face data analysis server.
In this embodiment, the face registration server 2 includes:
1) The unified face registration service is provided, two modes of page registration or background service registration are supported by a calling party, and the face picture, the payment card number, the payment password abstract, the name, the mobile phone number and the certificate number acquired by an application party are encrypted and then the blockchain face registration service is called.
2) And providing a unified face recognition service, receiving a face recognition request sent by an application server of a face scene service provider, and combining the face picture with the auxiliary elements related to face recognition. In order to improve the efficiency and accuracy of face retrieval, auxiliary elements can be input according to different scenes, such as inputting a payment password in a payment scene, and carrying out face recognition processing on a mobile phone number or 4 bits after the mobile phone number. After the face recognition is successful, the client elements are returned to the caller, wherein the client elements include, but are not limited to, a client certificate number, a name, a payment card number and a mobile phone number, and one or more client elements are returned according to different scenes.
That is, in the present embodiment, the face registration server 2 is used to realize the function of receiving a user request for face information registration shown in fig. 2.
In this embodiment, the face scene service provider application server 3 refers to an application server of an industry party using face registration and face recognition services according to characteristics of a service scene, for example, a financial institution background application server for completing an ATM withdrawal service using face recognition.
The face scene service provider application server 3 has several functions:
1) The face registration of the client is completed by the butt joint face registration server 2;
2) According to the service scene, completing the opening of the face recognition service function and the management of the service protocol;
3) When the customer performs scene service related to face recognition, the real-time face acquisition and auxiliary element input of the customer are completed, for example: inputting customer information, and recognizing a human face by a docking human face registration server;
4) Processing according to success and failure results returned by the face recognition service; if the identification is successful, the client element is acquired, and the subsequent business processing is completed. If the identification is successful in the payment transaction, the customer information is acquired, and the deduction of the customer and the related business processing are completed according to the number of the customer payment card.
The face data analysis server 4 includes the following functions:
1) Periodically acquiring face recognition data through a block chain;
2) Carrying out data analysis according to the samples of the face data, and scoring algorithms by using the deviation rate of different face recognition algorithms adopted in the face recognition service of the intelligent contract of the calling blockchain;
3) And returning the analysis result to the blockchain, and selecting by the matching blockchain according to related algorithm parameters and algorithms for updating the intelligent contracts of the face registration and recognition service.
The regulatory agency server 5 refers to an application server providing access to a blockchain for a regulatory agency. The supervision mechanism comprises: people's bank, unionpay, payment clearing Association, public security department, etc. have administrative functions. The supervision authorities can obtain face registration information and face recognition transaction information of the blockchain through the supervision authority server 5 for data analysis and daily monitoring.
The rights management server 6 provides management functions of registration and rights for each role of access blockchain. The rights management server 5 includes the following functions:
1) Key pairs are distributed for each character of the blockchain.
2) A entitlement control matrix is set for each role of the blockchain.
3) And storing the authority control matrix into a blockchain.
As shown in fig. 4, in order to achieve the object of the present invention, the block chain-based face recognition method according to the present embodiment generally includes the following steps:
step 101, rights management and distribution: the face scene service provider, the face data analysis party and the supervision organization register and apply for authority according to their own roles through the authority management server 6 to obtain public and private key pairs connected with the blockchain. The authority management server is divided into each role of the blockchain to set an authority control matrix, and the authority control matrix is stored in the blockchain.
The face scene application party can comprise application systems of banks, payment institutions, hotels, hospitals and the like for developing related services by using face recognition, and the authority of the application systems is to use face registration and face recognition services.
The supervision mechanism comprises a people bank, a public security organization, a judicial organization and other mechanisms with supervision functions. The authority of the supervision organization is to acquire face recognition transaction details, wherein the transaction details comprise client information, transaction types, transaction time, transaction places, face registration time and the like.
The face data analysis party can be a provider of a face recognition related algorithm, and the authority of the face data analysis party is to acquire operation data of face preprocessing, face detection, face feature extraction and face recognition algorithm, analyze and calculate indexes such as detection rate, false detection rate, omission rate and recognition speed of the algorithm, and score the algorithm according to the indexes. And acquiring face pictures and other data, performing model training, and adjusting parameters of a face recognition related algorithm according to a training result, so that various indexes such as detection rate, recognition speed and the like based on a neural network algorithm are further improved.
Step 102, making a blockchain intelligent contract: the intelligent contract is selected by the system participants through jointly making rules of face registration and algorithms related to face recognition. The method comprises the following steps: information items input by clients required during face registration; selecting a face recognition algorithm as a main algorithm and a plurality of algorithms as auxiliary algorithms; and (3) formulating algorithm replacement conditions, and automatically selecting a new algorithm after the conditions are met.
Step 103, running a blockchain intelligent contract: and (3) acquiring data from each participating institution according to the authority according to the intelligent contract set in the step (102), and starting the face registration and face recognition service according to the setting of the intelligent contract.
Step 104, face registration and face recognition processing: and according to the face registration and the face recognition, running a related algorithm to perform face registration and face recognition processing. When registering a face, generating a face retrieval index according to client information, and generating a primary index library or a multi-level index library according to the certificate number abstract, the password abstract, the mobile phone number and the rear 4 bits of the mobile phone number to solve the problem of face index 1: the efficiency of N; recording the results of face registration and face recognition and transaction details.
Step 105, obtaining face transaction data: according to the authority distribution, the supervision authorities can acquire face registration and face recognition transaction data of the blockchain for data analysis and daily monitoring.
And 106, analyzing and calculating indexes such as detection rate, false detection rate, omission rate, recognition speed and the like of the algorithm according to the operation data of the face preprocessing, face detection, face feature extraction and face recognition algorithm, and scoring the algorithm according to the indexes. And acquiring face pictures and other data, performing model training, and adjusting parameters of a face recognition related algorithm according to a training result, so that various indexes such as detection rate, recognition speed and the like based on a neural network algorithm are further improved.
In this embodiment, the steps of the face registration service are as shown in fig. 5:
the client selects the face recognition service type to be opened (multiple services can be simultaneously selected to be opened) on an APP or PC webpage of the face scene service provider. E.g. selecting to switch on the face payment service on the APP of the bank.
Step 201, a customer starts a camera at a face scene service provider and collects a scene face picture, and real transaction is guaranteed for the customer through living body detection and other means.
Step 202, the client inputs the client information through the page of the face scene service provider or the page provided by the face registration server, wherein the client information comprises a name, a certificate type, a certificate number and a mobile phone number.
In step 203, a scene auxiliary element, that is, the aforementioned business scene information, is an additional transaction element, including but not limited to a transaction bank card number, a payment password, a short message verification code, etc., which is input by the customer according to the specific use scene requirement of the face. The validity of the scene auxiliary elements is verified by the face scene service provider. For example, when a face payment service is opened, a face payment password needs to be input, a bank card number is used as a scene auxiliary element, and a scene provider performs verification of the validity of the card number.
Step 204, invoking the face registration service of the blockchain, firstly checking the transaction signature certificate of the caller, and then reading the authority information uploaded into the blockchain by the authority management server according to the ID previously assigned to the caller, and judging whether the authority of face registration is possessed. If the authority check is passed, an intelligent contract is operated, and face registration is carried out according to algorithms such as contracted face detection, face characteristic value calculation and the like.
In this embodiment, in order to improve the 1:n face retrieval efficiency in face recognition service, a face index library is built according to different scenes. The face index library is used for dividing the face credit library into libraries according to specific elements serving as indexes to form face sub-libraries, so that the retrieval efficiency is improved. Taking the face payment scenario as an example, when a customer makes face payment, a phone number back 4 or a payment password is usually required. Therefore, the last 4 digits of the mobile phone number or the payment password can be used as the face library index. When registering a face, face characteristic information is calculated through a face picture, MD5 abstract operation and salt addition operation are respectively carried out on the last 4 digits of a mobile phone number and a payment password, the operation result is used as an index, and the face characteristic information of the same operation result is put into a face sub-library, so that two index libraries of the last 4 digits of the mobile phone number and the payment password are formed. When the face of the customer pays, the customer is required to input the 4-bit or payment password after the mobile phone number, the face recognition algorithm carries out MD5 abstract operation and salifying operation on the 4-bit or payment password after the mobile phone number, and the face index library where the face characteristic information of the customer is located is determined, so that the searching range of 1:N face searching is greatly reduced, and the searching efficiency is improved.
Step 205, recording the details of the face registration, and returning the registration result to the caller of the face registration service.
Fig. 6 shows the steps of the face recognition process in this embodiment.
In step 301, a customer performs a face recognition related service through a scene provider. For example, at the POS machine, a face payment service is used to conduct the order receiving service.
In step 302, the scene provider takes a live photo of the customer and performs live detection to ensure that the customer is present to conduct the transaction.
In step 303, the customer enters a scene auxiliary element, such as a mobile phone number (complete mobile phone number or 4 digits after mobile phone number) or a payment password in a face payment service.
In step 304, the scene provider invokes the blockchain face recognition service through the face recognition server to send the face picture, the scene type and the scene element into the blockchain.
Step 305, running face recognition service of the blockchain, firstly judging the authority, if the authority is checked to pass, running an intelligent contract, and performing face recognition according to the agreed face detection and face feature value comparison algorithm. And searching a face index library according to the scene auxiliary elements, and acquiring scene client information according to the scene type. For example, in a face payment scenario, a face index library is queried to obtain face registration information according to a client mobile phone number, a mobile phone number rear 4 bits or a payment password, so as to obtain a transaction card number.
And 306, returning a face recognition result by the scene provider according to the face recognition service, and if the face recognition result is successfully returned, acquiring scene client information to complete subsequent scene service. For example, in a face payment scenario, a payment card number is obtained, and the deduction of the cardholder is completed.
The embodiment of the invention fully utilizes the characteristics of decentralization, non-tamper-proof information, transparency and the like of the blockchain technology, and provides unified service for scene application through intelligent contracts of face registration and face recognition of the blockchain. The invention has the following effects and advantages:
the block chain provides face registration and face recognition service uniformly, and face recognition scene systems in all fields adopt uniform standard access, so that repeated construction of the system and waste of resources are avoided.
By making intelligent contracts and user key authority management systems of the blockchain, access authorities and data conditional sharing of different roles in the blockchain are guaranteed, and the safety problem of face registration information and face transaction information is solved.
When the blockchain registers face information, the blockchain establishes different face primary or multi-level index libraries according to different application scenes, so that 1: and N, efficiency of face searching.
And (3) formulating a related algorithm adopted by face recognition through intelligent contracts of the block chain, and periodically acquiring face recognition data through the block chain. And carrying out data analysis according to the samples of the face data, scoring the deviation rates of different face recognition algorithms and automatically selecting the face recognition algorithms preferentially, so that the problem of the preferred selection of the face algorithm is solved, and the updating cost of the face algorithm is reduced. Meanwhile, the parameters of the face recognition algorithm of the block chain can be dynamically adjusted according to the model training of big data, and the performance and accuracy of the algorithm are improved.
Meanwhile, the invention also provides a face recognition device based on the block chain, which comprises the following components as shown in fig. 7:
an identification request receiving module 701, configured to receive a face identification service request including current service scenario information;
the identification information acquisition module 702 is configured to acquire face information according to the face recognition request;
an index library determining module 703, configured to determine a corresponding pre-registered face recognition index library according to the current service scenario information;
and the face recognition module 704 is used for calling the blockchain intelligent contract face recognition service to execute face recognition according to the determined face recognition index library and the face recognition service request, and generating a face recognition result.
In an embodiment of the present invention, the apparatus further includes:
the registration request receiving module is used for receiving a face registration service request comprising service scene information;
the registration information generation module is used for acquiring face information and client information to generate face registration information;
and the registration module is used for calling the blockchain intelligent contract face registration service, registering according to the service scene information, the pre-established index rule and the face registration information, and generating a face identification index library corresponding to each service scene information.
In an embodiment of the present invention, the face recognition module includes:
the identification unit is used for calling the blockchain intelligent contract face identification service to execute face identification according to the acquired face information;
and the result generation unit is used for generating a face recognition result comprising face registration information according to the acquired face information and the determined face recognition index library.
In an embodiment of the present invention, the apparatus further includes:
the permission rule setting module is used for receiving a preset permission management rule;
the authorization result generation module is used for performing authorization on the signature certificate in the service request according to the authority management rule to generate an authorization result; wherein, the service request comprises: face recognition service request and face registration service request;
The calling module is used for calling the blockchain intelligent contract service according to the authentication result; wherein, the intelligent contract service of the block chain comprises: the blockchain intelligent contract face recognition service and the blockchain intelligent contract face registration service.
In an embodiment of the present invention, the apparatus further includes:
the recognition data acquisition module is used for acquiring face picture data and a face recognition algorithm in the face recognition executing process;
and the algorithm optimization module is used for utilizing the face picture data to carry out neural network training on the face recognition algorithm so as to optimize the face recognition algorithm.
The implementation of the block chain-based face recognition device according to the present invention will be apparent to those skilled in the art from the above description of the embodiments, and will not be described in detail herein.
In addition, the embodiment of the invention also provides an electronic device, which can be a desktop computer, a tablet computer, a mobile terminal and the like, and the embodiment is not limited to the desktop computer, the tablet computer, the mobile terminal and the like. In this embodiment, the electronic device may refer to the implementation of the foregoing embodiment, and the content thereof is incorporated herein, and the repetition is not repeated.
Fig. 8 is a schematic block diagram of a system configuration of an electronic device 600 according to an embodiment of the present invention. As shown in fig. 8, the electronic device 600 may include a central processor 100 and a memory 140; memory 140 is coupled to central processor 100. Notably, the diagram is exemplary; other types of structures may also be used in addition to or in place of the structures to implement telecommunications functions or other functions.
In one embodiment, the blockchain-based face recognition function may be integrated into the central processor 100. Wherein the central processor 100 may be configured to control as follows:
the received face recognition service request comprising the current service scene information;
acquiring face information according to the face recognition request;
determining a corresponding pre-registered face recognition index library according to the current service scene information;
and calling a blockchain intelligent contract face recognition service to execute face recognition according to the determined face recognition index library and the acquired face information to generate a face recognition result.
In another embodiment, the blockchain-based face recognition device may be configured separately from the central processor 100, for example, the blockchain-based face recognition device may be configured as a chip connected to the central processor 100, and the blockchain-based face recognition function is implemented under the control of the central processor.
As shown in fig. 8, the electronic device 600 may further include: a communication module 110, an input unit 120, an audio processing unit 130, a display 160, a power supply 170. It is noted that the electronic device 600 need not include all of the components shown in fig. 8; in addition, the electronic device 600 may further include components not shown in fig. 8, to which reference is made to the related art.
As shown in fig. 8, the central processor 100, also sometimes referred to as a controller or operational control, may include a microprocessor or other processor device and/or logic device, which central processor 100 receives inputs and controls the operation of the various components of the electronic device 600.
The memory 140 may be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information about failure may be stored, and a program for executing the information may be stored. And the central processor 100 can execute the program stored in the memory 140 to realize information storage or processing, etc.
The input unit 120 provides an input to the central processor 100. The input unit 120 is, for example, a key or a touch input device. The power supply 170 is used to provide power to the electronic device 600. The display 160 is used for displaying display objects such as images and characters. The display may be, for example, but not limited to, an LCD display.
The memory 140 may be a solid state memory such as Read Only Memory (ROM), random Access Memory (RAM), SIM card, or the like. But also a memory which holds information even when powered down, can be selectively erased and provided with further data, an example of which is sometimes referred to as EPROM or the like. Memory 140 may also be some other type of device. Memory 140 includes a buffer memory 141 (sometimes referred to as a buffer). The memory 140 may include an application/function storage 142, the application/function storage 142 for storing application programs and function programs or a flow for executing operations of the electronic device 600 by the central processor 100.
The memory 140 may also include a data store 143, the data store 143 for storing data, such as contacts, digital data, pictures, sounds, and/or any other data used by the electronic device. The driver storage 144 of the memory 140 may include various drivers of the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, address book applications, etc.).
The communication module 110 is a transmitter/receiver 110 that transmits and receives signals via an antenna 111. A communication module (transmitter/receiver) 110 is coupled to the central processor 100 to provide an input signal and receive an output signal, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, etc., may be provided in the same electronic device. The communication module (transmitter/receiver) 110 is also coupled to a speaker 131 and a microphone 132 via an audio processor 130 to provide audio output via the speaker 131 and to receive audio input from the microphone 132 to implement usual telecommunication functions. The audio processor 130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 130 is also coupled to the central processor 100 so that sound can be recorded locally through the microphone 132 and so that sound stored locally can be played through the speaker 131.
The embodiment of the present invention also provides a computer-readable program, wherein the program when executed in an electronic device causes the computer to execute the blockchain-based face recognition method as described in the above embodiment in the electronic device.
The embodiment of the invention also provides a storage medium storing a computer readable program, wherein the computer readable program causes a computer to execute the blockchain-based face recognition described in the above embodiment in an electronic device.
Preferred embodiments of the present invention are described above with reference to the accompanying drawings. The many features and advantages of the embodiments are apparent from the detailed specification, and thus, it is intended by the appended claims to cover all such features and advantages of the embodiments which fall within the true spirit and scope thereof. Further, since numerous modifications and changes will readily occur to those skilled in the art, it is not desired to limit the embodiments of the invention to the exact construction and operation illustrated and described, and accordingly, all suitable modifications and equivalents may be resorted to, falling within the scope thereof.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principles and embodiments of the present invention have been described in detail with reference to specific examples, which are provided to facilitate understanding of the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (12)

1. A blockchain-based face recognition method, the method comprising:
receiving a face recognition service request comprising current service scene information;
acquiring face information to be recognized according to the face recognition request;
determining a corresponding pre-registered face recognition index library according to the current service scene information;
Invoking a blockchain intelligent contract face recognition service to execute face recognition according to the determined face recognition index library and the acquired face information to be recognized to generate a face recognition result;
the method for calling the blockchain intelligent contract face recognition service to execute face recognition according to the determined face recognition index library and the acquired face information to be recognized comprises the following steps:
invoking a blockchain intelligent contract face recognition service to execute a face recognition algorithm, and executing face recognition according to the determined face recognition index library and the acquired face information to be recognized;
acquiring face picture data and a face recognition algorithm in the face recognition executing process;
and training the face recognition algorithm by using the face picture data through a neural network to optimize the face recognition algorithm.
2. The blockchain-based face recognition method of claim 1, further comprising:
receiving a face registration service request comprising service scene information;
acquiring face information to be registered and client information to generate face registration information;
and calling a blockchain intelligent contract face registration service, registering according to the service scene information, the pre-established index rule and the face registration information, and generating a face identification index library corresponding to the service scene information.
3. The blockchain-based face recognition method of claim 2, wherein the invoking the blockchain intelligent contract face recognition service to perform the face recognition based on the determined face recognition index library and the collected face information to generate the face recognition result comprises:
and calling the blockchain intelligent contract face recognition service to execute face recognition according to the determined face recognition index library and the acquired face information, and generating a face recognition result comprising face registration information.
4. The blockchain-based face recognition method of claim 2, wherein the client information includes: customer name, certificate information and mobile phone number;
the service scene information comprises: a bank card number of business transaction, a transaction password and a short message verification code.
5. A blockchain-based face recognition method as in any of claims 1-3, further comprising:
receiving a preset authority management rule;
carrying out authentication on the signature certificate in the service request according to the authority management rule to generate an authentication result; wherein, the service request comprises: face recognition service request and face registration service request;
Invoking a blockchain intelligent contract service according to the authentication result; wherein, the intelligent contract service of the block chain comprises: the blockchain intelligent contract face recognition service and the blockchain intelligent contract face registration service.
6. A blockchain-based face recognition device, the device comprising:
the recognition request receiving module is used for receiving a face recognition service request comprising current service scene information;
the identification information acquisition module is used for acquiring the face information to be identified according to the face identification request;
the index library determining module is used for determining a corresponding pre-registered face recognition index library according to the current service scene information;
the face recognition module is used for calling the blockchain intelligent contract face recognition service to execute face recognition according to the determined face recognition index library and the acquired face information to be recognized to generate a face recognition result;
wherein, face recognition module includes:
the service calling unit is used for calling the blockchain intelligent contract face recognition service to execute a face recognition algorithm and executing face recognition according to the determined face recognition index library and the acquired face information to be recognized;
the process data acquisition unit is used for acquiring face picture data and a face recognition algorithm in the face recognition process;
And the algorithm optimization module is used for utilizing the face picture data to carry out neural network training on the face recognition algorithm so as to optimize the face recognition algorithm.
7. The blockchain-based face recognition device of claim 6, further comprising:
the registration request receiving module is used for receiving a face registration service request comprising service scene information;
the registration information generation module is used for acquiring face information to be registered and client information to generate face registration information;
and the registration module is used for calling the blockchain intelligent contract face registration service, registering according to the service scene information, the pre-established index rule and the face registration information, and generating a face identification index library corresponding to the service scene information.
8. A blockchain-based face recognition device as in any of claims 6-7, further comprising:
the permission rule setting module is used for receiving a preset permission management rule;
the authorization result generation module is used for performing authorization on the signature certificate in the service request according to the authority management rule to generate an authorization result; wherein, the service request comprises: face recognition service request and face registration service request;
The calling module is used for calling the blockchain intelligent contract service according to the authentication result; wherein, the intelligent contract service of the block chain comprises: the blockchain intelligent contract face recognition service and the blockchain intelligent contract face registration service.
9. A blockchain-based face recognition system, the system comprising: face recognition service application device and block chain face recognition node; wherein, the liquid crystal display device comprises a liquid crystal display device,
the face recognition service application device comprises:
the recognition request receiving module is used for receiving a face recognition service request comprising current service scene information;
the identification information acquisition module is used for acquiring the face information to be identified according to the face identification request;
the blockchain face identification node comprises:
the index library determining module is used for determining a corresponding pre-registered face recognition index library according to the current service scene information;
the face recognition module is used for executing the blockchain intelligent contract face recognition service to carry out face recognition according to the determined face recognition index library and the face recognition service request to generate a face recognition result,
wherein, face recognition module includes:
the service calling unit is used for calling the blockchain intelligent contract face recognition service to execute a face recognition algorithm and executing face recognition according to the determined face recognition index library and the acquired face information to be recognized;
The process data acquisition unit is used for acquiring face picture data and a face recognition algorithm in the face recognition process;
and the algorithm optimization module is used for utilizing the face picture data to carry out neural network training on the face recognition algorithm so as to optimize the face recognition algorithm.
10. The blockchain-based face recognition system of claim 9, wherein the system further comprises: face registration service application device and block chain registration node; wherein, the liquid crystal display device comprises a liquid crystal display device,
the face registration service application device comprises:
the registration request receiving module is used for receiving a face registration service request comprising service scene information;
the registration information generation module is used for acquiring face information to be registered and client information to generate face registration information;
and the blockchain registration node is used for executing blockchain intelligent contract face registration service to perform face registration according to the service scene information, the pre-established index rule and the face registration information, and generating a face identification index library corresponding to the service scene information.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 5 when executing the computer program.
12. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program for executing the method of any one of claims 1 to 5.
CN202010440801.5A 2020-05-22 2020-05-22 Face recognition method, device and system based on block chain Active CN111652096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010440801.5A CN111652096B (en) 2020-05-22 2020-05-22 Face recognition method, device and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010440801.5A CN111652096B (en) 2020-05-22 2020-05-22 Face recognition method, device and system based on block chain

Publications (2)

Publication Number Publication Date
CN111652096A CN111652096A (en) 2020-09-11
CN111652096B true CN111652096B (en) 2023-10-31

Family

ID=72348364

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010440801.5A Active CN111652096B (en) 2020-05-22 2020-05-22 Face recognition method, device and system based on block chain

Country Status (1)

Country Link
CN (1) CN111652096B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112418659A (en) * 2020-11-20 2021-02-26 上海魔橙网络科技有限公司 Cross-border commodity tracing method, system and device based on block chain system
CN112699799A (en) * 2020-12-30 2021-04-23 杭州趣链科技有限公司 Face recognition method, device, equipment and storage medium based on block chain
CN113361440A (en) * 2021-06-17 2021-09-07 北京金誉智能科技有限公司 Electronic consumption management system based on block chain and face recognition technology
CN113435295A (en) * 2021-06-23 2021-09-24 平安养老保险股份有限公司 Face recognition aggregation method, device, equipment and medium
CN114120546B (en) * 2021-11-22 2023-08-22 中国银行股份有限公司 Cross-line withdrawal method and device based on blockchain and face recognition

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108629337A (en) * 2018-06-11 2018-10-09 深圳市益鑫智能科技有限公司 A kind of face recognition door control system based on block chain

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11256792B2 (en) * 2014-08-28 2022-02-22 Facetec, Inc. Method and apparatus for creation and use of digital identification
US10803160B2 (en) * 2014-08-28 2020-10-13 Facetec, Inc. Method to verify and identify blockchain with user question data

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108629337A (en) * 2018-06-11 2018-10-09 深圳市益鑫智能科技有限公司 A kind of face recognition door control system based on block chain

Also Published As

Publication number Publication date
CN111652096A (en) 2020-09-11

Similar Documents

Publication Publication Date Title
CN111652096B (en) Face recognition method, device and system based on block chain
AU2021201911B2 (en) Methods and devices for acquiring and recording tracking information on blockchain
CN109165940A (en) A kind of theft preventing method, device and electronic equipment
CN105337928B (en) Method for identifying ID, safety protection problem generation method and device
CN106529938B (en) Virtual card issuing method, device and terminal
CN112199575A (en) Virtual bank account opening method, device, equipment and computer storage medium
TW202134903A (en) Information read-write method and device based on block chain
US11531984B2 (en) Method and device facilitating expansion of primary payment instruments
US20230328058A1 (en) System and method for authenticating interactions with dynamically varying digital resources linked to resource distribution devices
CN116245522A (en) Digital currency-based aggregate payment system and method
CN112085469B (en) Data approval method, device, equipment and storage medium based on vector machine model
US20230125814A1 (en) Credit score management apparatus, credit score management method, and computer readable recording medium
CN111310006B (en) Account binding method and device, terminal equipment and computer readable storage medium
CN111986025A (en) Loan transaction processing method and system based on block chain
KR102623296B1 (en) Method for managing a simple payment
CN112488860B (en) Method and system for processing group list
CN111915313B (en) Digital asset transfer control method, device and communication system for blockchain
CN117034358A (en) Service certificate processing method and device and computer equipment
CN113034117A (en) Retired soldier annual audit system and method
CN117495519A (en) Financial document processing method, apparatus, computer device and storage medium
CN117114672A (en) Account amount adjusting method, device, equipment and storage medium
CN113781028A (en) Block chain-based accumulation fund extraction method and device
CN116629797A (en) Method and device for processing resource data, computer equipment and storage medium
CN115760327A (en) Account opening method and device based on 5G message technology
CN113487422A (en) Accumulation fund extraction device and method

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
GR01 Patent grant
GR01 Patent grant