Trademark graphic code typesetting method and system

By applying masking technology on images such as trademarks, LOGOs, logos, etc., the dot matrix code is fused with the image to generate trademark graphic codes with visual communication effects, and the aesthetics and space utilization problems of traditional dot matrix codes on special-shaped images are solved.

CN120012811AActive Publication Date: 2025-05-16北京微点科学技术有限公司
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510458518.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-14
Publication Date
2025-05-16
Estimated Expiration
2045-04-14

AI Technical Summary

Technical Problem

The prior art is difficult to turn the rectangular dot matrix code diagram into a "yang seal" and "yin seal" form of a special shape, trademark, and text outline, while maintaining its readability.

Method used

By determining the mask of the image to be generated, including black, white and gray, a binary array of original dot matrix code is generated, and color rendered through a composite array fused by the graph code, the final dot matrix code image is obtained as the trademark graphic code.

Benefits of technology

It realizes that there is no need to prepare blank areas separately for coding, which significantly improves the aesthetics and space utilization of the packaging material surface, while ensuring the readability of the dot matrix code.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120012811A_ABST
    Figure CN120012811A_ABST
Patent Text Reader

Abstract

The invention provides a trademark graphic code typesetting method and system, and relates to the technical field of anti-counterfeiting. The method comprises the following steps: determining the code value and code system of a dot matrix code and the shape and size of a to-be-generated image; according to the shape and the size of the image to be generated, a mask of the image to be generated is determined, and the mask of the image to be generated at least comprises black, white and gray; according to the dot matrix code value, the code system and the shape and the size of the to-be-generated image, generating an original dot matrix code binary array; according to the mask of the to-be-generated image and the original dot matrix code binary array, generating a synthetic array of image code fusion, the synthetic array of image code fusion being a binary array; and according to different binary values in the graph code fused composite array, performing different color rendering on pixels corresponding to the binary values to obtain a final dot matrix code image as a trademark graph code. A blank area does not need to be independently prepared for tagging, and the attractiveness and the space utilization rate of the surface of the packing material are remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of anti-counterfeiting technology, and in particular to a trademark graphic code typesetting method and system. Background Art

[0002] At present, dot codes have begun to be used as one-to-one codes in the market for manufacturers' anti-counterfeiting and tracing inspections and consumers' anti-counterfeiting code scanning. Dot codes generally have advantages over QR codes, such as being beautiful, hidden, and requiring a smaller readable area. Among them, CN117292610A "A trademark production method and a hardware" proposes an idea of ​​laser production of hardware with a dot code image, but it cannot solve the problem of how to transform the original rectangular full-coverage code image into a "positive" or "negative" code image of a special shape, trademark, or text outline and ensure its readability. Summary of the invention

[0003] The purpose of the embodiments of the present invention is to provide a trademark graphic code typeset method and system, which does not require separate preparation of blank areas for coding, thereby significantly improving the aesthetics and space utilization of the packaging material surface.

[0004] In order to achieve the above-mentioned purpose, an embodiment of the present invention provides a trademark graphic code typesetting method, the method comprising: determining a dot code value, a code system, and a shape and size of an image to be generated; determining a mask of the image to be generated according to the shape and size of the image to be generated, the mask of the image to be generated at least comprising black, white and gray; generating an original dot code binary array according to the dot code value, the code system, and the shape and size of the image to be generated; generating a graphic code fused synthetic array according to the mask of the image to be generated and the original dot code binary array, the graphic code fused synthetic array being a binary array; according to different binary values ​​in the graphic code fused synthetic array, performing different color rendering on pixels corresponding to the binary values ​​to obtain a final dot code image as the trademark graphic code.

[0005] Preferably, the value corresponding to the black pixel in the mask of the image to be generated is 0, the value corresponding to the white pixel is 255, and the value corresponding to the gray pixel is 1-254.

[0006] Preferably, generating a synthetic array of image code fusion according to the mask of the image to be generated and the original dot code binary array includes: when the value corresponding to the pixel in the mask of the image to be generated is 0, the value corresponding to the pixel at the same coordinate of the synthetic array of image code fusion is 1; when the value corresponding to the pixel in the mask of the image to be generated is 255, the value corresponding to the pixel at the same coordinate of the synthetic array of image code fusion is 0; when the value corresponding to the pixel in the mask of the image to be generated is 1-254, the value corresponding to the pixel at the same coordinate of the synthetic array of image code fusion is the value of the original dot code binary array.

[0007] Preferably, according to different binary values ​​in the synthetic array of the fusion of the graphic codes, different color rendering is performed on the pixels corresponding to the binary values ​​to obtain the final dot matrix code image as the trademark graphic code, including: when the value corresponding to the pixel in the synthetic array of the fusion of the graphic codes is 0, the pixel where 0 is located is not rendered in color, and when the value corresponding to the pixel in the synthetic array of the fusion of the graphic codes is 1, the pixel where 1 is located is rendered in color, so as to obtain the final dot matrix code image as the trademark graphic code.

[0008] The embodiment of the present invention also provides a trademark graphic code typesetting system, which includes: a code value size determination unit, a mask determination unit, an array generation unit, a fusion unit and a rendering unit, wherein the code value size determination unit is used to determine the dot code code value, the code system and the shape and size of the image to be generated; the mask determination unit is used to determine the mask of the image to be generated according to the shape and size of the image to be generated, and the mask of the image to be generated includes at least black, white and gray; the array generation unit is used to generate an original dot code binary array according to the dot code code value, the code system and the shape and size of the image to be generated; the fusion unit is used to generate a graphic code fusion synthetic array according to the mask of the image to be generated and the original dot code binary array, and the graphic code fusion synthetic array is a binary array; the rendering unit is used to perform different color rendering on pixels corresponding to binary values ​​according to different binary values ​​in the graphic code fusion synthetic array to obtain a final dot code image as a trademark graphic code.

[0009] Preferably, the value corresponding to the black pixel in the mask of the image to be generated is 0, the value corresponding to the white pixel is 255, and the value corresponding to the gray pixel is 1-254.

[0010] Preferably, the fusion unit is also used for: when the value corresponding to the pixel in the mask of the image to be generated is 0, the value corresponding to the pixel at the same coordinate of the synthetic array of the generated image code fusion is 1; when the value corresponding to the pixel in the mask of the image to be generated is 255, the value corresponding to the pixel at the same coordinate of the synthetic array of the generated image code fusion is 0; when the value corresponding to the pixel in the mask of the image to be generated is 1-254, the value corresponding to the pixel at the same coordinate of the synthetic array of the generated image code fusion is the value of the original dot code binary array.

[0011] Preferably, the rendering unit is used for: when the value corresponding to the pixel in the synthetic array of the fusion of the image code is 0, the pixel where 0 is located is not rendered in color; when the value corresponding to the pixel in the synthetic array of the fusion of the image code is 1, the pixel where 1 is located is rendered in color, so as to obtain the final dot matrix code image as the trademark graphic code.

[0012] Through the above technical scheme, the trademark graphic code typesetting method and system provided by the present invention are adopted, and by using dot matrix code and preset mask pattern, it is achieved that the trademarks, LOGOs, and signs with publicity value, visible to the human eye, and visual communication effects are formed by code points, thereby solving the problem that the traditional dot matrix code needs to prepare a blank area separately for coding, which affects the aesthetics and space utilization of the packaging material surface.

[0013] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings: Figure 1 is a flow chart of a trademark graphic code typeset method provided by an embodiment of the present invention; Figure 2 is a schematic diagram of a mask of an image to be generated provided by an embodiment of the present invention; Figure 3 is a schematic diagram of an original dot matrix code binary array provided by an embodiment of the present invention; Figure 4 is a schematic diagram of an image to be generated provided by an embodiment of the present invention; Figure 5 It is a structural block diagram of a trademark graphic code typesetting system provided by an embodiment of the present invention.

