Detection method for jet printing secret code

By establishing an inkjet coding system and comparing characteristic parameters, the error and efficiency problems in inkjet character detection are solved, automated detection is realized, and the accuracy and efficiency of detection are improved.

CN118865411APending Publication Date: 2024-10-29BEIJING XINJIANLONG TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410838175.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Due to factors such as human error and vibration, existing inkjet printers may print incorrect or defective character information, affecting product quality and brand image. Manual inspections are also costly and inefficient, making it impossible to inspect all products. detection.

Method used

A detection method for printing codes is adopted, including establishing a coding system for different product packages, obtaining original image information, performing extraction and infrared processing, comparing the coding character information according to the coding character arrangement rules, and using characteristic parameters and spatial relationships In comparison, the image qualification is judged through OpenCV image operation and the elimination instruction is generated.

Benefits of technology

It improves the sensitivity and accuracy of detection, reduces the cost of manual sampling, realizes automatic detection of all products, and improves detection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118865411A_ABST
    Figure CN118865411A_ABST
Patent Text Reader

Abstract

The invention discloses a detection method for a jet-printed secret code, and relates to the technical field of jet-printed code detection. The method comprises the following steps: establishing different code spraying systems of different product packages; acquiring original image information of the current product package; performing extraction processing on the original image information to obtain a joint line contour image; performing infrared processing on the original image information to obtain first code spraying character information; and determining the code spraying character information of the current round as second code spraying character information according to a code spraying character arrangement rule. According to the invention, different code spraying systems of different product packages are established, then the original image information is acquired and processed, and according to the code spraying character arrangement rule, the code spraying character information of the current round is determined to be compared with the code spraying character information of the original image information, so that the sensitivity and accuracy of comparison are improved; the problems that the detection cost is greatly increased due to manual sampling inspection, all products cannot be detected, and the efficiency is low are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of inkjet code detection, in particular to a method for detecting inkjet printed secret codes. Background Art

[0002] Many printing and packaging companies use invisible QR codes to empower product packaging and establish an "ID card" system for products, so as to achieve full traceability of information such as source, processing, circulation, and consumption. One-to-one code and infrared invisible ink QR code anti-counterfeiting technology have undoubtedly increased the cost of counterfeiting products and compressed the profit space, thus effectively stopping counterfeiting.

[0003] Since the inkjet printer is affected by external factors such as human operation errors and vibration, the printed character information may be incorrect or defective, which greatly affects the quality of the product and the brand image. At present, most of the verification and defect detection of printed characters of products are done by manual sampling, which greatly increases the cost of detection. At the same time, it is not possible to detect all products, which is inefficient. Therefore, we propose a detection method for printing secret codes to solve the above problems. Summary of the invention

[0004] The object of the present invention is to provide a method for detecting a printed secret code to solve the current market problems raised by the above background technology.

[0005] To achieve the above object, the present invention provides the following technical solution: a method for detecting a printed secret code, comprising the following steps:

[0006] Establish different coding systems for different product packaging;

[0007] Get the original image information of the current product packaging;

[0008] Extracting and processing the original image information to obtain a parting line contour image;

[0009] Performing infrared processing on the original image information to obtain first inkjet character information;

[0010] According to the inkjet character arrangement rule, determine the inkjet character information of the current round as the second inkjet character information;

[0011] Comparing the first inkjet character information with the second inkjet character information by performing characteristic parameter comparison;

[0012] Comparing the position of the first inkjet character information in the parting line contour image with the position of the preset second inkjet character information in the standard image;

[0013] If any of the above comparisons are inconsistent, the original image information is determined to be an unqualified image and a rejection instruction is generated.

[0014] Preferably, the coding system includes coding character information, coding arrangement rules and coding position.

[0015] Preferably, extracting and processing the original image information to obtain a packaging outline image includes:

[0016] Use contour extraction operator to extract edge point sets reflecting grayscale changes;

[0017] Eliminate some boundary points or fill boundary discontinuities in the edge point set;

[0018] Connect these edge points into complete lines to obtain the package outline image.

[0019] Preferably, the original image information is infrared processed to obtain the first inkjet character information, including:

[0020] Remove noise from the image and enhance the target area in the image;

[0021] Grayscale correction is performed based on point operation. By grayscale inversion, the information of the target area is highlighted to obtain the first inkjet character information, which is specifically expressed as:

[0022] g(x,y)=T[f(x,y)];

[0023] Where f represents the grayscale, and T represents the grayscale change function.

[0024] Preferably, according to the inkjet character arrangement rule, determining the inkjet character information of the current round as the second inkjet character information includes:

[0025] Enter the coding character arrangement rules to determine the starting and ending points of the traversal;

[0026] All the coding characters are traversed by a depth-first search algorithm until all the coding characters have been visited.

[0027] Preferably, comparing the characteristic parameters of the first inkjet character information and the second inkjet character information includes:

[0028] Use color automatic segmentation technology to divide the image into several regions, each region is indexed by a color component in the quantized color space, and the color characteristics of the two are compared;

[0029] Get the texture primitives of the image and compare the texture features of the two;

[0030] Obtain the closure and periodicity of the image region boundary and compare the shape features of the two;

[0031] Obtain the mutual spatial position or relative direction relationship between multiple targets segmented from the image, and compare the spatial relationship features between the two;

[0032] If any of the above comparisons are inconsistent, it is determined that the first inkjet character information does not match the second inkjet character information.

[0033] Preferably, comparing the position of the first inkjet character information in the parting line contour image with the position of the preset second inkjet character information in the standard image includes:

[0034] Use OpenCV basic image operations to subtract the two images;

[0035] If there is a frame difference, it means that the two are inconsistent.

[0036] A detection system for printing secret codes comprises a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and execute the detection method as described above.

[0037] A computer-readable storage medium includes the above detection system. When the detection system is run on an electronic device, the electronic device executes the above detection method.

[0038] Compared with the prior art, the present invention has the following beneficial effects:

[0039] The present invention establishes different inkjet coding systems for different product packages, then acquires and processes the original image information, determines the inkjet coding character information of the current round and compares it with the inkjet coding character information of the original image information according to the inkjet coding character arrangement rule, thereby increasing the sensitivity and accuracy of the comparison, and solving the problems that manual sampling greatly increases the cost of detection, cannot realize the detection of all products, and is inefficient.

[0040] The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present invention will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 The present invention is a schematic flow chart of a method for detecting a printed secret code. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0043] See also Figure 1 A method for detecting a printed code comprises the following steps:

[0044] Establish different coding systems for different product packaging, including coding character information, coding arrangement rules and coding positions;

[0045] Get the original image information of the current product packaging;

[0046] Extract and process the original image information to obtain the mold line contour image; specifically including:

[0047] Use contour extraction operator to extract edge point sets reflecting grayscale changes;

[0048] Eliminate some boundary points or fill boundary discontinuities in the edge point set;

[0049] Connect these edge points into complete lines to get the package outline image

[0050] The original image information is infrared processed to obtain the first coding character information; specifically including:

[0051] Remove noise from the image and enhance the target area in the image;

[0052] Grayscale correction is performed based on point operation. By grayscale inversion, the information of the target area is highlighted to obtain the first coding character information, which is specifically expressed as:

[0053] g(x,y)=T[f(x,y)];

[0054] Where f represents grayscale, and T represents grayscale change function;

[0055] According to the coding character arrangement rule, determining the current round of coding character information as the second coding character information; specifically including:

[0056] Enter the coding character arrangement rules to determine the starting and ending points of the traversal;

[0057] All the coding characters are traversed by depth-first search algorithm until all the coding characters have been visited;

[0058] Comparing the characteristic parameters of the first inkjet character information and the second inkjet character information; specifically including:

[0059] Use color automatic segmentation technology to divide the image into several regions, each region is indexed by a color component in the quantized color space, and the color characteristics of the two are compared;

[0060] Get the texture primitives of the image and compare the texture features of the two;

[0061] Obtain the closure and periodicity of the image region boundary and compare the shape features of the two;

[0062] Obtain the mutual spatial position or relative direction relationship between multiple targets segmented from the image, and compare the spatial relationship features between the two;

[0063] If any of the above comparisons are inconsistent, it is determined that the first inkjet character information does not match the second inkjet character information;

[0064] Comparing the position of the first inkjet character information in the parting line contour image with the position of the preset second inkjet character information in the standard image; specifically including:

[0065] Use OpenCV basic image operations to subtract the two images;

[0066] If there is a frame difference, it means that the two are inconsistent;

[0067] If any of the above comparisons are inconsistent, the original image information is determined to be an unqualified image and a rejection instruction is generated.

[0068] A detection system for printing secret codes comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and execute the above detection method.

[0069] A computer-readable storage medium includes the above detection system. When the detection system is run on an electronic device, the electronic device executes the above detection method.

[0070] The present invention establishes different inkjet coding systems for different product packages, then acquires and processes the original image information, determines the inkjet coding character information of the current round and compares it with the inkjet coding character information of the original image information according to the inkjet coding character arrangement rule, thereby increasing the sensitivity and accuracy of the comparison, and solving the problems that manual sampling greatly increases the cost of detection, cannot realize the detection of all products, and is inefficient.

[0071] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.

[0072] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0073] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0074] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by hardware associated with program instructions, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps in the method embodiment.

[0075] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0076] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A method for detecting a printed code, characterized in that: The steps include: Establish different coding systems for different product packaging; Get the original image information of the current product packaging; Extracting and processing the original image information to obtain a parting line contour image; Performing infrared processing on the original image information to obtain first inkjet character information; According to the inkjet character arrangement rule, determine the inkjet character information of the current round as the second inkjet character information; Comparing the first inkjet character information with the second inkjet character information by performing characteristic parameter comparison; Comparing the position of the first inkjet character information in the parting line contour image with the position of the preset second inkjet character information in the standard image; If any of the above comparisons are inconsistent, the original image information is determined to be an unqualified image and a rejection instruction is generated.

2. A method for detecting a printed secret code according to claim 1, characterized in that: The coding system includes coding character information, coding arrangement rules and coding position.

3. A method for detecting a printed secret code according to claim 1, characterized in that: Extracting and processing the original image information to obtain a packaging outline image includes: Use contour extraction operator to extract edge point sets reflecting grayscale changes; Eliminate some boundary points or fill boundary discontinuities in the edge point set; Connect these edge points into complete lines to obtain the package outline image.

4. A method for detecting a printed secret code according to claim 1, characterized in that: The original image information is infrared processed to obtain first coding character information, including: Remove noise from the image and enhance the target area in the image; Grayscale correction is performed based on point operation. By grayscale inversion, the information of the target area is highlighted to obtain the first coding character information, which is specifically expressed as: g(x,y)=T[f(x,y)]; Where f represents the grayscale, and T represents the grayscale change function.

5. A method for detecting a printed secret code according to claim 1, characterized in that: According to the coding character arrangement rule, determining the current round of coding character information as the second coding character information includes: Enter the coding character arrangement rules to determine the starting and ending points of the traversal; All the coding characters are traversed by a depth-first search algorithm until all the coding characters have been visited.

6. A method for detecting a printed secret code according to claim 1, characterized in that: Comparing the first coding character information with the second coding character information by performing characteristic parameter comparison, including: Use color automatic segmentation technology to divide the image into several regions, each region is indexed by a color component in the quantized color space, and the color characteristics of the two are compared; Get the texture primitives of the image and compare the texture features of the two; Obtain the closure and periodicity of the image region boundary and compare the shape features of the two; Obtain the mutual spatial position or relative direction relationship between multiple targets segmented from the image, and compare the spatial relationship features between the two; If any of the above comparisons are inconsistent, it is determined that the first inkjet character information does not match the second inkjet character information.

7. A method for detecting a printed secret code according to claim 1, characterized in that: Comparing the position of the first inkjet character information in the parting line contour image with the position of the preset second inkjet character information in the standard image, comprising: Use OpenCV basic image operations to subtract the two images; If there is a frame difference, it means that the two are inconsistent.

8. A detection system for printing secret codes, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and execute the detection method according to any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that: The invention comprises the detection system of claim 8, and when the detection system is run on an electronic device, the electronic device executes the detection method of any one of claims 1 to 7.

Citation Information

Patent Citations

  • A method and a device for detecting the quality of an inkjet code

    CN109472765A

  • Injection code detection method and device, production line, computer equipment and storage medium

    CN109543677A

  • Coding identification system and coding identification method

    CN110328971A

  • Method for detecting quality of jet printing and code spraying on bottle bottom joint line

    CN111598083A

  • Package code spraying character detection method, device and system and storage medium

    CN112884718A