CN110874733A - Passive code scanning payment method and device supporting external equipment - Google Patents

Passive code scanning payment method and device supporting external equipment Download PDF

Info

Publication number
CN110874733A
CN110874733A CN201811015362.2A CN201811015362A CN110874733A CN 110874733 A CN110874733 A CN 110874733A CN 201811015362 A CN201811015362 A CN 201811015362A CN 110874733 A CN110874733 A CN 110874733A
Authority
CN
China
Prior art keywords
payment
equipment
image
cloud server
external
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811015362.2A
Other languages
Chinese (zh)
Inventor
王越
宴成
姚远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Inspiry Technology Co Ltd
Original Assignee
Beijing Inspiry Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Inspiry Technology Co Ltd filed Critical Beijing Inspiry Technology Co Ltd
Priority to CN201811015362.2A priority Critical patent/CN110874733A/en
Publication of CN110874733A publication Critical patent/CN110874733A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3274Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being displayed on the M-device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords

Abstract

The disclosure provides a passive code scanning payment method supporting an external device, which is used for judging whether a mobile payment device is successfully connected with a cloud server; if the connection is successful, the mobile payment equipment provides an external equipment request password input interface so that the merchant can input the external equipment request password; the mobile payment equipment sends an external equipment connection request signal to the cloud server when receiving the external equipment request password; the method comprises the steps that when the mobile payment equipment receives an external equipment connection permission signal returned by a cloud server, data connection is established between the mobile payment equipment and the external equipment; after receiving payment information sent by a cloud server through external equipment, intercepting a payment two-dimensional code as a payment image; and when the payment event is monitored to be triggered, completing the payment operation. The method is compatible with various external devices, realizes image recognition operation aiming at the payment image efficiently, accurately and quickly, and has easy use and applicability. The present disclosure also provides a passive code scanning payment device supporting the external device.

Description

