Disclosure of Invention
The invention provides a dynamic identification method, a dynamic identification device, electronic equipment and a computer readable storage medium for online commodity payment, and mainly aims to solve the problem that the safety and the accuracy of identification are not high when online commodity payment is carried out.
In order to achieve the above object, the present invention provides a dynamic identity recognition method for online commodity payment, which comprises:
acquiring a commodity payment request, generating an authentication password based on the commodity payment request and sending the authentication password to an authentication server;
receiving a dynamic encryption random password fed back by the authentication server based on the authentication password;
analyzing the dynamic encryption random password to obtain a dynamic random number, and performing password authentication based on the dynamic random number and the authentication server to obtain a password authentication result;
generating a face recognition interface based on the password authentication result, and acquiring a face image to be recognized from the face recognition interface;
denoising the face image to be recognized by using a mean value filtering formula to obtain an original recognition image, wherein the mean value filtering formula is as follows:
wherein,
for presetting neighborhoods
Internal removal
The total number of remaining pixel points other than the point,
in order to remove the noise of the pixel point,
before de-noisingThe pixel point of (2);
performing histogram equalization processing on the original recognition image to obtain a standard recognition image, extracting local features in the standard recognition image by using an improved LBP algorithm, and performing histogram feature fusion on the local features to obtain original fusion features;
and carrying out identity recognition on the original fusion characteristics by utilizing a pre-trained deep belief network to obtain an identity recognition result.
Optionally, the generating an authentication password based on the commodity payment request and sending the authentication password to an authentication server includes:
analyzing and extracting the unique identification code IMEI and the commodity payment information in the commodity payment request;
and encrypting the unique identification code IMEI and the commodity payment information by using a preset server public key to obtain the authentication password.
Optionally, the analyzing the dynamic encrypted random password to obtain a dynamic random number, and performing password authentication based on the dynamic random number and the authentication server to obtain a password authentication result, includes:
decrypting the dynamic encrypted random password by using a preset user private key to obtain the dynamic random number and a random number hash value;
carrying out hash processing on the dynamic random number to obtain a verification hash value;
comparing whether the verification hash value and the random number hash value are equal or not;
if the verification hash value is not equal to the random number hash value, the password authentication result is authentication failure;
and if the verification hash value is not equal to the random number hash value, performing hash processing on a preset communication secret and the dynamic random number, sending a hash processing result to the authentication server and receiving a password authentication result fed back by the authentication server, wherein the password authentication result comprises authentication success or authentication failure.
Optionally, the generating a face recognition interface based on the password authentication result, and acquiring a face image to be recognized from the face recognition interface includes:
when the password authentication result is that the authentication is successful, generating the face recognition interface;
and acquiring a face video stream by using the face recognition interface, reading face images in the face video stream frame by frame, and performing face correction to obtain the face image to be recognized.
Optionally, the performing histogram equalization processing on the original recognition image to obtain a standard recognition image includes:
calculating a gray level histogram of the original identification image;
and carrying out gray mean value conversion on the gray level histogram by using a preset conversion function to obtain the standard identification image.
Optionally, the performing gray scale mean conversion on the gray scale histogram by using a preset transformation function includes:
performing gray level mean value conversion on the gray level histogram by using the following gray level conversion formula:
wherein,
the gray levels of the image are identified for the standard,
a formula for converting a gray scale is expressed,
the formula of the rounding is shown as,
represents the gray level histogram, an
,
Representing a range of gray levels in the original recognition image.
Optionally, the extracting, by using an improved LBP algorithm, a local feature in the standard recognition image, and performing histogram feature fusion on the local feature to obtain an original fusion feature includes:
dividing the standard identification image into a plurality of image blocks by using a preset pixel acquisition area;
carrying out inner layer and outer layer sampling processing on each image block, calculating LBP values of pixel points in the outer layer and the inner layer, and carrying out weighted average on the LBP values in the outer layer and the inner layer to obtain local characteristics of each image block;
and connecting the local features of each image block in series to obtain the original fusion features.
Optionally, before the identifying the original fusion features by using the pre-trained deep belief network, the method further includes:
acquiring a face training image set, extracting local features of each image in the face training image set by using the improved LBP algorithm, and performing histogram feature fusion to obtain original training features of each image;
performing feature fusion on the original training features and corresponding images in the face training image set to obtain a standard training feature set of all images;
acquiring an original deep belief network, training RBM layers in the original deep belief network layer by utilizing the standard training feature set, and solving an energy value of each RBM layer;
and reversely adjusting parameters of RBM layers in the original deep belief network by using BP (back propagation) based on the energy values until the energy value of each RBM layer meets a preset energy threshold, and stopping training to obtain the trained deep belief network.
Optionally, the energy value of each RBM layer is calculated using the following energy formula:
wherein,
for the said amount of energy to be taken into account,
representing the visible nodes in the RBM layer,
representing an implicit node in the RBM layer,
indicates the number of the visible nodes,
the number of the implied nodes is indicated,
is shown as
The number of the visible nodes is one,
is shown as
An implicit node is defined as a node that is,
is shown as
A visual node and
the weight between the implicit nodes is such that,
a preset threshold value for the visible node,
a preset threshold for the hidden node.
In order to solve the above problem, the present invention further provides a dynamic identification device for online commodity payment, the device comprising:
the dynamic password acquisition module is used for acquiring a commodity payment request, generating an authentication password based on the commodity payment request, sending the authentication password to an authentication server, and receiving a dynamic encryption random password fed back by the authentication server based on the authentication password;
the password authentication module is used for analyzing the dynamic encryption random password to obtain a dynamic random number, and performing password authentication with the authentication server based on the dynamic random number to obtain a password authentication result;
the face image acquisition module is used for generating a face recognition interface based on the password authentication result and acquiring a face image to be recognized from the face recognition interface;
the local feature fusion module is used for carrying out denoising processing and histogram equalization processing on the face image to be recognized to obtain a standard recognition image, extracting local features in the standard recognition image by utilizing an improved LBP algorithm, and carrying out histogram feature fusion on the local features to obtain original fusion features;
and the identity recognition module is used for carrying out identity recognition on the original fusion characteristics by utilizing a pre-trained deep belief network to obtain an identity recognition result.
In order to solve the above problem, the present invention also provides an electronic device, including:
a memory storing at least one instruction; and
and the processor executes the instructions stored in the memory to realize the dynamic identification method for the online commodity payment.
In order to solve the above problem, the present invention further provides a computer-readable storage medium, which stores at least one instruction, where the at least one instruction is executed by a processor in an electronic device to implement the above dynamic identification method for online commodity payment.
Compared with the background art: the basic authentication mode of inputting a user name/password has the biggest problem that the user name and the password are transmitted in a clear text mode in a network and are easy to suffer from replay attack and dictionary attack, so that higher security requirements are difficult to meet. In order to improve the security of identity recognition during commodity payment, the embodiment of the invention generates an authentication password based on a commodity payment request and sends the authentication password to an authentication server, receives a dynamic encryption random password fed back by the authentication server based on the authentication password, analyzes the dynamic encryption random password to obtain a dynamic random number, performs dynamic password authentication based on the dynamic random number and the authentication server to obtain a password authentication result, and improves the security of identity authentication, secondly, a face recognition interface is generated based on the password authentication result, because the improved LBP algorithm focuses more on the local features in the standard recognition image and performs histogram feature fusion on the local features, the accuracy rate of face recognition can be improved, meanwhile, the identity is verified by combining the dynamic password with the face recognition, so that the accuracy and the safety of the identity recognition are further improved. Therefore, the dynamic identification method, the device, the electronic equipment and the computer readable storage medium for online commodity payment provided by the invention can solve the problem that the safety and the accuracy of identification are not high when online commodity payment is carried out.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the application provides an identity dynamic identification method for online commodity payment. The executing body of the dynamic identification method for online commodity payment includes, but is not limited to, at least one of electronic devices such as a server and a terminal, which can be configured to execute the method provided by the embodiment of the present application. In other words, the dynamic identification method for online commodity payment may be performed by software or hardware installed in a terminal device or a server device, and the software may be a block chain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.
Example 1:
fig. 1 is a schematic flow chart of a dynamic identity identification method for online commodity payment according to an embodiment of the present invention. In this embodiment, the method for dynamically identifying the identity of the online commodity payment includes:
s1, acquiring the commodity payment request, generating an authentication password based on the commodity payment request and sending the authentication password to the authentication server.
In the embodiment of the present invention, the commodity payment request may be an online commodity payment request generated by a mobile device such as a mobile phone and a tablet, and includes: the IMEI identification code of the mobile equipment, the pass secret phrase SPP, user information, commodity order information and the like. The IMEI and the SPP are stored in the authentication server in advance, and the mobile equipment stores the SPP. Illustratively, user a makes a request for payment of goods sent by an online purchase on a certain e-commerce platform. The authentication server can be a payment platform authentication server, and since the payment security is the most preferred guarantee for online shopping, authentication with the authentication server is required.
In detail, the generating an authentication password based on the commodity payment request and sending the authentication password to an authentication server includes:
analyzing and extracting the unique identification code IMEI and the commodity payment information in the commodity payment request;
and encrypting the unique identification code IMEI and the commodity payment information by using a preset server public key to obtain the authentication password.
It should be explained that, the mobile device side and the authentication server side of the present invention perform key exchange in advance, for example, public keys are exchanged respectively when the mobile device side and the authentication server side register in two directions, that is, the mobile device side sends the user public key to the authentication server side, and the authentication server side sends the server public key to the mobile device side.
For example, the unique identification code IMEI and the commodity order number G in the commodity payment request are extracted, and encrypted by using the server public key KSR, and the generated password is:
wherein
is shown as
The number of authentication passwords is such that,
is the server public key.
And S2, receiving the dynamic encryption random password fed back by the authentication server based on the authentication password.
In the embodiment of the invention, the authentication server uses the server private key KSS to carry out decryption operation
Obtaining IMEI and commodity order number G, inquiring database to compare IMEI, if IMEI does not exist, returning unauthenticated information, if IMEI exists, generating a random number based on the commodity order number
To IMEI and
performing hash processing
And generating dynamic encrypted random password by using public key KCR of mobile equipment terminal
。
Understandably, the mobile device end receives the dynamic encrypted random password
。
S3, analyzing the dynamic encrypted random password to obtain a dynamic random number, and carrying out password authentication based on the dynamic random number and the authentication server to obtain a password authentication result.
In detail, the analyzing the dynamic encrypted random password to obtain a dynamic random number, and performing password authentication based on the dynamic random number and the authentication server to obtain a password authentication result, includes:
decrypting the dynamic encrypted random password by using a preset user private key to obtain the dynamic random number and a random number hash value;
carrying out hash processing on the dynamic random number to obtain a verification hash value;
comparing whether the verification hash value and the random number hash value are equal or not;
if the verification hash value is not equal to the random number hash value, the password authentication result is authentication failure;
and if the verification hash value is not equal to the random number hash value, performing hash processing on a preset communication secret and the dynamic random number, sending a hash processing result to the authentication server and receiving a password authentication result fed back by the authentication server, wherein the password authentication result comprises authentication success or authentication failure.
In an alternative embodiment of the invention, the mobile device receives the dynamic encrypted random password
Then, firstly, the user private key KCS is used for decryption to obtain the dynamic random number
And
calculating
Comparison of
And
if not, the password authentication result is authentication failure, and the authentication is ended; if the two are equal, the identity of the server is verified, and the identity of the server is calculated
Sending the response number to the authentication server, and temporarily storing the response number by the authentication server
Then take out SPP in user database to calculate
And received
And comparing, if the mobile user identity authentication is the same as the authentication result, successfully authenticating the mobile user identity authentication, and returning authentication success information, otherwise, returning authentication failure information.
In another optional embodiment of the present invention, after performing password authentication based on the dynamic random number and the authentication server to obtain a password authentication result, the method further includes:
counting the verification failure times of the password authentication result as authentication failure;
if the verification failure times are smaller than a preset first failure threshold value, regenerating an authentication password and sending the authentication password to an authentication server side;
if the verification failure times are larger than or equal to the first failure threshold value but smaller than a preset second failure threshold value, limiting the sending time of the authentication password;
and if the verification failure times are larger than or equal to the second failure threshold value, forbidding to send an authentication password to the authentication server.
In an optional embodiment of the present invention, if the number of authentication failures is greater than or equal to the first failure threshold and less than the preset second failure threshold, the user may enter a delay state, in which any authentication password is no longer functional, until the delay state is completed, the user may input the password again for verification, and if the number of authentication failures is greater than or equal to the second failure threshold, the user is locked, the authentication server no longer receives any password of the user, and the user is notified to handle the unlocking service by a short message or an email.
And S4, generating a face recognition interface based on the password authentication result, and acquiring a face image to be recognized from the face recognition interface.
In the embodiment of the invention, the face recognition interface is used for acquiring the face image of the user and performing the second authentication.
In detail, referring to fig. 2, the generating a face recognition interface based on the password authentication result and acquiring a face image to be recognized from the face recognition interface includes:
s40, when the password authentication result is that the authentication is successful, generating the face recognition interface;
s41, collecting a face video stream by using the face recognition interface, reading the face image in the face video stream frame by frame and carrying out face correction to obtain the face image to be recognized.
In an optional embodiment of the invention, coordinates of center positions of left and right eyes in the face image can be respectively selected and connected, an included angle between the connecting line of the center positions of the two eyes and a horizontal coordinate axis x is an angle a to be corrected, and the face image to be recognized is obtained by correcting the face by taking the coordinate position C of a center pixel point of the face as the center of a circle and taking a as a rotation angle.
S5, denoising and histogram equalization are carried out on the face image to be recognized to obtain a standard recognition image, local features in the standard recognition image are extracted by utilizing an improved LBP algorithm, and histogram feature fusion is carried out on the local features to obtain original fusion features.
In the embodiment of the present invention, the histogram equalization processing is a method for correcting the gray distribution of an image. The method makes the gray histogram of the transformed image uniformly distributed between 0 and 255 by carrying out nonlinear change on the gray of the image. The operation not only can widen the dynamic range of the gray level change of the image, but also can enhance the definition of the image and highlight the detail information in the image.
In detail, the denoising and histogram equalization processing are performed on the face image to be recognized to obtain a standard recognition image, and the method includes:
denoising the face image to be recognized by using a mean value filtering formula to obtain an original recognition image;
and calculating a gray level histogram of the original identification image, and performing gray level mean value conversion on the gray level histogram by using a preset transformation function to obtain the standard identification image.
In an optional embodiment of the present invention, a neighborhood S is selected for a pixel (x, y) in an image f (m, n), and a gray average is calculated for all pixels in the neighborhood S and is used as a gray value of the pixel (x, y).
In an optional embodiment of the present invention, the following mean filtering formula is used to perform denoising processing:
wherein,
for presetting neighborhood in the face image to be recognized
Internal removal
The total number of remaining pixel points other than the point,
in order to remove the noise of the pixel point,
the pixel points before denoising.
In an optional embodiment of the present invention, the performing gray-level mean conversion on the gray-level histogram by using a preset transformation function includes:
performing gray level mean value conversion on the gray level histogram by using the following gray level conversion formula:
wherein,
the gray levels of the image are identified for the standard,
a formula for converting a gray scale is expressed,
the formula of the rounding is expressed,
represents the gray level histogram, an
,
Representing a range of gray levels in the original recognition image.
In detail, referring to fig. 3, the extracting, by using the improved LBP algorithm, the local features in the standard recognition image, and performing histogram feature fusion on the local features to obtain original fusion features includes:
s50, dividing the standard identification image into a plurality of image blocks by using a preset pixel acquisition area;
s51, performing inner layer and outer layer sampling processing on each image block, calculating LBP values of pixel points in the outer layer and the inner layer, and performing weighted average on the LBP values in the outer layer and the inner layer to obtain local characteristics of each image block;
and S52, the local features of each image block are connected in series to obtain the original fusion features.
In the embodiment of the invention, LBP is an algorithm for describing local texture, and the definition of extracting image features by the traditional LBP algorithm is as follows: selecting any point of an image as a central point, wherein an acquisition area is 3 multiplied by 3, taking a gray value of a central pixel point of the acquisition area as a threshold, comparing 8 neighborhood gray values with the central gray value, if the threshold is smaller than the neighborhood gray value, marking as 1, otherwise, marking as 0, and then serially connecting binary numbers of the 8 points in a clockwise direction, thereby forming binary coding; finally, a decimal number is obtained through weighted summation, and the value obtained through the calculation is the LBP value of the center point.
In order to collect more useful information and improve the utilization rate of texture information, the improved LBP algorithm is adopted, namely a 5 multiplied by 5 pixel acquisition area is used, meanwhile, pixels (similar to 'well' words) in a second row, a fourth row, a second column and a fourth column in the pixel acquisition area are selected to carry out LBP algorithm coding, wherein 8 pixel points near a central area are used as an inner layer, the other 8 pixel points are used as an outer layer, and the LBP values of the inner layer and the outer layer are weighted and averaged to obtain a new LBP value which is the most local characteristic.
Further, the improved LBP algorithm is used for extracting the LBP value in the standard identification image as the local feature, more texture information can be extracted (for example, local information such as a bright point and an edge in a face image can be reflected in a highlight mode), histogram feature fusion is carried out on the local features of all image blocks, and the utilization rate of useful information is improved.
And S6, carrying out identity recognition on the original fusion features by utilizing a pre-trained deep belief network to obtain an identity recognition result.
In the embodiment of the invention, the deep belief network comprises a plurality of limited Boltzmann machines (namely RBM layers) which are stacked and superposed and a layer of back propagation network (BP). The RBM layer is composed of a visual layer (V) and an implicit layer (H), and is a bipartite graph structure, nodes in one layer are not connected with each other, and nodes between different layers are connected with each other.
In an optional embodiment of the present invention, before the performing the identity recognition on the original fusion feature by using the pre-trained deep belief network, the method further includes:
acquiring a face training image set, extracting local features of each image in the face training image set by using the improved LBP algorithm, and performing histogram feature fusion to obtain original training features of each image;
performing feature fusion on the original training features and corresponding images in the face training image set to obtain a standard training feature set of all images;
acquiring an original deep belief network, training RBM layers in the original deep belief network layer by utilizing the standard training feature set, and solving an energy value of each RBM layer;
and based on the energy value, reversely adjusting parameters of RBM layers in the original deep belief network by using BP (back propagation) until the energy value of each RBM layer meets a preset energy threshold, and stopping training to obtain the trained deep belief network.
In an optional embodiment of the present invention, the original training features and the corresponding images in the face training image set may be feature fused by a convolutional layer. The method for extracting the local features in the face training image set is the same as that of S5, and is not described herein again. The face training image set can be a face image set uploaded by a mobile equipment end user in advance. The method comprises the steps of training the RBMs of each layer by adopting an unsupervised training mode from the bottom to the top gradually, specifically, inputting a standard training feature set into a visual layer of the RBMs of the first layer, taking an implicit layer of the RBMs of the first layer as a visual layer of the RBMs of the second layer after full training, training the whole DBN network layer by layer in a progressive mode, and performing supervised fine tuning on the whole DBN network by utilizing the BP network from the top to the bottom gradually in a fine tuning stage.
In an optional embodiment of the present invention, the energy value of each RBM layer is calculated by using the following energy formula:
wherein,
for the said amount of energy to be taken into account,
representing the visible nodes in the RBM layer,
representing an implicit node in the RBM layer,
indicates the number of the visible nodes,
the number of the implied nodes is indicated,
is shown as
The number of the visible nodes is one,
is shown as
An implicit node is defined as a node that,
is shown as
A visual node and
the weight between the implicit nodes is such that,
a preset threshold value for the visible node,
a preset threshold value for the hidden node.
In detail, the performing identity recognition on the original fusion features by using a pre-trained deep belief network to obtain an identity recognition result, including:
performing feature fusion on the original fusion features and the face image to be recognized to obtain standard fusion features;
and outputting the identity recognition result of the standard fusion characteristic by using the pre-trained deep belief network.
In the embodiment of the invention, the deep belief network is trained through the image uploaded by the user in advance, and the accuracy of face recognition can be improved under the interference of various internal and external factors such as sampling, expression, illumination, shielding and the like due to the fact that local features are concerned more during training.
Compared with the background art: the basic authentication mode of inputting a user name/password has the biggest problem that the user name and the password are transmitted in a clear text mode in a network and are easy to suffer from replay attack and dictionary attack, so that higher security requirements are difficult to meet. In order to improve the security of identity recognition during commodity payment, the embodiment of the invention generates an authentication password based on a commodity payment request and sends the authentication password to an authentication server, receives a dynamic encryption random password fed back by the authentication server based on the authentication password, analyzes the dynamic encryption random password to obtain a dynamic random number, performs dynamic password authentication based on the dynamic random number and the authentication server to obtain a password authentication result, and improves the security of identity authentication, secondly, a face recognition interface is generated based on the password authentication result, because the improved LBP algorithm pays more attention to the local features in the standard recognition image and performs histogram feature fusion on the local features, the accuracy rate of face recognition can be improved, meanwhile, the identity is verified by combining the dynamic password with the face recognition, so that the accuracy and the safety of the identity recognition are further improved. Therefore, the dynamic identification method for the online commodity payment provided by the invention can solve the problem that the safety and the accuracy of identification are not high when the online commodity payment is carried out.
Example 2:
fig. 4 is a functional block diagram of a dynamic identification apparatus for online commodity payment according to an embodiment of the present invention, which can implement the monitoring method in embodiment 1.
The dynamic identification device 100 for online commodity payment can be installed in an electronic device. According to the realized functions, the dynamic identity recognition device 100 for online commodity payment may include a dynamic password obtaining module 101, a password authentication module 102, a face image obtaining module 103, a local feature fusion module 104, and an identity recognition module 105. The module of the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
The dynamic password obtaining module 101 is configured to obtain a commodity payment request, generate an authentication password based on the commodity payment request, send the authentication password to an authentication server, and receive a dynamic encrypted random password fed back by the authentication server based on the authentication password;
the password authentication module 102 is configured to analyze the dynamic encrypted random password to obtain a dynamic random number, and perform password authentication with the authentication server based on the dynamic random number to obtain a password authentication result;
the face image obtaining module 103 is configured to generate a face recognition interface based on the password authentication result, and obtain a face image to be recognized from the face recognition interface;
the local feature fusion module 104 is configured to perform denoising and histogram equalization on the face image to be recognized to obtain a standard recognition image, extract local features in the standard recognition image by using an improved LBP algorithm, and perform histogram feature fusion on the local features to obtain original fusion features;
the identity recognition module 105 is configured to perform identity recognition on the original fusion feature by using a pre-trained deep belief network to obtain an identity recognition result.
In detail, when the modules in the dynamic identification apparatus 100 for online commodity payment according to the embodiment of the present invention are used, the same technical means as the above dynamic identification method for online commodity payment described in fig. 1 is adopted, and the same technical effects can be produced, which is not described herein again.
Example 3:
fig. 5 is a schematic structural diagram of an electronic device for implementing the dynamic identity identification method for online commodity payment according to an embodiment of the present invention.
The electronic device 1 may comprise a processor 10, a memory 11 and a bus, and may further comprise a computer program stored in the memory 11 and operable on the processor 10, such as a dynamic identification method program 12 for online payment of goods.
The memory 11 includes at least one type of readable storage medium, which includes flash memory, removable hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only to store application software installed in the electronic device 1 and various types of data, such as codes of the dynamic identification method program 12 for online payment of goods, but also to temporarily store data that has been output or is to be output.
The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the whole electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device 1 by running or executing programs or modules (for example, a dynamic identification method program for online commodity payment, etc.) stored in the memory 11 and calling data stored in the memory 11.
The bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
Fig. 5 only shows an electronic device with components, and it will be understood by a person skilled in the art that the structure shown in fig. 5 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or a combination of certain components, or a different arrangement of components.
For example, although not shown, the electronic device 1 may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so as to implement functions of charge management, discharge management, power consumption management, and the like through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device 1 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Further, the electronic device 1 may further include a network interface, and optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used for establishing a communication connection between the electronic device 1 and other electronic devices.
Optionally, the electronic device 1 may further comprise a user interface, which may be a Display (Display), an input unit (such as a Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the electronic device 1 and for displaying a visualized user interface, among other things.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The dynamic identification method for online payment of goods program 12 stored in the memory 11 of the electronic device 1 is a combination of instructions, which when executed in the processor 10, can realize:
acquiring a commodity payment request, generating an authentication password based on the commodity payment request and sending the authentication password to an authentication server;
receiving a dynamic encryption random password fed back by the authentication server based on the authentication password;
analyzing the dynamic encryption random password to obtain a dynamic random number, and performing password authentication based on the dynamic random number and the authentication server to obtain a password authentication result;
generating a face recognition interface based on the password authentication result, and acquiring a face image to be recognized from the face recognition interface;
carrying out denoising processing and histogram equalization processing on the face image to be recognized to obtain a standard recognition image, extracting local features in the standard recognition image by using an improved LBP algorithm, and carrying out histogram feature fusion on the local features to obtain original fusion features;
and carrying out identity recognition on the original fusion characteristics by utilizing a pre-trained deep belief network to obtain an identity recognition result.
Specifically, the specific implementation method of the processor 10 for the instruction may refer to the description of the relevant steps in the embodiments corresponding to fig. 1 to fig. 5, which is not repeated herein.
Further, the integrated modules/units of the electronic device 1, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. The computer readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
The present invention also provides a computer-readable storage medium, storing a computer program which, when executed by a processor of an electronic device, may implement:
acquiring a commodity payment request, generating an authentication password based on the commodity payment request and sending the authentication password to an authentication server;
receiving a dynamic encryption random password fed back by the authentication server based on the authentication password;
analyzing the dynamic encryption random password to obtain a dynamic random number, and performing password authentication based on the dynamic random number and the authentication server to obtain a password authentication result;
generating a face recognition interface based on the password authentication result, and acquiring a face image to be recognized from the face recognition interface;
carrying out denoising processing and histogram equalization processing on the face image to be recognized to obtain a standard recognition image, extracting local features in the standard recognition image by using an improved LBP algorithm, and carrying out histogram feature fusion on the local features to obtain original fusion features;
and carrying out identity recognition on the original fusion characteristics by utilizing a pre-trained deep belief network to obtain an identity recognition result.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The block chain 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 series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.