block chain payment method based on mixed reality and system thereof

文档序号:1578102 发布日期:2020-01-31 浏览:32次 中文

阅读说明:本技术 一种基于混合现实的区块链支付方法及其系统 (block chain payment method based on mixed reality and system thereof ) 是由 苏波 王友初 于 2019-10-12 设计创作,主要内容包括:本发明提供了一种基于混合现实的区块链支付方法及其系统。所述方法包括:在混合现实模式下终端获取结算购物清单和图像生成结算请求信息并根据当前网速分割再发至服务端;服务端建立链接形成交易区块链;通过区块链对所述同步结算清单进行验证;根据相邻商品状态图像和当前商品状态图像判断所述时效性商品是否为可购买商品以便于进行支付。本发明结合混合现实的购物方式利用区块链技术提高交易信息的安全性,并依据当前网速将传输文件分割,提高了传输效率和传输速度,避免了由于数据传输量过大导致对于带宽及系统资源的大量占用,造成数据传输时间长,支付效率低下的问题。(The invention provides block chain payment methods and systems based on mixed reality, wherein the method comprises the steps of acquiring a settlement shopping list and an image by a terminal in a mixed reality mode, generating settlement request information, dividing the settlement request information according to the current network speed, sending the settlement request information to a server, establishing a link at the server to form a transaction block chain, verifying the synchronous settlement list through the block chain, and judging whether the timeliness commodity is a purchasable commodity according to an adjacent commodity state image and a current commodity state image so as to facilitate payment.)

block chain payment method based on mixed reality, applied between a terminal and a server of mixed reality, comprising:

in a mixed reality mode, the terminal acquires a settlement shopping list and a current commodity state image of each commodity corresponding to the settlement shopping list;

the terminal generates settlement request information according to the settlement shopping list and the corresponding current commodity state image;

the terminal confirms the size of a file block divided by the file according to the current network speed of the server and the terminal;

the terminal divides the settlement request information according to the size of the file block to obtain a plurality of independent file block units, and a sequence label corresponding to each file block unit is constructed;

the terminal sends the file block units to the server according to the sequence label sequence so as to be stored in a current transaction block conveniently;

the server side obtains the information of the previous times of transactions in the adjacent transaction blocks, stores the information of the previous times of transactions in the current transaction block, and establishes a link between the current transaction block and the adjacent transaction blocks according to the information of the previous times of transactions to form a transaction block chain;

the server side merges the received file block units according to the sequence tags to obtain synchronous settlement information;

the server side verifies the synchronous settlement list through the transaction block chain;

if the verification is passed, the server side judges whether the synchronous settlement list in the settlement request information contains time-efficient commodities or not;

if the synchronous settlement list contains the timeliness commodities, the server side is based on the trading block chain and calls an adjacent commodity state image corresponding to the timeliness commodities in the trading area block containing the same batch of adjacent latest times;

the server side judges whether the timeliness commodity is a purchasable commodity according to the adjacent commodity state image and the current commodity state image;

and if the time-efficient commodity is a purchasable commodity, the server sends a payment instruction to the terminal so that the terminal can pay based on the synchronous settlement list according to the payment instruction.

2. The mixed reality-based blockchain payment method of claim 1, wherein the step of the terminal confirming the file block size of the file partition according to the current network speed of the server and the terminal comprises:

the terminal sends 10 pretest files with the volume of 1% -10% of the volume of the settlement request information to the server side according to the volume of the settlement request information, and records the time consumed by file transmission;

and the terminal sorts the file transmission time consumption of all the pretest files, and selects the capacity size corresponding to the percentage with the least time consumption as the file block size of the file segmentation.

3. The method for mixed reality-based blockchain payment according to claim 1, wherein the step of acquiring, by the terminal, the settlement shopping list and the current commodity state image of each commodity corresponding to the settlement shopping list in the mixed reality mode includes:

the terminal acquires shopping identification information corresponding to a target commodity through image identification, and displays the shopping identification information in an information display area of the target commodity;

the terminal acquires the purchase information of the target commodity added into the shopping cart when the user purchases according to the shopping identification information;

and the terminal receives a settlement instruction of a user and generates a settlement shopping list according to the purchase information and the shopping identification information based on the settlement instruction.

4. The mixed reality-based blockchain payment method according to claim 3, wherein the step of acquiring the shopping identification information corresponding to the target commodity through image recognition by the terminal and displaying the shopping identification information in the information display area of the target commodity comprises the steps of:

the terminal collects an identification image containing a target commodity and a current commodity state image corresponding to the target commodity in a shopping area;

