CN110610363A - Method, apparatus and medium for providing service by autonomously controlling identity information - Google Patents

Method, apparatus and medium for providing service by autonomously controlling identity information Download PDF

Info

Publication number
CN110610363A
CN110610363A CN201910794941.XA CN201910794941A CN110610363A CN 110610363 A CN110610363 A CN 110610363A CN 201910794941 A CN201910794941 A CN 201910794941A CN 110610363 A CN110610363 A CN 110610363A
Authority
CN
China
Prior art keywords
service
payment
request
application program
server
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.)
Granted
Application number
CN201910794941.XA
Other languages
Chinese (zh)
Other versions
CN110610363B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910794941.XA priority Critical patent/CN110610363B/en
Publication of CN110610363A publication Critical patent/CN110610363A/en
Application granted granted Critical
Publication of CN110610363B publication Critical patent/CN110610363B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4014Identity check for transactions
    • G06Q20/40145Biometric identity checks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method, a device, equipment and a medium for providing service by autonomously controlling identity information, wherein the method comprises the steps of obtaining an image for face recognition; processing the image to obtain characteristic information; feeding back the characteristic information to the second application program so that the second application program can obtain identity information according to the characteristic information and the local human face characteristic database, generate a service request according to the characteristic information and the identity information, and transmit the service request to the service server; the service server generates a payment request according to the service request, transmits the payment request to the payment server so that the payment server can carry out payment processing according to the payment request, feeds back the processing result to the service server, and provides service according to the processing result; and synchronizing the service database by the service server according to the mapping relation between the characteristic information and the identity information. The invention meets the appeal of the service provider to the autonomous management identity identification related data.

Description

Method, apparatus and medium for providing service by autonomously controlling identity information
Technical Field
The present invention relates to the field of identity recognition and payment, and in particular, to a method, an apparatus, and a medium for providing a service by autonomously controlling identity information.
Background
Biometric identification technology is technology for identifying an individual by using physiological characteristics or behavioral characteristics inherent to a human body through a computer. In the biometric technology, face recognition is widely used in identity recognition because of its convenience and rapidity. In most scenes, identity recognition based on face recognition has strong requirements on network environment, so that application scenes are limited.
Furthermore, in the prior art, the scheme of performing identity recognition based on face recognition is mostly a complete machine scheme, and can be implemented only by depending on complete machine equipment in cooperation with a front-end software service and a back-end software service, so that a service provider with high development capability needs to pay high price and low price to support face recognition in a wireless or weak network environment, and a service provider with high development capability is formed correspondingly to the complete self-management face recognition data, thereby fully ensuring that the self-data is not mastered by a third party, and having a strong appeal for local self-recognition, and not wishing to pay high cost.
Disclosure of Invention
In order to solve the technical problems that the requirement on the networking environment of identity recognition is too high in the prior art, and the requirement that a service provider completely autonomously manages face recognition data cannot be met, so that the data of the service provider is fully guaranteed not to be mastered by a third party, and the face recognition can be locally and autonomously performed with strong appeal, embodiments of the present invention provide a method, an apparatus, a device and a medium for providing services by autonomously managing and controlling identity information.
In one aspect, the present invention provides a method for providing a service by autonomously managing and controlling identity information, the method including:
the second application program generates a characteristic information acquisition request and transmits the characteristic information acquisition request to the first application program;
the first application program responds to the characteristic information acquisition request, acquires a face image to obtain an image for face recognition, processes the image to obtain characteristic information corresponding to the image, and feeds the characteristic information back to a second application program;
the second application program obtains identity information pointed by the image according to the feature information and a local human face feature database, generates a service request according to the feature information and the identity information, and transmits the service request to a service server;
responding to the service request, the business server generates a payment request according to the service request, and transmits the payment request to a payment server; determining a mapping relation between the feature information and the identity information according to the service request, and synchronizing a business database according to the mapping relation so as to update a local face feature database pointed by a second application program according to the business database;
the payment server carries out payment processing according to the payment request to obtain a processing result, and the processing result is fed back to the service server;
and the service server provides the service directed by the service request to a second application program directed by the service request according to the processing result.
In another aspect, the present invention provides a method for providing a service by autonomously managing and controlling identity information, the method including:
responding to a characteristic information acquisition request from a second application program, and acquiring a face image to obtain an image for face recognition;
processing the image for face recognition to obtain characteristic information corresponding to the image;
feeding back the feature information to the second application program so that the second application program can obtain identity information pointed by the image according to the feature information and a local human face feature database, generate a service request according to the feature information and the identity information, and transmit the service request to a service server; generating a payment request by the service server according to the service request, transmitting the payment request to a payment server so that the payment server can carry out payment processing according to the payment request to obtain a processing result, feeding the processing result back to the service server, and providing the service pointed by the service request to a second application program pointed by the service request by the service server according to the processing result; and the business server determines the mapping relation between the characteristic information and the identity information according to the service request, and synchronizes a business database according to the mapping relation so as to update a local human face characteristic database pointed by a second application program according to the business database.
In another aspect, the present invention provides an apparatus for providing a service by autonomously managing identity information, the apparatus including:
the image acquisition module is used for responding to a characteristic information acquisition request from a second application program and acquiring a face image to obtain an image for face recognition;
the characteristic information acquisition module is used for processing the image for face recognition to obtain characteristic information corresponding to the image;
the characteristic information feedback module is used for feeding back the characteristic information to the second application program so that the second application program can obtain the identity information pointed by the image according to the characteristic information and a local human face characteristic database, generate a service request according to the characteristic information and the identity information and transmit the service request to a business server; generating a payment request by the service server according to the service request, transmitting the payment request to a payment server so that the payment server can carry out payment processing according to the payment request to obtain a processing result, feeding the processing result back to the service server, and providing the service pointed by the service request to a second application program pointed by the service request by the service server according to the processing result; and the business server determines the mapping relation between the characteristic information and the identity information according to the service request, and synchronizes a business database according to the mapping relation so as to update a local human face characteristic database pointed by a second application program according to the business database.
In another aspect, the present invention provides a system for providing a service by autonomously managing and controlling identity information, the system including:
the second application program module is used for generating a characteristic information acquisition request and transmitting the characteristic information acquisition request to the first application program;
the first application program module is used for responding to the characteristic information acquisition request, acquiring a face image to obtain an image for face recognition, processing the image to obtain characteristic information corresponding to the image, obtaining identity information pointed by the image according to the characteristic information and a local face characteristic database, and feeding the characteristic information back to the second application program module;
the second application program module is further configured to obtain identity information pointed by the image according to the feature information and a local human face feature database, generate a service request according to the feature information and the identity information, and transmit the service request to a service server;
the business server is used for generating a payment request according to the service request and transmitting the payment request to the payment server;
the payment server is used for performing payment processing according to the payment request to obtain a processing result and feeding the processing result back to the service server; determining a mapping relation between the feature information and the identity information according to the service request, and synchronizing a business database according to the mapping relation so as to update a local face feature database pointed by a second application program according to the business database;
and the business server is also used for providing the service pointed by the service request to the second application program pointed by the service request according to the processing result.
In another aspect, the present invention provides an apparatus for providing services by autonomic management of identity information, wherein the apparatus comprises a processor and a memory, and the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement a method for providing services by autonomic management of identity information.
In another aspect, the present invention provides a computer storage medium, wherein at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the storage medium, and the at least one instruction, at least one program, set of codes, or set of instructions is loaded by a processor and executes a method for providing a service by autonomously managing identity information.
The invention provides a method, a device, equipment and a medium for providing services by autonomously controlling identity information. The invention realizes the functions of characteristic information acquisition and payment respectively based on the first application software and the corresponding payment server, and the second application software and the service server which are used as service providers can autonomously control the identification related data, thereby fully ensuring that the identification related data is not acquired by a third party, and locally carrying out the identification of the user based on the data and providing the related service for the user based on the identification result, thereby meeting the requirements of the service providers on autonomously managing the identification related data. The design of the payment server and the first application software enables the service provider to have the capability of acquiring identity information locally and further providing service for the service provider on the premise of not changing the existing service logic of the service provider and not replacing the existing equipment.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions and advantages of 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 other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic diagram of one possible implementation environment of the method for providing a service by autonomously managing identity information according to the present invention;
FIG. 2 is a flow chart of a method for providing services by autonomic management of identity information provided by the present invention;
FIG. 3 is a flow chart of the payment server completing the payment process according to the payment request to obtain the process result;
FIG. 4 is a logic diagram of a method for providing a service by autonomic control of identity information according to the present invention;
FIG. 5 is a flowchart of a method for providing services by autonomic control of identity information provided by the present invention;
FIG. 6 is a flow chart of the present invention for acquiring a face image to obtain an image for face recognition;
FIG. 7 is a flow chart of in vivo examination of a target image according to the present invention;
FIG. 8 is a flowchart illustrating processing of the image for face recognition to obtain feature information according to the present invention;
fig. 9 is a block diagram of an apparatus for providing a service by autonomously managing identity information according to the present invention;
FIG. 10 is a block diagram of a system for providing services by autonomic management of identity information provided by the present invention;
fig. 11 is a hardware structural diagram of an apparatus for implementing the method provided by the embodiment of the 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 obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In order to make the objects, technical solutions and advantages disclosed in the embodiments of the present invention more clearly apparent, the embodiments of the present invention are described in further detail below with reference to the accompanying drawings and the embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the embodiments of the invention and are not intended to limit the embodiments of the invention.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present embodiment, "a plurality" means two or more unless otherwise specified.
In order to clearly explain the technical solutions described in the embodiments of the present invention, the embodiments of the present invention first explain related terms, technical background, and technical environment:
the embodiment of the invention provides a method for providing service through autonomous control of identity information. First, the basic embodiment of the present invention provides one possible implementation environment of a method for providing a service by autonomously managing identity information.
Referring to fig. 1, the implementation environment includes: client 01, payment server 03, business server 05 and business database 07.
The client 01 may include: the physical devices may also include software running in the physical devices, such as applications, and the like. At least two software are run in the Client 01, a first software and a second software, the first software can be connected with the payment Server 03 based on Browser/Server mode (Browser/Server, B/S) or Client/Server mode (Client/Server, C/S), the second software can be connected with the service Server 05 based on Browser/Server mode (Browser/Server, B/S) or Client/Server mode (Client/Server, C/S).
The service database 07 may be disposed inside or outside the service server 05 as a functional module of the service server 05. The payment server 03 is in communication connection with the service server 05.
The second software generates a feature information acquisition request and transmits the feature information acquisition request to the first software to obtain feature information fed back by the first software, obtains identity information pointed by the image according to the feature information and a local face feature database, generates a service request according to the identity information, and transmits the service request to the service server 05.
Further, the second software also synchronizes the obtained identity information and feature information to the service database 07 correspondingly, so that the second software also completes the update of the local face feature database through the interaction with the service database 07.
The first software responds to a characteristic information acquisition request of the second software, acquires an image for face recognition, processes the image to obtain characteristic information, and feeds the characteristic information back to the second software.
The service server 05 interacts with the payment server 03 according to the service request, so that the payment server 03 can pay according to the service request, and the payment result is fed back to the service server 05, so that the service server 05 can provide the service directed by the service request to the second software in response to the payment result.
In order to implement the method for providing a service by autonomously managing identity information, the client 01 includes at least a camera 101, a processor 102, and a memory 103. The camera 101 is used to capture images, such as depth images and color images; the memory 103 is used for storing data, such as images acquired by the camera 101, instruction programs required by the processor 102 when executing, and the like; the processor 102 is connected to the memory 103 and the camera 101 for controlling the camera 101 and executing a program of instructions stored within the memory 103. It is understood that the instruction storage 105 module inside the memory 103 already contains the first software and the second software for executing the method for providing the service by autonomously managing the identity information, and the image acquired by the camera 101 is stored in the image storage 104 module.
The payment server 03 and the service server 05 may each include a server operating independently, or a distributed server, or a server cluster composed of a plurality of servers.
Referring to fig. 2, a flowchart of a method for providing a service by autonomic management of identity information is shown, which may be implemented in the implementation environment of fig. 1 as an execution subject, and may include:
s101, the second application program generates a characteristic information acquisition request, and the characteristic information acquisition request is transmitted to the first application program.
Specifically, in the embodiment of the present invention, the first application program and the second application program may be executed in the same or different clients, and the first application program and the second application program may be independent executable programs, or may be a set of complete execution logic bodies in a certain independent executable program, and may be run in the clients in the form of a static link library, a dynamic link library, an installation package, and the like.
In an embodiment of the present invention, the first application corresponds to a first software in the implementation environment, which may provide a feature information obtaining service for one or more second applications; the second application corresponds to a second software in the implementation environment, and different second applications may provide different business services to the user.
And S103, the first application program responds to the characteristic information acquisition request, acquires a face image to obtain an image for face recognition, processes the image to obtain characteristic information corresponding to the image, and feeds the characteristic information back to a second application program.
And S105, the second application program obtains identity information pointed by the image according to the feature information and a local human face feature database, generates a service request according to the feature information and the identity information, and transmits the service request to a service server.
In particular, the service request may include a user identification, a service identification, feature information, identity information, and payment resources. The user identifier and the service identifier are used for instructing a business server to provide a service pointed by the service identifier to a second application program pointed by the user identifier, the payment resource and the identity information are used for instructing a payment server to complete payment, the payment resource is a cost required to be provided for enjoying the service, and the payment resource can be funds or virtual articles, such as red packets and virtual coins.
Specifically, the service server has a corresponding relationship with the second application program, and the service server is configured to provide the second application program with a service required by the second application program.
S107, responding to the service request, the service server generates a payment request according to the service request, and transmits the payment request to a payment server; and determining a mapping relation between the feature information and the identity information according to the service request, and synchronizing a business database according to the mapping relation so as to update a local human face feature database pointed by a second application program according to the business database.
In other embodiments, the service request may further include an image for performing face recognition, and the service server synchronizes the service database according to a mapping relationship between the image for performing face recognition, the feature information, and the identity information.
In one possible embodiment, the payment server is configured to provide the service server with a payment service required for completing the service, for example, the payment server may provide a deduction service.
In a preferred embodiment, in order to reduce the probability of the service providing process being attacked and ensure the security of the service providing process as a whole, before the service server transmits the payment request to the payment server, the method further includes:
s1, acquiring related information of the second application program.
Specifically, the related information may be software information such as address information, domain name information, root user information, and the like of the second application program, device information of a device of the client where the second application program is located, current location information, networking information, and the like of the device of the client where the second application program is located. The related information in the embodiment of the present invention generally refers to information that can be used for determining the validity of the second application program, and is not limited to a specific implementation form thereof.
And S3, judging the legality of the second application program based on the related information of the second application program.
S5, if the code is legal, executing the step S107; otherwise, generating a service providing failure notice, feeding back the service providing failure notice to the second application program, and stopping the subsequent steps.
Specifically, the steps of obtaining the related information and performing validity judgment based on the related information can reduce the probability of successful response to an illegal service request. For example, if the related information is located in the blacklist of the service server, it is determined that the second application is an illegal application, and service is denied to the illegal application.
And S109, the payment server performs payment processing according to the payment request to obtain a processing result, and feeds the processing result back to the service server.
In one possible embodiment, the payment server performs payment processing according to the payment request to obtain a processing result, as shown in fig. 3, including:
s1091, the payment server determines a first account corresponding to the identity information according to the identity information in the payment request.
S1093, the payment server determines a second account and payment resources according to the payment request.
In different implementation scenarios, the second account may be determined according to one or a combination of the service server related information and the service identifier, where the second account is an account of the service provider.
In a preferred embodiment, the payment request further includes wind control data, where the wind control data may be obtained by the first application program, the second application program, and/or the service server, and correspondingly, before the determining, by the payment server, the second account and the payment resource according to the payment request, the method further includes:
and S10, judging whether the payment request is legal or not according to the wind control data and a preset legal judgment algorithm.
The wind control data in the embodiment of the invention includes, but is not limited to, time, place, payment resource type, payment resource value, identity information, service server related information and the like.
S30, if the code is legal, executing a step S1093; otherwise, generating a withholding failure notice.
Specifically, the steps of acquiring the wind control data and judging the validity based on the wind control data can reduce the probability of successful response to an illegal service request, and improve the transaction safety. For example, if the service server is a server providing dinner service for the user and the current time displayed by the wind control data is six am, it is obvious that the payment request is abnormal, and the response is rejected.
S1095, the payment server transfers the payment resource from the first account to the second account.
S1097, if the transfer is successful, generating a withholding success notification.
S1099, if the transfer fails, generating a withholding failure notice.
S1011, the service server provides the service pointed by the service request to the second application program pointed by the service request according to the processing result.
Specifically, if the processing result includes a withholding failure notification, the service server refuses to provide service to the second application program; and if the processing result comprises a withholding success notification, the service server provides service for the second application program.
The embodiment of the invention also comprises a local face feature database updating method, which comprises the following steps:
and S200, acquiring the current version number of the local face feature library.
S400, acquiring the latest version number of a service database, wherein the service database points to the service server.
S600, if the latest version number is different from the current version number, updating the local human face feature database according to a service database.
In a preferred embodiment, in order to reduce the probability of the local facial feature database being attacked and improve the security of the local facial feature database, the capacity of the local facial feature database may be limited to prevent the local facial feature database from generating boundary leakage.
In one possible embodiment, the local face database may be built based on SQLite, which is a lightweight database, a relational database management system that complies with ACID (Consistency) Isolation dual, which is contained in a relatively small C-base, with the significant advantage of low resource usage.
In a preferred embodiment, in order to reduce the probability of leakage of the local facial feature database corresponding to the second application program, the local facial feature database is strongly correlated with the version corresponding to the second application program, and if and only if the local facial feature database is matched with the version corresponding to the second application program, the local facial feature database can feed back correct identity information corresponding to the feature information to the second application program.
Specifically, the second application program has a read-write permission for the local facial feature database, and the local facial feature database is in communication connection with the second application program, supports access of the second application program, and dynamically changes in response to an instruction of the second application program.
The embodiment of the invention discloses a method for providing services by autonomously controlling identity information, and as shown in fig. 4, the embodiment of the invention respectively realizes the functions of feature information acquisition and payment based on first application software and a corresponding payment server, and second application software and a service server which are used as service providers can autonomously control identity identification related data, so that the identity identification related data is fully ensured not to be acquired by a third party, the identity identification of users is locally carried out based on the data, the related services are provided for the users based on the identity identification results, and the demands of the service providers on the autonomously managed identity identification related data are met. The design of the payment server and the first application software enables the service provider to have the capability of acquiring identity information locally and further providing service for the service provider on the premise of not changing the existing service logic of the service provider and not replacing the existing equipment.
The embodiment of the invention can be widely applied to the scenes such as public transport, subway and the like with strong requirements on network or real-time performance. One feasible application scenario is given in the embodiment of the invention:
the application place is as follows: school dining room
The first application program: obtaining the image of the buyer and the corresponding characteristic information
The service provided by the second application: and identifying the identity information of the rice buyer according to the characteristic information, acquiring the identity information of a related user (a parent or other guardians) of the rice buyer in view of the fact that the rice buyer has no payment capability, and providing a rice buying service for the rice buyer by taking the identity information of the related user as the identity information pointed by the image.
The payment server: the meal fee of the associated user account is deducted.
A service server: and providing the meal buying service to the second application program.
Referring to fig. 5, a flowchart of a method for providing a service by autonomic management of identity information is shown, the method being implemented by a first application in the implementation environment of fig. 1 as an execution subject, and the method comprising:
s201, in response to a characteristic information acquisition request from a second application program, acquiring a face image to obtain an image for face recognition.
In a feasible embodiment, a 3D camera can be called to collect a face image, and the 3D camera can obtain a color image containing face features and a depth image corresponding to the color image. In another feasible embodiment, the common shot image can be called to obtain a color image containing human face features, and a depth image corresponding to the color image is generated according to a preset algorithm.
In a preferred embodiment, acquiring a face image to obtain an image for face recognition, as shown in fig. 6, includes:
and S2011, collecting a plurality of images, obtaining at least one face image according to the plurality of images, and grading the face image.
Specifically, each image includes a color map and a depth map corresponding thereto.
In practical application, after a plurality of images of the same person are acquired, whether the face exists in the images can be detected firstly. And if no face exists, filtering the image to obtain at least one face image. Specifically, each face image may be scored, and the score is used for reflecting the quality of the face image.
In one possible embodiment, the score is calculated according to one or more of face size, face pose angle, blur degree of picture, brightness, contrast, background environment, and face condition.
And S2013, determining the face image with the score larger than a preset threshold value as a target image, and performing living body inspection on the target image.
In order to prevent an illegal user from using a face model to obtain a service, the embodiment of the invention performs a living body test at one end of a first application program. In one possible embodiment, the performing the in-vivo examination on the target image, as shown in fig. 7, includes:
s20131, determining the face image with the score larger than a preset threshold value as a target image, and obtaining face contour coordinates in a color map in the target image.
S20133, generating a face detection area in the depth map corresponding to the color map according to the face contour coordinates.
S20135, calculating standard deviations of all pixel points in the face detection area in the depth map.
S20137, if the standard deviation exceeds a preset threshold value, the biopsy is passed.
S2015, determining an image for face recognition from the target image through the live body examination.
Specifically, if there is only one target image passing through the in-vivo examination, it is determined as an image for face recognition; and if the number of the target images passing the living body examination is more than one, determining the target image with the highest score as the image for face recognition.
And S203, processing the image for face recognition to obtain characteristic information corresponding to the image.
In a possible embodiment, the processing the image for face recognition to obtain feature information, as shown in fig. 8, includes:
s2031, extracting the key point positions of the human face in the color image in the image for human face recognition by using a key point positioning method based on deep learning.
Specifically, the key points of the human face are five positions, namely a left eye, a right eye, a nose tip and a left mouth corner and a right mouth corner.
S2033, color space transformation is carried out on the color image to obtain a gray scale space image.
S2035, affine transformation is carried out on the gray level space image according to the positions of the face key points, so that the face key points are located at specific positions, and a target face image with a specific size is obtained.
S2037, extracting the features of the target face image through a pre-trained feature information extraction network to obtain a feature extraction result.
The feature extraction result may be used as feature information corresponding to the image. However, in order to further improve the security of the technical solution according to the embodiment of the present invention, in a preferred embodiment, the processing the image for face recognition to obtain feature information further includes:
s2039, adding random salt into the feature extraction result, and taking the feature extraction result after adding the random salt as the feature information corresponding to the image.
The characteristic information has certain safety due to the addition of the random salt information, the true identity information pointed by the characteristic information cannot be obtained even if the characteristic information is stolen, a random salt addition algorithm can refer to the prior art, and the embodiment of the invention is not described in detail.
S205, feeding back the feature information to the second application program so that the second application program can obtain identity information pointed by the image according to the feature information and a local human face feature database, generating a service request according to the feature information and the identity information, and transmitting the service request to a service server; generating a payment request by the service server according to the service request, transmitting the payment request to a payment server so that the payment server can carry out payment processing according to the payment request to obtain a processing result, feeding the processing result back to the service server, and providing the service pointed by the service request to a second application program pointed by the service request by the service server according to the processing result; and the business server determines the mapping relation between the characteristic information and the identity information according to the service request, and synchronizes a business database according to the mapping relation so as to update a local human face characteristic database pointed by a second application program according to the business database.
The embodiment of the invention mainly describes the implementation scheme of the method for providing the service by autonomously managing and controlling the identity information, and the relevant logic related to feature extraction in the first application program can be written by using C language to improve the safety of the first application program. In a preferred embodiment, the first application program may be updated based on an obfuscation algorithm, so as to further improve the security of the first application program.
The present invention provides a device for providing a service by autonomously managing and controlling identity information, as shown in fig. 9, the device includes:
an image acquisition module 301, configured to, in response to a feature information acquisition request from a second application program, acquire a face image to obtain an image for face recognition;
a feature information obtaining module 303, configured to process the image for face recognition to obtain feature information corresponding to the image;
a feature information feedback module 305, configured to feed back the feature information to the second application program, so that the second application program obtains, according to the feature information and a local human face feature database, identity information to which the image points, generates a service request according to the feature information and the identity information, and transmits the service request to a service server; generating a payment request by the service server according to the service request, transmitting the payment request to a payment server so that the payment server can carry out payment processing according to the payment request to obtain a processing result, feeding the processing result back to the service server, and providing the service pointed by the service request to a second application program pointed by the service request by the service server according to the processing result; and the business server determines the mapping relation between the characteristic information and the identity information according to the service request, and synchronizes a business database according to the mapping relation so as to update a local human face characteristic database pointed by a second application program according to the business database.
In another aspect, the present invention provides a system for providing a service by autonomously managing and controlling identity information, as shown in fig. 10, the system including:
the second application program module 01 is used for generating a characteristic information acquisition request and transmitting the characteristic information acquisition request to the first application program;
the first application program module 02 is used for responding to the characteristic information acquisition request, acquiring a face image to obtain an image for face recognition, processing the image to obtain characteristic information corresponding to the image, obtaining identity information pointed by the image according to the characteristic information and a local face characteristic database, and feeding the characteristic information back to the second application program module;
the second application program module 01 is further configured to obtain identity information pointed by the image according to the feature information and a local human face feature database, generate a service request according to the identity information, and transmit the service request to a service server;
the service server 03 is configured to generate a payment request according to the feature information and the service request, and transmit the payment request to a payment server; determining a mapping relation between the feature information and the identity information according to the service request, and synchronizing a business database according to the mapping relation so as to update a local face feature database pointed by a second application program according to the business database;
the payment server 04 is used for performing payment processing according to the payment request to obtain a processing result, and feeding the processing result back to the service server;
the service server 03 is further configured to provide the service pointed by the service request to the second application program pointed by the service request according to the processing result.
Specifically, the embodiments of the system and the method for providing services by autonomously controlling identity information are all based on the same inventive concept. For details, please refer to the method embodiment, which is not described herein.
The embodiment of the invention also provides a computer storage medium, and the computer storage medium can store a plurality of instructions. The instructions may be adapted to be loaded by a processor and to perform a method of providing a service by autonomic management of identity information according to an embodiment of the present invention, the method comprising at least the steps of:
a method of providing a service by autonomously managing identity information, the method comprising:
the second application program generates a characteristic information acquisition request and transmits the characteristic information acquisition request to the first application program;
the first application program responds to the characteristic information acquisition request, acquires a face image to obtain an image for face recognition, processes the image to obtain characteristic information corresponding to the image, and feeds the characteristic information back to a second application program;
the second application program obtains identity information pointed by the image according to the feature information and a local human face feature database, generates a service request according to the feature information and the identity information, and transmits the service request to a service server;
responding to the service request, the business server generates a payment request according to the service request, and transmits the payment request to a payment server; determining a mapping relation between the feature information and the identity information according to the service request, and synchronizing a business database according to the mapping relation so as to update a local face feature database pointed by a second application program according to the business database;
the payment server carries out payment processing according to the payment request to obtain a processing result, and the processing result is fed back to the service server;
and the service server provides the service directed by the service request to a second application program directed by the service request according to the processing result.
In a preferred embodiment, the service request further includes an image for performing face recognition, and the service server synchronizes the service database according to a mapping relationship between the image for performing face recognition, the feature information, and the identity information.
In a preferred embodiment, the payment server performs payment processing according to the payment request to obtain a processing result, including:
the payment server determines a first account corresponding to the identity information according to the identity information in the payment request;
the payment server determines a second account and payment resources according to the payment request;
the payment server transferring the payment resource from the first account to the second account;
if the transfer is successful, generating a withholding success notification;
if the transfer fails, a withholding failure notification is generated.
In a preferred embodiment, the payment request further includes wind control data, where the wind control data may be obtained by the first application program, the second application program, and/or the service server, and correspondingly, before the determining, by the payment server, the second account and the payment resource according to the payment request, the method further includes:
judging whether the payment request is legal or not according to the wind control data and a preset legal judgment algorithm;
if not, refusing to respond to the payment request and generating a withholding failure notice.
In a preferred embodiment, the second application has a read-write right for the local facial feature database, and the local facial feature database is in communication connection with the second application, supports access of the second application, and is dynamically changed in response to an instruction of the second application.
Further, fig. 11 shows a hardware structure diagram of an apparatus for implementing the method provided by the embodiment of the present invention, and the apparatus may participate in forming or containing the device or system provided by the embodiment of the present invention. As shown in fig. 11, the device 10 may include one or more (shown as 102a, 102b, … …, 102 n) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 104 for storing data, and a transmission device 106 for communication functions. Besides, the method can also comprise the following steps: a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a network interface, a power source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 11 is only an illustration and is not intended to limit the structure of the electronic device. For example, device 10 may also include more or fewer components than shown in FIG. 11, or have a different configuration than shown in FIG. 11.
It should be noted that the one or more processors 102 and/or other data processing circuitry described above may be referred to generally herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part in software, hardware, firmware, or any combination thereof. Further, the data processing circuitry may be a single, stand-alone processing module, or incorporated in whole or in part into any of the other elements in the device 10 (or mobile device). As referred to in the embodiments of the application, the data processing circuit acts as a processor control (e.g. selection of a variable resistance termination path connected to the interface).
The memory 104 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the methods described in the embodiments of the present invention, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, so as to implement the above-described method for providing services by autonomously managing identity information. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 104 may further include memory located remotely from processor 102, which may be connected to device 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of such networks may include wireless networks provided by the communication provider of the device 10. In one example, the transmission device 106 includes a network adapter (NIC) that can be connected to other network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the device 10 (or mobile device).
It should be noted that: the precedence order of the above embodiments of the present invention is only for description, and does not represent the merits of the embodiments. And specific embodiments thereof have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the device and server embodiments, since they are substantially similar to the method embodiments, the description is simple, and the relevant points can be referred to the partial description of the method embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A method for providing a service by autonomously managing identity information, the method comprising:
the second application program generates a characteristic information acquisition request and transmits the characteristic information acquisition request to the first application program;
the first application program responds to the characteristic information acquisition request, acquires a face image to obtain an image for face recognition, processes the image to obtain characteristic information corresponding to the image, and feeds the characteristic information back to a second application program;
the second application program obtains identity information pointed by the image according to the feature information and a local human face feature database, generates a service request according to the feature information and the identity information, and transmits the service request to a service server;
responding to the service request, the business server generates a payment request according to the service request, and transmits the payment request to a payment server; determining a mapping relation between the feature information and the identity information according to the service request, and synchronizing a business database according to the mapping relation so as to update a local face feature database pointed by a second application program according to the business database;
the payment server carries out payment processing according to the payment request to obtain a processing result, and the processing result is fed back to the service server;
and the service server provides the service directed by the service request to a second application program directed by the service request according to the processing result.
2. The method of claim 1, wherein the service request further includes an image for face recognition, and the service server synchronizes the service database according to a mapping relationship between the image for face recognition, the feature information, and the identity information.
3. The method of claim 1, wherein the payment server performs payment processing according to the payment request to obtain a processing result, comprising:
the payment server determines a first account corresponding to the identity information according to the identity information in the payment request;
the payment server determines a second account and payment resources according to the payment request;
the payment server transferring the payment resource from the first account to the second account;
if the transfer is successful, generating a withholding success notification;
if the transfer fails, a withholding failure notification is generated.
4. The method of claim 3, wherein the payment request further includes wind control data, the wind control data is available through the first application program, the second application program and/or the service server, and accordingly, before the payment server determines the second account and the payment resource according to the payment request, further comprising:
judging whether the payment request is legal or not according to the wind control data and a preset legal judgment algorithm;
if not, refusing to respond to the payment request and generating a withholding failure notice.
5. The method of claim 4, wherein:
the second application program has read-write permission to the local face feature database, the local face feature database is in communication connection with the second application program, supports access of the second application program, and responds to instruction dynamic change of the second application program.
6. A method for providing a service by autonomously managing identity information, the method comprising:
responding to a characteristic information acquisition request from a second application program, and acquiring a face image to obtain an image for face recognition;
processing the image for face recognition to obtain characteristic information corresponding to the image;
feeding back the feature information to the second application program so that the second application program can obtain identity information pointed by the image according to the feature information and a local human face feature database, generate a service request according to the feature information and the identity information, and transmit the service request to a service server; generating a payment request by the service server according to the service request, transmitting the payment request to a payment server so that the payment server can carry out payment processing according to the payment request to obtain a processing result, feeding the processing result back to the service server, and providing the service pointed by the service request to a second application program pointed by the service request by the service server according to the processing result; and the business server determines the mapping relation between the characteristic information and the identity information according to the service request, and synchronizes a business database according to the mapping relation so as to update a local human face characteristic database pointed by a second application program according to the business database.
7. An apparatus for providing a service by autonomously managing identity information, the apparatus comprising:
the image acquisition module is used for responding to a characteristic information acquisition request from a second application program and acquiring a face image to obtain an image for face recognition;
the characteristic information acquisition module is used for processing the image for face recognition to obtain characteristic information corresponding to the image;
the characteristic information feedback module is used for feeding back the characteristic information to the second application program so that the second application program can obtain the identity information pointed by the image according to the characteristic information and a local human face characteristic database, generate a service request according to the characteristic information and the identity information and transmit the service request to a business server; generating a payment request by the service server according to the service request, transmitting the payment request to a payment server so that the payment server can carry out payment processing according to the payment request to obtain a processing result, feeding the processing result back to the service server, and providing the service pointed by the service request to a second application program pointed by the service request by the service server according to the processing result; and the business server determines the mapping relation between the characteristic information and the identity information according to the service request, and synchronizes a business database according to the mapping relation so as to update a local human face characteristic database pointed by a second application program according to the business database.
8. A system for providing a service by autonomously managing identity information, the system comprising:
the second application program module is used for generating a characteristic information acquisition request and transmitting the characteristic information acquisition request to the first application program;
the first application program module is used for responding to the characteristic information acquisition request, acquiring a face image to obtain an image for face recognition, processing the image to obtain characteristic information corresponding to the image, obtaining identity information pointed by the image according to the characteristic information and a local face characteristic database, and feeding the characteristic information back to the second application program module;
the second application program module is further configured to obtain identity information pointed by the image according to the feature information and a local human face feature database, generate a service request according to the feature information and the identity information, and transmit the service request to a service server;
the business server is used for generating a payment request according to the service request and transmitting the payment request to the payment server;
the payment server is used for performing payment processing according to the payment request to obtain a processing result and feeding the processing result back to the service server; determining a mapping relation between the feature information and the identity information according to the service request, and synchronizing a business database according to the mapping relation so as to update a local face feature database pointed by a second application program according to the business database;
and the business server is also used for providing the service pointed by the service request to the second application program pointed by the service request according to the processing result.
9. An apparatus for providing services by autonomic management of identity information, the apparatus comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, the at least one instruction, the at least one program, the set of codes, or the set of instructions being loaded and executed by the processor to implement a method of providing services by autonomic management of identity information according to any of claims 1 to 5, or a method of providing services by autonomic management of identity information according to claim 6.
10. A computer storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement a method of providing a service by autonomic management of identity information as recited in any one of claims 1 to 5, or to implement a method of providing a service by autonomic management of identity information as recited in claim 6.
CN201910794941.XA 2019-08-27 2019-08-27 Method, device and medium for providing service through self-management control identity information Active CN110610363B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910794941.XA CN110610363B (en) 2019-08-27 2019-08-27 Method, device and medium for providing service through self-management control identity information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910794941.XA CN110610363B (en) 2019-08-27 2019-08-27 Method, device and medium for providing service through self-management control identity information

Publications (2)

Publication Number Publication Date
CN110610363A true CN110610363A (en) 2019-12-24
CN110610363B CN110610363B (en) 2023-06-09

Family

ID=68890543

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910794941.XA Active CN110610363B (en) 2019-08-27 2019-08-27 Method, device and medium for providing service through self-management control identity information

Country Status (1)

Country Link
CN (1) CN110610363B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114554079A (en) * 2022-01-11 2022-05-27 浙江大华技术股份有限公司 Intelligent service management method and intelligent service management system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003100710A1 (en) * 2002-05-22 2003-12-04 A4Vision Methods and systems for detecting and recognizing objects in a controlled wide area
CN103473676A (en) * 2013-09-16 2013-12-25 江苏浩顺智能科技有限公司 Face recognition payment system
CN106203332A (en) * 2016-07-08 2016-12-07 北京光年无限科技有限公司 Method and system based on the change of intelligent robot visual identity face facial expression
CN107798307A (en) * 2017-10-31 2018-03-13 努比亚技术有限公司 A kind of public transport expense quick payment method, apparatus and computer-readable recording medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003100710A1 (en) * 2002-05-22 2003-12-04 A4Vision Methods and systems for detecting and recognizing objects in a controlled wide area
CN103473676A (en) * 2013-09-16 2013-12-25 江苏浩顺智能科技有限公司 Face recognition payment system
CN106203332A (en) * 2016-07-08 2016-12-07 北京光年无限科技有限公司 Method and system based on the change of intelligent robot visual identity face facial expression
CN107798307A (en) * 2017-10-31 2018-03-13 努比亚技术有限公司 A kind of public transport expense quick payment method, apparatus and computer-readable recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114554079A (en) * 2022-01-11 2022-05-27 浙江大华技术股份有限公司 Intelligent service management method and intelligent service management system

