Summary of the invention
This specification provides a kind of method of payment, comprising:
It is operated in response to Client-initiated image scanning, acquires the image of target item, and to the collected target
The image of article carries out image recognition, with confirm the target item whether be specified type article;
If the target item is the article of specified type, the attribute information of the target item is obtained, and based on described
Attribute information generates the pay invoice for corresponding to the target item;Wherein, the pay invoice includes payment account;
The pay invoice is sent to payment server, to be completed in the payment account to institute by payment server
State the clearing of withholing of target item.
Optionally, the image to the collected target item carries out image recognition, to confirm the object
Product whether be specified type article, comprising:
OCR scanning is carried out for the image of the target item, whether to confirm in described image comprising being used to indicate object
The identification marking of product identification information;
If the image of the target item includes the identification marking, the target indicated by the identification marking is obtained
The identification information of article, and the identification information according to the target item confirm the target item whether be specified type object
Product.
Optionally, the identification marking includes encoding of graphs;
It is described to obtain the target item identification information indicated by the identification marking, comprising:
The encoding of graphs is decoded, the identification information of the decoded target item is obtained.
Optionally, the image to the collected target item carries out image recognition, to confirm the object
Product whether be specified type article, further includes:
If the image of the target item does not include the identification marking, from the target item extracting target from images
Article characteristics;
Calculate the similarity of each article characteristics sample in the target item feature and preset article characteristics database;
The article characteristics database includes the corresponding relationship of article characteristics sample and article identification information;
The article identification information with the highest article characteristics sample of the target item characteristic similarity is obtained, as described
The identification information of target item;
Identification information according to the target item confirm the target item whether be specified type article.
Optionally, the image to the collected target item carries out image recognition, to confirm the object
Product whether be specified type article, further includes:
If the image of the target item does not include the identification marking, the image of the target item is sent to quotient
Product server, so that commodity server calculates the target item from the target item extracting target from images article characteristics
The similarity of each article characteristics sample in feature and preset article characteristics database;And obtain the article characteristics database
In, with the highest article characteristics sample of the target item characteristic similarity corresponding to article identification information, as described
The identification information of target item;
Receive the identification information for the target item that the commodity server returns, and the knowledge according to the target item
Target item described in other validation of information whether be specified type article;
Wherein, the target item property data base includes pair of article characteristics sample and the article identification information of the article
It should be related to.
Optionally, the identification information according to the target item confirms whether the target item is specified type
Article, comprising:
Check preset specified type article mark concentrate whether include the target item identification information;
If comprising determining that the target item is the article of specified type;
If do not included, confirming the target item not is the article of specified type.
Optionally, the attribute information for obtaining the specified article, comprising:
The target item identification information is sent to commodity server, to be believed by the commodity server in goods attribute
It ceases and searches goods attribute information corresponding with the target item identification information in database;Wherein, the goods attribute Information Number
The article identification information of article, the corresponding relationship of goods attribute information are had recorded according to library;
Receive the goods attribute information for the target item that commodity server returns.
Optionally, the payment account is pre-configured with association payment account;
It is described that the pay invoice is sent to payment server, comprising:
The pay invoice is sent to the terminal for logging in the association payment account;
After receiving the acknowledgement of orders message that the terminal returns, the pay invoice is sent to payment server.
Optionally, the goods attribute information database is according in the corresponding History Order data of the payment account
The corresponding relationship of goods attribute information and article identification information generates the goods attribute information database.
Optionally, the article of the specified type is commodity.
This specification provides a kind of payment mechanism, comprising:
Recognition unit acquires the image of target item, and to acquisition for operating in response to Client-initiated image scanning
The image of the target item arrived carries out image recognition, with confirm the target item whether be specified type article;
Generation unit obtains the attribute letter of the target item if being the article of specified type for the target item
Breath, and the pay invoice for corresponding to the target item is generated based on the attribute information;Wherein, the pay invoice includes branch
It pays a bill family;
Transmission unit, for the pay invoice to be sent to payment server, with by payment server in the payment
The clearing of withholing to the target item are completed in account.
Optionally, the recognition unit carries out OCR scanning specifically for the image for the target item, with confirmation
It whether include the identification marking for being used to indicate article identification information in described image;If the image of the target item includes institute
Identification marking is stated, obtains the identification information of the target item indicated by the identification marking, and according to the target item
Identification information confirm the target item whether be specified type article.
Optionally, the identification marking includes encoding of graphs;
The recognition unit, it is specific to use when obtaining the target item identification information indicated by the identification marking
It is decoded in the encoding of graphs, obtains the identification information of the decoded target item.
Optionally, the recognition unit, if the image also particularly useful for the target item does not include that the identification is marked
Know, from the target item extracting target from images article characteristics;Calculate the target item feature and preset article characteristics
The similarity of each article characteristics sample in database;The article characteristics database includes article characteristics sample and article mark
The corresponding relationship of information;The article identification information with the highest article characteristics sample of the target item characteristic similarity is obtained,
Identification information as the target item;Identification information according to the target item confirms whether the target item is finger
Determine the article of type.
Optionally, the recognition unit, if the image also particularly useful for the target item does not include that the identification is marked
Know, the image of the target item is sent to commodity server, so that commodity server is mentioned from the target item image
Target item feature is taken, each article characteristics sample in the target item feature and preset article characteristics database is calculated
Similarity;And obtain in the article characteristics database and highest article characteristics sample of the target item characteristic similarity
Article identification information corresponding to this, the identification information as the target item;Receive the institute that the commodity server returns
The identification information of target item is stated, and confirms whether the target item is specified class according to the identification information of the target item
The article of type;Wherein, the target item property data base includes the article identification information of article characteristics sample Yu the article
Corresponding relationship.
Optionally, the recognition unit the identification information according to the target item confirm the target item whether be
It whether include the target item specifically for checking that the article mark of preset specified type is concentrated when the article of specified type
Identification information;If comprising determining that the target item is the article of specified type;If do not included, the target is confirmed
Article is not the article of specified type.
Optionally, the generation unit is specifically used for when obtaining the attribute information of the specified article by the object
Product identification information is sent to commodity server, to be searched in goods attribute information database by the commodity server and the mesh
Mark the corresponding goods attribute information of article identification information;Wherein, the goods attribute information database has recorded the article of article
The corresponding relationship of identification information, goods attribute information;Receive the goods attribute letter for the target item that commodity server returns
Breath.
Optionally, the payment account is pre-configured with association payment account;
The transmission unit logs in the terminal of the association payment account specifically for the pay invoice to be sent to;
After receiving the acknowledgement of orders message that the terminal returns, the pay invoice is sent to payment server.
Optionally, the goods attribute information database is according in the corresponding History Order data of the payment account
The corresponding relationship of goods attribute information and article identification information generates the goods attribute information database.
Optionally, the article of the specified type is commodity.
This specification also provides a kind of electronic equipment, including processor and machine readable storage medium, described machine readable
Storage medium is stored with the machine-executable instruction that can be executed by the processor, and the processor can be performed by the machine
Instruction promotes to execute such as any one of claims 1 to 10 the method.
The technical solution that this specification embodiment provides,
On the one hand, after user is to commodity scanning, so that it may pay invoice is directly generated, and completes clearing of withholing, thus
Realize " one-touch shopping ", for old user, more reduce old user to payment client terminal
Operating process more easily completes shopping delivery operation.
On the other hand, since the payment client terminal of old user is in the terminal for receiving children's payment account associated by it
After the acknowledgement of orders message of return, the pay invoice is just sent to payment server and completes payment, old user can be prevented
It is cheated, substantially increase the safety of the method for payment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with this specification.On the contrary, they are only and such as institute
The example of the consistent device and method of some aspects be described in detail in attached claims, this specification.
It is only to be not intended to be limiting this explanation merely for for the purpose of describing particular embodiments in the term that this specification uses
Book.The "an" of used singular, " described " and "the" are also intended to packet in this specification and in the appended claims
Most forms are included, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein is
Refer to and includes that one or more associated any or all of project listed may combine.
It will be appreciated that though various information may be described using term first, second, third, etc. in this specification, but
These information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not taking off
In the case where this specification range, the first information can also be referred to as the second information, and similarly, the second information can also be claimed
For the first information.Depending on context, word as used in this " if " can be construed to " ... when " or
" when ... " or " in response to determination ".
This specification is directed to a kind of means of payment for being suitable for old user, and automatic identification old age user may be implemented
The commodity of scanning simultaneously are completed to pay.
Payment client terminal can be operated in response to Client-initiated image scanning, acquire the image of target item, and to adopting
The image of the target item collected carries out image recognition, with confirm the target item whether be specified type article.If should
Target item is the article of specified type, and payment client terminal can obtain the attribute information of the target item, and be based on the attribute
Information generates the pay invoice for corresponding to the target item.
The pay invoice can be sent to payment server or payment client terminal and can order the payment by payment client terminal
Single-shot gives the terminal of association payment account, and after the acknowledgement of orders message that the terminal for receiving association payment account returns,
The pay invoice is sent to payment server, to be completed in the payment account for logging in the payment client terminal by payment server
Clearing of withholing to the target item.
On the one hand, after user is to commodity scanning, so that it may pay invoice is directly generated, and completes clearing of withholing, thus
Realize " one-touch shopping ", for old user, more reduce old user to payment client terminal
Operating process more easily completes shopping delivery operation.
On the other hand, since the payment client terminal of old user is in the terminal for receiving children's payment account associated by it
After the acknowledgement of orders message of return, the pay invoice is just sent to payment server and completes payment, old user can be prevented
It is cheated, substantially increase the safety of the method for payment.
Before the method for payment for introducing this specification proposition, the payment system for using the method for payment is said first
It is bright.
It is the schematic diagram that this specification one implements a kind of payment system framework exemplified referring to Fig. 1, Fig. 1.
The payment system framework can include at least: user terminal, commodity server and payment server etc..
Wherein, above-mentioned user terminal may include mobile terminal, for example, mobile phone, IPAD etc., here only to user's end
The exemplary illustration at end does not carry out it specifically defined.
In general, equipped with payment client terminal on the user terminal.In order to be adapted to the handling characteristics of old user, the payment
The interface of client is more succinct, and old user is facilitated to use.
It is designed for example, extremely letter can be carried out to the main interface for the payment client terminal that old user uses, referring to fig. 2, the master
Interface can only include two most common function choosing-items of old user of payment encoding of graphs and " sweep and sweep " etc..Certainly, here
Only main interface is illustratively illustrated, the design of the main interface is not carried out specifically defined.
Wherein, encoding of graphs is paid, at least for the branch can be shown to businessman after old user completes to do shopping under line
Pay encoding of graphs, the terminal device scans of the businessman payment encoding of graphs, so that it may generate order completion and withhold.
" sweep and sweep " at least needs the commodity bought to sweep oneself for old user using the payment client terminal
Retouch, then the payment client terminal can the automatic identification commodity, and generate order completion and withhold clearing.
Above-mentioned commodity server at least has and carries out image recognition to images of items and inquire goods attribute information
Function.At least two databases are equipped in the commodity server.One of database is article characteristics database, the article
Property data base has recorded the corresponding relationship of article characteristics sample and article identification information, is mainly used for carrying out images of items
Image recognition.Another database is goods attribute information database, has recorded article identification information and goods attribute information
Corresponding relationship is mainly used for inquiring goods attribute information.
Above-mentioned payment server is mainly used for after the order information for receiving payment client terminal transmission, believes in the order
It ceases and completes operation etc. of withholing in corresponding payment account.
After having introduced above-mentioned payment system, the method for payment proposed below to this specification is described in detail.
Referring to FIG. 3, Fig. 3 is a kind of method of payment that one embodiment of this specification provides, can be applied on user terminal
The payment client terminal of carrying executes following steps:
Step 302: being operated in response to Client-initiated image scanning, acquire the image of target item, and to collected
The image of the target item carries out image recognition, with confirm the target item whether be specified type article.
Wherein, identification marking described below can refer to mark in images of items, to indicate article identification information
Know.The identification marking may include character, encoding of graphs etc..
By taking encoding of graphs as an example, which may include two dimensional code, bar code etc..By to two dimensional code and bar code
It is decoded, it is available to arrive article identification information.
Article identification information described below refers to the information to one article of unique identification.The article identification information
It may include the Item Title etc. of one article of unique identification.
It may include the various dimensions information for describing article in the Item Title so that the identification information is Item Title as an example.
For example, the Item Title further comprises the brand of commodity other than including the adopted name of commodity when the article is commodity
Title, the various dimensions such as quality of commodity describe the information of commodity.For example, the Item Title is Erie's low fat high calcium milk 250ml.
The article of above-mentioned specified type can refer to commodity.
The attribute information of target item described below can refer to the information of description target item attribute.For example, when should
When target item is commodity, the attribute information of the target item may include: the production of the price of the target item, target item
Quotient, supplier, raw material, shelf-life, date of manufacture etc..
In addition, being equipped with image acquisition hardware on user terminal, such as camera etc..Here only to image acquisition hardware
It illustrates, without specifically defined.
Firstly, payment client terminal can be operated in response to Client-initiated image scanning, the image of the user terminal is called
Acquisition hardware acquires the image of target item.
For example, user can click image surface sweeping option of operation (as clicked " sweep and sweep " in Fig. 2 on payment client terminal
Option), after payment client terminal detects trigger action of the user for image surface sweeping option of operation (such as " sweep and sweep "), payment
The image that client can call the user terminal camera to acquire target item.
Then, payment client terminal can carry out image recognition to the image of the collected target item, obtain the target
The identification information of article.
When realizing:
1, payment client terminal can carry out OCR (Optical Character to the image of target item
Recognition, optical character identification) scanning, whether to include to be used to indicate object in this image to confirm the target item
The identification marking of the identification information of product.
If 2, the image of the target item includes the identification marking, the mesh indicated by the identification marking is obtained
Mark the identification information of article.
In an optional implementation manner, if the identification marking is encoding of graphs, which can be to this
Encoding of graphs is decoded, and obtains the identification information of the decoded target item.
If 3, the image of the target item does not include the identification marking, can be obtained by following two ways
Take the identification information of the target item.
Mode one:
Payment client terminal can use image characteristics extraction algorithm, special from the target item extracting target from images article
Sign.
Then, payment client terminal can calculate each article in the target item feature and preset article characteristics database
The similarity of feature samples.
Then, the available article being somebody's turn to do with the highest article characteristics sample of target item characteristic similarity of payment client terminal
Identification information, the identification information as the target item.
Wherein, the corresponding relationship of article characteristics sample and article identification information is had recorded in the article characteristics database.
For example, the corresponding relationship of the soy sauce and soy sauce characteristics of image sample that are recorded in the article characteristics database,
The corresponding relationship etc. of toothpaste and toothpaste characteristics of image sample.
Payment client terminal can extract the target item feature in target item image by image characteristics extraction algorithm.
Then, payment client terminal can calculate each article characteristics sample in the target item characteristics of image and above-mentioned article characteristics database
Similarity.If the similarity highest of the target item feature and soy sauce characteristics of image sample, payment client terminal can determine this
The identification information of target item is soy sauce.
Mode two:
The image of the target item can be sent to commodity server by payment client terminal.
Commodity server, can be from the extracting target from images article of target item after receiving the image of target item
Feature.
In general, can be equipped with article characteristics database in commodity server, which has recorded article
The corresponding relationship of feature samples and article mark.
The target item feature and each article in the article characteristics database that commodity server can calculate said extracted
The similarity of feature samples.
Then, commodity server can choose the article mark with the highest article characteristics sample of target item characteristic similarity
Know information, is determined as the identification information of the target item, and the identification information of the target item is returned into payment client terminal.
Payment client terminal can receive the identification information of the target item of commodity server return.
For example, the corresponding relationship of the soy sauce and soy sauce characteristics of image sample that are recorded in the article characteristics database, toothpaste
And the corresponding relationship etc. of toothpaste characteristics of image sample.
The image of target item can be sent to commodity server by payment client terminal.
Commodity server extracts object by image characteristics extraction algorithm after receiving the image of the target item
Target item feature in product image.
Then, commodity server can calculate each article in the target item characteristics of image and above-mentioned article characteristics database
The similarity of feature samples.If the similarity highest of the target item feature and soy sauce characteristics of image sample, can determine the mesh
The identification information for marking article is soy sauce.
The identification information of soy sauce this target item can be returned to payment client terminal by commodity server, and payment client terminal can
The identification information for determining the target item is soy sauce.
Finally, payment client terminal can confirm whether the target item is specified according to the identification information of the target item
The article of type.
This programme has been pre-configured the article mark collection of specified type.It is had recorded in the article mark collection of the specified type specified
The identification information of the article of type.
After payment client terminal gets the identification information of the target item, the article mark of the specified type can be checked
Concentrate whether include the target item identification information.If the article mark of the specified type is concentrated comprising the target item
Identification information, it is determined that the target item is the article of specified type.If the article mark concentration of the specified type does not include
The identification information of the target item, it is determined that the target item is not the article of specified type.
By taking the article of the specified type is commodity as an example.
The title of commodity, such as the article mark collection of the specified type are had recorded in the article mark collection of the specified type
Have recorded the title of toothpaste, soy sauce, vinegar etc. commodity.
After payment client terminal gets the identification information of the target item, the article mark of the specified type can be checked
Concentrate whether include the target item identification information.For example, if the identification information of the target item is toothpaste, due to toothpaste
In above-mentioned article mark collection, so payment client terminal determines that toothpaste is commodity.If the identification information of the target item is stone
Head, it is assumed that in the no longer above-mentioned article mark collection of stone, then payment client terminal determines that stone is not commodity.
Step 304: if the target item is the article of specified type, the attribute information of the target item is obtained, and
The pay invoice for corresponding to the target item is generated based on the attribute information;Wherein, the pay invoice includes that branch is paid a bill
Family.
When realizing, if the target item is the article of specified type, the mark of the above-mentioned target item got
Information is sent to commodity server.
Wherein, in the commodity server equipped with goods attribute information database, remember in the product data information database
The corresponding relationship of article identification information, goods attribute information is recorded.
The goods attribute information database is based on the goods attribute in the corresponding History Order data of magnanimity payment account
What the corresponding relationship of information and article identification information generated.
After commodity server receives the target item identification information, it can be looked into the goods attribute information database
Goods attribute information corresponding with the target item identification information is looked for, as the attribute information of target item, and by the object
Product attribute information returns to payment client terminal.
Payment client terminal can be based on the target item after the target item attribute information for receiving commodity server return
Attribute information generate pay invoice.Record has the payment account currently logged on payment client terminal in the pay invoice of generation.
For example, the article identification information recorded in the goods attribute information database is Darlie, goods attribute information
For the corresponding relationship of the attribute informations such as the price of Darlie, date of manufacture, shelf-life, businessman, article mark letter is also recorded
Breath is pair of the attribute informations such as extra large day soy sauce, price, date of manufacture, shelf-life, the businessman that goods attribute information is extra large day soy sauce
It should be related to.
When the identification information for the target item that commodity server receives is Darlie, commodity server can be in the object
Searched in product data of attribute information library corresponding with Darlie goods attribute information (price of such as Darlie, the date of manufacture,
The attribute informations such as shelf-life, businessman), the goods attribute information is then returned into payment client terminal.
Pay invoice can be generated after receiving the goods attribute information of Darlie in payment client terminal.
Step 306: the pay invoice is sent to payment server, with by payment server in the payment account
Complete the clearing of withholing to the target item.
In an optional implementation manner, the pay invoice of above-mentioned generation can be sent to payment clothes by payment client terminal
Business device.Payment server can be completed to withhold after receiving the pay invoice in the payment account that the pay invoice carries
Clearing.Wherein, the payment account carried in the pay invoice is the account that payment client terminal currently logs in.
In another optional implementation, the payment account which currently logs in is pre-configured with association branch
It pays a bill family.
After payment client terminal generates above-mentioned pay invoice, which can be sent to the association branch by payment client terminal
It pays a bill the terminal at family.After the terminal for receiving the association payment account returns to acknowledgement of orders message, payment client terminal is by the branch
It pays order and sends a payment server.Payment server can carry after receiving the pay invoice in the pay invoice
Clearing of withholing are completed in payment account.
After the order refuse information that the terminal for receiving association payment account returns, which can be by the payment
Order abandons, and shows prompt information to user, and to prompt the pay invoice, there are risks.
For example, the payment account currently logged in can be the payment account of old user, the association payment of the payment account
Account can be the payment account of old age user children.
After the payment client terminal of old user generates the pay invoice of old age user, payment client terminal can be by the payment
Order is sent to the terminal device where the payment account of children.
Children can click " confirmation " option, or " refusal " option after receiving the pay invoice.Group woman's terminal
After detecting that children trigger " confirmation " option, acknowledgement of orders message can be returned to the terminal of old age user.Old age is used
The payment client terminal at family after receiving acknowledgement of orders message, can the pay invoice be sent to payment server.
Group woman terminal can return after detecting that children trigger " refusal " option to the terminal of old age user
Order refuse information.The payment client terminal of old user can abandon the pay invoice after receiving the acknowledgement of orders message,
And prompt information is issued to old user, prompting the order, there are risks.
Clearing of withholing are carried out after being confirmed due to the pay invoice of old user by children again, old user's quilt can be prevented
It deceives, substantially increases the safety of the method for payment.
Below using the article of specified type as commodity, and old user is combined to do shopping the scene paid to above-mentioned method of payment
It is described in detail.
After payment client terminal detects that old user is directed to the trigger action of " sweep and sweep " option, payment client terminal is adjustable
With the camera of terminal, the image of the target item of old scanning input is acquired.
Then payment client terminal can to the acquired image carry out image recognition, and determine the target item whether be
Commodity.
In image recognition, whether payment client terminal can first be detected on the image comprising figures such as two dimensional code, bar codes
Coding.If can be carried out to the encoding of graphs on the image comprising encoding of graphs, the payment client terminals such as two dimensional code, bar codes
Decoding, obtains the target item title of the target item.
If not comprising encoding of graphs such as two dimensional code, bar codes on the image, payment client terminal can be special using image
Extraction algorithm is levied, the target item feature is extracted from the image.Then, payment client terminal can calculate the target item feature
With the similarity of each article characteristics sample in article characteristics database, and select it is highest with the target item characteristic similarity
The Item Title of article characteristics sample, the Item Title as the target item.
Alternatively, the acquired image can be sent to commodity server by payment client terminal.Commodity server is receiving
To after the image, image characteristics extraction algorithm can be used, the target item feature is extracted from the image.Then, commodity take
Business device can calculate the similarity of each article characteristics sample in the target item feature and article characteristics database, and select with
The Item Title of the highest article characteristics sample of the target item characteristic similarity, as the Item Title of the target item, and
The target item title is returned into the payment client terminal.
After payment client terminal gets the target item title of above-mentioned target item, payment client terminal can check default
Product name concentrate whether include the target item title, if comprising, determine the target item be commodity, if not including, really
The fixed target item is not commodity.
When the target item is commodity, the Item Title of the target item can be sent to commodity clothes by payment client terminal
Business device.Commodity server can search article corresponding with the target item title in the goods attribute information database of pre-configuration
Attribute information, and the goods attribute information found is returned into payment client terminal.
Payment client terminal, can be according to the article category of the target item after receiving the goods attribute information of the target item
Property information generate pay invoice.It include the payment account for currently logging in the payment client terminal in the pay invoice.
Then, which can be sent to payment server by payment client terminal.Alternatively, payment client terminal can incite somebody to action
The pay invoice is sent to the terminal of the association payment account of above-mentioned payment account.And it is true in the order for receiving terminal return
After recognizing message, which is sent to payment server.
Payment server can complete button after receiving the pay invoice in the payment account that the pay invoice carries
Money clearing.
Seen from the above description on the one hand, after user is to commodity scanning, so that it may directly generate pay invoice, and complete
Clearing of withholing to realize " one-touch shopping " for old user, more reduce pair of old user
The operating process of payment client terminal more easily completes shopping delivery operation.
On the other hand, since the payment client terminal of old user is in the terminal for receiving children's payment account associated by it
After the acknowledgement of orders message of return, the pay invoice is just sent to payment server and completes payment, old user can be prevented
It is cheated, substantially increase the safety of the method for payment.
Referring to fig. 4, Fig. 4 is the hardware structure diagram of a kind of electronic equipment shown in one exemplary embodiment of this specification.It should
Electronics includes: communication interface 402, processor 404, machine readable storage medium 406 and bus 408;Wherein, communication interface 402,
Processor 404 and machine readable storage medium 406 pass through bus 408 and complete mutual communication.Processor 404 is by reading simultaneously
Machine-executable instruction corresponding with payment logic in machine readable storage medium 406 is executed, above-described payment can be performed
Method.
Machine readable storage medium 406 referred to herein can be any electronics, magnetism, optics or other physical stores
Device may include or store information, such as executable instruction, data, etc..For example, machine readable storage medium may is that
RAM (Radom Access Memory, random access memory), volatile memory, nonvolatile memory, flash memory, storage are driven
Dynamic device (such as hard disk drive), solid state hard disk, any kind of storage dish (such as CD, dvd) or similar storage are situated between
Matter or their combination.
It is a kind of structure chart of payment mechanism shown in one exemplary embodiment of this specification referring to Fig. 5, Fig. 5.The device
It may include unit as follows.
Recognition unit 502 acquires the image of target item, and right for operating in response to Client-initiated image scanning
The image of the collected target item carries out image recognition, with confirm the target item whether be specified type object
Product;
Generation unit 504 obtains the attribute of the target item if being the article of specified type for the target item
Information, and the pay invoice for corresponding to the target item is generated based on the attribute information;Wherein, the pay invoice includes
Payment account;
Transmission unit 506, for the pay invoice to be sent to payment server, with by payment server in the branch
It pays a bill the clearing of withholing completed in family to the target item.
Optionally, the recognition unit 502 carries out OCR scanning specifically for the image for the target item, with true
Whether recognize in described image includes the identification marking for being used to indicate article identification information;If the image of the target item includes
The identification marking obtains the identification information of the target item indicated by the identification marking, and according to the target item
Identification information confirm the target item whether be specified type article.
Optionally, the identification marking includes encoding of graphs;
The recognition unit 502, when obtaining the target item identification information indicated by the identification marking, specifically
For being decoded to the encoding of graphs, the identification information of the decoded target item is obtained.
Optionally, the recognition unit 502, if the image also particularly useful for the target item does not include the identification
Mark, from the target item extracting target from images article characteristics;It calculates the target item feature and preset article is special
Levy the similarity of each article characteristics sample in database;The article characteristics database includes article characteristics sample and article mark
Know the corresponding relationship of information;It obtains and believes with the article mark of the highest article characteristics sample of the target item characteristic similarity
Breath, the identification information as the target item;Whether identification information according to the target item confirms the target item
For the article of specified type.
Optionally, the recognition unit 502, if the image also particularly useful for the target item does not include the identification
Mark, is sent to commodity server for the image of the target item, so that commodity server is from the target item image
Target item feature is extracted, each article characteristics sample in the target item feature and preset article characteristics database is calculated
Similarity;And obtain in the article characteristics database and highest article characteristics of target item characteristic similarity
Article identification information corresponding to sample, the identification information as the target item;Receive what the commodity server returned
The identification information of the target item, and confirm whether the target item is specified according to the identification information of the target item
The article of type;Wherein, the target item property data base includes the article identification information of article characteristics sample Yu the article
Corresponding relationship.
Optionally, the recognition unit 502 confirms that the target item is in the identification information according to the target item
It whether include the target specifically for checking that the article mark of preset specified type is concentrated when the no article for specified type
The identification information of article;If comprising determining that the target item is the article of specified type;If do not included, described in confirmation
Target item is not the article of specified type.
Optionally, the generation unit 504 is specifically used for when obtaining the attribute information of the specified article by the mesh
Mark article identification information is sent to commodity server, to be searched in goods attribute information database by the commodity server and
The corresponding goods attribute information of the target item identification information;Wherein, the goods attribute information database has recorded article
The corresponding relationship of article identification information, goods attribute information;Receive the article category for the target item that commodity server returns
Property information.
Optionally, the payment account is pre-configured with association payment account;
The transmission unit 506 logs in the end of the association payment account specifically for the pay invoice to be sent to
End;After receiving the acknowledgement of orders message that the terminal returns, the pay invoice is sent to payment server.
Optionally, the goods attribute information database is according in the corresponding History Order data of the payment account
The corresponding relationship of goods attribute information and article identification information generates the goods attribute information database.
Optionally, the article of the specified type is commodity.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize this specification scheme.Those of ordinary skill in the art are not
In the case where making the creative labor, it can understand and implement.
The foregoing is merely the preferred embodiments of this specification, all in this explanation not to limit this specification
Within the spirit and principle of book, any modification, equivalent substitution, improvement and etc. done should be included in the model of this specification protection
Within enclosing.