A kind of quickly scanning method of payment and device

文档序号:1756507 发布日期:2019-11-29 浏览:32次 中文

阅读说明:本技术 一种快速扫描支付方法及装置 (A kind of quickly scanning method of payment and device ) 是由 王军 郭润增 王少鸣 于 2019-08-28 设计创作,主要内容包括:本发明实施例适用于支付终端的支付操作,公开了一种快速扫描支付方法及装置、服务器、存储介质,包括:支付终端通过摄像头在第一图像采集参数设置下采集目标区域内的图像信息得到第一采集图像;支付终端识别第一采集图像中包含的内容,并根据识别结果确定第一支付模式;支付终端采用确定得到的第一支付模式对应的第二图像采集参数设置,并通过摄像头在第二图像采集参数设置下采集目标区域内的图像信息得到第二采集图像;根据采集到的第二采集图像执行确定得到的第一支付模式对应的支付处理流程。采用本申请,可以减少用户在支付过程中等待支付设备完成支付模式初始化的耗时,提高了支付效率,提升了用户的体验感。(The embodiment of the present invention is suitable for the delivery operation of payment terminal, disclose a kind of quickly scanning method of payment and device, server, storage medium, comprising: payment terminal acquires the image information in target area under the setting of the first image acquisition parameter by camera and obtains the first acquisition image;The content for including in payment terminal identification the first acquisition image, and the first payment mode is determined according to recognition result;Payment terminal is acquired the image information in target area under the setting of the second image acquisition parameter by camera and is obtained the second acquisition image using the corresponding second image acquisition parameter setting of determining the first obtained payment mode;The corresponding payment processing process of the first payment mode for determining and obtaining is executed according to collected second acquisition image.Using the application, it is possible to reduce user completes the time-consuming of payment mode initialization in the medium equipment to be paid of payment process, improves payment efficiency, improves the experience sense of user.)

1. a kind of quickly scanning method of payment characterized by comprising

Payment terminal acquires the image information in target area by camera under the setting of the first image acquisition parameter and obtains the One acquisition image;

The payment terminal identifies the content for including in the first acquisition image, and determines the first payment mould according to recognition result Formula;

The payment terminal is led to using the corresponding second image acquisition parameter setting of determining obtained first payment mode The camera is crossed to acquire the image information in the target area under second image acquisition parameter setting and obtain second Acquire image;

The corresponding payment processing of the first payment mode that the determination obtains is executed according to the collected second acquisition image Process.

2. the method according to claim 1, wherein being wrapped in payment terminal identification the first acquisition image The content contained, and the first payment mode is determined according to recognition result, comprising:

It include the first specific content in payment terminal identification the first acquisition image, it is determined that the first payment mode.

3. the method according to claim 1, wherein being wrapped in payment terminal identification the first acquisition image The content contained, and the first payment mode is determined according to recognition result, comprising:

It include the second specific content in payment terminal identification the first acquisition image, and second specific content exists The ratio that display area in the first acquisition image accounts for the first acquisition image is more than or equal to the first preset ratio threshold value, Then determine the first payment mode.

4. method according to claim 1 or 3, which is characterized in that the payment terminal passes through described in detection algorithm identification The content for including in first acquisition image, and the first payment mode is determined according to recognition result, further includes:

Include third specific content in payment terminal identification the first acquisition image, and includes described the by comparing The variation of third specific content described in multiple continuous acquisition images including one acquisition image, determines that the third is specific interior The variation of appearance meets default change condition, it is determined that the first payment mode.

5. according to the method described in claim 4, it is characterized in that, the third specific content includes mobile phone, two dimensional code or people Face.

6. according to the method described in claim 4, it is characterized in that, the default change condition includes any in the following conditions Or a variety of combination:

It is default that display area scaling up of the third specific content in multiple described continuous acquisition images reaches second Proportion threshold value;

The third specific content becomes whole displays from part display in multiple described continuous acquisition images;

The third specific content has carried out rotary movement in multiple described continuous acquisition images.

7. according to the method described in claim 4, it is characterized in that, described by comparing including the first acquisition image Multiple continuous acquisition images described in third specific content variations, it is pre- to determine that the variation of the third specific content meets If change condition, it is determined that the first payment mode includes:

By comparing the variation of mobile phone location in multiple continuous acquisition images including the first acquisition image, determine Mobile phone is dug out and moved towards camera by user, it is determined that the first payment mode is barcode scanning payment;

