CN112330338A - Product traceability system based on block chain - Google Patents

Product traceability system based on block chain Download PDF

Info

Publication number
CN112330338A
CN112330338A CN202011216443.6A CN202011216443A CN112330338A CN 112330338 A CN112330338 A CN 112330338A CN 202011216443 A CN202011216443 A CN 202011216443A CN 112330338 A CN112330338 A CN 112330338A
Authority
CN
China
Prior art keywords
product
preset
target
login
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011216443.6A
Other languages
Chinese (zh)
Other versions
CN112330338B (en
Inventor
王小伟
李伟
蔡津津
王胜先
闫蕾
汪浩
崔傅成
孔成兵
向艳丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xinhua Zhongjing Credit Management Co ltd
Original Assignee
Xinhua Zhongjing Credit Management Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xinhua Zhongjing Credit Management Co ltd filed Critical Xinhua Zhongjing Credit Management Co ltd
Priority to CN202011216443.6A priority Critical patent/CN112330338B/en
Publication of CN112330338A publication Critical patent/CN112330338A/en
Application granted granted Critical
Publication of CN112330338B publication Critical patent/CN112330338B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes

Abstract

The invention discloses a product traceability system based on a block chain, which comprises: the system comprises a user side and a central server, wherein the user side is used for generating an inquiry request instruction for acquiring the tracing information of a target product and sending the inquiry request instruction to the central server, and the central server is connected with the user side and is used for inquiring a target reading two-dimensional code corresponding to the target product from a preset database according to the inquiry request instruction and feeding the target reading two-dimensional code back to the user side. The user generates an inquiry request instruction for acquiring the tracing information of the target product by using the user side to send the inquiry request instruction to the central server, the central server inquires the target reading two-dimensional code corresponding to the target product and sends the target reading two-dimensional code to the user side, the user can obtain the tracing information of the target product in a network form, and the target reading two-dimensional code transmitted by the network cannot be damaged, so that the user can accurately acquire the tracing information of the target product at any time, and the experience of the user and the sales volume of the target product are improved.

Description

Product traceability system based on block chain
Technical Field
The invention relates to the technical field of product quality control, in particular to a block chain-based product traceability system.
Background
At present, with the requirements of consumers on the quality and safety of purchased products being higher and higher, and the health consciousness and quality safety consciousness of consumers being promoted, as the production process and the transportation process of products directly affect the quality and safety of products, especially for food, the quality safety problem of food is closely related to the health safety of consumers, the food quality safety problem increasingly becomes a focus of the attention of the whole society and the public, becomes an important civil problem, and arouses the high importance of the country, the strengthening of the food quality safety monitoring work becomes more and more important, and meanwhile, the tracing information of purchased products is more and more concerned by consumers.
The tracing method in the prior art generates the two-dimensional code according to the basic information of the product and prints the two-dimensional code on the package of the product, and a user can acquire the production and manufacturing information of the purchased product only by scanning the two-dimensional code after purchasing the product.
Disclosure of Invention
Aiming at the problems shown above, the invention provides a product traceability system based on a block chain to solve the problems that products mentioned in the background art rub against each other in the transportation and transportation process, so that a two-dimensional code printed on a package fades and is blurred, a user cannot scan the two-dimensional code to obtain traceability information of the product, the user has insufficient trust on the purchased product, and the experience of the user and the sales volume of the product are seriously affected.
A blockchain-based product traceability system, the system comprising: a user side and a central server;
the user side is used for generating a query request instruction for acquiring the tracing information of the target product and sending the query request instruction to the central server;
the central server is connected with the user side and used for inquiring the target reading two-dimensional code corresponding to the target product from a preset database according to the inquiry request instruction and feeding back the target reading two-dimensional code to the user side.
Preferably, the user terminal includes:
the first detection module is used for detecting the current login environment of the current user;
the determining module is used for determining whether the current login environment is a common login environment of the current user, if so, sending an instruction for acquiring a login account and a password, and otherwise, reminding the current user of abnormal login environment;
the first acquisition module is used for acquiring the login account and the current login password input by the current user for identity authentication;
the second acquisition module is used for acquiring a target image of the target product when the identity verification of the current user passes;
the analysis module is used for analyzing the target image to obtain analysis data;
and the generating module is used for generating a query request instruction of the target product traceability information according to the analysis data.
Preferably, the central server includes:
the receiving module is used for receiving preset product images and preset product information of preset products with preset quantity, and enabling each preset product image to correspond to each preset product information one to one;
the system comprises a creating module, a database creating module and a database creating module, wherein the creating module is used for creating a preset number of virtual folders, inputting preset product images and corresponding preset product information of the preset number of virtual folders into the preset number of virtual folders one by one and creating a preset database;
the storage module is used for storing the virtual folders with the preset number;
the query module is used for querying a target virtual folder corresponding to the target product in the preset database according to the query request instruction;
the construction module is used for constructing a temporary reading two-dimensional code for the target virtual folder after the target virtual folder is inquired, and confirming the temporary reading two-dimensional code as the target reading two-dimensional code.
Preferably, the preset product information includes: the method comprises the steps of presetting product characteristic information, presetting product origin information, presetting product production place information, presetting product parameter information and presetting product price information.
Preferably, the central server further includes:
the input module is used for inputting the production and packaging process flow of each preset product;
the setting module is used for setting the production and packaging process flow of each preset product into a universal playing format;
and the compression module is used for compressing the set production and packaging process flow of each preset product and storing the compressed production and packaging process flow of each preset product into the corresponding virtual folder.
Preferably, the receiving module includes:
the acquisition submodule is used for acquiring a preset product image and preset product information of each preset product;
the preprocessing submodule is used for optimizing and preprocessing the preset product image of each preset product;
the checking submodule is used for carrying out qualification detection on the preset product information of each preset product, if the preset product information is qualified, the first target preset product is determined to be a qualified product, and if the preset product information is unqualified, the second target preset product is determined to be an unqualified product;
and the classification submodule is used for classifying the target preset product information of the qualified first target preset product and the target preset product image in a one-to-one correspondence manner.
Preferably, the central server further comprises:
the second detection module is used for detecting whether the user side receives the target reading two-dimensional code;
the clearing module is used for clearing the temporary reading two-dimensional code when the user side is detected to receive the target reading two-dimensional code;
the network detection module is used for detecting whether the network state of the user side is abnormal or not when the user side is detected not to receive the target reading two-dimensional code;
the restoration module is used for restoring the network if the network state of the restoration module is abnormal;
and the sending module is used for sending the target reading two-dimensional code to the user side again if the network state of the sending module is normal.
Preferably, the user terminal further includes:
the scoring module is used for providing a score for each product for a user;
the classification module is used for sorting the grading results according to preset conditions;
and the display module is used for displaying the sorted grading result.
Preferably, the generating, by the user side, the query request instruction for obtaining the tracing information of the target product includes:
acquiring shot pictures of a preset product at multiple angles, optimizing the shot pictures, setting picture qualification judgment conditions for each shot picture after the shot pictures are processed, and creating a picture voting queue according to the picture qualification judgment conditions;
shooting product pictures of a target product at multiple angles;
sequencing the plurality of shot product pictures, and after sequencing is finished, sequentially confirming whether the plurality of product pictures meet respective corresponding judgment conditions by using the picture voting queues;
if the target product picture which does not meet the judgment condition exists, extracting the target product picture, and confirming the target shooting angle of the first target product picture;
re-acquiring a second target product picture of the target product taken from a target shooting angle, and continuing to judge until the judgment condition is met;
if all product conditions meet the judgment conditions, identifying whether the target product has the traceability information or not by utilizing a preset identification mechanism for the plurality of product pictures, if so, generating an inquiry request instruction for acquiring the traceability information of the target product, and otherwise, sending a prompt that the target product has no traceability information.
Preferably, the step of obtaining, by the first obtaining module, the login account and the current login password input by the current user for authentication includes:
acquiring the login account, determining whether the current user has a historical login record according to the login account, and if so, acquiring the historical login times and the historical password of each login;
determining the safety factor of the login account of the current user according to the historical login times and the historical password of each login:
Figure BDA0002760548600000051
wherein k is the safety factor of the login account of the current user, N is the historical login times, M is the number of the historical login passwords, and M is=N,SiExpressed as the environmental abnormal coefficient at the i-th login, and the value is [0.1,0.5 ]],GjExpressed as the number of times of entry of the jth historical entry password, θjThe login floating degree is expressed as the jth historical login password and takes the value of [0.1, 0.3%],QxThe table is the confidence factor of the xth historical login password, and the value is [0.1,1 ]]Mu is the credit coefficient of the login account of the current user and takes the value of [0.1, 1%];
Confirming whether the safety factor of the login account of the current user is larger than or equal to a first preset threshold value, confirming the safety of the login account, and otherwise, confirming that the login account is unsafe and sending a prompt that the login account is unsafe to the user side;
when the login account is confirmed to be safe, determining the similarity between the current login password and a preset login password:
Figure RE-GDA0002842494470000062
wherein a represents the current login password, B represents the preset login password, B represents the number of the composition numbers of the current login password, and LeA specific numerical value expressed as the e-th constituent number, H is the number of constituent numbers of the preset login password, RtA specific numerical value is expressed as the t-th component number, f is expressed as the f-th component number in the current login password, p is expressed as the p-th component number in the current login password, OfpThe time length from the f number to the p number of the current user is shown, T is the total time length for the current user to input the current login password, k1Expressed as the first preset threshold, sim (a, b) is expressed as the similarity of the current login password and the preset login password;
and confirming whether the similarity of the current login password and the preset login password is equal to a second preset threshold value or not, if so, confirming that the identity of the current user is safe and passes the verification, otherwise, confirming that the identity of the current user is not safe and cannot pass the verification.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a schematic structural diagram of a block chain-based product tracing system provided in the present invention;
fig. 2 is a schematic structural diagram of a user side of a block chain-based product tracing system according to the present invention;
fig. 3 is a schematic structural diagram of a central server of a block chain-based product tracing system according to the present invention;
fig. 4 is another structural schematic diagram of a central server of a block chain-based product tracing system according to the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
At present, with the requirements of consumers on the quality and safety of purchased products being higher and higher, and the health consciousness and quality safety consciousness of consumers being promoted, as the production process and the transportation process of products directly affect the quality and safety of products, especially for food, the quality safety problem of food is closely related to the health safety of consumers, the food quality safety problem increasingly becomes a focus of the attention of the whole society and the public, becomes an important civil problem, and arouses the high importance of the country, the strengthening of the food quality safety monitoring work becomes more and more important, and meanwhile, the tracing information of purchased products is more and more concerned by consumers. The tracing method in the prior art generates the two-dimensional code according to the basic information of the product and prints the two-dimensional code on the package of the product, and a user can acquire the production and manufacturing information of the purchased product only by scanning the two-dimensional code after purchasing the product. In order to solve the above problem, the present embodiment discloses a product tracing system based on a block chain.
A blockchain-based product tracing system, as shown in fig. 1, the system includes: a user side and a central server;
the user side is used for generating a query request instruction for acquiring the tracing information of the target product and sending the query request instruction to the central server;
the central server is connected with the user side and used for inquiring the target reading two-dimensional code corresponding to the target product from a preset database according to the inquiry request instruction and feeding back the target reading two-dimensional code to the user side;
in this embodiment, the user terminal may be a mobile terminal such as a mobile phone or a tablet of a user.
The working principle of the technical scheme is as follows: the user side generates an inquiry request instruction for acquiring the tracing information of the target product and sends the inquiry request instruction to the central server, the central server inquires a target reading two-dimensional code corresponding to the target product from a preset database according to the inquiry request instruction and feeds the target reading two-dimensional code back to the user side, and the user side can acquire the tracing information of the target product only by scanning the target reading two-dimensional code.
The beneficial effects of the above technical scheme are: the user generates an inquiry request instruction for acquiring the tracing information of the target product by using the user side in the hand to send the inquiry request instruction to the central server, the central server inquires the target reading two-dimensional code corresponding to the target product according to the inquiry request instruction to send the target reading two-dimensional code to the user side, the user can obtain the tracing information of the target product in a network form, and the target reading two-dimensional code transmitted by the network cannot be damaged, so that the user can accurately acquire the tracing information of the target product at any time, the problems that products can rub against each other in the transportation and transportation process in the prior art, the two-dimensional code printed on a package is faded, the two-dimensional code is blurred, the user cannot scan the two-dimensional code to obtain the tracing information of the product are solved, and the experience of the user and the sales volume of.
In one embodiment, as shown in fig. 2, the user side includes:
the first detection module is used for detecting the current login environment of the current user;
the determining module is used for determining whether the current login environment is a common login environment of the current user, if so, sending an instruction for acquiring a login account and a password, and otherwise, reminding the current user of abnormal login environment;
the first acquisition module is used for acquiring the login account and the current login password input by the current user for identity authentication;
the second acquisition module is used for acquiring a target image of the target product when the identity verification of the current user passes;
the analysis module is used for analyzing the target image to obtain analysis data;
and the generating module is used for generating a query request instruction of the target product traceability information according to the analysis data.
The beneficial effects of the above technical scheme are: whether the login environment of the user is abnormal or not is determined by detecting the current login environment of the user, the safety of data can be ensured, the situation that no-authority personnel call the tracing information of the target product privately can be avoided, and the confidentiality is improved.
In one embodiment, as shown in fig. 3, the central server includes:
the receiving module is used for receiving preset product images and preset product information of preset products with preset quantity, and enabling each preset product image to correspond to each preset product information one to one;
the system comprises a creating module, a database creating module and a database creating module, wherein the creating module is used for creating a preset number of virtual folders, inputting preset product images and corresponding preset product information of the preset number of virtual folders into the preset number of virtual folders one by one and creating a preset database;
the storage module is used for storing the virtual folders with the preset number;
the query module is used for querying a target virtual folder corresponding to the target product in the preset database according to the query request instruction;
the construction module is used for constructing a temporary reading two-dimensional code for the target virtual folder after the target virtual folder is inquired, and confirming the temporary reading two-dimensional code as the target reading two-dimensional code.
The beneficial effects of the above technical scheme are: the image and the product information of each preset product are stored in the virtual folder in a one-to-one correspondence mode, so that the tracing information can be quickly obtained according to the picture of the target product when the image and the product information are called, the work efficiency is improved, meanwhile, the query precision is improved, further, the temporary reading two-dimensional code is constructed and sent to the user side, the two-dimensional code is not fixed, the two-dimensional code generated by the target product is different when the user queries once, the security of the tracing information of the target product can be further guaranteed, the problem that the tracing information of the target product is queried by lawless persons, the follow-up economic loss is caused and the like is avoided, and the confidentiality is further improved.
In one embodiment, the preset product information includes: the method comprises the steps of presetting product characteristic information, presetting product origin information, presetting product production place information, presetting product parameter information and presetting product price information.
In one embodiment, the central server further includes:
the input module is used for inputting the production and packaging process flow of each preset product;
the setting module is used for setting the production and packaging process flow of each preset product into a universal playing format;
and the compression module is used for compressing the set production and packaging process flow of each preset product and storing the compressed production and packaging process flow of each preset product into the corresponding virtual folder.
The beneficial effects of the above technical scheme are: the processing and packaging processes of the preset products can be known by the user on the basis of knowing the information of the preset products by inputting the production and packaging process flow of each preset product, so that the experience of the user is further improved. The user can trust the preset product, the sales volume of the preset product is further guaranteed, meanwhile, the occupied memory and the working memory can be saved by compressing the production and packaging process flow of the preset product, the working pressure of the central server is reduced, and the working efficiency is improved.
In one embodiment, the receiving module includes:
the acquisition submodule is used for acquiring a preset product image and preset product information of each preset product;
the preprocessing submodule is used for optimizing and preprocessing the preset product image of each preset product;
the checking submodule is used for carrying out qualification detection on the preset product information of each preset product, if the preset product information is qualified, the first target preset product is determined to be a qualified product, and if the preset product information is unqualified, the second target preset product is determined to be an unqualified product;
and the classification submodule is used for classifying the target preset product information of the qualified first target preset product and the target preset product image in a one-to-one correspondence manner.
The beneficial effects of the above technical scheme are: the quality of the preset product can be ensured before the data of the central server is input by detecting the qualification of the preset product, and a good comparison sample is improved for the subsequent query traceability information.
In one embodiment, as shown in fig. 4, the central server further includes:
the second detection module is used for detecting whether the user side receives the target reading two-dimensional code;
the clearing module is used for clearing the temporary reading two-dimensional code when the user side is detected to receive the target reading two-dimensional code;
the network detection module is used for detecting whether the network state of the user side is abnormal or not when the user side is detected not to receive the target reading two-dimensional code;
the restoration module is used for restoring the network if the network state of the restoration module is abnormal;
and the sending module is used for sending the target reading two-dimensional code to the user side again if the network state of the sending module is normal.
The beneficial effects of the above technical scheme are: by detecting whether the user side receives the target reading two-dimensional code or not, the temporary reading two-dimensional code is cleared when the user side receives the target reading two-dimensional code, so that the two-dimensional code acquired by the user side is changed into an invalid two-dimensional code. After the user finishes browsing the traceability information of the target product, the follow-up person can be prevented from reading the two-dimensional code temporarily to continue browsing the traceability information of the target product. The data security of the tracing information of the target product is further ensured, and further, the communication state with the user terminal can be ensured all the time by repairing the network of the user, so that the query instruction sent by the user terminal can be acquired at any time and the two-dimensional code is sent and read to the user terminal, and the stability of the system is improved.
In one embodiment, the user terminal further includes:
the scoring module is used for providing a score for each product for a user;
the classification module is used for sorting the grading results according to preset conditions;
and the display module is used for displaying the sorted grading result.
The beneficial effects of the above technical scheme are: the scoring module is arranged, so that the user can browse the tracing information of the target product and simultaneously browse the scoring results of other users to evaluate the target product. The experience of the user is further improved.
In one embodiment, the generating, by the user side, a query request instruction for obtaining the tracing information of the target product includes:
acquiring shot pictures of a preset product at multiple angles, optimizing the shot pictures, setting picture qualification judgment conditions for each shot picture after the shot pictures are processed, and creating a picture voting queue according to the picture qualification judgment conditions;
shooting product pictures of a target product at multiple angles;
sequencing the plurality of shot product pictures, and after sequencing is finished, sequentially confirming whether the plurality of product pictures meet respective corresponding judgment conditions by using the picture voting queues;
if the target product picture which does not meet the judgment condition exists, extracting the target product picture, and confirming the target shooting angle of the first target product picture;
re-acquiring a second target product picture of the target product taken from a target shooting angle, and continuing to judge until the judgment condition is met;
if all product conditions meet the judgment conditions, identifying whether the target product has the traceability information or not by utilizing a preset identification mechanism for the plurality of product pictures, if so, generating an inquiry request instruction for acquiring the traceability information of the target product, and otherwise, sending a prompt that the target product has no traceability information.
The beneficial effects of the above technical scheme are: whether the acquired target product picture meets the judgment condition is determined by setting the judgment condition of the target product pictures at a plurality of angles, a specific target product can be determined from the acquired target product picture more easily, and then whether the target product has the traceability information can be identified by utilizing a preset identification mechanism, meanwhile, the beneficial condition is improved for subsequently inquiring the traceability information of the target product, and the working efficiency is further improved.
In one embodiment, the step of acquiring, by the first acquiring module, the login account and the current login password input by the current user for authentication includes:
acquiring the login account, determining whether the current user has a historical login record according to the login account, and if so, acquiring the historical login times and the historical password of each login;
determining the safety factor of the login account of the current user according to the historical login times and the historical password of each login:
Figure BDA0002760548600000121
wherein k is a safety factor of a login account of a current user, N is a historical login number, M is the number of historical login passwords, and M is N, SiExpressed as the environmental abnormal coefficient at the i-th login, and the value is [0.1,0.5 ]],GjExpressed as the number of times of entry of the jth historical entry password, θjThe login floating degree is expressed as the jth historical login password and takes the value of [0.1, 0.3%],QxThe table is the confidence factor of the xth historical login password, and the value is [0.1,1 ]]Mu is the credit coefficient of the login account of the current user and takes the value of [0.1, 1%];
Confirming whether the safety factor of the login account of the current user is larger than or equal to a first preset threshold value, confirming the safety of the login account, and otherwise, confirming that the login account is unsafe and sending a prompt that the login account is unsafe to the user side;
when the login account is confirmed to be safe, determining the similarity between the current login password and a preset login password:
Figure RE-GDA0002842494470000161
wherein a represents the current login password, B represents the preset login password, B represents the number of the composition numbers of the current login password, and LeA specific numerical value expressed as the e-th constituent number, H is the number of constituent numbers of the preset login password, RtA specific numerical value is expressed as the t-th component number, f is expressed as the f-th component number in the current login password, p is expressed as the p-th component number in the current login password, OfpThe time length from the f number to the p number of the current user is shown, T is the total time length for the current user to input the current login password, k1Expressed as the first preset threshold, sim (a, b) is expressed as the similarity of the current login password and the preset login password;
confirming whether the similarity of the current login password and a preset login password is equal to a second preset threshold value or not, if so, confirming that the identity of the current user is safe and passes the verification, otherwise, confirming that the identity of the current user is unsafe and cannot pass the verification;
in this embodiment, the first preset threshold may be 0.7, and the second preset threshold may be 1.
The beneficial effects of the above technical scheme are: whether the login account of the current user can safely inquire the product traceability information can be effectively judged by calculating the safety coefficient of the current login account input by the current user, the phenomenon that a central server is paralyzed and cannot work normally due to the fact that the account is unsafe and viruses exist is avoided, the stability and the safety of the system are improved, furthermore, the identity safety of the current user can be ensured by verifying the identity of the current user by calculating the similarity of the current login password and the preset login password, and the data safety of the traceability information of the product is further ensured.
It will be understood by those skilled in the art that the first and second terms of the present invention refer to different stages of application.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A blockchain-based product traceability system, comprising: a user side and a central server;
the user side is used for generating a query request instruction for acquiring the tracing information of the target product and sending the query request instruction to the central server;
the central server is connected with the user side and used for inquiring the target reading two-dimensional code corresponding to the target product from a preset database according to the inquiry request instruction and feeding the target reading two-dimensional code back to the user side.
2. The blockchain-based product tracing system according to claim 1, wherein the user side comprises:
the first detection module is used for detecting the current login environment of the current user;
the determining module is used for determining whether the current login environment is a common login environment of the current user, if so, sending an instruction for acquiring a login account and a password, and otherwise, reminding the current user that the login environment is abnormal;
the first acquisition module is used for acquiring the login account and the current login password input by the current user to carry out identity authentication;
the second acquisition module is used for acquiring a target image of the target product when the identity verification of the current user passes;
the analysis module is used for analyzing the target image to obtain analysis data;
and the generating module is used for generating a query request instruction of the target product traceability information according to the analysis data.
3. The blockchain-based product tracing system of claim 1, wherein the central server comprises:
the receiving module is used for receiving preset product images and preset product information of preset products with preset quantity, and enabling each preset product image to correspond to the preset product information one to one;
the system comprises a creating module, a database creating module and a database creating module, wherein the creating module is used for creating a preset number of virtual folders, inputting preset product images and corresponding preset product information of the preset number of virtual folders into the preset number of virtual folders one by one and creating a preset database;
the storage module is used for storing the virtual folders with the preset number;
the query module is used for querying a target virtual folder corresponding to the target product in the preset database according to the query request instruction;
the construction module is used for constructing a temporary reading two-dimensional code for the target virtual folder after the target virtual folder is inquired, and confirming the temporary reading two-dimensional code as the target reading two-dimensional code.
4. The blockchain-based product tracing system according to claim 3, wherein the preset product information includes: the method comprises the steps of presetting product characteristic information, presetting product origin information, presetting product production place information, presetting product parameter information and presetting product price information.
5. The blockchain-based product tracing system of claim 3, wherein said central server further comprises:
the input module is used for inputting the production and packaging process flow of each preset product;
the setting module is used for setting the production and packaging process flow of each preset product into a universal playing format;
and the compression module is used for compressing the set production and packaging process flow of each preset product and storing the compressed production and packaging process flow of each preset product into the corresponding virtual folder.
6. The blockchain-based product tracing system according to claim 3, wherein the receiving module includes:
the acquisition submodule is used for acquiring a preset product image and preset product information of each preset product;
the preprocessing submodule is used for optimizing and preprocessing the preset product image of each preset product;
the checking submodule is used for carrying out qualification detection on the preset product information of each preset product, if the preset product information is qualified, the first target preset product is determined to be a qualified product, and if the preset product information is unqualified, the second target preset product is determined to be an unqualified product;
and the classification submodule is used for classifying the target preset product information of the qualified first target preset product and the target preset product image in a one-to-one correspondence manner.
7. The blockchain-based product tracing system of claim 3, wherein said central server further comprises:
the second detection module is used for detecting whether the user side receives the target reading two-dimensional code;
the clearing module is used for clearing the temporary reading two-dimensional code when the user side is detected to receive the target reading two-dimensional code;
the network detection module is used for detecting whether the network state of the user side is abnormal or not when the user side is detected not to receive the target reading two-dimensional code;
the restoration module is used for restoring the network if the network state of the restoration module is abnormal;
and the sending module is used for sending the target reading two-dimensional code to the user side again if the network state of the sending module is normal.
8. The blockchain-based product tracing system according to claim 1, wherein the user side further comprises:
the scoring module is used for providing a score for each product for a user;
the classification module is used for sorting the grading results according to preset conditions;
and the display module is used for displaying the sorted grading result.
9. The system according to claim 1, wherein the generating of the query request instruction by the user side for obtaining the tracing information of the target product comprises:
acquiring shot pictures of a preset product at multiple angles, optimizing the shot pictures, setting picture qualification judgment conditions for each shot picture after the shot pictures are processed, and creating a picture voting queue according to the picture qualification judgment conditions;
shooting product pictures of a target product at multiple angles;
sequencing a plurality of shot product pictures, and after sequencing is finished, sequentially confirming whether the plurality of product pictures meet respective corresponding judgment conditions by using the picture voting queues;
if the target product picture which does not meet the judgment condition exists, extracting the target product picture, and confirming the target shooting angle of the first target product picture;
re-acquiring a second target product picture of the target product taken from a target shooting angle, and continuing judging until the judging condition is met;
if all product conditions meet the judgment conditions, identifying whether the target product has the traceability information or not by utilizing a preset identification mechanism for the plurality of product pictures, if so, generating an inquiry request instruction for acquiring the traceability information of the target product, and otherwise, sending a prompt that the target product has no traceability information.
10. The system of claim 2, wherein the step of obtaining the login account and the current login password input by the current user for authentication by the first obtaining module comprises:
acquiring the login account, determining whether the current user has a historical login record according to the login account, and if so, acquiring the historical login times and the historical password of each login;
determining the safety factor of the login account of the current user according to the historical login times and the historical password of each login:
Figure RE-FDA0002842494460000051
wherein k is a safety factor of a login account of a current user, N is a historical login number, M is the number of historical login passwords, and M is N, SiExpressed as the environmental abnormal coefficient at the i-th login, and the value is [0.1,0.5 ]],GjExpressed as the number of times of entry of the jth historical entry password, θjThe login floating degree is expressed as the jth historical login password and takes the value of [0.1, 0.3%],QxThe table is the confidence factor of the xth historical login password, and the value is [0.1,1 ]]Mu is the credit coefficient of the login account of the current user and takes the value of [0.1, 1%];
Confirming whether the safety factor of the login account of the current user is larger than or equal to a first preset threshold value, confirming the safety of the login account, otherwise, confirming that the login account is unsafe, and sending a prompt that the login account is unsafe to the user side;
when the login account is confirmed to be safe, determining the similarity between the current login password and a preset login password:
Figure RE-FDA0002842494460000061
wherein a represents the current login password, B represents the preset login password, B represents the number of the composition numbers of the current login password, and LeA specific numerical value expressed as the e-th constituent number, H is the number of constituent numbers of the preset login password, RtA specific numerical value is expressed as the t-th component number, f is expressed as the f-th component number in the current login password, p is expressed as the p-th component number in the current login password, OfpThe time length from the f number to the p number of the current user is shown, T is the total time length for the current user to input the current login password, k1Expressed as the first preset threshold, sim (a, b) is expressed as the similarity of the current login password and the preset login password;
and confirming whether the similarity of the current login password and the preset login password is equal to a second preset threshold value, if so, confirming that the identity of the current user is safe, and if not, confirming that the identity of the current user is unsafe and cannot pass the verification.
CN202011216443.6A 2020-11-04 2020-11-04 Product traceability system based on block chain Active CN112330338B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011216443.6A CN112330338B (en) 2020-11-04 2020-11-04 Product traceability system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011216443.6A CN112330338B (en) 2020-11-04 2020-11-04 Product traceability system based on block chain

