Anti-counterfeiting tracing method and system based on font steganography coding and enterprise production center data center
By embedding hidden key information through font steganography and combining it with multimodal coding and neural rendering technology, the problems of easy cracking and low production efficiency of traditional font steganography are solved, achieving high security and efficient anti-counterfeiting traceability, which is suitable for high-speed production lines.
Patent Information
- Application Number
- CN202511712445.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-20
- Publication Date
- 2026-02-17
AI Technical Summary
Existing traditional font steganography methods are not secure enough, are easily cracked, have weak robustness, and cannot meet the high requirements of anti-counterfeiting. In addition, traditional anti-counterfeiting technology processes are cumbersome and affect production efficiency.
A font-based steganography-based anti-counterfeiting and traceability method is adopted. By changing the color and density of font pixels to embed hidden key information, a unique production date image is generated. Combined with multimodal semantic coding and conditional neural radiation field rendering, the concealment and anti-analysis capabilities of the key information are ensured, while realizing automated coding and decoding processes.
It improves the concealment and tamper resistance of anti-counterfeiting information, enhances the uniqueness and unpredictability of key information, adapts to the needs of high-speed production lines, ensures the authority and accuracy of traceability results, and avoids information distortion caused by human intervention.
Smart Images

Figure CN121544276A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of anti-counterfeiting technology, in particular to an anti-counterfeiting tracing method and system based on font steganographic coding and an enterprise production center data platform. BACKGROUND
[0002] In the current market environment, counterfeit goods are rampant in the fields of food, medicine, health products, beverages, daily chemical products, 3C digital electronics, jewelry, luxury goods, etc. Counterfeit products enter the market by imitating the appearance of genuine products and forging traceability information, infringing the rights and interests of consumers and causing significant economic losses to brand owners. Therefore, reliable anti-counterfeiting technology is the core of building a defense line for genuine products. Information hiding technology, as the core support in the field of anti-counterfeiting and traceability, aims to embed key information such as keys and identifiers into image and text carriers to further improve the concealment and tamper resistance of anti-counterfeiting information. Current traditional font steganographic coding methods generally rely on parameterized morphing technology, with thin plate spline transformation being a typical representative. The core logic is to modify the control point positions of the font outline to cause subtle mechanical deformation of the font form, thereby carrying key information. Such methods have problems such as insufficient security and easy cracking, weak robustness and decoding errors in actual application, which cannot meet the higher requirements of anti-counterfeiting. SUMMARY
[0003] Therefore, in view of the shortcomings of the above-mentioned traditional font steganographic coding technology in terms of security, concealment and robustness, an anti-counterfeiting tracing method and system based on font steganographic coding and an enterprise production center data platform are provided.
[0004] An anti-counterfeiting tracing method based on font steganographic coding, comprising the following steps: S1. Generating an anti-counterfeiting serial number corresponding to each product according to product information, and constructing an anti-counterfeiting serial number database through product information and anti-counterfeiting serial number; S2. Generating a hidden key through an encoding encryption module, the hidden key corresponding to hidden key information, the hidden key information being associated with the anti-counterfeiting serial number of each product, the production date image of the day on the product having the hidden key information, and the font of the production date image of the day on each product being different; S3. Printing the production date image generated on the day in S2 on the product; S4. Analyzing the production date image to obtain the hidden key, obtaining the hidden key information after analyzing the hidden key, and matching the hidden key information with the anti-counterfeiting serial number database to trace the product information and verify the authenticity.
[0005] Unlike traditional explicit anti-counterfeiting technologies such as QR codes and laser marking, this method embeds hidden key information into the production date image through font steganography. By changing the color and density of the font pixels, the resulting production date font image visually presents different font outlines and styles. This steganographic feature is invisible to the naked eye and difficult to extract with ordinary image analysis tools, fundamentally preventing counterfeiters from cracking, copying, or mass-producing counterfeit information. Each product's production date has eight digits, each using a different font, making the production date image unique and unpredictable for each product. Even if a counterfeiter cracks the font steganography pattern of a product's production date image, they cannot reuse it for other products of the same date or products from other dates, significantly raising the barrier to mass counterfeiting. The hidden key information is bound one-to-one with the anti-counterfeiting code serial number, forming a unique mapping from key to serial number to product information. Even if a counterfeiter obtains a key, if they cannot match the corresponding serial number in the database, they cannot pass verification, logically eliminating vulnerabilities such as key misappropriation. The production date image generated on the same day is automatically printed using inkjet printing equipment, eliminating the need for complex additional processes on the production line. This adapts to the continuous operation requirements of high-speed production lines and solves the problem of cumbersome processes affecting production efficiency in traditional anti-counterfeiting technologies. Finally, the hidden key is obtained by parsing the production date image and then matched with the anti-counterfeiting serial number database, achieving a complete closed loop from image recognition to key extraction and database verification. The verification result is directly linked to the original production information, avoiding information distortion caused by human intervention or tampering in intermediate links, ensuring the authority and accuracy of the traceability results.
[0006] In one embodiment, the specific steps of step S1 are as follows: S11. Collect product production information, including production entity information, place of origin information, factory number, production line number, batch number, production date, shelf life, etc. S12. Match the collected production information with the corresponding products, generate a serial number for each product to form an anti-counterfeiting serial number database.
[0007] By collecting comprehensive production information such as production entity information, place of origin information, and factory number, and associating it with the generated anti-counterfeiting code serial number, a structured database is constructed. This enables traceability information to not only verify authenticity but also locate the product's production source, such as the production line and batch. This provides precise data support for quality recall and responsibility traceability, and solves the limitation of traditional anti-counterfeiting methods that can only verify authenticity but cannot trace the source.
[0008] In one embodiment, the specific steps of step S2 are as follows: S21. Perform input preprocessing and semantic markup; S22. Link the hidden key with the anti-counterfeiting code serial number one by one; S23. Perform multimodal semantic encoding and style vector generation; S24. Perform conditional neural radiation field rendering.
[0009] Through the layered process from steps S21 to S24, the hidden key and the anti-counterfeiting serial number are dynamically bound together, ensuring that each serial number corresponds to unique steganographic information. At the same time, the combination of multimodal semantic coding and conditional neural radiation field rendering ensures both the visual naturalness of the font image and avoids it from being identified as anomaly code, while also ensuring the implicitness of the key information, thus balancing the contradiction between concealment and normal appearance.
[0010] In one embodiment, the specific steps of step S21 are as follows: S211. Convert all fonts in the anti-counterfeiting font library into text descriptions, and then set the text description of each font as the corresponding predefined prompt word template; S212. Receive a 128-bit binary encryption key and a tag representing the target numeric characters; S213. Verify the key length and validity; S214. Convert character labels into text descriptions using predefined prompt word templates.
[0011] The 128-bit key undergoes length and validity verification to prevent encoding errors caused by invalid keys from the outset. Character labels are converted into text descriptions using predefined prompt word templates, ensuring standardized input of semantic information and providing high-quality foundational data for subsequent multimodal fusion, thereby improving the stability and fault tolerance of the encoding process.
[0012] In one embodiment, the anti-counterfeiting font library is constructed through the following steps: S2111. Extract the online font library to obtain the first font library; S2112. Use font editing tools to adjust and modify the fonts in the first font library to obtain the second font library; S2113. By using font editing tools, different fonts can be designed independently to obtain a third font library; S2114. Merge the second and third font libraries to obtain the anti-counterfeiting font library.
[0013] Through design and modification, an anti-counterfeiting font library containing 20 or more different fonts is obtained, corresponding to an 8-digit production date. Each digit has 20 or more different font representations, and at least 20 can be generated daily. 8The system features various production date images, and can further meet the needs of daily mass production by iterating and adding more fonts to the anti-counterfeiting font library. The font is also dynamically changed daily without a fixed pattern, which greatly increases the difficulty for counterfeiters to crack and mass-produce fakes.
[0014] In one embodiment, the specific steps of step S23 are as follows: S231. Input the text description into the text encoder to obtain the corresponding text feature vector; S232. Convert the 128-bit encryption key into an initial vector through a linear projection layer; S233. Input the transformed initial vector into the adapter network that processes the key, and output the key condition vector; S234. By fusing the text feature vector and the key condition vector through a cross-attention mechanism and performing calculations, a 64-dimensional stylized steganographic vector is generated.
[0015] By combining text encoder, linear projection layer and cross attention mechanism, text semantics and key information are deeply fused into a 64-dimensional stylized steganographic vector. This ensures that the production date image can be correctly identified as date characters, achieving dual protection of character semantic recognizability and key information concealment. It also makes the key information impossible to separate from a single feature, enhancing the ability to resist analysis attacks.
[0016] In one embodiment, the specific steps of step S24 are as follows: S241. Concatenate the coordinates (x, y) of each pixel in the target character image with the stylized steganography vector to form the query vector [x, y, S]; S242. Input the query vector [x,y,S] into the multilayer perceptron network; S243. Predict the density and color of the corresponding coordinate points and calculate the final color value of the pixels to generate a production date character image containing hidden key information.
[0017] The 64-dimensional stylized steganographic vector contains information such as font outline shape, character spacing, and character width-to-height ratio. By concatenating it with pixel coordinates as input, the multilayer perceptron network can dynamically predict the density and color for each pixel, thereby making the generated font image visually present different font outlines and styles. At the same time, it also makes the generated production date image closer to ordinary fonts in terms of edge smoothness and color naturalness, and has stronger visual concealment.
[0018] In one embodiment, the specific steps of step S3 are as follows: S31. Distribute the production date image with different fonts generated online each day to different industrial control software. The production date image has hidden key information and is associated with the anti-counterfeiting serial number. S32. The production line's inkjet printer sends an online coding request to the industrial control software; S33. The industrial control software accepts and executes the production date image inkjet printing instruction that hides the key information; S34. The inkjet printing equipment performs inkjet printing of the production date image; S35. The intelligent barcode reader scans the production date image printed on the product and reads the key information therein; S36. The key information returned to the system is correlated with the anti-counterfeiting code serial number.
[0019] Each day, a unique production date image in a different font is generated and distributed via industrial control software. Combined with inkjet printing equipment and intelligent barcode readers, this system automates the entire production line process, including online inkjet printing, intelligent barcode reading, data acquisition and association, information verification, and visual inspection. This avoids human intervention that could lead to the leakage of anti-counterfeiting information or incorrect association. The intelligent barcode reader performs real-time scanning and data acquisition after inkjet printing, returning key information for data association verification. Visual inspection equipment promptly removes substandard printed products due to missed printing, incorrect printing, blurred production date images, or failure to associate the production date with the anti-counterfeiting serial number, ensuring inkjet printing quality and preventing the failure of anti-counterfeiting information from affecting traceability. The differentiated design of different fonts gives the same batch of products diverse steganographic features, increasing the difficulty of mass counterfeiting.
[0020] In one embodiment, the specific steps of step S4 are as follows: S41. Scan the production date character image of the corresponding hidden key information on the product through a dedicated mini-program or App, and transmit the identified information back to the system; S42. The system adjusts and normalizes the size of the noisy character image after it is returned; S43. Extract the high-dimensional feature vector of the adjusted image; S44. Map the high-dimensional feature vector to a 128-dimensional vector, activate it with the Sigmoid function, and obtain the predicted encryption key; S45. The predicted encryption key is thresholded to obtain the final binary encryption key, which is then matched with the unique anti-counterfeiting serial number to trace and verify the authenticity of the product.
[0021] Through dedicated scanning and standardized processing on the system side, it adapts to image input under different shooting conditions. Simultaneously, high-dimensional feature extraction and Sigmoid activation decoding ensure accurate key recovery and database matching even with noisy or slightly tampered images. This solves the problems of traditional decoding relying on clear images and having weak anti-interference capabilities, improving the verification success rate for both consumers and businesses.
[0022] A font steganography-based anti-counterfeiting and traceability system, including The anti-counterfeiting information module is used to generate an anti-counterfeiting code serial number corresponding to each product based on the product information, and to build an anti-counterfeiting serial number database through the product information and the anti-counterfeiting code serial number. The encoding and encryption module is used to generate hidden keys. Each hidden key corresponds to hidden key information, which in turn corresponds to the anti-counterfeiting code serial number of each product. Each hidden key is matched with the production date image on each product, and the font of the production date image on each product is different. The data image coding module is used to print the production date image generated on the day onto the product. The image recognition and decoding traceability module is used to parse the production date image, obtain the hidden key, obtain the hidden key information after parsing the hidden key, and match the hidden key information with the anti-counterfeiting serial number database to trace product information and verify authenticity.
[0023] A data platform for enterprise production center based on font steganography for anti-counterfeiting and traceability, wherein the data platform includes the anti-counterfeiting and traceability system based on font steganography described in the above embodiment. Attached Figure Description
[0024] Figure 1 This is a flowchart illustrating an anti-counterfeiting and traceability method based on font steganography. Figure 2 This is a flowchart illustrating the sub-steps of step S1; Figure 3 This is a flowchart illustrating the sub-steps of step S2; Figure 4 This is a flowchart illustrating the sub-steps of step S21; Figure 5 This is a flowchart illustrating the sub-steps of step S211; Figure 6 This is a flowchart illustrating the sub-steps of step S23; Figure 7 This is a flowchart illustrating the sub-steps of step S24; Figure 8 This is a flowchart illustrating the sub-steps of step S3; Figure 9 This is a flowchart illustrating the sub-steps of step S4; Figure 10 A schematic diagram of a module for an anti-counterfeiting and traceability system based on font steganography. Figure 11 This is a diagram illustrating the effect of generating date images for different fonts. Detailed Implementation
[0025] To better understand the above-mentioned objectives, features, and advantages of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.
[0026] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and therefore the scope of protection of the invention is not limited to the specific embodiments disclosed below.
[0027] The following describes, with reference to the accompanying drawings, an anti-counterfeiting and traceability method based on font steganography according to some embodiments of the present invention.
[0028] like Figures 1 to 11 As shown, this embodiment discloses an anti-counterfeiting and traceability method based on font steganography, including the following steps: S1. Generate an anti-counterfeiting serial number corresponding to each product based on the product information, and build an anti-counterfeiting serial number database using the product information and the anti-counterfeiting serial number; S2. A hidden key is generated through the encoding and encryption module. The hidden key corresponds to hidden key information, which is associated with the anti-counterfeiting code serial number of each product. The production date image on the product contains hidden key information, and the font of the production date image on each product is different. S3. Inkjet print the production date image generated in step S2 onto the product; S4. Analyze the production date image to obtain the hidden key. After parsing the hidden key, obtain the hidden key information. Match the hidden key information with the anti-counterfeiting serial number database to trace the product information and verify its authenticity.
[0029] Unlike traditional explicit anti-counterfeiting technologies such as QR codes and laser marking, this method embeds hidden key information into the production date image through font steganography. By changing the color and density of the font pixels, the resulting font image visually presents different font outlines and styles. This steganographic feature is invisible to the naked eye and difficult to extract with ordinary image analysis tools, fundamentally preventing counterfeiters from cracking, copying, or mass-producing counterfeit information. The production date of each product has eight digits, each using a different font, making the production date image unique and unpredictable for each product. Even if a counterfeiter cracks the font steganography pattern of a product's production date image, they cannot reuse it for other products of the same date or products from other dates, significantly raising the barrier to mass counterfeiting. The hidden key information is bound one-to-one with the anti-counterfeiting code serial number, forming a unique mapping from key to serial number to product information. Even if a counterfeiter obtains a key, if they cannot match the corresponding serial number in the database, they cannot pass verification, logically eliminating vulnerabilities such as key misappropriation. The production date image generated on the same day is automatically printed using inkjet printing equipment, eliminating the need for complex additional processes on the production line. This adapts to the continuous operation requirements of high-speed production lines and solves the problem of production efficiency being affected by the cumbersome processes of traditional anti-counterfeiting technologies. Finally, the hidden key is obtained by parsing the production date image and then matched with the anti-counterfeiting serial number database, achieving a complete closed loop from image recognition to key extraction to database verification. The verification result is directly linked to the original production information, avoiding information distortion caused by human intervention or tampering in intermediate links, and ensuring the authority and accuracy of the traceability results.
[0030] like Figure 2 As shown, in addition to the features of the above embodiments, this embodiment further defines the specific steps of step S1 as follows: S11. Collect product production information, including production entity information, place of origin information, factory number, production line number, batch number, production date, shelf life, etc. S12. Match the collected production information with the corresponding products, generate corresponding anti-counterfeiting serial numbers, and construct an anti-counterfeiting serial number database.
[0031] By collecting comprehensive production information such as production entity information, place of origin information, and factory number, and associating it with the generated anti-counterfeiting code serial number, a structured database is constructed. This enables traceability information to not only verify authenticity but also locate the product's production source, such as the production line and batch. This provides precise data support for quality recall and responsibility traceability, and solves the limitation of traditional anti-counterfeiting methods that can only verify authenticity but cannot trace the source.
[0032] like Figure 3 As shown, in addition to the features of the above embodiments, this embodiment further defines the specific steps of step S2 as follows: S21. Perform input preprocessing and semantic markup; S22. Link the hidden key with the anti-counterfeiting code serial number one by one; S23. Perform multimodal semantic encoding and style vector generation; S24. Perform conditional neural radiation field rendering.
[0033] Through the layered process from steps S21 to S24, the hidden key and the anti-counterfeiting serial number are dynamically bound together, ensuring that each serial number corresponds to unique steganographic information. At the same time, the combination of multimodal semantic coding and conditional neural radiation field rendering ensures both the visual naturalness of the font image and avoids it from being identified as anomaly code, while also ensuring the implicitness of the key information, thus balancing the contradiction between concealment and normal appearance.
[0034] like Figure 4 As shown, in addition to the features of the above embodiments, this embodiment further defines the specific steps of step S21 as follows: S211. Convert all fonts in the anti-counterfeiting font library into text descriptions, and then set the text description of each font as the corresponding predefined prompt word template; S212. Receive a 128-bit binary encryption key and a tag representing the target numeric characters; S213. Verify the key length and validity; S214. Convert character labels into text descriptions using predefined prompt word templates.
[0035] The 128-bit key undergoes length and validity verification to prevent encoding errors caused by invalid keys from the outset. Character labels are converted into text descriptions using predefined prompt word templates, ensuring standardized input of semantic information and providing high-quality foundational data for subsequent multimodal fusion, thereby improving the stability and fault tolerance of the encoding process.
[0036] Specifically, the system accepts two inputs, including a 128-bit binary encryption key. and a label representing the target numeric character. Characters are displayed using predefined prompt templates. The data is transformed into a rich text description T, where the predefined cue word template must include relevant descriptions such as high resolution, target digit character, font style, and background. For example, T = a high-resolution image of the digit '5' with a clear and natural font style and a solid color background. These steps embed discrete labels into a continuous, high-dimensional semantic space, laying the foundation for subsequent multimodal understanding.
[0037] like Figure 5 As shown, in addition to the features of the above embodiments, this embodiment further defines the anti-counterfeiting font library as being constructed through the following steps: S2111. Extract the online font library to obtain the first font library; S2112. Use font editing tools to adjust and modify the fonts in the first font library to obtain the second font library; S2113. By using font editing tools, different fonts can be designed independently to obtain a third font library; S2114. Merge the second and third font libraries to obtain the anti-counterfeiting font library.
[0038] Through design and modification, an anti-counterfeiting font library containing 20 or more different fonts is obtained, corresponding to an 8-digit production date. Each digit has 20 or more different font representations, and at least 20 can be generated daily. 8 The system features various production date images, and can further meet the needs of daily mass production by iterating and adding more fonts to the font library. The font is also dynamically changed daily without a fixed pattern, which greatly increases the difficulty for counterfeiters to crack and mass-produce fakes.
[0039] like Figure 6 As shown, in addition to the features of the above embodiments, this embodiment further defines the specific steps of step S23 as follows: S231. Input the text description into the text encoder to obtain the corresponding text feature vector; S232. Convert the 128-bit encryption key into an initial vector through a linear projection layer; S233. Input the transformed initial vector into the adapter network that processes the key, and output the key condition vector; S234. By fusing the text feature vector and the key condition vector through a cross-attention mechanism and performing calculations, a 64-dimensional stylized steganographic vector is generated.
[0040] By combining text encoder, linear projection layer and cross attention mechanism, text semantics and key information are deeply fused into a 64-dimensional stylized steganographic vector. This ensures that the production date image can be correctly identified as date characters, achieving dual protection of character semantic recognizability and key information concealment. It also makes the key information impossible to separate from a single feature, enhancing the ability to resist analysis attacks.
[0041] Specifically, a lightweight multimodal large model containing a text encoder and a key adapter network is adopted. The text description T is input into the text encoder to obtain the text feature vector Ftext∈Rd (Rd represents a real vector of dimension d). The 128-bit encryption key K is transformed into an initial vector through a linear projection layer and then input into the key adapter network to obtain the key condition vector Fkey∈Rd (Rd represents a real vector of dimension d). The key adapter network is composed of a multilayer perceptron. Then, the text feature vector Ftext and the key condition vector Fkey are fused through a cross-attention mechanism, according to the formula... Perform calculations, where For query vector, For key vectors, For value vectors, key vector The dimension is used to generate a 64-dimensional stylized steganographic vector S∈R64.
[0042] like Figure 7 As shown, in addition to the features of the above embodiments, this embodiment further defines the specific steps of step S24 as follows: S241. Concatenate the coordinates (x, y) of each pixel in the target character image with the stylized steganography vector to form the query vector [x, y, S]; S242. Input the query vector [x,y,S] into the multilayer perceptron network; S243. Predict the density and color of the corresponding coordinate points and calculate the final color value of the pixels to generate a production date character image containing hidden key information.
[0043] The 64-dimensional stylized steganographic vector contains information such as font outline shape, character spacing, and character width-to-height ratio. By concatenating it with pixel coordinates as input, the multilayer perceptron network can dynamically predict the density and color for each pixel, thereby making the generated font image visually present different font outlines and styles. At the same time, it also makes the generated production date image closer to ordinary fonts in terms of edge smoothness and color naturalness, and has stronger visual concealment.
[0044] Specifically, a conditional neural radiation field micro-renderer is used to concatenate the coordinates (x, y) of each pixel in the target character image with the stylized steganography vector S to form a query vector [x, y, S]. This query vector is then input into the multilayer perceptron network contained in the conditional neural radiation field micro-renderer, and the density of the pixel is predicted using a formula. With RGB colors ,Right now ,in It is a conditional neural radiation field micro-renderer. It calculates the final color value of each pixel using a volume rendering formula. The formula is: ,in The total number of sampling points in volume rendering. Let be the transmittance at the i-th sampling point. Let be the density value of the i-th sampling point. Let be the distance between the i-th sampling point and the previous sampling point. Let be the color value of the i-th sampling point. Specifically, ,in This represents the cumulative absorption of the first i-1 sampling points.
[0045] likeFigure 8 As shown, in addition to the features of the above embodiments, this embodiment further defines the specific steps of step S3 as follows: S31. Distribute the unique, variable production date image with different fonts generated online each day to different industrial control software. The production date image has hidden key information and is associated with the anti-counterfeiting serial number. S32. The production line's inkjet printer sends an online coding request to the industrial control software; S33. The industrial control software accepts and executes the production date image inkjet printing instruction that hides the key information; S34. The inkjet printing equipment performs inkjet printing of the production date image; S35. The intelligent barcode reader scans the production date image printed on the product and reads the key information therein; S36. The key information returned to the system is correlated with the anti-counterfeiting code serial number.
[0046] Each day, a unique production date image in different fonts is generated and distributed via industrial control software. Combined with inkjet printing equipment and intelligent barcode readers, this system automates the entire production line process, including online inkjet printing, intelligent barcode reading, data acquisition and association, information verification, and visual inspection. This avoids information leakage or association errors caused by manual intervention. The intelligent barcode reader performs real-time scanning and data acquisition after inkjet printing, returning key information for data association detection. Visual inspection equipment promptly removes substandard printed products due to omissions, blurred production date images, or failure to correlate with the anti-counterfeiting serial number, ensuring inkjet printing quality and preventing anti-counterfeiting information failure that could affect traceability. The differentiated design of different fonts creates diverse steganographic features within the same batch of products, increasing the difficulty of mass counterfeiting.
[0047] Specifically, the marking equipment can be laser printer, high-resolution inkjet printer, or UV inkjet printer.
[0048] like Figure 9 As shown, in addition to the features of the above embodiments, this embodiment further defines the specific steps of step S4 as follows: S41. Scan the production date character image of the corresponding hidden key information on the product through a dedicated mini-program or App, and transmit the identified information back to the system; S42. The system adjusts and normalizes the size of the noisy character image after it is returned; S43. Extract the high-dimensional feature vector of the adjusted image; S44. Map the high-dimensional feature vector to a 128-dimensional vector, activate it with the Sigmoid function, and obtain the predicted encryption key; S45. The predicted encryption key is thresholded to obtain the final binary encryption key, which is then matched with the unique anti-counterfeiting serial number to trace and verify the authenticity of the product.
[0049] Through dedicated scanning and standardized processing on the system side, it adapts to image input under different shooting conditions. Simultaneously, high-dimensional feature extraction and Sigmoid activation decoding ensure accurate key recovery and database matching even with noisy or slightly tampered images. This solves the problems of traditional decoding relying on clear images and having weak anti-interference capabilities, improving the verification success rate for both consumers and businesses.
[0050] Specifically, after the system acquires a noisy character image that has been printed, photographed, or transmitted, adjusts and normalizes the image size, the preprocessed image is input into a pre-trained visual base model with frozen weights, such as DINOv2-ViT-Small. From the output of the penultimate layer of this model, the output corresponding to the [CLS] Token (classification label) is found. This output is a high-dimensional real vector (the dimension is determined by the model structure, denoted as d_vit). This vector is named Fcls and is extracted as a global feature vector representing the entire input image, or by performing average pooling on all image patch features to obtain a robust feature vector. Further, a lightweight key decoding head composed of a 3-layer multi-layer perceptron is used. The robust feature vector is input into this lightweight key decoding head, mapped to a 128-dimensional vector, and then activated by the Sigmoid function to obtain the prediction key. ,Right now Then, a thresholding process is applied to K′, where the threshold can be set to 0.5, to obtain the binary decoding key. Finally, a cyclic redundancy check (CRC) mechanism can be introduced to verify the correctness of the decoding key in the binary key verification stage.
[0051] In one embodiment, a font steganography-based anti-counterfeiting traceability system is provided, comprising: The anti-counterfeiting information module is used to generate an anti-counterfeiting code serial number corresponding to each product based on the product information, and to build an anti-counterfeiting serial number database through the product information and the anti-counterfeiting code serial number. The encoding and encryption module is used to generate hidden keys. Each hidden key corresponds to hidden key information, which in turn corresponds to the anti-counterfeiting code serial number of each product. Each hidden key is matched with the production date image on each product, and the font of the production date image on each product is different. The data image coding module is used to print the production date image generated on the day onto the product. The image recognition and decoding traceability module is used to parse the production date image, obtain the hidden key, obtain the hidden key information after parsing the hidden key, and match the hidden key information with the anti-counterfeiting serial number database to trace product information and verify authenticity.
[0052] like Figure 10 As shown, in one embodiment, a data platform for anti-counterfeiting and traceability of an enterprise production center based on font steganography is provided, the enterprise production center data platform including the anti-counterfeiting and traceability system based on font steganography described in the above embodiment.
[0053] Specifically, the method in the above embodiments is the core process. The anti-counterfeiting traceability system based on font steganography is the hardware or software carrier of the method. The data platform of the anti-counterfeiting traceability enterprise production center based on font steganography is the core supporting component of the system. The steps of the method are executed by the modules of the system, and the functions of the modules depend on the data processing capabilities of the data platform.
[0054] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0055] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are relatively specific and detailed, 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. Therefore, the protection scope of this invention patent should be determined by the appended claims.
Claims
1. A font-based steganographic encoding anti-counterfeiting traceability method, characterized in that, The method comprises the following steps: S1. generating an anti-counterfeiting code serial number corresponding to each product according to product information, and constructing an anti-counterfeiting serial number database through the product information and the anti-counterfeiting code serial number; S2. generating a hidden key through an encoding encryption module, the hidden key corresponding to hidden key information, the hidden key information being associated with the anti-counterfeiting code serial number of each product, the hidden key information being present in the production date image of the product on the same day, and the production date image on each product on the same day being different; S3. spraying the production date image generated on the same day in step S2 on the product; S4. analyzing the production date image to obtain the hidden key, obtaining the hidden key information after analyzing the hidden key, and matching the hidden key information with the anti-counterfeiting serial number database to trace the product information and verify the authenticity.
2. The font steganography based anti-counterfeit tracing system according to claim 1, wherein, The specific steps of step S1 are as follows: S11. collecting production information of the product, the production information including production subject information, place of production information, factory number, production line number, batch number, production date, shelf life, etc.; S12. corresponding the collected production information to the corresponding product to generate an anti-counterfeiting code serial number corresponding to each product, and constructing an anti-counterfeiting serial number database.
3. The font steganography based anti-counterfeit tracing system according to claim 1, wherein, The specific steps of step S2 are as follows: S21. input pre-processing and prompt word semanticization; S22. one-to-one association of hidden keys and anti-counterfeiting code serial numbers; S23. multi-modal semantic encoding and style vector generation; S24. conditional neural radiation field rendering.
4. The font steganography based anti-counterfeit tracing system according to claim 3, wherein, The specific steps of step S21 are as follows: S211. converting all fonts in the anti-counterfeiting font library into text descriptions, and setting the text description of each font as a corresponding pre-defined prompt word template; S212. receiving a 128-bit binary encryption key and a label representing a target digital character; S213. verifying the key length and validity; S214. converting the character label into a text description through the pre-defined prompt word template.
5. The font steganography based anti-counterfeit tracing system according to claim 4, wherein, The anti-counterfeiting font library is constructed by the following steps: S2111. extracting an online font library to obtain a first font library; S2112. adjusting and modifying the fonts of the first font library using a font editing tool to obtain a second font library; S2113. independently designing different fonts through the font editing tool to obtain a third font library; S2114. merging the second font library and the third font library to obtain an anti-counterfeiting font library.
6. The font steganography based anti-counterfeit tracing system according to claim 3, wherein, The specific steps of step S23 are as follows: S231. inputting the text description into a text encoder to obtain a corresponding text feature vector; S232. converting the 128-bit encryption key into an initial vector through a linear projection layer; S233. inputting the converted initial vector into an adapter network for processing the key to output a key condition vector; S234. fusing the text feature vector and the key condition vector through a cross-attention mechanism and performing calculation to generate a 64-dimensional stylized steganographic vector; And / or the anti-counterfeiting tracing system based on font steganographic encoding, characterized in that the specific steps of step S24 are as follows: S241. concatenating each pixel point coordinate (x, y) of the target character image with the stylized steganographic vector to obtain a query vector [x, y, S]; S242. Input the query vector [x, y, S] into the multi-layer perception network; S243. Predict the density and color of the corresponding coordinate point and calculate the final pixel color value to generate a production date character image containing hidden key information.
7. The font steganographic encoded anti-counterfeit traceability method of claim 1, wherein, The specific steps of step S3 are as follows: S31. Distribute the production date image of the variable font of the unique date generated online each day to different industrial control software, and the production date image has hidden key information and is associated with the anti-fake serial number; S32. The production line inkjet equipment sends an online code generation request to the industrial control software; S33. The industrial control software accepts and executes the production date image inkjet instruction of the hidden key information; S34. The inkjet equipment performs production date image inkjet; S35. The intelligent code reading equipment scans and reads the key information on the production date image printed on the product; S36. The key information returns system is associated with the anti-fake code serial number for association verification.
8. The font steganographic encoded anti-counterfeit traceability method of claim 1, wherein, The specific steps of step S4 are as follows: S41. Scan the production date character image of the corresponding hidden key information on the product through a special program or App, and transmit the identified information back to the system; S42. The system adjusts and normalizes the size of the character image containing noise after transmission; S43. Extract the high-dimensional feature vector of the adjusted image; S44. Map the high-dimensional feature vector to a 128-dimensional vector, activate it through the Sigmoid function, and obtain the predicted encryption key; S45. Threshold processing is performed on the predicted encryption key to obtain the final binary encryption key, which is matched with the one-product-one-code anti-fake serial number to trace and verify the product authenticity information.
9. A font-based steganography encoding anti-counterfeiting traceability system, characterized in that, It includes: An anti-fake information module for generating an anti-fake code serial number corresponding to each product according to product information, and constructing an anti-fake serial number database through product information and anti-fake code serial number; An encryption module for generating a hidden key, the hidden key corresponding to hidden key information, the hidden key information corresponding to the anti-fake code serial number of each product, each hidden key matching the production date image of each product on the same day, and the font of the production date image of each product on the same day being different; A data image code generation and inkjet module for inkjetting the production date image generated on the same day on the product; An image recognition and decoding tracing module for analyzing the production date image, obtaining the hidden key, obtaining the hidden key information after analyzing the hidden key, matching the hidden key information with the anti-fake serial number database, and tracing the product information to verify the authenticity.
10. An enterprise production center data hub, characterized by, The enterprise production center data platform includes the font steganographic coded anti-fake tracing system of claim 9.
Citation Information
Patent Citations
Anti-counterfeiting two-dimensional code detection and recognition method and system and storage medium
CN112417919A
Ink-jet printing method and device for production date, computer equipment and storage medium
CN118578779A
Artificial intelligence-based text wordart method, apparatus and device, and medium
CN120124588A
System and method for realizing anti-counterfeiting and anti-channel conflict of multi-code association by using invisible tagging
CN120494842A
Production date anti-counterfeiting tracing system based on font encryption
CN120672357A