the terminal obtains the boundary line of each commodity contained in the identification image through an edge detection algorithm;

the terminal obtains a minimum screenshot containing the commodity according to the boundary line;

the terminal acquires the feature points of the minimum screenshot and matches the feature points with feature data in a preset commodity information database;

and if the characteristic data corresponding to the characteristic point exists in the preset commodity information database, the terminal displays the shopping identification information corresponding to the characteristic data in the preset commodity information database in the adjacent display area of the target commodity.

5. The mixed reality based blockchain payment method of claim 1,

after the terminal acquires the settlement shopping list and the current commodity state image of each commodity corresponding to the settlement shopping list in the mixed reality mode, the method further comprises the following steps:

the terminal carries out hash verification on the obtained settlement shopping list to obtain th hash value;

the step that the server side verifies the synchronous settlement list through the transaction block chain comprises the following steps:

in the transaction block chain, the terminal performs hash check on the settlement shopping list in the current transaction block to obtain a second hash value;

determining whether the th hash value and the second hash value are coincidences;

if the th hash value matches the second hash value , then it is determined that manifest verification passed.

6. The mixed reality-based blockchain payment method of claim 5,

the "determining that the manifest verification passes if the th hash value matches the second hash value" further comprises:

the terminal confirms the stock data of the goods before the current shopping according to the previous transaction information of the current transaction block in the transaction block chain, acquires the stock data of the goods after the current shopping, and compares the stock data of the goods before the current shopping with the stock data of the goods after the current shopping;

judging whether inventory change between the goods inventory data before the current shopping and the goods inventory data after the current shopping is matched with the settlement shopping list in the current transaction block;

if yes, judging that the inventory verification is passed.

7. The mixed reality-based blockchain payment method of claim 6, wherein after determining whether the inventory change between the pre-shopping item inventory data and the post-shopping item inventory data matches the settled shopping list in the current transaction block, further comprising:

if not, judging that the inventory verification is not passed, and returning to the step that the terminal performs hash verification on the obtained settlement shopping list to obtain th hash value;

the determining whether the th hash value and the second hash value result further comprises:

if the th hash value and the second hash value do not result in , then the verification of the list is determined not to be passed, and the "hash check of the obtained settlement shopping list by the terminal" is returned to obtain th hash value ".

8. The mixed reality-based blockchain payment method of claim 1, wherein the step of judging whether the time-sensitive commodity is a purchasable commodity or not by the server according to the adjacent commodity state image and the current commodity state image comprises the following steps:

the server calculates the similarity between the adjacent commodity state image and the current commodity state image to obtain an th similarity value;

if the th similarity value is not smaller than the th preset value, the server side calls a batch initial state image of the time-efficient commodity of the batch;

the server calculates the similarity between the batch initial state image and the current commodity state image; calculating the similarity between the current commodity state image and the current commodity state image to obtain a second similarity value;

if the second similarity value is not smaller than a second preset value or the second similarity is smaller than the second preset value, the server side judges that the timeliness commodity is a purchasable commodity and pays based on the settlement shopping list;

if the similarity value is smaller than the preset value, the server side judges the timeliness commodity as a problem commodity and generates warning information based on the problem commodity.

The mixed reality-based blockchain payment system is characterized by comprising a terminal and a server, wherein the terminal and the server both comprise memories and processors, the memories are used for storing mixed reality-based blockchain payment programs, and the processors are used for operating the mixed reality-based blockchain payment programs so as to enable the mixed reality-based blockchain payment system to execute the mixed reality-based blockchain payment method according to any of claims 1-8.

10, computer-readable storage media, wherein the computer-readable storage media has stored thereon a mixed reality based blockchain payment program that when executed by a processor implements the mixed reality based blockchain payment method of any of claims 1-8.

Technical Field

The invention relates to the technical field of mixed reality, in particular to block chain payment methods and systems based on mixed reality.

Background

Mixed Reality (MR) is a further development of virtual reality technology that enhances the realism of the user experience by bringing up interactive feedback information loops between the virtual world, the real world and the user by introducing real scene information into the virtual environment.

When shopping is carried out in a shopping place based on the mixed reality technology, the transaction data of a user needs to be transmitted to a server side, and then payment is completed, so that the safety of the transaction process is reduced; moreover, because the mixed reality technology involves interaction between a terminal and a server of a large amount of image data, the problems of long data transmission time and low payment efficiency are easily caused by large occupation of bandwidth and system resources due to overlarge data transmission amount.

Disclosure of Invention