Or

By comparing the variation of mobile phone location in multiple continuous acquisition images including the first acquisition image, determine Mobile phone is user-operably and shows screen to camera, it is determined that the first payment mode is barcode scanning payment.

8. the method according to claim 1, wherein the payment terminal is using determining described first obtained The corresponding second image acquisition parameter setting of the mode of paying, comprising:

The payment terminal initializes the camera according to second image acquisition parameter setting, second figure As acquisition parameter setting includes the corresponding exposure rate of first payment mode, resolution ratio and backlight compensation.

9. the method according to claim 1, wherein the payment terminal is using determining described first obtained After the corresponding second image acquisition parameter setting of the mode of paying further include:

First payment mode is shown to user by human-computer interaction interface, and is received user and confirmed using first payment The instruction of mode.

10. a kind of quickly scanning payment mechanism characterized by comprising

First acquisition unit, for acquiring the image letter in target area under the setting of the first image acquisition parameter by camera Breath obtains the first acquisition image;

Identify determination unit, the content for including in the first acquisition image for identification, and first is determined according to recognition result Payment mode;

Second acquisition unit, for being set using determining obtained corresponding second image acquisition parameter of first payment mode It sets, and the image information in the target area is acquired under second image acquisition parameter setting by the camera and is obtained To the second acquisition image;

Payment unit, for executing the first payment mode pair that the determination obtains according to the collected second acquisition image The payment processing process answered.

11. a kind of quickly scanning payment mechanism, including processor and memory, the processor and memory are connected with each other, In, the memory executes such as claim 1- for calling said program code for storing program code, the processor 9 described in any item methods.

12. a kind of computer storage medium, which is characterized in that the computer storage medium is stored with computer program, described Computer program includes program instruction;Described program instruction makes the processor execute such as claim when being executed by a processor The described in any item methods of 1-9.

Technical field

The present invention relates to image recognitions and payment technology field, and in particular to a kind of quickly scanning method of payment and device.

Background technique

With the development of science and technology, the means of payment of brush face and barcode scanning has permeated the every aspect lived at us.

Currently, face payment devices on the market only have a camera module, for supporting recognition of face and barcode scanning brush Decoding apparatus.Under barcode scanning scene and brush face scene, payment devices require difference to the exposure mode of camera, and user makes in payment Used time needs first to select operating mode, and payment devices carry out mode initialisation according to user's selection result, after the completion of initialization It can carry out delivery operation.Since payment devices mode initialisation needs to be arranged the exposure rate, resolution ratio and backlight compensation of camera Etc. parameters, cause user wait payment devices complete mode initialisation process take a long time, payment efficiency is low, and experience sense is not It is good.

Summary of the invention

The embodiment of the present invention provides a kind of quickly scanning method of payment and device, waits payment devices complete to reduce user At the time-consuming of mode initialisation process, payment efficiency is improved, promotes user experience.

In a first aspect, providing a kind of rapid payment scan method for the embodiment of the present application, comprising:

Payment terminal acquires the image information in target area under the setting of the first image acquisition parameter by camera and obtains To the first acquisition image;

The payment terminal identifies the content for including in the first acquisition image, and determines first according to recognition result The mode of paying;

The payment terminal is arranged using corresponding second image acquisition parameter of determining obtained first payment mode, And the image information in the target area is acquired under second image acquisition parameter setting by the camera and is obtained Second acquisition image;

The corresponding payment of the first payment mode that the determination obtains is executed according to the collected second acquisition image Process flow.

Wherein, the payment terminal identifies the content for including in the first acquisition image, and is determined according to recognition result First payment mode, comprising:

It include the first specific content in mobile terminal identification the first acquisition image, it is determined that the first payment mould Formula.

Wherein, the payment terminal identifies the content for including in the first acquisition image, and is determined according to recognition result First payment mode, comprising:

Include the second specific content in mobile terminal identification the first acquisition image, and it is described second it is specific in The ratio that display area of the appearance in the first acquisition image accounts for the first acquisition image is more than or equal to preset ratio threshold value, Then determine the first payment mode.

Wherein, the payment terminal by detection algorithm identify it is described first acquisition image in include content, and according to Recognition result determines the first payment mode, further includes:

Include third specific content in mobile terminal identification the first acquisition image, and includes institute by comparing Multiple continuous variations for acquiring third specific content described in images including the first acquisition image are stated, determine that the third is special The variation for determining content meets default change condition, it is determined that the first payment mode.

