Anti-counterfeiting method and system based on associated information processing, medium and equipment
By collecting and processing the initial element set of randomly printed by the inkjet printer, generating and correlating anti-counterfeiting plain codes and passwords, the problem that existing anti-counterfeiting labels are easily copied is solved, and higher anti-counterfeiting strength and security are achieved.
Patent Information
- Application Number
- CN202510305181.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-14
- Publication Date
- 2025-06-24
AI Technical Summary
The existing anti-counterfeiting labels are easily copied or scanned and cracked due to fixed encoding and identification. The anti-counterfeiting strength is weak and it is difficult to distinguish the authentic products.
By collecting the initial element set randomly printed by the inkjet printer, and arranging and computing them according to preset rules, an anti-counterfeiting code and password are generated, and information is related to increase the unpredictability of the label and the difficulty of the anti-counterfeiting.
It improves the unpredictability and difficulty of anti-counterfeiting labels, prevents the label from being simply scanned and copied, enhances the confidentiality and security of the labels, and improves the anti-counterfeiting effect.
Smart Images

Figure CN120198136A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of anti-counterfeiting technology, and particularly to an anti-counterfeiting method, system, medium and device based on associated information processing. Background Art
[0002] Product anti-counterfeiting is a prominent issue in today's society. With the development of replication technology, counterfeit or inferior products frequently appear in various commodities, causing serious damage to the rights and interests of consumers. To solve the problem of difficult identification of product authenticity, the industry has developed various anti-counterfeiting label technologies.
[0003] Currently, existing anti-counterfeiting labels, such as barcodes, QR codes, etc., all use fixed codes and identifiers to achieve anti-counterfeiting. However, this fixed anti-counterfeiting code and identifier are easily copied or scanned and cracked, with relatively weak anti-counterfeiting strength. Once the anti-counterfeiting label is copied, it is very difficult to distinguish between genuine and counterfeit products, resulting in a poor anti-counterfeiting effect. Summary of the Invention
[0004] This application provides an anti-counterfeiting method, system, medium and device based on associated information processing, which can improve the anti-counterfeiting effect.
[0005] In a first aspect, this application provides an anti-counterfeiting method based on associated information processing, and the method includes: Collect an initial element set randomly printed by an inkjet printer; Arrange the initial element set according to a preset rule to obtain a first element set; Perform an operation on the first element set according to a preset operation rule to obtain a second element set corresponding to the first element set; Convert the first element set into an anti-counterfeiting clear code, use the second element set as an anti-counterfeiting hidden code, and associate the information of the anti-counterfeiting clear code and the anti-counterfeiting hidden code.
[0006] By adopting the above technical solution, by collecting a random initial element set and arranging and operating the initial element set according to preset rules, this solution for generating anti-counterfeiting labels based on random initial elements enhances the unpredictability and anti-counterfeiting difficulty of the anti-counterfeiting label compared with using fixed codes and identifiers, and can prevent the label from being simply scanned and copied. Then, information is associated between the anti-counterfeiting clear code and the anti-counterfeiting hidden code after the operation, so that the correct matching clear code needs to be input when verifying the hidden code, increasing the difficulty of cracking the label and improving the anti-counterfeiting effect.
[0007] Optionally, collecting an initial element set randomly printed by an inkjet printer includes: obtaining the printing information randomly printed by the inkjet printer on a target medium; scanning the printing information to obtain a scanning result; and identifying the characters in the scanning result based on character recognition technology to obtain an initial element set.
[0008] By adopting the above technical solution, the random printing function of the inkjet printer is utilized to generate random printing information on the target medium. Compared with the fixed coding anti-counterfeiting label in the background art, the randomness and unpredictability of the initial elements are increased. Then, through the application of scanning and character recognition technologies, the initial element set is accurately obtained from the random printing information, providing a random element source for the subsequent generation of anti-counterfeiting labels and improving the anti-counterfeiting intensity of the labels.
[0009] Optionally, arranging the initial element set according to a preset rule to obtain a first element set includes: randomly selecting several target elements from the initial element set; sorting and numbering each of the target elements to obtain the numbers of each of the target elements; arranging the target elements corresponding to each number according to a preset rule to obtain an element array, and using the element array as the first element set. The preset rule includes a preset array and the numbers corresponding to each position in the array.
[0010] By adopting the above technical solution, randomly selecting and sorting target elements can introduce a sequential number factor into the first element set while maintaining the randomness of the initial element set, increasing the combination variations between elements, and improving the difficulty of generating labels. The preset array arrangement method establishes a strict relationship between the target elements and the corresponding position numbers, enhancing the uncertainty of the first element set.
[0011] Optionally, performing an operation on the first element set according to a preset operation rule to obtain a second element set corresponding to the first element set includes: determining the operation objects corresponding to each first element in the first element set and the operation symbols between each of the first elements and the corresponding operation objects according to the preset operation rule; performing operations on each of the first elements and the corresponding operation objects according to each of the operation symbols to obtain the operation result as the second element set.
[0012] By adopting the above technical solution, clarifying the operation objects and operation methods of each first element realizes the precise control of the operation process, providing a standardized basis for generating the second element set. The combined operation not only realizes the conversion from the first element set to the second element set but also associates the two element sets through a preset operation rule. The operation has strong antagonism, and when verifying, it is necessary to provide the correct first element set and operation process to output a matching second element set, improving the anti-counterfeiting difficulty.
[0013] Optionally, performing operations on each of the first elements and the corresponding operation objects according to each of the operation symbols to obtain the operation result as the second element set includes: performing operations on each of the first elements and the corresponding operation objects according to each of the operation symbols to obtain a set of operation result elements; performing mapping conversion on each element in the set of operation result elements based on a preset character mapping table to obtain the second element set.
[0014] By adopting the above technical solution, the dual-element combination operation improves the conversion randomness and enhances the anti-counterfeiting intensity. Then, by introducing the character mapping relationship, the intermediate operation results can be further scrambled, the numerical correspondence between elements can be hidden, and reverse cracking can be resisted. Finally, the correspondence between the second element set obtained through character mapping and the initial element set becomes more complex and difficult to deduce, greatly improving the anti-counterfeiting difficulty.
[0015] Optionally, converting the first element set into an anti-counterfeiting clear code, using the second element set as an anti-counterfeiting hidden code, and associating the information of the anti-counterfeiting clear code and the anti-counterfeiting hidden code includes: converting each first element in the first element set into a preset coding format to obtain a first coding set; encoding the first coding set to obtain an anti-counterfeiting clear code, where the anti-counterfeiting clear code is a primary verification code; using the second element set as an anti-counterfeiting hidden code, and setting an anti-counterfeiting verification identifier on the anti-counterfeiting hidden code; associating the information of the anti-counterfeiting clear code and the anti-counterfeiting hidden code based on the associated content and storing it in an anti-counterfeiting database.
[0016] By adopting the above technical solution, the first element set is encoded into a computer-readable format, improving the machine recognition efficiency of the label, hiding the second element set in the form of a hidden code, and enhancing the confidentiality of the label. A silver-scraping layer is provided to shield the hidden code, further improving the security. By establishing the information association between the clear code and the hidden code in the database, a comprehensive constraint record of the label content is realized, and multiple pieces of information are required for verification during verification, effectively enhancing the anti-counterfeiting intensity.
[0017] Optionally, after associating the information of the anti-counterfeiting clear code and the anti-counterfeiting hidden code, it further includes: when receiving a verification request for verifying the anti-counterfeiting clear code, parsing the anti-counterfeiting clear code to obtain the anti-counterfeiting hidden code corresponding to the anti-counterfeiting clear code, and displaying an anti-counterfeiting verification box; receiving the verification hidden code input by the user in the anti-counterfeiting verification box; comparing the verification hidden code with the anti-counterfeiting hidden code to determine whether the verification hidden code is the same as the anti-counterfeiting hidden code; if the verification hidden code is the same as the anti-counterfeiting hidden code, output a verification success prompt; if the verification hidden code is not the same as the anti-counterfeiting hidden code, output a verification failure prompt.
[0018] By adopting the above technical solution, parsing the anti-counterfeiting hidden code corresponding to the plain code in the verification request can effectively obtain the original hidden code information required for subsequent comparison. Setting up a verification box to control and guide users to correctly input the hidden code avoids the verification difficulties caused by random input. Comparing and verifying the element content of the hidden code and the original hidden code one by one can effectively check the accuracy of the user input and ensure the reliability of the verification result. Giving a clear verification success or failure prompt according to the comparison result completes the entire anti-counterfeiting verification process, realizing precise control and structured verification of the anti-counterfeiting verification process, which not only facilitates user operation but also ensures the accuracy of the verification result.
[0019] In the second aspect of the present application, an anti-counterfeiting system based on associated information processing is provided. The system includes: An element collection module for collecting an initial element set randomly printed by an inkjet printer; An element arrangement module for arranging the initial element set according to a preset rule to obtain a first element set; An element calculation module for performing calculations on the first element set according to a preset operation rule to obtain a second element set corresponding to the first element set; An information association module for converting the first element set into an anti-counterfeiting plain code, using the second element set as an anti-counterfeiting hidden code, and associating the anti-counterfeiting plain code and the anti-counterfeiting hidden code.
[0020] In the third aspect of the present application, a computer storage medium is provided. The computer storage medium stores multiple instructions, and the instructions are suitable for being loaded and executed by a processor to perform the above method steps.
[0021] In the fourth aspect of the present application, an electronic device is provided, including: a processor and a memory; wherein, the memory stores a computer program, and the computer program is suitable for being loaded and executed by the processor to perform the above method steps.
[0022] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. In the present application, by collecting a random initial element set and arranging and calculating the initial element set according to preset rules, this solution for generating anti-counterfeiting labels based on random initial elements, compared with using fixed codes and identifiers, enhances the unpredictability and anti-counterfeiting difficulty of anti-counterfeiting labels, can prevent the labels from being simply scanned and copied, and then associating the anti-counterfeiting plain code and the anti-counterfeiting hidden code after calculation, so that the correct matching plain code needs to be input when verifying the hidden code, increasing the difficulty of cracking the label and improving the anti-counterfeiting effect; 2. This application utilizes the random printing function of the inkjet printer to generate random printing information on the target medium. Compared with the fixed - code anti - counterfeiting labels in the background art, it increases the randomness and unpredictability of the initial elements. Then, through the application of scanning and character recognition technologies, the initial element set is accurately obtained from the random printing information, providing a random element source for the subsequent generation of anti - counterfeiting labels and improving the anti - counterfeiting strength of the labels. 3. The dual - element combination operation in this application improves the conversion randomness and enhances the anti - counterfeiting strength. Then, by introducing the character mapping relationship, the intermediate results of the operation can be further disrupted, hiding the numerical correspondence between elements and countering reverse cracking. Through the second element set obtained by character mapping, the correspondence relationship with the initial element set becomes more complex and difficult to deduce, greatly increasing the anti - counterfeiting difficulty. Description of the Drawings
[0023] Figure 1 is a schematic flowchart of an anti - counterfeiting method based on associated information processing provided by an embodiment of this application; Figure 2 is a schematic diagram of the modules of an anti - counterfeiting system based on associated information processing provided by an embodiment of this application; Figure 3 is a schematic structural diagram of an electronic device provided by an embodiment of this application.
[0024] Description of the reference numerals: 300, electronic device; 301, processor; 302, communication bus; 303, user interface; 304, network interface; 305, memory. Detailed Embodiments
[0025] In order to enable those skilled in the art to better understand the technical solutions in this specification, the following will clearly and completely describe the technical solutions in the embodiments of this specification in conjunction with the accompanying drawings in the embodiments of this specification. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all of the embodiments.
[0026] In the description of the embodiments of this application, words such as "for example" or "for illustration" are used to indicate examples, illustrations, or explanations. Any embodiment or design solution described as "for example" or "for illustration" in the embodiments of this application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Exactly speaking, the use of words such as "for example" or "for illustration" is intended to present relevant concepts in a specific manner.
[0027] In the description of the embodiments of the present application, the term "plurality" means two or more. For example, a plurality of systems means two or more systems, and a plurality of screen terminals means two or more screen terminals. In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. The terms "comprise", "include", "have" and their variants all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0028] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments.
[0029] Please refer to Figure 1 , and a flowchart of an anti-counterfeiting method based on associated information processing is specifically proposed. This method can be implemented depending on a computer program, can be implemented depending on a single-chip microcomputer, or can run on an anti-counterfeiting system based on associated information processing. This computer program can be integrated in an intelligent control device or can run as an independent tool-class application. Specifically, this method includes steps 10 to 40, and the above steps are as follows: Step 10: Collect the initial element set randomly printed by the inkjet printer.
[0030] The embodiments of the present application can be applied to various scenarios that require anti-counterfeiting. The main application scenarios include but are not limited to the field of commodity anti-counterfeiting, etc., and are not limited herein. For example, on the packaging or label of various commodities, this method can be used to generate anti-counterfeiting labels containing a random initial element set, increasing the difficulty of distinguishing the authenticity of commodities and preventing counterfeit products from entering the market.
[0031] In the embodiments of the present application, the inkjet printer refers to a device that can generate an initial information set containing random elements through its random and automated printing function. For example, a printing control program can be pre-written in the inkjet printer, and parameters such as the range of printed elements, random selection elements, and permutation and combination rules are defined in this program. During actual use, the preset printing control program is imported into the inkjet printer, and the inkjet printer automatically performs random selection and printing of elements according to the program. The initial element set is randomly generated by the inkjet printer and is the original material source for generating anti-counterfeiting labels, providing random elements for the subsequent generation of clear codes and hidden codes.
[0032] Specifically, in order to improve the unpredictability and anti-counterfeiting intensity of the anti-counterfeiting label, a random set of initial elements needs to be obtained as the original material for label generation. In this embodiment, an inkjet printer is used to randomly spray code on the surface of the target medium to obtain the spray printing information containing multiple random elements. Then, by scanning the spray printing information and identifying the characters, the initial random element set is accurately extracted therefrom. Using the random spray printing function of the inkjet printer to obtain the initial element set not only ensures the randomness of the initial elements but also realizes the automation of element collection, avoiding the uncertainty of manual input. Different from the fixed spray coding mode, random spray printing can generate a unique initial element set each time, greatly enhancing the unpredictability and anti-counterfeiting performance of the final label.
[0033] Based on the above embodiment, as an alternative embodiment, the step of collecting the initial element set randomly spray printed by the inkjet printer may further include the following steps: Step 101: Obtain the spray printing information randomly spray printed by the inkjet printer onto the target medium.
[0034] Specifically, in order to generate an initial element set containing random elements, it is necessary to control the inkjet printer to achieve random spray printing. In this embodiment, first, the target medium for spray printing is determined according to the anti-counterfeiting requirements, and then by writing a spray printing control program and importing it into the inkjet printer, the inkjet printer can automatically perform random spray printing on the surface of the target medium. The spray printing content may include randomly generated characters, graphics, numbers, symbols, etc., and finally, spray printing information containing a large number of random elements is obtained on the target medium.
[0035] Step 102: Scan the spray printing information to obtain a scan result.
[0036] Step 103: Based on character recognition technology, identify the characters in the scan result to obtain the initial element set.
[0037] Specifically, after obtaining the random spray printing information, in order to accurately extract the initial random element set for generating the anti-counterfeiting label from it, it is necessary to scan and identify the spray printing information. In this embodiment, an image scanner or an optical recognition device is used to perform high-definition scanning on the spray printing information to obtain a scanned digital image containing elements such as numbers and symbols. Then, based on mature character recognition technologies such as OCR, all the character information in the scanned image is automatically recognized, and these random characters are combined to form the initial element set. Effectively obtaining all the initial random elements contained in the spray printing information avoids the omissions or errors that are likely to occur in direct manual extraction and input. Using mature character recognition technology can ensure the accurate and efficient acquisition of the initial element set, laying a foundation for generating anti-counterfeiting labels with strong randomness.
[0038] Step 20: Arrange the initial element set according to a preset rule to obtain the first element set.
[0039] Specifically, after obtaining the initial random element set, embodiments of the present application can design various permutation rules, such as alternating numbers, lexicographical sorting, odd-even grouping, etc. The initial element set is arranged and combined according to the set rules, and a first element set containing the initial elements but with the order adjusted is output. Performing rule-based permutation can maintain the randomness of the initial element set while endowing the first element set with a certain order rule. This provides a basis for generating the final anti-counterfeiting code according to the operation requirements, and adjusting the element order further increases the randomness and unpredictability of the result.
[0040] Based on the above embodiments, as an optional embodiment, the step of obtaining the first element set by arranging the initial element set according to a preset rule may further include the following steps: Step 201: Randomly select several target elements from the initial element set.
[0041] Step 202: Sort and number each target element to obtain the numbers of each target element.
[0042] Specifically, to further increase the complexity of the change of the first element set, several elements can be randomly selected as target elements from the obtained initial element set by using a random algorithm. In this embodiment, N elements can be randomly selected from the initial element set as target elements according to a certain rule. Then, these target elements are sorted, and can be sorted according to lexicographical order, numerical size or other rules, and a number is assigned to the sorted target elements. In this way, each target element corresponds to a unique number. This solution randomly selects and sorts the target elements again, introducing an order number factor into the first element set while maintaining the randomness of the initial element set, and hiding the final number at the same time, increasing the difficulty of generating the anti-counterfeiting label.
[0043] Step 203: Arrange the target elements corresponding to each number according to a preset rule to obtain an element array, and use the element array as the first element set. The preset rule includes a preset array and the numbers corresponding to each position in the array.
[0044] Specifically, after sorting and numbering the target elements, in order to form an association between these target elements and their corresponding numbers, further combined arrangement is required. Embodiments of the present application preset certain arrangement rules, such as setting a 2×5 element array template and the numbers corresponding to each position. Then, according to the preset element array template, the sorted target elements are placed in the array positions that match their numbers. If the number of target elements is less than the number of array positions, the target elements can be reused for filling, and finally an element array with a strict corresponding relationship between the target elements and the array positions is formed. This arrangement rule needs to be kept confidential, and during verification, it is necessary to reverse-deduce the arrangement positions and relationships based on the target elements to obtain the correct first element set, further increasing the anti-counterfeiting difficulty.
[0045] Step 30: Perform operations on the first element set according to a preset operation rule to obtain a second element set corresponding to the first element set.
[0046] Specifically, after obtaining the first element set arranged according to the rule, in order to further generate associated anti-counterfeiting visible codes and hidden codes, it is necessary to process the first element set according to a preset operation rule. Embodiments of the present application can set various operation algorithms, such as hash operation, exclusive-or encoding, matrix transformation, or mathematical operations of addition, subtraction, multiplication, and division. Taking the first element set as input and processing it according to the set operation rule, a second element set after operation conversion is finally output. The second element set has a corresponding relationship with the first element set, but after the operation conversion, it is no longer exactly the same as the first element set. Through the preset operation processing, the first element set can be further scrambled to generate a second element set that is related to but different from the first element set. This provides a complex associated combination for subsequent generation of visible and hidden codes, greatly enhancing the anti-counterfeiting difficulty.
[0047] Based on the above embodiments, as an alternative embodiment, the step of performing operations on the first element set according to a preset operation rule to obtain a second element set corresponding to the first element set may further include the following steps: Step 301: Determine the operation objects corresponding to each first element in the first element set according to the preset operation rule, and the operation symbols between each first element and the corresponding operation objects.
[0048] Specifically, after obtaining the first element set, in order to perform subsequent preset operations to generate the second element set, it is necessary to first determine the operation object and operation method of each first element. In this embodiment, an operation rule can be preset in advance, and the operation object of each element in the first element set is defined in this rule. For example, the operation object corresponding to element A is element B. At the same time, the operation symbol corresponding to each first element is also defined. For example, A performs an addition operation with B. The determination of the operation object and operation symbol can also be automatically generated according to a certain algorithm and kept confidential from the outside. By clearly defining the operation object and operation process of each first element, precise operation control of the first element set is achieved, providing a standardized operation basis for subsequent generation of the second element set.
[0049] Step 302: Perform operations on each first element and the corresponding operation objects according to each operation symbol to obtain the second element set after operation.
[0050] Specifically, after clarifying the operands and operators of each element in the first element set, the second element set can be generated according to a preset rule. In this embodiment, each element in the first element set is taken out in sequence, its corresponding operand is found, and then the two elements are operated according to a predetermined operator, such as addition, subtraction, etc. The operation result forms a new element value. The new element values obtained by operating all the first elements are recombined to form a second element set containing the elements after operation conversion. This operation process not only realizes the conversion from the first element set to the second element set, but also associates the two element sets through a preset operation rule. During verification, the correct first element set and the operation process during input need to be provided simultaneously to obtain a matching second element set, greatly increasing the anti-counterfeiting difficulty.
[0051] Exemplarily, the first element set can be composed of elements in two rows and five columns. For example, the first row is: 0, 5, 3, 2, 1, and the second row is 6, 7, 9, 8, 4. The operation rule can be that the elements in each row corresponding to the same column are mutual operands, and the operation symbol is subtraction. Then the obtained second element set after operation is: 6, 2, 6, 6, 3.
[0052] Based on the above embodiment, as an optional embodiment, the step of obtaining the second element set after operation by operating each first element and its corresponding operand according to each operator may further include the following steps: Step 3021: Operate each first element and its corresponding operand according to each operator to obtain a set of element sets after operation.
[0053] Step 3022: Perform mapping conversion on each element in the set of element sets based on a preset character mapping table to obtain the second element set.
[0054] Specifically, first, according to the preset operation rule, arithmetic operations are performed on each element in the first element set and its corresponding operand to calculate a set of element values after operation. Then, in order to further increase the conversion difficulty, a mapping comparison table between characters and numbers can be established, which maps and converts the numerical results after a set of arithmetic operations into corresponding characters or symbols through a preset random mapping relationship. In this embodiment, after obtaining a set of numerical element sets after operation, according to the pre-established character mapping relationship, the numerical element sets are mapped and converted into a second element set composed of character elements. Introducing character mapping conversion secures the intermediate results of arithmetic operations and also disrupts the numerical correspondence between elements, counteracting reverse derivation. The final character-based second element set is more complexly associated with the initial first element set, enhancing the anti-counterfeiting strength.
[0055] Step 40: Convert the first element set into an anti-counterfeiting plain code, use the second element set as an anti-counterfeiting cipher code, and perform information association on the anti-counterfeiting plain code and the anti-counterfeiting cipher code.
[0056] Specifically, after obtaining the second element set converted by preset rule operations, further processing needs to be performed on the first element set and the second element set. In this embodiment, the first element set arranged by rules is directly used as the clear code part of the anti-counterfeiting label and is represented in plain text form. This clear code can be displayed in the form of a two-dimensional code. And the second element set with complex conversion is used as the encrypted code part corresponding to this label and is covered with silver scraping. At the same time, the corresponding relationship information between the first element set and the second element set is added to the label to establish an information association between the clear code and the encrypted code. In this way, when verifying anti-counterfeiting, it is necessary to calculate and pair the matching second element set by inputting the clear code first element set to pass the verification, which increases the anti-counterfeiting difficulty.
[0057] Based on the above embodiment, as an alternative embodiment, the step of converting the first element set into an anti-counterfeiting clear code, using the second element set as the anti-counterfeiting encrypted code, and performing information association between the anti-counterfeiting clear code and the anti-counterfeiting encrypted code may further include the following steps: Step 401: Convert each first element in the first element set into a preset coding format to obtain a first coding set.
[0058] Step 402: Encode the first coding set to obtain an anti-counterfeiting clear code.
[0059] Specifically, for the convenience of quick and automatic recognition, the first element set composed of characters or numbers needs to be converted into a computer-readable coding format. In this embodiment, for each first element in the first element set, encoding can be performed according to a preset coding rule, such as using ASCII coding, etc., and finally a first coding set composed of corresponding coding values is obtained. Then, the sequence of coding values in the converted first coding set is encoded again according to the coding structure requirements of the two-dimensional code to generate two-dimensional code image data with the first coding set as the content. Finally, the two-dimensional code image is formed into an anti-counterfeiting clear code that can be scanned and read on the product surface by means of printing or laser engraving, etc.
[0060] Step 403: Use the second element set as the anti-counterfeiting encrypted code, and an anti-counterfeiting verification identifier is set on this anti-counterfeiting encrypted code.
[0061] Step 404: Based on the associated content, perform information association between the anti-counterfeiting clear code and the anti-counterfeiting encrypted code, and store them in the anti-counterfeiting database.
[0062] Specifically, in order to hide the second element set, this embodiment sets an anti-counterfeiting verification mark on the product label. The anti-counterfeiting verification mark can be in various styles, which is not limited here. For example, a scratch-off silver layer can be set on the product label, and the second element set is printed under the scratch-off silver layer to form an anti-counterfeiting hidden code; a QR code can also be set on the product label, that is, the second element set is converted into the form of a QR code, which can also form an anti-counterfeiting hidden code. Among them, taking the scratch-off silver layer as an example, since the scratch-off silver layer can block the view of the hidden code, only by scratching off the scratch layer can the code be read. This further improves the confidentiality and security of the anti-counterfeiting label. Then, all the clear code information, hidden code information of the label and their associated content are stored and entered into the background anti-counterfeiting database. During verification, it is necessary to query the label record consistent with the scanned clear code in the database and calculate the matching hidden code according to the associated content to pass the verification, realizing multiple bindings for anti-counterfeiting.
[0063] Based on the above embodiments, as an optional embodiment, when performing anti-counterfeiting verification in actual application, the following steps may further be included: Step 501: When receiving a verification request for verifying the anti-counterfeiting clear code, parse the anti-counterfeiting clear code to obtain the anti-counterfeiting hidden code corresponding to the anti-counterfeiting clear code, and display an anti-counterfeiting verification box.
[0064] Step 502: Receive the verification hidden code input by the user in the anti-counterfeiting verification box.
[0065] Specifically, when receiving a request from the user to verify the clear code of the product anti-counterfeiting label, it is necessary to first parse the anti-counterfeiting clear code, and obtain the hidden code element information corresponding to the clear code through a preset decryption algorithm or other means. After obtaining the hidden code information, an anti-counterfeiting verification operation page will be generated, which contains a verification input box for the user to submit the verification hidden code, so that the user can correctly input the hidden code content. The user can accurately input the corresponding verification hidden code in the verification input box on the page according to the anti-counterfeiting label hidden code elements on the product package. In another feasible embodiment, when the user needs to verify the anti-counterfeiting clear code, after receiving the verification request, it can also actively push and actively compare the subsequent verification hidden code with the anti-counterfeiting hidden code, and actively give a prompt after obtaining the verification result. Step 503: Compare the verification hidden code with the anti-counterfeiting hidden code to determine whether the verification hidden code is the same as the anti-counterfeiting hidden code.
[0066] Step 504: If the verification hidden code is the same as the anti-counterfeiting hidden code, output a verification success prompt.
[0067] Step 505: If the verification hidden code is not the same as the anti-counterfeiting hidden code, output a verification failure prompt.
[0068] Specifically, after receiving the verification password submitted by the user, it will be compared and verified one by one with the original anti-counterfeiting password obtained previously. In the comparison process, it is necessary to judge one by one according to the generation rule of the password whether the elements of the verification password that are the same as the anti-counterfeiting password are exactly the same, including the matching of the number, content, combination order, etc. of the elements. If the composition of the verification password in all elements is exactly the same as the anti-counterfeiting password, it can be determined that the two passwords are the same, and the verification is successful; if there is any mismatch in terms of the content, number, order, etc. of the elements, it can be determined that the two passwords are different, and the verification fails. Finally, the system will return a clear prompt of successful or failed verification to the user according to the above comparison results to complete the entire anti-counterfeiting verification process. In this way, by gradually comparing the two clear passwords, the accuracy of the password input by the user can be effectively checked, avoiding false verification, and thus ensuring the reliability of the verification result. This verification technical solution realizes the anti-counterfeiting verification of exact matching and provides an important guarantee for the authenticity identification of products.
[0069] Please refer to Figure 2 , which is a schematic diagram of an anti-counterfeiting system module based on associated information processing provided by an embodiment of the present application. The anti-counterfeiting system based on associated information processing may include: an element collection module, an element arrangement module, an element calculation module, and an information association module, where: The element collection module is used to collect the initial element set randomly printed by the inkjet printer; The element arrangement module is used to arrange the initial element set according to a preset rule to obtain a first element set; The element calculation module is used to perform operations on the first element set according to a preset operation rule to obtain a second element set corresponding to the first element set; The information association module is used to convert the first element set into an anti-counterfeiting clear password, use the second element set as an anti-counterfeiting password, and perform information association on the anti-counterfeiting clear password and the anti-counterfeiting password.
[0070] Optionally, the element collection module is further used to obtain the printing information randomly printed by the inkjet printer on the target medium; scan the printing information to obtain a scanning result; and identify the characters in the scanning result based on character recognition technology to obtain an initial element set.
[0071] Optionally, the element arrangement module is further used to randomly select several target elements in the initial element set; sort and number each target element to obtain the numbers of each target element; arrange the target elements corresponding to each number according to a preset rule to obtain an element array, and use the element array as the first element set, and the preset rule includes a preset array and the numbers corresponding to each position in the array.
[0072] Optionally, the element calculation module is further configured to determine the operation objects corresponding to the first elements in the first element set according to a preset operation rule, and the operators for each of the first elements and the corresponding operation objects; perform operations on each of the first elements and the corresponding operation objects according to each of the operators to obtain a second element set after the operation.
[0073] Optionally, the element calculation module is further configured to perform operations on each of the first elements and the corresponding operation objects according to each of the operators to obtain a set of elements after the operation; perform mapping conversion on each element in the set of elements based on a preset character mapping table to obtain a second element set.
[0074] Optionally, the information association module is further configured to convert each first element in the first element set into a preset encoding format to obtain a first encoding set; encode the first encoding set to obtain an anti-counterfeiting clear code, where the anti-counterfeiting clear code is a primary verification code; use the second element set as an anti-counterfeiting hidden code, and an anti-counterfeiting verification identifier is set on the anti-counterfeiting hidden code; perform information association on the anti-counterfeiting clear code and the anti-counterfeiting hidden code based on the associated content and store them in an anti-counterfeiting database.
[0075] Optionally, an anti-counterfeiting system based on associated information processing further includes an anti-counterfeiting verification module. When receiving a verification request for verifying the anti-counterfeiting clear code, the anti-counterfeiting verification module is further configured to parse the anti-counterfeiting clear code to obtain an anti-counterfeiting hidden code corresponding to the anti-counterfeiting clear code, and display an anti-counterfeiting verification box; receive a verification hidden code input by a user in the anti-counterfeiting verification box; compare the verification hidden code with the anti-counterfeiting hidden code to determine whether the verification hidden code is the same as the anti-counterfeiting hidden code; if the verification hidden code is the same as the anti-counterfeiting hidden code, output a verification success prompt; if the verification hidden code is not the same as the anti-counterfeiting hidden code, output a verification failure prompt.
[0076] It should be noted that when the system provided in the above embodiment realizes its functions, only the division of the above function modules is used for illustration. In actual applications, the above functions can be allocated to different function modules according to needs, that is, the internal structure of the device is divided into different function modules to complete all or part of the functions described above. In addition, the system and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0077] An embodiment of the present application further provides a computer storage medium, which can store multiple instructions. The instructions are suitable for being loaded and executed by a processor to perform an anti-counterfeiting method based on associated information processing in the above embodiment. The specific execution process can refer to the specific description in the above embodiment and will not be repeated here.
[0078] Please refer toFigure 3 This application also discloses an electronic device. Figure 3 It is a schematic structural diagram of an electronic device disclosed in an embodiment of this application. The electronic device 300 may include: at least one processor 301, at least one network interface 304, a user interface 303, a memory 305, and at least one communication bus 302.
[0079] Among them, the communication bus 302 is used to realize the connection and communication between these components.
[0080] Among them, the user interface 303 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 303 may further include a standard wired interface and a wireless interface.
[0081] Among them, the network interface 304 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
[0082] Among them, the processor 301 may include one or more processing cores. The processor 301 uses various interfaces and lines to connect various parts within the entire server, and by running or executing instructions, programs, code sets, or instruction sets stored in the memory 305, as well as calling data stored in the memory 305, it executes various functions of the server and processes data. Optionally, the processor 301 may be implemented in at least one of the following hardware forms: Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 301 may integrate a combination of one or several of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user interface, and application programs, etc.; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communication. It can be understood that the above modem may not be integrated into the processor 301 and may be implemented separately by a single chip.
[0083] Among them, the memory 305 may include a Random Access Memory (RAM), or may also include a Read-Only Memory. Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area. Among them, the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments. Optionally, the memory 305 may also be at least one storage device located far from the aforementioned processor 301. Refer to Figure 3 , in the memory 305 as a computer storage medium, an operating system, a network communication module, a user interface module, and an application program for an anti-counterfeiting method based on associated information processing may be included.
[0084] In Figure 3 the electronic device 300 shown, the user interface 303 is mainly used to provide an input interface for the user to obtain user input data; while the processor 301 can be used to call the application program for the anti-counterfeiting method based on associated information processing stored in the memory 305. When executed by one or more processors 301, the electronic device 300 is caused to execute one or more of the methods as described in the above embodiments. It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0085] In the above embodiments, the descriptions of the respective embodiments have their own emphases. For parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0086] In several implementation manners provided by the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other can be through some service interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical or other form.
[0087] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0088] In addition, each functional unit in various embodiments of the present application can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0089] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in various embodiments of the present application. And the aforementioned memory includes: various media such as USB flash drives, mobile hard disks, magnetic disks, or optical discs that can store program codes.
[0090] The above are only exemplary embodiments of the present disclosure and should not be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made in accordance with the teachings of the present disclosure still fall within the scope covered by the present disclosure. Those skilled in the art will easily think of other implementation schemes of the present disclosure after considering the specification and the disclosure of the practical truth.
[0091] The present application aims to cover any variations, uses, or adaptive changes of the present disclosure. These variations, uses, or adaptive changes follow the general principles of the present disclosure and include common general knowledge or conventional technical means in the technical field not recorded in the present disclosure. The specification and the embodiments are only regarded as exemplary, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. An anti-counterfeiting method based on associated information processing, characterized in that: The method comprises: Collect the initial set of elements randomly printed by the printer; Arranging the initial element set according to a preset rule to obtain a first element set; Determine, according to a preset operation rule, an operation object corresponding to each first element in the first element set, and an operator between each first element and the corresponding operation object; Perform operations on each of the first elements and the corresponding operands according to each of the operators to obtain a set of elements after the operations; Mapping and converting each element in the set of elements based on a preset character mapping table to obtain a second set of elements; The first element set is converted into an anti-counterfeiting plain code, the second element set is used as an anti-counterfeiting secret code, and the anti-counterfeiting plain code and the anti-counterfeiting secret code are informationally associated.
2. The anti-counterfeiting method based on associated information processing according to claim 1, characterized in that: Collect the initial set of elements randomly printed by the printer, including: Get the printing information randomly printed on the target medium by the inkjet printer; Scanning the printed information to obtain a scanning result; Characters in the scan result are recognized based on character recognition technology to obtain an initial element set.
3. The anti-counterfeiting method based on associated information processing according to claim 1, characterized in that: Arranging the initial element set according to a preset rule to obtain a first element set includes: Randomly selecting a number of target elements from the initial element set; Sort and number each of the target elements to obtain a number for each of the target elements; The target elements corresponding to the numbers are arranged according to a preset rule to obtain an element array, and the element array is used as a first element set. The preset rule includes a preset array and a number corresponding to each position in the array.
4. The anti-counterfeiting method based on associated information processing according to claim 1, characterized in that: The step of converting the first element set into an anti-counterfeiting plain code, using the second element set as an anti-counterfeiting secret code, and associating information between the anti-counterfeiting plain code and the anti-counterfeiting secret code includes: Convert each first element in the first element set into a preset coding format to obtain a first coding set; Encoding the first code set to obtain an anti-counterfeiting plain code; Using the second element set as an anti-counterfeiting code, and setting an anti-counterfeiting verification mark on the anti-counterfeiting code; The anti-counterfeiting plain code and the anti-counterfeiting secret code are associated with each other based on the associated content and stored in an anti-counterfeiting database.
5. The anti-counterfeiting method based on associated information processing according to claim 1, characterized in that: After associating the anti-counterfeiting plain code with the anti-counterfeiting secret code, the method further includes: When receiving a verification request for verifying the anti-counterfeiting plain code, parsing the anti-counterfeiting plain code, obtaining an anti-counterfeiting secret code corresponding to the anti-counterfeiting plain code, and displaying an anti-counterfeiting verification box; Receiving a verification code entered by a user in the anti-counterfeiting verification box; Comparing the verification code with the anti-counterfeiting code to determine whether the verification code is the same as the anti-counterfeiting code; If the verification code is the same as the anti-counterfeiting code, a successful verification prompt is output; If the verification code is different from the anti-counterfeiting code, a verification failure prompt is output.
6. An anti-counterfeiting system based on associated information processing, characterized in that: The system comprises: The element collection module is used to collect the initial element set randomly printed by the inkjet printer; An element arrangement module, used to arrange the initial element set according to a preset rule to obtain a first element set; an element calculation module, configured to determine, according to a preset calculation rule, an operation object corresponding to each first element in the first element set, and an operator between each first element and the corresponding operation object; perform operations on each first element and the corresponding operation object according to each operator to obtain a set of elements after the operations; and perform mapping conversion on each element in the set of elements based on a preset character mapping table to obtain a second element set; The information association module is used to convert the first element set into an anti-counterfeiting plain code, use the second element set as an anti-counterfeiting secret code, and perform information association between the anti-counterfeiting plain code and the anti-counterfeiting secret code.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method according to any one of claims 1 to 5.
8. An electronic device, characterized in that: It includes a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes the method as described in any one of claims 1-5.