In view of the above, the invention provides mixed reality-based block chain payment methods, which are applied between a mixed reality terminal and a service terminal, and comprise the steps of acquiring a settlement shopping list and a current commodity state image of each commodity corresponding to the settlement shopping list in a mixed reality mode, generating settlement request information by the terminal according to the settlement shopping list and the corresponding current commodity state image, confirming the size of a file block divided by the terminal according to the current network speed of the service terminal and the terminal, dividing the settlement request information according to the size of the file block by the terminal to obtain a plurality of independent file block units, constructing a sequence tag corresponding to each file block unit, sending the file block units to the service terminal according to the sequence tag sequence to facilitate storing into a current transaction block, acquiring previous transaction information in an adjacent transaction block by the service terminal, storing the previous transaction information into the current transaction block, establishing a link between the current transaction block and the adjacent transaction block according to previous transaction information to form a transaction chain, judging whether the payment service terminal can obtain the current commodity state image and the settlement request information if the current commodity state image is the settlement request information, and the service terminal can be synchronized with the service terminal, and the service terminal, judging whether the settlement request information is synchronized according to the current transaction terminal, if the settlement information, the terminal comprises the settlement information, the current transaction list, and the commodity state image, and the service terminal can be synchronized payment service terminal, and the settlement information if the transaction terminal can be synchronized.

Preferably, the step of the terminal determining the file block size of the file partition according to the current network speed of the server and the terminal includes: the terminal sends 10 pretest files with the volume of 1% -10% of the volume of the settlement request information to the server side according to the volume of the settlement request information, and records the time consumed by file transmission; and the terminal sorts the file transmission time consumption of all the pretest files, and selects the capacity size corresponding to the percentage with the least time consumption as the file block size of the file segmentation.

Preferably, the "in the mixed reality mode, the acquiring, by the terminal, the settlement shopping list and the current product state image of each product corresponding to the settlement shopping list" includes: the terminal acquires shopping identification information corresponding to a target commodity through image identification, and displays the shopping identification information in an information display area of the target commodity; the terminal acquires the purchase information of the target commodity added into the shopping cart when the user purchases according to the shopping identification information; and the terminal receives a settlement instruction of a user and generates a settlement shopping list according to the purchase information and the shopping identification information based on the settlement instruction.

Preferably, the "the terminal acquires the shopping identification information corresponding to the target product through image recognition, and displays the shopping identification information in the information display area of the target product" includes: the terminal collects an identification image containing a target commodity and a current commodity state image corresponding to the target commodity in a shopping area; the terminal obtains the boundary line of each commodity contained in the identification image through an edge detection algorithm; obtaining a minimum screenshot containing the commodity according to the boundary line; acquiring the feature points of the minimum screenshot, and matching the feature points with feature data in a preset commodity information database; and if the preset commodity information database has feature data corresponding to the feature point, displaying the shopping identification information corresponding to the feature data in the preset commodity information database in the adjacent display area of the target commodity.

Preferably, after the terminal acquires the settlement shopping list and the current commodity state image of each commodity corresponding to the settlement shopping list in the mixed reality mode, the method further comprises the steps of performing hash check on the acquired settlement shopping list by the terminal to obtain th hash values, and verifying the synchronous settlement list by the server through the transaction block chain, wherein the steps of performing hash check on the settlement shopping list in the current transaction block by the terminal in the transaction block chain to obtain second hash values, judging whether the th hash value and the second hash value are equal to , and judging that the list verification is passed if the th hash value and the second hash value are equal to .

Preferably, after the "determining that the inventory verification is passed if the th hash value and the second hash value match" further includes the steps of the terminal confirming the stock data of the goods before the current purchase according to the transaction information of the current transaction block in the transaction block chain, acquiring the stock data of the goods after the current purchase, comparing the stock data of the goods before the current purchase with the stock data of the goods after the current purchase, determining whether the stock change between the stock data of the goods before the current purchase and the stock data of the goods after the current purchase matches with the settlement shopping inventory in the current transaction block, and if so, determining that the inventory verification is passed.

Preferably, after the step of judging whether the inventory change between the goods inventory data before the current shopping and the goods inventory data after the current shopping is matched with the settlement shopping list in the current transaction block, the step of judging whether the inventory verification is not passed if the inventory change is not matched with the settlement shopping list in the current transaction block further comprises the step of returning to the step of performing hash check on the settlement shopping list obtained by the terminal to obtain th hash value, and the step of judging whether the th hash value and the second hash value are consistent further comprises the step of judging that the list verification is not passed if the th hash value and the second hash value are not consistent, and returning to the step of performing hash check on the settlement shopping list obtained by the terminal to obtain th hash value.