Publications (2)

Publication Number Publication Date
CN112330338A true CN112330338A (en) 2021-02-05
CN112330338B CN112330338B (en) 2023-09-26

Family

ID=74324708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011216443.6A Active CN112330338B (en) 2020-11-04 2020-11-04 Product traceability system based on block chain

Country Status (1)

Country Link
CN (1) CN112330338B (en)

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609543A (en) * 2012-02-27 2012-07-25 华南农业大学 Multifunctional two-dimensional code product traceability system and traceability method
CN102810194A (en) * 2012-07-27 2012-12-05 常会友 Product quality tracing and anti-fake system on basis of obvious codes and secret codes
CN103001974A (en) * 2012-12-26 2013-03-27 百度在线网络技术(北京)有限公司 Method, system and device used for controlling login and based on two-dimensional code
CN103294783A (en) * 2013-05-16 2013-09-11 广州唯品会信息科技有限公司 Method and device for grouping product pictures
CN103886467A (en) * 2014-03-24 2014-06-25 易宏举 Method for distinguishing authenticity of products conveniently
CN104158912A (en) * 2014-09-04 2014-11-19 上海天臣控股有限公司 Commodity tracing and customer-manufacturer interaction system and method
WO2015125484A1 (en) * 2014-02-19 2015-08-27 株式会社サイレント技術企画 Two-dimensional code, two-dimensional code system, two-dimensional code capture terminal, and information processing method using two-dimensional code
CN107451820A (en) * 2016-04-29 2017-12-08 卢念秋 On line, multiple, dynamic anti-fake under line, anti-channel conflict, can traceability system
CN108320164A (en) * 2018-02-02 2018-07-24 南京正兴源科技有限公司 A kind of production traceability system
CN108428142A (en) * 2018-05-18 2018-08-21 广州质量云信息科技有限公司 Quick Response Code traceability management system
CN109118256A (en) * 2018-09-05 2019-01-01 河南知诸电子科技有限公司 A kind of commodity traceability system based on two dimensional code
CN110210878A (en) * 2019-06-10 2019-09-06 北京意锐新创科技有限公司 Commodity source tracing method and device based on two dimension code reading device
WO2019233289A1 (en) * 2018-06-07 2019-12-12 阿里巴巴集团控股有限公司 Commodity traceability link information processing method and apparatus, and electronic device
CN110827042A (en) * 2019-11-12 2020-02-21 北京芯际科技有限公司 Wine source tracing and evidence storing solution system and method based on block chain
CN110852297A (en) * 2019-11-19 2020-02-28 中国银行股份有限公司 Product information processing method and system
CN111178477A (en) * 2019-12-03 2020-05-19 福建自贸试验区厦门片区益客联信息科技有限公司 Commodity two-dimensional code generation method
KR20200057564A (en) * 2018-11-16 2020-05-26 김용태 Clinet apparatus, service server and system for providing payment service using peer to peer network
CN111368953A (en) * 2020-03-10 2020-07-03 大仝智能科技有限公司 Product anti-counterfeiting traceability system and method
CN111581541A (en) * 2020-05-13 2020-08-25 成都信息工程大学 Agricultural product traceability information query method and system

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609543A (en) * 2012-02-27 2012-07-25 华南农业大学 Multifunctional two-dimensional code product traceability system and traceability method
CN102810194A (en) * 2012-07-27 2012-12-05 常会友 Product quality tracing and anti-fake system on basis of obvious codes and secret codes
CN103001974A (en) * 2012-12-26 2013-03-27 百度在线网络技术(北京)有限公司 Method, system and device used for controlling login and based on two-dimensional code
CN103294783A (en) * 2013-05-16 2013-09-11 广州唯品会信息科技有限公司 Method and device for grouping product pictures
WO2015125484A1 (en) * 2014-02-19 2015-08-27 株式会社サイレント技術企画 Two-dimensional code, two-dimensional code system, two-dimensional code capture terminal, and information processing method using two-dimensional code
CN103886467A (en) * 2014-03-24 2014-06-25 易宏举 Method for distinguishing authenticity of products conveniently
CN104158912A (en) * 2014-09-04 2014-11-19 上海天臣控股有限公司 Commodity tracing and customer-manufacturer interaction system and method
CN107451820A (en) * 2016-04-29 2017-12-08 卢念秋 On line, multiple, dynamic anti-fake under line, anti-channel conflict, can traceability system
CN108320164A (en) * 2018-02-02 2018-07-24 南京正兴源科技有限公司 A kind of production traceability system
CN108428142A (en) * 2018-05-18 2018-08-21 广州质量云信息科技有限公司 Quick Response Code traceability management system
WO2019233289A1 (en) * 2018-06-07 2019-12-12 阿里巴巴集团控股有限公司 Commodity traceability link information processing method and apparatus, and electronic device
CN109118256A (en) * 2018-09-05 2019-01-01 河南知诸电子科技有限公司 A kind of commodity traceability system based on two dimensional code
KR20200057564A (en) * 2018-11-16 2020-05-26 김용태 Clinet apparatus, service server and system for providing payment service using peer to peer network
CN110210878A (en) * 2019-06-10 2019-09-06 北京意锐新创科技有限公司 Commodity source tracing method and device based on two dimension code reading device
CN110827042A (en) * 2019-11-12 2020-02-21 北京芯际科技有限公司 Wine source tracing and evidence storing solution system and method based on block chain
CN110852297A (en) * 2019-11-19 2020-02-28 中国银行股份有限公司 Product information processing method and system
CN111178477A (en) * 2019-12-03 2020-05-19 福建自贸试验区厦门片区益客联信息科技有限公司 Commodity two-dimensional code generation method
CN111368953A (en) * 2020-03-10 2020-07-03 大仝智能科技有限公司 Product anti-counterfeiting traceability system and method
CN111581541A (en) * 2020-05-13 2020-08-25 成都信息工程大学 Agricultural product traceability information query method and system

