Anti-counterfeiting printing method for packaging boxTechnical Field
The invention relates to the technical field of packaging boxes, in particular to an anti-counterfeiting printing method for a packaging box.
Background
The anti-counterfeiting codes printed on the packaging box are loaded with relevant important information of products such as production enterprises with products, effective periods and the like, and the anti-counterfeiting codes are identified and read through the terminal code scanner, so that consumers can inquire the anti-counterfeiting codes.
Disclosure of Invention
The invention aims to overcome the defects and provide an anti-counterfeiting printing method for a packaging box.
The anti-counterfeiting printing method for the packing box comprises the following steps:
reading the image identification information of the anti-counterfeiting seal code, generating a printed anti-counterfeiting seal code script, and storing the printed anti-counterfeiting seal code script in a printer;
reading the preview image identification information of the anti-counterfeiting seal code, comparing the preview image identification information with the anti-counterfeiting seal code script, judging whether the preview image identification information and the anti-counterfeiting seal code script are consistent, and if so, printing the anti-counterfeiting seal code on a test packaging box through a printer;
checking the printing quality of the anti-counterfeiting seal code, and if the printing quality is qualified, switching to the next step;
with the packing carton location treat the printing area, print white bottom plate on the packing carton, dry the solidification with the packing carton after printing, make white bottom plate form the glue film on the packing carton, with the packing carton location treat the printing area again, will prevent fake seal code and print packing carton white bottom plate on, will print the packing carton that the good solidification can.
Further, reading the preview image identification information of the anti-counterfeiting seal code, comparing the preview image identification information with the anti-counterfeiting seal code script, and judging whether the preview image identification information and the anti-counterfeiting seal code script are consistent specifically comprises:
determining the homonymous points of all the characteristic points in the anti-counterfeiting code script, and extracting matching point pairs;
determining the coordinates of each feature point on the preview image;
and comparing the feature description vectors of the feature points with the feature description vectors of each coordinate point on the preview image one by one, and marking the row-column number coordinates of the matched same-name points on the preview image.
Further, the comparing of the feature description vector of the feature point with the feature description vector of each coordinate point on the preview image one by one is realized by the following method:
let the feature description vector of the feature point be Vf, the feature description vector of the corresponding coordinate point on the preview image be Vf ', and the matching degree between the two feature description vectors Vf, Vf' is determined by the following formula:
wherein sNo is the length of the feature description vector Vf; ve is a row vector of equal length to the feature description vector and all 1 values. A larger match value indicates a higher degree of match between the two feature description vectors.
The invention can improve the printing effect by setting and comparing the preview image identification information and the anti-counterfeiting seal code script. The problems of offset and missing in the printer are solved, the feature point extraction is only carried out on the preview image, the global scanning is not carried out, the calculation speed is higher, and the image printing speed is greatly improved.
Detailed Description
The following description of the method for printing the anti-counterfeit package according to the present invention will be made with reference to the accompanying drawings and the embodiments of the present invention.
Example (b): the anti-counterfeiting printing method for the packing box comprises the following steps:
reading the image identification information of the anti-counterfeiting seal code, generating a printed anti-counterfeiting seal code script, and storing the printed anti-counterfeiting seal code script in a printer;
reading the preview image identification information of the anti-counterfeiting seal code, comparing the preview image identification information with the anti-counterfeiting seal code script, judging whether the preview image identification information and the anti-counterfeiting seal code script are consistent, and if so, printing the anti-counterfeiting seal code on a test packaging box through a printer;
checking the printing quality of the anti-counterfeiting seal code, and if the printing quality is qualified, switching to the next step;
with the packing carton location treat the printing area, print white bottom plate on the packing carton, dry the solidification with the packing carton after printing, make white bottom plate form the glue film on the packing carton, with the packing carton location treat the printing area again, will prevent fake seal code and print packing carton white bottom plate on, will print the packing carton that the good solidification can.
Reading the preview image identification information of the anti-counterfeiting seal code, comparing the preview image identification information with the anti-counterfeiting seal code script, and judging whether the preview image identification information and the anti-counterfeiting seal code script are consistent specifically comprises the following steps:
determining the homonymous points of all the characteristic points in the anti-counterfeiting code script, and extracting matching point pairs;
determining the coordinates of each feature point on the preview image;
and comparing the feature description vectors of the feature points with the feature description vectors of each coordinate point on the preview image one by one, and marking the row-column number coordinates of the matched same-name points on the preview image.
The feature description vectors of the feature points are compared with the feature description vectors of each coordinate point on the preview image one by the following method:
let the feature description vector of the feature point be Vf, the feature description vector of the corresponding coordinate point on the preview image be Vf ', and the matching degree between the two feature description vectors Vf, Vf' is determined by the following formula:
wherein sNo is the length of the feature description vector Vf; ve is a row vector of equal length to the feature description vector and all 1 values. A larger match value indicates a higher degree of match between the two feature description vectors.
The reading of the image identification information of the anti-counterfeiting code comprises the following steps: acquiring a current printing task, and adding the current printing task into a first task window; taking the first task window as a current task window; and judging whether the task of the current task window is executed completely, if not, judging whether a newly added task appears, and if so, combining the incomplete task and the newly added task in the first task window into a second task window.