CN109801056A - A kind of method and device of traffic charging - Google Patents

A kind of method and device of traffic charging Download PDF

Info

Publication number
CN109801056A
CN109801056A CN201910041548.3A CN201910041548A CN109801056A CN 109801056 A CN109801056 A CN 109801056A CN 201910041548 A CN201910041548 A CN 201910041548A CN 109801056 A CN109801056 A CN 109801056A
Authority
CN
China
Prior art keywords
information
account
transaction record
target
record item
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910041548.3A
Other languages
Chinese (zh)
Inventor
刘萌萌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201910041548.3A priority Critical patent/CN109801056A/en
Publication of CN109801056A publication Critical patent/CN109801056A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the present application provides a kind of method and device of traffic charging, belongs to field of communication technology.It rides charge node in the source that this method can be applied in block catenary system, which comprises by biological characteristic detection part, detect the first biological information of target user;In pre-stored biological information and the corresponding relationship of account, determining target account corresponding with the second biological information of the default similarity condition of first biological information satisfaction and second biological information;Using current site information as start site information, it is recorded in the first transaction record item of the corresponding account book information of the target account, and by other nodes of updated account book synchronizing information to the block catenary system, to carry out traffic charging to the target user.Using the application, the convenience that user rides can be improved.

Description

A kind of method and device of traffic charging
Technical field
This application involves fields of communication technology, more particularly to a kind of method and device of traffic charging.
Background technique
Public transport (such as subway, bus etc.) is the essential vehicles of people's daily trip.Work as people Take public transport when going on a journey, need to carry bus card, expense needed for taking public transport with payment.Its In, bus card can be entity bus card, alternatively, being also possible to the electronic public card realized based on mobile phone.
When people are taken public transport using bus card, need respectively while taking a bus and when getting off, in public transport Swiping card is carried out on the counting equipment of tool, so that counting equipment calculates the section, and then multiplying according to user by bus of user Vehicle section carries out fee deduction treatment.By taking subway as an example, when user takes subway, the entrance gate brush bus card in subway is needed, Then it gets on the bus.After user gets off, need in exit of subway gate brush bus card, it is then outbound.Outlet gate can calculate user It gets on the bus the station number for including between website and get-off stop, deducts corresponding expense from bus card according to station number.
Based on above-mentioned processing, user, which needs to carry bus card, to ride, and needs difference while taking a bus under Swiping card is carried out when vehicle, the convenience for causing user to ride is poor.
Summary of the invention
The method and device for being designed to provide a kind of traffic charging of the embodiment of the present application, to improve user by bus just Benefit.Specific technical solution is as follows:
In a first aspect, providing a kind of method of traffic charging, the source that the method is applied in block catenary system is ridden Charge node, which comprises
By biological characteristic detection part, the first biological information of target user is detected;
In pre-stored biological information and the corresponding relationship of account, determining and first biological information Meet the second biological information and the corresponding target account of second biological information of default similarity condition;
Using current site information as start site information, it is recorded in the of the corresponding account book information of the target account In one transaction record item, and by other nodes of updated account book synchronizing information to the block catenary system, to described Target user carries out traffic charging.
Optionally, the account book information further includes account balance, the method also includes:
Judge whether the account balance in the corresponding account book information of the target account is greater than preset threshold;
If the account balance is greater than preset threshold, execute described using current site information as start site letter Breath, is recorded the step in the transaction record item of the account book information;
If the account balance is not more than preset threshold, the prompt information of Fail Transaction is exported.
Optionally, the account book information further includes the status information and number of each transaction record item, wherein a transaction note The corresponding unit of record item is ridden section;
It is described using current site information as start site information, be recorded in the corresponding account book information of the target account The first transaction record item in front of, the method also includes:
According to the incremental sequence of number, it is available shape that status information is searched in the corresponding account book information of the target account First transaction record item of state, wherein the transaction record item of available mode is the transaction record item for payment.
Second aspect, provides a kind of method of traffic charging, and the purpose that the method is applied in block catenary system multiplies Vehicle charge node, which comprises
By biological characteristic detection part, the first biological information of target user is detected;
In pre-stored biological information and the corresponding relationship of account, determining and first biological information Meet the second biological information and the corresponding target account of second biological information of default similarity condition;
In the corresponding account book information of the target account, record time and immediate first starting of current time are determined Site information;
According to first start site information and the current site information, the target account is carried out at charging Reason.
Optionally, the account book information further includes account balance, described according to first start site information and described Current site information carries out charging processing to the target account, comprising:
According to first start site information and the current site information, the load zones of the target user are calculated Between, and determine that the unit that section includes described by bus is ridden first number in section;
It is ridden the corresponding spending amount in section according to first number and the unit, calculates spending amount of riding, and The spending amount by bus is deducted in the account balance current from the account book information.
Optionally, the account book information further includes the status information and number of each transaction record item, wherein a transaction note The corresponding unit of record item is ridden section;
The section unit that includes of riding described in the determination ride section the first number after, the method also includes:
According to the incremental sequence of number, the first transaction record item belonging to the information of first start site, really Fixed continuous first number status information is the transaction record item of available mode, the transaction record item of the available mode for for The transaction record item of payment;
It using the current site information as site information is terminated, is recorded in the transaction record item determined, and will The status information for the transaction record item determined is set as down state, and the transaction record Xiang Weiyi of the down state makes Transaction record item.
The third aspect, provides a kind of method of traffic charging, and the method is applied to supplement section with money in block catenary system Point, which comprises
By biological characteristic detection part, the first biological information of target user is detected;
In pre-stored biological information and the corresponding relationship of account, it is determined whether exist and first biology Characteristic information meets the second biological information of default similarity condition;
If there is the second biological information for meeting default similarity condition with first biological information, then Obtain the corresponding target account of second biological information;
After receiving the recharge instruction for carrying target recharge amount, according to the target recharge amount and the target The corresponding account book information of account supplement with money processing, and by updated account book synchronizing information to the block catenary system other In node, to carry out traffic charging to the target user.
Optionally, described after receiving the recharge instruction for carrying target recharge amount, gold is supplemented with money according to the target Before volume and the corresponding account book information of the target account carry out supplementing processing with money, the method also includes:
If there is no the second biological information for meeting default similarity condition with first biological information, Then establish the corresponding target account of the target user and account book information;
By the target account and first biological information, it is added to pair of the biological information and account In should being related to, and updated corresponding relationship is synchronized in other nodes of the block catenary system.
Optionally, the account book information include account balance, transaction record item and transaction record item status information and Number, wherein the corresponding unit of transaction record item is ridden section;
It is described to carry out supplementing processing with money according to the target recharge amount and the corresponding account book information of the target account, packet It includes:
It calculates the target recharge amount and the unit is ridden the ratio of the corresponding spending amount in section, by the ratio As the second number;
In the account book information, the second number transaction record item is added, the second number transaction is set The status information of entry is available mode, and according to incremental sequence is numbered, for the second number transaction record item point With number, wherein the transaction record item of available mode is the transaction record item for payment;
The current balance of the account book information is increased into the target recharge amount.
Fourth aspect provides a kind of device of traffic charging, which is characterized in that described device is applied to block catenary system In source ride charge node, described device includes:
Detection module, for detecting the first biological information of target user by biological characteristic detection part;
Determining module, it is determining with described the in the corresponding relationship of pre-stored biological information and account One biological information meets the second biological information and second biological information pair of default similarity condition The target account answered;
Update module, for it is corresponding to be recorded in the target account using current site information as start site information Account book information the first transaction record item in, and by updated account book synchronizing information to the block catenary system other save In point, to carry out traffic charging to the target user.
Optionally, the account book information further includes account balance, described device further include:
Judgment module, for judging whether the account balance in the corresponding account book information of the target account is greater than default threshold Value;
If the account balance is greater than preset threshold, triggers the update module and execute and described believe current website Breath is used as start site information, and the step in the transaction record item of the account book information is recorded;
If the account balance is not more than preset threshold, the prompt information of output module output Fail Transaction is triggered.
Optionally, the account book information further includes the status information and number of each transaction record item, wherein a transaction note The corresponding unit of record item is ridden section;
Described device further include:
Searching module searches shape in the corresponding account book information of the target account for the sequence incremental according to number State information is the first transaction record item of available mode, wherein the transaction record item of available mode is the transaction note for payment Record item.
5th aspect, provides a kind of device of traffic charging, and the purpose that described device is applied in block catenary system multiplies Vehicle charge node, described device include:
Detection module, for detecting the first biological information of target user by biological characteristic detection part;
First determining module, in the corresponding relationship of pre-stored biological information and account, determining and institute State the second biological information and second biological characteristic letter that the first biological information meets default similarity condition Cease corresponding target account;
Second determining module, in the corresponding account book information of the target account, determine the record time and it is current when Between immediate first start site information;
Accounting module, for according to first start site information and the current site information, to the target Account carries out charging processing.
Optionally, the account book information further includes account balance, and the accounting module is used for:
According to first start site information and the current site information, the load zones of the target user are calculated Between, and determine that the unit that section includes described by bus is ridden first number in section;
It is ridden the corresponding spending amount in section according to first number and the unit, calculates spending amount of riding, and The spending amount by bus is deducted in the account balance current from the account book information.
Optionally, the account book information further includes the status information and number of each transaction record item, wherein a transaction note The corresponding unit of record item is ridden section;
Described device further include:
Third determining module, user's sequence incremental according to number, first belonging to the information of first start site Transaction record item starts, and determines that continuous first number status information is the transaction record item of available mode, the available mode Transaction record item be transaction record item for payment;
Setup module, for being recorded in the transaction determined using the current site information as site information is terminated In entry, and down state, the friendship of the down state are set by the status information for the transaction record item determined Easy entry is used transaction record item.
6th aspect, provides a kind of device of traffic charging, which is characterized in that described device is applied to block catenary system In supplement node with money, described device includes:
Detection module, for detecting the first biological information of target user by biological characteristic detection part;
Determining module, in the corresponding relationship of pre-stored biological information and account, it is determined whether exist Meet the second biological information of default similarity condition with first biological information;
Module is obtained, for if there is the second life for meeting default similarity condition with first biological information Object characteristic information then obtains the corresponding target account of second biological information;
Module is supplemented with money, for being supplemented with money after receiving the recharge instruction for carrying target recharge amount according to the target The amount of money and the corresponding account book information of the target account supplement with money processing, and by updated account book synchronizing information to the area In other nodes of block catenary system, to carry out traffic charging to the target user.
Optionally, described device further include:
Module is established, for if there is no second with the default similarity condition of first biological information satisfaction Biological information then establishes the corresponding target account of the target user and account book information;
Adding module, for being added to the biological characteristic for the target account and first biological information In the corresponding relationship of information and account, and updated corresponding relationship is synchronized in other nodes of the block catenary system.
Optionally, the account book information include account balance, transaction record item and transaction record item status information and Number, wherein the corresponding unit of transaction record item is ridden section;
It is described to supplement module with money, it is used for:
It calculates the target recharge amount and the unit is ridden the ratio of the corresponding spending amount in section, by the ratio As the second number;
In the account book information, the second number transaction record item is added, the second number transaction is set The status information of entry is available mode, and according to incremental sequence is numbered, for the second number transaction record item point With number, wherein the transaction record item of available mode is the transaction record item for payment;
The current balance of the account book information is increased into the target recharge amount.
7th aspect, provides a kind of electronic equipment, including processor, communication interface, memory and communication bus, In, processor, communication interface, memory completes mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any of the above-described method and step.
Eighth aspect provides a kind of computer readable storage medium, is stored in the computer readable storage medium Computer program, the computer program realize any of the above-described method and step when being executed by processor.
9th aspect, provides a kind of computer program product comprising instruction, when run on a computer, so that Computer executes any of the above-described method and step.
In the embodiment of the present application, the biological information of user and the corresponding relationship of account are stored in block catenary system, And the account book information of the account, when user rides, the node in block chain can detecte the biological information of user, then Charging is carried out to corresponding account, user is without carrying bus card, without swiping card is carried out, improves user by bus just Benefit.
Certainly, implement the application any product or method it is not absolutely required to and meanwhile reach all the above excellent Point.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, 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 application 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 traffic charge system provided by the embodiments of the present application;
Fig. 2 is a kind of method flow diagram of traffic charging provided by the embodiments of the present application;
Fig. 3 is a kind of method flow diagram of traffic charging provided by the embodiments of the present application;
Fig. 4 is a kind of method flow diagram of traffic charging provided by the embodiments of the present application;
Fig. 5 is a kind of structural schematic diagram of the device of traffic charging provided by the embodiments of the present application;
Fig. 6 is a kind of structural schematic diagram of the device of traffic charging provided by the embodiments of the present application;
Fig. 7 is a kind of structural schematic diagram of the device of traffic charging provided by the embodiments of the present application;
Fig. 8 is a kind of structural schematic diagram of the device of traffic charging provided by the embodiments of the present application;
Fig. 9 is a kind of structural schematic diagram of the device of traffic charging provided by the embodiments of the present application;
Figure 10 is a kind of structural schematic diagram of the device of traffic charging provided by the embodiments of the present application;
Figure 11 is a kind of structural schematic diagram of the device of traffic charging provided by the embodiments of the present application;
Figure 12 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
The embodiment of the present application provides a kind of method of traffic charging, and this method can be ridden charge node, purpose by source It charge node and supplements node with money by bus and realizes jointly.Source ride charge node, purpose ride charge node and supplement node with money can be with It is deployed in block chain, to realize the real-time synchronization of data, and guarantees the reliability and safety of data.Wherein, source is counted by bus Expense node and purpose charge node of riding can be the counting equipment that charging is used in public transport, such as exit of subway Gate, entrance gate or POS of bus etc..Charge node is ridden in source and purpose is ridden, and charge node can be same set Standby (such as POS of bus), alternatively, being also possible to different equipment.The embodiment of the present application with source ride charge node and Purpose rides charge node to be illustrated for different equipment, other situations are similar therewith.As shown in Figure 1, being the application A kind of schematic diagram for traffic charge system that embodiment provides, traffic charge system include that ride charge node, purpose of source is ridden Charge node and supplement node with money, and ride charge node, purpose of source rides charge node and to supplement node with money and belong to same block chain System.
In the embodiment of the present application, source ride charge node and supplementing with money in node of charge node, purpose of riding be can be set There is biological characteristic detection part, and biological characteristic detection algorithm can be previously stored with, to detect the biological information of user. The embodiment of the present application to biological characteristic without limitation, for example, biological characteristic can be face characteristic, fingerprint characteristic, iris feature Deng correspondingly, biological characteristic detection part can be shooting part, fingerprint recognition component, iris recognition component etc..
The embodiment of the present application is first illustrated the process of supplementing with money of user, as shown in Fig. 2, supplementing the treatment process of node with money It can be as follows.
Step 201, by biological characteristic detection part, the first biological information of target user is detected.
In the embodiment of the present application, when target user needs to supplement the account of public transport with money, target user can be with It is supplemented with money to the preset service centre that supplements with money, supplementing with money, which can be set in service centre, supplements node with money.Supplementing node with money can lead to Biological characteristic detection part is crossed, the biological information (can be described as the first biological information) of target user is detected.
Shooting part can be set in node for example, supplementing with money, face identification system can be installed in the shooting part Application program.The shooting part for supplementing node with money can be with the facial image of photographic subjects user, and then, shooting part passes through face Identifying system identifies the face characteristic information (can be described as the first face characteristic information) in the facial image.Wherein, recognition of face System can be to be obtained based on neural metwork training, and face characteristic information can be feature vector, such as the spy of 128 dimensions Vector is levied, for ease of description, the first face characteristic information can be denoted as w1.Wherein, face identification system and its training process are equal Belong to the prior art, the embodiment of the present application repeats no more.
Step 202, in pre-stored biological information and the corresponding relationship of account, it is determined whether exist and first Biological information meets the second biological information of default similarity condition.
In the embodiment of the present application, pair of biological information and account can store in each node of block catenary system It should be related to.After supplementing nodal test to the first biological information of target user with money, it can be counted by preset similarity algorithm The similarity of each biological information in first biological information and the corresponding relationship is calculated, and then judges the corresponding relationship In, if there is the second biological information for meeting default similarity condition with the first biological information.For example, can be pre- Similarity threshold is first set, if the similarity of certain biological information and the first biological information in the corresponding relationship is big In the similarity threshold, then determine that there is the second biological characteristic for meeting default similarity condition with the first biological information believes Breath;Otherwise, it is determined that there is no the second biological informations for meeting default similarity condition with the first biological information.
For example, supplementing the corresponding relationship for being previously stored with face feature vector and account in node with money, node is supplemented with money by taking the photograph After calculating w1 as component, each face feature vector and w1 can be calculated by preset vector similarity algorithm by supplementing node with money Similarity.Wherein, vector similarity algorithm can be implemented using Euclidean distance algorithm, cosine similarity algorithm etc., the application Example is without limitation.
Step 203, believe if there is the second biological characteristic for meeting default similarity condition with the first biological information Breath, then obtain the corresponding target account of the second biological information.
In the embodiment of the present application, meet default similarity item with the first biological information if supplementing node with money and determining to exist Second biological information of part then illustrates that target user is non-and supplements with money for the first time, has built up the account and account book letter of target user Breath, supplements the corresponding target account of available second biological information of node with money, to carry out supplementing processing with money to target account.
Optionally, node is supplemented with money other than storage biological information and the corresponding relationship of account, can also store this The facial image of each account owning user in corresponding relationship is supplemented with money after node gets target account, can be with displaying target account The corresponding facial image in family, the attendant for supplementing service centre with money can compare the facial image with target user, with Further judge whether the target user supplemented with money is consistent with target account owning user.
Step 204, after receiving the recharge instruction for carrying target recharge amount, according to target recharge amount and target The corresponding account book information of account supplement with money processing, and by other nodes of updated account book synchronizing information to block catenary system In, to carry out traffic charging to target user.
In the embodiment of the present application, supplementing node with money can receive the recharge instruction of attendant's input, can in the recharge instruction To carry target recharge amount.It supplements the corresponding account book information of the available target account of node with money, and then is filled according to the target The value amount of money and the account book information carry out supplementing processing with money.For example, supplementing with money more than the account recorded in the available account book information of node Volume (i.e. the current account balance of target account), then calculate account remaining sum and target recharge amount and value, by this and value As new account balance.The particular content of the account book information and detailed process for supplementing processing with money is subsequent will do it detailed description.
It, can be by updated account book information after the account book information for supplementing node updates local with money based on the characteristic of block chain It is synchronized in other nodes (for example charge node is ridden in source and purpose is ridden charge node) of block catenary system, to use target Family carries out traffic charging.
Optionally, believe if there is no the second biological characteristic for meeting default similarity condition with the first biological information Breath, then establish the corresponding target account of target user and account book information;By target account and the first biological information, it is added to In biological information and the corresponding relationship of account, and updated corresponding relationship is synchronized to other nodes of block catenary system In.
In the embodiment of the present application, if supplementing node with money determines that there is no meet default similarity with the first biological information Second biological information of condition then illustrates that target user is the user supplemented with money for the first time, and does not locally set up target user's Account and account book information.Therefore, supplement that node needs to establish the corresponding target account of target user and account book information then can with money To be added to target account and the first biological information in biological information and the corresponding relationship of account, and will update Corresponding relationship afterwards is synchronized in other nodes of block catenary system.
For example, supplementing the corresponding relationship for being previously stored with face feature vector and account in node with money, supplements node with money and calculate After w1, each face feature vector and the similarity of w1 can be calculated by preset vector similarity algorithm, if the correspondence is closed In system, there is no the face feature vectors for being greater than preset threshold with the similarity of w1, then can establish target account for target user Family A, and store the corresponding relationship of w1 and target account A.
Optionally, it for above-mentioned the case where supplementing the facial image for being also stored with each account owning user in node with money, supplements with money Node determines there is no after the second biological information for meeting default similarity condition with the first biological information, can be with The determining maximum biological information of similarity (can be described as third biological information) with the first biological information, then Show the facial image of the corresponding account of third biological information.Attendant may determine that the facial image and target are used Whether family is consistent, if unanimously, inputting the more new command of biological information, believes third biological characteristic so as to supplement node with money Breath is updated to the first biological information.If it is inconsistent, input account creation instruction, so that supplementing node with money executes above-mentioned build The step of vertical corresponding target account of target user and account book information.
In this way, if the biological characteristic of certain user changes, can in time to the biological information in database into Row updates, and improves the accuracy of identification user.
Optionally, account book information may include account balance, transaction record item and transaction record item status information and Number, can also including account identification etc. information.Wherein, the corresponding unit of transaction record item is ridden section, and unit multiplies Vehicle section can be the section by bus of a station range of driving.Transaction record item can also include start site information and termination website letter Breath.Start site information is that user gets on the bus the information of website, terminates the information that site information is user's get-off stop.Transaction record Status information may include available mode, down state and be used state.The transaction record of one available mode It can be used for paying a unit to ride the corresponding spending amount in section, that is, the number etc. of the transaction record item of available mode In payable station number.The unit corresponding spending amount in section of riding can be arranged according to the actual situation.It is subsequent, work as user After by bus, the status information of the transaction record item of respective number is set unavailable shape by the website number that can be ridden according to user State.If user is riding, start site information will record, and the transaction record item of the start site information will be recorded Status information is set as that state is used, and specific treatment process is subsequent to will do it detailed description.
It as shown in Table 1, is a kind of account book example provided by the embodiments of the present application.
Table one
Based on above-mentioned account book information, the specific process of supplementing with money for supplementing node with money can be with are as follows: calculates target recharge amount and unit The ratio of the corresponding spending amount in section by bus, using the ratio as the second number.Then, in account book information, addition second Number transaction record item, the status information of the second number transaction record item of setting are available mode, and are incremented by according to number Sequence, for the second number transaction record item distribution number;The current balance of account book information is increased into target recharge amount.
Wherein, the transaction record item of available mode is the transaction record item for payment.
For example, unit is ridden, the corresponding spending amount in section is 1 yuan, and target recharge amount is 5 yuan, then adds 5 transaction Entry, and the status information that this 5 transaction record items are arranged is available mode, is then successively numbered.As shown in Table 2, For the account book example after supplementing with money.
Table two
Wherein, A indicates that status information is available mode.
By taking biological characteristic is face characteristic as an example, the embodiment of the present application provides a kind of example for supplementing process with money, specifically such as Under.
When certain user supplements with money for the first time, which needs to carry perfect instrument (such as identity card), to supplementing service centre with money It is opened an account and is supplemented with money.Supplement node with money then and can identify the face feature vector (w2 can be denoted as) in certificate photograph.For example, supplementing section with money Point can detecte the photo in perfect instrument, identify the face feature vector in the photo by face identification system, alternatively, with Family can also provide an electronic certificate photo, and face feature vector in the electronic certificate photo can be identified by supplementing node with money.
The photo of user's live shooting can also be acquired by supplementing node with money, and the face feature vector extracted in the photo (can It is denoted as w3), then, judge whether the similarity of w2 and w3 is greater than preset threshold, if it is greater than preset threshold, then determines certificate photo Piece is consistent with user, establishes the corresponding target account of target user and account book information, and stores the corresponding pass of w2 and target account System.For example, w2 is the feature vector of 128 dimensions, and it can be using the numerical value of 128 dimensions as index, which is directed toward the account of target account Family mark.In one implementation, 128 digital jointings that account identification can include for 18 identification card numbers and w2 form Character string, the character string be 146 bytes.
Due to the face feature vector that the photo being taken on site based on user is extracted, the face characteristic extracted with certificate photograph The matching degree of vector is usually lower, therefore, w3 can be also stored in database, that is, the three couple of storage w2, w3 and target account It should be related to.
Subsequent, when user supplements with money again, the photo of live shooting of user can be acquired by supplementing node with money, and extracting should Face feature vector (i.e. w1) in photo, then, it is determined that it is greater than the face feature vector w2 of preset threshold with the similarity of w, And according to above-mentioned corresponding relationship, target account is determined, and then obtain the corresponding account book information of target account.Wherein, transaction record Number can by account identification, supplement the time with money, supplement the mark of node with money and transaction number is constituted.Transaction number is according to liter Sequence is the number that transaction record item is sequentially allocated.
For example, face feature vector is 128 0 compositions if the identification card number of passenger is 111111111111111111 Vector, supplementing the time with money is 9 o'clock sharp of morning on the 20th of August in 2018, and that supplements node with money is identified as 1, and recharge amount is 5 yuan, and unit multiplies The corresponding spending amount in vehicle section is 1 yuan, then account book information can be as shown in Table 3.
Table three
In the embodiment of the present application, the charging mode for the public transport that user takes is meter standing posture charge, for example, unit The corresponding spending amount in section is 1 yuan by bus, if user's slave site 1 starts, is got off after taking 5 stations, and the range of driving includes 4 units Section by bus, 4 yuan of charging.
In the embodiment of the present application, refund processing can also be carried out by supplementing node with money, when target user wants refund, supplement section with money The biological information that point by biological characteristic detection part, can detect target user (can be described as the 4th biological characteristic letter Breath), it is determining to meet with the 4th biological information then in pre-stored biological information and the corresponding relationship of account The biological information and the corresponding target account of the biological information of default similarity condition, and then obtain target account The corresponding account book information in family determines that status information is the transaction record item of available mode in the account book information, these transaction are remembered The status information of record item is revised as down state by available mode, and account balance is revised as 0.
The embodiment of the present application also provides source ride charge node execute traffic charging method treatment process, such as Fig. 3 It is shown, it can specifically include following steps.
Step 301, by biological characteristic detection part, the first biological information of target user is detected.
The treatment process of the step is similar with the treatment process of above-mentioned steps 201, and details are not described herein again.
Step 302, in pre-stored biological information and the corresponding relationship of account, determining and the first biological characteristic Information meets the second biological information and the corresponding target account of the second biological information of default similarity condition.
The treatment process of the step is similar with the treatment process of above-mentioned steps 202, and details are not described herein again.
Step 303, using current site information as start site information, it is recorded in the corresponding account book information of target account The first transaction record item in, and by other nodes of updated account book synchronizing information to block catenary system, to target User carries out traffic charging.
In the embodiment of the present application, source is ridden the available current site information of charge node, and site information may include The mark of website.In one possible implementation, the mark for identifying the charge node that can ride for source of website, for example, Source ride charge node can be subway entrance gate, due to different subway stations entrance gate have different marks, because This, can use the mark for marking website of entrance gate.In alternatively possible implementation, charge node is ridden in source can be with By way of meter station, determination is presently in website, and then obtains the mark of the website.For example, source is ridden, charge node is public affairs The POS of vehicle is handed over, the POS can be by way of meter station, and determination is presently in website.
Optionally, site information can also include temporal information other than it may include the mark of website.It counts by bus in source Take the available current temporal information of node, character string is constituted according to the mark of current time information and website, by the character String is used as site information.
Source is ridden after charge node determines target account, the corresponding account book information of available target account, then can be with The first transaction record item is determined in account book information, and then this transaction record is recorded in the first transaction record item.Specifically , source charge node of riding can be recorded in the first transaction record item using current site information as start site information.
Based on account book shown in table one or table two, source charge node of riding determines that the detailed process of the first transaction record item can With: according to the incremental sequence of number, in the corresponding account book information of target account, determine that status information is the first of available mode Transaction record item.
In the embodiment of the present application, source is ridden the sequence that charge node can be incremental according to number, corresponding in target account In account book information, the transaction record item that status information is available mode is searched, by find first transaction record item, as First transaction record item.Then, in the first transaction record item in the field of start site information, current website letter is stored Breath, meanwhile, it is revised as the corresponding status information of the first transaction record item that state is used by available mode.For example, being based on Above-mentioned table two, the source transaction record item that charge node can determine that number is 1 of riding is the first transaction record item, current website For M1, then updated account book information is as shown in Table 4.
Table four
Wherein, state is used in status information C expression.
Optionally, source is ridden the number for the account balance that charge node can first judge in the corresponding account book information of target account Whether value is greater than preset threshold.If the numerical value of account balance is greater than preset threshold, 303 are thened follow the steps;If account balance Numerical value be not more than preset threshold, then export the prompt information of Fail Transaction.
In the embodiment of the present application, source rides that the corresponding preset threshold of account balance can be previously stored in charge node, The preset threshold can be arranged by technical staff.For example, for bus, it is 1 yuan that preset threshold, which can be set, for subway, It is 3 yuan that preset threshold, which can be set,.Source is ridden after charge node determines target account, the corresponding account book of available target account Information, then judges whether the numerical value of the account balance in the corresponding account book information of target account is greater than preset threshold.If account The numerical value of family remaining sum is greater than preset threshold, thens follow the steps 303;If the numerical value of account balance is not more than preset threshold, defeated The prompt information of Fail Transaction out, to prompt target user, Sorry, your ticket has not enough value.The way of output of the prompt information can be a variety of more Sample, for example, voice messaging can be exported, the display unit display reminding information for the charge node that can also be ridden by source.
Optionally, for source ride charge node be entrance gate the case where, if the numerical value of account balance be greater than it is default Threshold value, then entrance gate can be with starting gate, so that target user passes through entrance gate;If the numerical value of account balance is not more than Preset threshold can then keep closing gate.
In the embodiment of the present application, source ride charge node complete account book information modification after, can be by updated account book Synchronizing information is into other nodes of block catenary system, to carry out traffic charging to target user.
The embodiment of the present application also provides purpose ride charge node execute traffic charging method treatment process, such as scheme Shown in 4, it can specifically include following steps.
Step 401, by biological characteristic detection part, the first biological information of target user is detected.
The treatment process of the step is similar with the treatment process of above-mentioned steps 201, and details are not described herein again.
Step 402, in pre-stored biological information and the corresponding relationship of account, determining and the first biological characteristic Information meets the second biological information and the corresponding target account of the second biological information of default similarity condition.
The treatment process of the step is similar with the treatment process of above-mentioned steps 202, and details are not described herein again.
Step 403, in the corresponding account book information of target account, record time and current time immediate first are determined The first start site information in transaction record item.
In the embodiment of the present application, purpose rides charge node can be in the corresponding account book information of target account, determining note Record the first start site information in time and the immediate first transaction record item of current time.For example, for account book information Include the case where status information, purpose is ridden, and can to search status information be the first transaction note just in use state to charge node Item is recorded, the start site information (i.e. the first start site information) in the first transaction record item is then obtained.For another example, purpose is ridden Charge node can determine transaction record item (i.e. the first transaction record of last record according to the number of each transaction record item ), then obtain the first start site information in the first transaction record item.
Step 404, according to the first start site information and current site information, charging processing is carried out to target account.
In the embodiment of the present application, purpose rides that routing algorithm can be previously stored in charge node, and purpose is ridden charging Node can calculate the section by bus of target account according to the first start site information, current site information and routing algorithm, Then charging processing is carried out to target account according to the section by bus of target account.
Optionally, purpose ride charge node can according to the first start site information and current site information, calculate The section unit that is included by bus of target user is ridden first number in section;It is calculated according to boarding station points and consumes gold by bus Volume, and spending amount of riding is deducted from account balance current in account book information.
In the embodiment of the present application, purpose rides charge node can be according to the first start site information, current website letter Breath and routing algorithm calculate the unit that the section of riding includes and ride the number (i.e. the first number) in section, that is, calculating target The number of the website that section is included by bus of user.Then, purpose charge node of riding rides that section is corresponding to disappear with unit Take the amount of money multiplied by the first number, the spending amount by bus of the i.e. target user of obtained product.Purpose is ridden the charge node account Current account balance in this information subtracts the spending amount of riding, using obtained difference as new account balance.Wherein, The difference can be negative value, indicate that target account is currently at arrearage state.
Optionally, based on account book shown in table one or table two, purpose charge node of riding is determining that section includes by bus Unit ride section the first number after, other than modifying account balance, sequence that can also be incremental according to number, from First transaction record item starts, and determines that continuous first number status information is the transaction record item of available mode;It will be current Site information is recorded in the transaction record item determined, and as site information is terminated by the transaction record item determined Status information is set as down state.
Wherein, the transaction record item of down state is used transaction record item.
For example, referring to above-mentioned table two, the source transaction record item that charge node can determine that number is 1 of riding is the first transaction Entry, start site M1, termination website are M3, and the number for the website that section includes by bus is 2, then updated account book letter Breath is as shown in Table 4.
Table four
Wherein, status information B indicates down state.
In the embodiment of the present application, purpose ride charge node complete account book information modification after, can be by updated account Account book information of this synchronizing information into other nodes of block catenary system, in synchronous block chain.
Based on above-mentioned table three, the embodiment of the present application also provides a kind of example of traffic charging, particular content is as follows.
The website by bus of target user is No. 66 affiliated subway stations of gate, and pick-up time is on August 20,9: 10 2018 Point, then it can determine that start site information is 66180820091000, charge node (i.e. No. 66 gates) is ridden in source can be in account In this information, determine number be 1111111111111111110 ... 0180820090000010001 transaction record item, then Will in the transaction record item record start site information 66180820091000, and the status information of the transaction record item is set It is set to the state of being used.Updated account book information can be as shown in Table 5.
Table five
The get-off stop of target user is No. 68 affiliated subway stations of gate, and the time getting off is on August 20,9: 20 2018 Point, then it can determine that terminating site information is 68180820092000, purpose rides charge node (i.e. No. 68 gates) can be In account book information, determine number be 1111111111111111110 ... 0180820090000010001 transaction record item, so Afterwards since the transaction record item, the transaction record item that continuous 2 status informations are available mode is searched, these transaction are remembered The termination site information of record item is set as 68180820092000, and setting the status information of these transaction record items to can not Use state.Updated account book information can be as shown in Table 6.
Table six
Optionally, for the transaction record item determined, in addition to the first transaction record item, in other transaction record items Start site information can be default, or is set as default value, such as 0.
In the embodiment of the present application, the biological information of user and the corresponding relationship of account are stored in block catenary system, And the account book information of the account, when user rides, the node in block chain can detecte the biological information of user, then Charging is carried out to corresponding account, user is without carrying bus card, without swiping card is carried out, improves user by bus just Benefit.
In addition, since ride charge node, purpose of source rides charge node and to supplement node with money and be deployed in block chain, it can To realize the real-time synchronization of data, and guarantee the reliability and safety of data, so that recording by bus each time for user has Account can be looked into, and have something to base on.Moreover, because each node in block chain is also stored with the certificate information of the perfect instrument of user, because This, may be implemented system of real name and ride, alert if suspect carries out social activities using public transport in criminal investigation field Side can accurately grasp its activity trajectory.
Based on the same technical idea, as shown in figure 5, the embodiment of the present application also provides a kind of device of traffic charging, The source that described device is applied in block catenary system is ridden charge node, and described device includes:
Detection module 510, for detecting the first biological information of target user by biological characteristic detection part;
Determining module 520, in the corresponding relationship of pre-stored biological information and account, it is determining with it is described First biological information meets the second biological information and second biological information of default similarity condition Corresponding target account;
Update module 530, for being recorded in the target account pair using current site information as start site information In first transaction record item of the account book information answered, and by updated account book synchronizing information to the block catenary system other In node, to carry out traffic charging to the target user.
Optionally, as shown in fig. 6, the account book information further includes account balance, described device further include:
Judgment module 540, for judging it is pre- whether the account balance in the corresponding account book information of the target account is greater than If threshold value;
If the account balance is greater than preset threshold, triggers the update module and execute and described believe current website Breath is used as start site information, and the step in the transaction record item of the account book information is recorded;
If the account balance is not more than preset threshold, the prompt letter that output module 550 exports Fail Transaction is triggered Breath.
Optionally, the account book information further includes the status information and number of each transaction record item, wherein a transaction note The corresponding unit of record item is ridden section;
As shown in fig. 7, described device further include:
Searching module 560 is searched in the corresponding account book information of the target account for the sequence incremental according to number Status information is the first transaction record item of available mode, wherein the transaction record item of available mode is the transaction for payment Entry.
Based on the same technical idea, as shown in figure 8, the embodiment of the present application also provides a kind of device of traffic charging, The purpose that described device is applied in block catenary system is ridden charge node, and described device includes:
Detection module 810, for detecting the first biological information of target user by biological characteristic detection part;
First determining module 820, in the corresponding relationship of pre-stored biological information and account, determine with First biological information meets the second biological information and second biological characteristic of default similarity condition The corresponding target account of information;
Second determining module 830 determines record time and current in the corresponding account book information of the target account Time immediate first start site information;
Accounting module 840, for according to first start site information and the current site information, to the mesh It marks account and carries out charging processing.
Optionally, the account book information further includes account balance, and the accounting module is used for:
According to first start site information and the current site information, the load zones of the target user are calculated Between, and determine that the unit that section includes described by bus is ridden first number in section;
It is ridden the corresponding spending amount in section according to first number and the unit, calculates spending amount of riding, and The spending amount by bus is deducted in the account balance current from the account book information.
Optionally, the account book information further includes the status information and number of each transaction record item, wherein a transaction note The corresponding unit of record item is ridden section;
As shown in figure 9, described device further include:
Third determining module 850, user's sequence incremental according to number, the belonging to the information of first start site One transaction record item starts, and determines that continuous first number status information is the transaction record item of available mode, described to use shape The transaction record item of state is the transaction record item for payment;
Setup module 860, for being recorded in the friendship determined using the current site information as site information is terminated In easy entry, and down state is set by the status information for the transaction record item determined, the down state Transaction record item is used transaction record item.
Based on the same technical idea, as shown in Figure 10, the embodiment of the present application also provides a kind of device of traffic charging, Described device is applied to supplement node with money in block catenary system, and described device includes:
Detection module 1010, for detecting the first biological information of target user by biological characteristic detection part;
Determining module 1020, in the corresponding relationship of pre-stored biological information and account, it is determined whether In the presence of the second biological information for meeting default similarity condition with first biological information;
Module 1030 is obtained, for if there is meeting the of default similarity condition with first biological information Two biological informations then obtain the corresponding target account of second biological information;
Module 1040 is supplemented with money, for after receiving the recharge instruction for carrying target recharge amount, according to the target Recharge amount and the corresponding account book information of the target account supplement with money processing, and by updated account book synchronizing information to institute It states in other nodes of block catenary system, to carry out traffic charging to the target user.
Optionally, as shown in figure 11, described device further include:
Module 1050 is established, for meeting default similarity condition if there is no with first biological information Second biological information then establishes the corresponding target account of the target user and account book information;
Adding module 1060, for being added to the biology for the target account and first biological information In characteristic information and the corresponding relationship of account, and updated corresponding relationship is synchronized to other nodes of the block catenary system In.
Optionally, the account book information include account balance, transaction record item and transaction record item status information and Number, wherein the corresponding unit of transaction record item is ridden section;
It is described to supplement module with money, it is used for:
It calculates the target recharge amount and the unit is ridden the ratio of the corresponding spending amount in section, by the ratio As the second number;
In the account book information, the second number transaction record item is added, the second number transaction is set The status information of entry is available mode, and according to incremental sequence is numbered, for the second number transaction record item point With number, wherein the transaction record item of available mode is the transaction record item for payment;
The current balance of the account book information is increased into the target recharge amount.
In the embodiment of the present application, the biological information of user and the corresponding relationship of account are stored in block catenary system, And the account book information of the account, when user rides, the node in block chain can detecte the biological information of user, then Charging is carried out to corresponding account, user is without carrying bus card, without swiping card is carried out, improves user by bus just Benefit.
The embodiment of the present application also provides a kind of electronic equipment, as shown in figure 12, including processor 1201, communication interface 1202, memory 1203 and communication bus 1204, wherein processor 1201, communication interface 1202, memory 1203 pass through communication Bus 1204 completes mutual communication,
Memory 1203, for storing computer program;
Processor 1201, when for executing the program stored on memory 1203, the method for realizing above-mentioned traffic charging Step.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (English: Peripheral Component Interconnect, referred to as: PCI) bus or expanding the industrial standard structure (English: Extended Industry Standard Architecture, referred to as: EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control Bus processed etc..Only to be indicated with a thick line in figure convenient for indicating, it is not intended that an only bus or a type of total Line.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (English: Random Access Memory, abbreviation: RAM), can also To include nonvolatile memory (English: Non-Volatile Memory, abbreviation: NVM), for example, at least a disk storage Device.Optionally, memory can also be that at least one is located remotely from the storage device of aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (English: Central Processing Unit, referred to as: CPU), network processing unit (English: Network Processor, referred to as: NP) etc.;It can also be digital signal Processor (English: Digital Signal Processing, abbreviation: DSP), specific integrated circuit (English: Application Specific Integrated Circuit, referred to as: ASIC), field programmable gate array (English: Field- Programmable Gate Array, referred to as: FPGA) either other programmable logic device, discrete gate or transistor logic Device, discrete hardware components.
In another embodiment provided by the present application, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with computer program in storage medium, the computer program realizes any of the above-described traffic charging when being executed by processor Method the step of.
In another embodiment provided by the present application, a kind of computer program product comprising instruction is additionally provided, when it When running on computers, so that the method that computer executes any traffic charging in above-described embodiment.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or It partly generates according to process or function described in the embodiment of the present application.The computer can be general purpose computer, dedicated meter Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely the preferred embodiments of the application, are not intended to limit the protection scope of the application.It is all Any modification, equivalent replacement, improvement and so within spirit herein and principle are all contained in the protection scope of the application It is interior.

Claims (20)

1. a kind of method of traffic charging, which is characterized in that ride charging section in the source that the method is applied in block catenary system Point, which comprises
By biological characteristic detection part, the first biological information of target user is detected;
It is determining to meet with first biological information in pre-stored biological information and the corresponding relationship of account The second biological information and the corresponding target account of second biological information of default similarity condition;
Using current site information as start site information, be recorded in the corresponding account book information of the target account first is handed over In easy entry, and by other nodes of updated account book synchronizing information to the block catenary system, to the target User carries out traffic charging.
2. the method according to claim 1, wherein the account book information further includes account balance, the method Further include:
Judge whether the account balance in the corresponding account book information of the target account is greater than preset threshold;
If the account balance is greater than preset threshold, execute it is described using current site information as start site information, The step in the transaction record item of the account book information is recorded;
If the account balance is not more than preset threshold, the prompt information of Fail Transaction is exported.
3. the method according to claim 1, wherein the account book information further includes the state of each transaction record item Information and number, wherein the corresponding unit of transaction record item is ridden section;
It is described using current site information as start site information, be recorded in the of the corresponding account book information of the target account Before in one transaction record item, the method also includes:
According to the incremental sequence of number, it is available mode that status information is searched in the corresponding account book information of the target account First transaction record item, wherein the transaction record item of available mode is the transaction record item for payment.
4. a kind of method of traffic charging, which is characterized in that the purpose that the method is applied in block catenary system is ridden charging Node, which comprises
By biological characteristic detection part, the first biological information of target user is detected;
It is determining to meet with first biological information in pre-stored biological information and the corresponding relationship of account The second biological information and the corresponding target account of second biological information of default similarity condition;
In the corresponding account book information of the target account, record time and immediate first start site of current time are determined Information;
According to first start site information and the current site information, charging processing is carried out to the target account.
5. according to the method described in claim 4, it is characterized in that, the account book information further includes account balance, the basis First start site information and the current site information carry out charging processing to the target account, comprising:
According to first start site information and the current site information, the section by bus of the target user is calculated, And determine that the unit that section includes described by bus is ridden first number in section;
It is ridden the corresponding spending amount in section according to first number and the unit, calculates spending amount of riding, and from institute It states and deducts the spending amount by bus in the current account balance of account book information.
6. according to the method described in claim 5, it is characterized in that, the account book information further includes the state of each transaction record item Information and number, wherein the corresponding unit of transaction record item is ridden section;
The section unit that includes of riding described in the determination ride section the first number after, the method also includes:
According to the incremental sequence of number, the first transaction record item belonging to the information of first start site, the company of determination Continuous first number status information is the transaction record item of available mode, and the transaction record item of the available mode is for paying Transaction record item;
Using the current site information as site information is terminated, it is recorded in the transaction record item determined, and will determine The status information of transaction record item out is set as down state, and the transaction record item of the down state is used Transaction record item.
7. a kind of method of traffic charging, which is characterized in that the method is applied to the node of supplementing with money in block catenary system, described Method includes:
By biological characteristic detection part, the first biological information of target user is detected;
In pre-stored biological information and the corresponding relationship of account, it is determined whether exist and first biological characteristic Information meets the second biological information of default similarity condition;
If there is the second biological information for meeting default similarity condition with first biological information, then obtain The corresponding target account of second biological information;
After receiving the recharge instruction for carrying target recharge amount, according to the target recharge amount and the target account Corresponding account book information supplement with money processing, and by updated account book synchronizing information to other nodes of the block catenary system In, to carry out traffic charging to the target user.
8. the method according to the description of claim 7 is characterized in that described ought receive carries supplementing with money for target recharge amount It is described before carrying out supplementing processing with money according to the target recharge amount and the corresponding account book information of the target account after instruction Method further include:
If there is no the second biological information for meeting default similarity condition with first biological information, then build Found the corresponding target account of the target user and account book information;
By the target account and first biological information, it is added to the biological information and the corresponding of account is closed In system, and updated corresponding relationship is synchronized in other nodes of the block catenary system.
9. the method according to the description of claim 7 is characterized in that the account book information include account balance, transaction record item, And the status information and number of transaction record item, wherein the corresponding unit of transaction record item is ridden section;
It is described to carry out supplementing processing with money according to the target recharge amount and the corresponding account book information of the target account, comprising:
Calculate the target recharge amount and the unit ridden the ratio of the corresponding spending amount in section, using the ratio as Second number;
In the account book information, the second number transaction record item is added, the second number transaction record is set The status information of item is available mode, and according to incremental sequence is numbered, distributes and compile for the second number transaction record item Number, wherein the transaction record item of available mode is the transaction record item for payment;
The current balance of the account book information is increased into the target recharge amount.
10. a kind of device of traffic charging, which is characterized in that ride charging section in the source that described device is applied in block catenary system Point, described device include:
Detection module, for detecting the first biological information of target user by biological characteristic detection part;
Determining module, in the corresponding relationship of pre-stored biological information and account, determination to be raw with described first Object characteristic information meets the second biological information for presetting similarity condition and second biological information is corresponding Target account;
Update module, for being recorded in the corresponding account of the target account using current site information as start site information In the first transaction record item of this information, and by updated account book synchronizing information to other nodes of the block catenary system In, to carry out traffic charging to the target user.
11. device according to claim 10, which is characterized in that the account book information further includes account balance, the dress It sets further include:
Judgment module, for judging whether the account balance in the corresponding account book information of the target account is greater than preset threshold;
If the account balance is greater than preset threshold, triggers the update module and execute and described make current site information For start site information, the step in the transaction record item of the account book information is recorded;
If the account balance is not more than preset threshold, the prompt information of output module output Fail Transaction is triggered.
12. device according to claim 10, which is characterized in that the account book information further includes the shape of each transaction record item State information and number, wherein the corresponding unit of transaction record item is ridden section;
Described device further include:
Searching module searches state letter for the sequence incremental according to number in the corresponding account book information of the target account Breath is the first transaction record item of available mode, wherein the transaction record item of available mode is the transaction record item for payment.
13. a kind of device of traffic charging, which is characterized in that the purpose that described device is applied in block catenary system is ridden charging Node, described device include:
Detection module, for detecting the first biological information of target user by biological characteristic detection part;
First determining module, it is determining with described the in the corresponding relationship of pre-stored biological information and account One biological information meets the second biological information and second biological information pair of default similarity condition The target account answered;
Second determining module, for determining record time and current time most in the corresponding account book information of the target account The first close start site information;
Accounting module, for according to first start site information and the current site information, to the target account Carry out charging processing.
14. device according to claim 13, which is characterized in that the account book information further includes account balance, the meter Take module, be used for:
According to first start site information and the current site information, the section by bus of the target user is calculated, And determine that the unit that section includes described by bus is ridden first number in section;
It is ridden the corresponding spending amount in section according to first number and the unit, calculates spending amount of riding, and from institute It states and deducts the spending amount by bus in the current account balance of account book information.
15. device according to claim 14, which is characterized in that the account book information further includes the shape of each transaction record item State information and number, wherein the corresponding unit of transaction record item is ridden section;
Described device further include:
Third determining module, for the sequence incremental according to number, the first transaction belonging to the information of first start site Entry starts, and determines that continuous first number status information is the transaction record item of available mode, the friendship of the available mode Easy entry is the transaction record item for payment;
Setup module, for being recorded in the transaction record determined using the current site information as site information is terminated Xiang Zhong, and down state, the transaction note of the down state are set by the status information for the transaction record item determined Record item is used transaction record item.
16. a kind of device of traffic charging, which is characterized in that described device is applied to supplement node, institute with money in block catenary system Stating device includes:
Detection module, for detecting the first biological information of target user by biological characteristic detection part;
Determining module, in the corresponding relationship of pre-stored biological information and account, it is determined whether exist and institute State the second biological information that the first biological information meets default similarity condition;
Module is obtained, for special if there is the second biology for meeting default similarity condition with first biological information Reference breath, then obtain the corresponding target account of second biological information;
Module is supplemented with money, for after receiving the recharge instruction for carrying target recharge amount, according to the target recharge amount Account book information corresponding with the target account supplement with money processing, and by updated account book synchronizing information to the block chain In other nodes of system, to carry out traffic charging to the target user.
17. device according to claim 16, which is characterized in that described device further include:
Module is established, for if there is no the second biology for meeting default similarity condition with first biological information Characteristic information then establishes the corresponding target account of the target user and account book information;
Adding module, for being added to the biological information for the target account and first biological information It is synchronized in other nodes of the block catenary system in the corresponding relationship of account, and by updated corresponding relationship.
18. device according to claim 16, which is characterized in that the account book information includes account balance, transaction record And transaction record item status information and number, wherein the corresponding unit of transaction record item is ridden section;
It is described to supplement module with money, it is used for:
Calculate the target recharge amount and the unit ridden the ratio of the corresponding spending amount in section, using the ratio as Second number;
In the account book information, the second number transaction record item is added, the second number transaction record is set The status information of item is available mode, and according to incremental sequence is numbered, distributes and compile for the second number transaction record item Number, wherein the transaction record item of available mode is the transaction record item for payment;
The current balance of the account book information is increased into the target recharge amount.
19. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method of claim 1-6 or 7-9 Step.
20. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium Program realizes claim 1-6 or 7-9 any method and step when the computer program is executed by processor.
CN201910041548.3A 2019-01-16 2019-01-16 A kind of method and device of traffic charging Pending CN109801056A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910041548.3A CN109801056A (en) 2019-01-16 2019-01-16 A kind of method and device of traffic charging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910041548.3A CN109801056A (en) 2019-01-16 2019-01-16 A kind of method and device of traffic charging

Publications (1)

Publication Number Publication Date
CN109801056A true CN109801056A (en) 2019-05-24

Family

ID=66559535

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910041548.3A Pending CN109801056A (en) 2019-01-16 2019-01-16 A kind of method and device of traffic charging

Country Status (1)

Country Link
CN (1) CN109801056A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111242603A (en) * 2020-01-03 2020-06-05 腾讯科技(深圳)有限公司 Riding settlement method and device based on block chain
CN111833091A (en) * 2020-04-14 2020-10-27 北京嘀嘀无限科技发展有限公司 Information presentation method, device, equipment and storage medium
CN114495301A (en) * 2021-12-15 2022-05-13 广州新科佳都科技有限公司 Subway ticket business processing method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040143554A1 (en) * 2001-03-28 2004-07-22 Okamoto Steve Atsushi Method and apparatus for generating a value bearing instrument
CN106780792A (en) * 2015-11-18 2017-05-31 航天信息股份有限公司 A kind of subway quick payment method and system
CN109087092A (en) * 2018-06-30 2018-12-25 江苏恒宝智能系统技术有限公司 A kind of urban transportation charging system based on block chain
CN109191104A (en) * 2018-06-29 2019-01-11 深圳市元征科技股份有限公司 A kind of information processing method and its equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040143554A1 (en) * 2001-03-28 2004-07-22 Okamoto Steve Atsushi Method and apparatus for generating a value bearing instrument
CN106780792A (en) * 2015-11-18 2017-05-31 航天信息股份有限公司 A kind of subway quick payment method and system
CN109191104A (en) * 2018-06-29 2019-01-11 深圳市元征科技股份有限公司 A kind of information processing method and its equipment
CN109087092A (en) * 2018-06-30 2018-12-25 江苏恒宝智能系统技术有限公司 A kind of urban transportation charging system based on block chain

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111242603A (en) * 2020-01-03 2020-06-05 腾讯科技(深圳)有限公司 Riding settlement method and device based on block chain
CN111833091A (en) * 2020-04-14 2020-10-27 北京嘀嘀无限科技发展有限公司 Information presentation method, device, equipment and storage medium
CN114495301A (en) * 2021-12-15 2022-05-13 广州新科佳都科技有限公司 Subway ticket business processing method, device, equipment and storage medium
CN114495301B (en) * 2021-12-15 2023-11-21 广州新科佳都科技有限公司 Subway ticket business processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109815314B (en) Intent recognition method, recognition device and computer readable storage medium
CN107451816B (en) Method and device for realizing offline transaction
CN108701225A (en) Facial recognition system, facial recognition method and storage medium
CN104239386B (en) For matching the method and system for distinguishing priority to face recognition
CN107679613A (en) A kind of statistical method of personal information, device, terminal device and storage medium
CN109920174B (en) Book borrowing method and device, electronic equipment and storage medium
CN109801056A (en) A kind of method and device of traffic charging
CN107248128B (en) Intelligent ticket checking method and system
JP5199152B2 (en) Behavior prediction method and behavior prediction system
CN107578241A (en) A kind of subway payment system based on regular guest's information
CN107833328B (en) Access control verification method and device based on face recognition and computing equipment
CN109872160A (en) Electric paying method and device
CN114613052A (en) Subway passenger trip management method, system, device and storage medium
US20200193446A1 (en) System and method for realizing identity identification on the basis of radio frequency identification technology
CN109885597A (en) Tenant group processing method, device and electric terminal based on machine learning
CN109064613A (en) Face identification method and device
CN113077574A (en) Passing method, system, equipment and medium based on face recognition
JP5461893B2 (en) Information processing apparatus, information processing method, and program
CN112634889A (en) Electronic case logging method, device, terminal and medium based on artificial intelligence
CN108470179A (en) Method and apparatus for detecting object
CN106127866B (en) Ticket checking method and channel management equipment
CN105427480A (en) Teller machine based on image analysis
CN112385180A (en) System and method for matching identity and readily available personal identifier information based on transaction time stamp
CN112990936B (en) Big data-based campus monitoring system and method
CN110036417A (en) Exempt from hand-held and no ticket charging 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190524

RJ01 Rejection of invention patent application after publication