Preferably, the step of the server determining whether the timeliness commodity is a purchasable commodity according to the adjacent commodity state image and the current commodity state image includes the step of the server calculating similarity between the adjacent commodity state image and the current commodity state image to obtain th similarity value, the step of the server calling a batch initial state image of the timeliness commodity of the batch if the th similarity value is not smaller than th preset value, the step of the server calculating similarity between the batch initial state image and the current commodity state image, the step of the server calculating similarity between the current commodity state image and the current commodity state image to obtain a second similarity value, the step of the server determining that the timeliness commodity is a purchasable commodity and paying based on the settlement shopping list if the second similarity value is not smaller than a second preset value or the second similarity is smaller than the second preset value, and the step of the server determining that the timeliness commodity is a problem commodity and generating warning information based on the problem commodity if the similarity value is smaller than the th preset value.

In addition, to solve the above problem, the present invention further provides mixed reality-based blockchain payment systems, including a memory and a processor, where the memory is used to store a mixed reality-based blockchain payment program, and the processor runs the mixed reality-based blockchain payment program to make the mixed reality-based blockchain payment system execute the mixed reality-based blockchain payment method as described above.

In addition, to solve the above problem, the present invention further provides computer-readable storage media, where the computer-readable storage media stores thereon a mixed reality-based blockchain payment program, and the mixed reality-based blockchain payment program, when executed by a processor, implements the mixed reality-based blockchain payment method as described above.

The invention provides block chain payment methods and systems based on mixed reality, wherein the method is based on shopping in a mixed reality mode, after a terminal obtains a shopping list, settlement request information is stored into a current transaction block, the previous times of transaction information is stored in the block, so that the connection with the previous block is established, a transaction block chain is formed, the settlement shopping list is verified through the transaction block chain, and payment according to the settlement request information is carried out after the verification is passed.

Drawings

Fig. 1 is a schematic structural diagram of a hardware operating environment related to an embodiment of a mixed reality-based block chain payment method according to the present invention;

FIG. 2 is a flowchart illustrating a mixed reality-based blockchain payment method according to an embodiment of the present invention;

fig. 3 is a flowchart illustrating a detailed process of step S300 in the mixed reality-based blockchain payment method according to the second embodiment of the present invention;

fig. 4 is a flowchart illustrating a detailed process of step S100 in the mixed reality-based blockchain payment method according to the third embodiment of the present invention;

fig. 5 is a schematic flowchart illustrating a step S110 of a mixed reality-based block chain payment method according to a third embodiment of the present invention;

FIG. 6 is a flowchart illustrating a block chain payment method based on mixed reality according to a fourth embodiment of the present invention;

fig. 7 is a flowchart illustrating a detailed process of step S1100 in a fifth embodiment of the mixed reality-based blockchain payment method according to the present invention;

fig. 8 is a functional block diagram of a mixed reality-based blockchain payment apparatus according to the present invention.

The objects, features, and advantages of the present invention are further described in with reference to the accompanying drawings.

Detailed Description

In the present invention, the terms "mounted," "connected," or "fixed" are to be construed as unless otherwise specifically stated or limited, e.g., either fixedly connected, removably connected, or physically disposed , either mechanically connected or electrically connected, either directly connected or indirectly connected through an intermediate medium, either internally connected or in operative relationship with two elements, or in operative relationship with one another.

As shown in fig. 1, fig. 1 is a schematic structural diagram of a hardware operating environment of a terminal according to an embodiment of the present invention.

The block chain payment system based on mixed reality in the embodiment of the invention can be a PC, and can also be a mobile terminal device such as a smart phone, a tablet personal computer or a portable computer. As shown in fig. 1, the mixed reality-based blockchain payment system may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may comprise a display screen, an input unit such as a keyboard, a remote control, and the optional user interface 1003 may also comprise a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high speed RAM memory or a stable memory such as a disk memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.

Those skilled in the art will appreciate that the mixed reality based blockchain payment system illustrated in fig. 1 is not to be construed as limiting thereof and may include more or fewer components than illustrated, or some components in combination, or a different arrangement of components as illustrated in fig. 1 an operating system, a data interface control program, a network connectivity program, and a mixed reality based blockchain payment program may be included in the memory 1005 as computer readable storage media.

The invention provides blockchain payment methods and systems based on mixed reality, wherein the methods are combined with mixed reality shopping modes and utilize blockchain technology to improve the security of transaction information, thereby realizing that the security is increased and the transaction privacy and credibility are improved in the network information interaction process.

24页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:校园学生闲置物品买卖双向系统和使用方法

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!