CN109146471A - Barcode scanning method of payment, device and smart machine - Google Patents
Barcode scanning method of payment, device and smart machine Download PDFInfo
- Publication number
- CN109146471A CN109146471A CN201811031861.0A CN201811031861A CN109146471A CN 109146471 A CN109146471 A CN 109146471A CN 201811031861 A CN201811031861 A CN 201811031861A CN 109146471 A CN109146471 A CN 109146471A
- Authority
- CN
- China
- Prior art keywords
- payment
- payment code
- smart machine
- barcode scanning
- regulating command
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
- G06Q20/32—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
- G06Q20/327—Short range or proximity payments by means of M-devices
- G06Q20/3276—Short 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
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Computer Networks & Wireless Communication (AREA)
- Accounting & Taxation (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Cash Registers Or Receiving Machines (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The present invention is suitable for e-payment technical field, provide a kind of barcode scanning method of payment, device and smart machine, by when smart machine is when payment interface shows that payment code carries out delivery operation, it detects whether to receive regulating command, when receiving regulating command, direction adjusting is carried out to the payment code according to default regulative mode, and when receiving the information to be paid of barcode scanning equipment transmission in carrying out direction adjustment process, execute delivery operation, it is adjusted by direction of the regulating command to payment code, so as to rapidly be identified by barcode scanning equipment, to improve payment efficiency, so that user experience is more preferable.
Description
Technical field
The invention belongs to e-payment technical field more particularly to a kind of barcode scanning methods of payment, device and smart machine.
Background technique
With the development of smart machine micromation manufacturing technology, with smartwatch, intelligent eyes, Intelligent bracelet, Intellgent Ear
Machine gradually incorporates in people's lives for the intelligent wearable device of representative, and with universal, the existing intelligence of e-payment
Wearable device also has electronic payment function, in order to which people can enjoy the convenience of e-payment whenever and wherever possible.
However, the direction of payment code such as bar code is by fixed since smartwatch is generally all worn in user's wrist
What direction was shown, such as transverse screen or vertical screen, during user is paid by smartwatch, since barcode scanning equipment is swept
The direction retouched is parallel with bar code could to identify completion payment, but in actual operation, the position stood due to user and cash register
The position of member is different, and user is difficult for bar code to be adjusted to parallel with the laser beam that barcode scanning equipment issues by arm, leads
Cause payment efficiency lower, user experience is very bad.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of barcode scanning method of payment, device and smart machine, it is existing to solve
Smartwatch is in barcode scanning payment process, efficiency of paying the bill caused by the direction and bar code scanned due to barcode scanning equipment are not parallel
It is lower, the problem of poor user experience.
The first aspect of the embodiment of the present invention provides a kind of barcode scanning method of payment, comprising:
When smart machine payment interface show payment code carry out delivery operation when, detect whether to receive regulating command;
When receiving regulating command, direction adjusting is carried out to the payment code according to default regulative mode;
When receiving the information to be paid of barcode scanning equipment transmission in carrying out direction adjustment process, delivery operation is executed.
The second aspect of the embodiment of the present invention provides a kind of barcode scanning payment mechanism, comprising:
Regulating command receiving unit, for when smart machine payment interface show payment code carry out delivery operation when, inspection
It surveys and whether receives regulating command;
Direction adjusts unit, for being carried out to the payment code according to default regulative mode when receiving regulating command
Direction is adjusted;
Payment processing unit, for when the information to be paid for receiving the transmission of barcode scanning equipment in carrying out direction adjustment process
When, execute delivery operation.
The third aspect of the embodiment of the present invention provides a kind of smart machine, comprising:
Memory, processor and storage are in the memory and the computer journey that can run on the processor
Sequence, wherein the processor realizes the barcode scanning branch that the first aspect of the embodiment of the present invention provides when executing the computer program
The step of method of paying.
Wherein, the computer program includes:
Regulating command receiving unit, for when smart machine payment interface show payment code carry out delivery operation when, inspection
It surveys and whether receives regulating command;
Direction adjusts unit, for being carried out to the payment code according to default regulative mode when receiving regulating command
Direction is adjusted;
Payment processing unit, for when the information to be paid for receiving the transmission of barcode scanning equipment in carrying out direction adjustment process
When, execute delivery operation.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer program, wherein the first of the embodiment of the present invention is realized when the computer program is executed by processor
The step of barcode scanning method of payment that aspect provides.
Wherein, the computer program includes:
Regulating command receiving unit, for when smart machine payment interface show payment code carry out delivery operation when, inspection
It surveys and whether receives regulating command;
Direction adjusts unit, for being carried out to the payment code according to default regulative mode when receiving regulating command
Direction is adjusted;
Payment processing unit, for when the information to be paid for receiving the transmission of barcode scanning equipment in carrying out direction adjustment process
When, execute delivery operation.
Existing beneficial effect is the embodiment of the present invention compared with prior art: by when smart machine is in payment interface exhibition
When showing that payment code carries out delivery operation, detect whether to receive regulating command, when receiving regulating command, according to default adjusting
Mode to the payment code carry out direction adjusting, and when carry out direction adjustment process in receive barcode scanning equipment transmission wait prop up
When paying information, delivery operation is executed, is adjusted by direction of the regulating command to payment code, so as to rapidly be swept
Decoding apparatus identification, so that payment efficiency is improved, so that user experience is more preferable.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of implementation flow chart for barcode scanning method of payment that the embodiment of the present invention one provides;
Fig. 2 is a kind of implementation process for detecting whether to receive the method for regulating command provided by Embodiment 2 of the present invention
Figure;
Fig. 3 is a kind of side for carrying out direction adjusting to payment code according to tracking shaping modes that the embodiment of the present invention five provides
The specific implementation flow chart of method;
Fig. 4 is a kind of schematic diagram for barcode scanning payment mechanism that the embodiment of the present invention six provides;
Fig. 5 is a kind of schematic diagram for smart machine that the embodiment of the present invention seven provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, system, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Embodiment one
Referring to FIG. 1, Fig. 1 shows a kind of implementation process of barcode scanning method of payment of the offer of the embodiment of the present invention one, in detail
It states as follows:
In step s101, when smart machine payment interface show payment code carry out delivery operation when, detect whether to connect
Receive regulating command.
In embodiments of the present invention, smart machine includes but is not limited to smartwatch, smart phone, Intelligent bracelet etc., this
In be not specifically limited, preferably smartwatch.Code of paying the bill includes but is not limited to bar code and two dimensional code, i.e., in payment interface institute
The payment code of displaying can be only bar code, or the combination of bar code and two dimensional code, or be bar code and number
Combination, is not specifically limited here.
Herein, regulating command is specially that the instruction of direction adjusting is carried out to payment code.The regulating command includes but unlimited
According to the regulating command generated of sensor device action data collected, reach preset condition when triggering timer sent out
Regulating command out.
Herein, regulating command is that the laser beam issued in the direction of payment code and barcode scanning equipment is formed by line segment
The regulating command for being generated or being triggered according to preset condition by smart machine when not parallel.
In step s 102, when receiving regulating command, direction is carried out to the payment code according to default regulative mode
It adjusts.
In embodiments of the present invention, presetting regulative mode includes but is not limited to recycle shaping modes and tracking shaping modes.
Wherein circulation shaping modes refer to and the direction of payment code are adjusted in the way of 360 ° of circulation rotatings, track shaping modes
Refer to and adjusting is tracked according to direction of the misalignment angle being calculated to payment code.
It is understood that default regulative mode is also possible to other regulative modes set by user, such as by default
Frequency controls the rotation of payment code to realize the purpose of direction adjusting.
Herein, when smart machine receives regulating command, corresponding default adjusting side is triggered according to pre-set priority
Formula carries out direction adjusting to the payment code according to default regulative mode, so that payment code can be rapidly by barcode scanning equipment
It reads, completes corresponding delivery operation.
Pre-set priority is the preset priority to different regulative modes of user, and herein, user can set
It is fixed by being circulation shaping modes according to the corresponding regulative mode of action sensor data collected regulating command generated, or
Person user can set by according to the corresponding regulative mode of sound transducer voice data collected regulating command generated
To track shaping modes, which kind of shaping modes specifically corresponding is, is not specifically limited here.
In step s 103, when receiving the information to be paid of barcode scanning equipment transmission in carrying out direction adjustment process,
Execute delivery operation.
In embodiments of the present invention, when smart machine carry out direction adjustment process in, receive barcode scanning equipment transmission
When information to be paid, illustrate that laser beam that barcode scanning equipment is issued and payment code are parallel, i.e., barcode scanning equipment can scan
It is sent to smart machine to the payment code, and by corresponding information to be paid, enables smart machine to be paid according to this
Information executes corresponding delivery operation.
In embodiments of the present invention, by when smart machine payment interface show payment code carry out delivery operation when, inspection
It surveys and whether receives regulating command, when receiving regulating command, direction is carried out to the payment code according to default regulative mode
It adjusts, and when receiving the information to be paid of barcode scanning equipment transmission in carrying out direction adjustment process, executes delivery operation, lead to
It overregulates instruction the direction of payment code is adjusted, so as to rapidly be identified by barcode scanning equipment, be paid to improve
Money efficiency, so that user experience is more preferable.
Embodiment two
Optionally, referring to FIG. 2, detecting whether to receive adjusting Fig. 2 shows one kind provided by Embodiment 2 of the present invention
The specific implementation flow of the method for instruction, details are as follows:
In step s 201, the action data of user is acquired by the sensor device being set within the smart machine.
In embodiments of the present invention, sensor device includes but is not limited to that action sensor, sound transducer and pressing pass
Sensor.Action data includes but is not limited to that the arm when institute with smart machine is brandished by action sensor user collected
The data of generation, the voice data that smart machine is issued by sound transducer user collected, by compression sensor institute
The user of acquisition presses the screen end of smart machine or when touch action generated data.
It is understood that when smart machine is when payment interface shows that payment code carries out delivery operation, if user sends out
Existing barcode scanning equipment fails when reading the payment code that payment interface is shown, can be by brandishing arm, issuing voice command, touching
The mode at screen of intelligent device end is touched or pressed the direction of payment code to be adjusted, at this moment, within smart machine
Sensor device will acquire when user carries out these movements to generated action data, adjust in order to judge whether to generate
It instructs to trigger the direction of payment code and adjust.
In step S202, the action data is compared with preset data, judges whether the two is consistent.
In embodiments of the present invention, it is stored at smart machine end or cloud server end and is adjusted for judging whether to generate
The preset data of instruction, with according to action data collected both judge whether to be consistent with the comparison result of preset data come
Determine whether to generate regulating command.
It is understood that preset data includes but is not limited to motion trace data, voice data and screen pattern data
Deng.
In step S203, when the action data is consistent with preset data, regulating command is generated.
In embodiments of the present invention, when smart machine is judging by sensor device action data collected and present count
When according to being consistent, regulating command is generated to trigger default regulative mode, so that smart machine presets regulative mode to payment according to this
Code carries out direction adjusting, so that payment code can rapidly be read by barcode scanning equipment, completes corresponding delivery operation.
In an application scenarios, when user shows that payment code carries out delivery operation by the smartwatch that it is worn,
Observe laser beam that barcode scanning equipment is issued fail it is parallel with the payment code to be paid when, user brandishes one
Lower arms, or when marking a default gesture by arm, the sensor device acquisition user in smart machine brandishes arm
Generated action data compares the preset data of the action data and storage in the database, for example gesture data is compared
Compared with, when smart machine determines that sensor device action data collected is consistent with preset data, i.e., when the two is consistent, generation
Regulating command carries out direction adjusting to trigger corresponding regulative mode to payment code, after triggering corresponding regulative mode, according to
Clockwise or counterclockwise, in order to pay the bill, code can be rapidly by barcode scanning in rotary course for predeterminated frequency control payment code
Equipment is read, to complete corresponding delivery operation.
Embodiment three
Optionally, the embodiment of the present invention three provides a kind of specific implementation for detecting whether to receive the method for regulating command
Step, steps are as follows for this:
Delivery operation is carried out when smart machine shows to pay the bill in payment interface, and does not receive barcode scanning within a preset time and sets
When the information to be paid that preparation is sent, triggering timer issues regulating command.
In embodiments of the present invention, if smart machine shows that payment carries out delivery operation in payment interface, when it is pre-
If the information to be paid of barcode scanning equipment transmission is not received in the time, that is to say, that barcode scanning equipment, which fails, reads payment
When code, smart machine triggers timer and issues regulating command, carries out direction adjusting to trigger corresponding regulative mode to payment code,
After triggering corresponding regulative mode, payment code is controlled clockwise or counterclockwise according to predeterminated frequency, in order to code of paying the bill
It can rapidly be read by barcode scanning equipment in rotary course, to complete corresponding delivery operation.
It is understood that preset time referred herein is required for identifying payment code more than or equal to barcode scanning equipment
Any time of minimum time.
In embodiments of the present invention, the letter to be paid by judging whether to receive the transmission of barcode scanning equipment within a preset time
Breath issues regulating command to determine whether to trigger timer, reduces the manual operation step of user, so that user experience is more preferable.
Example IV
Optionally, in embodiments of the present invention, in embodiment one according to preset regulative mode to the payment code into
The step of line direction is adjusted, specifically:
Direction adjusting is carried out to the payment code according to circulation shaping modes.
Optionally, in a specific embodiment of the invention, above-mentioned that the payment code is carried out according to circulation shaping modes
The step of direction is adjusted specifically:
Using the central point of the payment code as the center of circle, the payment is controlled according to default regulating cycle and the default angle that adjusts
Code is rotated.
Optionally, above-mentioned using the central point of the payment code as the center of circle, according to default regulating cycle and default adjusting angle
The step of payment code is rotated is controlled, specifically:
Using the central point of the payment code as the center of circle, the payment is controlled according to default regulating cycle and the default angle that adjusts
Code is rotated clockwise.
Optionally, above-mentioned using the central point of the payment code as the center of circle, according to default regulating cycle and default adjusting angle
The step of payment code is rotated is controlled, specifically:
Using the central point of the payment code as the center of circle, the payment is controlled according to default regulating cycle and the default angle that adjusts
Code is rotated counterclockwise.
Herein, presetting regulating cycle is specially to be greater than or equal to the barcode scanning equipment to read required for payment code progress
Any time of minimum time.The default angle that adjusts is any angle greater than zero, is not specifically limited here.
In embodiments of the present invention, it is imitated by presetting the rotation that regulating cycle improves payment code with default adjusting angle
Rate enables barcode scanning equipment quickly to read payment code, so that corresponding delivery operation is completed, so that user experience is more
It is good.
Embodiment five
Optionally, in embodiments of the present invention, in embodiment one according to preset regulative mode to the payment code into
The step of line direction is adjusted, specifically:
Direction adjusting is carried out to the payment code according to tracking shaping modes.
Referring to FIG. 3, Fig. 3 show the offer of the embodiment of the present invention five it is a kind of according to tracking shaping modes to payment code into
The specific implementation flow for the method that line direction is adjusted, details are as follows:
In step S301, according to the camera laser beam collected by being set on smart machine, generates and correspond to
Laser projection line segment;The laser beam is the laser beam issued by barcode scanning equipment.
In embodiments of the present invention, when smart machine detects the laser beam that barcode scanning equipment issues, start camera
To acquire the laser beam, and corresponding laser projection line segment is generated according to the laser beam.
In step s 302, using the payment interface of smart machine as the reference planes of two-dimensional coordinate system, and with the branch
Origin of the central point at interface as the two-dimensional coordinate system is paid, the laser projection line segment and the payment code are carried out respectively
Coordinate analysis obtains the coordinate of the laser projection line segment and the payment code.
In embodiments of the present invention, using the payment interface of smart machine as the reference planes of two-dimensional coordinate system, and with branch
The origin for paying the center point at the interface two-dimensional coordinate system carries out coordinate analysis to laser projection line segment, obtains the laser projection
The coordinate of line segment;And corresponding payment is obtained after using the central point for code of paying the bill carrying out line segment to it according to a certain percentage as origin
Code line section, then coordinate analysis is carried out to the payment code line section, obtain the coordinate of the payment code line section.
It is understood that the process of line segment is carried out to it according to a certain percentage in the center point origin with code of paying the bill
In, a line segment at payment code center can be will be perpendicular to as payment code line section.
In step S303, institute between the two is calculated according to the coordinate of the laser projection line segment and the payment code
The misalignment angle of formation.
In embodiments of the present invention, the coordinate of payment code line section is formed by according to laser projection line segment and payment code, it can
It is formed by misalignment angle between the two to calculate, the misalignment angle is it can be appreciated that laser projection line segment and payment code line section
It is formed by angle, this is not that is to say, clear payment code is parallel with the laser beam that barcode scanning equipment is issued, so that barcode scanning
Equipment can not read the payment code of smart machine, therefore, it is desirable to be finely adjusted to the direction of payment code, so that barcode scanning equipment
Payment code can be quickly read, to complete corresponding delivery operation.
In step s 304, when the misalignment angle is not zero, the payment code rotation is controlled until the angle of deviation
Degree is zero.
In embodiments of the present invention, when misalignment angle is not zero, that is to say, that laser projection line segment and payment code line section
When not parallel, smart machine control payment code is rotated, until the misalignment angle is zero.
Optionally, step S304, specifically:
It is to determine that the misalignment angle is with reference to line segment with the payment code line section when the misalignment angle is not zero
It is no in [0,90 °] range, if so, the control payment code is rotated counterclockwise up to the misalignment angle is zero;
Otherwise, then the payment code is controlled to rotate clockwise until the misalignment angle is zero.
Optionally, step S304, specifically:
The payment code rotation is controlled until the misalignment angle is zero according to predeterminated frequency.
When in embodiments of the present invention, by the way that misalignment angle is adjusted to zero, that is to say, the laser light of barcode scanning equipment is illustrated
Beam is parallel with payment code, and barcode scanning equipment can read the payment code to complete corresponding delivery operation, in misalignment angle
It is adjusted to, smart machine no longer controls payment code and rotated, and alleviates the system loading of smart machine, and reduce intelligence
Equipment uses electric consumption, so that user experience is more preferable.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be controlled with its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Embodiment six
Corresponding to a kind of any barcode scanning method of payment of foregoing embodiments one to five, Fig. 4 shows implementation of the present invention
A kind of schematic diagram for barcode scanning payment mechanism that example provides illustrates only portion relevant to the embodiment of the present invention for ease of description
Point.
Referring to Fig. 4, which includes:
Regulating command receiving unit 41, for when smart machine payment interface show payment code carry out delivery operation when,
It detects whether to receive regulating command;
Direction adjusts unit 42, for when receiving regulating command, according to default regulative mode to the payment code into
Line direction is adjusted;
Payment processing unit 43, for when the letter to be paid for receiving the transmission of barcode scanning equipment in carrying out direction adjustment process
When breath, delivery operation is executed.
Optionally, in the regulating command receiving unit 41, comprising:
Action data acquires subelement, acquires user's for the sensor device by being set within the smart machine
Action data;
Data comparing subunit judges whether the two is consistent for the action data to be compared with preset data;
Regulating command generates subelement, for generating regulating command when the action data is consistent with preset data.
Optionally, the sensor device includes but is not limited to action sensor, sound transducer and compression sensor.
Optionally, the action data includes but is not limited to be brandished by action sensor user collected with intelligence
Generated data when the arm of equipment, the voice data that smart machine is issued by sound transducer user collected,
It is pressed by screen end of the compression sensor user collected to smart machine or when touch action generated data.
Optionally, in the regulating command receiving unit 41, comprising:
Regulating command triggers subelement, for carrying out delivery operation when smart machine shows to pay the bill in payment interface, and
When not receiving the information to be paid of barcode scanning equipment transmission in preset time, triggering timer issues regulating command.
Optionally, the direction adjusts unit 42, comprising:
Circulation adjusts direction subelement, for carrying out direction adjusting to the payment code according to circulation shaping modes.
Optionally, the circulation adjusts direction subelement, is specifically used for:
Using the central point of the payment code as the center of circle, the payment is controlled according to default regulating cycle and the default angle that adjusts
Code is rotated.
Optionally, the direction adjusts unit 42, comprising:
Tracking adjusts direction subelement, for carrying out direction adjusting to the payment code according to tracking shaping modes.
Optionally, the tracking adjusts direction subelement, comprising:
Laser projection line segment generates subelement, for according to the camera laser collected by being set on smart machine
Light beam generates corresponding laser projection line segment;The laser beam is the laser beam issued by barcode scanning equipment;
Coordinate analysis subelement, for the reference planes using the payment interface of smart machine as two-dimensional coordinate system, and with
Origin of the central point of the payment interface as the two-dimensional coordinate system, respectively to the laser projection line segment and the payment
Code carries out coordinate analysis, obtains the coordinate of the laser projection line segment and the payment code;
Misalignment angle computation subunit, for being calculated according to the coordinate of the laser projection line segment and the payment code
It is formed by misalignment angle between the two;
Track rotation control subelement, for when the misalignment angle is not zero, control the payment code rotation up to
The misalignment angle is zero.
In embodiments of the present invention, by when smart machine payment interface show payment code carry out delivery operation when, inspection
It surveys and whether receives regulating command, when receiving regulating command, direction is carried out to the payment code according to default regulative mode
It adjusts, and when receiving the information to be paid of barcode scanning equipment transmission in carrying out direction adjustment process, executes delivery operation, lead to
It overregulates instruction the direction of payment code is adjusted, so as to rapidly be identified by barcode scanning equipment, be paid to improve
Money efficiency, so that user experience is more preferable.
Embodiment seven
Fig. 5 is a kind of schematic diagram for smart machine that the embodiment of the present invention seven provides.As shown in figure 5, the intelligence of the embodiment
Energy equipment 5 includes: processor 50, memory 51 and is stored in the memory 51 and can run on the processor 50
Computer program 52.The processor 50 realizes that above-mentioned each barcode scanning method of payment is implemented when executing the computer program 52
Step in example, such as step 101 shown in FIG. 1 is to 103.Alternatively, when the processor 50 executes the computer program 52
Realize the function of each unit in above-mentioned each system embodiment, such as the function of module 41 to 43 shown in Fig. 4.
Illustratively, the computer program 52 can be divided into one or more units, one or more of
Unit is stored in the memory 51, and is executed by the processor 50, to complete the present invention.One or more of lists
Member can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing the computer journey
Implementation procedure of the sequence 52 in the smart machine 5.For example, the computer program 52 can be divided into regulating command reception
Unit 41, direction adjust unit 42, payment processing unit 43, and each unit concrete function is as follows:
Regulating command receiving unit 41, for when smart machine payment interface show payment code carry out delivery operation when,
It detects whether to receive regulating command;
Direction adjusts unit 42, for when receiving regulating command, according to default regulative mode to the payment code into
Line direction is adjusted;
Payment processing unit 43, for when the letter to be paid for receiving the transmission of barcode scanning equipment in carrying out direction adjustment process
When breath, delivery operation is executed.
Optionally, in the regulating command receiving unit 41, comprising:
Action data acquires subelement, acquires user's for the sensor device by being set within the smart machine
Action data;
Data comparing subunit judges whether the two is consistent for the action data to be compared with preset data;
Regulating command generates subelement, for generating regulating command when the action data is consistent with preset data.
Optionally, the sensor device includes but is not limited to action sensor, sound transducer and compression sensor.
Optionally, the action data includes but is not limited to be brandished by action sensor user collected with intelligence
Generated data when the arm of equipment, the voice data that smart machine is issued by sound transducer user collected,
It is pressed by screen end of the compression sensor user collected to smart machine or when touch action generated data.
Optionally, in the regulating command receiving unit 41, comprising:
Regulating command triggers subelement, for carrying out delivery operation when smart machine shows to pay the bill in payment interface, and
When not receiving the information to be paid of barcode scanning equipment transmission in preset time, triggering timer issues regulating command.
Optionally, the direction adjusts unit 42, comprising:
Circulation adjusts direction subelement, for carrying out direction adjusting to the payment code according to circulation shaping modes.
Optionally, the circulation adjusts direction subelement, is specifically used for:
Using the central point of the payment code as the center of circle, the payment is controlled according to default regulating cycle and the default angle that adjusts
Code is rotated.
Optionally, the direction adjusts unit 42, comprising:
Tracking adjusts direction subelement, for carrying out direction adjusting to the payment code according to tracking shaping modes.
Optionally, the tracking adjusts direction subelement, comprising:
Laser projection line segment generates subelement, for according to the camera laser collected by being set on smart machine
Light beam generates corresponding laser projection line segment;The laser beam is the laser beam issued by barcode scanning equipment;
Coordinate analysis subelement, for the reference planes using the payment interface of smart machine as two-dimensional coordinate system, and with
Origin of the central point of the payment interface as the two-dimensional coordinate system, respectively to the laser projection line segment and the payment
Code carries out coordinate analysis, obtains the coordinate of the laser projection line segment and the payment code;
Misalignment angle computation subunit, for being calculated according to the coordinate of the laser projection line segment and the payment code
It is formed by misalignment angle between the two;
Track rotation control subelement, for when the misalignment angle is not zero, control the payment code rotation up to
The misalignment angle is zero.
The smart machine 5 may include, but be not limited only to, processor 50, memory 51.Those skilled in the art can manage
Solution, Fig. 5 is only the example of smart machine 5, does not constitute the restriction to smart machine 5, may include more or more than illustrating
Few component perhaps combines certain components or different components, such as the smart machine can also be set including input and output
Standby, network access equipment, bus etc..
Alleged processor 50 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 51 can be the internal storage unit of the smart machine 5, such as the hard disk or interior of smart machine 5
It deposits.The memory 51 is also possible to the External memory equipment of the smart machine 5, such as be equipped on the smart machine 5
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 51 can also both include the storage inside list of the smart machine 5
Member also includes External memory equipment.The memory 51 is for storing needed for the computer program and the smart machine
Other programs and data.The memory 51 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of the system is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed system/smart machine and method, it can be with
It realizes by another way.For example, system described above/smart machine embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as
Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, system
Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
It may include: any entity or system, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice
Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions
Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of barcode scanning method of payment, which is characterized in that the described method includes:
When smart machine payment interface show payment code carry out delivery operation when, detect whether to receive regulating command;
When receiving regulating command, direction adjusting is carried out to the payment code according to default regulative mode;
When receiving the information to be paid of barcode scanning equipment transmission in carrying out direction adjustment process, delivery operation is executed.
2. the method as described in claim 1, which is characterized in that described to detect whether the step of receiving regulating command, comprising:
The action data of user is acquired by the sensor device being set within the smart machine;
The action data is compared with preset data, judges whether the two is consistent;
When the action data is consistent with preset data, regulating command is generated.
3. the method as described in claim 1, which is characterized in that described to detect whether the step of receiving regulating command, comprising:
Delivery operation is carried out when smart machine shows to pay the bill in payment interface, and does not receive barcode scanning equipment hair within a preset time
When the information to be paid sent, triggering timer issues regulating command.
4. the method as described in claims 1 to 3 is any, which is characterized in that it is described according to preset regulative mode to described pair
Money code carries out the step of direction adjusting, comprising:
Direction adjusting is carried out to the payment code according to circulation shaping modes.
5. method as claimed in claim 4, which is characterized in that it is described according to circulation shaping modes to the payment code progress side
To adjusting, specifically:
Using the central point of the payment code as the center of circle, according to default regulating cycle and it is default adjust angle control the payment code into
Row rotation.
6. the method as described in claims 1 to 3 is any, which is characterized in that it is described according to preset regulative mode to described pair
Money code carries out the step of direction adjusting, comprising:
Direction adjusting is carried out to the payment code according to tracking shaping modes.
7. method as claimed in claim 6, which is characterized in that it is described according to tracking shaping modes to the payment code progress side
To the step of adjusting, comprising:
According to the camera laser beam collected by being set on smart machine, corresponding laser projection line segment is generated;Institute
Stating laser beam is the laser beam issued by barcode scanning equipment;
Using the payment interface of smart machine as the reference planes of two-dimensional coordinate system, and using the central point of the payment interface as
The origin of the two-dimensional coordinate system carries out coordinate analysis to the laser projection line segment and the payment code respectively, obtains described
The coordinate of laser projection line segment and the payment code;
It is calculated according to the coordinate of the laser projection line segment and the payment code and is formed by misalignment angle between the two;
When the misalignment angle is not zero, the payment code rotation is controlled until the misalignment angle is zero.
8. a kind of barcode scanning payment mechanism, which is characterized in that described device includes:
Regulating command receiving unit, for when smart machine is when payment interface shows that payment code carries out delivery operation, detection to be
It is no to receive regulating command;
Direction adjusts unit, for carrying out direction to the payment code according to default regulative mode when receiving regulating command
It adjusts;
Payment processing unit, for when carry out direction adjustment process in receive barcode scanning equipment transmission information to be paid when,
Execute delivery operation.
9. a kind of smart machine, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 7 when executing the computer program
The step of any one barcode scanning method of payment.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In the step of realization barcode scanning method of payment as described in any one of claim 1 to 7 when the computer program is executed by processor
Suddenly.
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 true CN109146471A (en) | 2019-01-04 |
CN109146471B 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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111007971A (en) * | 2019-12-10 | 2020-04-14 | 支付宝(杭州)信息技术有限公司 | Display method and device in payment scene |
Citations (4)
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 |
-
2018
- 2018-09-05 CN CN201811031861.0A patent/CN109146471B/en active Active
Patent Citations (4)
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 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111007971A (en) * | 2019-12-10 | 2020-04-14 | 支付宝(杭州)信息技术有限公司 | Display method and device in payment scene |
Also Published As
Publication number | Publication date |
---|---|
CN109146471B (en) | 2021-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108074093B (en) | Spending money payment method and system based on child watch device | |
CN107665426A (en) | Method and electronic device for payment using biometric authentication | |
CN109118189A (en) | A kind of method and apparatus paid using smart machine | |
CN107492067B (en) | A kind of image beautification method and mobile terminal | |
CN104572077B (en) | The processing method and operation system of db transaction | |
CN104850990A (en) | Payment method and system thereof, key terminal and key support system | |
CN104299136A (en) | Information processing method and electronic equipment | |
CN107578245A (en) | Wake up method and apparatus, computer installation and the storage medium of payment interface | |
CN108512986A (en) | Auth method, electronic device and computer readable storage medium | |
CN106022176A (en) | Card recharging method, terminal, intelligent card, and card recharging system | |
CN110465815A (en) | The recognition methods of tooth form code name, device and terminal device | |
CN108366161A (en) | The test method and device of radiation dispersion, electronic device and readable storage medium storing program for executing | |
CN107657441A (en) | Self-service dealing method, system, server and mobile terminal | |
CN108564721B (en) | Charging method, server and intelligent device | |
CN111210214A (en) | Virtual reality payment system and payment method thereof | |
TW202230246A (en) | Service processing method and device based on terminal attitude | |
CN106022177A (en) | Data processing method and intelligent card | |
CN109146471A (en) | Barcode scanning method of payment, device and smart machine | |
CN109240655A (en) | A kind of implementation method of the middleware based on EMV, terminal device | |
CN108764920A (en) | Off-line trading method and device based on block chain | |
CN108171182A (en) | Electronic device, face identification method and Related product | |
CN110309774A (en) | Iris segmentation method, apparatus, storage medium and electronic equipment | |
CN104102934B (en) | A kind of portable IC card read-write equipment, system and method | |
CN109063430A (en) | A kind of method, device and equipment of data storage and authentication | |
CN107562628A (en) | Computer software testing system |
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 |