Passive code scanning payment method and device supporting external equipment
Technical Field
The disclosure relates to the technical field of mobile payment and the technical field of image recognition, in particular to a passive code scanning payment method and device supporting external equipment.
Background
In the prior art, the cash register method is to open the electronic device for the payer, scan most of the static two-dimensional codes provided by the merchant (the static payment image inevitably contains some impurities, interference and the like in the image in the process of making and image acquisition, so that the image has the problems of noise, blurring and uneven gray scale), recognize and read the information of the two-dimensional codes, and complete the payment operation. The operation makes the cash register form single, only has an active payment mode, and can not provide a simpler payment mode of 'payment action' for merchants in most habitual scenes, and the operation has no diversity and applicability.
Even if the operation of passively reading the bar code to complete payment begins to appear in the market at the present stage, the limitation of application of the external device can be caused by the failure of well supporting the external device.
Disclosure of Invention
In order to solve technical problems in the prior art, the embodiment of the disclosure provides a passive code scanning payment method and device supporting an external device, and whether a mobile payment device is successfully connected with a cloud server is judged; if the connection is successful, the mobile payment equipment provides an external equipment request password input interface so that the merchant can input the external equipment request password; the mobile payment equipment sends an external equipment connection request signal to the cloud server when receiving the external equipment request password; the method comprises the steps that when the mobile payment equipment receives an external equipment connection permission signal returned by a cloud server, data connection is established between the mobile payment equipment and the external equipment; after receiving payment information sent by a cloud server through external equipment, intercepting a payment two-dimensional code as a payment image; and when the payment event is monitored to be triggered, completing the payment operation. The method is compatible with various external devices, realizes image recognition operation aiming at the payment image efficiently, accurately and quickly, and has easy use and applicability.
In a first aspect, an embodiment of the present disclosure provides a passive code scanning payment method supporting an external device, including the following steps: judging whether the mobile payment device is successfully connected with the cloud server or not; if the connection is successful, the mobile payment equipment provides an external equipment request password input interface so that a merchant can input the external equipment request password; when receiving the external device request password, the mobile payment device sends the external device connection request signal to the cloud server, wherein the external device connection request signal at least comprises the external device request password; the mobile payment equipment establishes data connection with the external equipment when receiving an external equipment connection permission signal returned by the cloud server, wherein the cloud server returns the external equipment connection permission signal after requesting password authentication to the external equipment successfully; after receiving payment information sent by the cloud server through the external device, intercepting a payment two-dimensional code as a payment image, and storing the payment image in a picture library, wherein the payment information is generated by the cloud server according to the payment information acquired by a payment terminal device through the payment two-dimensional code displayed by the mobile payment device; and when the payment event is monitored to be triggered, completing the payment operation.
In one embodiment, the method further comprises the following steps: when the mobile payment equipment is connected to the external equipment, starting the mobile payment equipment to initiate a connection request to the cloud server.
In one embodiment, the method further comprises the following steps: after the payment event is monitored to be triggered, when the mobile payment equipment is charged, deleting the payment image from the picture library, and setting a default picture in a built-in system of the mobile payment equipment as a prompt image; and when the current electric quantity of the mobile payment equipment is lower than a preset electric quantity threshold value, setting a quota default picture in a built-in system of the mobile payment equipment as a prompt image.
In one embodiment, the method further comprises the following steps: the method comprises the steps of obtaining the illumination intensity of a screen of the mobile payment device and the illumination intensity reflected by the screen of the mobile payment device in a preset time period, and constructing a screen illumination intensity database aiming at the mobile payment device and a screen reflection illumination intensity database aiming at the mobile payment device.
In one embodiment, the when the monitoring that the payment event is triggered, then completing the payment operation includes: establishing a mapping relation between the characteristics of the cash register commodity and the price of the cash register commodity; according to the mapping relation, the commodity price in each commodity and the price of the commodity corresponding to the current payment image are obtained; and finishing the cash register operation on the price of the commodity corresponding to the current payment image.
In one embodiment, the method further comprises the following steps: after the payment two-dimensional code is intercepted and used as the payment image, the payment image is divided; according to the Dajin algorithm, performing rough segmentation operation on the region of interest in the divided payment image; and completing the segmentation operation suitable for the payment image by shape testing on the result obtained after the rough segmentation operation.
In one embodiment, the performing, by shape testing, the segmentation operation applied to the payment image on the result obtained after the coarse segmentation operation includes: completing the graph segmentation operation suitable for the payment image by a malformation degree test on the result obtained after the rough segmentation operation, wherein the malformation degree test is carried out by a simple malformation degree calculation formula gamma l/NpCalculating the degree of deformity of the region of interest, wherein l is the perimeter of the region of interest, and N ispThe number of the pixel points in the region of interest is counted; presetting a high threshold gamma of degree of deformityT(ii) a When gamma is less than or equal to gammaTJudging that the result obtained after the rough segmentation operation passes the deformity degree test; when gamma > gammaTAnd then, carrying out secondary rough segmentation operation on the region of interest by the segmentation method based on the gradient vector flow-active contour model, and completing the segmentation operation suitable for the payment image by shape testing on the result obtained after the secondary rough segmentation operation.
In a second aspect, the disclosed embodiments provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the method described above.
In a third aspect, the disclosed embodiments provide a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method described above when executing the program.
In a fourth aspect, an embodiment of the present disclosure provides a passive code scanning payment device supporting an external device, where the device includes: the judging module is used for judging whether the mobile payment device is successfully connected with the cloud server; the input module is used for providing an external equipment request password input interface by the mobile payment equipment if the connection is successful so that a merchant can input the external equipment request password; the sending module is used for sending the external device connection request signal to the cloud server when the mobile payment device receives the external device request password, wherein the external device connection request signal at least comprises the external device request password; the data connection establishing module is used for establishing data connection with the external equipment when the mobile payment equipment receives an external equipment connection permission signal returned by the cloud server, wherein the cloud server returns the external equipment connection permission signal after requesting password authentication to the external equipment successfully; the intercepting module is used for intercepting a payment two-dimensional code as a payment image after receiving payment information sent by the cloud server through the external device, and storing the payment image into a picture library, wherein the payment information is generated by the cloud server according to the payment information acquired by a payment terminal device through the payment two-dimensional code displayed by the mobile payment device; and the payment module is used for finishing payment operation when the payment event is monitored to be triggered.
The passive code scanning payment method and device supporting the external device provided by the invention are used for judging whether the mobile payment device is successfully connected with the cloud server or not; if the connection is successful, the mobile payment equipment provides an external equipment request password input interface so that the merchant can input the external equipment request password; the mobile payment equipment sends an external equipment connection request signal to the cloud server when receiving the external equipment request password; the method comprises the steps that when the mobile payment equipment receives an external equipment connection permission signal returned by a cloud server, data connection is established between the mobile payment equipment and the external equipment; after receiving payment information sent by a cloud server through external equipment, intercepting a payment two-dimensional code as a payment image; and when the payment event is monitored to be triggered, completing the payment operation. The method is compatible with various external devices, realizes image recognition operation aiming at the payment image efficiently, accurately and quickly, and has easy use and applicability.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the description of the embodiments are briefly introduced as follows:
fig. 1 is a schematic flowchart illustrating steps of a passive code scanning payment method for supporting an external device according to an embodiment of the present invention; and
fig. 2 is a schematic structural diagram of a passive code scanning payment apparatus supporting an external device according to an embodiment of the present invention.
Detailed Description
The present application will now be described in further detail with reference to the accompanying drawings and examples.
In the following description, the terms "first" and "second" are used for descriptive purposes only and are not intended to indicate or imply relative importance. The following description provides embodiments of the disclosure, which may be combined or substituted for various embodiments, and this application is therefore intended to cover all possible combinations of the same and/or different embodiments described. Thus, if one embodiment includes feature A, B, C and another embodiment includes feature B, D, then this application should also be considered to include an embodiment that includes one or more of all other possible combinations of A, B, C, D, even though this embodiment may not be explicitly recited in text below.
In order to make the objects, technical solutions and advantages of the present invention more clearly understood, specific embodiments of the passive code scanning payment method and apparatus supporting an external device according to the present invention are described in further detail below by way of embodiments and with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It can be understood that, in most cases, the cashier opens the electronic device for the payer, scans most of the static two-dimensional codes provided by the merchant (in the process of manufacturing and image acquisition of the static payment image, impurities, interference and the like are inevitably mixed in the image, so that the image has the problems of noise, blurring and uneven gray scale), reads the information of the two-dimensional codes, and completes the payment operation. The operation makes the cash register form single, only has an active payment mode, and can not provide a simpler payment mode of 'payment action' for merchants in most habitual scenes, and the operation has no diversity and applicability. Further, the operation of passively reading the barcode to complete payment begins to appear in the market, and the external device cannot be well supported, so that the application limitation is caused.
As shown in fig. 1, a schematic flow chart of a passive code scanning payment method supporting an external device in an embodiment specifically includes the following steps:
step 101, judging whether the mobile payment device is successfully connected with the cloud server.
In one embodiment, the passive code scanning payment method for supporting the external device further includes: when the mobile payment device is connected to the external device, the mobile payment device is started to initiate a connection request to the cloud server.
And step 102, if the connection is successful, the mobile payment equipment provides an external equipment request password input interface so that the merchant can input the external equipment request password.
Step 103, when receiving the external device request password, the mobile payment device sends an external device connection request signal to the cloud server, wherein the external device connection request signal at least includes the external device request password.
And 104, when receiving an external device connection permission signal returned by the cloud server, the mobile payment device establishes data connection with the external device, wherein the cloud server returns the external device connection permission signal after successfully requesting password authentication for the external device.
And 105, after receiving payment information sent by the cloud server through the external device, intercepting the payment two-dimensional code as a payment image, and storing the payment image into a picture library, wherein the payment information is generated by the cloud server according to the payment information acquired by the payment terminal device through the payment two-dimensional code displayed by the mobile payment device.
In one embodiment, the passive code scanning payment method for supporting the external device further includes: after intercepting the payment two-dimensional code as a payment image, dividing the payment image; according to the Dajin algorithm, performing rough segmentation operation on the region of interest in the divided payment image; and completing the segmentation operation suitable for the payment image by shape testing on the result obtained after the rough segmentation operation.
The Otsu algorithm is to divide an original image into a foreground image and a background image by using a threshold. Specifically, the prospect is: points, mass moments and average gray levels of the foreground under the current threshold are represented by n1, csum and m 1; background: the number of points, the mass moment and the average gray level of the background under the current threshold are represented by n2, sum-csum and m 2. When the optimal threshold is taken, the difference between the background and the foreground is the largest, and the key is how to select a standard for measuring the difference, namely an Otsu algorithm, namely the maximum between-class variance, which is represented by sb, and the maximum between-class variance which is represented by fmax. Further, regarding the sensitivity of Otsu's algorithm to noise and target size, it only produces better segmentation effect on images with a single peak between classes variance. When the size ratio of the target to the background is very different, the inter-class variance criterion function may present double peaks or multiple peaks, which is not good, but the greater amount of algorithm is the least time-consuming. Further, the formula for the Otsu algorithm is derived as: recording t as a segmentation threshold of the foreground and the background, wherein the number of foreground points accounts for w0 of the image proportion, and the average gray level is u 0; the number of background points is w1 in the image scale, and the average gray scale is u 1. The total average gray scale of the image is: u-w 0 u0+ w1 u 1. The variance of the foreground and background images can be expressed by the following formula:
g (w 0 (u0-u) (u0-u) + w1 (u1-u) (u1-u) (w 0) w1 (u0-u1) (u0-u 1). It should be noted that the above formula is a variance formula. The formula for g can be referred to in probability theory, i.e. the expression for sb as described below. When the variance g is maximum, the difference between the foreground and the background at this time can be considered as maximum, and the gray level t at this time is the optimal threshold sb — w0 — w1 (u1-u0) (u0-u 1).
Specifically, the dividing the payment image includes: selecting a segmentation channel based on a statistical rule of payment image data of a training sample; selecting a segmentation threshold value in a segmentation channel, and performing foreground and background segmentation on the payment image; and carrying out communication area analysis according to the segmented foreground pixels and background pixels to obtain a qualified two-dimensional code area, wherein the payment image subblocks are divided in the qualified two-dimensional code area in a preset row and preset column dividing mode, and the preset row and the preset column are equivalent numerical values. Thereby providing the necessary data basis for subsequent rapid recognition of the payment image.
Further, it should be noted that, based on the statistical rules of the payment image data of the training sample, selecting the split channel includes: based on the statistical rules of the payment image data of the training samples, the distribution conditions of the image values in different color channels are obtained, and the color channel with the largest image value variance is obtained from the distribution conditions to form a segmentation channel. In addition, it should be further noted that selecting a segmentation threshold in a segmentation channel, and performing foreground and background segmentation on the payment image includes: obtaining a segmentation threshold value through a minimization algorithm in the Dajin algorithm; acquiring an image pixel value of a payment image; and performing dichotomy segmentation according to the image pixel value and the segmentation threshold value to obtain the foreground and the background. Further, it should be noted that, performing bisection segmentation according to the image pixel value and the segmentation threshold, and acquiring the foreground and the background includes: acquiring a region of which the image pixel value is higher than a segmentation threshold value as a foreground; and acquiring a region of which the image pixel value is lower than or equal to the segmentation threshold as a background.
Furthermore, performing connected region analysis according to the segmented foreground pixels and background pixels, and acquiring the two-dimensional code regions meeting the conditions includes: clustering the segmented foreground pixels and background pixels to form a communication area; and selecting the area with the largest size and meeting the prior position information in the communication area to form a two-dimensional code area meeting the conditions, and outputting the two-dimensional code area meeting the conditions.
Further, it should be noted that the performing, by shape testing, the segmentation operation applicable to the payment image on the result obtained after the rough segmentation operation includes: and completing the graph segmentation operation suitable for the payment image according to the result obtained after the rough segmentation operation through an area test, wherein the area test is to judge whether the number of the pixel points in the region of interest meets a pixel point threshold interval of a preset normal two-dimensional code area. Furthermore, it should be noted that the completing, by the shape test, the segmentation operation applicable to the payment image on the result obtained after the rough segmentation operation includes: completing the graph segmentation operation suitable for the payment image by a simple malformation degree calculation formula gamma l/N on the result obtained after the rough segmentation operation through a malformation degree testpCalculating the degree of deformity of the region of interest, wherein l is the perimeter of the region of interest, and N ispThe number of pixel points in the region of interest is counted; presetting a high threshold gamma of degree of deformityT(ii) a When gamma is less than or equal to gammaTJudging that the result obtained after the rough segmentation operation passes the deformity degree test; when gamma > gammaTAnd then, carrying out secondary rough segmentation operation on the region of interest by the segmentation method based on the gradient vector flow-active contour model, and completing the segmentation operation suitable for the payment image by shape testing on the result obtained after the secondary rough segmentation operation.
And step 106, when the payment event is monitored to be triggered, completing the payment operation.
Specifically, a mapping relation between the characteristics of the cash register commodity and the price of the cash register commodity is established; according to the mapping relation, the commodity price in each commodity and the price of the commodity corresponding to the current payment image are obtained; and finishing the cash register operation according to the price of the commodity corresponding to the current payment image. And obtaining the commodity price of each commodity according to the mapping relation, accumulating the commodity prices, and obtaining the price of the commodity corresponding to the current payment image. It can be understood that the prices of the accumulated commodities are pre-stored, and the prices of the commodities can be quickly analyzed and obtained through neural network learning according to historical data of user shopping. It should be noted that, in order to increase the user experience, the data of the cash register operation and the completion status are displayed.
In one embodiment, the passive code scanning payment method for supporting the external device further includes: after the payment event is monitored to be triggered, when the mobile payment equipment is charged, deleting the payment image from the picture library, and setting a default picture in a built-in system of the mobile payment equipment as a prompt image; and when the current electric quantity of the mobile payment equipment is lower than a preset electric quantity threshold value, setting a quota default picture in a built-in system of the mobile payment equipment as a prompt image. The presentation image is a power-off low power presentation image.
In addition, it should be noted that the passive code scanning payment method supporting the external device according to the present disclosure further includes: the method comprises the steps of obtaining the illumination intensity of a screen of the mobile payment device and the illumination intensity reflected by the screen of the mobile payment device in a preset time period, and constructing a screen illumination intensity database aiming at the mobile payment device and a screen reflection illumination intensity database aiming at the mobile payment device.
The passive code scanning payment method supporting the external device provided by the invention is used for judging whether the mobile payment device is successfully connected with the cloud server or not; if the connection is successful, the mobile payment equipment provides an external equipment request password input interface so that the merchant can input the external equipment request password; the mobile payment equipment sends an external equipment connection request signal to the cloud server when receiving the external equipment request password; the method comprises the steps that when the mobile payment equipment receives an external equipment connection permission signal returned by a cloud server, data connection is established between the mobile payment equipment and the external equipment; after receiving payment information sent by a cloud server through external equipment, intercepting a payment two-dimensional code as a payment image; and when the payment event is monitored to be triggered, completing the payment operation. The method is compatible with various external devices, realizes image recognition operation aiming at the payment image efficiently, accurately and quickly, and has easy use and applicability.
Based on the same inventive concept, the invention also provides a passive payment device supporting the external equipment. Because the principle of the device for solving the problems is similar to the passive code scanning payment method supporting the external equipment, the implementation of the device can be realized according to the specific steps of the method, and repeated parts are not repeated.
Fig. 2 is a schematic structural diagram of a passive code scanning payment apparatus supporting an external device in an embodiment. This passive code payment device 10 of sweeping of supporting external device includes: the system comprises a judging module 100, an input module 200, a sending module 300, a data connection establishing module 400, an intercepting module 500 and a payment module 600.
The judging module 100 is configured to judge whether the mobile payment device is successfully connected to the cloud server; the input module 200 is configured to provide an external device request password input interface for the mobile payment device if the connection is successful, so that the merchant can input the external device request password; the sending module 300 is configured to send an external device connection request signal to the cloud server when the mobile payment device receives the external device request password, where the external device connection request signal at least includes the external device request password; the data connection establishing module 400 is configured to establish data connection with the external device when the mobile payment device receives an external device connection permission signal returned by the cloud server, where the cloud server returns the external device connection permission signal after requesting password authentication for the external device successfully; the intercepting module 500 is configured to intercept a payment two-dimensional code as a payment image after receiving payment information sent by a cloud server through an external device, and store the payment image in a picture library, where the payment information is generated by the cloud server according to payment information obtained by a payment terminal device through the payment two-dimensional code displayed by a mobile payment device; the payment module 600 is configured to complete the payment operation when it is detected that the payment event is triggered.
The passive code scanning payment device supporting the external equipment provided by the invention judges whether the mobile payment equipment is successfully connected with the cloud server or not through the judgment module; if the connection is successful through the input module, the mobile payment equipment provides an external equipment request password input interface so that the merchant can input the external equipment request password; the mobile payment equipment sends an external equipment connection request signal to the cloud server when receiving the external equipment request password through the sending module; then, according to the data connection establishment module, when receiving an external device connection permission signal returned by the cloud server, the mobile payment device establishes data connection with the external device; after the payment information sent by the cloud server is received through the external equipment through the intercepting module, intercepting the payment two-dimensional code as a payment image; and finally, when the payment module detects that the payment event is triggered, completing the payment operation. The device is compatible with various external devices, realizes image recognition operation aiming at payment images efficiently, accurately and quickly, and has usability and applicability.
In the above, according to the passive code scanning payment method and apparatus supporting the external device and the computer-readable storage medium of the embodiment of the disclosure, whether the mobile payment device is successfully connected with the cloud server is judged; if the connection is successful, the mobile payment equipment provides an external equipment request password input interface so that the merchant can input the external equipment request password; the mobile payment equipment sends an external equipment connection request signal to the cloud server when receiving the external equipment request password; the method comprises the steps that when the mobile payment equipment receives an external equipment connection permission signal returned by a cloud server, data connection is established between the mobile payment equipment and the external equipment; after receiving payment information sent by a cloud server through external equipment, intercepting a payment two-dimensional code as a payment image; and when the payment event is monitored to be triggered, completing the payment operation. The method is compatible with various external devices, realizes image recognition operation aiming at the payment image efficiently, accurately and quickly, and has easy use and applicability. An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by the processor in fig. 1.
The embodiment of the invention also provides a computer program product containing the instruction. Which when run on a computer causes the computer to perform the method of fig. 1 described above.
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 a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.
The foregoing describes the general principles of the present disclosure in conjunction with specific embodiments, however, it is noted that the advantages, effects, etc. mentioned in the present disclosure are merely examples and are not limiting, and they should not be considered essential to the various embodiments of the present disclosure. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the disclosure is not intended to be limited to the specific details so described.
The block diagrams of devices, apparatuses, systems referred to in this disclosure are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
Also, as used herein, the use of "or" in a list of items beginning with "at least one" indicates a separate list, e.g., "A, B or at least one of C" means A or B or C, or AB or AC or BC, or ABC (i.e., A and B and C). Furthermore, the word "exemplary" does not mean that the described example is preferred or better than other examples.
It is also noted that in the systems and methods of the present disclosure, components or steps may be decomposed and/or re-combined. These decompositions and/or recombinations are to be considered equivalents of the present disclosure.
Various changes, substitutions and alterations to the techniques described herein may be made without departing from the techniques of the teachings as defined by the appended claims. Moreover, the scope of the claims of the present disclosure is not limited to the particular aspects of the process, machine, manufacture, composition of matter, means, methods and acts described above. Processes, machines, manufacture, compositions of matter, means, methods, or acts, presently existing or later to be developed that perform substantially the same function or achieve substantially the same result as the corresponding aspects described herein may be utilized. Accordingly, the appended claims are intended to include within their scope such processes, machines, manufacture, compositions of matter, means, methods, or acts.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the disclosure. Thus, the present disclosure is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit embodiments of the disclosure to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.

Claims (10)

1. A passive code scanning payment method supporting external equipment is characterized by comprising the following steps:
judging whether the mobile payment device is successfully connected with the cloud server or not;
if the connection is successful, the mobile payment equipment provides an external equipment request password input interface so that a merchant can input the external equipment request password;
when receiving the external device request password, the mobile payment device sends the external device connection request signal to the cloud server, wherein the external device connection request signal at least comprises the external device request password;
the mobile payment equipment establishes data connection with the external equipment when receiving an external equipment connection permission signal returned by the cloud server, wherein the cloud server returns the external equipment connection permission signal after requesting password authentication to the external equipment successfully;
after receiving payment information sent by the cloud server through the external device, intercepting a payment two-dimensional code as a payment image, and storing the payment image in a picture library, wherein the payment information is generated by the cloud server according to the payment information acquired by a payment terminal device through the payment two-dimensional code displayed by the mobile payment device;
and when the payment event is monitored to be triggered, completing the payment operation.
2. The passive code scanning payment method supporting the external device according to claim 1, further comprising: when the mobile payment equipment is connected to the external equipment, starting the mobile payment equipment to initiate a connection request to the cloud server.
3. The passive code scanning payment method supporting the external device according to claim 1, further comprising: after the payment event is monitored to be triggered, when the mobile payment equipment is charged, deleting the payment image from the picture library, and setting a default picture in a built-in system of the mobile payment equipment as a prompt image;
and when the current electric quantity of the mobile payment equipment is lower than a preset electric quantity threshold value, setting a quota default picture in a built-in system of the mobile payment equipment as a prompt image.
4. The passive code scanning payment method supporting the external device according to claim 1, further comprising: the method comprises the steps of obtaining the illumination intensity of a screen of the mobile payment device and the illumination intensity reflected by the screen of the mobile payment device in a preset time period, and constructing a screen illumination intensity database aiming at the mobile payment device and a screen reflection illumination intensity database aiming at the mobile payment device.
5. The passive code scanning payment method supporting the external device according to claim 1, wherein when the payment event is monitored to be triggered, the completing the payment operation comprises: establishing a mapping relation between the characteristics of the cash register commodity and the price of the cash register commodity;
according to the mapping relation, the commodity price in each commodity and the price of the commodity corresponding to the current payment image are obtained;
and finishing the cash register operation on the price of the commodity corresponding to the current payment image.
6. The passive code scanning payment method supporting the external device according to claim 1, further comprising: after the payment two-dimensional code is intercepted and used as the payment image, the payment image is divided;
according to the Dajin algorithm, performing rough segmentation operation on the region of interest in the divided payment image;
and completing the segmentation operation suitable for the payment image by shape testing on the result obtained after the rough segmentation operation.
7. The method for payment by scanning code passively supporting an external device according to claim 6, wherein the performing the segmentation operation applied to the payment image by the shape test on the result obtained after the rough segmentation operation comprises: completing the graph segmentation operation suitable for the payment image by a malformation degree test on the result obtained after the rough segmentation operation, wherein the malformation degree test is carried out by a simple malformation degree calculation formula gamma l/NpCalculating the degree of deformity of the region of interest, wherein l is the perimeter of the region of interest, and N ispThe number of the pixel points in the region of interest is counted; presetting a high threshold gamma of degree of deformityT
When gamma is less than or equal to gammaTJudging that the result obtained after the rough segmentation operation passes the deformity degree test;
when gamma > gammaTAnd then, carrying out secondary rough segmentation operation on the region of interest by the segmentation method based on the gradient vector flow-active contour model, and completing the segmentation operation suitable for the payment image by shape testing on the result obtained after the secondary rough segmentation operation.
8. 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 7.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1-7 are implemented when the program is executed by the processor.
10. A passive code scanning payment device supporting an external device, the device comprising:
the judging module is used for judging whether the mobile payment device is successfully connected with the cloud server;
the input module is used for providing an external equipment request password input interface by the mobile payment equipment if the connection is successful so that a merchant can input the external equipment request password;
the sending module is used for sending the external device connection request signal to the cloud server when the mobile payment device receives the external device request password, wherein the external device connection request signal at least comprises the external device request password;
the data connection establishing module is used for establishing data connection with the external equipment when the mobile payment equipment receives an external equipment connection permission signal returned by the cloud server, wherein the cloud server returns the external equipment connection permission signal after requesting password authentication to the external equipment successfully;
the intercepting module is used for intercepting a payment two-dimensional code as a payment image after receiving payment information sent by the cloud server through the external device, and storing the payment image into a picture library, wherein the payment information is generated by the cloud server according to the payment information acquired by a payment terminal device through the payment two-dimensional code displayed by the mobile payment device;
and the payment module is used for finishing payment operation when the payment event is monitored to be triggered.
CN201811015362.2A 2018-08-31 2018-08-31 Passive code scanning payment method and device supporting external equipment Pending CN110874733A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811015362.2A CN110874733A (en) 2018-08-31 2018-08-31 Passive code scanning payment method and device supporting external equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811015362.2A CN110874733A (en) 2018-08-31 2018-08-31 Passive code scanning payment method and device supporting external equipment

Publications (1)

Publication Number Publication Date
CN110874733A true CN110874733A (en) 2020-03-10

Family

ID=69715941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811015362.2A Pending CN110874733A (en) 2018-08-31 2018-08-31 Passive code scanning payment method and device supporting external equipment

Country Status (1)

Country Link
CN (1) CN110874733A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113495771A (en) * 2020-04-08 2021-10-12 北京意锐新创科技有限公司 Information display method and device suitable for payment equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663337A (en) * 2012-03-16 2012-09-12 江南大学 Method for quick Data Matrix two-dimensional barcode identifying under simple condition background
CN202976328U (en) * 2012-07-18 2013-06-05 朱磊 Wireless mobile intelligent cashing system
CN104463892A (en) * 2014-12-24 2015-03-25 福州大学 Bacterial colony image segmentation method based on level set and GVF Snake accurate positioning
CN104504662A (en) * 2014-12-26 2015-04-08 北京慧眼智行科技有限公司 Homomorphic filtering based image processing method and system
CN104794420A (en) * 2015-04-27 2015-07-22 江苏中科贯微自动化科技有限公司 Code128 automatic identification method for industrial automatic production
CN105072084A (en) * 2015-07-03 2015-11-18 上海与德通讯技术有限公司 Method for building data connection between mobile terminal and external equipment
CN107423651A (en) * 2016-06-01 2017-12-01 国家计算机网络与信息安全管理中心 A kind of QR codes image position method
CN108171509A (en) * 2018-03-12 2018-06-15 宁波大学 Realize that mobile terminal multi-screen upsets the safe payment method of display
CN108257227A (en) * 2018-02-12 2018-07-06 上海与德科技有限公司 A kind of Quick Response Code settlement method, terminal and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663337A (en) * 2012-03-16 2012-09-12 江南大学 Method for quick Data Matrix two-dimensional barcode identifying under simple condition background
CN202976328U (en) * 2012-07-18 2013-06-05 朱磊 Wireless mobile intelligent cashing system
CN104463892A (en) * 2014-12-24 2015-03-25 福州大学 Bacterial colony image segmentation method based on level set and GVF Snake accurate positioning
CN104504662A (en) * 2014-12-26 2015-04-08 北京慧眼智行科技有限公司 Homomorphic filtering based image processing method and system
CN104794420A (en) * 2015-04-27 2015-07-22 江苏中科贯微自动化科技有限公司 Code128 automatic identification method for industrial automatic production
CN105072084A (en) * 2015-07-03 2015-11-18 上海与德通讯技术有限公司 Method for building data connection between mobile terminal and external equipment
CN107423651A (en) * 2016-06-01 2017-12-01 国家计算机网络与信息安全管理中心 A kind of QR codes image position method
CN108257227A (en) * 2018-02-12 2018-07-06 上海与德科技有限公司 A kind of Quick Response Code settlement method, terminal and system
CN108171509A (en) * 2018-03-12 2018-06-15 宁波大学 Realize that mobile terminal multi-screen upsets the safe payment method of display

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113495771A (en) * 2020-04-08 2021-10-12 北京意锐新创科技有限公司 Information display method and device suitable for payment equipment

Similar Documents

Publication Publication Date Title
CN110119675B (en) Product identification method and device
CN110874732A (en) Scanned payment method and device based on mobile payment equipment
CN110874733A (en) Passive code scanning payment method and device supporting external equipment
CN110874734A (en) Dynamic two-dimensional code generation method and device
CN110874540A (en) Method and device for reading bar code at all angles
CN111311233A (en) Passive code scanning method and device based on multi-trigger mode
CN110910127A (en) Mobile payment device-based cash registering method and device applied to restaurant
JP6888243B2 (en) Information processing equipment, information processing methods, and programs
CN111091368A (en) Closed type quick payment method and device
CN111091371A (en) Quick payment method and device
CN111091367A (en) Open type quick payment method and device
CN111091375A (en) Quick payment method and device based on commodity code recognition
CN111091363A (en) Quick payment method and device cooperatively applied with POS device
CN111091376A (en) Payment method and device integrating code scanning and non-contact card swiping
CN110874542A (en) Method and device suitable for reading bar codes displayed by different carriers
CN111091369A (en) Quick payment method and device applied in cooperation with input device
CN111091017A (en) Cash register optimization method and device of mobile payment device in high-frequency transaction state
CN111091366A (en) Deduction and scanning type payment method and device applied to long distance
CN111091370A (en) Payment method and device supporting external equipment based on electromagnetic interference state
CN111091668A (en) Zero-distance cash registering method and device based on two-dimensional code recognition device
CN110910591A (en) Cash registering method and device based on mobile payment device and applied to scenic spot
CN110910128A (en) Mobile payment device-based cash registering method and device applied to schools
CN111311241A (en) Two-dimensional code reading method and device based on scene perception
CN110910121A (en) Mobile payment equipment-based cash registering method and device applied to hospital
CN111091374A (en) Quick payment method and device applied in cooperation with input device and printing device

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200310