CN113469708B - Product anti-counterfeiting processing method and device, computer equipment and storage medium - Google Patents
Product anti-counterfeiting processing method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN113469708B CN113469708B CN202110740169.0A CN202110740169A CN113469708B CN 113469708 B CN113469708 B CN 113469708B CN 202110740169 A CN202110740169 A CN 202110740169A CN 113469708 B CN113469708 B CN 113469708B
- Authority
- CN
- China
- Prior art keywords
- product
- code
- target
- counterfeiting
- text
- 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.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 43
- 238000001228 spectrum Methods 0.000 claims abstract description 225
- 238000012795 verification Methods 0.000 claims abstract description 98
- 230000015572 biosynthetic process Effects 0.000 claims abstract description 66
- 238000003786 synthesis reaction Methods 0.000 claims abstract description 66
- 238000012545 processing Methods 0.000 claims abstract description 38
- 238000000034 method Methods 0.000 claims abstract description 22
- 238000006243 chemical reaction Methods 0.000 claims description 23
- 238000012549 training Methods 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 18
- 108091026890 Coding region Proteins 0.000 claims description 7
- 238000003062 neural network model Methods 0.000 claims description 3
- 230000009286 beneficial effect Effects 0.000 abstract description 6
- 230000000875 corresponding effect Effects 0.000 description 51
- 238000005516 engineering process Methods 0.000 description 16
- 230000000694 effects Effects 0.000 description 14
- 230000006870 function Effects 0.000 description 10
- 238000012360 testing method Methods 0.000 description 6
- 238000004422 calculation algorithm Methods 0.000 description 5
- 230000004888 barrier function Effects 0.000 description 4
- 230000007547 defect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 230000001788 irregular Effects 0.000 description 2
- 230000003595 spectral effect Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 238000013135 deep learning Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
- 238000005507 spraying Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/018—Certifying business or products
- G06Q30/0185—Product, service or business identity fraud
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods 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/1404—Methods for optical code recognition
- G06K7/1408—Methods for optical code recognition the method being specifically adapted for the type of code
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L13/00—Speech synthesis; Text to speech systems
- G10L13/02—Methods for producing synthetic speech; Speech synthesisers
- G10L13/04—Details of speech synthesis systems, e.g. synthesiser structure or memory management
- G10L13/047—Architecture of speech synthesisers
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L15/00—Speech recognition
- G10L15/26—Speech to text systems
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L25/00—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
- G10L25/27—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the analysis technique
- G10L25/30—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the analysis technique using neural networks
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Business, Economics & Management (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Acoustics & Sound (AREA)
- Multimedia (AREA)
- General Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Economics (AREA)
- General Health & Medical Sciences (AREA)
- Electromagnetism (AREA)
- Signal Processing (AREA)
- Evolutionary Computation (AREA)
- Entrepreneurship & Innovation (AREA)
- Accounting & Taxation (AREA)
- Development Economics (AREA)
- Toxicology (AREA)
- Finance (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Credit Cards Or The Like (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a product anti-counterfeiting processing method, a product anti-counterfeiting processing device, computer equipment and a storage medium. The method comprises the following steps: scanning a target anti-fake voiceprint code of a target product to obtain a target anti-fake digital code corresponding to the target anti-fake voiceprint code; performing coding verification on the target anti-counterfeiting digital code to obtain a coding verification result; if the code check result is that the check is passed, acquiring a target product introduction text and a genuine product introduction frequency spectrum based on a target anti-counterfeiting digital code inquiry system database; inputting a target product introduction text into a text frequency spectrum synthesis model for identification, and obtaining a target product introduction frequency spectrum; based on the target product introduction frequency spectrum and the genuine product introduction frequency spectrum, the genuine-fake identification result is obtained, and the genuine-fake identification result is displayed and/or played. The method does not need to adopt special tools for anti-counterfeiting identification, is beneficial to reducing the operation inconvenience and cost of anti-counterfeiting identification, and is beneficial to ensuring the efficiency and accuracy of the obtained true and false identification result through code verification and spectrum verification.
Description
Technical Field
The present invention relates to the field of artificial intelligence technologies, and in particular, to a product anti-counterfeit processing method, apparatus, computer device, and storage medium.
Background
With the prevalence of online shopping, the product anti-counterfeiting problem is paid more and more attention to multiple users. The traditional anti-counterfeiting technology is divided into two major categories, namely high barrier technology anti-counterfeiting and information technology anti-counterfeiting. The high barrier technology is used for anti-counterfeiting by using a new technology and a new material which cannot be owned by others temporarily, and the biggest defect is that the anti-counterfeiting characteristics of the same product are the same, so that once a counterfeiter grasps the high barrier technology, batch counterfeiting can be realized. The information technology anti-counterfeiting feature is to assign personalized information to each product, so that the common user can identify the authenticity of the product by a simple tool.
The speech anti-fake technology belongs to high barrier technology anti-fake technology, and the product needs to be printed with unconventional printable microcode and special tool (such as point reading anti-fake distinguishing pen) capable of identifying unconventional printable microcode is needed to be used for anti-fake identification. The irregular printable microcode is disordered, so that counterfeiters cannot identify information in the microcode, special tools are required to be used, and the information content in the irregular printable microcode is collected in a touch mode for anti-counterfeiting identification. However, the voice anti-counterfeiting technology has the following defects: firstly, the use is inconvenient, and the user needs to purchase special tools for distinguishing the authenticity; secondly, once mastered by counterfeiters, the voice anti-counterfeiting technology can perform batch counterfeiting, cannot realize anti-counterfeiting on single products, and has poor anti-counterfeiting effect.
Disclosure of Invention
The embodiment of the invention provides a product anti-counterfeiting processing method, a device, computer equipment and a storage medium, which are used for solving the problems of inconvenient use and poor anti-counterfeiting effect in the existing voice anti-counterfeiting technology.
A product anti-counterfeiting treatment method, comprising:
scanning a target anti-fake voiceprint code of a target product to obtain a target anti-fake digital code corresponding to the target anti-fake voiceprint code;
performing coding verification on the target anti-counterfeiting digital code to obtain a coding verification result;
if the code verification result is that verification is passed, acquiring a target product introduction text and a genuine product introduction frequency spectrum based on the target anti-counterfeiting digital code inquiry system database;
the target product introduction text is input into a text frequency spectrum synthesis model for identification, and a target product introduction frequency spectrum is obtained;
and acquiring an authenticity identification result based on the target product introduction frequency spectrum and the genuine product introduction frequency spectrum, and displaying and/or playing the authenticity identification result.
A product anti-counterfeiting processing device comprising:
the anti-fake digital code acquisition module is used for scanning the anti-fake voiceprint code of the target product and acquiring the anti-fake digital code corresponding to the anti-fake voiceprint code;
The code verification result acquisition module is used for carrying out code verification on the target anti-counterfeiting digital code to acquire a code verification result;
the introduction text frequency spectrum acquisition module is used for acquiring a target product introduction text and a genuine product introduction frequency spectrum based on the target anti-counterfeiting digital code inquiry system database if the code check result is that the code check result passes the check;
the target product introduction frequency spectrum acquisition module is used for identifying the target product introduction text input text frequency spectrum synthesis model to acquire a target product introduction frequency spectrum;
and the true and false identification result acquisition module is used for acquiring a true and false identification result based on the target product introduction frequency spectrum and the genuine product introduction frequency spectrum, and displaying and/or playing the true and false identification result.
A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the above-mentioned product anti-counterfeit processing method when executing the computer program.
A computer readable storage medium storing a computer program which when executed by a processor implements the product anti-counterfeit processing method described above.
The product anti-counterfeiting processing method, the device, the computer equipment and the storage medium can adopt a smart phone or other terminals with scanning functions to scan the target anti-counterfeiting voiceprint codes of the target product, and can rapidly determine the target anti-counterfeiting digital codes of the target product, so that a special tool is not needed in the anti-counterfeiting process, the operation inconvenience of anti-counterfeiting identification is reduced, and the cost of anti-counterfeiting identification is reduced. The target anti-counterfeiting digital code is subjected to code verification to obtain a code verification result, so that the target anti-counterfeiting digital code can be safely verified, and the anti-counterfeiting identification effect is guaranteed. And only when the code verification result is verification pass, determining a target product introduction text and a genuine product introduction frequency spectrum according to the target anti-counterfeiting digital code, and inputting the target product introduction text into a text frequency spectrum synthesis model, so that the target product introduction frequency spectrum can be rapidly acquired, and the acquisition efficiency and the frequency spectrum effect of the target product introduction frequency spectrum are ensured. Finally, based on the target product introduction frequency spectrum and the genuine product introduction frequency spectrum, and the true and false identification result is displayed and/or played, the anti-fake identification effect is guaranteed, and a user can intuitively know whether the target product is a fake product or not.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments of the present invention will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic view of an application environment of a product anti-counterfeit processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a product anti-counterfeit processing method according to an embodiment of the invention;
FIG. 3 is another flow chart of the anti-counterfeit processing method of the product according to an embodiment of the invention;
FIG. 4 is another flow chart of the anti-counterfeit processing method of the product according to an embodiment of the invention;
FIG. 5 is another flow chart of the anti-counterfeit processing method of the product according to an embodiment of the invention;
FIG. 6 is another flow chart of the anti-counterfeit processing method of the product according to an embodiment of the invention;
FIG. 7 is another flow chart of the anti-counterfeit processing method of the product according to an embodiment of the invention;
FIG. 8 is another flow chart of a product anti-counterfeit processing method according to an embodiment of the invention;
FIG. 9 is a schematic diagram of an anti-counterfeit processing device for products according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of a computer device in accordance with an embodiment of the invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The product anti-counterfeiting processing method provided by the embodiment of the invention can be applied to an application environment shown in figure 1. Specifically, the product anti-counterfeiting processing method is applied to a product anti-counterfeiting processing system, the product anti-counterfeiting processing system comprises a client and a server as shown in fig. 1, and the client and the server are communicated through a network and are used for realizing voice anti-counterfeiting of a single product so as to ensure the product anti-counterfeiting effect and the use convenience. The client is also called a client, and refers to a program corresponding to the server for providing local service for the client. The client may be installed on, but is not limited to, various personal computers, notebook computers, smartphones, tablet computers, and portable wearable devices. The server may be implemented as a stand-alone server or as a server cluster composed of a plurality of servers.
In one embodiment, a product anti-counterfeiting processing method is provided, which can be applied to the client in fig. 1, and can also be applied to the server in fig. 1 for illustration, for example, when the client is networked, the method can be executed on the client or the server; when the client is not networked, execution may be performed on the client. As shown in fig. 2, taking the server applied in fig. 1 as an example, the product anti-counterfeiting processing method includes the following steps:
s201: scanning a target anti-fake voiceprint code of a target product to obtain a target anti-fake digital code corresponding to the target anti-fake voiceprint code;
s202: performing coding verification on the target anti-counterfeiting digital code to obtain a coding verification result;
s203: if the code check result is that the check is passed, acquiring a target product introduction text and a genuine product introduction frequency spectrum based on a target anti-counterfeiting digital code inquiry system database;
s204: inputting a target product introduction text into a text frequency spectrum synthesis model for identification, and obtaining a target product introduction frequency spectrum;
s205: based on the target product introduction frequency spectrum and the genuine product introduction frequency spectrum, the genuine-fake identification result is obtained, and the genuine-fake identification result is displayed and/or played.
The client is arranged on a terminal with a code scanning function, for example, a smart phone with the code scanning function. The target product is a product which needs to be verified for authenticity. The target anti-fake voiceprint code refers to an anti-fake voiceprint code arranged on a target product, and the anti-fake voiceprint code can be a frequency spectrum. The target anti-counterfeiting digital code is an anti-counterfeiting digital code obtained by decoding the target anti-counterfeiting voiceprint code.
Generally, each target product is provided with a target anti-fake voiceprint code, and the target anti-fake voiceprint code can be arranged on the target product in a spraying, printing or pasting mode, so that a user can identify authenticity according to the target anti-fake voiceprint code arranged on the target product.
As an example, in step S201, before purchasing the target product, the user may use a client installed on a smart phone or other terminals to scan the target anti-counterfeit code on the target product, so that the server may receive the target anti-counterfeit code of the target product scanned by the client, and obtain the target anti-counterfeit digital code corresponding to the target anti-counterfeit code, thereby performing anti-counterfeit identification by using the target anti-counterfeit digital code.
In an embodiment, a target anti-counterfeiting voiceprint code of a target product is scanned, and a target anti-counterfeiting digital code corresponding to the target anti-counterfeiting voiceprint code is obtained, which specifically comprises the following steps: first, a target anti-fake voiceprint code of a target product is scanned, and target anti-fake voice corresponding to the target anti-fake voiceprint code is obtained. The target anti-counterfeiting voice is voice obtained by performing frequency spectrum voice conversion based on the target anti-counterfeiting voiceprint code. Understandably, since the target anti-fake voiceprint code is a frequency spectrum, a frequency spectrum voice conversion technology can be adopted to convert the target anti-fake voiceprint code into a target anti-fake voice in a voice form. And then, performing voice-text conversion on the target anti-counterfeiting voice to obtain a target anti-counterfeiting digital code corresponding to the target anti-counterfeiting voiceprint code. For example, a TTS technology may be used to perform voice-to-text conversion on the target anti-counterfeiting voice, so as to convert the target anti-counterfeiting voice in voice form into a target anti-counterfeiting digital code in text form.
In this example, the target anti-counterfeit digital code includes a product code, a product serial number, a random code, and a target check code ordered according to a target coding order. The product code is a code for uniquely identifying a certain product. The product serial number is a code that uniquely identifies a particular product under a certain product. It will be appreciated that a particular product is uniquely identified by a product code and a product serial number. The random code is a randomly generated code. The target check code is a code which is extracted from the target anti-counterfeiting digital code and used for carrying out security check.
As an example, in step S202, after the server obtains the target anti-counterfeit digital code of the target product, a pre-configured digital code verification program may be adopted to perform code verification on the target anti-counterfeit digital code, and verify whether the target anti-counterfeit digital code is a genuine anti-counterfeit digital code, thereby obtaining a code verification result. The digital code verification program is a preset program for verifying the target anti-counterfeiting digital code. For example, when the server executes the digital code verification program, the product code, the product serial number, the random code and the target verification code can be obtained from the target anti-counterfeiting digital code, whether a matched product exists or not can be verified according to the product code and the product serial number, and the target verification code can also be utilized for carrying out safety verification, so that whether the target anti-counterfeiting digital code is a genuine anti-counterfeiting digital code or not can be determined, and further, the code verification result can be obtained.
The target product introduction text refers to a text matched with the target anti-counterfeiting digital code and used for introducing the target product.
As an example, in step S203, when the encoding verification result is verification, the server may query the system database according to the target anti-counterfeit digital code to obtain the target product introduction text matched with the target anti-counterfeit digital code.
The text spectral synthesis model is a model for enabling speech synthesis of text input and conversion to spectral output. The text frequency spectrum synthesis model can be formed by training any neural network model capable of realizing text-to-speech conversion, and can convert text into speech first and then extract the spectrogram of the speech to output. For example, the text spectrum synthesis model may be a model trained using a Tacotron network or a model trained using a Tacotron2 network. Preferably, the text frequency spectrum synthesis model is a model for realizing product authenticity identification, which is determined by model training based on a Tacotron2 network, and the speech synthesis effect is better. Tacotron2 is a network model obtained by upgrading and modifying Tacotron. Tacotron is an end-to-end speech synthesis model based on deep learning, the input of Tacotron is raw text, tacotron can output mel-spline, and then Griffin-Lim algorithm is utilized to generate a TTS neural network model of waveform. Tacotron2 replaces Griffin-Lim algorithm by using a model very similar to Wavenet, improves partial details of the Tacotron model, finally generates waveforms very similar to human voice, and is beneficial to guaranteeing the synthesis effect of voice synthesis.
As an example, in step S204, the server may perform model recognition on the target product introduction text input text spectrum synthesis model, and output the target product introduction spectrum from the text spectrum synthesis model. The target product introduction frequency spectrum is the frequency spectrum output after the text synthesis model processes the target product introduction text. In the example, the text frequency spectrum synthesis model is adopted to process the introduction text of the target product, so that the acquisition efficiency and the image effect of the introduction frequency spectrum of the target product can be ensured.
As an example, in step S205, the server may perform similarity calculation on the target product introduction spectrum and the genuine product introduction spectrum by using an image similarity algorithm to obtain a spectrum similarity; comparing the spectrum similarity with a preset similarity threshold; if the frequency spectrum similarity is larger than the similarity threshold, acquiring an authenticity identification result of the target product as a genuine product; if the frequency spectrum similarity is not greater than the similarity threshold, obtaining the true and false identification result of the target product as the forged product.
Then, the server can control the client to display the true and false identification result in a text form and/or play the true and false identification result in a voice form, so that the user can know whether the target product is a genuine product or a counterfeit product in real time.
In the product anti-counterfeiting processing method provided by the embodiment, a smart phone or other terminals with a scanning function can be adopted to scan the target anti-counterfeiting voiceprint code of the target product, and the target anti-counterfeiting digital code can be rapidly determined, so that a special tool is not needed in the anti-counterfeiting process, the operation inconvenience of anti-counterfeiting identification is reduced, and the cost of anti-counterfeiting identification is reduced. The target anti-counterfeiting digital code is subjected to code verification to obtain a code verification result, so that the target anti-counterfeiting digital code can be safely verified, and the anti-counterfeiting identification effect is guaranteed. And only when the code verification result is verification pass, determining a target product introduction text and a genuine product introduction frequency spectrum according to the target anti-counterfeiting digital code, and inputting the target product introduction text into a text frequency spectrum synthesis model, so that the target product introduction frequency spectrum can be rapidly acquired, and the acquisition efficiency and the frequency spectrum effect of the target product introduction frequency spectrum are ensured. Finally, based on the target product introduction frequency spectrum and the genuine product introduction frequency spectrum, and the true and false identification result is displayed and/or played, the anti-fake identification effect is guaranteed, and a user can intuitively know whether the target product is a fake product or not.
In one embodiment, as shown in fig. 3, step S202, namely performing code verification on the target anti-counterfeit digital code, obtains a code verification result, includes:
S301: performing character length verification on the target anti-counterfeiting digital code to obtain a length verification result;
s302: if the length check result is that the check is passed, extracting the characteristics of the target anti-counterfeiting digital code to obtain a product code, a product serial number, a random code and a target check code;
s303: inquiring a system database according to the product code and the product serial number, judging whether a genuine product matched with the product code and the product serial number exists in the system database, and obtaining a product verification result;
s304: if the product verification result is that the verification is passed, a verification code generating tool is adopted to process the product code, the product serial number and the random code to generate a current verification code;
s305: and acquiring a coding check result based on the current check code and the target check code.
As an example, in step S301, the server may determine, according to the obtained target anti-counterfeit digital code, a current code length corresponding to the target anti-counterfeit digital code; comparing the current coding length with the standard coding length; if the current coding length is consistent with the standard coding length, acquiring a length verification result passing the verification, and executing the following step S302; if the current coding length is inconsistent with the standard coding length, a length check result which is not checked is obtained, and the coding check result which is not checked can be directly obtained, so that the target product is a fake product. The current coding length is the character string length corresponding to the target anti-counterfeiting digital code. The standard code length is the character string length corresponding to the genuine anti-fake digital code. For example, if a 6-bit character product code, an 8-bit character product serial number, a 5-bit character random code, and a 1-bit character genuine check code are used, the standard code length is 20; if the current coding length is 20, acquiring a length verification result passing verification; and if the current coding length is not 20, acquiring a length check result which is not passed by the check. Understandably, the server performs length verification on the target anti-counterfeiting digital code, and when the current code length is inconsistent with the standard code length, the code verification result which does not pass the verification can be quickly obtained, so that the target product is determined to be a counterfeiting product, and the anti-counterfeiting identification purpose is realized.
As an example, in step S302, when the length check result is that the check is passed, the server may perform feature extraction on the target anti-counterfeit digital code according to a preset product code rule, so as to determine the product code, the product serial number, the random code and the target check code in the target anti-counterfeit digital code. For example, if the genuine anti-counterfeiting digital codes determined according to the product code rule all include the product code with 6-bit characters, the product serial number with 8-bit characters, the random code with 5-bit characters and the genuine check code with 1-bit characters, the target anti-counterfeiting digital codes can be extracted in a segmented manner according to the product code rule, so that the product code, the product serial number, the random code and the target check code are determined.
As an example, in step S303, the server may query the system database according to the extracted product code and product serial number, and determine whether there is a genuine product matching the product code and product serial number in the system database; if the system database contains a genuine product, acquiring a product verification result passing the verification, and executing a subsequent step S304; if no genuine product exists in the system database, a product verification result which is not verified is obtained, and a code verification result which is not verified can be directly obtained, so that the target product is a fake product. The server can query the system database according to the product code and the product serial number to determine whether the enterprise produces a genuine product corresponding to the product code and the product serial number so as to realize product verification and obtain a product verification result.
The check code generation tool is a preset tool for generating check codes, and particularly is a tool for generating genuine check codes in genuine anti-counterfeiting digital codes. The current check code is formed by processing a product code, a product serial number and a random code in the target anti-counterfeiting digital code by adopting a check code generation tool.
As an example, in step S304, when the product verification result is that the verification passes, the server may use a verification code generating tool for generating a genuine product verification code to process the product code, the product serial number and the random code in the target anti-counterfeit digital code, so as to generate the current verification code.
As an example, in step S305, the server may compare the current check code with the target check code; if the current check code is consistent with the target check code, a code check result passing the check is obtained, and the target product is possibly a genuine product, and the subsequent steps S203-S205 can be executed for further check; if the current check code is inconsistent with the target check code, a coding check result which is not checked is obtained, so that the target product cannot be a genuine product, and the counterfeit product can be directly determined.
In the product anti-counterfeiting processing method provided by the embodiment, the three dimensions of length verification and product verification and verification code verification are subjected to true and false verification on the target anti-counterfeiting digital code, so that the accuracy of the finally obtained code verification result is guaranteed. Product verification is carried out by utilizing the product code and the product serial number extracted from the target anti-counterfeiting digital code, so that targeted anti-counterfeiting identification can be carried out on a single target product, and the occurrence of batch counterfeiting can be effectively avoided. And the product code, the product serial number and the random code extracted from the target anti-counterfeiting digital code are processed by a check code generation tool to generate a current check code, and the current check code and the target check code extracted from the target anti-counterfeiting digital code are utilized for checking.
In one embodiment, as shown in fig. 4, in step S203, that is, based on the target anti-counterfeit digital code query system database, obtaining the target product introduction text and the genuine product introduction spectrum includes:
s401: forming a product inquiry request based on the target anti-counterfeiting digital code, wherein the product inquiry request comprises a user identifier, a product code and a product serial number;
S402: inquiring a system database based on the user identifier to obtain a history inquiry record corresponding to the user identifier;
s403: acquiring historical query times in a target time period according to the historical query record;
s404: if the historical query times are greater than the target times threshold, acquiring an authenticity identification result which is not passed by verification;
s405: and if the historical query times are not greater than the target times threshold, querying a system database based on the product codes and the product serial numbers, and acquiring a target product introduction text and a genuine product introduction frequency spectrum.
Wherein the user identification is an identification for uniquely identifying the user that triggered the product query request. The user identifier may be a registered account number of the user on the system, or may be a terminal identifier corresponding to the client that triggers the product query request, for example, a MAC address or other identifier of the smart phone. The historical query record refers to the operation of accessing the system database to query before the current time of the system. Each historical query record carries a historical query time, which is the time the query recorded in the historical query record accessed into the system database.
In step S401, the server may obtain a user identifier corresponding to the client of the target anti-fake voiceprint code of the target product, where the user identifier may be a registered account or a terminal identifier; the server can extract the product code and the product serial number from the target anti-counterfeiting digital code; an introduction query request is then formed based on the user identification, the product code, and the product serial number. The introduction query request is a request for querying a product introduction.
As an example, in step S402, the server may query the system database based on the user identifier, and obtain a history query record corresponding to the same user identifier from the system database, so as to determine whether there is a risk of triggering the product query request for access attack multiple times according to the history query record.
The target period of time refers to a preset period of time, specifically, a period of time before the current time of the system, for example, may be set to 1 week, 1 day, or other period of time. The historical query times refer to the times of carrying the same user identifier for query in the target time period.
As an example, in step S403, the server may perform matching processing on the historical query time recorded in the historical query record and the target time period according to the historical query record obtained by the query, count all the historical query records of the historical query time in the target time period, and determine the number of historical queries, so as to determine whether the user corresponding to the user identifier frequently queries the system database according to the number of historical queries in the target time period.
The target frequency threshold is a preset threshold for evaluating whether the frequent access frequency standard is reached.
As an example, in step S404, the server may compare the historical query number with the target number threshold value after counting the historical query number in the acquisition target period; if the historical query times are greater than the target times threshold, the user corresponding to the user identifier frequently accesses the system database, and possibly has attack access risk, so that the authenticity identification result which is not passed by verification can be directly obtained, and the security of anti-counterfeiting identification is ensured.
As an example, in step S405, the server may compare the historical query number with the target number threshold value after counting the historical query number in the acquisition target period; if the historical query times are not greater than the target times threshold, the user corresponding to the user identifier is not frequently accessed to the system database, at the moment, the product code and the product serial number can be identified from the product query request, the system database is queried based on the product code and the product serial number, and the target product introduction text and the genuine product introduction frequency spectrum are acquired from the system database. In this example, if the target product introduction text and the genuine product introduction spectrum matched with the product code and the product serial number are not queried in the system database, the authenticity identification result which is not checked can be directly obtained.
In the product anti-counterfeiting processing method provided by the embodiment, the system database is queried according to the user identification in the product query request, and the historical query times in the target time period are counted and acquired; if the historical query times are greater than the target times threshold, directly acquiring the true and false identification result which is not passed by the verification, so as to prevent the risk of attack access and ensure the security of anti-counterfeiting identification; if the historical query times are not greater than the target times threshold, the system database can be queried based on the product codes and the product serial numbers identified in the product query request to determine the target product introduction text and the genuine product introduction frequency spectrum, so that the authenticity identification can be carried out on the target product introduction text and the genuine product introduction frequency spectrum subsequently, and the authenticity identification result can be rapidly and accurately obtained to determine whether the target product is a counterfeit product.
In one embodiment, as shown in fig. 5, step S203, that is, identifying the target product introduction text input text spectrum synthesis model, obtains the true and false identification result, includes:
s501: performing text frequency spectrum conversion on the introduction text of the target product by adopting a text frequency spectrum synthesis model to obtain the introduction frequency spectrum of the product to be processed;
S502: and carrying out spectrum synthesis on the introduction spectrum of the product to be processed and the anti-counterfeiting watermark spectrum by adopting a text spectrum synthesis model to obtain the introduction spectrum of the target product.
As an example, in step S501, the server may use the text spectrum synthesis model to perform text spectrum conversion on the target product introduction text, so as to directly convert the target product introduction text in text form into the product introduction spectrum to be processed in spectrum form. The product introduction frequency spectrum to be processed is a processing result of text frequency spectrum conversion on the target product introduction text by adopting a text frequency spectrum synthesis model.
The anti-counterfeiting watermark frequency spectrum is a preset frequency spectrum for realizing anti-counterfeiting, and the frequency spectrum is marked with genuine watermark information.
As an example, in step S502, the server may use a text spectrum synthesis model to perform image synthesis on the product introduction spectrum to be processed and the anti-counterfeit watermark spectrum preconfigured in the system, so as to obtain the target product introduction spectrum finally used for realizing product authenticity identification. Understandably, the product introduction spectrum to be processed and the anti-counterfeit watermark spectrum are subjected to image synthesis to obtain a target product introduction spectrum, so that the target product introduction spectrum contains the related information of the anti-counterfeit watermark spectrum, and whether the target product is a counterfeit product or not is verified.
In the product anti-counterfeiting processing method provided by the embodiment, in the process of inputting the target product introduction text into the text spectrum synthesis model for identification, the target product introduction text is required to be subjected to voice spectrum conversion and spectrum synthesis in sequence, so that the target product introduction spectrum is obtained, the target product introduction spectrum comprises an anti-counterfeiting watermark spectrum, the subsequent product identification process comprises more image information, and the identification accuracy of the finally obtained true and false identification result is ensured.
In an embodiment, as shown in fig. 6, before the target anti-counterfeiting voiceprint code of the target product is scanned and the target anti-counterfeiting digital code corresponding to the target anti-counterfeiting voiceprint code is obtained, the product anti-counterfeiting processing method further includes:
s601: obtaining a product code corresponding to the genuine product according to the product code data table;
s602: generating a product serial number corresponding to the genuine product by adopting a product serial number generating tool;
s603: adopting a random number generation tool to generate a random code corresponding to the genuine product;
s604: processing a product code, a product serial number and a random code corresponding to the genuine product by adopting a check code generation tool to generate a genuine check code corresponding to the genuine product;
S605: and splicing the product code, the product serial number, the random code and the genuine product check code corresponding to the genuine product according to the target coding sequence to obtain the genuine anti-counterfeiting digital code so as to set the genuine anti-counterfeiting digital code on the genuine product.
The product code data table is a preset data table for recording codes corresponding to a certain product. The genuine product refers to a product produced by a certain enterprise.
As an example, in step S601, the server may quickly determine a product code corresponding to a certain genuine product according to a preset product code data table. For example, 0000001 may be used to represent the product code of the type a product, and 000002 may be used to represent the product code of the type B product.
The product serial number generating tool is a preset tool for generating a product serial number, and specifically can be a tool formed by a computer program capable of generating the product serial number.
As an example, in step S602, the server may use a preset product serial number generating tool to quickly generate a product serial number corresponding to a certain genuine product, where the product serial number may reflect a specific code corresponding to a certain product produced by the enterprise. In this example, the product serial number generation tool may be a tool that may be used to form a new product serial number for implementing adding 1 based on a previous product serial number. For example, if the 1 st product serial number generated by any one product is 00000001, the 2 nd product serial number generated by that product is 00000002.
Understandably, in the process of producing genuine products, enterprises can obtain the product codes and the product serial numbers of each genuine product, and can uniquely determine a certain genuine product based on the product codes and the product serial numbers, so that each product code and each product serial number are used for anti-counterfeiting treatment and subsequent anti-counterfeiting identification operation, thereby realizing anti-counterfeiting of a single genuine product, being beneficial to avoiding batch counterfeiting and further guaranteeing anti-counterfeiting effect.
Wherein the random number generation means is means for generating a random number.
As an example, in step S603, the server may use a preset random number generating tool to generate a random code with a target length, where the random code has uncertainty, which is helpful to ensure the uncertainty of the finally obtained genuine anti-counterfeiting digital code, further improve the counterfeiting difficulty, and ensure the security of the target anti-counterfeiting digital code. For example, a random number generation tool may be employed to randomly generate a random code of 5-bit character length.
The check code generation tool is a preset tool for generating check codes, and particularly is a tool for generating genuine check codes in genuine anti-counterfeiting digital codes. The genuine check code is a check code generated by a check code generating tool. In general, a check code is typically the last digit of a set of digits, and is a code that is determined by an operation in the preceding digits, which helps to check the correctness of the set of digits.
As an example, in step S603, the server may use a check code generating tool, and perform encoding processing on the product code, the product serial number and the random code corresponding to the genuine product by using an operation rule preset in the check code generating tool, so as to obtain the genuine check code corresponding to the genuine product. For example, a parity code generation tool may be used to encode the product code, the product serial number, and the random code, and determine the obtained parity code as a genuine product check code corresponding to a genuine product.
The target coding sequence is a preset sequence for coding and splicing the product code, the product serial number, the random code and the genuine check code.
As an example, in step S604, the server may splice the obtained product code, product serial number, random code and genuine verification code of the genuine product according to the target coding sequence, and generate a genuine anti-counterfeit digital code for uniquely identifying the genuine product, so as to perform the authenticity identification by using the genuine anti-counterfeit digital code. Understandably, after the genuine anti-counterfeiting digital code is generated, the genuine anti-counterfeiting digital code can be arranged on the genuine product, for example, the genuine anti-counterfeiting digital code is sprayed, printed or pasted on the genuine product, so that a user can judge whether the target anti-counterfeiting digital code is the genuine anti-counterfeiting digital code by scanning the target anti-counterfeiting digital code on the target product before purchasing any target product, thereby realizing code verification and obtaining code verification results.
In the product anti-counterfeiting processing method provided by the embodiment, the product code and the product serial number are generated for each genuine product, and a certain genuine product can be uniquely determined based on the product code and the product serial number, so that anti-counterfeiting processing and subsequent anti-counterfeiting identification operation are performed by using each product code and the product serial number, and anti-counterfeiting of a single genuine product is realized, the occurrence of batch counterfeiting is avoided, and the anti-counterfeiting effect is further ensured. And generating a corresponding random code aiming at each genuine product, wherein the random code has uncertainty, which is beneficial to guaranteeing the uncertainty of finally obtained genuine anti-counterfeiting digital codes, thereby improving the counterfeiting difficulty and guaranteeing the security of target anti-counterfeiting digital codes. The check code generation tool can be adopted, and the product code, the product serial number and the random code corresponding to the genuine product are coded by utilizing the operation rule preset in the check code generation tool so as to obtain the genuine check code corresponding to the genuine product, so that the accuracy check of the finally formed genuine anti-counterfeiting digital code is carried out by utilizing the genuine check code, and the anti-counterfeiting safety and effectiveness by utilizing the genuine anti-counterfeiting digital code are ensured.
In an embodiment, as shown in fig. 7, after the product code, the product serial number, the random code and the genuine product check code corresponding to the genuine product are spliced according to the target coding sequence, the product anti-counterfeiting processing method further includes:
s701: acquiring a genuine product introduction text corresponding to the genuine anti-counterfeiting digital code;
s702: performing text spectrum conversion on the genuine product introduction text by adopting a text spectrum synthesis model to obtain an original product introduction spectrum;
s703: performing spectrum synthesis on the original product introduction spectrum and the anti-counterfeiting watermark spectrum by adopting a text spectrum synthesis model to obtain a genuine product introduction spectrum;
s704: and storing the introduction frequency spectrum of the genuine product and the genuine anti-counterfeiting digital code in a system database in a correlated manner.
The genuine product introduction text is a text generated by an enterprise and used for introducing product details of a certain genuine product.
As an example, in step S701, the server may obtain a genuine product introduction text corresponding to a certain genuine product, where the genuine product introduction text may be a text configured in advance for introducing a certain genuine product by an enterprise that generates the genuine product.
As an example, in step S702, the server may perform text-to-text conversion on the genuine product introduction text using a text-to-speech conversion algorithm in the text-to-speech synthesis model to convert the genuine product introduction text in text form into the original product introduction spectrum in spectrum form. The original product introduction spectrum is a processing result of performing text spectrum conversion on the genuine product introduction text by adopting a text spectrum synthesis model.
As an example, in step S703, the server may use an image synthesis algorithm in the text spectrum synthesis model to perform image synthesis on the original product introduction spectrum and the anti-counterfeit watermark spectrum preconfigured by the system, so as to obtain a genuine product introduction spectrum that is finally used to realize product authenticity identification. Understandably, the original product introduction spectrum and the anti-counterfeit watermark spectrum are subjected to image synthesis to obtain the genuine product introduction spectrum, so that the genuine product introduction spectrum contains the related information of the anti-counterfeit watermark spectrum.
As an example, in step S704, the server correlates the finally generated genuine product introduction spectrum, the genuine product anti-counterfeit digital code and the genuine product introduction spectrum in a database of a system, so that when the genuine product is subsequently identified, the genuine product is identified by using the genuine product introduction spectrum and the target product introduction spectrum calculated by the current time of the system, and the result of the genuine identification is obtained, so as to quickly and accurately identify the genuine product.
In a specific implementation test, in step S703, for each genuine product, the number and the position of watermark information in the anti-counterfeit watermark spectrum may be randomly obtained, so that each genuine product corresponds to a unique anti-counterfeit watermark spectrum, which is helpful for guaranteeing uncertainty of the genuine product introduction spectrum obtained by performing spectrum synthesis on the original product introduction spectrum and the anti-counterfeit watermark spectrum, and further improving security and effectiveness of subsequent authenticity identification of the genuine product introduction spectrum. Correspondingly, in step S704, the server needs to store the genuine anti-counterfeiting digital code, the genuine product introduction spectrum and the anti-counterfeiting watermark spectrum in a database of a system, so that when the target product is subsequently identified as true or false, the true or false of the target product can be rapidly and accurately determined.
In the product anti-counterfeiting processing method provided by the embodiment, text frequency spectrum conversion and synthesis processing are performed on the genuine product introduction text corresponding to each genuine product by adopting a text frequency spectrum synthesis model, so that an original product introduction frequency spectrum can be rapidly and accurately obtained, and the original product introduction frequency spectrum contains related information of an anti-counterfeiting watermark frequency spectrum, thereby being beneficial to guaranteeing the accuracy of subsequent true and false identification.
In one embodiment, as shown in fig. 8, before performing text spectrum conversion on the genuine product introduction text by using the text spectrum synthesis model to obtain the original product introduction spectrum, the product anti-counterfeiting processing method further includes:
s801: acquiring a first product introduction text carrying a positive sample label, and processing the first product introduction text to form a second product introduction text carrying a negative sample label;
s802: and taking the first product introduction text and the second product introduction text as model training samples, inputting the model training samples into a Tacotron2 network for model training, and obtaining a text frequency spectrum synthesis model.
Wherein the positive sample label is a preset label for reflecting that the product is a genuine product, and for example, the positive sample label can be represented by 1 or Y. The first product introduction text is text for introducing product details carrying a positive sample label. The negative-sample label is a label preset to reflect that the product is a counterfeit product, and may be represented by 0 or N. The second product introduction text is text for introducing product details carrying a negative sample label.
As an example, in step S801, the server may obtain a genuine product introduction text corresponding to a certain genuine product, add a positive sample tag to the genuine product introduction text, and obtain a first product introduction text carrying the positive sample tag. Accordingly, the server may generate the second product introduction text carrying the negative sample tag by adding or deleting a portion of the content in the genuine product introduction text.
As an example, in step S802, the server may use the first product introduction text and the second product introduction text as model training samples; then, dividing the model training sample into a training set and a testing set; inputting a model training sample in the training set into a Tacotron2 network for model training to obtain an original spectrum identification model; testing an original spectrum identification model by adopting a model training sample in a test set to obtain a model test result; and if the model test result reaches the model convergence standard, acquiring a text frequency spectrum synthesis model.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
In an embodiment, a product anti-counterfeiting processing device is provided, and the product anti-counterfeiting processing device corresponds to the product anti-counterfeiting processing method in the embodiment one by one. As shown in fig. 9, the product anti-counterfeiting processing device includes a target anti-counterfeiting digital code acquisition module 901, a code verification result acquisition module 902, an introduction text spectrum acquisition module 903, a target product introduction spectrum acquisition module 904 and an authenticity identification result acquisition module 905. The functional modules are described in detail as follows:
the target anti-counterfeiting digital code acquisition module 901 is used for scanning a target anti-counterfeiting voiceprint code of a target product and acquiring a target anti-counterfeiting digital code corresponding to the target anti-counterfeiting voiceprint code;
the code verification result obtaining module 902 is configured to perform code verification on the target anti-counterfeit digital code to obtain a code verification result;
the introduction text frequency spectrum acquisition module 903 is configured to acquire a target product introduction text and a genuine product introduction frequency spectrum based on the target anti-counterfeit digital code query system database if the code verification result is verification;
the target product introduction frequency spectrum acquisition module 904 is used for inputting a target product introduction text into the text frequency spectrum synthesis model for identification to acquire a target product introduction frequency spectrum;
The true and false identification result obtaining module 905 is configured to obtain a true and false identification result based on the target product introduction spectrum and the genuine product introduction spectrum, and display and/or play the true and false identification result.
Preferably, the code verification result obtaining module 902 includes:
the length check result acquisition unit is used for performing character length check on the target anti-counterfeiting digital code to acquire a length check result;
the feature extraction processing unit is used for extracting the features of the target anti-counterfeiting digital code if the length check result is that the check is passed, and obtaining a product code, a product serial number, a random code and a target check code;
the product verification result acquisition unit is used for inquiring the system database according to the product code and the product serial number, judging whether a genuine product matched with the product code and the product serial number exists in the system database, and acquiring a product verification result;
the current check code generating unit is used for processing the product code, the product serial number and the random code by adopting a check code generating tool if the product check result is that the check is passed, so as to generate a current check code;
the code check result acquisition unit is used for acquiring a code check result based on the current check code and the target check code.
Preferably, the introduction text spectrum acquisition module 903 includes:
the product inquiry request forming unit is used for forming a product inquiry request based on the target anti-counterfeiting digital code, wherein the product inquiry request comprises a user identifier, a product code and a product serial number;
the history inquiry record acquisition unit is used for inquiring the system database based on the user identifier and acquiring a history inquiry record corresponding to the user identifier;
the historical query frequency acquisition unit is used for acquiring the historical query frequency in the target time period according to the historical query record;
the first comparison processing unit is used for acquiring an authenticity identification result which is not passed by verification if the historical query times are larger than the target times threshold value;
and the second comparison processing unit is used for inquiring the system database based on the product code and the product serial number if the historical inquiry times are not more than the target times threshold value, and acquiring a target product introduction text and a genuine product introduction frequency spectrum.
Preferably, the target product introduction spectrum acquisition module 904 includes:
the to-be-processed product introduction frequency spectrum acquisition unit is used for performing text frequency spectrum conversion on the target product introduction text by adopting a text frequency spectrum synthesis model to acquire a to-be-processed product introduction frequency spectrum;
The target product introduction frequency spectrum acquisition unit is used for carrying out frequency spectrum synthesis on the product introduction frequency spectrum to be processed and the anti-counterfeiting watermark frequency spectrum by adopting a text frequency spectrum synthesis model to acquire a target product introduction frequency spectrum.
Preferably, the product anti-counterfeiting processing device further comprises:
the product code acquisition unit is used for acquiring the product code corresponding to the genuine product according to the product code data table;
the product serial number generating unit is used for generating a product serial number corresponding to the genuine product by adopting a product serial number generating tool;
the random code generating unit is used for generating a random code corresponding to the genuine product by adopting a random number generating tool;
the system comprises a genuine product check code generation unit, a verification code generation unit and a verification code generation unit, wherein the genuine product check code generation unit is used for processing a product code, a product serial number and a random code corresponding to a genuine product to generate a genuine product check code corresponding to the genuine product;
and the anti-counterfeiting digital code splicing unit is used for splicing the product code, the product serial number, the random code and the genuine check code corresponding to the genuine product according to the target coding sequence to obtain the genuine anti-counterfeiting digital code so as to set the genuine anti-counterfeiting digital code on the genuine product.
Preferably, the product anti-counterfeiting processing device further comprises:
The genuine product introduction text acquisition unit is used for acquiring genuine product introduction texts corresponding to the genuine anti-counterfeiting digital codes;
the original product introduction frequency spectrum acquisition unit is used for performing text frequency spectrum conversion on the genuine product introduction text by adopting a text frequency spectrum synthesis model to acquire an original product introduction frequency spectrum;
the genuine product introduction spectrum acquisition unit is used for performing spectrum synthesis on the original product introduction spectrum and the anti-counterfeiting watermark spectrum by adopting a text spectrum synthesis model to acquire a genuine product introduction spectrum;
and the spectrum code association storage unit is used for storing the introduction spectrum of the genuine product and the genuine anti-counterfeiting digital code association in a system database.
Preferably, the product anti-counterfeiting processing device further comprises:
the product introduction text acquisition unit is used for acquiring a first product introduction text carrying the positive sample label, and processing the first product introduction text to form a second product introduction text carrying the negative sample label;
the model training processing unit is used for taking the first product introduction text and the second product introduction text as model training samples, inputting the model training samples into the Tacotron2 network for model training, and obtaining a text frequency spectrum synthesis model.
The specific limitation of the product anti-counterfeiting processing device can be referred to the limitation of the product anti-counterfeiting processing method, and the description is omitted here. All or part of each module in the product anti-counterfeiting processing device can be realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 10. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer equipment is used for storing data adopted or generated in the process of executing the product anti-counterfeiting processing method. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a product anti-counterfeit processing method.
In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the product anti-counterfeit processing method in the above embodiment when executing the computer program, for example, S201-S205 shown in fig. 2, or S201-S205 shown in fig. 3-8, and is not repeated here. Alternatively, the processor may implement the functions of each module/unit in this embodiment of the product anti-counterfeit processing apparatus when executing the computer program, for example, the functions of the target anti-counterfeit digital code acquisition module 901, the code verification result acquisition module 902, the introduction text spectrum acquisition module 903, the target product introduction spectrum acquisition module 904, and the authenticity identification result acquisition module 905 shown in fig. 9, which are not repeated herein.
In an embodiment, a computer readable storage medium is provided, and a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the method for anti-counterfeiting processing of a product in the above embodiment is implemented, for example, S201 to S205 shown in fig. 2 or S201 to S205 shown in fig. 3 to 8, which are not repeated here. Or when the computer program is executed by the processor, the functions of each module/unit in this embodiment of the product anti-counterfeit processing device are implemented, for example, the functions of the target anti-counterfeit digital code acquisition module 901, the code verification result acquisition module 902, the introduction text spectrum acquisition module 903, the target product introduction spectrum acquisition module 904 and the authenticity identification result acquisition module 905 shown in fig. 9 are not repeated here.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.
Claims (9)
1. A method for anti-counterfeit processing of a product, comprising:
scanning a target anti-fake voiceprint code of a target product to obtain a target anti-fake digital code corresponding to the target anti-fake voiceprint code;
Performing coding verification on the target anti-counterfeiting digital code to obtain a coding verification result;
if the code verification result is that verification is passed, acquiring a target product introduction text and a genuine product introduction frequency spectrum based on the target anti-counterfeiting digital code inquiry system database; the genuine product introduction spectrum is obtained by performing spectrum synthesis on an original product introduction spectrum and an anti-counterfeiting watermark spectrum by adopting a text spectrum synthesis model; the text frequency spectrum synthesis model is formed by training any neural network model capable of realizing text-to-speech conversion; the original product introduction frequency spectrum is a processing result of performing text frequency spectrum conversion on the genuine product introduction text by adopting the text frequency spectrum synthesis model;
performing text spectrum conversion on the target product introduction text by adopting the text spectrum synthesis model to obtain a product introduction spectrum to be processed;
performing spectrum synthesis on the introduction spectrum of the product to be processed and the anti-counterfeiting watermark spectrum by adopting the text spectrum synthesis model to obtain an introduction spectrum of a target product;
and acquiring an authenticity identification result based on the target product introduction frequency spectrum and the genuine product introduction frequency spectrum, and displaying and/or playing the authenticity identification result.
2. The method for anti-counterfeit processing of products according to claim 1, wherein said performing a code check on said target anti-counterfeit digital code to obtain a code check result comprises:
performing character length verification on the target anti-counterfeiting digital code to obtain a length verification result;
if the length check result is that the check is passed, extracting the characteristics of the target anti-counterfeiting digital code to obtain a product code, a product serial number, a random code and a target check code;
inquiring a system database according to the product code and the product serial number, judging whether a genuine product matched with the product code and the product serial number exists in the system database, and obtaining a product verification result;
if the product verification result is that the verification is passed, a verification code generating tool is adopted to process the product code, the product serial number and the random code to generate a current verification code;
and acquiring a coding check result based on the current check code and the target check code.
3. The product anti-counterfeiting processing method according to claim 1, wherein the obtaining the target product introduction text and the genuine product introduction spectrum based on the target anti-counterfeiting digital code query system database comprises:
Forming a product inquiry request based on the target anti-counterfeiting digital code, wherein the product inquiry request comprises a user identifier, a product code and a product serial number;
based on the user identification query system database, acquiring a history query record corresponding to the user identification;
acquiring historical query times in a target time period according to the historical query record;
if the historical query times are greater than a target times threshold, acquiring an authenticity identification result which is not passed by verification;
and if the historical query times are not greater than a target times threshold, querying a system database based on the product codes and the product serial numbers, and acquiring target product introduction texts and genuine product introduction spectrums.
4. The product anti-counterfeiting processing method according to claim 1, wherein before the target anti-counterfeiting voiceprint code of the scanned target product is obtained, the product anti-counterfeiting processing method further comprises:
obtaining a product code corresponding to the genuine product according to the product code data table;
generating a product serial number corresponding to the genuine product by adopting a product serial number generation tool;
Generating a random code corresponding to the genuine product by adopting a random number generation tool;
processing the product code, the product serial number and the random code corresponding to the genuine product by adopting a check code generation tool to generate a genuine check code corresponding to the genuine product;
and splicing the product code, the product serial number, the random code and the genuine product check code corresponding to the genuine product according to the target coding sequence to obtain a genuine anti-counterfeiting digital code so as to set the genuine anti-counterfeiting digital code on the genuine product.
5. The product anti-counterfeiting processing method according to claim 4, wherein after the product code, the product serial number, the random code and the genuine product check code corresponding to the genuine product are spliced according to the target coding sequence to obtain the genuine product anti-counterfeiting digital code, the product anti-counterfeiting processing method further comprises:
acquiring a genuine product introduction text corresponding to the genuine anti-counterfeiting digital code;
performing text spectrum conversion on the genuine product introduction text by adopting the text spectrum synthesis model to obtain an original product introduction spectrum;
Performing spectrum synthesis on the original product introduction spectrum and the anti-counterfeiting watermark spectrum by adopting a text spectrum synthesis model to obtain a genuine product introduction spectrum;
and storing the introduction frequency spectrum of the genuine product and the anti-counterfeiting digital code of the genuine product in a system database in an associated manner.
6. The product anti-counterfeiting processing method according to claim 5, wherein before performing text-to-text conversion on genuine product introduction text by using the text-to-text spectrum synthesis model to obtain an original product introduction spectrum, the product anti-counterfeiting processing method further comprises:
acquiring a first product introduction text carrying a positive sample label, and processing the first product introduction text to form a second product introduction text carrying a negative sample label;
and taking the first product introduction text and the second product introduction text as model training samples, inputting the model training samples into a Tacotron2 network for model training, and obtaining a text frequency spectrum synthesis model.
7. A product anti-counterfeit processing device, comprising:
the anti-fake digital code acquisition module is used for scanning the anti-fake voiceprint code of the target product and acquiring the anti-fake digital code corresponding to the anti-fake voiceprint code;
The code verification result acquisition module is used for carrying out code verification on the target anti-counterfeiting digital code to acquire a code verification result;
the introduction text frequency spectrum acquisition module is used for acquiring a target product introduction text and a genuine product introduction frequency spectrum based on the target anti-counterfeiting digital code inquiry system database if the code check result is that the code check result passes the check;
the target product introduction frequency spectrum acquisition module is used for identifying the target product introduction text input text frequency spectrum synthesis model to acquire a target product introduction frequency spectrum;
and the true and false identification result acquisition module is used for acquiring a true and false identification result based on the target product introduction frequency spectrum and the genuine product introduction frequency spectrum, and displaying and/or playing the true and false identification result.
8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the anti-counterfeit processing method of the product of any of claims 1 to 6 when the computer program is executed by the processor.
9. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the product anti-counterfeit processing method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110740169.0A CN113469708B (en) | 2021-06-30 | 2021-06-30 | Product anti-counterfeiting processing method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110740169.0A CN113469708B (en) | 2021-06-30 | 2021-06-30 | Product anti-counterfeiting processing method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113469708A CN113469708A (en) | 2021-10-01 |
CN113469708B true CN113469708B (en) | 2023-05-02 |
Family
ID=77876788
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110740169.0A Active CN113469708B (en) | 2021-06-30 | 2021-06-30 | Product anti-counterfeiting processing method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113469708B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114548765B (en) * | 2022-02-22 | 2024-10-15 | 支付宝(杭州)信息技术有限公司 | Method and device for risk identification |
CN116597259B (en) * | 2023-05-26 | 2023-12-05 | 广州欢聚马克网络信息有限公司 | Site information verification method and device, equipment, medium and product thereof |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020082384A1 (en) * | 2018-10-26 | 2020-04-30 | 合刃科技(深圳)有限公司 | Spectral anti-counterfeiting identification system, and methods for preparing and decoding spectral anti-counterfeiting code |
CN112884859A (en) * | 2017-04-26 | 2021-06-01 | 创新先进技术有限公司 | Anti-counterfeiting image generation and identification method and device and computer storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7555139B2 (en) * | 1995-05-08 | 2009-06-30 | Digimarc Corporation | Secure documents with hidden signals, and related methods and systems |
US7152047B1 (en) * | 2000-05-24 | 2006-12-19 | Esecure.Biz, Inc. | System and method for production and authentication of original documents |
GB2426365A (en) * | 2004-03-10 | 2006-11-22 | Advanced Analysis And Integrat | A microcircuit for product authentication in which an identifier and a count of the number of times the circuit has been interrogated are stored. |
US7938331B2 (en) * | 2007-06-29 | 2011-05-10 | Symbol Technologies, Inc. | Method and system for anti-counterfeit barcode label |
-
2021
- 2021-06-30 CN CN202110740169.0A patent/CN113469708B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112884859A (en) * | 2017-04-26 | 2021-06-01 | 创新先进技术有限公司 | Anti-counterfeiting image generation and identification method and device and computer storage medium |
WO2020082384A1 (en) * | 2018-10-26 | 2020-04-30 | 合刃科技(深圳)有限公司 | Spectral anti-counterfeiting identification system, and methods for preparing and decoding spectral anti-counterfeiting code |
Also Published As
Publication number | Publication date |
---|---|
CN113469708A (en) | 2021-10-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111814466B (en) | Information extraction method based on machine reading understanding and related equipment thereof | |
US10777207B2 (en) | Method and apparatus for verifying information | |
CN113469708B (en) | Product anti-counterfeiting processing method and device, computer equipment and storage medium | |
CN110378562A (en) | Voice quality detecting method, device, computer equipment and storage medium | |
CN110909137A (en) | Information pushing method and device based on man-machine interaction and computer equipment | |
CN109684543A (en) | User's behavior prediction and information distribution method, device, server and storage medium | |
CN109461437B (en) | Verification content generation method and related device for lip language identification | |
CN111767565A (en) | Data desensitization processing method, processing device and storage medium | |
RU2005133725A (en) | USER AUTHENTICATION BY COMBINING IDENTIFICATION OF TALING AND REVERSE TURING TEST | |
CN111783471B (en) | Semantic recognition method, device, equipment and storage medium for natural language | |
CN111883140A (en) | Authentication method, device, equipment and medium based on knowledge graph and voiceprint recognition | |
WO2019174073A1 (en) | Method and device for modifying client information in conversation, computer device and storage medium | |
CN113435196B (en) | Intention recognition method, device, equipment and storage medium | |
CN111797611B (en) | Antithetical couplet generation model, antithetical couplet generation method, antithetical couplet generation device, computer equipment and medium | |
KR20220152167A (en) | A system and method for detecting phishing-domains in a set of domain name system(dns) records | |
CN111124421B (en) | Abnormal contract data detection method and device for blockchain intelligent contract | |
CN112988997A (en) | Response method and system of intelligent customer service, computer equipment and storage medium | |
CN110532229B (en) | Evidence file retrieval method, device, computer equipment and storage medium | |
CN110955796A (en) | Case characteristic information extraction method and device based on record information | |
EP4170526A1 (en) | An authentication system and method | |
WO2023173541A1 (en) | Text-based emotion recognition method and apparatus, device, and storage medium | |
CN115578736A (en) | Certificate information extraction method, device, storage medium and equipment | |
WO2023172190A1 (en) | Method and apparatus for accessing data in a plurality of machine readable medium | |
US10721068B2 (en) | Secure data transmission using natural language | |
CN112786041A (en) | Voice processing method and related equipment |
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 |