CN109146471B - Code scanning payment method and device and intelligent equipment - Google Patents

Code scanning payment method and device and intelligent equipment Download PDF

Info

Publication number
CN109146471B
CN109146471B CN201811031861.0A CN201811031861A CN109146471B CN 109146471 B CN109146471 B CN 109146471B CN 201811031861 A CN201811031861 A CN 201811031861A CN 109146471 B CN109146471 B CN 109146471B
Authority
CN
China
Prior art keywords
payment
code
adjusting
payment code
adjustment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811031861.0A
Other languages
Chinese (zh)
Other versions
CN109146471A (en
Inventor
王强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201811031861.0A priority Critical patent/CN109146471B/en
Publication of CN109146471A publication Critical patent/CN109146471A/en
Application granted granted Critical
Publication of CN109146471B publication Critical patent/CN109146471B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/3276Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being read by the M-device

Abstract

The invention is suitable for the technical field of electronic payment, and provides a code scanning payment method, a code scanning payment device and intelligent equipment.

Description

Code scanning payment method and device and intelligent equipment
Technical Field
The invention belongs to the technical field of electronic payment, and particularly relates to a code scanning payment method and device and intelligent equipment.
Background
Along with the development of smart machine miniaturization manufacturing technology to the intelligence wearing equipment of intelligent wrist-watch, intelligent eyes, intelligent bracelet, intelligent earphone as the representative fuses gradually in people's life, and along with the popularization of electronic payment, current intelligence wearing equipment also has the electronic payment function, so that people can enjoy the convenience of electronic payment anytime and anywhere.
However, since the smart watch is generally worn on the wrist of the user, the direction of the payment code such as the barcode is displayed in a fixed direction, such as a horizontal screen or a vertical screen, in the process of payment by the user through the smart watch, the payment can be completed only by identifying the scanning direction of the code scanning device and the barcode in parallel, but in actual operation, the position where the user stands is different from the position of a cashier, the user can hardly adjust the barcode to be parallel to the laser beam emitted by the code scanning device through the arm, so that the payment efficiency is low, and the user experience is very poor.
Disclosure of Invention
In view of this, the embodiments of the present invention provide a code scanning payment method and apparatus, and an intelligent device, so as to solve the problems of low payment efficiency and poor user experience caused by non-parallel scanning direction and barcode of a code scanning device in a code scanning payment process of an existing intelligent watch.
A first aspect of an embodiment of the present invention provides a code scanning payment method, including:
when the intelligent equipment displays the payment code on a payment interface to carry out payment operation, detecting whether an adjusting instruction is received or not;
when an adjusting instruction is received, direction adjustment is carried out on the payment code according to a preset adjusting mode;
and when the information to be paid sent by the code scanning device is received in the process of adjusting the direction, executing payment operation.
A second aspect of an embodiment of the present invention provides a code scanning payment apparatus, including:
the adjusting instruction receiving unit is used for detecting whether an adjusting instruction is received or not when the intelligent equipment displays the payment code on the payment interface to carry out payment operation;
the direction adjusting unit is used for adjusting the direction of the payment code according to a preset adjusting mode when an adjusting instruction is received;
and the payment processing unit is used for executing payment operation when receiving the information to be paid sent by the code scanning device in the process of adjusting the direction.
A third aspect of an embodiment of the present invention provides an intelligent device, including:
the code scanning payment method comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the computer program to realize the steps of the code scanning payment method provided by the first aspect of the embodiment of the invention.
Wherein the computer program comprises:
the adjusting instruction receiving unit is used for detecting whether an adjusting instruction is received or not when the intelligent equipment displays the payment code on the payment interface to carry out payment operation;
the direction adjusting unit is used for adjusting the direction of the payment code according to a preset adjusting mode when an adjusting instruction is received;
and the payment processing unit is used for executing payment operation when receiving the information to be paid sent by the code scanning device in the process of adjusting the direction.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, which stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the code scanning payment method provided by the first aspect of the embodiments of the present invention.
Wherein the computer program comprises:
the adjusting instruction receiving unit is used for detecting whether an adjusting instruction is received or not when the intelligent equipment displays the payment code on the payment interface to carry out payment operation;
the direction adjusting unit is used for adjusting the direction of the payment code according to a preset adjusting mode when an adjusting instruction is received;
and the payment processing unit is used for executing payment operation when receiving the information to be paid sent by the code scanning device in the process of adjusting the direction.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: whether the adjusting instruction is received or not is detected when the intelligent equipment displays the payment code on the payment interface to carry out payment operation, when the adjusting instruction is received, the direction of the payment code is adjusted according to a preset adjusting mode, and when the information to be paid sent by the code scanning equipment is received in the direction adjusting process, the payment operation is executed, the direction of the payment code is adjusted through the adjusting instruction, so that the payment code can be quickly identified by the code scanning equipment, the payment efficiency is improved, and the user experience is better.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of an implementation of a code scanning payment method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating an implementation of a method for detecting whether an adjustment instruction is received according to a second embodiment of the present invention;
fig. 3 is a flowchart of an implementation of a method for adjusting direction of a payment code according to a tracking adjustment mode according to a fifth embodiment of the present invention;
fig. 4 is a schematic diagram of a code scanning payment device according to a sixth embodiment of the present invention;
fig. 5 is a schematic diagram of an intelligent device according to a seventh embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Example one
Referring to fig. 1, fig. 1 shows an implementation process of a code scanning payment method according to an embodiment of the present invention, which is detailed as follows:
in step S101, when the smart device displays a payment code on a payment interface to perform a payment operation, it is detected whether an adjustment instruction is received.
In the embodiment of the present invention, the smart device includes, but is not limited to, a smart watch, a smart phone, a smart bracelet, and the like, and is not particularly limited herein, and is preferably a smart watch. The payment code includes, but is not limited to, a barcode and a two-dimensional code, that is, the payment code displayed on the payment interface may be only a barcode, or may be a combination of a barcode and a two-dimensional code, or a combination of a barcode and a number, which is not specifically limited herein.
Here, the adjustment instruction is specifically an instruction to perform direction adjustment on the payment code. The adjusting instruction includes, but is not limited to, an adjusting instruction generated according to the motion data collected by the sensor device, and an adjusting instruction sent by the trigger timer when a preset condition is reached.
Here, the adjustment instruction is an adjustment instruction generated or triggered by the smart device according to a preset condition when the direction of the payment code is not parallel to a line segment formed by a laser beam emitted by the code scanning device.
In step S102, when an adjustment instruction is received, the direction of the payment code is adjusted according to a preset adjustment mode.
In the embodiment of the present invention, the preset adjustment manner includes, but is not limited to, a loop adjustment mode and a tracking adjustment mode. The cyclic adjustment mode is to adjust the direction of the payment code according to a 360-degree cyclic rotation mode, and the tracking adjustment mode is to track and adjust the direction of the payment code according to the calculated deviation angle.
It will be appreciated that the preset adjustment may also be other user-defined adjustments, such as controlling the rotation of the pay codes by a preset frequency for the purpose of directional adjustment.
Here, when the intelligent device receives the adjustment instruction, the corresponding preset adjustment mode is triggered according to the preset priority, and the direction of the payment code is adjusted according to the preset adjustment mode, so that the payment code can be rapidly read by the code scanning device, and the corresponding payment operation is completed.
The preset priority is a priority preset by a user for different adjustment modes, where the user may set the adjustment mode corresponding to the adjustment instruction generated according to the data collected by the motion sensor to be a loop adjustment mode, or the user may set the adjustment mode corresponding to the adjustment instruction generated according to the voice data collected by the voice sensor to be a tracking adjustment mode, which is specifically corresponding to which adjustment mode, which is not specifically limited herein.
In step S103, when the information to be paid transmitted by the code scanning device is received in the course of the direction adjustment, a payment operation is performed.
In the embodiment of the invention, when the intelligent device receives the information to be paid, which is sent by the code scanning device, in the process of adjusting the direction, the laser beam sent by the code scanning device is parallel to the payment code, that is, the code scanning device can scan the payment code and send the corresponding information to be paid to the intelligent device, so that the intelligent device can execute corresponding payment operation according to the information to be paid.
In the embodiment of the invention, whether an adjusting instruction is received or not is detected when the intelligent equipment displays the payment code on the payment interface to carry out payment operation, when the adjusting instruction is received, the direction of the payment code is adjusted according to a preset adjusting mode, when the information to be paid sent by the code scanning equipment is received in the direction adjusting process, the payment operation is executed, and the direction of the payment code is adjusted through the adjusting instruction, so that the payment code can be rapidly identified by the code scanning equipment, the payment efficiency is improved, and the user experience is better.
Example two
Optionally, referring to fig. 2, fig. 2 shows a specific implementation flow of a method for detecting whether an adjustment instruction is received according to a second embodiment of the present invention, which is detailed as follows:
in step S201, motion data of a user is collected through a sensor device disposed in the smart device.
In embodiments of the present invention, the sensor devices include, but are not limited to, motion sensors, sound sensors, and pressure sensors. The motion data includes, but is not limited to, data collected by a motion sensor and generated when a user swings an arm wearing the smart device, voice data collected by a sound sensor and generated when the user makes a pressing or touching motion on a screen of the smart device, and data collected by a pressing sensor and generated when the user makes a pressing or touching motion on the screen of the smart device.
It can be understood that, when the intelligent device shows the payment code on the payment interface for payment operation, if the user finds that the code scanning device fails to read the payment code shown on the payment interface, the direction of the payment code can be adjusted by waving an arm, sending a voice command, and touching or pressing a screen end of the intelligent device, at this time, the sensor device arranged in the intelligent device collects action data generated when the user performs the actions, so as to judge whether to generate an adjustment instruction to trigger the direction adjustment of the payment code.
In step S202, the motion data is compared with preset data to determine whether the motion data and the preset data match each other.
In the embodiment of the invention, preset data used for judging whether to generate the adjusting instruction is stored in the intelligent device end or the cloud server end, so that whether to generate the adjusting instruction is determined according to the comparison result of the collected action data and the preset data to judge whether to accord with the action data and the preset data.
It is understood that the preset data includes, but is not limited to, motion trace data, voice data, screen pattern data, and the like.
In step S203, when the motion data matches preset data, an adjustment instruction is generated.
In the embodiment of the invention, when the intelligent device judges that the action data acquired by the sensor device conforms to the preset data, the intelligent device generates the adjusting instruction to trigger the preset adjusting mode, so that the intelligent device adjusts the direction of the payment code according to the preset adjusting mode, the payment code can be quickly read by the code scanning device, and the corresponding payment operation is completed.
In an application scenario, when a user displays a payment code through a smart watch worn by the user to perform payment operation, and observes that a laser beam emitted by a code scanning device is not parallel to the payment code and cannot perform payment, the user waves an arm or draws a preset gesture through the arm, a sensor device in the smart device collects action data generated by the arm waved by the user, compares the action data with preset data stored in a database, such as gesture data, generates an adjusting instruction to trigger a corresponding adjusting mode to perform direction adjustment on the payment code when the smart device determines that the action data collected by the sensor device is consistent with the preset data, namely the action data and the preset data are consistent, and controls the payment code to rotate clockwise or anticlockwise according to a preset frequency after triggering the corresponding adjusting mode so that the payment code can be rapidly read by the code scanning device in a rotation process, thereby completing the corresponding payment operation.
EXAMPLE III
Optionally, a third embodiment of the present invention provides specific implementation steps of a method for detecting whether an adjustment instruction is received, where the steps are as follows:
when the intelligent equipment displays payment on a payment interface to carry out payment operation and does not receive the information to be paid sent by the code scanning equipment within the preset time, the timer is triggered to send out an adjusting instruction.
In the embodiment of the invention, if the intelligent device displays payment on the payment interface to carry out payment operation, when the intelligent device does not receive the information to be paid sent by the code scanning device within the preset time, that is, the code scanning device fails to read the payment code, the intelligent device triggers the timer to send an adjusting instruction to trigger the corresponding adjusting mode to carry out direction adjustment on the payment code, and after the corresponding adjusting mode is triggered, the payment code is controlled to rotate clockwise or anticlockwise according to the preset frequency, so that the payment code can be rapidly read by the code scanning device in the rotating process, and the corresponding payment operation is completed.
It will be understood that the predetermined time referred to herein is any time greater than or equal to the minimum time required for the code scanning device to identify the payment code.
In the embodiment of the invention, whether the timer is triggered to send out the adjusting instruction is determined by judging whether the information to be paid sent by the code scanning device is received within the preset time, so that the manual operation steps of a user are reduced, and the user experience is better.
Example four
Optionally, in an embodiment of the present invention, the step of performing direction adjustment on the payment code according to a preset adjustment manner in the first embodiment specifically includes:
and carrying out direction adjustment on the payment code according to a circular adjustment mode.
Optionally, in an embodiment of the present invention, the step of performing direction adjustment on the payment code according to a round-robin adjustment mode specifically includes:
and controlling the payment code to rotate according to a preset adjusting period and a preset adjusting angle by taking the central point of the payment code as a circle center.
Optionally, the step of controlling the payment code to rotate according to a preset adjustment period and a preset adjustment angle by using the center point of the payment code as a circle center specifically includes:
and controlling the payment code to rotate clockwise by taking the central point of the payment code as a circle center according to a preset adjusting period and a preset adjusting angle.
Optionally, the step of controlling the payment code to rotate according to a preset adjustment period and a preset adjustment angle by using the center point of the payment code as a circle center specifically includes:
and controlling the payment code to rotate anticlockwise by taking the central point of the payment code as a circle center according to a preset adjusting period and a preset adjusting angle.
Here, the preset regulation period is in particular any time greater than or equal to the minimum time required for the code scanning device to read the payment code. The preset adjustment angle is any angle larger than zero, and is not limited specifically here.
In the embodiment of the invention, the rotation efficiency of the payment code is improved through the preset adjusting period and the preset adjusting angle, so that the code scanning equipment can read the payment code more quickly, the corresponding payment operation is completed, and the user experience is better.
EXAMPLE five
Optionally, in an embodiment of the present invention, the step of performing direction adjustment on the payment code according to a preset adjustment manner in the first embodiment specifically includes:
and carrying out direction adjustment on the payment code according to a tracking adjustment mode.
Referring to fig. 3, fig. 3 shows a specific implementation flow of a method for adjusting direction of a payment code according to a tracking adjustment mode according to a fifth embodiment of the present invention, which is detailed as follows:
in step S301, a corresponding laser projection line segment is generated according to a laser beam collected by a camera disposed on the smart device; the laser beam is a laser beam emitted by the code scanning device.
In the embodiment of the invention, when the intelligent device detects the laser beam emitted by the code scanning device, the camera is started to collect the laser beam, and the corresponding laser projection line segment is generated according to the laser beam.
In step S302, a payment interface of the smart device is used as a reference plane of a two-dimensional coordinate system, and a central point of the payment interface is used as an origin of the two-dimensional coordinate system, and coordinate analysis is performed on the laser projection line segment and the payment code, so as to obtain coordinates of the laser projection line segment and the payment code.
In the embodiment of the invention, a payment interface of intelligent equipment is taken as a reference plane of a two-dimensional coordinate system, the center point of the payment interface is used for locating the origin of the two-dimensional coordinate system, and the coordinate analysis is carried out on the laser projection line segment to obtain the coordinate of the laser projection line segment; and performing segmentation on the payment code by taking the central point of the payment code as an origin according to a certain proportion to obtain a corresponding payment code line segment, and performing coordinate analysis on the payment code line segment to obtain the coordinate of the payment code line segment.
It is understood that a line perpendicular to the center of the pay code may be used as the pay code line segment in the process of line-segmenting the pay code at a certain ratio from the center point to the origin.
In step S303, a deviation angle formed between the laser projection line segment and the payment code is calculated according to the coordinates of the two.
In the embodiment of the invention, according to the coordinates of the payment code line segment formed by the laser projection line segment and the payment code, the deviation angle formed between the laser projection line segment and the payment code line segment can be calculated, and the deviation angle can also be understood as the included angle formed by the laser projection line segment and the payment code line segment, which means that the payment code is not parallel to the laser beam emitted by the code scanning device, so that the payment code of the intelligent device cannot be read by the code scanning device.
In step S304, when the deviation angle is not zero, the payment code is controlled to rotate until the deviation angle is zero.
In the embodiment of the invention, when the deviation angle is not zero, that is, the laser projection line segment and the payment code line segment are not parallel, the intelligent device controls the payment code to rotate until the deviation angle is zero.
Optionally, in step S304, specifically:
when the deviation angle is not zero, determining whether the deviation angle is in the range of [0,90 ° ] by taking the payment code line segment as a reference line segment, and if so, controlling the payment code to rotate anticlockwise until the deviation angle is zero;
otherwise, controlling the payment code to rotate clockwise until the deviation angle is zero.
Optionally, in step S304, specifically:
and controlling the payment code to rotate according to a preset frequency until the deviation angle is zero.
In the embodiment of the invention, when the deviation angle is adjusted to zero, that is to say, the laser beam of the code scanning device is parallel to the payment code, the code scanning device can read the payment code to complete the corresponding payment operation, and when the deviation angle is adjusted, the intelligent device does not control the payment code to rotate any more, so that the system load of the intelligent device is reduced, the power consumption of the intelligent device is reduced, and the user experience is better.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be controlled by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
EXAMPLE six
Corresponding to a code scanning payment method described in any one of the above embodiments one to five, fig. 4 shows a schematic diagram of a code scanning payment apparatus provided in an embodiment of the present invention, and for convenience of explanation, only the parts related to the embodiment of the present invention are shown.
Referring to fig. 4, the apparatus includes:
the adjusting instruction receiving unit 41 is configured to detect whether an adjusting instruction is received when the intelligent device displays the payment code on the payment interface to perform payment operation;
the direction adjusting unit 42 is used for adjusting the direction of the payment code according to a preset adjusting mode when receiving an adjusting instruction;
and a payment processing unit 43, configured to perform a payment operation when the information to be paid sent by the code scanning device is received in the course of performing the direction adjustment.
Optionally, the adjustment instruction receiving unit 41 includes:
the action data acquisition subunit is used for acquiring action data of a user through sensor equipment arranged in the intelligent equipment;
the data comparison subunit is used for comparing the action data with preset data and judging whether the action data and the preset data are consistent;
and the adjusting instruction generating subunit is used for generating an adjusting instruction when the action data conforms to preset data.
Optionally, the sensor devices include, but are not limited to, motion sensors, sound sensors, and pressure sensors.
Optionally, the motion data includes, but is not limited to, data collected by a motion sensor and generated when the user swings an arm wearing the smart device, voice data collected by a sound sensor and generated when the user makes a pressing or touching motion on the screen of the smart device, and data collected by a pressing sensor and generated when the user makes a pressing or touching motion on the screen of the smart device.
Optionally, the adjustment instruction receiving unit 41 includes:
and the adjusting instruction triggering subunit is used for triggering the timer to send out an adjusting instruction when the intelligent equipment displays payment on the payment interface to carry out payment operation and does not receive the information to be paid sent by the code scanning equipment within the preset time.
Optionally, the direction adjusting unit 42 includes:
and the circulation adjusting direction subunit is used for performing direction adjustment on the payment code according to a circulation adjusting mode.
Optionally, the cyclic adjustment direction subunit is specifically configured to:
and controlling the payment code to rotate according to a preset adjusting period and a preset adjusting angle by taking the central point of the payment code as a circle center.
Optionally, the direction adjusting unit 42 includes:
and the tracking and adjusting direction subunit is used for performing direction adjustment on the payment code according to a tracking and adjusting mode.
Optionally, the tracking adjustment direction subunit includes:
the laser projection line segment generation subunit is used for generating a corresponding laser projection line segment according to the laser beam collected by the camera arranged on the intelligent equipment; the laser beam is a laser beam emitted by the code scanning equipment;
the coordinate analysis subunit is used for performing coordinate analysis on the laser projection line segment and the payment code respectively by taking a payment interface of the intelligent device as a reference plane of a two-dimensional coordinate system and taking a central point of the payment interface as an origin point of the two-dimensional coordinate system to obtain coordinates of the laser projection line segment and the payment code;
the deviation angle calculating subunit is used for calculating a deviation angle formed between the laser projection line segment and the payment code according to the coordinates of the laser projection line segment and the payment code;
and the tracking rotation control subunit is used for controlling the payment code to rotate until the deviation angle is zero when the deviation angle is not zero.
In the embodiment of the invention, whether an adjusting instruction is received or not is detected when the intelligent equipment displays the payment code on the payment interface to carry out payment operation, when the adjusting instruction is received, the direction of the payment code is adjusted according to a preset adjusting mode, when the information to be paid sent by the code scanning equipment is received in the direction adjusting process, the payment operation is executed, and the direction of the payment code is adjusted through the adjusting instruction, so that the payment code can be rapidly identified by the code scanning equipment, the payment efficiency is improved, and the user experience is better.
EXAMPLE seven
Fig. 5 is a schematic diagram of an intelligent device according to a seventh embodiment of the present invention. As shown in fig. 5, the smart device 5 of this embodiment includes: a processor 50, a memory 51 and a computer program 52 stored in said memory 51 and executable on said processor 50. The processor 50, when executing the computer program 52, implements the steps in the various embodiments of the code scanning payment method described above, such as the steps 101 to 103 shown in fig. 1. Alternatively, the processor 50, when executing the computer program 52, implements the functions of the units in the system embodiments, such as the functions of the modules 41 to 43 shown in fig. 4.
Illustratively, the computer program 52 may be divided into one or more units, which are stored in the memory 51 and executed by the processor 50 to accomplish the present invention. The one or more units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 52 in the smart device 5. For example, the computer program 52 may be divided into an adjustment instruction receiving unit 41, a direction adjusting unit 42, and a payment processing unit 43, and the specific functions of each unit are as follows:
the adjusting instruction receiving unit 41 is configured to detect whether an adjusting instruction is received when the intelligent device displays the payment code on the payment interface to perform payment operation;
the direction adjusting unit 42 is used for adjusting the direction of the payment code according to a preset adjusting mode when receiving an adjusting instruction;
and a payment processing unit 43, configured to perform a payment operation when the information to be paid sent by the code scanning device is received in the course of performing the direction adjustment.
Optionally, the adjustment instruction receiving unit 41 includes:
the action data acquisition subunit is used for acquiring action data of a user through sensor equipment arranged in the intelligent equipment;
the data comparison subunit is used for comparing the action data with preset data and judging whether the action data and the preset data are consistent;
and the adjusting instruction generating subunit is used for generating an adjusting instruction when the action data conforms to preset data.
Optionally, the sensor devices include, but are not limited to, motion sensors, sound sensors, and pressure sensors.
Optionally, the motion data includes, but is not limited to, data collected by a motion sensor and generated when the user swings an arm wearing the smart device, voice data collected by a sound sensor and generated when the user makes a pressing or touching motion on the screen of the smart device, and data collected by a pressing sensor and generated when the user makes a pressing or touching motion on the screen of the smart device.
Optionally, the adjustment instruction receiving unit 41 includes:
and the adjusting instruction triggering subunit is used for triggering the timer to send out an adjusting instruction when the intelligent equipment displays payment on the payment interface to carry out payment operation and does not receive the information to be paid sent by the code scanning equipment within the preset time.
Optionally, the direction adjusting unit 42 includes:
and the circulation adjusting direction subunit is used for performing direction adjustment on the payment code according to a circulation adjusting mode.
Optionally, the cyclic adjustment direction subunit is specifically configured to:
and controlling the payment code to rotate according to a preset adjusting period and a preset adjusting angle by taking the central point of the payment code as a circle center.
Optionally, the direction adjusting unit 42 includes:
and the tracking and adjusting direction subunit is used for performing direction adjustment on the payment code according to a tracking and adjusting mode.
Optionally, the tracking adjustment direction subunit includes:
the laser projection line segment generation subunit is used for generating a corresponding laser projection line segment according to the laser beam collected by the camera arranged on the intelligent equipment; the laser beam is a laser beam emitted by the code scanning equipment;
the coordinate analysis subunit is used for performing coordinate analysis on the laser projection line segment and the payment code respectively by taking a payment interface of the intelligent device as a reference plane of a two-dimensional coordinate system and taking a central point of the payment interface as an origin point of the two-dimensional coordinate system to obtain coordinates of the laser projection line segment and the payment code;
the deviation angle calculating subunit is used for calculating a deviation angle formed between the laser projection line segment and the payment code according to the coordinates of the laser projection line segment and the payment code;
and the tracking rotation control subunit is used for controlling the payment code to rotate until the deviation angle is zero when the deviation angle is not zero.
The smart device 5 may include, but is not limited to, a processor 50, a memory 51. Those skilled in the art will appreciate that fig. 5 is merely an example of a smart device 5 and does not constitute a limitation of the smart device 5 and may include more or fewer components than shown, or some components in combination, or different components, for example the smart device may also include input output devices, network access devices, buses, etc.
The Processor 50 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may be an internal storage unit of the intelligent device 5, such as a hard disk or a memory of the intelligent device 5. The memory 51 may also be an external storage device of the Smart device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the Smart device 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the smart device 5. The memory 51 is used for storing the computer program and other programs and data required by the smart device. The memory 51 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the system is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided by the present invention, it should be understood that the disclosed system/intelligent device and method may be implemented in other ways. For example, the above-described system/smart device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units 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 units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units 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, and can also be realized in a form of a software functional unit.
The integrated modules/units, 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. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or system capable of carrying said computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A method for code scanning payment, the method comprising:
when the intelligent equipment displays the payment code on a payment interface to carry out payment operation, detecting whether an adjusting instruction is received or not; the adjusting instruction is an instruction for adjusting the direction of the payment code;
when an adjusting instruction is received, direction adjustment is carried out on the payment code according to a preset adjusting mode;
and when the information to be paid sent by the code scanning device is received in the process of adjusting the direction, executing payment operation.
2. The method of claim 1, wherein the step of detecting whether an adjustment instruction is received comprises:
acquiring action data of a user through sensor equipment arranged in the intelligent equipment;
comparing the action data with preset data and judging whether the action data and the preset data are consistent;
and when the action data are consistent with preset data, generating an adjusting instruction.
3. The method of claim 1, wherein the step of detecting whether an adjustment instruction is received comprises:
when the intelligent equipment displays payment on a payment interface to carry out payment operation and does not receive the information to be paid sent by the code scanning equipment within the preset time, the timer is triggered to send out an adjusting instruction.
4. A method according to any one of claims 1 to 3, wherein the step of directionally adjusting the payment code in accordance with a predetermined adjustment comprises:
and carrying out direction adjustment on the payment code according to a circular adjustment mode.
5. The method of claim 4, wherein said directional adjustment of said payment code in a round-robin adjustment mode is performed by:
and controlling the payment code to rotate according to a preset adjusting period and a preset adjusting angle by taking the central point of the payment code as a circle center.
6. A method according to any one of claims 1 to 3, wherein the step of directionally adjusting the payment code in accordance with a predetermined adjustment comprises:
and carrying out direction adjustment on the payment code according to a tracking adjustment mode.
7. The method of claim 6, wherein said step of directionally adjusting said payment code in accordance with a tracking adjustment mode comprises:
generating a corresponding laser projection line segment according to a laser beam collected by a camera arranged on the intelligent equipment; the laser beam is a laser beam emitted by the code scanning equipment;
taking a payment interface of intelligent equipment as a reference plane of a two-dimensional coordinate system, taking a central point of the payment interface as an origin point of the two-dimensional coordinate system, and respectively carrying out coordinate analysis on the laser projection line segment and the payment code to obtain coordinates of the laser projection line segment and the payment code;
calculating a deviation angle formed between the laser projection line segment and the payment code according to the coordinates of the laser projection line segment and the payment code;
and when the deviation angle is not zero, controlling the payment code to rotate until the deviation angle is zero.
8. A code scanning payment device, the device comprising:
the adjusting instruction receiving unit is used for detecting whether an adjusting instruction is received or not when the intelligent equipment displays the payment code on the payment interface to carry out payment operation; the adjusting instruction is an instruction for adjusting the direction of the payment code;
the direction adjusting unit is used for adjusting the direction of the payment code according to a preset adjusting mode when an adjusting instruction is received;
and the payment processing unit is used for executing payment operation when receiving the information to be paid sent by the code scanning device in the process of adjusting the direction.
9. A smart device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor when executing the computer program implements the steps of the code scanning payment method according to any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the code-scanning payment method according to any one of claims 1 to 7.
CN201811031861.0A 2018-09-05 2018-09-05 Code scanning payment method and device and intelligent equipment Active CN109146471B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811031861.0A CN109146471B (en) 2018-09-05 2018-09-05 Code scanning payment method and device and intelligent equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811031861.0A CN109146471B (en) 2018-09-05 2018-09-05 Code scanning payment method and device and intelligent equipment

Publications (2)

Publication Number Publication Date
CN109146471A CN109146471A (en) 2019-01-04
CN109146471B true CN109146471B (en) 2021-03-26

Family

ID=64827140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811031861.0A Active CN109146471B (en) 2018-09-05 2018-09-05 Code scanning payment method and device and intelligent equipment

Country Status (1)

Country Link
CN (1) CN109146471B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111007971B (en) * 2019-12-10 2021-09-14 支付宝(杭州)信息技术有限公司 Display method and device in payment scene

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7970650B2 (en) * 2008-02-04 2011-06-28 Nec Infrontia Corporation POS device
CN106548107A (en) * 2015-09-23 2017-03-29 株式会社理光 Bar code positioner and bar code localization method and apparatus for reading of bar code and bar code read method
CN206711109U (en) * 2017-04-07 2017-12-05 廊坊市圣淘电子技术服务股份有限公司 A kind of logistics equipment device for electric business
CN107633187A (en) * 2017-08-31 2018-01-26 福建联迪商用设备有限公司 A kind of method and terminal for testing barcode scanning performance

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7970650B2 (en) * 2008-02-04 2011-06-28 Nec Infrontia Corporation POS device
CN106548107A (en) * 2015-09-23 2017-03-29 株式会社理光 Bar code positioner and bar code localization method and apparatus for reading of bar code and bar code read method
CN206711109U (en) * 2017-04-07 2017-12-05 廊坊市圣淘电子技术服务股份有限公司 A kind of logistics equipment device for electric business
CN107633187A (en) * 2017-08-31 2018-01-26 福建联迪商用设备有限公司 A kind of method and terminal for testing barcode scanning performance

Also Published As

Publication number Publication date
CN109146471A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
US10885639B2 (en) Hand detection and tracking method and device
US11544711B2 (en) Biometric feature database establishing method and apparatus
CN110471409B (en) Robot inspection method and device, computer readable storage medium and robot
EP3695329A1 (en) Method and apparatus for determining data exception
CN109961781B (en) Robot-based voice information receiving method and system and terminal equipment
CN111339086A (en) Block processing method, and data query method and device based on block chain
KR20170012287A (en) Efficient forest sensing based eye tracking
KR20140103046A (en) Object Tracing Method and Electronic Device supporting the same
CN112488914A (en) Image splicing method, device, terminal and computer readable storage medium
KR102208631B1 (en) Method for inputting/outputting security information and Electronic device using the same
US10769795B2 (en) Image processing method and device
CN109146471B (en) Code scanning payment method and device and intelligent equipment
CN109903375B (en) Model generation method and device, storage medium and electronic equipment
CN110070143A (en) Obtain method, apparatus, equipment and the storage medium of training data
CN113515987B (en) Palmprint recognition method, palmprint recognition device, computer equipment and storage medium
US10783004B1 (en) Method, apparatus, and electronic device for improving parallel performance of CPU
CN112925416A (en) User sight tracking method, device and system
CN109195123A (en) The update method of finger print information, device, storage medium and system in indoor positioning
CN110716642B (en) Method and equipment for adjusting display interface
KR20180083144A (en) Method for detecting marker and an electronic device thereof
CN111752372A (en) Action recognition method and device and computer readable storage medium
CN112990421A (en) Method, device and storage medium for optimizing operation process of deep learning network
CN104751096A (en) Rapid two-dimension code identification design and achievement method through IP (Internet Protocol) camera
CN116886460A (en) Control method and device of electronic equipment, electronic equipment and storage medium
CN114012739B (en) Method and device for controlling robot based on holographic projection technology

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant