Product traceability anti-counterfeiting method and system based on surface texture of code spraying area

CN122887490APending Publication Date: 2026-10-09GUANGZHOU CODPAD E-TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202610842167.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-11
Publication Date
2026-10-09

AI Technical Summary

Benefits of technology

[0028]若所述产品本身或者产品包装的表面具有足够的随机材质纹理,则本发明可直接将产品本身或者产品包装上的随机材质纹理用于溯源验证,从而大大降低方法应用的成本。而当产品本身或者产品包装的表面不具有足够的随机材质纹理时,本发明也可通过在所述产品的喷码区域喷涂添加有预设形状、大小和密度的纤维颗粒或纤维丝的背景涂层,从而形成足够的随机材质纹理,此方法可不受产品本身或者产品包装的材质限制,应用更加广泛。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122887490A_ABST
    Figure CN122887490A_ABST
Patent Text Reader

Abstract

The application provides a product traceability anti-counterfeiting method and system based on a code spraying area surface texture and a computer device, verification images containing a production date image and a code spraying background area image of a product or a packaging surface of the product are acquired, the code spraying background area image is divided into multiple background image blocks according to the position of the production date image in the verification image, a plurality of background image blocks are extracted according to a preset block extraction rule, feature extraction and coding are performed on a plurality of random material textures contained in each of the extracted background image blocks, and a product verification code corresponding to the random material textures is obtained. The product verification code is matched with a standard product verification code, and an anti-counterfeiting verification result of the product is obtained. The safety of product traceability anti-counterfeiting can be improved, the appearance of the product or the product packaging remains simple, and costs are saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of product traceability and anti-counterfeiting technology, specifically relating to a product traceability and anti-counterfeiting method and system based on the surface texture of the inkjet-printed area, and computer equipment. Background Technology

[0002] As living standards improve, consumers are demanding higher quality and safety from the products they purchase, and are increasingly concerned about the authenticity of the goods. Therefore, product traceability and anti-counterfeiting have always been a crucial aspect of product production and sales.

[0003] The typical product traceability and anti-counterfeiting method involves assigning each product a unique identifier, or product identification code, through a product traceability system. This product identification code is then converted into a special symbol or pattern and printed onto the product or its packaging using methods such as inkjet printing. After purchasing a product, consumers can scan this special symbol or pattern to restore the corresponding identification information. This information can then be used to search for the corresponding product record in the product traceability system, thereby verifying the product's authenticity. The drawback of this product traceability and anti-counterfeiting method is that the special symbol or pattern printed on the product or its packaging is easily copied and counterfeited, and the product identification code is easily cracked, resulting in relatively low security. Summary of the Invention

[0004] Therefore, the purpose of this invention is to provide a product traceability and anti-counterfeiting method based on the surface texture of the inkjet-printed area, which can greatly improve the security of product traceability and anti-counterfeiting.

[0005] Embodiments of the present invention provide a product traceability and anti-counterfeiting method based on the surface texture of the inkjet-printed area, characterized by comprising the following steps:

[0006] Acquire a verification image collected by the terminal, wherein the verification image is an image obtained by taking a picture of the inkjet printing area of ​​the production date of the product, and the verification image includes at least an image of the production date printed on the inkjet printing area and an image of the inkjet printing background area, and the image of the inkjet printing background area includes several random material textures of the surface material of the inkjet printing area. Based on the position of the production date image in the verification image, the inkjet background area image is divided into multiple background image blocks, and according to the preset block extraction rules, several background image blocks to be verified are extracted from the inkjet background area image. Based on the preset material texture feature encoding model, feature extraction and encoding are performed on several random material textures contained in the extracted background image block to obtain the product verification code corresponding to the background image block. The product verification code is matched with the standard product verification code to obtain the anti-counterfeiting verification result of the product. The standard product verification code is obtained by extracting and encoding the random material texture contained in the corresponding background image block according to the material texture feature encoding model when the product leaves the factory.

[0007] This invention acquires a verification image containing a production date image and a coding background area image from a terminal. Based on the position of the production date image in the verification image, the coding background area image is divided into multiple background image blocks. According to a preset block extraction rule, several background image blocks to be verified are extracted from the coding background area image. Based on a material texture feature encoding model, features are extracted and encoded from several random material textures contained in the background image blocks to obtain a product verification code corresponding to the random material texture. The product verification code is then matched with a standard product verification code to obtain the anti-counterfeiting verification result of the product.

[0008] Since the rules for dividing and extracting background image blocks are invisible to both the verifying user and illegal counterfeiters, and the entire inkjet-printed background area image contains several random material textures of the surface material, different division and selection methods will result in completely different random material textures in the extracted background image blocks. Product anti-counterfeiting and traceability verification is performed based on the random material textures of the extracted background image blocks. The verification information consists of the random material textures of each background image block, and by changing the position of the background image blocks, the position of the verified random material textures can be different, making it extremely difficult to copy and counterfeit, and greatly increasing the difficulty of cracking, thus improving the security of product traceability and anti-counterfeiting. Furthermore, since only production date information needs to be printed on the product or product packaging, the appearance of the product or product packaging remains simple, saving costs.

[0009] In one embodiment, before matching the product verification code with a standard product verification code to obtain the anti-counterfeiting verification result of the product, the method further includes the following steps: obtaining the product identification code of the product, and extracting the standard product verification code corresponding to the product from the traceability and anti-counterfeiting database deployed in the cloud based on the product identification code; or, obtaining an identifiable identifier set on the product that corresponds one-to-one with the product verification code, and obtaining the standard product verification code based on the identifiable identifier.

[0010] The standard product verification code can be stored in the cloud for better security; the standard product verification code can also be recorded through an identifiable identifier on the product, such as an RFID tag, a corresponding QR code with a storage link, or other dot matrix patterns.

[0011] In one embodiment, in the step of obtaining the standard product verification code based on the identifiable identifier, the identifiable identifier is a production date image sprayed on the production date area of ​​the product, the production date image being composed of several pattern dot matrices, and the standard product verification code is obtained after decoding the pattern dot matrices; or, the identifiable identifier is an RFID tag storing the standard product verification code, and the standard product verification code is read directly from the RFID tag.

[0012] The product's production date image is composed of several patterned dot matrix images. These dot matrix images are obtained by encoding the standard product verification code. The standard product verification code can be obtained by scanning the patterned dot matrix images with a terminal and then decoding them. Alternatively, the identifiable identifier can be an RFID tag storing the standard product verification code. The terminal can directly read the RFID tag to obtain the standard product verification code, which is very simple and convenient.

[0013] In one embodiment, when the identifiable identifier is a production date image sprayed in the inkjet printing area of ​​the product's production date, the method further includes the step of spraying the production date in the inkjet printing area of ​​the product's production date: converting the standard product verification code into an identifier expression in a number system other than decimal; replacing the numbers in the identifier expression with dots of different colors according to the correspondence between different numbers and colors to obtain an identifier code; arranging the identifier code into a pattern dot matrix of the production date to be printed on the product according to a preset rule; splitting the pattern dot matrix according to color to obtain multiple sets of printing dot matrices of different colors; distributing the multiple sets of printing dot matrices to printheads of corresponding ink colors, and spraying the production date in the inkjet printing area according to the printing dot matrix.

[0014] In the product manufacturing or packaging process, the inkjet printing background area image is divided into multiple background image blocks based on the location of the image to be printed with the production date. According to preset block extraction rules, several background image blocks to be verified are extracted from the inkjet printing background area image. Features of several random material textures contained in the extracted background image blocks are extracted and encoded to obtain a standard product verification code corresponding to each background image block. The standard product verification code is specially encoded to obtain a dot matrix pattern. This dot matrix pattern then forms the production date of the product and is printed on the product or its packaging at the location of the printed production date. A terminal can then capture and scan the production date image to decode and obtain the standard product verification code.

[0015] In one embodiment, converting the standard product verification code into an identifier expression in a base other than decimal includes: splitting the standard product verification code into individual characters / texts; obtaining the hexadecimal representation of each character / text in the ASCII code lookup table; converting the hexadecimal representation into a base other than decimal; and combining the base other than decimal representations corresponding to each character / text according to the combination order of the standard product verification code to obtain the identifier expression of the standard product verification code in a base other than decimal.

[0016] The dot matrix pattern is obtained by specially encoding the standard product verification code, which increases the difficulty of decoding the dot matrix pattern.

[0017] In one embodiment, the step of dividing the inkjet printing background area image into multiple background image blocks based on the position of the production date image in the verification image, and extracting several background image blocks to be verified from the inkjet printing background area image according to a preset block extraction rule includes: performing image correction on the verification image based on the position of the production date image in the verification image, and adjusting the rotation angle and image size of the verification image to match the production date image with a preset production date image correction template; dividing the inkjet printing background area image into multiple background image blocks, determining the position information of several background image blocks to be verified according to the preset block extraction rule, and extracting the corresponding background image blocks from the inkjet printing background area image according to the position information.

[0018] Image correction of the verification image based on the production date image correction template can improve the accuracy of identifying the random material texture. By setting the preset rules and obtaining the position information of several background image blocks, different background image blocks can be selected for encoding verification, thereby improving the security of the traceability and anti-counterfeiting verification method.

[0019] In one embodiment, the production date image contains a plurality of pattern dot matrices; the step of determining the position information of a plurality of background image blocks to be verified according to a preset block extraction rule includes: extracting the pattern dot matrices from the production date image; converting the pattern dot matrices into binary conversion codes of a preset length according to a preset conversion rule, and converting the conversion codes into position codes of at least two binary codes; obtaining the position information of at least two background image blocks according to the at least two position codes.

[0020] The position information of several background image blocks is bound to the pattern dot matrix of the production date image of the product. Since the pattern dot matrix of the production date image of each product is different, the position information of the background image blocks of each product is not completely the same, thereby greatly improving the security of the traceability and anti-counterfeiting verification method.

[0021] In one embodiment, the step of extracting and encoding features of several random material textures contained in the extracted background image blocks according to a preset material texture feature encoding model to obtain a product verification code corresponding to the random material textures includes: extracting and encoding features of the random material textures in each of the background image blocks to obtain at least a subset of corresponding product verification codes; and combining the subsets of product verification codes to obtain the product verification code.

[0022] By extracting and encoding features from various random material textures, a subset of product verification codes is obtained. Then, the various product verification code subsets are combined to obtain the product verification code, which greatly improves the security of the product verification code.

[0023] In one embodiment, the step of extracting the background image block corresponding to the location information from the inkjet background area image further includes: determining whether the location information of the background image block exceeds the image range of the verification image; if so, issuing a prompt message to reacquire the verification image; otherwise, extracting the background image block corresponding to the location information.

[0024] If the background area of ​​the inkjet printing is not fully captured, the verification may fail. Users can re-acquire the verification image and re-verify by following the prompts in this embodiment.

[0025] In one embodiment, the step of extracting and encoding features of several random material textures contained in the background image block to obtain the product verification code corresponding to the background image block includes: Take a neighborhood window centered on the key feature point P of the material texture; Within the neighborhood window, several pairs of pixels are selected according to a preset extraction rule; For each pair of pixels (p1, p2), if the gray value of p1 is greater than the gray value of p2, it is recorded as 1; otherwise, it is recorded as 0. Arrange all comparison results in order to form a binary signature; The binary feature codes corresponding to several key feature points in the background image block are combined to obtain a subset of product verification codes corresponding to the background image block.

[0026] By specially encoding the material texture of the background image blocks, the risk of verification failure due to material wear is greatly reduced.

[0027] In one embodiment, the random material texture of the surface material of the coding area of ​​the product includes at least one of the following: the random material texture is a material texture formed by the fiber particles or fiber filaments after a background coating containing randomly scattered fiber particles or fiber filaments is sprayed onto the coding area of ​​the product; the random material texture is the surface material texture of the product itself or the surface material texture of the product's packaging; the random material texture is a material texture formed by randomly scattered fluorescent fibers that appear under a preset wavelength of light irradiation; the random material texture is the surface material texture of the product's packaging, and the product's packaging material is a heat-shrinkable film mixed with randomly scattered fiber particles or fiber filaments during production.

[0028] If the surface of the product itself or its packaging has sufficient random material texture, the present invention can directly use the random material texture on the product itself or its packaging for traceability verification, thereby greatly reducing the cost of the method. When the surface of the product itself or its packaging does not have sufficient random material texture, the present invention can also form sufficient random material texture by spraying a background coating with fiber particles or filaments of a preset shape, size, and density onto the coding area of ​​the product. This method is not limited by the material of the product itself or its packaging and has a wider range of applications.

[0029] In one embodiment, the step of matching the product verification code with a standard product verification code to obtain the anti-counterfeiting verification result of the product includes: traversing the product verification code and the standard product verification code; if the matching ratio between the product verification code and the standard product verification code exceeds a preset threshold, then the product is determined to have passed the anti-counterfeiting verification, and the product traceability information corresponding to the product verification code is obtained; otherwise, the product is determined to have failed the anti-counterfeiting verification.

[0030] The product verification code is matched with the standard product verification code using a partial matching method. That is, if the matching rate exceeds a preset threshold, it is judged as passing the verification. This ensures the robustness of the traceability and anti-counterfeiting method and prevents verification failure due to wear and tear of the surface material texture.

[0031] Based on the same inventive purpose, the present invention also provides a product traceability and anti-counterfeiting system based on the surface texture of the inkjet-printed area, which can greatly improve the security of product traceability and anti-counterfeiting.

[0032] The product traceability and anti-counterfeiting system based on the surface texture of the inkjet-printed area includes: The verification image acquisition module is used to acquire the verification image collected by the terminal. The verification image is an image obtained by taking a picture of the inkjet printing area of ​​the production date of the product. The verification image includes at least the production date image printed on the inkjet printing area and the inkjet printing background area image. The inkjet printing background area image includes several random material textures of the surface material of the inkjet printing area. The block extraction module is used to divide the inkjet background area image into multiple background image blocks according to the position of the production date image in the verification image, and extract several background image blocks to be verified from the inkjet background area image according to the preset block extraction rules. The encoding module is used to extract and encode features of several random material textures contained in the extracted background image block according to a preset material texture feature encoding model, so as to obtain a product verification code corresponding to the background image block. The verification module is used to match the product verification code with the standard product verification code to obtain the anti-counterfeiting verification result of the product. The standard product verification code is obtained by extracting and encoding the random material texture contained in the corresponding background image block according to the material texture feature encoding model when the product leaves the factory.

[0033] Based on the same inventive purpose, the present invention also provides a computer device that, by applying the above-mentioned product traceability and anti-counterfeiting method based on the surface texture of the inkjet printing area, can also greatly improve the security of product traceability and anti-counterfeiting.

[0034] A computer device includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the product traceability and anti-counterfeiting method based on the surface texture of the inkjet-printed area as described above. Attached Figure Description

[0035] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0036] Figure 1 This is a flowchart of the product traceability and anti-counterfeiting method based on the surface texture of the inkjet-printed area provided in Embodiment 1 of the present invention; Figure 2 A schematic diagram illustrating an application scenario provided in Embodiment 1 of the present invention; Figure 3This is a schematic diagram of a random material texture in the verification image provided in Embodiment 1 of the present invention; Figure 4 This is a schematic diagram of another random material texture in the verification image provided in Embodiment 1 of the present invention; Figure 5 A schematic diagram of a production date image template provided in an embodiment of the present invention; Figure 6 This is a schematic diagram illustrating a method for dividing and selecting background image blocks according to an embodiment of the present invention; Figure 7 This is a schematic diagram of another method for dividing and selecting background image blocks according to Embodiment 1 of the present invention; Figure 8 A flowchart of the steps for obtaining the position information of background image blocks based on the pattern dot matrix constituting the production date, as provided in Embodiment 1 of the present invention; Figure 9 This is a flowchart of the steps for feature extraction and encoding of random material textures provided in Embodiment 1 of the present invention; Figure 10 This is a flowchart of the steps for converting a standard product verification code into a sprayed dot matrix pattern, as provided in Embodiment 2 of the present invention. Figure 11 This is a flowchart illustrating the steps of converting a standard product verification code into an identifier expression in a number system other than decimal, as provided in Embodiment 2 of the present invention. Figure 12 This is a schematic diagram of a product traceability and anti-counterfeiting system based on surface texture of the inkjet-printed area provided in Embodiment 3 of the present invention; Figure 13 This is a schematic diagram of the structure of the computer device provided in Embodiment 4 of the present invention. Detailed Implementation

[0037] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0038] The terminology used in this embodiment of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the invention. The singular forms “a” and “the” as used in the embodiments of the invention and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.

[0039] In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended claims. In the description of the present invention, it should be understood that the terms "first," "second," "third," etc., are used only to distinguish similar objects and are not necessarily used to describe a specific order or sequence, nor should they be construed as indicating or implying relative importance. Those skilled in the art can understand the specific meaning of the above terms in the present invention according to the specific circumstances.

[0040] Furthermore, in the description of this invention, unless otherwise stated, "multiple" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0041] It should be understood that although the terms first, second, third, etc., may be used in this invention to describe various information, this information should not be limited to these terms, and these terms are only used to distinguish similar objects, not necessarily to describe a specific order or sequence, nor should they be construed as indicating or implying relative importance. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances. Depending on the context, the word "if" as used in this invention can be interpreted as "when," "in response to a determination," or "when," or "in the event of a determination."

[0042] Example 1 To address the issues with existing product traceability and anti-counterfeiting methods, product identification codes are typically transformed into special symbols or patterns for concealment before being printed onto the product or its packaging. However, even these special symbols or patterns can still be copied and counterfeited. Furthermore, even when adding anti-counterfeiting layers to cover the product identification code and hide key information, these layers can be compromised, allowing the product identification code to be cracked.

[0043] Based on this, the present invention acquires a verification image containing a production date image and a coding background area image collected by a terminal. According to the position of the production date image in the verification image, the coding background area image is divided into multiple background image blocks. Then, according to a preset block extraction rule, several background image blocks to be verified are extracted from the coding background area image. Based on the material texture feature encoding model, features are extracted and encoded from several random material textures contained in the background image blocks to obtain a product verification code corresponding to the random material texture. Finally, the product verification code is matched with a standard product verification code to obtain the anti-counterfeiting verification result of the product. Since the rules for dividing and extracting background image blocks are invisible to both the verifying user and illegal counterfeiters, and the entire inkjet-printed background area image contains several random material textures of the surface material, different division and selection methods will result in completely different random material textures in the extracted background image blocks. Product anti-counterfeiting and traceability verification is performed based on the random material textures of the extracted background image blocks. The verification information consists of the random material textures of each background image block, and by changing the position of the background image blocks, the position of the verified random material textures can be different, making it extremely difficult to copy and counterfeit, and greatly increasing the difficulty of cracking, thus improving the security of product traceability and anti-counterfeiting. Furthermore, since only production date information needs to be printed on the product or product packaging, the appearance of the product or product packaging remains simple, saving costs.

[0044] Please see Figure 1 The embodiments of the present invention provide a product traceability and anti-counterfeiting method based on the surface texture of the inkjet-printed area, including the following steps S101-S104: Step S101: Obtain the verification image collected by the terminal, wherein the verification image is an image obtained by taking a picture of the inkjet printing area of ​​the production date of the product, and the verification image includes at least the production date image printed on the inkjet printing area and the inkjet printing background area image, and the inkjet printing background area image includes several random material textures of the surface material of the inkjet printing area.

[0045] Please see Figure 2One application scenario of the product traceability and anti-counterfeiting method of the present invention includes a printing device 101, an image acquisition device 102, a verification server 103, and a verification device 104. The printing device is used to print product information onto the product; the image acquisition device, such as a high-precision camera, is used to capture verification sample images of the printed product and upload them to the verification server; the verification server stores a verification database, and according to a preset material texture feature encoding model, the verification server extracts and encodes features of random material textures contained in the corresponding background image blocks of the verification sample image to obtain a standard product verification code, which is then stored in the verification database. A verification terminal, such as a user's mobile phone, is used to capture verification images of the product, upload them to the verification server, and send a verification request. After obtaining the verification image uploaded by the verification device, the verification server executes the product traceability and anti-counterfeiting method based on the surface texture of the inkjet-printed area of ​​the present invention, obtains the anti-counterfeiting verification result of the product, and sends the result and traceability information to the verification device for the user to view. In another embodiment, the standard product verification code can be made into an identifiable identifier set on the product. After the terminal captures the verification image of the product and decodes it to obtain the product verification code, it can then obtain the standard product verification code through the identifiable identifier, thus eliminating the need for a server to complete the anti-counterfeiting verification of the product.

[0046] Product information printed by the inkjet printing equipment can be printed on the product or product packaging. The product information may include one or more of the following: production date, product identification code, manufacturer, etc. In this invention, the inkjet printing equipment may also print a background coating on the product or product packaging. The background coating may have textured particles of random shape, size and density, such as fiber particles or fiber filaments, added in advance to generate random material textures in the inkjet background area image formed by the background coating.

[0047] The location where the printing equipment prints product information may be on the product itself or on the product packaging. Therefore, if the production date is printed on the product itself, the verification image is an image taken at the location where the production date is printed on the product itself. The verification image must include an image of the production date printed on the product itself and an image of the background area of ​​the printed code surrounding the production date image, i.e., a partial image of the surface material of the product itself.

[0048] If the production date is printed on the product packaging, the verification image is an image taken at the location where the production date is printed on the product packaging. The verification image must include an image of the production date printed on the product packaging and an image of the background area of ​​the printed code surrounding the production date image, i.e., a partial image of the surface material of the product packaging.

[0049] In this invention, the inkjet background area image contains several random material textures.

[0050] In one embodiment, such as Figure 3 As shown, the random material texture is the surface material texture of the product itself or the surface material texture of the product's packaging.

[0051] In this embodiment, the surface of the product or its packaging typically has a distinct surface texture, such as wood, fabric, leather, cardboard boxes, or paper bags. The surfaces of these goods or packaging are usually relatively rough and have a clear surface texture. The product traceability and anti-counterfeiting method of this invention can be directly implemented through these surface textures.

[0052] In another embodiment, such as Figure 4 As shown, the surface of the product or its packaging does not have a distinct surface texture, such as glass products, transparent plastic bags, or other materials with smooth surfaces, which typically lack a clear surface texture. In this case, a background coating containing randomly distributed fiber particles or filaments needs to be sprayed onto the coding area of ​​the product. The random texture is formed by the fiber particles or filaments in the background coating. When spraying the background coating, the fiber particles or filaments can have high contrast in the ink used to print the background coating; for example, the contrast is required to exceed a preset threshold to improve the accuracy of recognition.

[0053] When the fiber particles or filaments are added to the ink of the inkjet background coating, their density should be such that the resulting random material texture has a certain degree of separation, to avoid excessive stacking of fiber particles or filaments in the ink or in the inkjet background coating, and to ensure the randomness of the resulting material texture.

[0054] The background coating may not be printed on the location of the production date, or the production date may be printed on top of the background coating, provided that the surface texture of the background coating does not affect the photography or observation of the production date. Figure 4 As shown, the production date image and the inkjet background area image in the verification image may or may not overlap.

[0055] In another embodiment, the random texture is the surface texture of the product's packaging, and the packaging material is a heat-shrink film mixed with randomly dispersed fiber particles or filaments during production. When packaging the product, the product is wrapped in the heat-shrink film, then heated to shrink the film, which adheres to the outer contour of the product. The production date is then printed on the heat-shrink film.

[0056] The verification image is obtained by photographing the location of the production date printed on the heat-shrink film. The verification image includes at least the production date image printed on the heat-shrink film and an image of the background area surrounding the production date image. The background area image contains a random material texture formed by randomly distributed fibers mixed in during the production of the heat-shrink film. The verification image is then uploaded to the verification database of the backend system; alternatively, the background area image can be processed first to obtain the product verification code corresponding to the random material texture before uploading it to the verification database of the backend system.

[0057] If a counterfeiter were to attempt to replicate the fiber arrangement on the heat-shrink film (especially the random texture formed by the fiber arrangement near the production date), the probability would be infinitely close to 0.

[0058] This heat-shrink film can be applied to various types of products, such as packaging for high-end liquor bottles, high-value footwear, and IP figurines. Taking high-end liquor bottle packaging as an example, the heat-shrink film adheres tightly to the bottle. Currently, there are two main types of counterfeit liquor: one involves counterfeiters using micro-drilling technology to extract genuine liquor from genuine bottles and then pour it into fake bottles—a practice known as "fake bottle, real liquor"; the other involves counterfeiters pouring fake liquor into genuine bottles through micro-holes—a practice known as "genuine bottle, fake liquor." "Fake bottle, real liquor" has value in the consumer market because consumers often only need to verify the authenticity of the liquor; while "genuine bottle, fake liquor" has value in the collectible and investment market, where collectors and investors often only care about whether the bottle packaging is genuine. However, after applying this heat-shrink film and the product traceability and anti-counterfeiting method of this invention, counterfeiters will inevitably damage the heat-shrink film when drilling the bottle with a micro-drill. The micro-drill generates heat through friction with the heat-shrink film during rotation, inevitably destroying its original shape, making it easy to identify that the heat-shrink film has been drilled. Furthermore, if counterfeiters replace the heat-shrink film with another one, the product traceability and anti-counterfeiting method of this invention can identify that the packaging has been replaced. This poses a significant obstacle to counterfeiters using drilling techniques to extract wine.

[0059] Of course, in other embodiments, special materials can be used to make the fiber particles or filaments so that the random material texture in the background coating or the product packaging (such as heat shrink film) can only be photographed under specific conditions, such as under light of a specific wavelength. That is, the random material texture is a material texture formed by randomly scattered fluorescent fibers that appears under light irradiation of a preset wavelength. The fluorescent fibers are "invisible fibers" relative to natural light, and do not appear under natural light, but only appear under light irradiation of a preset wavelength, achieving a better anti-counterfeiting effect.

[0060] Furthermore, fibers that appear under natural light can be combined with fluorescent fibers that appear under the preset wavelength of light irradiation to form a double-layered anti-counterfeiting system with random textures, achieving better anti-counterfeiting and anti-copying effects.

[0061] Furthermore, the production date image can be constructed using a special encoding method. For example, the production date image can be a dot matrix pattern composed of multiple inkjet print patterns arranged in a specific way to form the corresponding production date, making the dot matrix pattern of each production date different, i.e., each production date pattern is unique. This binds the unique production date pattern to the irreproducible, randomly distributed fiber arrangement, forming an irreproducible data combination, achieving a further level of anti-counterfeiting and anti-copying effect. The unique production date pattern is also bound to the random material texture formed by the fiber arrangement surrounding the production date. When a consumer or inspector scans the production date with a smartphone, the encoded combination corresponding to the production date pattern and the random material texture formed by the fibers is uploaded to the backend system and compared with the encoded combination information recorded and stored during production. If the comparison is successful, it proves that the product is genuine; otherwise, it is counterfeit.

[0062] Furthermore, fibers that appear under natural light can be combined with fluorescent fibers that appear under the preset wavelength of light irradiation, along with a unique production date pattern, to form a triplet anti-counterfeiting structure, further enhancing the anti-counterfeiting, anti-copying, and product traceability effects.

[0063] Step S102: Based on the position of the production date image in the verification image, divide the inkjet background area image into multiple background image blocks, and extract several background image blocks to be verified from the inkjet background area image according to the preset block extraction rules.

[0064] The production date image is located within the verification image. Typically, the location of the production date image is used as a reference to further determine the range of the inkjet printing background area image of the verification image. For example, a range of the verification image with a preset length and width can be set, centered on the location of the production date image, and the range of the inkjet printing background area image can be determined by removing or not removing the production date image.

[0065] In this step, since the production date image contains textual information about the production date, image correction can be performed on the production date image and the verification image based on the textual information.

[0066] In one embodiment, a preset production date image correction template is provided. The production date image correction template is an image with a preset shape, size, and orientation. It may include text patterns containing the production date, or simply an image outline of the production date, to facilitate matching with different production date fonts. For example... Figure 5 As shown, the production date image correction template is a rectangular image with a resolution of 64*32, including the production date, product code, and the words "qualified". Its direction is determined by the direction of the production date text. The origin of the image is the center point of the rectangular outline, thus identifying the position of the production date image in the verification image. A range of verification images with a preset length and width is defined centered on this point, such as a range of verification images with a length and width of 128 centered on this point. This range, after removing or not removing the production date image, is used as the range of the inkjet printing background area image. Figure 6 As shown.

[0067] Based on this, the verification image can be corrected according to the position of the production date image in the verification image, and the rotation angle and image size of the verification image can be adjusted to match the production date image with the preset production date image correction template; then the inkjet background area image is divided into multiple background image blocks, and the position information of several background image blocks to be verified is determined according to the preset block extraction rules, and the corresponding background image blocks are extracted from the inkjet background area image according to the position information.

[0068] When dividing the inkjet printing background area image into multiple background image blocks, it can be based on certain division rules, such as dividing the inkjet printing background area image into 16 equal background image blocks, for example... Figure 6 As shown. The method of dividing the background image blocks can be set according to actual needs. It can be understood that the more background image blocks are divided, the more image block methods can be selected, and the greater the difficulty of cracking.

[0069] The location information of the background image blocks can be obtained by a preset block extraction rule. In different embodiments, the block extraction rule can be set according to actual needs. For example, fixed location information can be used as the location information of the background image blocks, and the corresponding background image blocks can be extracted from the fixed location information, such as selecting four background image blocks with fixed positions and no adjacent elements. Figure 6 , Figure 7As shown, blocks A, B, C, and D are the extracted background image blocks; alternatively, the location information of the extracted background image blocks can be bound to the product type or product packaging type, so different types of products or product packaging will obtain different background image block location information; or the location information of the extracted background image blocks can be bound to a specific product model, so different product models will obtain different background image block location information; or the location information of the extracted background image blocks can be bound to the production date or manufacturer, so different production dates or manufacturers will obtain different background image block location information. Examples are not listed here. Those skilled in the art can set block extraction rules for obtaining the location information of background image blocks according to their own product traceability and anti-counterfeiting needs, and disclose the block extraction rules only to the verification server to improve the security of the traceability and anti-counterfeiting verification process.

[0070] To make the verification information of the product traceability and anti-counterfeiting method of the present invention more difficult to copy and crack, and to improve the security of the traceability and anti-counterfeiting verification process, in one embodiment, the position information of the background image block is associated with the production date image sprayed on the product, and the production date image is set to contain a plurality of pattern dot matrices and hidden within the production date image.

[0071] In this embodiment, the production date image may contain several pattern dot matrices, which are arranged according to their position information relative to the background image blocks using corresponding conversion rules or conversion codes. The conversion rules or conversion codes are obtained using existing technologies, such as Chinese Patent CN118578779B, which discloses converting the product identification code into a preset format identification expression, i.e., a conversion code. This invention can replace the digital representation of the position information of the background image blocks with dot matrices of different colors, arranging them into pattern dot matrices representing the production date to be printed on the product, and then printing them onto the product. When it is necessary to obtain the position information of the background image blocks, the position information of the corresponding background image blocks is obtained by decoding the arrangement rules of the production date pattern dot matrices and the conversion rules of the implicit identification code.

[0072] like Figure 8 As shown, in this embodiment, the step of determining the location information of several background image blocks to be verified according to preset block extraction rules includes: Step S201: Extract the pattern dot matrix from the production date image; Step S202: According to the preset conversion rules, the pattern dot matrix is ​​converted into a binary conversion code with a preset length; Step S203: Convert the conversion code into at least two binary position codes; Step S204: Obtain the position information of at least two background image blocks based on at least two of the position codes.

[0073] In this embodiment, the position information of several background image blocks is obtained by decoding the pattern dot matrix of the production date. The pattern dot matrix of the production date can be set according to the position information, thus further improving the security of the traceability and anti-counterfeiting verification method.

[0074] In step S202, the method of converting the pattern dot matrix into binary conversion code can be determined according to the arrangement of the pattern dot matrix. In one embodiment, the pattern dot matrix consists of multiple dots of two different colors arranged in the stroke order of the characters for the production date. Dots of one color are converted to the number 0, and dots of the other color are converted to the number 1. Those skilled in the art can, based on the concept of this invention, implement the conversion of the pattern dot matrix into binary conversion code in different ways and with different conversion rules. For example, if the pattern dot matrix is ​​composed of line segments of varying lengths arranged in the stroke order of the characters for the production date, then longer lines can be converted to the number 1, shorter lines to the number 0, and so on.

[0075] In step S203, the rule for converting the conversion code into at least two binary position codes can be set according to specific requirements. One embodiment is equal division; for example, assuming the pattern dot matrix is ​​converted into a binary conversion code with a preset length of 52 bits, the conversion rule is to divide the binary conversion code into four equal groups of position codes. Then, the 52-bit binary conversion code can obtain 13-bit binary position codes in each group.

[0076] In step S204, the first 6 bits of each group of binary position codes represent the horizontal coordinate, and the last 7 bits represent the vertical coordinate. Each group of position codes may yield a point with an horizontal coordinate of 0-64 and a vertical coordinate of 0-128, which serves as the origin of an image block. If the position information of each background image block is set to a pixel block with an area of ​​9*9 pixels centered at the origin of the image block, then four background image blocks with an area of ​​9*9 pixels at different locations can be extracted from the inkjet background area image. The positions of the background image blocks may or may not overlap, without affecting the implementation of the present invention.

[0077] Of course, those skilled in the art can also set other rules to convert the conversion code into the position code as needed, such as extracting the number of bits of each position code from the binary conversion code at preset intervals, etc. The present invention will not give examples one by one.

[0078] In step S102, adjusting the rotation angle and image size of the verification image to match the production date image with the preset production date image correction template can be achieved by: First, adjust the rotation angle of the verification image according to the image orientation of the production date image correction template, so that the image orientation of the production date image in the verification image is the same as the image orientation of the production date image correction template; Then adjust the image size of the verification image so that the image size of the production date image in the verification image is the same as the image size of the production date image correction template.

[0079] The inkjet background area image and its random material texture in the verification image are also rotated and scaled with the verification image to keep the background image block consistent for each verification.

[0080] Then, based on the position information of the acquired background image blocks, the corresponding background image blocks are extracted from the inkjet printing background area image. When extracting the background image blocks, the position information of the background image blocks and the position information of the production date image need to undergo appropriate coordinate transformation to ensure that the position information of the background image blocks is distributed as close as possible to the production date image, and to extract the random material texture in the inkjet printing background area image as evenly as possible. The relevant coordinate transformation methods are existing technologies, and those skilled in the art can set them as needed.

[0081] Furthermore, since the verification image is typically captured by a user using a mobile device, there is a possibility that the background area of ​​the inkjet printing may not be fully captured, leading to verification failure. Therefore, in one embodiment, the step of extracting the background image block corresponding to the location information from the inkjet printing background area image further includes: Determine whether the position information of the background image block exceeds the image range of the verification image. If so, issue a prompt to reacquire the verification image; otherwise, extract the background image block corresponding to the position information.

[0082] The prompt to reacquire the verification image can be generated by the verification server and sent to the verification device that issued the verification image, such as the user's mobile phone.

[0083] In this step, if there is more than one location information for the background image block, at least two background image blocks corresponding to the location information are extracted from the inkjet background area image.

[0084] Step S103: Based on the preset material texture feature encoding model, extract and encode the features of several random material textures contained in the extracted background image block to obtain the product verification code corresponding to the background image block. Before extracting and encoding features of several random material textures contained in the background image block, the obtained background image block can be preprocessed first. The image preprocessing includes at least one of the following: image denoising, contrast enhancement, and deformation correction. Then, the preprocessed background image block is binarized to simplify the image information.

[0085] If there is more than one background image block, then the random material texture in each background image block is extracted and encoded to obtain at least one corresponding product verification code subset; then the product verification code subsets are combined to obtain the product verification code.

[0086] In step S103, in order to improve the efficiency of feature extraction and encoding, only the first m most significant material textures in the background image block can be identified, feature extracted and encoded.

[0087] The steps for feature extraction and encoding of several random material textures contained in the background image block include: Identify the top m most saliency material textures in the background image block, extract and encode features from the top m most saliency material textures to obtain m fixed-length feature codes; The m feature codes are combined to obtain the product verification code corresponding to the background image block.

[0088] The saliency of the material texture can be characterized by one or more pattern features of the material texture, including at least one of the following: pattern area, pattern length, pattern having corners, pattern having intersection points, pattern grayscale value, etc.

[0089] Identifying the top m most saliency material textures in the background image block includes one or more of the following methods: The following methods are used to identify the most significant textures in the background image block: identifying the largest texture area; identifying the longest texture length in the background image block; identifying the most significant textures with corners in the background image block; identifying the most significant textures with intersection points in the background image block; or identifying the most significant textures with the highest average grayscale value in the background image block.

[0090] When extracting and encoding features of several random material textures contained in the background image block, the selected encoding features may include at least one of the following: the direction value of the material texture, the coordinate value of the material texture, the coordinate value of the intersection point of the material texture, the angle value of the intersection of the material texture, and the average gray value of the material texture, etc., depending on the encoding rules.

[0091] Feature extraction and encoding can also be performed using at least one of the following methods: Obtain the direction value of the material texture, and convert the direction value into a binary feature code with a preset length; Obtain the coordinate values ​​of the material texture and convert the coordinate values ​​into binary feature codes with a preset length; Obtain the coordinate values ​​of several intersection points of the material textures, and convert the coordinate values ​​of the intersection points into binary feature codes with a preset length; Obtain the intersection angle values ​​of several material textures, and convert the angle values ​​into binary feature codes with a preset length; Obtain the average grayscale value of several material textures, and convert the average grayscale value into a binary feature code with a preset length.

[0092] In the background image block, the top m most saliency material textures are identified, and the vector features of the material textures are feature-encoded to obtain m fixed-length feature codes. Then, the m feature codes are combined to obtain the product verification code corresponding to the background image block.

[0093] For example, the four most saliency textures in a background image block are the four largest textures, and their direction values ​​are 30 degrees, 43 degrees, 50 degrees and 70 degrees off the X-axis, respectively. The direction values ​​obtained are 030, 043, 050 and 070. The direction values ​​are combined to form a digital feature code 030043050070. Each bit of the digital feature code is then converted into 4 bits and combined to obtain the product verification code subset corresponding to the background image block as 000000110000000001000011000001010000000001110000.

[0094] For example, if the most significant material texture in a background image block is a material texture with a corner, and the coordinates of the outermost pixel of the corner are (140, 175), then the obtained coordinate values ​​are 140, 175. The coordinate values ​​are combined to form a digital feature code 140175. Then, each bit of the digital feature code is converted into 4 bits and combined to obtain the product verification code subset corresponding to the background image block as 000101000000000101110101.

[0095] For example, the three most saliency textures in a background image block are the three textures with the largest average grayscale values, which are 223, 214, and 200 respectively. The average grayscale values ​​obtained are 223, 214, and 200. The values ​​in each direction are combined to form a digital feature code 223214200. Each bit of the digital feature code is then converted into 4 bits and combined to obtain the product verification code subset corresponding to the background image block as 001000100011001000010100001000000000.

[0096] In another embodiment, unique and stable corner points, i.e. key feature points of the material texture, such as the edges, intersections, and uneven areas of the material texture, can also be detected in the image of the material texture.

[0097] Then, by comparing the grayscale values ​​of random pixel pairs within the neighborhood of the key feature point, a binary feature code is generated. Please refer to [link / reference]. Figure 9 Specifically, it includes the following steps S301-S304: Step S301: Take a neighborhood window (e.g., 31×31 pixels) centered on the key feature point P of the material texture. Step S302: Select several pairs of pixels (e.g., 256 pairs of pixels, generating a 256-bit binary feature code) within the neighborhood window according to a preset extraction rule. Step S303: For each pair of pixels (p1, p2), if the gray value of p1 is greater than the gray value of p2, then record it as 1; otherwise, record it as 0. Step S304: Arrange all comparison results in order to form a binary feature code (256 bits).

[0098] The binary feature codes corresponding to several key feature points in the background image block are combined to obtain a subset of product verification codes corresponding to the background image block.

[0099] Those skilled in the art can also set specific feature extraction and encoding methods for the random material texture according to their needs, which will not be listed one by one in this invention.

[0100] Furthermore, if there are multiple background image blocks, the product verification code subsets corresponding to each background image block are combined to obtain the final product verification code.

[0101] S104. Match the product verification code with the standard product verification code to obtain the anti-counterfeiting verification result of the product. The standard product verification code is obtained by extracting and encoding the random material texture contained in the corresponding background image block according to the material texture feature encoding model when the product leaves the factory.

[0102] To ensure the robustness of the traceability and anti-counterfeiting method and prevent verification failure due to wear and tear of the surface material texture, in step S104, the product verification code is matched with the standard product verification code using a partial matching method. That is, if the matching rate exceeds a preset threshold, the verification is deemed successful.

[0103] Therefore, step S104 can be executed as follows: traverse the product verification code and the standard product verification code; if the matching ratio between the product verification code and the standard product verification code exceeds a preset threshold, then determine that the product has passed the anti-counterfeiting verification and obtain the product traceability information corresponding to the product verification code; otherwise, determine that the product has failed the anti-counterfeiting verification. The preset threshold can be set according to actual needs. For example, it can be set such that the identical parts of the standard product verification code and the product verification code reach more than 95% to determine that the product has passed the anti-counterfeiting verification; otherwise, it is determined that the anti-counterfeiting verification has failed.

[0104] Example 2 Based on the same inventive concept, Embodiment 2 of the present invention also provides another product traceability and anti-counterfeiting method based on the surface texture of the inkjet-printed area. The main difference from Embodiment 1 is that in this embodiment, the standard product verification code is not stored in the cloud, but is recorded in an identifiable identifier on the product. The terminal then obtains the standard product verification code by acquiring the identifiable identifier that corresponds one-to-one with the product verification code on the product.

[0105] Wherein, the identifiable identifier is a production date image sprayed on the inkjet printing area of ​​the production date on the product, the production date image being composed of several pattern dot matrices, and the standard product verification code is obtained after decoding the pattern dot matrices; or, the identifiable identifier is an RFID tag storing the standard product verification code, and the standard product verification code is read directly from the RFID tag.

[0106] When the identifiable identifier is an RFID tag storing the standard product verification code, the terminal can directly read the information in the RFID tag to obtain the standard product verification code. Furthermore, the standard product verification code stored in the RFID tag can be encrypted. The terminal reads the RFID tag to obtain the encrypted standard product verification code, but must follow a set decryption rule to retrieve the actual standard product verification code.

[0107] When the identifiable image is a production date image sprayed into the inkjet printing area of ​​the product's production date, the method further includes the step of spraying the production date into the inkjet printing area of ​​the product's production date, such as... Figure 10 As shown: S401, convert the standard product verification code into an identifier expression in a number system other than decimal; S402, based on the correspondence between different numbers and colors, replace the numbers in the identification expression with dots of different colors to obtain the identification code; S403, according to preset rules, arrange the identification code into a pattern dot matrix of the production date to be printed on the product; S404, the pattern dot matrix is ​​split according to color to obtain multiple sets of printing dot matrices of different colors; S405, Distribute multiple sets of the printed dot matrix to the print head corresponding to the ink color, and spray the production date in the coding area according to the printed dot matrix.

[0108] In the product manufacturing or packaging process, the inkjet printing background area image is divided into multiple background image blocks based on the location of the image to be printed with the production date. According to preset block extraction rules, several background image blocks to be verified are extracted from the inkjet printing background area image. Features of several random material textures contained in the extracted background image blocks are extracted and encoded to obtain a standard product verification code corresponding to each background image block. The standard product verification code is specially encoded to obtain a dot matrix pattern. This dot matrix pattern then forms the production date of the product and is printed on the product or its packaging at the location of the printed production date. A terminal can then capture and scan the production date image to decode and obtain the standard product verification code.

[0109] Furthermore, such as Figure 11 As shown, the steps for converting the standard product verification code into an identifier expression in a number system other than decimal include: S4011, the standard product verification code is split into individual characters / text; S4012, Obtain the hexadecimal representation of each character / text in the ASCII code lookup table; S4013, convert the hexadecimal representation to a base other than decimal; S4014, according to the combination order of the standard product verification code, combine the non-decimal base representations corresponding to each character / text to obtain the identification expression of the non-decimal base representation of the standard product verification code.

[0110] In this embodiment, the dot matrix pattern is obtained by specially encoding the standard product verification code, which increases the difficulty of decoding the dot matrix pattern.

[0111] Example 3 Based on the same inventive concept, Embodiment 3 of the present invention also provides a product traceability and anti-counterfeiting system based on the surface texture of the inkjet-printed area. The solution provided by this system is similar to the solution described in the above method. Therefore, the specific descriptions of one or more embodiments provided below can be found in the description of the product traceability and anti-counterfeiting method based on the surface texture of the inkjet-printed area above, and will not be repeated here.

[0112] Please see Figure 12 This embodiment provides a product traceability and anti-counterfeiting system 200 based on the surface texture of the inkjet-printed area, including: The verification image acquisition module 201 is used to acquire the verification image collected by the terminal. The verification image is an image obtained by taking a picture of the inkjet printing area of ​​the production date of the product. The verification image includes at least the production date image printed on the inkjet printing area and the inkjet printing background area image. The inkjet printing background area image includes several random material textures of the surface material of the inkjet printing area. The block extraction module 202 is used to divide the inkjet background area image into multiple background image blocks according to the position of the production date image in the verification image, and extract several background image blocks to be verified from the inkjet background area image according to the preset block extraction rules. The encoding module 203 is used to extract and encode features of several random material textures contained in the extracted background image block according to a preset material texture feature encoding model, so as to obtain a product verification code corresponding to the background image block. The verification module 204 is used to match the product verification code with the standard product verification code to obtain the anti-counterfeiting verification result of the product. The standard product verification code is obtained by extracting and encoding the random material texture contained in the corresponding background image block according to the material texture feature encoding model when the product leaves the factory.

[0113] It should be noted that the product traceability and anti-counterfeiting system based on surface texture of the inkjet-printed area provided in this embodiment of the invention is only illustrated by the above-described division of functional modules when executing the product traceability and anti-counterfeiting method. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. Furthermore, the product traceability and anti-counterfeiting system based on surface texture of the inkjet-printed area provided in this embodiment of the invention and the product traceability and anti-counterfeiting method based on surface texture of the inkjet-printed area provided in this embodiment of the invention belong to the same concept, and their implementation process is detailed in the method embodiment, which will not be repeated here.

[0114] Example 4 Embodiment 4 of the present invention provides a computer device that applies the product traceability and anti-counterfeiting system based on the surface texture of the inkjet-printed area described in Embodiment 3 to the computer device. Embodiment 3 can be implemented in software, hardware, or a combination of both. Taking software implementation as an example, as a logical device, it is formed by a processor that reads and executes corresponding computer program instructions from the memory. From a hardware perspective, the computer device may include a processor and a memory, which are interconnected via a data bus or other known methods.

[0115] Please see Figure 13 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. The computer device 300 may include: at least one processor 310, at least one memory 320, at least one display 330, at least one network interface 340, a user interface 350, and at least one communication bus 360.

[0116] The communication bus 360 is used to enable communication between these components.

[0117] The user interface 350 may include a display screen and a camera; the user interface 350 may also include standard wired and wireless interfaces.

[0118] The network interface 340 may optionally include a standard wired interface and a wireless interface (such as a Wi-Fi interface).

[0119] The processor 310 may include one or more processing cores. The processor 310 connects to various parts within the computer device 300 using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 320, and by calling data stored in the memory 320. Optionally, the processor 310 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 310 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip, without being integrated into the processor 310.

[0120] The memory 320 may include random access memory (RAM) or read-only memory. Optionally, the memory 320 may include a non-transitory computer-readable storage medium. The memory 320 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 320 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 320 may also be at least one storage device located remotely from the aforementioned processor 310. Figure 9 As shown, the memory 320, which serves as a computer storage medium, may include an operating system, a network communication module, and a user.

[0121] exist Figure 9In the computer device 300 shown, the user interface 350 is mainly used to provide an input interface for the user and to obtain the user input data; while the processor 310 can be used to call the operation application stored in the memory 320, such as the product traceability and anti-counterfeiting system program based on the surface texture of the inkjet area; and execute the relevant operations of any product traceability and anti-counterfeiting method based on the surface texture of the inkjet area in the above embodiments, and has the corresponding functions and beneficial effects.

[0122] This invention also provides a computer-readable storage medium storing a computer program with instructions adapted for a processor to load and execute the steps of the product traceability and anti-counterfeiting method based on the surface texture of the inkjet-printed area described above. The specific execution process can be found in the detailed description of the embodiments, and will not be repeated here. The storage medium can be located on a personal computer, laptop computer, smartphone, tablet computer, or other electronic device.

[0123] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative, wherein the components described as separate parts may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of the present invention according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0124] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0125] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function selected in one or more boxes.

[0126] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function selected in one or more boxes.

[0127] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0128] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0129] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0130] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0131] The above embodiments merely illustrate several implementation methods of the present invention, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these all fall within the protection scope of the present invention.

Claims

1. A product traceability and anti-counterfeiting method based on the surface texture of the inkjet-printed area, characterized in that, Includes the following steps: Acquire a verification image collected by the terminal, wherein the verification image is an image obtained by taking a picture of the inkjet printing area of ​​the production date of the product, and the verification image includes at least an image of the production date printed on the inkjet printing area and an image of the inkjet printing background area, and the image of the inkjet printing background area includes several random material textures of the surface material of the inkjet printing area. Based on the position of the production date image in the verification image, the inkjet background area image is divided into multiple background image blocks, and according to the preset block extraction rules, several background image blocks to be verified are extracted from the inkjet background area image. Based on the preset material texture feature encoding model, feature extraction and encoding are performed on several random material textures contained in the extracted background image block to obtain the product verification code corresponding to the background image block. The product verification code is matched with the standard product verification code to obtain the anti-counterfeiting verification result of the product. The standard product verification code is obtained by extracting and encoding the random material texture contained in the corresponding background image block according to the material texture feature encoding model when the product leaves the factory.

2. The product traceability and anti-counterfeiting method based on surface texture of the inkjet-printed area according to claim 1, characterized in that, Before matching the product verification code with a standard product verification code to obtain the anti-counterfeiting verification result of the product, the following steps are also included: Obtain the product identification code of the product, and extract the standard product verification code corresponding to the product from the traceability and anti-counterfeiting database deployed in the cloud based on the product identification code; Alternatively, obtain an identifiable identifier that is set on the product and is associated with the product verification code in a one-to-one correspondence, and obtain the standard product verification code based on the identifiable identifier.

3. The product traceability and anti-counterfeiting method based on surface texture of the inkjet-printed area according to claim 2, characterized in that, In the step of obtaining the standard product verification code based on the identifiable identifier, the identifiable identifier is a production date image sprayed on the production date area of ​​the product, the production date image is composed of several pattern dot matrices, and the standard product verification code is obtained after decoding the pattern dot matrices; or, the identifiable identifier is an RFID tag storing the standard product verification code, and the standard product verification code is read directly from the RFID tag.

4. The product traceability and anti-counterfeiting method based on surface texture of the inkjet-printed area according to claim 3, characterized in that, When the identifiable image is a production date image printed in the inkjet printing area of ​​the production date on the product, the method further includes the step of printing the production date in the inkjet printing area of ​​the production date on the product: Convert the standard product verification code into an identifier expression in a number system other than decimal; Based on the correspondence between different numbers and colors, the numbers in the identification expression are replaced with dots of different colors to obtain the identification code; According to preset rules, the identification codes are arranged into a dot matrix pattern representing the production date to be printed on the product. The pattern dot matrix is ​​split according to color to obtain multiple sets of printing dot matrices of different colors; Multiple sets of the printed dots are distributed to the print heads corresponding to the ink colors, and the production date is printed in the coding area according to the printed dots.

5. The product traceability and anti-counterfeiting method based on surface texture of the inkjet-printed area according to claim 4, characterized in that, Converting the standard product verification code into an identifier expression in a number system other than decimal includes: The standard product verification code is split into individual characters / text; Obtain the hexadecimal representation of each character / text in the ASCII code lookup table; Convert the hexadecimal representation to a base other than decimal; According to the combination order of the standard product verification code, the representations of each character / text in bases other than decimal are combined to obtain the identification expression of the standard product verification code in bases other than decimal.

6. The product traceability and anti-counterfeiting method based on surface texture of the inkjet-printed area according to any one of claims 1 to 5, characterized in that, The steps of dividing the inkjet printing background area image into multiple background image blocks based on the position of the production date image in the verification image, and extracting several background image blocks to be verified from the inkjet printing background area image according to preset block extraction rules include: Based on the position of the production date image in the verification image, image correction is performed on the verification image, and the rotation angle and image size of the verification image are adjusted to match the production date image with a preset production date image correction template; The inkjet background area image is divided into multiple background image blocks. According to the preset block extraction rules, the position information of several background image blocks to be verified is determined. The corresponding background image blocks are extracted from the inkjet background area image based on the position information.

7. The product traceability and anti-counterfeiting method based on surface texture of the inkjet-printed area according to claim 6, characterized in that, The production date image contains several patterned dot matrix elements; The step of determining the location information of several background image blocks to be verified according to preset block extraction rules includes: Extract the pattern dot matrix from the production date image; According to the preset conversion rules, the pattern dot matrix is ​​converted into a binary conversion code with a preset length; Convert the conversion code into at least two binary position codes; The location information of at least two background image blocks is obtained based on at least two of the location codes.

8. The product traceability and anti-counterfeiting method based on surface texture of the inkjet-printed area according to any one of claims 1 to 5, characterized in that, The steps of extracting and encoding features of several random material textures contained in the extracted background image blocks according to a preset material texture feature encoding model, and obtaining the product verification code corresponding to the random material textures, include: Feature extraction and encoding are performed on the random material textures in each of the background image blocks to obtain at least a corresponding subset of product verification codes; The product verification code is obtained by combining the subsets of the product verification codes.

9. The product traceability and anti-counterfeiting method based on surface texture of the inkjet-printed area according to claim 8, characterized in that, The steps of extracting and encoding features from several random material textures contained in the background image block to obtain the product verification code corresponding to the background image block include: Take a neighborhood window centered on the key feature point P of the material texture; Within the neighborhood window, several pairs of pixels are selected according to a preset extraction rule; For each pair of pixels (p1, p2), if the gray value of p1 is greater than the gray value of p2, it is recorded as 1; otherwise, it is recorded as 0. Arrange all comparison results in order to form a binary signature; The binary feature codes corresponding to several key feature points in the background image block are combined to obtain a subset of product verification codes corresponding to the background image block.

10. The product traceability and anti-counterfeiting method based on surface texture of the inkjet-printed area according to any one of claims 1 to 5, characterized in that, The random texture of the surface material of the inkjet-printed area of ​​the product includes at least one of the following: The random material texture is the material texture formed by the fiber particles or fiber filaments after a background coating containing randomly scattered fiber particles or fiber filaments is sprayed onto the coding area of ​​the product. The random material texture is the surface material texture of the product itself or the surface material texture of the product's packaging; The random material texture is a material texture formed by randomly scattered fluorescent fibers that appears under light irradiation of a preset wavelength band. The random material texture is the surface material texture of the product packaging, and the product packaging material is a heat shrink film mixed with randomly scattered fiber particles or filaments during production.

11. The product traceability and anti-counterfeiting method based on surface texture of the inkjet-printed area according to any one of claims 1 to 5, characterized in that, The steps of matching the product verification code with a standard product verification code to obtain the anti-counterfeiting verification result of the product include: The product verification code and the standard product verification code are traversed. If the matching ratio between the product verification code and the standard product verification code exceeds a preset threshold, the product is determined to have passed the anti-counterfeiting verification, and the product traceability information corresponding to the product verification code is obtained; otherwise, the product is determined to have failed the anti-counterfeiting verification.

12. A product traceability and anti-counterfeiting system based on the surface texture of the inkjet-printed area, characterized in that, include: The verification image acquisition module is used to acquire the verification image collected by the terminal. The verification image is an image obtained by taking a picture of the inkjet printing area of ​​the production date of the product. The verification image includes at least the production date image printed on the inkjet printing area and the inkjet printing background area image. The inkjet printing background area image includes several random material textures of the surface material of the inkjet printing area. The block extraction module is used to divide the inkjet background area image into multiple background image blocks according to the position of the production date image in the verification image, and extract several background image blocks to be verified from the inkjet background area image according to the preset block extraction rules. The encoding module is used to extract and encode features of several random material textures contained in the extracted background image block according to a preset material texture feature encoding model, so as to obtain a product verification code corresponding to the background image block. The verification module is used to match the product verification code with the standard product verification code to obtain the anti-counterfeiting verification result of the product. The standard product verification code is obtained by extracting and encoding the random material texture contained in the corresponding background image block according to the material texture feature encoding model when the product leaves the factory.

13. A computer device comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the product traceability and anti-counterfeiting method based on the surface texture of the inkjet-printed area as described in any one of claims 1 to 11.

Citation Information

Patent Citations

  • Inkjet printing method, device, computer equipment and storage medium for production date

    CN118578779B