CN113469708A - 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 PDF

Info

Publication number
CN113469708A
CN113469708A CN202110740169.0A CN202110740169A CN113469708A CN 113469708 A CN113469708 A CN 113469708A CN 202110740169 A CN202110740169 A CN 202110740169A CN 113469708 A CN113469708 A CN 113469708A
Authority
CN
China
Prior art keywords
product
code
target
counterfeiting
frequency spectrum
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
CN202110740169.0A
Other languages
Chinese (zh)
Other versions
CN113469708B (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202110740169.0A priority Critical patent/CN113469708B/en
Publication of CN113469708A publication Critical patent/CN113469708A/en
Application granted granted Critical
Publication of CN113469708B publication Critical patent/CN113469708B/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
    • G06Q30/0185Product, service or business identity fraud
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • 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
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L13/00Speech synthesis; Text to speech systems
    • G10L13/02Methods for producing synthetic speech; Speech synthesisers
    • G10L13/04Details of speech synthesis systems, e.g. synthesiser structure or memory management
    • G10L13/047Architecture of speech synthesisers
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/26Speech to text systems
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/27Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the analysis technique
    • G10L25/30Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the analysis technique using neural networks

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-counterfeiting voiceprint code of a target product to obtain a target anti-counterfeiting digital code corresponding to the target anti-counterfeiting voiceprint code; carrying out code verification on the target anti-counterfeiting digital code to obtain a code verification result; if the code verification result is that the verification is passed, inquiring a system database based on the target anti-counterfeiting digital code to obtain a target product introduction text and a genuine product introduction frequency spectrum; inputting a target product introduction text into a text frequency spectrum synthesis model for identification, and acquiring a target product introduction frequency spectrum; and 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. The method does not need to adopt a special tool for anti-counterfeiting identification, is favorable for reducing the operation inconvenience and cost of the anti-counterfeiting identification, and is favorable for ensuring the efficiency and the accuracy of the obtained true and false identification result through code verification and frequency spectrum verification.

Description

Product anti-counterfeiting processing method and device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of artificial intelligence, in particular to a product anti-counterfeiting processing method, a product anti-counterfeiting processing device, computer equipment and a storage medium.
Background
With the prevalence of online shopping, the anti-counterfeiting problem of products is more and more valued by multiple users. The traditional anti-counterfeiting technologies are divided into two categories, namely high barrier technology anti-counterfeiting and information technology anti-counterfeiting. The anti-counterfeiting method based on the high barrier technology is characterized in that a new technology and a new material which cannot be owned by others for a while are used for anti-counterfeiting, the biggest defect is that the anti-counterfeiting characteristics of the same type of products are the same, and once a counterfeiter masters the high barrier technology, batch counterfeiting can be realized. The information technology anti-counterfeiting characteristic is that each product is endowed with personalized information, so that common users can identify the authenticity of the product through simple tools.
The voice anti-fake technology belongs to high barrier technology anti-fake technology, and needs to print unconventional printable microcode on a product and adopt a special tool (such as a point-reading anti-fake distinguishing pen) capable of identifying the unconventional printable microcode to carry out anti-fake identification. The unconventional printable microcode is disordered, so that a counterfeiter cannot identify the information in the unconventional printable microcode, and a special tool is required to be used for collecting the information content in the unconventional printable microcode in a touch mode to perform anti-counterfeiting identification. However, the voice anti-counterfeiting technology has the following defects: firstly, the use is inconvenient, and a user needs to additionally purchase a special tool for distinguishing the true from the false; secondly, once being mastered by a counterfeiter, the voice anti-counterfeiting technology can perform batch counterfeiting, cannot realize anti-counterfeiting on a single product, and has poor anti-counterfeiting effect.
Disclosure of Invention
The embodiment of the invention provides a product anti-counterfeiting processing method, a product anti-counterfeiting processing device, computer equipment and a storage medium, and aims to solve the problems of inconvenience in use and poor anti-counterfeiting effect of the existing voice anti-counterfeiting technology.
A product anti-counterfeiting treatment method comprises the following steps:
scanning a target anti-counterfeiting voiceprint code of a target product to obtain a target anti-counterfeiting digital code corresponding to the target anti-counterfeiting voiceprint code;
carrying out code verification on the target anti-counterfeiting digital code to obtain a code verification result;
if the code verification result is that verification is passed, inquiring a system database based on the target anti-counterfeiting digital code to obtain a target product introduction text and a genuine product introduction frequency spectrum;
inputting the target product introduction text into a text frequency spectrum synthesis model for identification, and acquiring a target product introduction frequency spectrum;
and 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 product anti-counterfeiting processing device, comprising:
the target anti-counterfeiting digital code acquisition module 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 checking result acquisition module is used for carrying out code checking on the target anti-counterfeiting digital code to acquire a code checking result;
the introduction text frequency spectrum acquisition module is used for inquiring a system database based on the target anti-counterfeiting digital code if the code verification result is that the code passes verification, and acquiring an introduction text of a target product and an introduction frequency spectrum of a genuine product;
the target product introduction frequency spectrum acquisition module is used for inputting the target product introduction text into a text frequency spectrum synthesis model for identification to acquire a target product introduction frequency spectrum;
and the authenticity identification result acquisition module is used for acquiring the 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 computer device comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, and the processor executes the computer program to realize the product anti-counterfeiting processing method.
A computer-readable storage medium, which stores a computer program, which, when executed by a processor, implements the above-mentioned product anti-counterfeiting processing method.
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 code of the target product and quickly determine the target anti-counterfeiting digital code, so that a special tool is not needed in the anti-counterfeiting process, the operation inconvenience of anti-counterfeiting identification is favorably 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 subjected to safety verification, and the anti-counterfeiting identification effect can be guaranteed. And only when the code verification result is that the verification is passed, determining a target product introduction text and a genuine product introduction frequency spectrum according to the target anti-counterfeiting digital code, inputting the target product introduction text into a text frequency spectrum synthesis model, and quickly acquiring the target product introduction frequency spectrum to ensure the acquisition efficiency and the frequency spectrum effect of the target product introduction frequency spectrum. And finally, the anti-counterfeiting identification effect is favorably ensured 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, so that a user can intuitively know whether the target product is a counterfeit product.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a schematic diagram of an application environment of a product anti-counterfeit processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for anti-counterfeit processing of a product according to an embodiment of the present invention;
FIG. 3 is another flow chart of a method for anti-counterfeit processing of a product according to an embodiment of the present invention;
FIG. 4 is another flow chart of a method for anti-counterfeit processing of a product according to an embodiment of the present invention;
FIG. 5 is another flow chart of a method for anti-counterfeit processing of a product according to an embodiment of the present invention;
FIG. 6 is another flow chart of a method for anti-counterfeit processing of a product according to an embodiment of the present invention;
FIG. 7 is another flow chart of a method for anti-counterfeit processing of a product according to an embodiment of the present invention;
FIG. 8 is another flow chart of a method for anti-counterfeit processing of a product according to an embodiment of the present invention;
FIG. 9 is a schematic view of an anti-counterfeit processing device for a product according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of a computer device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The product anti-counterfeiting processing method provided by the embodiment of the invention can be applied to the 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 shown in figure 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 guarantee the anti-counterfeiting effect and the use convenience of the product. The client is also called a user side, and refers to a program corresponding to the server and providing local services for the client. The client may be installed on, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The server may be implemented as a stand-alone server or as a server cluster consisting of a plurality of servers.
In an embodiment, an anti-counterfeit processing method for a product 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; the method can be executed on the client when the client is not networked. 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-counterfeiting voiceprint code of a target product to obtain a target anti-counterfeiting digital code corresponding to the target anti-counterfeiting voiceprint code;
s202: carrying out code verification on the target anti-counterfeiting digital code to obtain a code verification result;
s203: if the code verification result is that the verification is passed, inquiring a system database based on the target anti-counterfeiting digital code to obtain a target product introduction text and a genuine product introduction frequency spectrum;
s204: inputting a target product introduction text into a text frequency spectrum synthesis model for identification, and acquiring a target product introduction frequency spectrum;
s205: and 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.
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 refers to a product which needs to be verified to be true or false. The target anti-counterfeiting voiceprint code is an anti-counterfeiting voiceprint code arranged on a target product, and the anti-counterfeiting 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-counterfeiting voiceprint code, and the target anti-counterfeiting voiceprint code can be arranged on the target product by adopting a spraying, printing or pasting mode, so that a user can perform authenticity identification according to the target anti-counterfeiting voiceprint code arranged on the target product.
As an example, in step S201, before the user purchases the target product, the user may use a client installed on a smart phone or other terminal to scan the target anti-counterfeit voiceprint code on the target product, so that the server may receive the target anti-counterfeit voiceprint code of the target product scanned by the client, obtain the target anti-counterfeit digital code corresponding to the target anti-counterfeit voiceprint code, and thereby perform anti-counterfeit identification by using the target anti-counterfeit digital code.
In an embodiment, scanning a target anti-counterfeiting voiceprint code of a target product to obtain a target anti-counterfeiting digital code corresponding to the target anti-counterfeiting voiceprint code specifically includes the following steps: firstly, scanning a target anti-counterfeiting voiceprint code of a target product to obtain a target anti-counterfeiting voice corresponding to the target anti-counterfeiting voiceprint code. The target anti-counterfeiting voice is obtained by performing frequency spectrum voice conversion based on the target anti-counterfeiting voiceprint code. Understandably, because the target anti-counterfeiting voiceprint code is a frequency spectrum, a frequency spectrum voice conversion technology can be adopted to convert the target anti-counterfeiting voiceprint code into target anti-counterfeiting voice in a voice form. And then, carrying out 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, TTS technology can be used to perform voice-to-text conversion on the target anti-counterfeiting voice, so as to convert the target anti-counterfeiting voice in a voice form into the target anti-counterfeiting digital code in a text form.
In this example, the target anti-counterfeiting digital code comprises a product code, a product serial number, a random code and a target check code which are ordered according to a target coding sequence. The product code is a code for uniquely identifying a certain type of product. A product serial number is a code that uniquely identifies a particular product under a particular product. Understandably, 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 extracted from the target anti-counterfeiting digital code and used for safety check.
As an example, in step S202, after obtaining the target anti-counterfeiting digital code of the target product, the server may adopt a pre-configured digital code verification program to perform code verification on the target anti-counterfeiting digital code, and verify whether the target anti-counterfeiting digital code is a genuine anti-counterfeiting digital code, thereby obtaining a code verification result. The digital code checking program is a preset program for checking the target anti-counterfeiting digital code. For example, when the server executes the digital code verification program, the server may obtain the product code, the product serial number, the random code and the target verification code from the target anti-counterfeiting digital code, may verify whether a matched product exists according to the product code and the product serial number, and may also perform security verification by using the target verification code, thereby determining whether the target anti-counterfeiting digital code is a genuine anti-counterfeiting digital code, and further obtaining a code verification result.
The target product introduction text is 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 code verification result is that the code passes the verification, the server may first query the system database according to the target anti-counterfeit digital code to obtain a target product introduction text matching the target anti-counterfeit digital code.
The text spectrum synthesis model is a model for realizing speech synthesis of text input and conversion into spectrum 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 a text into a speech firstly and then extract a frequency spectrum diagram of the speech for outputting. For example, the text spectrum synthesis model may be a model trained by a Tacotron network, or may be a model trained by a Tacotron2 network. Preferably, the text spectrum synthesis model is a model determined by model training based on a Tacotron2 network and used for realizing product authenticity identification, and the voice synthesis effect is better. Tacotron2 is a network model obtained after upgrading Tacotron. The Tacotron is an end-to-end speech synthesis model based on deep learning, the input of the Tacotron is raw text, the Tacotron can output mel-spectral, and then a TTS neural network model of a waveform can be generated by utilizing a Griffin-Lim algorithm. Tacotron2 adopts a model similar to Wavenet to replace Griffin-Lim algorithm, and improves partial details of the Tacotron model to finally generate a waveform close to human voice, which is helpful to guarantee the synthesis effect of voice synthesis.
As an example, in step S204, the server may input a target product introduction text into the text spectrum synthesis model for model identification, and output a target product introduction spectrum from the text spectrum synthesis model. The target product introduction frequency spectrum is a frequency spectrum output after the text frequency spectrum synthesis model processes the target product introduction text. In this example, the text frequency spectrum synthesis model is used to process the target product introduction text, so that the acquisition efficiency and the image effect of the target product introduction frequency spectrum can be guaranteed.
As an example, in step S205, the server may perform similarity calculation on the target product introduction frequency spectrum and the genuine product introduction frequency spectrum by using an image similarity calculation method, so as to obtain a frequency spectrum similarity; comparing the frequency spectrum similarity with a preset similarity threshold; if the frequency spectrum similarity is larger than the similarity threshold, acquiring the authenticity identification result of the target product as a genuine product; and if the frequency spectrum similarity is not greater than the similarity threshold, acquiring the true and false identification result of the target product as a counterfeit product.
Then, the server can control the client to display the authenticity identification result in a text form and/or play the authenticity 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 scanning functions can be adopted to scan the target anti-counterfeiting voiceprint code of the target product, and the target anti-counterfeiting digital code can be quickly determined, so that a special tool is not required in the anti-counterfeiting process, the operation inconvenience of anti-counterfeiting identification is favorably 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 subjected to safety verification, and the anti-counterfeiting identification effect can be guaranteed. And only when the code verification result is that the verification is passed, determining a target product introduction text and a genuine product introduction frequency spectrum according to the target anti-counterfeiting digital code, inputting the target product introduction text into a text frequency spectrum synthesis model, and quickly acquiring the target product introduction frequency spectrum to ensure the acquisition efficiency and the frequency spectrum effect of the target product introduction frequency spectrum. And finally, the anti-counterfeiting identification effect is favorably ensured 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, so that a user can intuitively know whether the target product is a counterfeit product.
In an embodiment, as shown in fig. 3, step S202, performing code verification on the target anti-counterfeit digital code, and obtaining a code verification result, includes:
s301: carrying out character length check on the target anti-counterfeiting digital code to obtain a length check result;
s302: if the length check result is that the check is passed, performing feature extraction on 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 acquiring a product verification result;
s304: if the product verification result is that verification passes, processing the product code, the product serial number and the random code by adopting a verification code generation tool to generate a current verification code;
s305: and acquiring a code checking result based on the current checking code and the target checking code.
As an example, in step S301, the server may determine, according to the obtained target anti-counterfeiting digital code, a current code length corresponding to the target anti-counterfeiting digital code; comparing the current code length with the standard code length; if the current coding length is consistent with the standard coding length, obtaining a length verification result passing the verification, and executing the subsequent step S302; if the current code length is not consistent with the standard code length, the length verification result which is not verified is obtained, the code verification result which is not verified can be directly obtained, and the target product is a counterfeit product. The current code 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-counterfeiting digital code. For example, if a product code of 6-bit characters, a product serial number of 8-bit characters, a random code of 5-bit characters and a genuine product check code of 1-bit characters are adopted, the standard code length is 20; if the current coding length is 20, acquiring a length verification result passing the verification; and if the current coding length is not 20, acquiring a length checking result which cannot pass the checking. Understandably, the server carries out length check on the target anti-counterfeiting digital code, and when the current code length is inconsistent with the standard code length, the server can quickly acquire the code check result which cannot be checked, thereby determining the target product as a counterfeit product and realizing the aim of anti-counterfeiting identification.
As an example, in step S302, when the length check result is that the check passes, the server may perform feature extraction on the target anti-counterfeiting 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-counterfeiting digital code. For example, if the genuine product anti-counterfeit digital codes determined according to the product code rule all include a product code using 6-bit characters, a product serial number using 8-bit characters, a random code using 5-bit characters, and a genuine product check code using 1-bit characters, the target anti-counterfeit digital codes may be extracted in segments according to the product code rule, thereby determining the product code, the product serial number, the random code, and the target check code.
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 a genuine product matching the product code and the product serial number exists in the system database; if the system database has the genuine product, acquiring a product verification result passing the verification, and executing the subsequent step S304; if no genuine product exists in the system database, the product verification result which cannot be verified is obtained, and the code verification result which cannot be verified can be directly obtained, so that the target product is a counterfeit product. Understandably, the server can inquire the system database according to the product code and the product serial number, and determine whether the enterprise produces the genuine products 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 generating tool is a preset tool for generating a check code, and particularly is a tool for generating a genuine check code in a genuine anti-counterfeiting digital code. 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 generating tool.
As an example, in step S304, when the product verification result is that the verification passes, the server may use a verification code generation 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, acquiring a code check result passing the check, indicating that the target product is possibly a genuine product, and executing the following steps S203-S205 for further check; if the current check code is inconsistent with the target check code, a code check result which cannot be passed by the check is obtained, the target product is not possible to be a genuine product, and the counterfeit product can be directly determined.
In the product anti-counterfeiting processing method provided by the embodiment, the authenticity of the target anti-counterfeiting digital code is verified in three dimensions of length verification, product verification and check code verification, which is helpful for ensuring the accuracy of the finally obtained code verification result. The product code and the product serial number extracted from the target anti-counterfeiting digital code are used for product verification, so that the targeted anti-counterfeiting identification of a single target product can be realized, and the batch counterfeiting situation can be effectively avoided. The product code, the product serial number and the random code extracted from the target anti-counterfeiting digital code are processed by adopting a check code generation tool to generate a current check code, and the target check code extracted from the current check code and the target anti-counterfeiting digital code is used for checking.
In one embodiment, as shown in fig. 4, the step S203 of querying the system database based on the target anti-counterfeit digital code to obtain the target product introduction text and the genuine product introduction frequency 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: querying a system database based on the user identification to obtain a historical query record corresponding to the user identification;
s403: acquiring historical query times in a target time period according to the historical query records;
s404: if the historical query times are larger than the target time threshold, acquiring an authenticity identification result which cannot pass verification;
s405: and if the historical query times are not greater than the target time threshold value, querying a system database based on the product code and the product serial number to obtain 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 of the user on the system, or may be a terminal identifier corresponding to a client that triggers the product query request, for example, a MAC address or other identifier of a smart phone. The historical query record refers to the operation of accessing a system database for query before the current time of the system. Each historical query record carries a historical query time, which is the time recorded in the historical query record when the query accesses the system database.
As an example, in step S401, the server may obtain a user identifier corresponding to a client of a target anti-counterfeit voiceprint code of a target product, where the user identifier may be a registration account or a terminal identifier; moreover, the server can extract the product code and the product serial number from the target anti-counterfeiting digital code; an introductory query request is then formed based on the user identification, the product code, and the product serial number. The introduction inquiry request is a request for inquiring introduction of a product.
As an example, in step S402, the server may query a system database based on the user identifier, and obtain a historical query record carrying the same user identifier from the system database, so as to determine whether there is a risk of triggering a product query request to perform an access attack multiple times according to the historical query record.
The target time period refers to a preset time period, specifically a time period before the current time of the system, and may be set to 1 week, 1 day, or other time periods, for example. The historical query times refer to the times of querying carried by the same user identifier in a 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 querying, count all the historical query records of the historical query time in the target time period, and determine the historical query times, so as to determine whether the user corresponding to the user identifier frequently queries the system database according to the historical query times in the target time period.
Wherein the target number threshold is a preset threshold for evaluating whether the frequent access number criterion is reached.
As an example, in step S404, the server may compare the historical query times with a target time threshold in counting and obtaining the historical query times in the target time period; if the historical query times are larger than the target times threshold value, the fact that the user corresponding to the user identification frequently accesses the system database is indicated, and the risk of attack access possibly exists, so that the authenticity identification result which cannot be verified can be directly obtained, and the safety of anti-counterfeiting identification is guaranteed.
As an example, in step S405, the server may obtain the historical query times in the target time period in a statistical manner, and compare the historical query times with a target time threshold; if the historical query times are not larger than the target time threshold, it is indicated that the user corresponding to the user identification does not frequently access the system database, at this time, 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 obtained from the system database. In this example, if the system database does not search the target product introduction text and the genuine product introduction frequency spectrum matched with the product code and the product serial number, the authenticity identification result that the verification fails can be directly obtained.
In the product anti-counterfeiting processing method provided by the embodiment, a system database is queried according to a user identifier in a product query request, and historical query times in a target time period are counted and obtained; if the historical query times are larger than the target time threshold, directly acquiring the authenticity identification result which is not verified, 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 time threshold, the system database can be queried based on the product code and the product serial number 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 of the target product introduction text and the genuine product introduction frequency spectrum can be performed subsequently, and the authenticity identification result can be quickly and accurately obtained to determine whether the target product is a counterfeit product.
In an embodiment, as shown in fig. 5, step S203 is to input a target product introduction text into a text spectrum synthesis model for recognition, and obtain an authenticity recognition result, where the method 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 an introduction frequency spectrum of the product to be processed;
s502: and performing spectrum synthesis on the introduction frequency spectrum of the product to be processed and the anti-counterfeiting watermark frequency spectrum by adopting a text frequency spectrum synthesis model to obtain the introduction frequency spectrum of the target product.
As an example, in step S501, the server may perform text spectrum conversion on the target product introduction text by using a text spectrum synthesis model, so as to directly convert the target product introduction text in a text form into the to-be-processed product introduction spectrum in a spectrum form. The introduction frequency spectrum of the product to be processed is a processing result of text frequency spectrum conversion of the introduction text of the target product by adopting a text frequency spectrum synthesis model.
The anti-counterfeiting watermark frequency spectrum is a preset frequency spectrum marked with genuine watermark information and used for realizing anti-counterfeiting.
As an example, in step S502, the server may use a text spectrum synthesis model to perform image synthesis on the introduction spectrum of the product to be processed and the anti-counterfeit watermark spectrum pre-configured by the system, so as to obtain the introduction spectrum of the target product, which is finally used for implementing the product authenticity identification. Understandably, the introduction frequency spectrum of the product to be processed and the anti-counterfeiting watermark frequency spectrum are subjected to image synthesis to obtain the introduction frequency spectrum of the target product, so that the introduction frequency spectrum of the target product contains the related information of the anti-counterfeiting watermark frequency spectrum, and whether the target product is a counterfeit product or not is verified.
In the product anti-counterfeiting processing method provided by this embodiment, in the process of inputting the target product introduction text into the text spectrum synthesis model for identification, the target product introduction text needs to be subjected to voice spectrum conversion and spectrum synthesis in sequence to obtain the target product introduction spectrum, so that the target product introduction spectrum contains the anti-counterfeiting watermark spectrum, and the subsequent product identification process includes more image information, thereby ensuring the identification accuracy of the finally obtained true and false identification result.
In an embodiment, as shown in fig. 6, before scanning the target anti-counterfeiting voiceprint code of the target product and acquiring the target anti-counterfeiting digital code corresponding to the target anti-counterfeiting voiceprint code, the product anti-counterfeiting processing method further includes:
s601: acquiring a product code corresponding to a genuine product according to the product code data table;
s602: generating a product serial number corresponding to a genuine product by adopting a product serial number generating tool;
s603: generating a random code corresponding to a genuine product by adopting a random number generation tool;
s604: processing the product code, the product serial number and the random code corresponding to the genuine product by adopting a check code generating 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 product anti-counterfeiting digital code so as to arrange the genuine product 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 for the product of clause A and 000002 may be used to represent the product code for the product of clause B.
The tool for generating the product serial number is a preset tool for generating the product serial number, and may specifically 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 generation 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 an enterprise. In this example, the tool for generating a product serial number may be a tool for adding 1 to the previous product serial number to form a new product serial number. For example, if the 1 st product serial number generated by any product is 00000001, the 2 nd product serial number generated by the product is 00000002.
Understandably, in the process of producing genuine products, an enterprise can obtain the product code and the product serial number of each genuine product, and can uniquely determine a certain genuine product based on the product code and the product serial number so as to perform anti-counterfeiting treatment and subsequent anti-counterfeiting identification operation by using each product code and the product serial number, so that the single genuine product is anti-counterfeiting, the batch counterfeiting condition is favorably avoided, and the anti-counterfeiting effect is further ensured.
Wherein the random number generation tool is a tool for generating random numbers.
As an example, in step S603, the server may use a preset random number generation tool to generate a random code with a target length, where the random code has uncertainty, and is helpful to ensure uncertainty of the finally obtained genuine anti-counterfeit digital code, so as to improve counterfeiting difficulty and ensure security of the target anti-counterfeit 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 generating tool is a preset tool for generating a check code, and particularly is a tool for generating a genuine check code in a genuine anti-counterfeiting digital code. The genuine check code is generated by adopting a check code generation tool. Generally, the check code is usually the last digit of a group of digits, and is determined by some operation in the previous digit, which helps to check the correctness of the code of the group of digits.
As an example, in step S603, the server may employ a check code generation 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 generation tool, so as to obtain a 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 product check code.
As an example, in step S604, the server may splice the obtained product code, the product serial number, the random code, and the genuine product check 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 in the subsequent step. Understandably, after the genuine anti-counterfeit digital code is generated, the genuine anti-counterfeit digital code can be arranged on the genuine product, for example, the genuine anti-counterfeit digital code is arranged on the genuine product in a spraying, printing or pasting manner, so that before a user purchases any target product, whether the target anti-counterfeit digital code is the genuine anti-counterfeit digital code is judged by scanning the target anti-counterfeit digital code on the target product, thereby realizing code verification and obtaining a code verification result.
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 operations are performed by using each product code and the product serial number, and thus, single genuine product is anti-counterfeiting, the generation of batch counterfeiting conditions is facilitated, and the anti-counterfeiting effect is further ensured. And generating corresponding random codes for each genuine product, wherein the random codes have uncertainty, which is beneficial to ensuring the uncertainty of the finally obtained genuine anti-counterfeiting digital codes, thereby improving the counterfeiting difficulty and ensuring the safety of the target anti-counterfeiting digital codes. The product code, the product serial number and the random code corresponding to the genuine product can be coded by adopting a check code generating tool and utilizing the preset operation rule in the check code generating tool so as to obtain the genuine product check code corresponding to the genuine product, so that the accuracy of the finally formed genuine product anti-counterfeiting digital code is verified by utilizing the genuine product check code, and the anti-counterfeiting safety and effectiveness by utilizing the genuine product 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 to obtain the genuine product anti-counterfeit digital code, the product anti-counterfeit processing method further includes:
s701: acquiring a genuine product introduction text corresponding to the genuine anti-counterfeiting digital code;
s702: performing text frequency spectrum conversion on the product introduction text by adopting a text frequency spectrum synthesis model to obtain an original product introduction frequency spectrum;
s703: performing spectrum synthesis on the original product introduction frequency spectrum and the anti-counterfeiting watermark frequency spectrum by adopting a text spectrum synthesis model to obtain a certified product introduction frequency spectrum;
s704: and storing the introduction frequency spectrum of the genuine product and the counterfeit-proof digital code of the genuine product in a system database in an associated manner.
The genuine product introduction text is a text generated by an enterprise and used for introducing the product details of a certain genuine product.
As an example, in step S701, the server may obtain an authentic product introduction text corresponding to a certain authentic product, where the authentic product introduction text may be a text that is configured in advance by an enterprise that generates the authentic product and is used for introducing the certain authentic product.
As an example, in step S702, the server may perform text-to-spectrum conversion on the genuine product introduction text by using a text-to-speech conversion algorithm in the text-to-spectrum synthesis model to convert the genuine product introduction text in a text form into the original product introduction spectrum in a spectrum form. The original product introduction frequency spectrum is a processing result of performing text frequency spectrum conversion on a product introduction text by adopting a text frequency spectrum synthesis model.
As an example, in step S703, the server may perform image synthesis on the original product introduction frequency spectrum and the anti-counterfeit watermark frequency spectrum pre-configured by the system by using an image synthesis algorithm in the text frequency spectrum synthesis model, so as to obtain the original product introduction frequency spectrum finally used for implementing product authenticity identification. Understandably, the original product introduction frequency spectrum and the anti-counterfeiting watermark frequency spectrum are subjected to image synthesis to obtain the original product introduction frequency spectrum, so that the original product introduction frequency spectrum contains the related information of the anti-counterfeiting watermark frequency spectrum.
As an example, in step S704, the server stores the finally generated genuine product introduction frequency spectrum, the genuine anti-counterfeit digital code and the genuine product introduction frequency spectrum in the system database in an associated manner, so that when performing the authenticity identification on the target product in the following step, the server performs the authenticity identification on the product by using the genuine product introduction frequency spectrum and the target product introduction frequency spectrum calculated by the system at the current time, and obtains the authenticity identification result, so as to realize the authenticity identification of the target product quickly and accurately.
In a specific implementation test, in step S703, the number and the position of the watermark information in the anti-counterfeiting watermark frequency spectrum can be randomly obtained for each genuine product, so that each genuine product corresponds to a unique anti-counterfeiting watermark frequency spectrum, which is helpful for ensuring the uncertainty of the genuine product introduction frequency spectrum obtained by performing frequency spectrum synthesis on the original product introduction frequency spectrum and the anti-counterfeiting watermark frequency spectrum, and further improving the security and the effectiveness of the genuine product introduction frequency spectrum in subsequent authenticity identification. Accordingly, in step S704, the server needs to store the genuine anti-counterfeit digital code, the genuine product introduction frequency spectrum, and the anti-counterfeit watermark frequency spectrum in the system database in an associated manner, so that the authenticity of the target product can be quickly and accurately determined when the authenticity of the target product is identified subsequently.
In the product anti-counterfeiting processing method provided by the embodiment, the text frequency spectrum conversion and synthesis processing is performed on the genuine product introduction text corresponding to each genuine product by using the text frequency spectrum synthesis model, so that the original product introduction frequency spectrum can be rapidly and accurately obtained, and the original product introduction frequency spectrum contains the relevant information of the anti-counterfeiting watermark frequency spectrum, which is helpful for ensuring the accuracy of the subsequent authenticity identification.
In an embodiment, as shown in fig. 8, before performing text spectrum conversion on a product introduction text by using a text spectrum synthesis model to obtain an original product introduction spectrum, the method for anti-counterfeit processing of a product 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, and inputting the model training samples into a Tacotron2 network for model training to obtain a text frequency spectrum synthesis model.
The positive sample label is a preset label for reflecting that the product is a genuine product, and may be represented by 1 or Y, for example. The first product introduction text is text carrying a positive sample label for introducing product details. The negative sample label is a preset label for reflecting that the product is a counterfeit product, and can be represented by 0 or N. The second product introduction text is text carrying a negative sample label for introducing product details.
As an example, in step S801, the server may obtain an authentic product introduction text corresponding to a certain authentic product, add a positive sample label to the authentic product introduction text, and obtain a first product introduction text carrying the positive sample label. Accordingly, the server can generate a second product introduction text carrying the negative sample labels by adding and deleting parts of contents in the 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 the model training samples in the training set into a Tacotron2 network for model training to obtain an original spectrum recognition model; testing the original spectrum recognition model by adopting a model training sample in the 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 numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments 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 to one. As shown in fig. 9, the product anti-counterfeit processing apparatus includes a target anti-counterfeit digital code obtaining module 901, a code verification result obtaining module 902, an introduction text frequency spectrum obtaining module 903, a target product introduction frequency spectrum obtaining module 904, and an authenticity identification result obtaining module 905. The functional modules are explained in detail as follows:
a target anti-counterfeit digital code obtaining module 901, configured to scan a target anti-counterfeit voiceprint code of a target product, and obtain a target anti-counterfeit digital code corresponding to the target anti-counterfeit voiceprint code;
a code verification result obtaining module 902, configured to perform code verification on the target anti-counterfeit digital code to obtain a code verification result;
an introduction text frequency spectrum obtaining module 903, configured to query the system database based on the target anti-counterfeiting digital code if the code verification result is that verification passes, and obtain a target product introduction text and a genuine product introduction frequency spectrum;
a target product introduction frequency spectrum obtaining module 904, configured to input a target product introduction text into the text frequency spectrum synthesis model for identification, and obtain a target product introduction frequency spectrum;
the authenticity identification result obtaining module 905 is configured to obtain an authenticity identification result based on the target product introduction frequency spectrum and the genuine product introduction frequency spectrum, and display and/or play the authenticity identification result.
Preferably, the code check result obtaining module 902 includes:
the length check result acquisition unit is used for carrying out character length check on the target anti-counterfeiting digital code to acquire a length check result;
the characteristic extraction processing unit is used for extracting the characteristics of the target anti-counterfeiting digital code if the length verification result is that the verification is passed, and acquiring a product code, a product serial number, a random code and a target verification 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 the system database has a genuine product matched with the product code and the product serial number or not 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, and generating a current check code;
and 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 obtaining 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 historical query record acquisition unit is used for querying the system database based on the user identifier and acquiring the historical query record corresponding to the user identifier;
the historical query frequency acquisition unit is used for acquiring the historical query frequency in a target time period according to the historical query record;
the first comparison processing unit is used for acquiring an authenticity identification result which cannot pass verification if the historical query times are larger than a target time threshold;
and the second comparison processing unit is used for querying the system database based on the product code and the product serial number to obtain a target product introduction text and a genuine product introduction frequency spectrum if the historical query times are not greater than the target time threshold.
Preferably, the target product introduction spectrum obtaining module 904 includes:
the device comprises a to-be-processed product introduction frequency spectrum acquisition unit, a target product introduction text analysis unit and a target product introduction frequency spectrum analysis unit, wherein the to-be-processed product introduction frequency spectrum acquisition unit is used for performing text frequency spectrum conversion on a target product introduction text by adopting a text frequency spectrum synthesis model to acquire a to-be-processed product introduction frequency spectrum;
and the target product introduction frequency spectrum acquisition unit is used for performing frequency spectrum synthesis on the introduction frequency spectrum of the product to be processed and the anti-counterfeiting watermark frequency spectrum by adopting a text frequency spectrum synthesis model to acquire the introduction frequency spectrum of the target product.
Preferably, the product anti-counterfeiting processing device further comprises:
the product code acquisition unit is used for acquiring a product code corresponding to a 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 a 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 genuine product check code generating unit is used for processing the product code, the product serial number and the random code corresponding to the genuine product by adopting a check code generating tool 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 product check code corresponding to the genuine product according to the target coding sequence to obtain the genuine product anti-counterfeiting digital code so as to arrange the genuine product 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 a genuine product introduction text corresponding to the genuine anti-counterfeiting digital code;
the original product introduction frequency spectrum acquisition unit is used for performing text frequency spectrum conversion on the product introduction text by adopting a text frequency spectrum synthesis model to acquire an original product introduction frequency spectrum;
the genuine product introduction frequency spectrum acquisition unit is used for performing frequency spectrum synthesis on the original product introduction frequency spectrum and the anti-counterfeiting watermark frequency spectrum by adopting a text frequency spectrum synthesis model to acquire a genuine product introduction frequency spectrum;
and the frequency spectrum code association storage unit is used for storing the introduction frequency spectrum of the genuine products and the counterfeit-proof digital codes of the genuine products in the system database in an association manner.
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, processing the first product introduction text and forming a second product introduction text carrying the negative sample label;
and 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 a Tacotron2 network for model training, and obtaining a text frequency spectrum synthesis model.
For the specific definition of the product anti-counterfeiting processing device, reference may be made to the above definition of the product anti-counterfeiting processing method, and details are not repeated 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 modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram 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 comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. 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 realize a product anti-counterfeiting processing method.
In an embodiment, a computer device is provided, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the method for processing the product according to the foregoing embodiments is implemented, for example, S201 to S205 shown in fig. 2, or shown in fig. 3 to fig. 8, which is not described herein again to avoid repetition. Alternatively, when the processor executes the computer program, the functions of each module/unit in the embodiment of the product anti-counterfeiting processing apparatus are implemented, for example, the functions of the target anti-counterfeiting digital code obtaining module 901, the code verification result obtaining module 902, the introduction text spectrum obtaining module 903, the target product introduction spectrum obtaining module 904, and the authenticity identification result obtaining module 905 shown in fig. 9 are not described herein again to avoid repetition.
In an embodiment, a computer-readable storage medium is provided, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method for processing anti-counterfeit products in the foregoing embodiments is implemented, for example, S201 to S205 shown in fig. 2, or shown in fig. 3 to fig. 8, which is not described herein again to avoid repetition. Alternatively, the computer program, when executed by the processor, implements the functions of each module/unit in the embodiment of the product anti-counterfeit processing apparatus, such as the functions of the target anti-counterfeit digital code obtaining module 901, the code verification result obtaining module 902, the introduction text spectrum obtaining module 903, the target product introduction spectrum obtaining module 904, and the authenticity identification result obtaining module 905 shown in fig. 9, and is not described herein again to avoid repetition.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile 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), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A product anti-counterfeiting processing method is characterized by comprising the following steps:
scanning a target anti-counterfeiting voiceprint code of a target product to obtain a target anti-counterfeiting digital code corresponding to the target anti-counterfeiting voiceprint code;
carrying out code verification on the target anti-counterfeiting digital code to obtain a code verification result;
if the code verification result is that verification is passed, inquiring a system database based on the target anti-counterfeiting digital code to obtain a target product introduction text and a genuine product introduction frequency spectrum;
inputting the target product introduction text into a text frequency spectrum synthesis model for identification, and acquiring a target product introduction frequency spectrum;
and 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.
2. The product anti-counterfeiting processing method according to claim 1, wherein the code verification of the target anti-counterfeiting digital code to obtain a code verification result comprises:
carrying out character length check on the target anti-counterfeiting digital code to obtain a length check result;
if the length check result is that the check is passed, performing feature extraction on 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 acquiring a product verification result;
if the product verification result is that verification is passed, processing the product code, the product serial number and the random code by adopting a verification code generation tool to generate a current verification code;
and acquiring a code checking result based on the current checking code and the target checking code.
3. The product anti-counterfeiting processing method according to claim 1, wherein the querying a system database based on the target anti-counterfeiting digital code to obtain a target product introduction text and a genuine product introduction frequency spectrum 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;
querying a system database based on the user identification to obtain a historical query record corresponding to the user identification;
acquiring historical query times in a target time period according to the historical query records;
if the historical query times are larger than a target time threshold value, acquiring a true and false identification result which cannot be verified;
and if the historical query times are not greater than a target time threshold value, querying a system database based on the product code and the product serial number to obtain a target product introduction text and a genuine product introduction frequency spectrum.
4. The product anti-counterfeiting processing method according to claim 1, wherein the step of inputting the target product introduction text into a text spectrum synthesis model for identification to obtain the target product introduction spectrum comprises the steps of:
performing text frequency spectrum conversion on the target product introduction text by adopting a text frequency spectrum synthesis model to obtain a product introduction frequency spectrum to be processed;
and performing frequency spectrum synthesis on the introduction frequency spectrum of the product to be processed and the anti-counterfeiting watermark frequency spectrum by adopting a text frequency spectrum synthesis model to obtain the introduction frequency spectrum of the target product.
5. The product anti-counterfeiting processing method according to claim 1, wherein before scanning the target anti-counterfeiting voiceprint code of the target product and acquiring the target anti-counterfeiting digital code corresponding to the target anti-counterfeiting voiceprint code, the product anti-counterfeiting processing method further comprises:
acquiring a product code corresponding to a 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 generating tool to generate a genuine product 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 a target coding sequence to obtain a genuine product anti-counterfeiting digital code so as to arrange the genuine product anti-counterfeiting digital code on the genuine product.
6. The product anti-counterfeiting processing method according to claim 5, 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 frequency spectrum conversion on the genuine product introduction text by adopting the text frequency spectrum synthesis model to obtain an original product introduction frequency spectrum;
performing spectrum synthesis on the original product introduction frequency spectrum and the anti-counterfeiting watermark frequency spectrum by adopting a text spectrum synthesis model to obtain a certified product introduction frequency spectrum;
and storing the introduction frequency spectrum of the genuine product and the counterfeit-proof digital code of the genuine product in a system database in an associated manner.
7. The product anti-counterfeiting processing method according to claim 6, wherein before the text spectrum synthesis model is used for performing text spectrum conversion on the product introduction text to obtain the original product introduction spectrum, the product anti-counterfeiting processing method further comprises the following steps:
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.
8. A product anti-counterfeiting processing device, comprising:
the target anti-counterfeiting digital code acquisition module 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 checking result acquisition module is used for carrying out code checking on the target anti-counterfeiting digital code to acquire a code checking result;
the introduction text frequency spectrum acquisition module is used for inquiring a system database based on the target anti-counterfeiting digital code if the code verification result is that the code passes verification, and acquiring an introduction text of a target product and an introduction frequency spectrum of a genuine product;
the target product introduction frequency spectrum acquisition module is used for inputting the target product introduction text into a text frequency spectrum synthesis model for identification to acquire a target product introduction frequency spectrum;
and the authenticity identification result acquisition module is used for acquiring the 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.
9. 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 according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored, wherein the computer program, when executed by a processor, implements a method for anti-counterfeit processing of a product according to any one of claims 1 to 7.
CN202110740169.0A 2021-06-30 2021-06-30 Product anti-counterfeiting processing method and device, computer equipment and storage medium Active CN113469708B (en)

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 true CN113469708A (en) 2021-10-01
CN113469708B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114548765A (en) * 2022-02-22 2022-05-27 支付宝(杭州)信息技术有限公司 Method and apparatus for risk identification
CN116597259A (en) * 2023-05-26 2023-08-15 广州欢聚马克网络信息有限公司 Site information verification method and device, equipment, medium and product thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050038756A1 (en) * 2000-05-24 2005-02-17 Nagel Robert H. System and method for production and authentication of original documents
US20090001164A1 (en) * 2007-06-29 2009-01-01 Chris Brock Method and System for Anti-Counterfeit Barcode Label
US20090051485A1 (en) * 2004-03-10 2009-02-26 Advanced Analysis And Integration Limited Methods and Apparatus for Product Authentication
US20100163629A1 (en) * 1995-05-08 2010-07-01 Rhoads Geoffrey B Security Document Carrying Machine Readable Pattern
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100163629A1 (en) * 1995-05-08 2010-07-01 Rhoads Geoffrey B Security Document Carrying Machine Readable Pattern
US20050038756A1 (en) * 2000-05-24 2005-02-17 Nagel Robert H. System and method for production and authentication of original documents
US20090051485A1 (en) * 2004-03-10 2009-02-26 Advanced Analysis And Integration Limited Methods and Apparatus for Product Authentication
US20090001164A1 (en) * 2007-06-29 2009-01-01 Chris Brock Method and System for Anti-Counterfeit Barcode Label
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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114548765A (en) * 2022-02-22 2022-05-27 支付宝(杭州)信息技术有限公司 Method and apparatus for risk identification
CN116597259A (en) * 2023-05-26 2023-08-15 广州欢聚马克网络信息有限公司 Site information verification method and device, equipment, medium and product thereof
CN116597259B (en) * 2023-05-26 2023-12-05 广州欢聚马克网络信息有限公司 Site information verification method and device, equipment, medium and product thereof

Also Published As

Publication number Publication date
CN113469708B (en) 2023-05-02

Similar Documents

Publication Publication Date Title
US10777207B2 (en) Method and apparatus for verifying information
CN111814466A (en) Information extraction method based on machine reading understanding and related equipment thereof
CN110909137A (en) Information pushing method and device based on man-machine interaction and computer equipment
CN108766444B (en) User identity authentication method, server and storage medium
CN113469708B (en) Product anti-counterfeiting processing method and device, computer equipment and storage medium
CN101388078A (en) Text identification method and device based on verification
RU2005133725A (en) USER AUTHENTICATION BY COMBINING IDENTIFICATION OF TALING AND REVERSE TURING TEST
CN110378562A (en) Voice quality detecting method, device, computer equipment and storage medium
CN112560453B (en) Voice information verification method and device, electronic equipment and medium
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
CN113094478B (en) Expression reply method, device, equipment and storage medium
CN113724695A (en) Electronic medical record generation method, device, equipment and medium based on artificial intelligence
CN111797611B (en) Antithetical couplet generation model, antithetical couplet generation method, antithetical couplet generation device, computer equipment and medium
CN111767565A (en) Data desensitization processing method, processing device and storage medium
CN113128228A (en) Voice instruction recognition method and device, electronic equipment and storage medium
CN112988997A (en) Response method and system of intelligent customer service, computer equipment and storage medium
CN111797217A (en) Information query method based on FAQ matching model and related equipment thereof
CN112906361A (en) Text data labeling method and device, electronic equipment and storage medium
CN113873088B (en) Interactive method and device for voice call, computer equipment and storage medium
CN111428230A (en) Information verification method, device, server and storage medium
CN112581967A (en) Voiceprint retrieval method, front-end back-end server and back-end server
CN112712793A (en) ASR (error correction) method based on pre-training model under voice interaction and related equipment
US10721068B2 (en) Secure data transmission using natural language
CN113255361B (en) Automatic voice content detection method, device, equipment and storage medium

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