CN111881433B - Resource transfer method and device based on verification gesture and computer equipment - Google Patents

Resource transfer method and device based on verification gesture and computer equipment Download PDF

Info

Publication number
CN111881433B
CN111881433B CN202010734525.3A CN202010734525A CN111881433B CN 111881433 B CN111881433 B CN 111881433B CN 202010734525 A CN202010734525 A CN 202010734525A CN 111881433 B CN111881433 B CN 111881433B
Authority
CN
China
Prior art keywords
resource
value
terminal
verification
gesture information
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
CN202010734525.3A
Other languages
Chinese (zh)
Other versions
CN111881433A (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.)
Ping An Securities Co Ltd
Original Assignee
Ping An Securities 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 Ping An Securities Co Ltd filed Critical Ping An Securities Co Ltd
Priority to CN202010734525.3A priority Critical patent/CN111881433B/en
Publication of CN111881433A publication Critical patent/CN111881433A/en
Application granted granted Critical
Publication of CN111881433B publication Critical patent/CN111881433B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • 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
    • 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/107Static hand or arm
    • G06V40/11Hand-related biometrics; Hand pose recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • General Health & Medical Sciences (AREA)
  • Biophysics (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Biomedical Technology (AREA)
  • Mathematical Physics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Finance (AREA)
  • Evolutionary Computation (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Computer Hardware Design (AREA)

Abstract

The application discloses a resource transfer method, a device, computer equipment and a storage medium based on a verification gesture, wherein the method comprises the following steps: acquiring a resource transfer request sent by a first terminal; acquiring a numerical value of a first resource and a numerical value of a second resource; inputting the numerical value of the first resource and the numerical value of the second resource into a resource comparison model to obtain a comparison result; if the comparison result is that the resource equalization processing is required, reducing the first resource value by a first preset value; acquiring appointed gesture information, and establishing a third resource in a server; receiving a calling request of a second terminal to a third resource; comparing the appointed gesture information with the verification gesture information; if the appointment gesture information is the same as the verification gesture information, the value of the third resource is decreased by a second preset value, and the value of the second resource is increased by the second preset value. Thereby reducing the possibility of resource miscarriage. The application also relates to a blockchain technology, and the resource comparison model can be stored in a blockchain.

Description

Resource transfer method and device based on verification gesture and computer equipment
Technical Field
The present application relates to the field of computers, and in particular, to a method and an apparatus for resource transfer based on a verification gesture, a computer device, and a storage medium.
Background
The computer technology based on the internet is widely popularized, and is beneficial to production and life. Thus, resource transfer can be achieved using computer technology. Such as computer power, real materials (e.g., ore inventory, etc.), virtual currency, etc. In resource transfer, for example, although the first terminal transfers resources to the second terminal, the first terminal determines that the transfer destination is incorrect and transfers the resources to the third terminal. The conventional scheme is difficult to effectively avoid the error transfer.
Disclosure of Invention
The application mainly aims to provide a resource transfer method, a resource transfer device, a computer device and a storage medium based on a verification gesture, and aims to reduce the possibility of resource mis-transfer.
In order to achieve the above object, the present application provides a resource transfer method based on a verification gesture, which is applied to a server, and includes:
acquiring a resource transfer request sent by a first terminal, wherein the resource transfer request is used for transferring a first resource corresponding to the first terminal to a second resource corresponding to a second terminal;
acquiring a numerical value of a first resource corresponding to a first terminal and acquiring a numerical value of a second resource corresponding to a second terminal;
calling a preset resource comparison model, and inputting the numerical value of the first resource and the numerical value of the second resource into the resource comparison model to obtain a comparison result output by the resource comparison model, wherein the comparison result comprises the resource equalization processing or the resource equalization processing is not required;
judging whether the comparison result is that resource equalization processing is required;
if the comparison result is that resource equalization processing is required, reducing the first resource value by a first preset value, and requiring the first terminal to send appointed gesture information;
acquiring appointed gesture information sent by the first terminal, establishing a third resource in the server, setting the value of the third resource as the first preset value, and giving the second terminal a request permission for calling the third resource;
receiving a call request of the second terminal for the third resource, wherein the call request carries verification gesture information input by a user corresponding to the second terminal, and the verification gesture information is input by the user corresponding to the second terminal while the call request is initiated;
comparing the appointed gesture information with the verification gesture information to judge whether the appointed gesture information is the same as the verification gesture information;
if the appointment gesture information is the same as the verification gesture information, reducing the value of the third resource by a second preset value and increasing the value of the second resource by the second preset value according to the calling request, wherein the second preset value is smaller than or equal to the first preset value.
Further, the calling a preset resource comparison model, and inputting the value of the first resource and the value of the second resource into the resource comparison model to obtain a comparison result output by the resource comparison model, where the comparison result includes a step that resource equalization processing is required or is not required, and includes:
acquiring a plurality of historical resource transfer data initiated by a first terminal to a plurality of historical receiving terminals, wherein each historical resource transfer data comprises a value pair consisting of a first historical value and a second historical value, the first historical value refers to a value of a first resource corresponding to the first terminal when the historical resources are transferred, and the second historical value refers to a value of a second resource corresponding to the historical receiving terminals when the historical resources are transferred;
acquiring the quantity of the plurality of historical resource transfer data, and judging whether the quantity of the plurality of historical resource transfer data is greater than a preset quantity threshold value or not;
if the quantity of the plurality of historical resource transfer data is larger than a preset quantity threshold value, constructing a sample set comprising a plurality of value pairs, and dividing the sample set into a training set and a verification set according to a preset proportion;
calling a preset neural network model, and training the neural network model by using the training set to obtain an intermediate model;
verifying the intermediate model by using the verification set to obtain a verification result, and judging whether the verification result is passed;
and if the verification result is that the verification is passed, recording the intermediate model as the resource comparison model.
Further, the step of inputting the value of the first resource and the value of the second resource into the resource comparison model to obtain the comparison result output by the resource comparison model includes:
drawing a first curve of the value of the first resource corresponding to the first terminal changing along with time and drawing a second curve of the value of the second resource corresponding to the second terminal changing along with time by using the resource comparison model;
according to a preset curve point selection method, selecting a plurality of first curve points from the first curve, and selecting a plurality of second curve points from the second curve, wherein the values of the plurality of first curve points and the plurality of second curve points on a time axis are correspondingly equal;
according to the formula: m1= min (a 1/b1, a2/b 2., an/bn), M2= max (a 1/b1, a2/b 2., an/bn), and a first extremum M1 and a second extremum M2 are calculated, where a1 is a numerical value of a first resource corresponding to a first curve point, a2 is a numerical value of a first resource corresponding to a second first curve point, an is a numerical value of a first resource corresponding to an nth first curve point, b1 is a numerical value of a second resource corresponding to a first second curve point, b2 is a numerical value of a second resource corresponding to a second curve point, and n is a numerical value of a second resource corresponding to an nth second curve point, and n total number of the first curve points and n number of the second curve points are included;
judging whether the first extreme value M1 and the second extreme value M2 are both in a preset numerical range;
and if the first extreme value M1 and the second extreme value M2 are both in a preset numerical range, outputting a comparison result needing resource equalization processing.
Further, after the step of determining whether the comparison result is that resource equalization processing needs to be performed, the method includes:
if the comparison result is that the resource balancing processing is not required, sending verification reminding information to the first terminal to remind the first terminal to verify the second terminal;
receiving return information of the first terminal aiming at the verification reminding information, and judging whether the return information is verified to be correct or not;
if the returned information is verified to be correct, reducing the first resource value by a first preset value, and requesting the first terminal to send appointed gesture information;
acquiring appointed gesture information sent by the first terminal, establishing a third resource in the server, setting the value of the third resource as the first preset value, and giving the second terminal a request permission for calling the third resource;
receiving a call request of the second terminal for the third resource, wherein the call request carries verification gesture information input by a user corresponding to the second terminal, and the verification gesture information is input by the user corresponding to the second terminal while the call request is initiated;
comparing the appointed gesture information with the verification gesture information to judge whether the appointed gesture information is the same as the verification gesture information;
if the appointment gesture information is the same as the verification gesture information, reducing the value of the third resource by a second preset value and increasing the value of the second resource by the second preset value according to the calling request, wherein the second preset value is smaller than or equal to the first preset value.
Further, after the step of attaching a calling numerical value for calling the third resource to the calling request and comparing the agreed gesture information with the verification gesture information to determine whether the agreed gesture information is the same as the verification gesture information, the method includes:
if the appointed gesture information is different from the verification gesture information, judging whether the calling value is smaller than a preset calling threshold value or not, wherein the calling threshold value is smaller than the first preset value;
if the calling numerical value is smaller than a preset calling threshold value, reducing the numerical value of the third resource by the calling numerical value, and increasing the numerical value of the second resource by the calling numerical value;
freezing the third resource and sending early warning information to the first terminal;
acquiring reply information of the first terminal aiming at the early warning information, and judging whether the reply information is information requiring early warning cancellation or not;
and if the reply information is the information requiring the early warning to be relieved, unfreezing the third resource.
The application provides a resource transfer device based on verify gesture, is applied to the server, includes:
a resource transfer request obtaining unit, configured to obtain a resource transfer request sent by a first terminal, where the resource transfer request is used to transfer a first resource corresponding to the first terminal to a second resource corresponding to a second terminal;
a resource value obtaining unit, configured to obtain a value of a first resource corresponding to a first terminal, and obtain a value of a second resource corresponding to a second terminal;
the resource comparison unit is used for calling a preset resource comparison model and inputting the numerical value of the first resource and the numerical value of the second resource into the resource comparison model to obtain a comparison result output by the resource comparison model, wherein the comparison result comprises the requirement of resource equalization processing or the requirement of resource equalization processing;
the resource equalization processing judging unit is used for judging whether the comparison result is that resource equalization processing is required;
the appointed gesture information request unit is used for reducing the first resource value by a first preset value if the comparison result shows that the resource equalization processing is required, and requesting the first terminal to send appointed gesture information;
a third resource establishing unit, configured to acquire the appointed gesture information sent by the first terminal, establish a third resource in the server, set a value of the third resource to the first predetermined value, and give the second terminal a request permission to invoke the third resource;
a call request receiving unit, configured to receive a call request from the second terminal to the third resource, where the call request carries verification gesture information input by a user corresponding to the second terminal, and the verification gesture information is input by the user corresponding to the second terminal while initiating the call request;
the gesture information judging unit is used for comparing the appointed gesture information with the verification gesture information to judge whether the appointed gesture information is the same as the verification gesture information or not;
and the resource transfer unit is used for reducing the value of the third resource by a second preset value and increasing the value of the second resource by the second preset value according to the calling request if the appointment gesture information is the same as the verification gesture information, wherein the second preset value is smaller than or equal to the first preset value.
Further, the apparatus comprises:
a history resource transfer data obtaining unit, configured to obtain multiple history resource transfer data initiated by a first terminal to multiple history receiving terminals, where each history resource transfer data includes a value pair composed of a first history value and a second history value, the first history value refers to a value of a first resource corresponding to the first terminal when the first terminal performs history resource transfer, and the second history value refers to a value of a second resource corresponding to the history receiving terminals when the history resource transfer is performed;
the quantity threshold judging unit is used for acquiring the quantity of the plurality of historical resource transfer data and judging whether the quantity of the plurality of historical resource transfer data is larger than a preset quantity threshold or not;
a sample set constructing unit, configured to construct a sample set including a plurality of the value pairs if the number of the plurality of historical resource transfer data is greater than a preset number threshold, and divide the sample set into a training set and a verification set according to a preset ratio;
the intermediate model obtaining unit is used for calling a preset neural network model and training the neural network model by using the training set so as to obtain an intermediate model;
a verification result obtaining unit, configured to verify the intermediate model by using the verification set to obtain a verification result, and determine whether the verification result is a verification pass;
and the resource comparison model marking unit is used for marking the intermediate model as the resource comparison model if the verification result is that the verification is passed.
Further, the resource alignment unit includes:
a curve drawing subunit, configured to draw, by using the resource comparison model, a first curve in which a value of a first resource corresponding to the first terminal changes with time, and draw a second curve in which a value of a second resource corresponding to the second terminal changes with time;
a curve point selecting subunit, configured to select, according to a preset curve point selecting method, a plurality of first curve points from the first curve, and a plurality of second curve points from the second curve, where values of the plurality of first curve points and the plurality of second curve points on a time axis are correspondingly equal;
an extremum calculating subunit configured to: m1= min (a 1/b1, a2/b 2.,. An/bn), M2= max (a 1/b1, a2/b 2.,. An/bn), calculating a first extreme value M1 and a second extreme value M2, where a1 is a value of a first resource corresponding to a first one of the first curve points, a2 is a value of a first resource corresponding to a second one of the first curve points,. An is a value of a first resource corresponding to an nth one of the first curve points, b1 is a value of a second resource corresponding to a first one of the second curve points, b2 is a value of a second resource corresponding to a second one of the second curve points,. B, n is a value of a second resource corresponding to an nth one of the second curve points, and there are n of the first curve points and n of the second curve points;
the extreme value judging subunit is used for judging whether the first extreme value M1 and the second extreme value M2 are both within a preset numerical range;
and the comparison result output subunit is used for outputting the comparison result which needs to be subjected to resource equalization processing if the first extreme value M1 and the second extreme value M2 are both within a preset numerical range.
The present application provides a computer device comprising a memory storing a computer program and a processor implementing the steps of any of the above methods when the processor executes the computer program.
The present application provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of any of the above.
According to the resource transfer method and device based on the verification gesture, the computer equipment and the storage medium, the resource transfer request sent by the first terminal is obtained; acquiring a numerical value of a first resource corresponding to a first terminal and acquiring a numerical value of a second resource corresponding to a second terminal; inputting the numerical value of the first resource and the numerical value of the second resource into the resource comparison model to obtain a comparison result output by the resource comparison model; judging whether the comparison result is that resource equalization processing is required; if the comparison result is that resource equalization processing is required, reducing the first resource value by a first preset value, and requiring the first terminal to send appointed gesture information; acquiring appointed gesture information sent by the first terminal, establishing a third resource in the server, and setting the value of the third resource as the first preset value; receiving a calling request of the second terminal for the third resource, wherein the calling request carries verification gesture information input by a user corresponding to the second terminal; comparing the appointed gesture information with the verification gesture information; if the appointment gesture information is the same as the verification gesture information, reducing the value of the third resource by a second preset value, and increasing the value of the second resource by the second preset value. Thereby reducing the possibility of resource miscarriage.
Drawings
FIG. 1 is a flowchart illustrating a resource transfer method based on a verification gesture according to an embodiment of the present disclosure;
FIG. 2 is a block diagram illustrating an exemplary configuration of a resource transfer apparatus based on a verification gesture according to an embodiment of the disclosure;
fig. 3 is a schematic block diagram of a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, an embodiment of the present application provides a resource transfer method based on a verification gesture, which is applied to a server and includes:
s1, acquiring a resource transfer request sent by a first terminal, wherein the resource transfer request is used for transferring a first resource corresponding to the first terminal to a second resource corresponding to a second terminal;
s2, acquiring a numerical value of a first resource corresponding to the first terminal and acquiring a numerical value of a second resource corresponding to the second terminal;
s3, calling a preset resource comparison model, and inputting the numerical value of the first resource and the numerical value of the second resource into the resource comparison model to obtain a comparison result output by the resource comparison model, wherein the comparison result comprises the requirement of resource equalization processing or the requirement of resource equalization processing;
s4, judging whether the comparison result is that resource equalization processing is needed or not;
s5, if the comparison result shows that resource equalization processing is needed, reducing the first resource value by a first preset value, and requiring the first terminal to send appointed gesture information;
s6, obtaining appointed gesture information sent by the first terminal, establishing a third resource in the server, setting the value of the third resource as the first preset value, and giving a request permission for calling the third resource to the second terminal;
s7, receiving a calling request of the second terminal for the third resource, wherein the calling request carries verification gesture information input by a user corresponding to the second terminal, and the verification gesture information is input by the user corresponding to the second terminal while the calling request is initiated;
s8, comparing the appointed gesture information with the verification gesture information to judge whether the appointed gesture information is the same as the verification gesture information;
s9, if the appointment gesture information is the same as the verification gesture information, according to the calling request, reducing the value of the third resource by a second preset value, and increasing the value of the second resource by the second preset value, wherein the second preset value is smaller than or equal to the first preset value.
The method reduces the possibility of resource mis-transfer (taking the resource as virtual currency for example, the possibility of mis-transfer is greatly reduced) through special design. Specifically, the advantages of the technical solution of the present application are embodied in:
1. the value of the first resource and the value of the second resource should be within a predetermined range, if the resource is transferred by mistake, the value of the second resource is probably not within the predetermined range, the comparison result is that the resource balancing processing is not needed, and the operation of transferring the resource by mistake is up to this point. If the resource is transferred normally, the first terminal and the second terminal have other communication channels, so that the pre-appointed value range can be known, the value of the first resource and the value of the second resource can be set to be improved, and the normal resource transfer is not influenced.
2. And establishing a third resource in the server, and adopting the modes of appointing gesture information and verifying gesture information to further ensure that the resource cannot be transferred by mistake. The special design is to verify gesture information, which is not to verify the identity of the user of the second terminal, but is used to verify whether the second terminal is adapted to the first terminal (i.e. whether the appointed gesture information is known in advance), so as to avoid resource mistransfer.
The application is applicable in any feasible scenario, for example in the scenario of transfer of funds between accounts, such as financial accounts, security accounts, etc.
As described in step S1 above, a resource transfer request sent by a first terminal is obtained, where the resource transfer request is used to transfer a first resource corresponding to the first terminal to a second resource corresponding to a second terminal. The resource may be any feasible resource, such as computer computing power, real materials (e.g., ore inventory, etc.), virtual currency, and so on. It should be mentioned here that the computer power is also a transferable resource, for example, if the first terminal has a surplus computing power of a value a and the second terminal has a surplus computing power of B value, the first terminal may give the second terminal the right to use the computing power not exceeding the value a by giving the second terminal the right to complete the resource transfer. Wherein, the resource transfer request can specify the value of the resource to be transferred; the first predetermined value may be set in the server in advance without specification, and is more suitable for a large batch of resource transfer scenarios.
As described in step S2 above, the value of the first resource corresponding to the first terminal is obtained, and the value of the second resource corresponding to the second terminal is obtained. The common resource transfer scheme does not need to obtain the numerical values of two resources corresponding to two terminals, but the application is different in that the numerical value of a first resource corresponding to a first terminal needs to be obtained, and the numerical value of a second resource corresponding to a second terminal needs to be obtained, so that whether the resource transfer should be performed or not is preliminarily analyzed.
As described in the above steps S3-S4, a preset resource comparison model is called, and the value of the first resource and the value of the second resource are input into the resource comparison model to obtain a comparison result output by the resource comparison model, where the comparison result includes that resource equalization processing is required or not required; and judging whether the comparison result is that resource equalization processing is required. The resource comparison model may be any feasible model, such as a machine learning-based model, or a non-machine learning-based model, but it must be able to determine whether resource balancing needs to be performed according to the value of the first resource and the value of the second resource. The principle of analyzing the numerical values of the first resource and the second resource by using the resource comparison model is that the first terminal and the second terminal have other communication channels, so that the corresponding relation between the numerical values of the first resource and the numerical values of the second resource can be preset, the numerical values of the first resource and the numerical values of the second resource can be adjusted in advance, and the analysis of the resource comparison model is ensured. Therefore, the preliminary analysis on whether the resources are transferred by mistake is realized. The resource balancing processing does not mean that the numerical values of the first resource and the second resource are equal, but means that the first resource is decreased by the first preset numerical value, and the corresponding second resource is increased by no more than the first preset numerical value, so that the balance of the transfer between the resources is realized.
As described in step S5, if the comparison result indicates that the resource balancing process is required, the first resource value is decreased by the first predetermined value, and the first terminal is requested to send the appointment gesture information. And if the comparison result indicates that the resource is required to be balanced, the preliminary verification of the normal transfer of the resource is indicated. At this time, the first resource value is reduced by a first preset value, a part of the resource transfer process is completed, and the first terminal is required to send appointed gesture information. It should be noted that an important point of the present application is the appointment gesture information for further analysis of whether resources are transferred by mistake, which will be described later.
As described in step S6 above, the appointment gesture information sent by the first terminal is obtained, a third resource is established in the server, the value of the third resource is set as the first predetermined value, and the second terminal is given a request permission to invoke the third resource. According to the resource transfer method and the resource transfer system, a third resource is established in the server, and the value of the third resource is set to be the first preset value, so that the middle part of the resource transfer process is completed. The temporary third resource is designed to prevent the phenomenon of resource mistransfer caused by the error of the second terminal verification. And at the moment, giving the second terminal the request right of calling the third resource. It should be noted that the request permission does not mean that the second terminal can directly invoke the third resource, but the second terminal can issue the request for invoking the third resource, and whether the request can be authorized, and further determination is needed (because whether the second terminal is an error-free resource receiving terminal, it is not completely determined yet).
As described in the foregoing steps S7 to S8, receiving a call request from the second terminal to the third resource, where the call request carries verification gesture information input by a user corresponding to the second terminal, and the verification gesture information is input by the user corresponding to the second terminal while initiating the call request; and comparing the appointed gesture information with the verification gesture information to judge whether the appointed gesture information is the same as the verification gesture information or not. It is emphasized that the verification gesture information is not a verification gesture for verifying the user of the second terminal (that is, a common verification gesture, for example, a verification gesture of opening a screen at the mobile phone end, which is used for verifying the validity of the user identity, but is completely different from the present application). Specifically, the verification gesture information is to verify whether the second terminal is the terminal to which the first terminal really intends to transfer, that is, when the appointed gesture information is the same as the verification gesture information, it indicates that the second terminal is the accurate terminal (which is also the reason why the appointed gesture information sent by the first terminal is to be acquired). The reason is that the user corresponding to the first terminal and the user corresponding to the second terminal have other communication channels, so that the verification gesture can be appointed, and the phenomenon of resource mistransfer is further avoided. The verification gesture information is input by the user corresponding to the second terminal while initiating the call request, and indicates that the user corresponding to the second terminal is not specifically required to input verification gesture information (for example, a dialog box is popped up to require inputting a verification gesture) while initiating the call request when the call request is issued by the second terminal, but is acquired while initiating the call request, that is, acquired unconsciously by the user corresponding to the second terminal, so that the possibility of forging a gesture is prevented. The verification gesture information is obtained, for example, by using a sensor to detect a gesture of the user corresponding to the second terminal when the call request is initiated (specifically, for example, by using an image sensor to acquire a picture of the gesture of the user corresponding to the second terminal when the call request is initiated, or when a screen of the second terminal is a touch screen, using a sensor such as a capacitive sensor arranged below the touch screen to acquire an electric signal of the gesture of the user corresponding to the second terminal when the call request is initiated, so as to obtain the verification gesture information).
As described in step S9, if the appointment gesture information is the same as the verification gesture information, the value of the third resource is decreased by a second predetermined value and the value of the second resource is increased by the second predetermined value according to the call request, where the second predetermined value is smaller than or equal to the first predetermined value. If the appointed gesture information is the same as the verification gesture information, the second terminal is verified for a second round, and the second terminal is determined to be an accurate terminal, so that the second terminal is given the right to call a third resource, the value of the third resource is reduced by a second preset value according to the call request, and the value of the second resource is increased by the second preset value, wherein the second preset value is smaller than or equal to the first preset value. It should be mentioned that the second terminal may invoke the third resource in a manner of not invoking all values of the third resource completely, thereby completing flexible allocation of the second resource.
In one embodiment, before the step S3 of calling a preset resource comparison model and inputting the value of the first resource and the value of the second resource into the resource comparison model to obtain a comparison result output by the resource comparison model, the method includes:
s21, acquiring a plurality of historical resource transfer data initiated by the first terminal to a plurality of historical receiving terminals, wherein each historical resource transfer data comprises a numerical value pair consisting of a first historical numerical value and a second historical numerical value, the first historical numerical value refers to a numerical value of a first resource corresponding to the first terminal when the historical resources are transferred, and the second historical numerical value refers to a numerical value of a second resource corresponding to the historical receiving terminals when the historical resources are transferred;
s22, acquiring the quantity of the plurality of historical resource transfer data, and judging whether the quantity of the plurality of historical resource transfer data is larger than a preset quantity threshold value or not;
s23, if the quantity of the plurality of historical resource transfer data is larger than a preset quantity threshold value, constructing a sample set comprising a plurality of value pairs, and dividing the sample set into a training set and a verification set according to a preset proportion;
s24, calling a preset neural network model, and training the neural network model by using the training set to obtain an intermediate model;
s25, verifying the intermediate model by using the verification set to obtain a verification result, and judging whether the verification result is passed;
and S26, if the verification result is that the verification is passed, marking the intermediate model as the resource comparison model.
As described above, it is achieved that the intermediate model is denoted as the resource alignment model. The present application is applicable to any type of first terminal, but is particularly applicable to a first terminal that frequently performs resource transfer to the outside. At this time, because the number of times of resource transfer performed externally by the first terminal is large, that is, the number of the plurality of historical resource transfer data is greater than the preset number threshold, the resource comparison model is obtained by using the machine learning manner of the basic neural network model, so that the number of times of resource value adjustment is reduced as much as possible during normal resource transfer. Therefore, a sample set comprising a plurality of the value pairs is constructed, and the sample set is divided into a training set and a verification set according to a preset proportion. Wherein the preset ratio can be any feasible ratio, such as 0.9. Calling a preset neural network model, and training the neural network model by using the training set to obtain an intermediate model; verifying the intermediate model by using the verification set to obtain a verification result, and judging whether the verification result is passed; and if the verification result is that the verification is passed, recording the intermediate model as the resource comparison model. The neural network model can adopt any feasible model, such as a convolutional neural network model, a long-short term memory network model and the like. Therefore, the resource comparison model based on the neural network model is obtained, so that the adjustment of resource values is not needed between the overall first terminal and the correct resource receiving terminal as much as possible, and the overall efficiency is improved.
In one embodiment, the step S3 of inputting the value of the first resource and the value of the second resource into the resource comparison model to obtain the comparison result output by the resource comparison model includes:
s301, drawing a first curve of the value of the first resource corresponding to the first terminal changing along with time and drawing a second curve of the value of the second resource corresponding to the second terminal changing along with time by using the resource comparison model;
s302, according to a preset curve point selection method, selecting a plurality of first curve points from the first curve, and selecting a plurality of second curve points from the second curve, wherein the values of the plurality of first curve points and the plurality of second curve points on a time axis are correspondingly equal;
s303, according to a formula: m1= min (a 1/b1, a2/b 2.,. An/bn), M2= max (a 1/b1, a2/b 2.,. An/bn), calculating a first extreme value M1 and a second extreme value M2, where a1 is a value of a first resource corresponding to a first one of the first curve points, a2 is a value of a first resource corresponding to a second one of the first curve points,. An is a value of a first resource corresponding to an nth one of the first curve points, b1 is a value of a second resource corresponding to a first one of the second curve points, b2 is a value of a second resource corresponding to a second one of the second curve points,. B, n is a value of a second resource corresponding to an nth one of the second curve points, and there are n of the first curve points and n of the second curve points;
s304, judging whether the first extreme value M1 and the second extreme value M2 are both in a preset numerical range;
s305, if the first extreme value M1 and the second extreme value M2 are both in a preset numerical range, outputting a comparison result needing resource equalization processing.
As described above, the numerical value of the first resource and the numerical value of the second resource are input into the resource comparison model, so as to obtain the comparison result output by the resource comparison model. According to the method and the device, the first resource and the second resource are comprehensively analyzed through the multipoint comparison design, so that the accuracy of whether resource equalization processing is needed is further improved. Specifically, the resource comparison model is used for drawing a first curve of the value of the first resource corresponding to the first terminal changing with time, and drawing a second curve of the value of the second resource corresponding to the second terminal changing with time. The other first and second curves relate the resource values to time, allowing subsequent dynamic analysis. And then according to a preset curve point selection method, selecting a plurality of first curve points from the first curve and a plurality of second curve points from the second curve, wherein the values of the plurality of first curve points and the plurality of second curve points on a time axis are correspondingly equal. The curve point selection method may be any feasible method, for example, the first curve is divided into a plurality of curve segments, the maximum value point and the minimum value point of each curve segment are taken, and all the maximum value points and the minimum value points are marked as the first curve points. Then according to the formula: m1= min (a 1/b1, a2/b 2.., an/bn), M2= max (a 1/b1, a2/b 2.., an/bn), calculating a first extreme value M1 and a second extreme value M2; if the first extreme value M1 and the second extreme value M2 are both within the preset numerical range, it indicates that all curve points are within the expected range, and the curve points are representative of curves, so that the first curve and the second curve are also within the expected range, and thus it is preliminarily determined that the resource transfer verification is passed, and therefore, a comparison result that needs to be subjected to resource equalization processing is output. Thereby further improving the accuracy of whether resource equalization processing is required.
In one embodiment, after the step S4 of determining whether the comparison result is that resource balancing processing is required, the method includes:
s41, if the comparison result is that the resource balance processing is not required, sending verification reminding information to the first terminal to remind the first terminal to verify the second terminal;
s42, receiving return information of the first terminal aiming at the verification reminding information, and judging whether the return information is verified to be correct or not;
s43, if the returned information is verified to be correct, reducing the first resource value by a first preset value, and requiring the first terminal to send appointed gesture information;
s44, acquiring appointed gesture information sent by the first terminal, establishing a third resource in the server, setting the value of the third resource as the first preset value, and giving a request permission for calling the third resource to the second terminal;
s45, receiving a calling request of the second terminal for the third resource, wherein the calling request carries verification gesture information input by a user corresponding to the second terminal, and the verification gesture information is input by the user corresponding to the second terminal while the calling request is initiated;
s46, comparing the appointed gesture information with the verification gesture information to judge whether the appointed gesture information is the same as the verification gesture information or not;
and S47, if the appointment gesture information is the same as the verification gesture information, reducing the value of the third resource by a second preset value and increasing the value of the second resource by the second preset value according to the calling request, wherein the second preset value is smaller than or equal to the first preset value.
As described above, when the comparison result indicates that resource balancing processing is not required, fast feedback is performed to complete resource transfer. Generally speaking, if the comparison result indicates that resource equalization processing is not required, it indicates that the second terminal is most likely not an accurate resource receiving terminal, and generally the resource transfer needs to be terminated. However, in the present application, in consideration of the possibility that there is a special situation (for example, an erroneous determination caused when the terminal is at an edge value) such as a false determination, the present application sends a verification reminding message to the first terminal to remind the first terminal to perform verification processing on the second terminal; and receiving the returned information of the first terminal aiming at the verification reminding information, and judging whether the returned information is in a verification error-free mode or not so as to provide a way for the first terminal to bypass the resource comparison model after further verification (without correcting in a complex mode of adjusting the value of the first resource or the second resource). And when the returned information is correct, the process of further resource transfer is continuously executed, thereby improving the overall efficiency and improving the adaptability to different scenes.
In one embodiment, after the step S8 of attaching a call value for calling the third resource to the call request, and comparing the agreed gesture information with the verification gesture information to determine whether the agreed gesture information is the same as the verification gesture information, the method includes:
s81, if the agreed gesture information is different from the verified gesture information, judging whether the calling value is smaller than a preset calling threshold value or not, wherein the calling threshold value is smaller than the first preset value;
s82, if the calling numerical value is smaller than a preset calling threshold value, reducing the numerical value of the third resource by the calling numerical value, and increasing the numerical value of the second resource by the calling numerical value;
s83, freezing the third resource and sending early warning information to the first terminal;
s84, acquiring reply information of the first terminal aiming at the early warning information, and judging whether the reply information is information requiring early warning cancellation;
and S85, if the reply message is the message requiring the early warning to be relieved, unfreezing the third resource.
As described above, the third resource is enabled to be defrosted. According to the method and the device, through special design, on the premise that the large numerical value resource is not changed, a variable scheme of the small numerical value resource is provided, and the flexibility of resource transfer is improved. Specifically, if the second terminal is not an accurate resource receiving terminal, a user corresponding to the second terminal generally considers that the additional resources are completely occupied, that is, all values of the third resources are selected to be called (in order to grasp the additional resources in one's hands, so as to prevent the third resources from disappearing); if the second terminal is an accurate resource receiving terminal, the user corresponding to the second terminal does not worry about the sudden disappearance of the third resource, and therefore, the third resource is called in a small calling manner if possible (which is a scheme that the user corresponding to the inaccurate resource receiving terminal does not normally adopt). Therefore, the design of small flexible call is adopted in the method, so that the fluency in resource transfer is improved. The third resource is frozen, and early warning information is sent to the first terminal; acquiring reply information of the first terminal aiming at the early warning information, and judging whether the reply information is information requiring early warning cancellation or not; and if the reply information is the information requiring the early warning to be relieved, unfreezing the third resource to ensure the final accuracy of resource transfer. Further, if the reply information is information that the early warning is not to be solved, the third resource is returned to the first resource, and in this case, even if the resource that has been wrongly transferred cannot be recovered, the security of most of the resources can be ensured.
According to the resource transfer method based on the verification gesture, a resource transfer request sent by a first terminal is obtained; acquiring a numerical value of a first resource corresponding to a first terminal and acquiring a numerical value of a second resource corresponding to a second terminal; inputting the numerical value of the first resource and the numerical value of the second resource into the resource comparison model to obtain a comparison result output by the resource comparison model; judging whether the comparison result is that resource equalization processing is required; if the comparison result is that resource equalization processing is required, reducing a first resource value by a first preset value, and requiring the first terminal to send appointed gesture information; acquiring appointed gesture information sent by the first terminal, establishing a third resource in the server, and setting the value of the third resource as the first preset value; receiving a calling request of the second terminal for the third resource, wherein the calling request carries verification gesture information input by a user corresponding to the second terminal; comparing the appointed gesture information with the verification gesture information; if the appointment gesture information is the same as the verification gesture information, decreasing the value of the third resource by a second preset value, and increasing the value of the second resource by the second preset value. Thereby reducing the likelihood of a resource miscarriage.
Referring to fig. 2, an embodiment of the present application provides a resource transfer device based on a verification gesture, applied to a server, including:
a resource transfer request obtaining unit 10, configured to obtain a resource transfer request sent by a first terminal, where the resource transfer request is used to transfer a first resource corresponding to the first terminal to a second resource corresponding to a second terminal;
a resource value obtaining unit 20, configured to obtain a value of a first resource corresponding to a first terminal, and obtain a value of a second resource corresponding to a second terminal;
the resource comparison unit 30 is configured to call a preset resource comparison model, and input the value of the first resource and the value of the second resource into the resource comparison model to obtain a comparison result output by the resource comparison model, where the comparison result includes that resource equalization processing is required or resource equalization processing is not required;
a resource balancing processing determining unit 40, configured to determine whether the comparison result is that resource balancing processing needs to be performed;
an appointment gesture information requesting unit 50, configured to reduce the first resource value by a first predetermined value if the comparison result indicates that resource balancing processing is required, and request the first terminal to send appointment gesture information;
a third resource establishing unit 60, configured to obtain the appointed gesture information sent by the first terminal, establish a third resource in the server, set a value of the third resource to the first predetermined value, and give the second terminal a request permission to invoke the third resource;
a call request receiving unit 70, configured to receive a call request from the second terminal to the third resource, where the call request carries verification gesture information input by a user corresponding to the second terminal, and the verification gesture information is input by the user corresponding to the second terminal while initiating the call request;
a gesture information determining unit 80, configured to compare the agreed gesture information with the verification gesture information to determine whether the agreed gesture information is the same as the verification gesture information;
a resource transferring unit 90, configured to decrease the value of the third resource by a second predetermined value and increase the value of the second resource by the second predetermined value according to the calling request if the appointment gesture information is the same as the verification gesture information, where the second predetermined value is smaller than or equal to the first predetermined value.
The operations performed by the units or the sub-units correspond to the steps of the method for transferring resources based on the verification gesture in the foregoing embodiment one by one, which are not described herein again.
In one embodiment, the apparatus comprises:
a history resource transfer data obtaining unit, configured to obtain multiple history resource transfer data initiated by a first terminal to multiple history receiving terminals, where each history resource transfer data includes a value pair composed of a first history value and a second history value, the first history value refers to a value of a first resource corresponding to the first terminal when the history resource transfer is performed, and the second history value refers to a value of a second resource corresponding to the history receiving terminals when the history resource transfer is performed;
a quantity threshold value judging unit, configured to obtain the quantity of the multiple historical resource transfer data, and judge whether the quantity of the multiple historical resource transfer data is greater than a preset quantity threshold value;
a sample set constructing unit, configured to construct a sample set including a plurality of the value pairs if the number of the plurality of historical resource transfer data is greater than a preset number threshold, and divide the sample set into a training set and a verification set according to a preset ratio;
the intermediate model obtaining unit is used for calling a preset neural network model and training the neural network model by using the training set so as to obtain an intermediate model;
a verification result obtaining unit, configured to verify the intermediate model by using the verification set to obtain a verification result, and determine whether the verification result is a verification pass;
and the resource comparison model marking unit is used for marking the intermediate model as the resource comparison model if the verification result is that the verification is passed.
The operations respectively performed by the units or the sub-units correspond to the steps of the resource transfer method based on the verification gesture in the foregoing embodiment one to one, and are not described herein again.
In one embodiment, the resource alignment unit includes:
a curve drawing subunit, configured to draw, by using the resource comparison model, a first curve in which a value of a first resource corresponding to the first terminal changes with time, and draw a second curve in which a value of a second resource corresponding to the second terminal changes with time;
a curve point selecting subunit, configured to select, according to a preset curve point selecting method, a plurality of first curve points from the first curve, and a plurality of second curve points from the second curve, where values of the plurality of first curve points and the plurality of second curve points on a time axis are correspondingly equal;
an extremum calculating subunit configured to: m1= min (a 1/b1, a2/b 2.,. An/bn), M2= max (a 1/b1, a2/b 2.,. An/bn), calculating a first extreme value M1 and a second extreme value M2, where a1 is a value of a first resource corresponding to a first one of the first curve points, a2 is a value of a first resource corresponding to a second one of the first curve points,. An is a value of a first resource corresponding to an nth one of the first curve points, b1 is a value of a second resource corresponding to a first one of the second curve points, b2 is a value of a second resource corresponding to a second one of the second curve points,. B, n is a value of a second resource corresponding to an nth one of the second curve points, and there are n of the first curve points and n of the second curve points;
the extreme value judging subunit is used for judging whether the first extreme value M1 and the second extreme value M2 are both within a preset numerical range;
and the comparison result output subunit is used for outputting the comparison result which needs to be subjected to resource equalization processing if the first extreme value M1 and the second extreme value M2 are both within a preset numerical range.
The operations respectively performed by the units or the sub-units correspond to the steps of the resource transfer method based on the verification gesture in the foregoing embodiment one to one, and are not described herein again.
In one embodiment, the apparatus comprises:
a verification reminding information sending unit, configured to send verification reminding information to the first terminal to remind the first terminal to perform verification processing on the second terminal if the comparison result indicates that resource balancing processing is not required;
a return information judgment unit, configured to receive return information of the first terminal for the verification reminding information, and judge whether the return information is verified to be correct;
the first resource value reducing unit is used for reducing the first resource value by a first preset value if the returned information is verified to be correct, and requesting the first terminal to send appointed gesture information;
a request permission giving unit, configured to acquire appointed gesture information sent by the first terminal, establish a third resource in the server, set a value of the third resource to the first predetermined value, and give the second terminal a request permission to call the third resource;
a verification gesture information obtaining unit, configured to receive a call request of the second terminal to the third resource, where the call request carries verification gesture information input by a user corresponding to the second terminal, and the verification gesture information is input by the user corresponding to the second terminal while initiating the call request;
the verification gesture information judging unit is used for comparing the appointed gesture information with the verification gesture information to judge whether the appointed gesture information is the same as the verification gesture information or not;
and a value modifying unit, configured to reduce the value of the third resource by a second predetermined value and increase the value of the second resource by the second predetermined value according to the call request if the appointment gesture information is the same as the verification gesture information, where the second predetermined value is less than or equal to the first predetermined value.
The operations respectively performed by the units or the sub-units correspond to the steps of the resource transfer method based on the verification gesture in the foregoing embodiment one to one, and are not described herein again.
In one embodiment, the call request is accompanied by a call value for calling the third resource, and the apparatus includes:
a calling threshold judging unit, configured to judge whether the calling value is smaller than a preset calling threshold if the agreed gesture information is different from the verification gesture information, where the calling threshold is smaller than the first predetermined value;
a resource modification unit, configured to decrease the value of the third resource by the calling value and increase the value of the second resource by the calling value if the calling value is smaller than a preset calling threshold;
a third resource freezing unit, configured to freeze the third resource and send early warning information to the first terminal;
a reply information judgment unit, configured to acquire reply information of the first terminal for the early warning information, and judge whether the reply information is information that requires cancellation of early warning;
and the unfreezing unit is used for unfreezing the third resource if the reply information is the information which requires the early warning to be relieved.
The operations performed by the units or the sub-units correspond to the steps of the method for transferring resources based on the verification gesture in the foregoing embodiment one by one, which are not described herein again.
The resource transfer device based on the verification gesture obtains a resource transfer request sent by a first terminal; acquiring a numerical value of a first resource corresponding to a first terminal and acquiring a numerical value of a second resource corresponding to a second terminal; inputting the numerical value of the first resource and the numerical value of the second resource into the resource comparison model to obtain a comparison result output by the resource comparison model; judging whether the comparison result is that resource equalization processing is required; if the comparison result is that resource equalization processing is required, reducing the first resource value by a first preset value, and requiring the first terminal to send appointed gesture information; acquiring appointed gesture information sent by the first terminal, establishing a third resource in the server, and setting the value of the third resource as the first preset value; receiving a calling request of the second terminal for the third resource, wherein the calling request carries verification gesture information input by a user corresponding to the second terminal; comparing the appointed gesture information with the verification gesture information; if the appointment gesture information is the same as the verification gesture information, reducing the value of the third resource by a second preset value, and increasing the value of the second resource by the second preset value. Thereby reducing the likelihood of a resource miscarriage.
Referring to fig. 3, an embodiment of the present invention further provides a computer device, where the computer device may be a server, and an internal structure of the computer device may be as shown in the figure. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data for a resource transfer method based on a verification gesture. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of resource transfer based on a verification gesture.
The processor executes the resource transfer method based on the verification gesture, wherein the steps included in the method correspond to the steps of executing the resource transfer method based on the verification gesture in the foregoing embodiment one to one, and are not described herein again.
It will be understood by those skilled in the art that the structures shown in the drawings are only block diagrams of some of the structures associated with the embodiments of the present application and do not constitute a limitation on the computer apparatus to which the embodiments of the present application may be applied.
The computer equipment acquires a resource transfer request sent by a first terminal; acquiring a numerical value of a first resource corresponding to a first terminal and acquiring a numerical value of a second resource corresponding to a second terminal; inputting the numerical value of the first resource and the numerical value of the second resource into the resource comparison model to obtain a comparison result output by the resource comparison model; judging whether the comparison result is that resource equalization processing is required; if the comparison result is that resource equalization processing is required, reducing the first resource value by a first preset value, and requiring the first terminal to send appointed gesture information; acquiring appointed gesture information sent by the first terminal, establishing a third resource in the server, and setting the value of the third resource as the first preset value; receiving a calling request of the second terminal for the third resource, wherein the calling request carries verification gesture information input by a user corresponding to the second terminal; comparing the appointment gesture information with the verification gesture information; if the appointment gesture information is the same as the verification gesture information, reducing the value of the third resource by a second preset value, and increasing the value of the second resource by the second preset value. Thereby reducing the likelihood of a resource miscarriage.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for transferring resources based on a verification gesture is implemented, where steps included in the method correspond to steps of executing the method for transferring resources based on a verification gesture in the foregoing embodiment one to one, and are not described herein again.
The computer-readable storage medium of the application acquires a resource transfer request sent by a first terminal; acquiring a numerical value of a first resource corresponding to a first terminal and acquiring a numerical value of a second resource corresponding to a second terminal; inputting the numerical value of the first resource and the numerical value of the second resource into the resource comparison model to obtain a comparison result output by the resource comparison model; judging whether the comparison result is that resource equalization processing is required; if the comparison result is that resource equalization processing is required, reducing the first resource value by a first preset value, and requiring the first terminal to send appointed gesture information; acquiring appointed gesture information sent by the first terminal, establishing a third resource in the server, and setting the value of the third resource as the first preset value; receiving a calling request of the second terminal for the third resource, wherein the calling request carries verification gesture information input by a user corresponding to the second terminal; comparing the appointed gesture information with the verification gesture information; if the appointment gesture information is the same as the verification gesture information, reducing the value of the third resource by a second preset value, and increasing the value of the second resource by the second preset value. Thereby reducing the likelihood of a resource miscarriage.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The block chain referred by the application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a string of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, which is used for verifying the validity (anti-counterfeiting) of the information and generating a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The block chain underlying platform can comprise processing modules such as user management, basic service, intelligent contract and operation monitoring. The user management module is responsible for identity information management of all blockchain participants, and comprises public and private key generation maintenance (account management), key management, user real identity and blockchain address corresponding relation maintenance (authority management) and the like, and under the authorization condition, the user management module supervises and audits the transaction condition of certain real identities and provides rule configuration (wind control audit) of risk control; the basic service module is deployed on all block chain node equipment and used for verifying the validity of the service request, recording the service request to storage after consensus on the valid request is completed, for a new service request, the basic service firstly performs interface adaptation analysis and authentication processing (interface adaptation), then encrypts service information (consensus management) through a consensus algorithm, transmits the service information to a shared account (network communication) completely and consistently after encryption, and performs recording and storage; the intelligent contract module is responsible for registering and issuing contracts, triggering the contracts and executing the contracts, developers can define contract logics through a certain programming language, issue the contract logics to a block chain (contract registration), call keys or other event triggering and executing according to the logics of contract clauses, complete the contract logics and simultaneously provide the function of canceling contract upgrading logout; the operation monitoring module is mainly responsible for deployment, configuration modification, contract setting, cloud adaptation in the product release process and visual output of real-time states in product operation, such as: alarm, monitoring network conditions, monitoring node equipment health status, and the like.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (SSRDRAM), enhanced SDRAM (ESDRAM), synchronous Link (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct Rambus Dynamic RAM (DRDRAM), and Rambus Dynamic RAM (RDRAM), among others.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of another identical element in a process, apparatus, article, or method comprising the element.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A resource transfer method based on a verification gesture is applied to a server and comprises the following steps:
acquiring a resource transfer request sent by a first terminal, wherein the resource transfer request is used for transferring a first resource corresponding to the first terminal to a second resource corresponding to a second terminal;
acquiring a numerical value of a first resource corresponding to a first terminal and acquiring a numerical value of a second resource corresponding to a second terminal;
calling a preset resource comparison model, and inputting the numerical value of the first resource and the numerical value of the second resource into the resource comparison model to obtain a comparison result output by the resource comparison model, wherein the comparison result comprises the requirement of resource equalization processing or the requirement of resource equalization processing;
judging whether the comparison result is that resource equalization processing is required;
if the comparison result is that resource equalization processing is required, reducing a first resource value by a first preset value, and requiring the first terminal to send appointed gesture information;
acquiring appointed gesture information sent by the first terminal, establishing a third resource in the server, setting the value of the third resource as the first preset value, and giving the second terminal a request permission for calling the third resource;
receiving a call request of the second terminal to the third resource, wherein the call request carries verification gesture information input by a user corresponding to the second terminal, and the verification gesture information is input by the user corresponding to the second terminal while the call request is initiated;
comparing the appointed gesture information with the verification gesture information to judge whether the appointed gesture information is the same as the verification gesture information;
if the appointment gesture information is the same as the verification gesture information, according to the calling request, reducing the value of the third resource by a second preset value, and increasing the value of the second resource by the second preset value, wherein the second preset value is smaller than or equal to the first preset value;
and obtaining the resource comparison model by adopting a machine learning mode of a basic neural network model.
2. The method according to claim 1, wherein the invoking a preset resource comparison model and inputting the value of the first resource and the value of the second resource into the resource comparison model to obtain a comparison result output by the resource comparison model, wherein the comparison result includes a step that resource equalization processing is required or is not required, and the method comprises:
acquiring a plurality of historical resource transfer data initiated by a first terminal to a plurality of historical receiving terminals, wherein each historical resource transfer data comprises a value pair consisting of a first historical value and a second historical value, the first historical value refers to a value of a first resource corresponding to the first terminal when the first terminal transfers the historical resources, and the second historical value refers to a value of a second resource corresponding to the historical receiving terminals when the historical resources are transferred;
acquiring the quantity of the plurality of historical resource transfer data, and judging whether the quantity of the plurality of historical resource transfer data is greater than a preset quantity threshold value or not;
if the quantity of the plurality of historical resource transfer data is larger than a preset quantity threshold value, constructing a sample set comprising a plurality of value pairs, and dividing the sample set into a training set and a verification set according to a preset proportion;
calling a preset neural network model, and training the neural network model by using the training set to obtain an intermediate model;
verifying the intermediate model by using the verification set to obtain a verification result, and judging whether the verification result is passed;
and if the verification result is that the verification is passed, recording the intermediate model as the resource comparison model.
3. The method according to claim 1, wherein the step of inputting the value of the first resource and the value of the second resource into the resource comparison model to obtain the comparison result output by the resource comparison model comprises:
drawing a first curve of the value of the first resource corresponding to the first terminal changing along with time and drawing a second curve of the value of the second resource corresponding to the second terminal changing along with time by using the resource comparison model;
according to a preset curve point selection method, selecting a plurality of first curve points from the first curve, and selecting a plurality of second curve points from the second curve, wherein the values of the plurality of first curve points and the plurality of second curve points on a time axis are correspondingly equal;
according to the formula: m1= min (a 1/b1, a2/b 2.,. An/bn), M2= max (a 1/b1, a2/b 2.,. An/bn), calculating a first extreme value M1 and a second extreme value M2, where a1 is a value of a first resource corresponding to a first one of the first curve points, a2 is a value of a first resource corresponding to a second one of the first curve points,. An is a value of a first resource corresponding to an nth one of the first curve points, b1 is a value of a second resource corresponding to a first one of the second curve points, b2 is a value of a second resource corresponding to a second one of the second curve points,. B, n is a value of a second resource corresponding to an nth one of the second curve points, and there are n of the first curve points and n of the second curve points;
judging whether the first extreme value M1 and the second extreme value M2 are both in a preset numerical range;
and if the first extreme value M1 and the second extreme value M2 are both in a preset numerical range, outputting a comparison result needing resource equalization processing.
4. The method according to claim 1, wherein the step of determining whether the comparison result is that resource balancing processing is required comprises:
if the comparison result is that resource equalization processing is not required, sending verification reminding information to the first terminal to remind the first terminal to verify the second terminal;
receiving return information of the first terminal aiming at the verification reminding information, and judging whether the return information is verified to be correct or not;
if the returned information is verified to be correct, reducing the first resource value by a first preset value, and requiring the first terminal to send appointed gesture information;
acquiring appointed gesture information sent by the first terminal, establishing a third resource in the server, setting the value of the third resource as the first preset value, and giving the second terminal a request permission for calling the third resource;
receiving a call request of the second terminal for the third resource, wherein the call request carries verification gesture information input by a user corresponding to the second terminal, and the verification gesture information is input by the user corresponding to the second terminal while the call request is initiated;
comparing the appointed gesture information with the verification gesture information to judge whether the appointed gesture information is the same as the verification gesture information or not;
if the appointment gesture information is the same as the verification gesture information, according to the calling request, reducing the value of the third resource by a second preset value, and increasing the value of the second resource by the second preset value, wherein the second preset value is smaller than or equal to the first preset value.
5. The method for resource transfer based on verification gestures of claim 1, wherein the step of comparing the appointment gesture information with the verification gesture information to determine whether the appointment gesture information is the same as the verification gesture information is followed by the step of calling the third resource with a calling value attached to the calling request, comprising:
if the appointed gesture information is different from the verification gesture information, judging whether the calling value is smaller than a preset calling threshold value or not, wherein the calling threshold value is smaller than the first preset value;
if the calling numerical value is smaller than a preset calling threshold value, reducing the numerical value of the third resource by the calling numerical value, and increasing the numerical value of the second resource by the calling numerical value;
freezing the third resource and sending early warning information to the first terminal;
acquiring reply information of the first terminal aiming at the early warning information, and judging whether the reply information is information requiring early warning cancellation or not;
and if the reply information is the information requiring the early warning removal, unfreezing the third resource.
6. A resource transfer device based on a verification gesture is applied to a server and comprises the following components:
a resource transfer request obtaining unit, configured to obtain a resource transfer request sent by a first terminal, where the resource transfer request is used to transfer a first resource corresponding to the first terminal to a second resource corresponding to a second terminal;
a resource value obtaining unit, configured to obtain a value of a first resource corresponding to a first terminal, and obtain a value of a second resource corresponding to a second terminal;
the resource comparison unit is used for calling a preset resource comparison model and inputting the numerical value of the first resource and the numerical value of the second resource into the resource comparison model to obtain a comparison result output by the resource comparison model, wherein the comparison result comprises the requirement of resource equalization processing or the requirement of resource equalization processing;
the resource equalization processing judging unit is used for judging whether the comparison result is that resource equalization processing is required;
the appointed gesture information request unit is used for reducing the first resource value by a first preset value if the comparison result shows that the resource equalization processing is required, and requesting the first terminal to send appointed gesture information;
the third resource establishing unit is used for acquiring appointed gesture information sent by the first terminal, establishing a third resource in the server, setting the value of the third resource as the first preset value, and giving the second terminal a request permission for calling the third resource;
a call request receiving unit, configured to receive a call request from the second terminal to the third resource, where the call request carries verification gesture information input by a user corresponding to the second terminal, and the verification gesture information is input by the user corresponding to the second terminal while initiating the call request;
the gesture information judging unit is used for comparing the appointed gesture information with the verification gesture information to judge whether the appointed gesture information is the same as the verification gesture information;
a resource transfer unit, configured to, if the appointment gesture information is the same as the verification gesture information, decrease a value of the third resource by a second predetermined value according to the call request, and increase a value of the second resource by the second predetermined value, where the second predetermined value is less than or equal to the first predetermined value;
and obtaining the resource comparison model by adopting a machine learning mode of a basic neural network model.
7. The authentication gesture based resource transfer apparatus of claim 6, wherein the apparatus comprises:
a history resource transfer data obtaining unit, configured to obtain multiple history resource transfer data initiated by a first terminal to multiple history receiving terminals, where each history resource transfer data includes a value pair composed of a first history value and a second history value, the first history value refers to a value of a first resource corresponding to the first terminal when the history resource transfer is performed, and the second history value refers to a value of a second resource corresponding to the history receiving terminals when the history resource transfer is performed;
a quantity threshold value judging unit, configured to obtain the quantity of the multiple historical resource transfer data, and judge whether the quantity of the multiple historical resource transfer data is greater than a preset quantity threshold value;
a sample set constructing unit, configured to construct a sample set including a plurality of the value pairs if the number of the plurality of historical resource transfer data is greater than a preset number threshold, and divide the sample set into a training set and a verification set according to a preset ratio;
the intermediate model obtaining unit is used for calling a preset neural network model and training the neural network model by using the training set so as to obtain an intermediate model;
a verification result obtaining unit, configured to verify the intermediate model by using the verification set to obtain a verification result, and determine whether the verification result is a verification pass;
and the resource comparison model marking unit is used for marking the intermediate model as the resource comparison model if the verification result is that the verification is passed.
8. The device according to claim 6, wherein the resource comparison unit comprises:
a curve drawing subunit, configured to draw, by using the resource comparison model, a first curve in which a value of a first resource corresponding to the first terminal changes with time, and a second curve in which a value of a second resource corresponding to the second terminal changes with time;
a curve point selecting subunit, configured to select, according to a preset curve point selecting method, a plurality of first curve points from the first curve, and a plurality of second curve points from the second curve, where values of the plurality of first curve points and the plurality of second curve points on a time axis are correspondingly equal to each other;
an extremum calculating subunit configured to: m1= min (a 1/b1, a2/b 2., an/bn), M2= max (a 1/b1, a2/b 2., an/bn), and a first extremum M1 and a second extremum M2 are calculated, where a1 is a numerical value of a first resource corresponding to a first curve point, a2 is a numerical value of a first resource corresponding to a second first curve point, an is a numerical value of a first resource corresponding to an nth first curve point, b1 is a numerical value of a second resource corresponding to a first second curve point, b2 is a numerical value of a second resource corresponding to a second curve point, and n is a numerical value of a second resource corresponding to an nth second curve point, and n total number of the first curve points and n number of the second curve points are included;
the extreme value judging subunit is used for judging whether the first extreme value M1 and the second extreme value M2 are both within a preset numerical range;
and the comparison result output subunit is used for outputting the comparison result which needs to be subjected to resource equalization processing if the first extreme value M1 and the second extreme value M2 are both within a preset numerical range.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN202010734525.3A 2020-07-27 2020-07-27 Resource transfer method and device based on verification gesture and computer equipment Active CN111881433B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010734525.3A CN111881433B (en) 2020-07-27 2020-07-27 Resource transfer method and device based on verification gesture and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010734525.3A CN111881433B (en) 2020-07-27 2020-07-27 Resource transfer method and device based on verification gesture and computer equipment

Publications (2)

Publication Number Publication Date
CN111881433A CN111881433A (en) 2020-11-03
CN111881433B true CN111881433B (en) 2023-02-03

Family

ID=73201780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010734525.3A Active CN111881433B (en) 2020-07-27 2020-07-27 Resource transfer method and device based on verification gesture and computer equipment

Country Status (1)

Country Link
CN (1) CN111881433B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104753910A (en) * 2013-12-31 2015-07-01 腾讯科技(深圳)有限公司 Data processing method, platform, server and system
CN107679840A (en) * 2017-09-14 2018-02-09 维沃移动通信有限公司 A kind of resource transfers method, relevant device and system
WO2019100865A1 (en) * 2017-11-23 2019-05-31 阿里巴巴集团控股有限公司 Resource transfer and capital transfer method and apparatus
CN110648127A (en) * 2019-08-13 2020-01-03 平安普惠企业管理有限公司 Resource transfer method, device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106339870A (en) * 2016-08-16 2017-01-18 北京小米移动软件有限公司 Resource transfer method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104753910A (en) * 2013-12-31 2015-07-01 腾讯科技(深圳)有限公司 Data processing method, platform, server and system
CN107679840A (en) * 2017-09-14 2018-02-09 维沃移动通信有限公司 A kind of resource transfers method, relevant device and system
WO2019100865A1 (en) * 2017-11-23 2019-05-31 阿里巴巴集团控股有限公司 Resource transfer and capital transfer method and apparatus
CN110648127A (en) * 2019-08-13 2020-01-03 平安普惠企业管理有限公司 Resource transfer method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111881433A (en) 2020-11-03

Similar Documents

Publication Publication Date Title
TWI703465B (en) Core body method and device
US11601421B1 (en) Identity management system
EP3937456B1 (en) Universal digital identity authentication service
US9654477B1 (en) Adaptive authentication
US9984365B2 (en) Device identification based on deep fingerprint inspection
US10812485B1 (en) Wearable device-based user authentication
US11676141B2 (en) Block chain-based asset processing method, device, apparatus and storage medium
US9230066B1 (en) Assessing risk for third-party data collectors
US10826891B1 (en) Contextual and time sensitive out of band transactional signing
CN112464117A (en) Request processing method and device, computer equipment and storage medium
US11758403B1 (en) Threat identification, prevention, and remedy
CN110223075B (en) Identity authentication method and device, computer equipment and storage medium
CN114143319B (en) Money box control method and equipment based on Internet of things and edge calculation
US12039540B2 (en) Flexible authentication
CN113435517A (en) Abnormal data point output method and device, computer equipment and storage medium
CN110555319B (en) Resource expected result auditing method and device based on block chain and computer equipment
CN110851877A (en) Data processing method and device, block chain node point equipment and storage medium
CN112948499A (en) Information acquisition method and device, electronic equipment and storage medium
US20230046813A1 (en) Selecting communication schemes based on machine learning model predictions
CN112685502A (en) Data acquisition method, device, equipment and storage medium based on Internet of things
CN111881433B (en) Resource transfer method and device based on verification gesture and computer equipment
CN112487487A (en) Authority management method, device, equipment and storage medium for member of block chain node
EP3174263A1 (en) Apparatus and method for verifying detection rule
CN114416875B (en) Task processing method, device, equipment and storage medium based on blockchain
CN116051255A (en) Business library management method, system, device, computer equipment and storage medium

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