Wherein, the third specific content includes mobile phone, two dimensional code or face.

Wherein, the default change condition includes combination any one or more in the following conditions:

Display area scaling up of the third specific content in multiple described continuous acquisition images reaches default Proportion threshold value;

The third specific content becomes whole displays from part display in multiple described continuous acquisition images;

The third specific content has carried out rotary movement in multiple described continuous acquisition images.

Wherein, it is described by compare include the first acquisition image including multiple continuously acquire the described in images The variation of three specific contents determines that the variation of the third specific content meets default change condition, it is determined that the first payment mould Formula includes:

By comparing the variation of mobile phone location in multiple continuous acquisition images including the first acquisition image, Determine that mobile phone is dug out and moved towards camera by user, it is determined that the first payment mode is barcode scanning payment;

Or

By comparing the variation of mobile phone location in multiple continuous acquisition images including the first acquisition image, Determine that mobile phone is user-operably and shows screen to camera, it is determined that the first payment mode is barcode scanning payment.

Wherein, the payment terminal is using determining obtained corresponding second image acquisition parameter of first payment mode Setting, comprising:

The payment terminal initializes the camera according to second image acquisition parameter setting, and described the The setting of two image acquisition parameters includes the corresponding exposure rate of first payment mode, resolution ratio and backlight compensation.

Wherein, the payment terminal is using determining obtained corresponding second image acquisition parameter of first payment mode After setting further include:

First payment mode is shown to user by human-computer interaction interface, and is received user and confirmed using described first The instruction of payment mode.

Second aspect provides a kind of rapid payment scanning means for the embodiment of the present application, comprising:

First acquisition unit, for acquiring the figure in target area under the setting of the first image acquisition parameter by camera As information obtains the first acquisition image;

Identify determination unit, the content for including in the first acquisition image for identification, and determined according to recognition result First payment mode;

Second acquisition unit, for using determining obtained corresponding second image acquisition parameter of first payment mode It is arranged, and acquires the image information in the target area under second image acquisition parameter setting by the camera Obtain the second acquisition image;

Payment unit, for executing the first payment mould that the determination obtains according to the collected second acquisition image The corresponding payment processing process of formula.

Optionally, the identification determination unit, is specifically used for: specific interior comprising first in identification the first acquisition image Hold, it is determined that the first payment mode.

Optionally, the identification determination unit, is specifically used for: specific interior comprising second in identification the first acquisition image Hold, and display area of second specific content in the first acquisition image accounts for the ratio of the first acquisition image More than or equal to the first preset ratio threshold value, it is determined that the first payment mode.

Optionally, described device further include:

Determination unit includes for identification third specific content in the first acquisition image, and includes by comparing The variation of third specific content described in multiple continuous acquisition images including the first acquisition image, determines the third The variation of specific content meets default change condition, it is determined that the first payment mode.The third specific content includes mobile phone, two Tie up code or face.The default change condition includes combination any one or more in the following conditions:

Display area scaling up of the third specific content in multiple described continuous acquisition images reaches second Preset ratio threshold value;

The third specific content becomes whole displays from part display in multiple described continuous acquisition images;

The third specific content has carried out rotary movement in multiple described continuous acquisition images.

Optionally, determination unit is specifically used for:

By comparing the variation of mobile phone location in multiple continuous acquisition images including the first acquisition image, Determine that mobile phone is dug out and moved towards camera by user, it is determined that the first payment mode is barcode scanning payment;

Or

By comparing the variation of mobile phone location in multiple continuous acquisition images including the first acquisition image, Determine that mobile phone is user-operably and shows screen to camera, it is determined that the first payment mode is barcode scanning payment.

Optionally, second acquisition unit, is specifically used for:

The camera is initialized according to second image acquisition parameter setting, the second Image Acquisition ginseng Number setting includes the corresponding exposure rate of first payment mode, resolution ratio and backlight compensation.

Optionally, described device further include:

Man-machine interaction unit for showing first payment mode to user by human-computer interaction interface, and receives use Family confirmation uses the instruction of first payment mode.

The third aspect provides another quickly scanning payment mechanism, including processor, storage for the embodiment of the present application Device, the processor and the memory are connected with each other, wherein the memory is executed for storing quickly scanning payment mechanism The application code of the above method, the processor are configured for the method for executing above-mentioned first aspect.

Fourth aspect provides a kind of computer storage medium for the embodiment of the present application, and the computer storage medium is deposited Computer program is contained, the computer program includes program instruction;Described program instruction makes described when being executed by a processor The method that processor executes above-mentioned first aspect.

In the embodiment of the present application, payment terminal acquires target area under the setting of the first image acquisition parameter by camera Image information in domain obtains the first acquisition image, and identifies the content for including in the first acquisition image, true according to recognition result Fixed first payment mode;Payment terminal is arranged using corresponding second image acquisition parameter of determining the first obtained payment mode, And the image information in target area is acquired under the setting of the second image acquisition parameter by the camera and obtains the second acquisition Image;The corresponding payment processing stream of the first payment mode for determining and obtaining is executed according to the collected second acquisition image Journey.The time-consuming that user completes payment mode initialization in the medium equipment to be paid of payment process can be reduced in this way, improve branch Efficiency is paid, the experience sense of user is improved.

Detailed description of the invention

In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.

Fig. 1 is a kind of schematic diagram of a scenario of quickly scanning method of payment provided by the embodiments of the present application;

Fig. 2 is a kind of flow diagram of quickly scanning method of payment provided by the embodiments of the present application;

Fig. 3 is the flow diagram of another quickly scanning method of payment provided by the embodiments of the present application;

Fig. 4 is the flow diagram of another quickly scanning method of payment provided by the embodiments of the present application;

Fig. 5 is the schematic diagram comprising content situation in a kind of first acquisition image provided by the embodiments of the present application;

Fig. 6 a- Fig. 6 f is a kind of schematic diagram of first acquisition image provided by the embodiments of the present application;

Fig. 7 a- Fig. 7 f, which is that multiple a kind of including the first acquisition image provided by the embodiments of the present application are continuous, to be acquired The schematic diagram of image;

Fig. 8 a- Fig. 8 b is a kind of schematic diagram of human-computer interaction interface provided by the embodiments of the present application;

Fig. 9 is a kind of structural schematic diagram of quickly scanning payment mechanism provided in an embodiment of the present invention;

Figure 10 is the structural schematic diagram of another quickly scanning payment mechanism provided in an embodiment of the present invention.

Specific embodiment

Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.

It referring to Figure 1, is a kind of schematic diagram of a scenario of quickly scanning method of payment provided by the embodiments of the present application.Such as Fig. 1 It is shown, payment terminal 100 under a default mode by camera acquire target area 101 in include face, two dimensional code or The acquisition image 102 of mobile phone, by being analyzed and processed to the image of acquisition, the automatic payment mode for prejudging user, and according to The payment mode of anticipation is previously-completed the parameter setting under counterpart expenditure mode, carries out the delivery operation under anticipation payment mode, Entire payment flow is finally rapidly completed.For example, if the payment mode of anticipation is barcode scanning payment mode, and payment terminal is silent Recognizing mode also is barcode scanning payment mode, can directly carry out barcode scanning processing and complete subsequent payment process;And if anticipation Payment mode is brush face payment mode, and the default mode of payment terminal is barcode scanning payment mode, then can carry out brush face branch automatically The mode of paying corresponding parameter setting adjustment, and after completing the corresponding parameter setting adjustment of brush face payment mode prompt user into Row pattern switching can directly carry out brush face operation later, it is possible to prevente effectively from user, which expends, is waiting payment mode switching Time.

Fig. 2 is referred to, is a kind of flow diagram of quickly scanning method of payment provided by the embodiments of the present application.Such as Fig. 2 Shown, this method embodiment includes the following steps:

Step S201, payment terminal acquire the figure in target area by camera under the setting of the first image acquisition parameter As information obtains the first acquisition image.

Here, payment terminal (corresponding to the payment terminal 100 in embodiment corresponding to above-mentioned Fig. 1) may include supermarket, The payment mechanism in the places such as subway or dining room, such as vending machine.First image parameter is set as payment terminal and is saving The exposure rate, resolution ratio and backlight compensation parameter of corresponding camera are set under power mode, barcode scanning payment mode or other modes It sets.

Specifically, payment terminal is setting the corresponding exposure rate of the first image acquisition parameter setting, resolution ratio and backlight After compensating parameter, the image information in target area is acquired by camera under the parameter setting and obtains the first acquisition image.

Step S202, the payment terminal identify the content for including in the first acquisition image, and according to recognition result Determine the first payment mode.

27页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种对象识别方法及移动终端

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!