Also Published As

Publication number Publication date
CN112330338B (en) 2023-09-26

Similar Documents

Publication Publication Date Title
US10915748B2 (en) Automatic document source identification systems
KR102134792B1 (en) Method for providing used goods trade service using fraud detection and appraisal based on blockchain with safe transaction
JP6743188B2 (en) Remote contract interview method, electronic device, and computer-readable storage medium
US6825940B1 (en) Method of processing documents in an image-based document processing system and an apparatus therefor
WO2018166116A1 (en) Car damage recognition method, electronic apparatus and computer-readable storage medium
US9305230B2 (en) Internet payment system using credit card imaging
US20170177852A1 (en) Document authentication based on expected wear
US11824851B2 (en) Identification document database
WO2022002246A1 (en) Verification method and apparatus for electronic equipment insurance
CN108090747A (en) Self-service method, apparatus of validating the car, equipment and the computer storage media that vehicle insurance core is protected
CN110851677A (en) Reimbursement certificate processing method, device, terminal and computer readable storage medium
US20080147423A1 (en) Method and system for confirming/verifying receipt of a mailpiece using radio frequency identification (RFID)
CN106557732A (en) A kind of identity identifying method and system
US20160104167A1 (en) Device and method for populating a legal filing with an individual's name from a government-issued identification document
CN105512920A (en) Processing method and server for network ticket booking system
CN106295923A (en) Administrative self-service querying method and terminal thereof
CN113435439B (en) Document auditing method and device, storage medium and electronic device
CN112487982A (en) Merchant information auditing method, system and storage medium
CN112330338B (en) Product traceability system based on block chain
CN116959015A (en) File classification and archiving system based on image recognition
CN110852714A (en) Salary improvement data management system applied to decoration service platform
CN109636578A (en) Risk checking method, device, equipment and the readable storage medium storing program for executing of credit information
JP6210554B2 (en) Recognition device, recognition program, and recognition method
KR101429929B1 (en) Biometric and demographic data transfer and management system and apparatus
CN113837170A (en) Automatic auditing processing method, device and equipment for vehicle insurance claim settlement application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant