A positioning and identification system for printing anti-counterfeiting labels

Through machine vision and template comparison technology, the center point and rotation angle of the related parts are determined, which solves the problem of printing area deviation and realizes accurate label positioning and printing of non-standard related parts.

CN118691785BActive Publication Date: 2025-05-06THE PEOPLES PRINTING PLANT OF GUANGZHOU CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410732135.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2025-05-06
Estimated Expiration
2044-06-06

AI Technical Summary

Technical Problem

When printing anti-counterfeiting labels, the printing area of ​​related parts with dimensional errors or packaging defects is prone to deviating, resulting in the inability to guarantee printing accuracy.

Method used

The surface image of the relevant parts is obtained through machine vision, and the center point and rotation angle are determined based on the comparison between the image and the template to ensure the maximum overlap between the image and the template, and the position of the printing area is adjusted through the area calibration processing end to ensure printing accuracy.

Benefits of technology

The label positioning accuracy of non-standard related parts is achieved, the accurate position of the printing area is ensured, and the overall accuracy and effect of printing is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691785B_ABST
    Figure CN118691785B_ABST
Patent Text Reader

Abstract

The present invention discloses a positioning and identifying system for printing anti-counterfeiting labels, and the present invention relates to the field of label printing technology, and solves the problem that for some related parts with size errors or packaging defects, the printing area deviates too much, thereby resulting in the problem that the printing accuracy cannot be guaranteed. The present invention identifies whether the printing area inside the surface image has a difference in variance with the standard template by identifying the characteristic value of the relevant characteristic points of the corresponding end face of the printing area according to the combination misalignment between the related parts and the corresponding standard template. If there is a relevant difference, it is changed by changing the area position. If there is no relevant difference, the relevant printing component is controlled by the control end to print by directly adjusting the angle and the center point, so as to achieve a better printing processing effect, make the position positioning of the relevant printed label more accurate, and have a better positioning effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of label printing, and in particular to a positioning and identification system for printing anti-counterfeiting labels. Background Art

[0002] The widespread use of labels and the continuous development of label varieties naturally promoted the development of label printing technology; label printing covers all printing methods such as flat, convex, concave, and mesh, and the application conditions in different countries are different.

[0003] The application with publication number CN101713635A sets a positioning label including a series of feature points on a printed circuit board, and pre-stores a standard image of the printed circuit board; continuously captures images of the positioning label to obtain a series of segmented images including at least one feature point; processes each segmented image in the series of segmented images, obtains the image position information of the feature point in each segmented image and the actual position information in the printed circuit board; finds the position of the feature point in the pre-stored standard image according to the actual position information of the feature point in each segmented image, and further determines the position of the segmented image corresponding to the standard image according to the image position information of the feature point. The present invention also provides a positioning system and a printed circuit board.

[0004] During the positioning and identification process of the printed label, the identified related parts are compared with the standard template to determine the location of the printing area, and then the anti-counterfeiting label is printed on the printing area through the relevant printing components. However, in this processing method, in the actual processing process, for some related parts with size errors or packaging defects, the printing area will deviate too much, resulting in the inability to guarantee the accuracy of the printing. Summary of the invention

[0005] In view of the shortcomings of the prior art, the present invention provides a positioning and identification system for printing anti-counterfeiting labels, which solves the problem that for some related parts with dimensional errors or packaging defects, the printing area will deviate too much, resulting in the inability to guarantee the printing accuracy.

[0006] To achieve the above objectives, the present invention is implemented through the following technical solutions: a positioning and identification system for printing anti-counterfeiting labels, comprising:

[0007] The machine vision end obtains the surface image of the relevant parts that need to be printed with labels;

[0008] The template library stores different corresponding templates for different related parts;

[0009] The positioning processing end determines the center point of the surface image and the center point of the corresponding template based on the acquired surface image and the related corresponding template, compares the two, determines the maximum overlap between the surface image and the corresponding template, and finally evaluates the related execution end. The specific method is as follows:

[0010] Align the center point of the surface image with the center point of the corresponding template so that the two sets of center points are on the same vertical horizontal line, and record the movement data of the center point of the surface image through the data recording end;

[0011] The surface image is rotated according to the position of the center point, and based on the corresponding rotation process, the overlap CH between the surface image and the corresponding template is identified, and the overlap CH is the proportion of the overlap area in the corresponding template. According to the different overlap CH generated by different rotation processes, the maximum overlap CH is selected from several groups of different overlap CH. max , then determine the specific rotation angle of the surface image, and simultaneously determine the position of the surface image and the corresponding template;

[0012] Identify the maximum overlap CH max Whether it meets: CH max =100%. If it is satisfied, the specific rotation angle J of the surface image is directly recorded through the data recording end, and the main control end controls the relevant printing components to rotate a group of angles J in the opposite direction, and then moves in the opposite direction based on the movement data of the center point of the recorded surface image to print the label on the relevant part;

[0013] The maximum overlap CH max Not satisfied: CH max =100%, identify CH max Whether it satisfies: Y1≤CH max <100%, where Y1 is the preset value:

[0014] If satisfied, the regional calibration processing end is executed;

[0015] If not satisfied, an abnormal signal is directly generated for display;

[0016] The area calibration processing end performs the relevant positioning of the printing area based on the determined surface image and the position of the corresponding template, and records its adjustment data through the data recording end. First, based on the feature initial evaluation unit, the printing area of ​​the corresponding template is mapped to the surface image, and then the relevant numerical features of the printing areas of the two are analyzed to evaluate whether their values ​​are consistent:

[0017] If they are consistent, the relevant printing components can be directly controlled through the main control terminal;

[0018] If they are inconsistent, the feature adjustment analysis unit is executed to adjust the relevant values ​​of the printing area of ​​the surface image. When the two are adjusted to be consistent, the adjustment data is recorded, and then the relevant printing components are controlled through the main control end.

[0019] Preferably, the corresponding templates of the relevant parts are input in advance by the operator, and when performing relevant positioning of the corresponding relevant parts, the operator determines the corresponding template in advance and transmits the corresponding template to the positioning processing end, and the corresponding template is calibrated with the relevant printing area and center point.

[0020] Preferably, the specific method of analyzing the relevant numerical characteristics of the two printing areas by the feature initial assessment unit is:

[0021] Based on the determined positions of the surface image and the corresponding template, the printing area of ​​the corresponding template surface is parallel mapped to the surface of the surface image. After the mapping is completed, the printing area of ​​the corresponding template is marked as the main area, and the printing area of ​​the surface image is marked as the secondary area;

[0022] A set of points are randomly selected on each set of edge lines of the main area as the main feature points of the corresponding edge lines, and then based on the positions of the main feature points, the secondary feature points at the same position are confirmed on the edge lines of the secondary area;

[0023] Determine the shortest distance between different main feature points and the corresponding template edge and mark it as J i , where i represents different main feature points, and then determine the closest distance between different secondary feature points and the edge of the surface image, and mark it as J k , where k represents different secondary feature points;

[0024] The distance J of several groups of main feature points i Perform variance processing to determine the main variance F1, and then calculate the distance J of the secondary feature point k Perform variance processing to determine the secondary variance F2. If F1=F2, it means that the evaluated values ​​are consistent. The main control end controls the relevant printing components to rotate in the opposite direction by a set of angles J, and then moves in the opposite direction based on the movement data of the center point of the recorded surface image.

[0025] The F1≠F2 means that the evaluated values ​​are inconsistent. The main control end controls the relevant printing components to rotate in the opposite direction by a set angle J, and then moves in the opposite direction based on the movement data of the center point of the recorded surface image. Then, the printing components are fine-tuned based on the adjustment data, and then the relevant parts are printed.

[0026] Preferably, the specific manner in which the feature adjustment and analysis unit adjusts the relevant values ​​of the printing area of ​​the surface image includes:

[0027] Move the sub-region within the surface image, and confirm the corresponding sub-variance F2 in real time during the movement;

[0028] The secondary variance F2 generated in each movement process is processed with the main variance F1. From several groups of differences, the difference closest to 0 is selected, and this difference is calibrated as the final difference. The relevant position of the sub-area corresponding to the final difference is calibrated as the final position, and then the adjustment data is determined based on the direction and distance from the initial position to the final position of the sub-area.

[0029] The present invention provides a positioning and identification system for printing anti-counterfeiting labels. Compared with the prior art, it has the following beneficial effects:

[0030] The present invention determines the surface image of the relevant parts through machine vision, and then performs angle rotation based on the confirmation of the relevant center point, so that the two can be quickly overlapped, and the relevant overlap degree is confirmed, and the corresponding rotation angle is recorded. The non-standard placement of the relevant parts can be taken into account to ensure the relevant accuracy of the corresponding label positioning, and the label positioning is preliminarily processed;

[0031] Subsequently, in view of the misalignment between the relevant parts and the corresponding standard templates, the characteristic values ​​of the relevant feature points of the printing area located on the corresponding end face are identified to identify whether the variance between the printing area inside the surface image and the standard template is different. If there is a relevant difference, it is changed by changing the position of the area. If there is no relevant difference, the relevant printing components are controlled by the control end to print by directly adjusting the angle and center point, so as to achieve a better printing processing effect, make the positioning of the relevant printed labels more accurate, the positioning effect better, and the positioning identification more comprehensive. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is a schematic diagram of the principle framework of the present invention;

[0033] Figure 2 This is a schematic diagram for confirming the relevant numerical values ​​of the printing area of ​​the present invention. DETAILED DESCRIPTION

[0034] 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.

[0035] Example 1

[0036] See also Figure 1, the present application provides a positioning and identification system for printing anti-counterfeiting labels, including a machine vision end, a template library, a positioning processing end, a data recording end, a main control end and a regional calibration processing end, wherein the machine vision end and the module library are both electrically connected to the positioning processing end input node, and the positioning processing end is electrically connected to the data recording end and the regional calibration processing end input node respectively, and the regional calibration processing end is electrically connected to the data recording end input node, and the data recording end is electrically connected to the main control end input node;

[0037] The regional calibration processing end includes a feature preliminary evaluation unit and a feature adjustment analysis unit, and the input nodes of the feature preliminary evaluation unit and the feature adjustment analysis unit are electrically connected;

[0038] Among them, the machine vision end obtains the surface image of the relevant parts that need to be printed with labels, and transmits the obtained surface image to the positioning processing end. When acquiring the image, the corresponding high-definition equipment is used for relevant shooting. The relevant probe of the high-definition equipment is a high-precision camera, and its specific accessories are determined by the relevant operators to ensure the clarity of the corresponding image;

[0039] Among them, the template library stores different corresponding templates for different related parts, and the corresponding templates of the corresponding related parts are input in advance by the operator. When performing the relevant positioning of the corresponding related parts, the operator determines the corresponding template in advance and transmits the corresponding template to the positioning processing end, and the corresponding template is calibrated with the relevant printing area and center point. For example, the machine vision end obtains the surface image of the corresponding related part, and the operator directly extracts the corresponding template of the corresponding related part from the template library, and compares the two through the positioning processing end to perform relevant printing;

[0040] The positioning processing end determines the center point of the surface image and the center point of the corresponding template based on the acquired surface image and the related corresponding template, compares the two, determines the maximum overlap between the surface image and the corresponding template, and finally evaluates the related execution end, wherein the specific method of determination is:

[0041] Align the center point of the surface image with the center point of the corresponding template so that the two sets of center points are on the same vertical horizontal line, and record the movement data of the center point of the surface image through the data recording end;

[0042] The surface image is rotated according to the position of the center point, and based on the corresponding rotation process, the overlap CH between the surface image and the corresponding template is identified, and the overlap CH is the proportion of the overlap area in the corresponding template. According to the different overlap CH generated by different rotation processes, the maximum overlap CH is selected from several groups of different overlap CH. max, then determine the specific rotation angle of the surface image, and simultaneously determine the position of the surface image and the corresponding template;

[0043] Identify the maximum overlap CH max Whether it meets: CH max =100%. If it is satisfied, the specific rotation angle J of the surface image is directly recorded through the data recording end, and the main control end controls the relevant printing components to rotate a group of angles J in the opposite direction, and then moves in the opposite direction based on the movement data of the center point of the recorded surface image to print the label on the relevant part;

[0044] If the maximum overlap CH max Not satisfied: CH max =100%, identification of CH max Whether it satisfies: Y1≤CH max <100%, where Y1 is a preset value, and its specific value is determined by the operator based on experience. If it is satisfied, the regional calibration processing end is executed (specifically, this situation is generally caused by the unevenness of the relevant parts or other situations, resulting in the overlap between the surface image of the relevant parts and the corresponding template not meeting 100%, which will cause the maximum overlap not to be 100%. In this case, the relevant calibration of the printing area is required. In the confirmation process, there may be some deviations, because the relevant features of the center point of the surface image are inconsistent with the features of the center point of the template, which will easily cause the position features of the printing area to fail to meet the standards). If it is not satisfied, an abnormal signal is directly generated for display for external personnel to view and take timely countermeasures;

[0045] Specifically, during the rotation of the surface image, the center point of the surface image and the corresponding template is completely aligned, and the corresponding overlap can be determined based on the corresponding rotation process. First of all, why is it necessary to rotate here? Because the corresponding related parts are placed on the relevant conveyor belt or conveyor line for movement, and the direction and angle of printing of the original printing component remain unchanged, then the non-standard placement of the related parts will cause the printing area to change, thereby causing positioning errors. Therefore, rotation is performed here. Based on the corresponding rotation angle, the printing component can be adjusted and controlled by the main control end to ensure that the corresponding printing positioning meets the standard. This situation is for the case where the overlap is 100%;

[0046] If the overlap does not reach 100%, then when the printing area of ​​the corresponding template is mapped to the surface image, corresponding misalignment will occur. It is necessary to perform regional calibration at the subsequent regional calibration processing end to ensure the accurate positioning of the printing area.

[0047] Example 2

[0048] Among them, the area calibration processing end performs relevant positioning of the printing area based on the determined surface image and the position of the corresponding template, and records its adjustment data through the data recording end. First, based on the feature initial evaluation unit, the printing area of ​​the corresponding template is mapped to the surface image, and then the relevant numerical features of the printing areas of the two are analyzed to evaluate whether their values ​​are consistent:

[0049] If they are inconsistent, the characteristic adjustment analysis unit is executed to adjust the relevant values ​​of the printing area of ​​the surface image. When the two are adjusted to be consistent, the adjustment data is recorded. Subsequently, the main control end controls the relevant printing component to rotate in the opposite direction by a group of angles J, and then moves in the opposite direction based on the movement data of the center point of the recorded surface image. Then, the printing component is fine-tuned based on the adjustment data, and then the relevant part is printed. Here, the initial position of the printing component can be understood as the standard position of the printing area of ​​the corresponding template;

[0050] If they are consistent, the main control end is directly used to control the relevant printing components to rotate in the opposite direction by a group of angles J, and then move in the opposite direction based on the movement data of the center point of the recorded surface image. Specifically, the relevant positioning processing here is mainly aimed at abnormal situations. In the case of consistency, it can be understood that the shape of the relevant parts is fine, and the size has a relevant problem, that is, it is smaller than the template, and it is a reduced version of the template. Its center point has not changed, so the printing area can be directly printed without adjustment. In the case of inconsistency, it can be understood that there is a missing situation of the relevant parts, resulting in a relevant change in the center point relative to the template, so the printing area will be offset;

[0051] Among them, combined Figure 2 , the specific method of analyzing the relevant numerical characteristics of the printing areas of the two is as follows:

[0052] Based on the determined positions of the surface image and the corresponding template, the printing area of ​​the corresponding template surface is parallel mapped to the surface of the surface image (which can be understood as translating the printing area up and down). After the mapping is completed, the printing area of ​​the corresponding template is marked as the main area, and the printing area of ​​the surface image is marked as the secondary area;

[0053] A group of points are randomly selected on each set of edge lines of the main area as the main feature points of the corresponding edge lines (normally, the printing area is a rectangle, so four main feature points will be confirmed), and then based on the location of the main feature points, the secondary feature points at the same position are confirmed on the edge lines of the secondary area (the main area and the secondary area are completely consistent, so the same position can be determined);

[0054] Determine the shortest distance between different main feature points and the corresponding template edge and mark it as J i, where i represents different main feature points, and then determine the closest distance between different secondary feature points and the edge of the surface image, and mark it as J k , where k represents different secondary feature points;

[0055] The distance J of several groups of main feature points i Perform variance processing to determine the main variance F1, and then calculate the distance J of the secondary feature point k Perform variance processing to determine the subvariance F2. If F1 = F2, it means that the values ​​evaluated are consistent. If F1 ≠ F2, it means that the values ​​evaluated are inconsistent.

[0056] The analysis process here is to confirm the positional features of the corresponding printing area located in the surface image or the corresponding template. When the features of the two are consistent, it means that the determined printing area is a qualified area and printing can be carried out normally. When the features of the two are inconsistent, relevant adjustments need to be made to the position of the determined printing area.

[0057] The specific manner in which the feature adjustment and analysis unit adjusts the relevant values ​​of the printing area of ​​the surface image includes:

[0058] Move the sub-region within the surface image, and confirm the corresponding sub-variance F2 in real time during the movement;

[0059] The secondary variance F2 generated in each movement process is subjected to difference processing with the main variance F1, and the difference closest to 0 is selected from several groups of differences, and this difference is calibrated as the final difference. The relevant position of the sub-area corresponding to the final difference is calibrated as the final position, and then the adjustment data is determined based on the direction and distance from the initial position to the final position of the sub-area.

[0060] Specifically, this adjustment processing method is to ensure that the printing area is displayed more standardly in the corresponding surface image, to ensure that better printing processing effects can be achieved during subsequent printing, and the direction and distance of area movement will not deviate too much from the original position. In this way, better printing processing effects can be achieved.

[0061] Example 3

[0062] The specific implementation process of this embodiment includes the entire implementation process of the above two groups of embodiments.

[0063] Some of the data in the above formulas are dimensionless and numerically calculated. Meanwhile, the contents not described in detail in this specification belong to the prior art known to those skilled in the art.

[0064] The above embodiments are only used to illustrate the technical method of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical method of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical method of the present invention.

Claims

1. A positioning and identification system for printing anti-counterfeiting labels, characterized in that: include: The machine vision end obtains the surface image of the relevant parts that need to be printed with labels; The template library stores different corresponding templates for different related parts; The positioning processing end determines the center point of the surface image and the center point of the corresponding template based on the acquired surface image and the related corresponding template, compares the two, determines the maximum overlap between the surface image and the corresponding template, and finally evaluates the related execution end. The specific method is as follows: Align the center point of the surface image with the center point of the corresponding template so that the two sets of center points are on the same vertical horizontal line, and record the movement data of the center point of the surface image through the data recording end; The surface image is rotated according to the position of the center point, and based on the corresponding rotation process, the overlap CH between the surface image and the corresponding template is identified, and the overlap CH is the proportion of the overlap area in the corresponding template. According to the different overlap CH generated by different rotation processes, the maximum overlap CH is selected from several groups of different overlap CH. max , then determine the specific rotation angle of the surface image, and simultaneously determine the position of the surface image and the corresponding template; Identify the maximum overlap CH max Whether it meets: CH max =100%, if it is satisfied, the specific rotation angle J of the surface image is directly recorded through the data recording end, and the main control end controls the relevant printing components to rotate a group of angles J in the opposite direction, and then moves in the opposite direction based on the movement data of the center point of the recorded surface image, and prints the label on the relevant part; The area calibration processing end performs the relevant positioning of the printing area based on the determined surface image and the position of the corresponding template, and records its adjustment data through the data recording end. First, based on the feature initial evaluation unit, the printing area of ​​the corresponding template is mapped to the surface image, and then the relevant numerical features of the printing areas of the two are analyzed to evaluate whether their values ​​are consistent: If they are consistent, the relevant printing components can be directly controlled through the main control terminal; If they are inconsistent, the characteristic adjustment analysis unit is executed to adjust the relevant values ​​of the printing area of ​​the surface image. When the two are adjusted to be consistent, the adjustment data is recorded, and then the relevant printing components are controlled through the main control end; Among them, the specific method of analyzing the relevant numerical characteristics of the printing areas of the two is: Based on the determined positions of the surface image and the corresponding template, the printing area of ​​the corresponding template surface is parallel mapped to the surface of the surface image. After the mapping is completed, the printing area of ​​the corresponding template is marked as the main area, and the printing area of ​​the surface image is marked as the secondary area; A set of points are randomly selected on each set of edge lines of the main area as the main feature points of the corresponding edge lines, and then based on the positions of the main feature points, the secondary feature points at the same position are confirmed on the edge lines of the secondary area; Determine the shortest distance between different main feature points and the corresponding template edge and mark it as J i , where i represents different main feature points, and then determine the closest distance between different secondary feature points and the edge of the surface image, and mark it as J k , where k represents different secondary feature points; The distance J of several groups of main feature points i Perform variance processing to determine the main variance F1, and then calculate the distance J of the secondary feature point k Variance processing is performed to determine the secondary variance F2. If F1=F2, it means that the evaluated values ​​are consistent. The main control end controls the relevant printing components to rotate in the opposite direction by a set of angles J, and then moves in the opposite direction based on the movement data of the center point of the recorded surface image.

2. A positioning and identification system for printing anti-counterfeiting labels according to claim 1, characterized in that: The corresponding templates of the related parts are input in advance by the operator, and when performing the relevant positioning of the corresponding related parts, the operator determines the corresponding template in advance and transmits the corresponding template to the positioning processing end, and the corresponding template is calibrated with the relevant printing area and center point.

3. A positioning and identification system for printing anti-counterfeiting labels according to claim 1, characterized in that: The maximum overlap CH max Not satisfied: CH max =100%, identify CH max Whether it satisfies: Y1≤CH max <100%, where Y1 is the preset value: If satisfied, the regional calibration processing end is executed.

4. A positioning and identification system for printing anti-counterfeiting labels according to claim 3, characterized in that: The CH max If Y1≤CH is not satisfied max If the value is less than 100%, an abnormal signal will be directly generated for display.

5. A positioning and identification system for printing anti-counterfeiting labels according to claim 1, characterized in that: If F1≠F2, it means that the evaluated values ​​are inconsistent. The main control end controls the relevant printing components to rotate in the opposite direction by a set angle J, and then moves in the opposite direction based on the movement data of the center point of the recorded surface image. Then, the printing components are fine-tuned based on the adjustment data, and then the relevant parts are printed.

6. A positioning and identification system for printing anti-counterfeiting labels according to claim 1, characterized in that: The specific manner in which the feature adjustment and analysis unit adjusts the relevant values ​​of the printing area of ​​the surface image includes: Move the sub-region in the surface image, and confirm the corresponding sub-variance F2 in real time during the movement; The secondary variance F2 generated in each movement process is processed with the main variance F1. From several groups of differences, the difference closest to 0 is selected, and this difference is calibrated as the final difference. The relevant position of the sub-area corresponding to the final difference is calibrated as the final position, and then the adjustment data is determined based on the direction and distance from the initial position to the final position of the sub-area.

Citation Information

Patent Citations

  • Printed circuit board (PCB) and positioning system as well as positioning method thereof

    CN101713635A

  • Printing label defect detection method and device

    CN113063802A

  • Label printing positioning method and device, equipment and storage medium

    CN116681913A