Also Published As

Publication number Publication date
CN110610363B (en) 2023-06-09

Similar Documents

Publication Publication Date Title
EP3531649B1 (en) Method and device for allocating augmented reality-based virtual objects
CN107680684B (en) Method and device for acquiring information
CN104995865B (en) Service based on sound and/or face recognition provides
CN110675154B (en) Service providing method, device, equipment and medium based on face recognition
US10789592B2 (en) Transaction confirmation based on user attributes
CN108053046B (en) Registration method and device, storage medium and electronic equipment
CN110866977B (en) Augmented reality processing method, device, system, storage medium and electronic equipment
EP3118803A1 (en) Card registration method for payment service and mobile electronic device implementing the same
CN108491823B (en) Method and device for generating human eye recognition model
EP3349145A1 (en) Electronic device for iris recognition and operating method thereof
CA2898749A1 (en) Systems and methods for authenticating a user based on a biometric model associated with the user
US10356306B2 (en) Electronic device connected to camera and method of controlling same
EP3220339A1 (en) Payment transaction method and electronic device therefor
US10806356B2 (en) Electronic device and method for measuring heart rate based on infrared rays sensor using the same
CN108399401B (en) Method and device for detecting face image
CN108173811A (en) The card register method of electronic device and the electronic device
CN109145786B (en) Picture identification method, device, equipment, medium and product
CN113127829A (en) Business processing method and system, wearable device and computer readable storage medium
US10091436B2 (en) Electronic device for processing image and method for controlling the same
CN110674695B (en) Service providing method, device, equipment and medium based on identity information identification
CN110610363A (en) Method, apparatus and medium for providing service by autonomously controlling identity information
CN112037305B (en) Method, device and storage medium for reconstructing tree-like organization in image
EP3346672A1 (en) Electronic device and application sharing method thereof
CN112258647A (en) Map reconstruction method and device, computer readable medium and electronic device
CN210691314U (en) Access control system and login device based on in vivo detection

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40019361

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant