Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As shown in fig. 1, the present application provides an expense processing system. The fee processing system includes, among other things, a fee collection platform 100, a target payment device 200, and a target blockchain system 300.
In detail, the fee collection platform 100 may be communicatively connected to the target payment device 200 and the target blockchain system 300, respectively, and the target payment device 200 may be communicatively connected to the target blockchain system 300.
Also, the fee collection platform 100 may be communicatively coupled to a target financial platform.
In this way, when the target payment device 200 needs to pay the fee collection platform 100, it may generate a target two-dimensional code image based on the target account information of the target financial platform, generate corresponding target two-dimensional code identification information for the target two-dimensional code image, and then send the target two-dimensional code identification information to the blockchain system, so as to store the target two-dimensional code image by using the target blockchain deployed by the plurality of blockchain node devices included in the blockchain system.
Based on this, after the fee collection platform 100 acquires the target two-dimensional code image, it may acquire corresponding target two-dimensional code identification information in the target block chain system 300, and then perform information identification processing on the target two-dimensional code image based on the target two-dimensional code identification information to obtain the target account information, so as to request the target financial platform to perform fee collection processing based on the target account information, thereby implementing a transaction (i.e., payment and collection of fees) between the target payment device 200 and the fee collection platform 100.
Alternatively, the fee collection platform 100 and the target payment device 200 may include, but are not limited to, a mobile phone, a computer, a tablet computer, and other terminal devices with data processing capability.
The embodiment of the present application further provides a fee collection platform 100, which can be applied to the fee processing system. The fee collection platform 100 may include, among other things, a memory and a processor.
In detail, the memory and the processor are electrically connected directly or indirectly to realize data transmission or interaction. For example, they may be electrically connected to each other via one or more communication buses or signal lines. The memory may have stored therein at least one software function, which may be in the form of software or firmware. The processor may be configured to execute the executable computer program stored in the memory, such as the software functional modules, so as to implement the block chain based charging method provided by the embodiments (described later) of the present application.
Alternatively, the Memory may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), a System on Chip (SoC), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
With reference to fig. 2, the embodiment of the present application further provides a block chain-based fee collection method, which can be applied to the fee collection platform 100. Wherein the method steps defined by the flow related to the block chain based charging method may be implemented by the charging platform 100.
The specific process shown in FIG. 2 will be described in detail below.
Step S110, acquiring a target two-dimensional code image from the target payment apparatus 200.
In this embodiment, when a fee needs to be collected from the target payment device 200, the fee collection platform 100 may first acquire the target two-dimensional code image from the target payment device 200.
The target two-dimensional code image may be generated by the target payment device 200 based on target account information, and the target account information may be account information of the target financial platform.
Step S120, obtaining target two-dimensional code identification information corresponding to the target two-dimensional code image from the target block chain system 300.
In this embodiment, after the target two-dimensional code image is acquired based on step S110, the fee collection platform 100 may further acquire, from the target block chain system 300, target two-dimensional code identification information corresponding to the target two-dimensional code image.
The target two-dimensional code identification information may be generated for the target two-dimensional code image by the target payment device 200 after the target two-dimensional code image is generated, and sent to the target block chain deployed on the target block chain system 300 for storage.
Step S130, performing information identification processing on the target two-dimensional code image based on the target two-dimensional code identification information to obtain the target account information.
In this embodiment, after the target two-dimensional code identification information is acquired based on step S120, the fee collection platform 100 may further perform information identification processing on the target two-dimensional code image based on the target two-dimensional code identification information, so that the target account information may be obtained.
Step S140, generating request information based on the target account information and the pre-generated information of the fee to be collected, and sending the request information to the target financial platform.
In this embodiment, after obtaining the target account information based on step S130, the fee collection platform 100 may generate request information based on the target account information and pre-generated fee information to be collected, and then may transmit the request information to the target financial platform.
The target financial platform can be used for carrying out fee collection processing, such as account amount deduction and transfer processing, on the basis of the target account information and the information of fees to be collected.
Based on the method, the safety of effective identification processing of the target two-dimensional code image can be improved, so that the safety of fee collection processing is improved, the problem of lower safety in the existing fee collection technology is solved, and the method has higher practical value.
In the first aspect, it should be noted that, in step S110, a specific manner of obtaining the target two-dimensional code image is not limited, and may be selected according to actual application requirements.
For example, in an alternative example, the fee collection platform 100 may be in communication with the target payment device 200, so that the target payment device 200 transmits the target two-dimensional code image to the fee collection platform 100.
For another example, in another alternative example, the target two-dimensional code image may be displayed by the target payment device 200, and thus, the fee collection platform 100 may scan the display area of the target payment device 200 to acquire the target two-dimensional code image.
In the second aspect, it should be noted that, in step S120, a specific manner of obtaining the identification information of the target two-dimensional code is not limited, and may be selected according to actual application requirements.
For example, in an alternative example, in order to improve the convenience of acquiring the identification information of the target two-dimensional code, step S120 may include sub-steps 21 to 23, which are described in detail below.
And a substep 21 of performing a first recognition process on the target two-dimensional code image based on a preset two-dimensional code recognition rule to obtain a first recognition result.
In this embodiment, after the target two-dimensional code image is acquired based on step S110, a first identification process may be performed on the target two-dimensional code image based on a preset two-dimensional code identification rule, so that a first identification result may be obtained.
The first recognition result may include first identification information, and the first identification information may be used to identify the target two-dimensional code image, that is, the first identification information and the target two-dimensional code image have a one-to-one correspondence relationship.
Substep 22, sending said first identification information to said target blockchain system 300.
In this embodiment, after obtaining the first identification result based on the sub-step 21, that is, obtaining the first identification information, the second identification information may be sent to the target blockchain system 300.
Wherein the target blockchain system 300 is configured to send the target two-dimensional code identification information stored in the target blockchain to the fee collection platform 100 based on the first identification information.
Substep 23, obtaining the identification information of the target two-dimensional code sent by the target block chain system 300 based on the first identification information.
In this embodiment, after the first identification information is sent to the target blockchain system 300 based on the sub-step 22, the target two-dimensional code identification information sent by the target blockchain system 300 based on the first identification information can be obtained.
Alternatively, in the above example, the specific manner of performing the first identification process based on the sub-step 21 is not limited, and may be selected according to the actual application requirement.
For example, in one alternative example, the substep 21 may comprise the substeps of:
a first step of displaying the target two-dimensional code image in a first display area (a display screen area of the fee collection platform 100), wherein the first display area includes a two-dimensional code display area for displaying the target two-dimensional code image and a non-two-dimensional code display area for not displaying the target two-dimensional code image, and an area of the two-dimensional code display area is larger than an area of the non-two-dimensional code display area, and the two-dimensional code display area is surrounded by the non-two-dimensional code display area (so that the target two-dimensional code image can be displayed through the larger area for a target user to operate);
a second step of determining a target display area (for example, the target user may perform a region determination operation based on region-related information notified by the user of the target payment apparatus 200, so as to determine an effective target display area, the region-related information being a basis for generating the target two-dimensional code image), in response to a region determination operation (for example, an operation of a virtual key or a sliding operation of a screen) performed on the first display area by the target user (i.e., the user of the fee collection platform 100), wherein the target display area includes a partial region of the two-dimensional code display area;
thirdly, intercepting a picture where the target display area is located (such as by a screen interception technology) to obtain a target interception picture, wherein the target interception picture comprises a part of two-dimensional code image of the target two-dimensional code image;
fourthly, carrying out picture size adjustment processing on the target screenshot picture based on the integrity of a minimum identification unit of the two-dimensional code to obtain a target identification picture (namely, a picture formed by the complete minimum identification unit in the target screenshot picture), wherein the target identification picture comprises a plurality of complete minimum identification units, the minimum identification unit comprises at least one code element of the two-dimensional code (namely, a black or white lattice unit on the two-dimensional code), and the number of the minimum identification units included in the target identification picture is less than or equal to the number of the minimum identification units included in the target screenshot picture;
fifthly, performing recognition processing on the minimum recognition units included in the target recognition picture based on a preset first two-dimensional code recognition rule to obtain a first recognition sub-result, wherein the first recognition sub-result includes first identifier information, and the first recognition rule includes a recognition path (such as from top left to bottom right, from top right to sitting down, and the like) and a recognition mapping relationship (such as black corresponding to 1 or black corresponding to 0) when performing recognition processing on the minimum recognition units;
sixthly, performing recognition processing on the minimum recognition units outside the target recognition picture in the target two-dimensional code image based on a preset second two-dimensional code recognition rule to obtain a second recognition sub-result, wherein the second recognition sub-result comprises second identifier information, the second recognition rule comprises recognition paths and recognition mapping relations when the minimum recognition units are subjected to recognition processing, and the second recognition rule is different from at least one recognition path in the first recognition rule;
and seventhly, combining the first identification sub-result and the second identification sub-result according to a preset information combination rule to obtain a first identification result, wherein the first identification result comprises first identification information consisting of the first identification sub-information and the second identification sub-information, and the information combination rule comprises a position relation of the first identification sub-result and the second identification sub-result in the first identification result.
It is understood that, in the above example, the specific manner of obtaining the first identifier result based on the fifth step included in the sub-step 21 is not limited, and may be selected according to the actual application requirement.
For example, in one example, in order to facilitate the region determination operation by the target user, the target identification picture may include a number of symbols of the two-dimensional code that is greater than a number of symbols of the two-dimensional code other than the target identification picture in the target two-dimensional code image.
Based on this, the fifth step in the above example may include the following sub-steps:
a first sub-step, performing a first sampling process on a plurality of minimum identification units included in the target identification picture (e.g. one or two minimum identification units are obtained by sampling one minimum identification unit each time) based on a predetermined first identification path and a predetermined first identification unit sampling interval, to obtain a first target symbol sequence corresponding to the target identification picture, where each of the minimum identification units may include at least two symbols of a two-dimensional code, and the first target symbol sequence includes at least two minimum identification units (e.g. at least 4 symbols may be obtained);
a second sub-step, performing a first division process on the first target symbol sequence according to a predetermined first symbol division interval to obtain at least two first target symbol subsequences (for example, including 6 symbols, three first target symbol subsequences can be obtained by dividing every two symbols, each first symbol subsequence includes 3 symbols), where each of the first target symbol subsequences includes the same number of symbols, and the number of symbols is the corresponding number of the first symbol division interval;
a third sub-step, performing a first symbol sequence adjustment process (e.g. reverse order process, or exchanging the first symbol with the last symbol and exchanging the second symbol with the second last symbol until exchanging the first preset number of symbols with the second last preset number of symbols) on each first target symbol sub-sequence to obtain a first adjustment symbol sub-sequence corresponding to the first target symbol sub-sequence, wherein the rules of the first symbol sequence adjustment process performed on each first target symbol sub-sequence are the same;
a fourth sub-step, performing second sampling processing on each first adjustment symbol sub-sequence based on a predetermined first symbol sampling interval (for example, one symbol is acquired every other one or two symbols) to obtain a plurality of first target symbols corresponding to the first adjustment symbol sub-sequence, where the number of the plurality of first target symbols corresponding to each first adjustment symbol sub-sequence is the same, and the first symbol sampling interval corresponding to the second sampling processing on each first adjustment symbol sub-sequence is the same;
a fifth substep, based on the position relationship of the at least two first target symbol subsequences in the first target symbol sequence, of combining the multiple first target symbols corresponding to a first adjustment symbol subsequences corresponding to the at least two first target symbol subsequences to obtain a first adjustment symbol sequence (i.e. arranging the multiple obtained first target symbols according to the positions in the first symbol sequence);
and a sixth substep of performing a first mapping process on the first adjustment symbol sequence based on a predetermined first identification mapping relationship to obtain a first identification sub-result, wherein the first identification sub-result includes identification information corresponding to each symbol in the first adjustment symbol sequence, and the identification information constitutes the first identification sub-information.
It is understood that, in the above example, the specific manner of obtaining the second identifier result based on the sixth step included in the sub-step 21 is not limited, and may be selected according to the actual application requirement.
For example, on the basis of the above example, in order to improve the security of data processing, the sixth step in the above example may include the following sub-steps:
a first sub-step of performing third sampling processing on a plurality of minimum recognition units outside the target recognition picture in the target two-dimensional code image based on a predetermined second recognition path and a predetermined second recognition unit sampling interval to obtain a second target symbol sequence corresponding to the plurality of minimum recognition units, wherein each minimum recognition unit includes at least two symbols of the two-dimensional code, the second target symbol sequence includes at least two minimum recognition units, the second recognition path is different from the first recognition path, and the second recognition unit sampling interval is different from the first recognition unit sampling interval;
a second sub-step, performing a second division process on the second target symbol sequence according to a predetermined second symbol division interval to obtain at least two second target symbol subsequences, wherein each of the second target symbol subsequences has the same number of symbols, and the number of symbols is the corresponding number of the second symbol division interval, and the second symbol division interval is different from the first symbol division interval;
a third sub-step, performing second symbol order adjustment processing on each second target symbol subsequence to obtain a second adjusted symbol subsequence corresponding to the second target symbol subsequence, wherein rules of the second symbol order adjustment processing performed on each second target symbol subsequence are different, and the rule of each second symbol order adjustment processing is different from the rule of the first symbol order adjustment processing;
a fourth sub-step, based on the position relationship of the at least two second target symbol sub-sequences in the second target symbol sequence, of combining the second adjustment symbol sub-sequences corresponding to the at least two second target symbol sub-sequences to obtain a second adjustment symbol sequence;
and a fifth sub-step of performing a second mapping process on the second adjustment symbol sequence based on a predetermined second identification mapping relationship to obtain a second identification sub-result, wherein the second identification sub-result includes identification information corresponding to each symbol in the second adjustment symbol sequence, and the identification information constitutes the second identification sub-information.
It is understood that, in the above example, the specific manner of obtaining the first recognition result based on the seventh step included in the sub-step 21 is not limited, and may be selected according to the actual application requirement.
For example, in an alternative example, the sixth step in the above example may include the following sub-steps to obtain the first recognition result:
the first recognition sub-result and the second recognition sub-result are combined in the order of the first recognition sub-result being before and the second recognition sub-result being after, so as to obtain the first recognition result including the first recognition sub-result and the second recognition sub-result (for example, if the first recognition sub-result includes 0101101 as the first identifier information, and the second recognition sub-result includes 1111110 as the second identifier information, the obtained first recognition result may include 01011011111110 as the first identifier information).
For another example, in another alternative example, the sixth step in the above example may include the following sub-steps to obtain the first recognition result:
the first identifier information and the second identifier information included in the first identifier result and the second identifier result are added to the target number of bits by bit-filling, and then the corresponding bits are multiplied to obtain the first identifier information, that is, the first identifier result is obtained (for example, the first identifier information is 11101, the second identifier information is 00101010, and after bit-filling, the first identifier information is 1110100000 and 0010101000, and thus, after multiplication, the first identifier information and the second identifier information are 0010100000).
For another example, in another alternative example, the sub-step 21 may include the following sub-steps:
the method comprises the steps that a target two-dimensional code image is displayed in a first display area, wherein the first display area comprises a two-dimensional code display area used for displaying the target two-dimensional code image and a non-two-dimensional code display area used for not displaying the target two-dimensional code image, the area of the two-dimensional code display area is larger than that of the non-two-dimensional code display area, and the two-dimensional code display area is surrounded by the non-two-dimensional code display area;
secondly, responding to a region determination operation of a target user on the first display region, and determining a target display region, wherein the target display region comprises a partial region of the two-dimensional code display region;
thirdly, intercepting a picture in which the target display area is located to obtain a target intercepting picture, wherein the target intercepting picture comprises a part of two-dimensional code image of the target two-dimensional code image;
fourthly, carrying out picture size adjustment processing on the target screenshot picture based on the integrity of the minimum identification units of the two-dimensional codes to obtain a target adjustment picture, wherein the target adjustment picture comprises a plurality of complete minimum identification units, the minimum identification units comprise at least one code element of the two-dimensional codes, and the number of the minimum identification units included in the target adjustment picture is less than or equal to the number of the minimum identification units included in the target screenshot picture;
fifthly, determining a picture center point (such as a geometric center) in the target adjustment picture;
sixthly, determining a target two-dimensional code sub-image covering the central point of the image based on a plurality of predetermined target two-dimensional code sub-images, and taking the target two-dimensional code sub-image as a target identification image (in this way, the requirement for the accuracy of the region determination operation performed on the first display region by a target user can be reduced), wherein the plurality of target two-dimensional code sub-images are formed by dividing the target two-dimensional code image (for example, the target two-dimensional code sub-images can be equally divided into 4 target two-dimensional code sub-images);
seventhly, performing recognition processing on the minimum recognition units included in the target recognition picture based on a preset first two-dimensional code recognition rule to obtain a first recognition sub-result, wherein the first recognition sub-result includes first identifier information, and the first recognition rule includes recognition paths and recognition mapping relations when the minimum recognition units are subjected to recognition processing;
eighthly, performing recognition processing on the minimum recognition units outside the target recognition picture in the target two-dimensional code image based on a preset second two-dimensional code recognition rule to obtain a second recognition sub-result, wherein the second recognition sub-result comprises second identifier information, the second recognition rule comprises recognition paths and recognition mapping relations when the minimum recognition units are subjected to recognition processing, and the second recognition rule is different from at least one recognition path in the first recognition rule;
and a ninth step of combining the first identifier result and the second identifier result according to a preset information combination rule to obtain a first identification result, wherein the first identification result includes first identifier information composed of the first identifier information and the second identifier information, and the information combination rule includes a position relationship between the first identifier result and the second identifier result in the first identification result.
For another example, in another alternative example, the sub-step 21 may include the following sub-steps:
the method comprises the steps that a target two-dimensional code image is displayed in a first display area, wherein the first display area comprises a two-dimensional code display area used for displaying the target two-dimensional code image and a non-two-dimensional code display area used for not displaying the target two-dimensional code image, the area of the two-dimensional code display area is larger than that of the non-two-dimensional code display area, and the two-dimensional code display area is surrounded by the non-two-dimensional code display area;
secondly, responding to the area determination operation of a target user on the two-dimensional code display area (so that the efficiency of subsequently determining the picture center point can be improved), and determining a target display area, wherein the target display area comprises a partial area of the two-dimensional code display area;
thirdly, intercepting a picture in which the target display area is located to obtain a target intercepting picture, wherein the target intercepting picture comprises a part of two-dimensional code image of the target two-dimensional code image;
fourthly, determining a picture center point in the target intercepting picture;
fifthly, determining a target two-dimensional code sub-image covering the central point of the image based on a plurality of predetermined target two-dimensional code sub-images, and taking the target two-dimensional code sub-image as a target identification image, wherein the plurality of target two-dimensional code sub-images are formed by dividing the target two-dimensional code image;
sixthly, performing recognition processing on the minimum recognition units included in the target recognition picture based on a preset first two-dimensional code recognition rule to obtain a first recognition sub-result, wherein the first recognition sub-result includes first identifier information, and the first recognition rule includes recognition paths and recognition mapping relations when the minimum recognition units are subjected to recognition processing;
seventhly, performing recognition processing on the minimum recognition units outside the target recognition picture in the target two-dimensional code image based on a preset second two-dimensional code recognition rule to obtain a second recognition sub-result, wherein the second recognition sub-result comprises second identifier information, the second recognition rule comprises recognition paths and recognition mapping relations when the minimum recognition units are subjected to recognition processing, and the second recognition rule is different from at least one recognition path in the first recognition rule;
and eighthly, combining the first identifier result and the second identifier result according to a preset information combination rule to obtain a first identification result, wherein the first identification result comprises first identifier information consisting of the first identifier information and the second identifier information, and the information combination rule comprises the position relationship of the first identifier result and the second identifier result in the first identification result.
Also, in another alternative example, the sub-step 21 may include the sub-steps of:
the method comprises the steps that a target two-dimensional code image is displayed in a first display area, wherein the first display area comprises a two-dimensional code display area used for displaying the target two-dimensional code image and a non-two-dimensional code display area used for not displaying the target two-dimensional code image, the area of the two-dimensional code display area is larger than that of the non-two-dimensional code display area, and the two-dimensional code display area is surrounded by the non-two-dimensional code display area;
secondly, determining the target position information in response to the click determination operation of the target user on the two-dimensional code display area (so that the efficiency of subsequently determining the picture center point can be improved);
thirdly, determining a target two-dimensional code sub-image from a plurality of target two-dimensional code sub-images which are predetermined based on the target position information (namely the position information of a code element displayed in the target two-dimensional code sub-image is the same as the target position information), and taking the target two-dimensional code sub-image as a target identification picture, wherein the plurality of target two-dimensional code sub-images are formed by dividing the target two-dimensional code image;
fourthly, performing recognition processing on the minimum recognition units included in the target recognition picture based on a preset first two-dimensional code recognition rule to obtain a first recognition sub-result, wherein the first recognition sub-result includes first identifier information, and the first recognition rule includes recognition paths and recognition mapping relations when the minimum recognition units are subjected to recognition processing;
fifthly, identifying and processing the minimum identification units outside the target identification picture in the target two-dimensional code image based on a preset second two-dimensional code identification rule to obtain a second identification sub-result, wherein the second identification sub-result comprises second identification sub-information, the second identification rule comprises an identification path and an identification mapping relation when the minimum identification units are identified and processed, and the second identification rule is different from at least the identification path included in the first identification rule;
and sixthly, combining the first identifier result and the second identifier result according to a preset information combination rule to obtain a first identification result, wherein the first identification result comprises first identifier information consisting of the first identifier information and the second identifier information, and the information combination rule comprises the position relation of the first identifier result and the second identifier result in the first identification result.
Optionally, in the above example, the specific manner of sending the first identification information based on the sub-step 22 is not limited, and may be selected according to the actual application requirement.
For example, in one alternative example, sub-step 22 may include the following sub-steps:
a first step of obtaining device identification information for identifying the fee collection platform 100 (e.g., a device ID of the fee collection platform 100, etc.) and generating verification request information;
a second step of generating the first identification information, the device identification information and the verification request information to the target blockchain system 300, where the target blockchain system 300 is configured to perform an authorization verification process on the fee collection platform 100 based on the device identification information (e.g., verify whether the fee collection platform 100 is registered in the target blockchain system 300 based on the device identification information, i.e., whether there is authorization to acquire two-dimensional code identification information), and perform an integrity and consistency verification process on the target two-dimensional code identification information corresponding to the first identification information on the target blockchain based on the verification request after the authorization verification process is passed (e.g., verify whether the target two-dimensional code identification information is tampered, for example, the target two-dimensional code identification information on all blocks is not the same or only a part of the blocks have target two-dimensional code identification information stored therein, may be deemed tampered with) and sends the target two-dimensional code identification information to the fee collection platform 100 after the integrity and compliance verification process has passed.
In summary, according to the fee collection method and the fee collection platform 100 based on the block chain provided by the present application, after the target payment device 200 generates the target two-dimensional code image, the corresponding target two-dimensional code identification information is generated and sent to the target block chain system 300 for storage, so that the fee collection platform 100 can obtain the target two-dimensional code identification information through the target block chain, and thus, the target two-dimensional code image is identified. Therefore, the security of the identification processing of the target two-dimensional code image can be improved, and the problem of low security in the existing fee collection technology is solved.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.