[0015] Description of Reference Numerals 1-code value size determination unit 2-mask determination unit 3-array generation unit 4- Fusion unit 5- Rendering unit DETAILED DESCRIPTION

[0016] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.

[0017] Figure 1 FIG. 1 is a flow chart of a trademark graphic code typesetting method provided by an embodiment of the present invention. Figure 1 As shown, the method includes: Step S101, determining the dot code value, code system and shape and size of the image to be generated; Specifically, the embodiment of the present invention uses a dot matrix code system that supports adjustable pixel density per unit area, and micro-dot codes are preferred. Micro-dot codes are sparse dot matrix codes with high robustness. They are a closed encoding algorithm and decoding algorithm. The code image cannot be read by other open source code decoding algorithms. Compared with the traditional dense two-dimensional code that converts code values ​​into binary 1 and 0 and arranges them in the form of deep and shallow code points, the code values ​​of micro-dot codes are converted into binary data and there will be an obvious gap of greater than or equal to 1 data position between the data, and the code value can be a string of any character encoding. The shape of the image to be generated can be any regular image or an irregular image.

[0018] Step S102, determining a mask of the image to be generated according to the shape and size of the image to be generated, wherein the mask of the image to be generated includes at least black, white and gray; Specifically, in order to directly reflect the trademark, LOGO, and logo in the area where the code is sprayed on the product packaging or the body and maintain aesthetics, the displayed trademark, LOGO, and logo need to be integrated with the dot matrix code in one area, to replace the traditional solution of using one area to place the trademark, LOGO, and logo, and coding a rectangular area separately. This is not aesthetically pleasing and wastes extra surface space of the product. In an embodiment of the present invention, a mask must be set before generating an image. The shape and size of the mask are consistent with the shape and size of the image to be generated, and the color distribution of the mask should be set corresponding to the image to be generated. Preferably, the mask includes at least black, white, and gray, the value corresponding to the black pixel is 0, the value corresponding to the white pixel is 255, and the value corresponding to the gray pixel is 1-254, such as Figure 2 shown.

[0019] Step S103, generating an original dot code binary array according to the dot code value, the code system and the shape and size of the image to be generated; Specifically, in the embodiment of the present invention, according to the code value, the dot matrix code is generated by the coding algorithm of the code system itself, and converted into the original dot matrix code binary array, which is composed of "0" and "1". It can be understood that the dot matrix code is divided into a number of pixels of appropriate size, the value corresponding to the pixel with a dot is 1, and the value corresponding to the pixel without a dot is 0. The shape and size of the original dot matrix code binary array should be consistent with the shape and size of the image to be generated. Figure 3 A schematic diagram of an original dot matrix code binary array of an embodiment is shown. For the sake of clarity, Figure 3 Only simple binary array examples are provided.

[0020] Step S104, generating a synthetic array of image-code fusion according to the mask of the image to be generated and the original dot code binary array, wherein the synthetic array of image-code fusion is a binary array; Specifically, when the value corresponding to the pixel in the mask of the image to be generated is 0, the value corresponding to the pixel at the same coordinate of the synthetic array of the generated image code fusion is 1; when the value corresponding to the pixel in the mask of the image to be generated is 255, the value corresponding to the pixel at the same coordinate of the synthetic array of the generated image code fusion is 0; when the value corresponding to the pixel in the mask of the image to be generated is 1-254, the value corresponding to the pixel at the same coordinate of the synthetic array of the generated image code fusion is the value of the original dot code binary array.

[0021] Step S105 , according to different binary values ​​in the synthetic array of the graphic code fusion, different colors are rendered on pixels corresponding to the binary values ​​to obtain a final dot matrix code image as the trademark graphic code.

