Anti-counterfeiting tracing method and system based on block chain
1. The anti-counterfeiting tracing method based on the blockchain is characterized by comprising the following steps of:
s101: acquiring face identification information of a current user, and comparing the face identification information with preset target characteristic information of a legally authenticated user, wherein the target characteristic information of the legally authenticated user is generated on the basis of identity information of the user extracted from a preset block chain;
s103: if the face identification information is consistent with the target characteristic information of a preset legal authentication user, triggering a temporary authentication user mode, wherein the temporary authentication user is a transportation equipment use mode for limiting the stop floor of transportation equipment and the use time of the transportation equipment; the transportation equipment stopping floor and the transportation equipment use limiting time are created based on the transportation equipment use demand information of the current user extracted from a preset block chain;
s105: obtaining current floor information of the current transportation equipment when the use time of the transportation limiting equipment is reached, comparing the current floor information with the stop floor of the transportation limiting equipment, and if the difference between the stop floor of the transportation limiting equipment and the current floor information is within a preset threshold interval, sending the current user to the stop floor of the transportation limiting equipment; and if the difference between the information of the transport equipment stop floor and the information of the current floor is not in a preset threshold interval, sending the current user to a starting floor and re-executing the steps S101-S105.
2. The anti-counterfeiting tracing method based on the blockchain according to claim 1, wherein the method comprises the following steps before the face recognition information of the current user is obtained:
identity information of uplink users and transportation equipment use requirement information.
3. The anti-counterfeiting tracing method based on the blockchain according to claim 1, wherein after the face recognition information of the current user is obtained, the method further comprises the following steps:
and inquiring whether a transportation equipment use record meeting a preset condition exists in a preset time period on a preset block chain based on the face identification information, and if so, triggering a standard authentication user mode, wherein the standard authentication user mode is a user use mode without limiting the stop floor and the use time of the transportation equipment.
4. The blockchain-based anti-counterfeiting tracing method according to claim 3, wherein the preset condition is that the number of times of using the transportation device exceeds a first preset threshold value within the preset time period and the number of people using the standard authenticated user mode exceeds a second preset threshold value each time the transportation device is used.
5. The blockchain-based anti-counterfeiting tracing method according to claim 1, wherein the creation of the transportation equipment stop floor and the transportation equipment use time based on the transportation equipment use requirement information of the current user extracted from a preset blockchain comprises the following steps:
acquiring the condition information of the current personnel taking the transportation equipment, and confirming that the transportation equipment consumes time based on the condition information of the current personnel taking the transportation equipment;
and creating the use time of the transportation equipment according to the consumption time of the transportation equipment and the extracted use requirement information of the transportation equipment of the current user.
6. The anti-counterfeiting tracing system based on the blockchain is characterized by comprising the following components:
the system comprises an acquisition and comparison module, a comparison module and a processing module, wherein the acquisition and comparison module is used for acquiring the face identification information of a current user and comparing the face identification information with preset target characteristic information of a legally authenticated user, and the target characteristic information of the legally authenticated user is generated on the basis of identity information of the user extracted from a preset block chain;
the temporary triggering module is used for triggering a temporary authentication user mode if the face recognition information is consistent with the target feature information of a preset legal authentication user, wherein the temporary authentication user is a transportation equipment use mode for limiting the stop floor of transportation equipment and the use time of the transportation equipment; the transportation equipment stopping floor and the transportation equipment use limiting time are created based on the transportation equipment use demand information of the current user extracted from a preset block chain;
the reset module is used for acquiring current floor information of the current transportation equipment when the service time of the transportation equipment is up, comparing the current floor information with the stop floor of the transportation equipment, and sending the current user to the stop floor of the transportation equipment if the difference between the stop floor of the transportation equipment and the current floor information is within a preset threshold interval; and if the difference between the information of the transport equipment stopping floor and the information of the current floor is not in a preset threshold interval, the current user is sent to the initial floor, and the acquiring and comparing module, the triggering temporary module and the resetting module are executed again.
7. The blockchain-based anti-counterfeiting traceability system according to claim 6, wherein the blockchain-based anti-counterfeiting traceability system comprises:
and the uplink module is used for uplink user identity information and transportation equipment use requirement information before the face identification information of the current user is obtained.
8. The blockchain-based anti-counterfeiting traceability system according to claim 6, wherein the blockchain-based anti-counterfeiting traceability system comprises:
and the triggering standard module is used for inquiring whether a transportation equipment use record meeting a preset condition exists in a preset block chain based on the face identification information after the face identification information of the current user is obtained, and if so, triggering a standard authentication user mode, wherein the standard authentication user mode is a user use mode without limiting the stop floor and the use time of the transportation equipment.
9. The system according to claim 8, wherein the predetermined condition is that the number of uses of the transportation device exceeds a first predetermined threshold value during the predetermined time period and the number of people using the standard authenticated user mode exceeds a second predetermined threshold value during each use of the transportation device.
10. The blockchain-based anti-counterfeiting traceability system according to claim 6, wherein the trigger temporary module comprises:
the system comprises an obtaining condition unit, a judging unit and a judging unit, wherein the obtaining condition unit is used for obtaining the condition information of the current personnel taking the transportation equipment and confirming that the transportation equipment consumes time based on the condition information of the current personnel taking the transportation equipment;
and the creating unit is used for creating and limiting the using time of the transportation equipment according to the consumption time of the transportation equipment and the extracted using requirement information of the transportation equipment of the current user.
Background
Along with the development of national economy, city modernization construction is continuously promoted, high-rise or super high-rise buildings are increasingly popularized in various big cities, and transportation equipment is used as a transportation tool, so that great convenience is brought to work and life of people, and the transportation equipment becomes an essential life tool in daily life increasingly.
In reality, many lawbreakers pretend that owners use transportation equipment in buildings, such as elevators, to carry out illegal activities such as theft, and although the existing monitoring systems shoot related criminal activities, the pretended criminals cannot be prevented from using the transportation equipment in the buildings, so that the equipment which is originally convenient for users becomes a natural criminal tool for the lawbreakers. Part of the solutions are to adopt a card swiping control mode, but the mode has potential safety hazards caused by card loss, and in addition, the card swiping control also has a lot of inconvenience for some temporary legal personnel to normally use the transportation equipment.
Disclosure of Invention
In order to find a more effective implementation scheme of anti-counterfeiting traceability of the identity of a transport equipment user, the invention provides an anti-counterfeiting traceability method and system based on a block chain.
The first scheme is as follows:
the anti-counterfeiting tracing method based on the blockchain comprises the following steps:
s101: acquiring face identification information of a current user, and comparing the face identification information with preset target characteristic information of a legally authenticated user, wherein the target characteristic information of the legally authenticated user is generated on the basis of identity information of the user extracted from a preset block chain;
s103: if the face identification information is consistent with the target characteristic information of a preset legal authentication user, triggering a temporary authentication user mode, wherein the temporary authentication user is a transportation equipment use mode for limiting the stop floor of transportation equipment and the use time of the transportation equipment; the transportation equipment stopping floor and the transportation equipment use limiting time are created based on the transportation equipment use demand information of the current user extracted from a preset block chain;
s105: obtaining current floor information of the current transportation equipment when the use time of the transportation limiting equipment is reached, comparing the current floor information with the stop floor of the transportation limiting equipment, and if the difference between the stop floor of the transportation limiting equipment and the current floor information is within a preset threshold interval, sending the current user to the stop floor of the transportation limiting equipment; and if the difference between the information of the transport equipment stop floor and the information of the current floor is not in a preset threshold interval, sending the current user to a starting floor and re-executing the steps S101-S105.
Preferably, before the face recognition information of the current user is acquired, the method includes the following steps:
identity information of uplink users and transportation equipment use requirement information.
Preferably, after the face recognition information of the current user is acquired, the method further includes the following steps:
and inquiring whether a transportation equipment use record meeting a preset condition exists in a preset time period on a preset block chain based on the face identification information, and if so, triggering a standard authentication user mode, wherein the standard authentication user mode is a user use mode without limiting the stop floor and the use time of the transportation equipment.
Preferably, the preset condition is that the number of times of use of the transportation device exceeds a first preset threshold value in the preset time period and the number of people who take the standard authentication user mode exceeds a second preset threshold value each time the transportation device is used.
Preferably, the step of creating the transportation device use limit stop floor and the transportation device use limit time based on the transportation device use demand information of the current user extracted from a preset blockchain comprises the following steps:
acquiring the condition information of the current personnel taking the transportation equipment, and confirming that the transportation equipment consumes time based on the condition information of the current personnel taking the transportation equipment;
and creating the use time of the transportation equipment according to the consumption time of the transportation equipment and the extracted use requirement information of the transportation equipment of the current user.
Scheme II:
the anti-counterfeiting tracing system based on the blockchain comprises the following components:
the system comprises an acquisition and comparison module, a comparison module and a processing module, wherein the acquisition and comparison module is used for acquiring the face identification information of a current user and comparing the face identification information with preset target characteristic information of a legally authenticated user, and the target characteristic information of the legally authenticated user is generated on the basis of identity information of the user extracted from a preset block chain;
the temporary triggering module is used for triggering a temporary authentication user mode if the face recognition information is consistent with the target feature information of a preset legal authentication user, wherein the temporary authentication user is a transportation equipment use mode for limiting the stop floor of transportation equipment and the use time of the transportation equipment; the transportation equipment stopping floor and the transportation equipment use limiting time are created based on the transportation equipment use demand information of the current user extracted from a preset block chain;
the reset module is used for acquiring current floor information of the current transportation equipment when the service time of the transportation equipment is up, comparing the current floor information with the stop floor of the transportation equipment, and sending the current user to the stop floor of the transportation equipment if the difference between the stop floor of the transportation equipment and the current floor information is within a preset threshold interval; and if the difference between the information of the transport equipment stopping floor and the information of the current floor is not in a preset threshold interval, the current user is sent to the initial floor, and the acquiring and comparing module, the triggering temporary module and the resetting module are executed again.
Preferably, the anti-counterfeiting tracing system based on the blockchain comprises:
and the uplink module is used for uplink user identity information and transportation equipment use requirement information before the face identification information of the current user is obtained.
Preferably, the anti-counterfeiting tracing system based on the blockchain comprises:
and the triggering standard module is used for inquiring whether a transportation equipment use record meeting a preset condition exists in a preset block chain based on the face identification information after the face identification information of the current user is obtained, and if so, triggering a standard authentication user mode, wherein the standard authentication user mode is a user use mode without limiting the stop floor and the use time of the transportation equipment.
Preferably, the preset condition is that the number of times of use of the transportation device exceeds a first preset threshold value in the preset time period and the number of people who take the standard authentication user mode exceeds a second preset threshold value each time the transportation device is used.
Preferably, the triggering temporary module includes:
the system comprises an obtaining condition unit, a judging unit and a judging unit, wherein the obtaining condition unit is used for obtaining the condition information of the current personnel taking the transportation equipment and confirming that the transportation equipment consumes time based on the condition information of the current personnel taking the transportation equipment;
and the creating unit is used for creating and limiting the using time of the transportation equipment according to the consumption time of the transportation equipment and the extracted using requirement information of the transportation equipment of the current user.
Compared with the prior art, the anti-counterfeiting tracing method and system based on the block chain have the following beneficial effects that:
according to the anti-counterfeiting tracing method and system based on the block chain, the identity information of the user and the use requirement information of the transportation equipment are linked, so that the situation that lawbreakers forge legal users is avoided from the source, the safety of production and life of people is guaranteed, and convenience is brought to the life of people. Meanwhile, the embodiment of the invention also improves the user experience to a certain extent by dynamically adjusting the temporary authentication user mode and the standard authentication user mode.
The scheme provided by the invention has the advantages that the change of the existing system is small, the compatibility of the system is not influenced, and the realization is simple and efficient.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flow chart of an anti-counterfeiting tracing method based on a block chain according to an embodiment of the present invention;
fig. 2 is a schematic block structure diagram of an anti-counterfeiting traceability system based on a block chain according to another embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention.
In some of the flows described in the present specification and claims and in the above figures, a number of operations are included that occur in a particular order, but it should be clearly understood that these operations may be performed out of order or in parallel as they occur herein, with the order of the operations being indicated as 101, 103, etc. merely to distinguish between the various operations, and the order of the operations by themselves does not represent any order of performance. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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 invention.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating an anti-counterfeiting tracing method based on a blockchain according to an embodiment of the present invention, and as shown in fig. 1, the anti-counterfeiting tracing method based on the blockchain according to the embodiment of the present invention is applied to the anti-counterfeiting tracing field of the identity of a user of a transportation device, and specifically includes the following steps:
s101: the method comprises the steps of obtaining face identification information of a current user, and comparing the face identification information with preset target characteristic information of a legal authentication user, wherein the target characteristic information of the legal authentication user is generated on the basis of identity information of the user extracted from a preset block chain.
In some embodiments, before obtaining the face recognition information of the current user, the method includes the following steps: identity information of uplink users and transportation equipment use requirement information.
Illustratively, the transportation device is an elevator, the user a reserves a hotel room on the hotel reservation application, submits the personal identification information of the entrant during the reservation process, and the relevant floor information, such as 'foundational building 3302 room', can be known at the same time through the reservation order, so that the personal identification information of the entrant and the elevator use demand information for 33 floors can be obtained and loaded to the blocks on the preset block chain, and then the information can be called and processed.
In some embodiments, the identity information of the user and the information of the use requirement of the transportation device may also be information of other service personnel such as courier, takeaway personnel, and the like, which may be implemented by calling data in the relevant application program, which is not limited in this embodiment of the present invention.
Blockchains are a term of art in information technology. In essence, the system is a shared database, and the data or information stored in the shared database has the characteristics of 'unforgeability', 'whole-course trace', 'traceability', 'public transparency', 'collective maintenance', and the like. Based on the characteristics, the block chain technology lays a solid 'trust' foundation, creates a reliable 'cooperation' mechanism and has wide application prospect.
The embodiment of the invention can effectively avoid the situation that lawbreakers forge legal users by introducing the block chain technology, and can trace back users of the transportation equipment, thereby facilitating the follow-up tracing. In addition, in order to facilitate normal use of the authenticated user, the embodiment of the present invention, after obtaining the face recognition information of the current user, includes the following steps:
whether a transportation equipment use record meeting preset conditions exists in a preset time period is inquired on a preset block chain based on the face identification information, if yes, a standard authentication user mode is triggered, wherein the standard authentication user mode is a user use mode without limiting the stop floor and the use time of the transportation equipment.
Preferably, the preset condition is that the number of uses of the transportation device exceeds a first preset threshold value within a preset time period and the number of persons who use the standard authenticated user mode to take a ride at each use of the transportation device exceeds a second preset threshold value.
In some embodiments, the setting of the first preset threshold and the second preset threshold may be adaptively adjusted according to specific situations, such as a higher value for a larger flow amount, a lower value for a smaller flow amount, and the opposite for the preset time period, which is not limited by the embodiment of the present invention.
S103: if the face identification information is consistent with the target characteristic information of a preset legal authentication user, triggering a temporary authentication user mode, wherein the temporary authentication user is a transportation equipment use mode for limiting the stop floor of transportation equipment and the use time of the transportation equipment; the transportation equipment stop floor and the transportation equipment use limiting time are created based on the transportation equipment use requirement information of the current user extracted from a preset block chain.
In some embodiments, the steps of creating the transportation device stop floor and the transportation device use time based on the transportation device use requirement information of the current user extracted from the preset blockchain comprise:
acquiring the condition information of the current personnel taking the transportation equipment, and confirming that the transportation equipment consumes time based on the condition information of the current personnel taking the transportation equipment;
and creating the use time limit of the transportation equipment according to the consumption time of the transportation equipment and the extracted information of the use requirement of the transportation equipment of the current user.
Specifically, the situation information of the current personnel taking the transportation equipment can be acquired through the camera device, the personnel situations of the transportation equipment taking on each floor can be acquired, the stop situations of the transportation equipment can be judged according to the personnel situations, and finally, the time consumed by the transportation equipment is calculated. And finally, creating and limiting the using time of the transportation equipment according to the consumption time of the transportation equipment and the extracted using demand information of the transportation equipment of the current user.
In some embodiments, there may be a plurality of cases where the same transportation device needs to be taken in at the same time, that is, a plurality of temporary authentication user modes need to be triggered, and the restricted transportation device usage time at this time preferably is based on the longest restricted transportation device usage time among a plurality of users, that is, the corresponding restricted transportation device usage time may be directly refreshed. Of course, the use time of the transportation device may also be limited corresponding to the last user, which is not limited in the embodiment of the present invention.
In some embodiments, limiting the time of use of the transportation device may be further optimized based on historical data, which is not limited by the embodiments of the present invention.
S105: obtaining current floor information of the current transportation equipment when the use time of the transportation limiting equipment is reached, comparing the current floor information with the stop floor of the transportation limiting equipment, and if the difference between the stop floor of the transportation limiting equipment and the current floor information is within a preset threshold interval, sending the current user to the stop floor of the transportation limiting equipment; and if the difference between the information of the transport equipment stop floor and the information of the current floor is not in a preset threshold interval, sending the current user to a starting floor and re-executing the steps S101-S105.
For example, assuming that the stop floor of the transportation device triggered by the user is 75 floors, the usage time of the transportation device is 8 seconds, and the preset threshold interval is 3 to 5, when the usage time of the transportation device is 8 seconds, the user stays at 66 floors and does not reach 75 floors, and at this time, the current user needs to be delivered to the initial floor and steps S101 to S105 need to be executed again; when the user stays at layer 71 and does not reach layer 75, the current user can be delivered to layer 75. Thus, the safety can be further improved.
In order to further enhance the security and improve the efficiency, the block chain-based anti-counterfeiting tracing method according to the embodiment of the present invention may further include a step of periodic data clearing, so as to implement dynamic management of the legal identity of the user.
Compared with the prior art, the anti-counterfeiting tracing method based on the block chain has the following beneficial effects that:
according to the anti-counterfeiting tracing method based on the block chain, the identity information of the user and the use requirement information of the transportation equipment are linked, so that the situation that lawbreakers forge legal users is avoided from the source, the safety of production and life of people is guaranteed, and convenience is brought to the life of people. Meanwhile, the embodiment of the invention also improves the user experience to a certain extent by dynamically adjusting the temporary authentication user mode and the standard authentication user mode.
Referring to fig. 2, based on the same inventive concept as the block chain-based anti-counterfeiting tracing method according to another embodiment of the present invention, another embodiment of the present invention provides a block chain-based anti-counterfeiting tracing system, which includes:
an obtaining and comparing module 2002, configured to obtain face identification information of a current user, and compare the face identification information with preset target feature information of a legally authenticated user, where the target feature information of the legally authenticated user is generated based on identity information of a user extracted from a preset block chain;
a triggering temporary module 2004, configured to trigger a temporary authentication user mode if the face identification information is consistent with target feature information of a preset legally authenticated user, where the temporary authenticated user is a transportation device usage mode in which a transportation device stops at a floor and a transportation device usage time is limited; the method comprises the steps that the floor for limiting the transport equipment to stop and the using time of the transport equipment are established on the basis of the using demand information of the transport equipment of a current user, which is extracted from a preset block chain;
the resetting module 2006 is configured to obtain current floor information of the current transportation device when the use time of the transportation device is reached, compare the current floor information with a stop floor of the transportation device, and send the current user to the stop floor of the transportation device if the difference between the stop floor of the transportation device and the current floor information is within a preset threshold interval; if the difference between the information of the transport equipment stop floor and the information of the current floor is not in the preset threshold interval, the current user is sent to the initial floor, and the acquisition and comparison module, the triggering temporary module and the resetting module are executed again.
In some embodiments, a system for anti-counterfeiting tracing based on blockchains comprises:
and the uplink module is used for uplink user identity information and transportation equipment use requirement information before acquiring the face identification information of the current user.
In some embodiments, a system for anti-counterfeiting tracing based on blockchains comprises:
the triggering standard module is used for inquiring whether a transportation equipment use record meeting preset conditions exists in a preset block chain based on the face identification information after the face identification information of the current user is obtained, and if so, triggering a standard authentication user mode, wherein the standard authentication user mode is a user use mode without limiting the stop floor and the use time of the transportation equipment.
Preferably, the preset condition is that the number of times of use of the transportation device exceeds a first preset threshold value within the preset time period and the number of persons who take the standard-of-use authenticated user mode at each use of the transportation device exceeds a second preset threshold value.
Specifically, the trigger temporal module 2004 includes:
the acquiring condition unit is used for acquiring the condition information of the current personnel taking the transportation equipment and confirming that the transportation equipment consumes time based on the condition information of the current personnel taking the transportation equipment;
and the creating unit is used for creating and limiting the using time of the transportation equipment according to the consumption time of the transportation equipment and the extracted using demand information of the transportation equipment of the current user.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, modules and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Compared with the prior art, another embodiment of the invention provides an anti-counterfeiting traceability system based on a block chain, which has the following beneficial effects:
another embodiment of the present invention provides an anti-counterfeiting tracing system based on a block chain, which avoids the situation that lawbreakers counterfeit legitimate users from the source by setting the comparison module 2002, the triggering temporary module 2004 and the reset module 2006, thereby not only ensuring the safety of production and life of people, but also facilitating the life of people. Meanwhile, the embodiment of the invention also improves the user experience to a certain extent by dynamically adjusting the temporary authentication user mode and the standard authentication user mode.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, or the like.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:一种安全策略的下发方法及装置