[0022] Specifically, when the value corresponding to the pixel in the synthetic array of the fusion of the image code is 0, the pixel where 0 is located is not rendered in color, and when the value corresponding to the pixel in the synthetic array of the fusion of the image code is 1, the pixel where 1 is located is rendered in color, so as to obtain the final dot matrix code image as the trademark graphic code, such as Figure 4 As shown. Figure 4 The image is rendered in black, but if the ink used is C, M, Y, K color ink or spot color ink, or even invisible ink, the final printed pattern can be a color one.

[0023] Figure 5 FIG. 1 is a structural block diagram of a trademark graphic code typesetting system provided by an embodiment of the present invention. Figure 5 As shown, the system includes: a code value size determination unit 1, a mask determination unit 2, an array generation unit 3, a fusion unit 4 and a rendering unit 5, wherein the code value size determination unit 1 is used to determine the code value, code system and shape and size of the image to be generated; the mask determination unit 2 is used to determine the mask of the image to be generated according to the shape and size of the image to be generated, and the mask of the image to be generated includes at least black, white and gray; the array generation unit 3 is used to generate the original dot code binary array according to the code value, code system and shape and size of the image to be generated; the fusion unit 4 is used to generate a composite array of image code fusion according to the mask of the image to be generated and the original dot code binary array, and the composite array of image code fusion is a binary array; the rendering unit 5 is used to perform different color rendering on pixels corresponding to binary values ​​according to different binary values ​​in the composite array of image code fusion to obtain the final trademark graphic code.

[0024] Preferably, the value corresponding to the black pixel in the mask of the image to be generated is 0, the value corresponding to the white pixel is 255, and the value corresponding to the gray pixel is 1-254.

[0025] Preferably, the fusion unit 4 is also used for: when the value corresponding to the pixel in the mask of the image to be generated is 0, the value corresponding to the pixel at the same coordinate of the synthetic array of the generated image code fusion is 1; when the value corresponding to the pixel in the mask of the image to be generated is 255, the value corresponding to the pixel at the same coordinate of the synthetic array of the generated image code fusion is 0; when the value corresponding to the pixel in the mask of the image to be generated is 1-254, the value corresponding to the pixel at the same coordinate of the synthetic array of the generated image code fusion is the value of the original dot code binary array.

[0026] Preferably, the rendering unit 5 is used for: when the value corresponding to the pixel in the synthetic array of the fusion of the graphic code is 0, the pixel where 0 is located is not rendered in color; when the value corresponding to the pixel in the synthetic array of the fusion of the graphic code is 1, the pixel where 1 is located is rendered in color, so as to obtain the final trademark graphic code.

[0027] The embodiment of the trademark graphic code typesetting system described above is similar to the embodiment of the trademark graphic code typesetting method described above, and will not be described in detail here.

[0028] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0029] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0030] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1A function specified in one or more boxes.

[0031] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

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

[0033] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0034] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules 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 technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0035] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0036] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A trademark graphic code typesetting method, characterized in that: The method comprises: Determine the dot matrix code value, code system and shape and size of the image to be generated; Determine a mask of the image to be generated according to the shape and size of the image to be generated, wherein the mask of the image to be generated includes at least black, white and gray; Generate an original dot matrix code binary array according to the dot matrix code value, the code system and the shape and size of the image to be generated; Generate a synthetic array of image-code fusion according to the mask of the image to be generated and the original dot matrix code binary array, wherein the synthetic array of image-code fusion is a binary array; According to different binary values ​​in the synthetic array of the graphic code fusion, different colors are rendered on the pixels corresponding to the binary values ​​to obtain the final dot matrix code image as the trademark graphic code.

2. The trademark graphic code typesetting method according to claim 1, characterized in that: The value corresponding to the black pixel in the mask of the image to be generated is 0, the value corresponding to the white pixel is 255, and the value corresponding to the gray pixel is 1-254.

3. The trademark graphic code typesetting method according to claim 2, characterized in that: The step of generating a composite array of image-code fusion according to the mask of the image to be generated and the original dot matrix code binary array comprises: When the value corresponding to the pixel in the mask of the image to be generated is 0, the value corresponding to the pixel at the same coordinate of the synthetic array of the generated image code fusion is 1; When the value corresponding to the pixel in the mask of the image to be generated is 255, the value corresponding to the pixel at the same coordinate of the synthetic array for generating image-code fusion is 0; When the values ​​corresponding to the pixels in the mask of the image to be generated are 1-254, the values ​​corresponding to the pixels at the same coordinates of the synthetic array for generating the image code fusion are the values ​​of the original dot code binary array.

4. The trademark graphic code typesetting method according to claim 3, characterized in that: According to different binary values ​​in the synthetic array of the fused graphic code, different colors are rendered on pixels corresponding to the binary values ​​to obtain the final dot matrix code image as the trademark graphic code, including: When the value corresponding to the pixel in the synthetic array of the fusion of the image code is 0, the pixel where 0 is located is not rendered in color. When the value corresponding to the pixel in the synthetic array of the fusion of the image code is 1, the pixel where 1 is located is rendered in color to obtain the final dot matrix code image as the trademark graphic code.

5. A trademark graphic code typesetting system, characterized in that: The system includes: A code value size determination unit, a mask determination unit, an array generation unit, a fusion unit and a rendering unit, wherein: The code value size determination unit is used to determine the code value of the dot code, the code system and the shape and size of the image to be generated; The mask determination unit is used to determine the mask of the image to be generated according to the shape and size of the image to be generated, and the mask of the image to be generated includes at least black, white and gray; The array generation unit is used to generate an original dot matrix code binary array according to the dot matrix code value, the code system and the shape and size of the image to be generated; The fusion unit is used to generate a composite array of image-code fusion according to the mask of the image to be generated and the original dot matrix code binary array, wherein the composite array of image-code fusion is a binary array; The rendering unit is used to render pixels corresponding to binary values ​​in different colors according to different binary values ​​in the synthetic array of the graphic code fusion to obtain a final dot matrix code image as the trademark graphic code.

6. The trademark graphic code typesetting system according to claim 5, characterized in that: The value corresponding to the black pixel in the mask of the image to be generated is 0, the value corresponding to the white pixel is 255, and the value corresponding to the gray pixel is 1-254.

7. The trademark graphic code typesetting system according to claim 6, characterized in that: The fusion unit is also used for: When the value corresponding to the pixel in the mask of the image to be generated is 0, the value corresponding to the pixel at the same coordinate of the synthetic array of the generated image code fusion is 1; When the value corresponding to the pixel in the mask of the image to be generated is 255, the value corresponding to the pixel at the same coordinate of the synthetic array for generating image-code fusion is 0; When the values ​​corresponding to the pixels in the mask of the image to be generated are 1-254, the values ​​corresponding to the pixels at the same coordinates of the synthetic array for generating the image code fusion are the values ​​of the original dot code binary array.

8. The trademark graphic code typesetting system according to claim 7, characterized in that: The rendering unit is used to: When the value corresponding to the pixel in the synthetic array of the fusion of the image code is 0, the pixel where 0 is located is not rendered in color. When the value corresponding to the pixel in the synthetic array of the fusion of the image code is 1, the pixel where 1 is located is rendered in color to obtain the final dot matrix code image as the trademark graphic code.

Citation Information

Patent Citations

  • Trademark manufacturing method and hardware

    CN117292610A

  • Generation method, identification method, device and equipment of anti-counterfeiting anti-channel conflict label code

    CN117291217A

  • Two-dimensional code and picture fusion method and system and storage medium

    CN117314812A

  • Method and system for generating scannable image fused with binary digital coding

    CN119047505A

  • Method, apparatus and device for generating artistic QR code, and medium

    WO2025066919A1