Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. A process may be terminated when its operations are completed, but may have additional steps not included in the figure. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
Furthermore, the terms "first," "second," and the like may be used herein to describe various orientations, actions, steps, elements, or the like, but the orientations, actions, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. For example, the micro encoded image first category may be referred to as a micro encoded image second category, and similarly, the micro encoded image second category may be referred to as a micro encoded image first category, without departing from the scope of the present application. The first category of micro-coded images and the second category of micro-coded images are both a category of micro-coded images, but are not the same category of micro-coded images. The terms "first", "second", etc. are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Example one
Fig. 1 is a schematic flowchart of an authentication method according to an embodiment of the present invention, which is applicable to the authentication of microscopic images on the surface of a printing material made of different materials by using a set of image characteristic reference values, and the method may be executed by an authentication device, which may be implemented in software and/or hardware, and may be integrated on a terminal, such as a smart phone, a tablet computer, a learning machine, and the like.
As shown in fig. 1, a counterfeit identification method according to an embodiment of the present invention includes:
and S110, acquiring a microcoded image of the surface of the target printing stock.
Specifically, the printing material refers to various substances capable of receiving ink or adsorbing a coloring material and presenting images and texts, such as coated paper, leather, fragile paper, polypropylene, water printing paper, offset paper and the like. The microcosmic coding image is a coding image printed on the surface of a printing stock and is formed by arranging and combining a plurality of micron-sized code points according to a certain coding rule. Since the microcosmic coded image is printed on the basis of the highest-precision variable data printing technology, the microcosmic coded image has the natural characteristic of difficult copying, so that the microcosmic coded image of a genuine product produced by a manufacturer is different from the microcosmic coded image intentionally copied by other people, and the problem of information loss easily exists. Alternatively, the user may dynamically acquire the micro-coded image of the surface of the target printing material by using a terminal device having an image analysis function, where the image analysis function is a function capable of identifying information included in the micro-coded image, and may be, for example, a certain dedicated image identification software.
And S120, identifying the target characteristics and the target coding information of the microcosmic coding image.
Specifically, the target feature and the target encoding information are information included in the micro-encoded image. The target features may include one or more of a target code point quality value, a target code point distance value, a target code point size value, a target micro-coded image shape, a target micro-coded image shading, and other detailed information of the micro-coded image capable of performing an identification function. The code point quality value represents the uniformity of a plurality of code points in the microcosmic coded image, and the higher the uniformity, the lower the target code point quality value, and the higher the uniformity is otherwise; the code point spacing value represents the spacing between every two code points in the microcosmic coded image, and the larger the spacing is, the larger the target code point spacing value is, and the smaller the target code point spacing value is otherwise; the code point size value represents the size of a code point in the microcosmic coded image, and the larger the code point is, the larger the size value of the target code point is, and the smaller the size value is otherwise; the microscopic encoded image shape represents shape characteristics of the microscopic encoded image, for example, the microscopic encoded image shape is a circle, a square, a maple leaf, or the like; the micro-coded image shading represents the pattern and color of the shading adopted by the micro-coded image, and for example, the micro-coded image shading is stripes composed of blue oblique lines. Illustratively, the target feature of the identified micro-coded image is a codepoint quality value 55.
The encoding information indicates some information of the micro encoded image itself, such as one or more of a serial number, a production date, a material type, and a type of the micro encoded image when the micro encoded image is generated, and the target encoding information is 0010010000000000, for example. The material type refers to the material type of the target printing stock, for example, a coated paper material, a leather material, a fragile paper material, a polypropylene material, a water mark paper material, an offset paper material, and the like.
And S130, identifying the type of the target microcosmic coded image according to the target coding information.
Specifically, the classification of the micro coded images is a classification of the micro coded images, and is a basis for obtaining a reference feature for identifying the micro coded images. One or more fields in the target encoded information indicate the target micro-coded image category, and preferably, the target micro-coded image categories of the plurality of target encoded information may be the same. Illustratively, the first 3 digits in the encoded information represent the micro-coded image category, the first three digits in the encoded information represent the first micro-coded image category when the first three digits in the encoded information are 001, the first three digits in the encoded information represent the second micro-coded image category when the first three digits in the encoded information are 002, and the first three digits in the encoded information represent the third micro-coded image category when the first three digits in the encoded information are 003. When the identification target coding information is 0010010000000000, 0010020000000001 and 0020010000000001, the first three digits of the first two pieces of target coding information are both 001, the first two pieces of target micro-coded image are both the first category of micro-coded images, and the first three digits of the third piece of target coding information are 002, and the third piece of target micro-coded image is the second category of micro-coded images.
And S140, acquiring reference characteristics from a preset reference characteristic database of a server according to the target microcoded image category.
Specifically, the reference feature is a standard for determining whether the micro-coded image is authentic, and is stored in a preset reference feature database in the server. The reference characteristics comprise one or more of a reference code point quality value, a reference code point spacing value, a reference code point size value, a reference micro-coding image shape, a reference micro-coding image shading and other reference characteristics corresponding to target characteristics, the reference code point quality value is a standard for judging the authenticity of the target code point quality value of a micro-coding image, the reference code point spacing value is a standard for judging the authenticity of the target code point spacing value of the micro-coding image, the reference code point size value is a standard for judging the authenticity of the target code point size value of the micro-coding image, the reference micro-coding image shape is a standard for judging the authenticity of the target micro-coding image shape of the micro-coding image, and the reference micro-coding image shading is a standard for judging the authenticity of the target micro-coding image shading of the micro-coding image.
According to the type of the target microcoded image obtained currently, the reference feature corresponding to the type of the microcoded image can be obtained from a preset reference feature database of the server. The reference characteristics obtained according to the type of the microscopic coding image can be a plurality of reference characteristics or one reference characteristic, and since the code point size value and the code point distance value can influence the code point quality value, preferably, the code point quality value is used as a parameter for judging the authenticity of the microscopic coding image, and the reference characteristics obtained according to the target coding information are the reference code point quality value. For example, according to the target micro-coded image of class 001, the reference feature of the first class of the micro-coded image is obtained as the code point quality value 63.
And S150, outputting a false distinguishing result according to the comparison result of the target characteristic and the reference characteristic.
Specifically, the comparison between the target features and the reference features is one-to-one correspondence, that is, the target code point quality value should be compared with the reference code point quality value, the target code point spacing value should be compared with the reference code point spacing value, the target code point size value should be compared with the reference code point size value, the target microcoded image shape should be compared with the reference microcoded image shape, and the target microcoded image shading should be compared with the reference microcoded image shading. Outputting the authentication result according to the comparison result of the target feature and the reference feature comprises: according to the comparison result of the target code point quality value and the reference code point quality value; and/or according to the comparison result of the target code point size value and the reference code point size value; and/or according to the comparison result of the target code point spacing value and the reference code point spacing value; and/or, according to the result of the comparison of the target micro-coded image shape with the reference micro-coded image shape; and/or outputting a false distinguishing result according to the comparison result of the target microcoded image shading and the reference microcoded image shading.
Optionally, the comparison between the target feature and the reference feature may be a comparison of a selected feature, or may be a comparison of a plurality of features. When multiple features are selected for comparison, multiple kinds of target features can be selected for comparison with corresponding reference features by setting the proportion of each target feature in the judgment result. For example, the comparison result is output according to the comparison result of the amplification value of the target code point quality value and the reference code point quality value, the comparison result of the amplification value of the target code point size value and the reference code point size value, and the comparison result of the amplification value of the target code point spacing value and the reference code point spacing value, wherein the comparison of the amplification value of the target code point quality value and the reference code point quality value accounts for 50%, the comparison of the amplification value of the target code point size value and the reference code point size value accounts for 25%, and the comparison of the amplification value of the target code point spacing value and the reference code point spacing value accounts for 25%.
Preferably, the quality value of the target code point is selected to be compared with the quality value of the reference code point, if the quality value of the target code point is less than or equal to the quality value of the reference code point, the code point uniformity of the microcosmic coding image is high, and the microcosmic coding image is a quality product; otherwise, if the target code point quality value is greater than the reference code point quality value, the microcosmic coded image is a duplicate. For example, the target code point quality value is 55, the reference code point quality value is 63, the target code point quality value 55 is smaller than the reference code point quality value 63, and the output counterfeit identification result indicates that the target printing material is a genuine product.
Optionally, when the discrimination result is output according to the comparison result of the target micro-coded image shape and the reference micro-coded image shape, the comparison of the target micro-coded image shape and the reference micro-coded image shape may be performed by one or more of factors that can determine the image shape, such as an image boundary line, an image area, and an image size.
Optionally, when the discrimination result is output according to the comparison result of the target micro-coded image shading and the reference micro-coded image shading, the comparison of the target micro-coded image shading and the reference micro-coded image shading may be performed through one or more of shading color, shading type, shading pattern, and the like.
According to the method, the object characteristics and the object coding information of the microcoded images are identified by obtaining the microcoded images on the surface of the object printing stock, the categories of the object microcoded images are identified according to the object coding information, the reference characteristics are obtained from a preset reference characteristic database of a server according to the categories of the object microcoded images, and the counterfeit identification result is output according to the comparison result of the object characteristics and the reference characteristics. The method and the device realize classification of the microcoded images, set the reference characteristics according to the types of the microcoded images, and solve the counterfeit identification problem of the microcoded images with different printing effects by using the preset reference characteristic database, thereby improving the reliability of microcoded image identification and expanding the coverage of the microcoded image counterfeit identification industry.
Example two
Fig. 2 is a schematic flow chart of a counterfeit authentication method according to a second embodiment of the present invention, which is further optimized according to the second embodiment of the present invention. As shown in fig. 2, the method includes:
s210, acquiring a microcoded image of the surface of the target printing stock.
Specifically, the printing material refers to various substances capable of receiving ink or adsorbing a coloring material and presenting images and texts, such as coated paper, leather, fragile paper, polypropylene, water printing paper, offset paper and the like. The microcosmic coding image is a coding image printed on the surface of a printing stock and is formed by arranging and combining a plurality of micron-sized code points according to a certain coding rule. The microscopic coding image of the genuine product produced by the manufacturer is distinguished from the microscopic coding image intentionally copied by others, and the purpose of identifying the authenticity of the product can be achieved by identifying some information contained in the microscopic coding image.
Alternatively, the user may dynamically acquire the micro-coded image of the surface of the target printing material by using a terminal device having an image analysis function, where the image analysis function is a function capable of identifying information included in the micro-coded image, and may be, for example, a certain dedicated image identification software.
S220, identifying target characteristics and target coding information of the microcosmic coded image, wherein the target characteristics comprise one or more of a target code point quality value, a target code point distance value, a target code point size value, a target microcosmic coded image shape and a target microcosmic coded image shading.
Specifically, the target feature and the target encoding information are information included in the micro-encoded image. The target characteristics comprise one or more of a target code point quality value, a target code point distance value, a target code point size value, a target micro-coding image shape, a target micro-coding image shading and other detailed information of micro-coding images capable of playing a recognition role. The code point quality value represents the uniformity of a plurality of code points in the microcosmic coded image, and the higher the uniformity, the lower the target code point quality value, and the higher the uniformity is otherwise; the code point spacing value represents the spacing between every two code points in the microcosmic coded image, and the larger the spacing is, the larger the target code point spacing value is, and the smaller the target code point spacing value is otherwise; the code point size value represents the outline size of the code point in the microcosmic coded image, and the larger the code point is, the larger the size value of the target code point is, and the smaller the size value is otherwise; the microscopic encoded image shape represents shape characteristics of the microscopic encoded image, for example, the microscopic encoded image shape is a circle, a square, a maple leaf, or the like; the micro-coded image shading represents the pattern and color of the shading adopted by the micro-coded image, and for example, the micro-coded image shading is stripes composed of blue oblique lines. Illustratively, the identified target features of the micro-coded image are a target code point quality value of 65 and a target point size value of 80.
The code information indicates some information of the micro code image itself, such as one or more of a serial number, a production date, a material type, and a micro code image type when the micro code image is generated, and the identification target code information is 0010010000000000, for example. The material type refers to the material type of the target printing stock, for example, a coated paper material, a leather material, a fragile paper material, a polypropylene material, a water mark paper material, an offset paper material, and the like.
And S230, identifying the type of the target microcosmic coded image according to the target coding information.
Specifically, the classification of the micro coded images is a classification of the micro coded images, and is a basis for obtaining a reference feature for identifying the micro coded images. One or more fields in the target encoded information indicate the target micro-coded image category, and preferably, the target micro-coded image categories of the plurality of target encoded information may be the same. Illustratively, the first 3 digits in the encoded information represent the micro-coded image category, the first three digits in the encoded information represent the first micro-coded image category when the first three digits in the encoded information are 001, the first three digits in the encoded information represent the second micro-coded image category when the first three digits in the encoded information are 002, and the first three digits in the encoded information represent the third micro-coded image category when the first three digits in the encoded information are 003. When the identification target coding information is 0010010000000000, 0010020000000001 and 0020010000000001, the first three digits of the first two pieces of target coding information are both 001, the first two pieces of target micro-coded image are both the first category of micro-coded images, and the first three digits of the third piece of target coding information are 002, and the third piece of target micro-coded image is the second category of micro-coded images.
S240, acquiring reference characteristics from a preset reference characteristic database of a server according to the target micro-coding image category, wherein the reference characteristics comprise one or more of a reference code point quality value, a reference code point size value, a reference code point distance value, a reference micro-coding image shape and a reference micro-coding image shading.
Specifically, the reference feature is a standard for determining whether the micro-coded image is authentic, and is stored in a preset reference feature database in the server. The reference characteristics comprise one or more of a reference code point quality value, a reference code point spacing value, a reference code point size value, a reference micro-coding image shape, a reference micro-coding image shading and other reference characteristics corresponding to target characteristics, the reference code point quality value is a standard for judging the authenticity of the target code point quality value of a micro-coding image, the reference code point spacing value is a standard for judging the authenticity of the target code point spacing value of the micro-coding image, the reference code point size value is a standard for judging the authenticity of the target code point size value of the micro-coding image, the reference micro-coding image shape is a standard for judging the authenticity of the target micro-coding image shape of the micro-coding image, and the reference micro-coding image shading is a standard for judging the authenticity of the target micro-coding image shading of the micro-coding image.
According to the type of the target microcoded image obtained currently, the reference feature corresponding to the target coding information can be obtained from a preset reference feature database of the server. The reference characteristics obtained according to the target coding information can be a plurality of reference characteristics or one reference characteristic, and since the code point size value and the code point distance value can influence the code point quality value, preferably, the code point quality value is used as a parameter for judging the authenticity of the microscopic coding image, and the reference characteristics obtained according to the target coding information are the reference code point quality value. For example, according to the object micro-coded image of type 001, the reference features of the first type of the micro-coded image are obtained as a reference code point quality value 63 and a reference code point size value 75.
And S250, confirming the magnification of the target code point size value relative to the reference code point size value.
Specifically, the target code point size value is amplified by a factor k relative to the reference code point size value0Then according to formula (2-1):
wherein Z isrIs a target code point size, ZcIs a reference codepoint size value.
Illustratively, the target code point size value is 80, the reference code point size value is 75, and the target code point size value is calculated according to equation (2-1) at a magnification k relative to the reference code point size value0=1.07。
Optionally, the calculation magnification is k0In this case, the magnification factor may be calculated by the target code dot pitch value and the reference code dot pitch value, for example, by the target code dot pitch average value and the reference code dot pitch average value between three code dots.
Optionally, the magnification is calculated by the target micro-coded image shape and the reference micro-coded image shape, for example, the magnification is calculated by the area contained by the target micro-coded image shape and the area contained by the reference micro-coded image shape.
Optionally, the magnification is calculated by the target micro-coded image shading and the reference micro-coded image shading, for example, by the target micro-coded image shading chroma and the reference micro-coded image shading chroma.
And S260, calculating an amplification value of the code point quality value according to the amplification factor.
Specifically, the amplification factor K of the target code point quality value is first calculated, and calculated according to equation (2-2):
(a, b are constants, and a > 1, b > 1) (2-2)
Then, an amplification value Q of the target code point quality value is calculated0Calculated according to equation (2-3):
Q0=KQi (2-3)
wherein Q isiIs the target codepoint quality value.
Illustratively, the target codepoint size value is at a magnification k relative to the reference codepoint size value01.07, the target code point quality value is 70, the reference code point quality value is 63, a is 4, and b is 2, the amplification factor of the target code point quality value is calculated according to equation (2-2) as K is 1.21, and the amplification value of the target code point quality value is Q according to equation (2-3)0=84.7。
S270, outputting a false distinguishing result according to the comparison result of the amplified value of the target code point quality value and the reference code point quality value.
Specifically, if the amplification value of the target code point quality value is greater than the reference code point quality value, the counterfeit identification result is output as that the target printing stock is a counterfeit product, and if the amplification value of the target code point quality value is less than the reference code point quality value, the counterfeit identification result is output as that the target printing stock is a genuine product. For example, the amplification value of the target code point quality value is 84.7, the reference code point quality value is 63, the amplification value of the target code point quality value is 84.7 greater than the reference code point quality value 63, and the counterfeit result is output as a counterfeit of the target printing material.
Whether the microcosmic coded image is a counterfeit or not can be easily identified by amplifying the target characteristics, so that the user can correctly identify the authenticity of the microcosmic coded image even if the identified target characteristics have large deviation under the conditions of poor light, unstable holding of terminal equipment and the like. In this case, the setting range of the reference feature may be widened, for example, if the normal reference code point quality value is 63, and if the code point quality value is set to 70, the authenticity of the micro-coded image can be identified by using the counterfeit identification method provided by the second embodiment of the present invention.
The embodiment of the invention obtains the amplified value of the code point quality by amplifying the code point quality value, then compares the amplified value of the code point quality with the reference code point quality value to obtain the authenticity result of the microcoded image, reduces the requirement of a user when the user uses terminal equipment to obtain the microcoded image, and reduces the influence of environmental factors on the authenticity identification result.
EXAMPLE III
Fig. 3 is a schematic flow chart of a method for establishing a preset reference feature database in a counterfeit authentication method according to a third embodiment of the present invention, where the third embodiment of the present invention further describes a process for establishing the preset reference feature database in the above-described embodiments. As shown in fig. 3, the method for establishing the preset reference feature database includes:
s310, obtaining sample characteristics of the microcoded images of the sample printing stocks.
Specifically, the sample characteristics comprise one or more of a sample code point quality value, a sample code point size value, a sample code point spacing value, a sample microcoded image shape and a sample microcoded image shading, wherein the code point quality value represents the uniformity of a plurality of code points in the microcoded image, and the higher the uniformity is, the lower the target code point quality value is, otherwise, the higher the target code point quality value is; the code point spacing value represents the spacing between every two code points in the microcosmic coded image, and the larger the spacing is, the larger the target code point spacing value is, and the smaller the target code point spacing value is otherwise; the code point size value represents the size of a code point in the microcosmic coded image, and the larger the code point is, the larger the size value of the target code point is, and the smaller the size value is otherwise; the microscopic encoded image shape represents shape characteristics of the microscopic encoded image, for example, the microscopic encoded image shape is a circle, a square, a maple leaf, or the like; the micro-coded image shading represents the pattern and color of the shading adopted by the micro-coded image, and for example, the micro-coded image shading is stripes composed of blue oblique lines.
For example, taking the sample code point quality values as an example, the sample code point quality values of the microcoded images of the 7 sample printing materials are obtained as follows: 48. 50, 55, 140, 145, 150, 200.
And S320, dividing the plurality of samples into a plurality of micro-coding image categories according to the sample characteristics.
Specifically, the microcoded images are classified according to the sample characteristics, and the microcoded images of a plurality of sample printing materials with similar sample characteristics can be classified into one class. Illustratively, the micro-coded images of the sample printing materials with the sample code point quality values of 48, 50 and 55 are classified into a first class of micro-coded images, the micro-coded images of the sample printing materials with the sample code point quality values of 140, 145 and 150 are classified into a second class of micro-coded images, and the micro-coded images of the sample printing materials with the sample code point quality values of 200 are classified into a third class of micro-coded images.
Optionally, the category of the micro-coded image may also be classified according to the material category of the micro-coded image, or according to the printing process of the micro-coded image, or according to the material category of the micro-coded image and the printing effect of the total micro-coded image formed by the printing process. Illustratively, the art paper material, the leather material, the fragile paper material and the polypropylene material are classified into the same category, and the watermark paper material and the offset paper material are classified into the same category.
S330, setting the reference feature according to the microcosmic coding image category and the sample feature.
Specifically, each type of the micro coded image sets a reference feature corresponding to a sample feature, and the reference feature may be that an average value of the sample feature in the type of the micro coded image rises to a certain proportion, or that a maximum value or a minimum value of the sample feature in the type of the micro coded image rises to a certain proportion. Considering the influence of factors such as code scanning speed and environment when a user uses a mobile device to identify a microcoded image on the surface of a printing stock in an actual situation, the floating rate is generally set to 10% -15%. For example, taking the sample code point quality value as an example, the maximum value of the sample code point quality values in each category of the observed encoded image, which is up to 15%, is selected as the reference code point quality value, then the reference code point quality value of the first category of the microscopic encoded image is 55 × (100% + 15%) 63, the reference code point quality value of the second category of the microscopic encoded image is 150 × (100% + 15%) 173, and the reference code point quality value of the third category of the microscopic encoded image is 200 (100% + 15%) 230.
Optionally, when the authenticity of the micro-coded image on the surface of the target printing stock is identified by using the authenticity identification method in the second embodiment of the invention, due to the arrangement of the magnification factor and the magnification coefficient, the influence on factors such as code scanning speed and environment when a user uses the method is further influencedThe upward floating proportion of the reference characteristic can reach 15 to 40 percent. For example, taking the sample code point quality value as an example, the maximum floating 40% of the sample code point quality values in each category of the observed encoded image is selected as the reference code point quality value, and then the reference code point quality value of the first category of the microscopic encoded image is 55 × 77 (100% + 40%), the reference code point quality value of the second category of the microscopic encoded image is 150 × 210 (100% + 40%), and the reference code point quality value of the third category of the microscopic encoded image is 200% (100% + 40%) -280. In step S260 of the second embodiment of the present invention, the amplification value of the target code point quality value is calculated to be Q0At this time, as can be seen by comparing with the reference code point quality value 77 of the first category of the microcosmic coded image, the amplification value 84.7 of the target code point quality value is larger than the reference code point quality value 77, the counterfeit identification result is output as that the target printing material is a counterfeit product, and the correct counterfeit identification result can still be obtained.
The embodiment of the invention obtains the sample characteristics of a plurality of sample printing stock microcoded images; classifying the plurality of samples into a plurality of micro-coded image classes according to the sample features; setting the reference feature according to the micro-coded image category and the sample feature. The establishment of the preset reference characteristic database is realized, and the authenticity identification of the microcosmic coded images is more accurate and reliable by setting different reference characteristics for different microcosmic coded image types.
Example four
Fig. 4 is a schematic flow chart of a method for establishing a preset reference feature database in a counterfeit identification method according to a fourth embodiment of the present invention, which is a further extension of the third embodiment of the present invention, and is suitable for classifying a new microcoded image of a substrate that is not included in an existing preset reference feature database. As shown in fig. 4, the method for establishing the preset reference feature database according to the fourth embodiment of the present invention includes:
and S410, identifying new sample characteristics of the microcoded image of the new sample printing stock.
Specifically, when a new substrate is present that is not incorporated into the existing pre-set reference feature database, the existing pre-set reference feature database needs to be expanded. The method comprises the steps of obtaining new sample characteristics of a microcoded image of a new sample printing stock, wherein the new sample characteristics comprise one or more of a new sample code point quality value, a new sample code point distance value, a new sample code point size value, a new sample microcoded image shape, a new sample microcoded image shading and other microcoded image detail information capable of playing a recognition role. Illustratively, taking the code point quality value as an example, the new sample code point quality value is 60.
And S420, determining the similarity number of the new sample characteristics and the sample characteristics of the existing microcoded images of the sample printing materials of each category.
In particular, the similarity number may be calculated from the deviation of the new sample characteristics from the sample characteristics of each of the existing classes of sample substrates. And if the deviation of the new sample characteristic and the existing sample characteristic is within a preset range, the number of similarities between the new sample characteristic and the existing sample characteristic can be recorded as 1, otherwise, the number of similarities between the new sample characteristic and the sample characteristic of each category of sample printing stock is recorded as 0, and the numbers of similarities between the new sample characteristic and the sample characteristic of the microcoded image of each category of sample printing stock are superposed to obtain the number of similarities between the new sample characteristic and the sample characteristic of the microcoded image of each category of sample printing stock.
Illustratively, the predetermined range is 0-20%, the new sample code point quality value is 60, the sample code point quality values of the first category of the existing micro-coded images are 48, 50 and 55, the sample code point quality values of the second category of the existing micro-coded images are 140, 145 and 150, and the sample code point quality value of the third category of the existing micro-coded images is 200. Offset (absolute value of difference between new sample code point quality value and existing sample code point quality value/existing sample code point quality value) × 100%. The similarity number of the obtained new sample code point quality value and the sample code point quality value of the first category of the existing microcoded image is 2, the similarity number of the new sample code point quality value and the sample code point quality value of the second category of the existing microcoded image is 0, and the similarity number of the new sample code point quality value and the sample code point quality value of the third category of the existing microcoded image is 0.
And S430, determining whether the maximum value of the similarity number is smaller than a preset minimum similarity number.
Specifically, the minimum similarity number is used to determine whether the microcoded images of the new sample substrate need to be classified individually. If the maximum value of the similarity numbers is smaller than the preset minimum similarity number, executing step S440; if the maximum value of the similarity number is not less than the preset minimum similarity number, step S450 is executed. Illustratively, the minimum similarity number is set to 1, and as can be seen from the calculation in step S420, if the maximum value of the similarity numbers is 2, and the maximum value 2 of the similarity numbers is greater than the minimum similarity number and is set to 1, step S450 should be performed to classify the sample into the first category of the micro coded image.
And S440, if the maximum value of the similarity number is smaller than the preset minimum similarity number, classifying the microcoded image of the new sample printing stock into a new microcoded image category.
S450, if the maximum value of the similarity number is not smaller than the preset minimum similarity number, classifying the microcoded images of the new sample printing stock into the existing microcoded image category corresponding to the maximum value of the similarity number.
In the method for establishing the preset reference characteristic database in the false identification method provided by the fourth embodiment of the invention, the new sample characteristics of the microcoded images of the new sample printing stock are identified; determining the similarity number of the new sample characteristics and the sample characteristics of the microcoded images of the existing sample printing stocks of each category; determining whether the maximum value of the similarity number is smaller than a preset minimum similarity number or not; if the maximum value of the similarity number is smaller than the preset minimum similarity number, classifying the microcoded images of the new sample printing stock into a new microcoded image category; and if the maximum value of the similarity number is not less than the preset minimum similarity number, classifying the microcoded images of the new sample printing stock into the existing microcoded image category corresponding to the maximum value of the similarity number. The classification of the micro-characteristic image categories of the new printing stock which is not included in the existing preset reference characteristic database is realized.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a counterfeit detection apparatus according to a third embodiment of the present invention, which is applicable to the counterfeit detection of the microscopic images on the surfaces of the printing materials of different materials by using a set of image characteristic reference values. The device can be realized in a software and/or hardware mode, and can be integrated on a terminal, such as a smart phone, a tablet computer, a learning machine and the like. The counterfeit identification device provided by the embodiment of the invention can execute the counterfeit identification method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For the content not described in detail in the third embodiment of the present invention, reference may be made to the description in any method embodiment of the present invention.
As shown in fig. 5, the counterfeit identifying apparatus 500 according to the third embodiment of the present invention includes a microcoded image obtaining module 510, a target information obtaining module 520, a reference feature obtaining module 530, and a result outputting module 540, wherein:
a microcoded image acquisition module 510 for acquiring microcoded images of the surface of the target substrate;
a target information obtaining module 520, configured to identify a target feature and target coding information of the micro coded image;
a micro-coded image category identification module 530, configured to identify a target micro-coded image category according to the target coding information;
a reference feature obtaining module 540, configured to obtain a reference feature from a preset reference feature database of a server according to the type of the target microcoded image;
and a result output module 550, configured to output an authentic result according to the comparison result between the target feature and the reference feature.
Optionally, the result output module 550 includes:
a magnification confirmation unit for confirming a magnification of the target feature with respect to the reference feature;
the target feature amplification value confirmation unit is used for calculating the amplification value of the target feature corresponding to the target feature according to the amplification factor;
and the false distinguishing result output unit is used for outputting a false distinguishing result according to the comparison result of the amplified value of the target characteristic and the reference characteristic.
Further, the target features include: one or more of a target code point quality value, a target code point size value, a target code point spacing value, a target microcoded image shape and a target microcoded image shading, wherein the reference feature correspondingly comprises: one or more of a reference code point quality value, a reference code point size value, a reference code point spacing value, a reference micro-encoded image shape, and a reference micro-encoded image shading.
Further, the result output module 550 further includes:
a first result output unit, configured to output a false-identification result according to a comparison result between the target code point quality value and the reference code point quality value; and/or
The second result output unit is used for outputting a false distinguishing result according to the comparison result of the target code point size value and the reference code point size value; and/or
A third result output unit, configured to output a counterfeit discrimination result according to a comparison result between the target code point distance value and the reference code point distance value; and/or
A fourth result output unit, configured to output a counterfeit discrimination result according to a comparison result between the target micro-coded image shape and the reference micro-coded image shape; and/or
And the fifth result output unit is used for outputting a false distinguishing result according to the comparison result of the target microcoded image shading and the reference microcoded image shading.
Optionally, the counterfeit identifying apparatus 500 further includes a preset reference feature database establishing module, where the preset reference feature database establishing module includes:
the sample characteristic acquisition unit is used for acquiring sample characteristics of the microcoded images of the sample printing stocks;
a micro-coding image category classification unit, configured to classify the plurality of samples into a plurality of micro-coding image categories according to the sample characteristics;
and the reference feature setting unit is used for setting the reference features according to the microcosmic coded image category and the sample features.
Optionally, the preset reference feature database establishing module further includes:
the new sample characteristic identification unit is used for identifying new sample characteristics of the microcoded images of the new sample printing stock;
the similarity number determining unit is used for determining the similarity number of the new sample characteristics and the sample characteristics of the existing microcoded images of each class of sample printing stocks;
the similarity number judging unit is used for determining whether the maximum value of the similarity numbers is smaller than a preset minimum similarity number or not;
the new microcoded image category setting unit is used for classifying the microcoded images of the new sample printing stock into a new microcoded image category if the maximum value of the similarity number is smaller than the preset minimum similarity number;
and the new microcoded image category classification unit is used for classifying the microcoded image of the new sample printing stock into the existing microcoded image category corresponding to the maximum value of the similarity number if the maximum value of the similarity number is not less than the preset minimum similarity number.
Further, the sample features include: one or more of a sample code point quality value, a sample code point size value, a sample code point spacing value, a sample microcoded image shape, and a sample microcoded image shading.
The embodiment of the invention provides a microcosmic coded image acquisition module, which is used for acquiring a microcosmic coded image on the surface of a target printing stock; the target information acquisition module is used for identifying target characteristics and target coding information of the microcosmic coded image; the microcosmic coded image category identification module is used for identifying the category of a target microcosmic coded image according to the target coding information; the reference characteristic acquisition module is used for acquiring reference characteristics from a preset reference characteristic database of a server according to the type of the target microcoded image; and the result output module is used for outputting the counterfeit identification result according to the comparison result of the target characteristic and the reference characteristic. The method and the device realize classification of the microcoded images, set reference characteristics according to the types of the microcoded images, acquire different reference characteristics according to different target coding information, and solve the counterfeit distinguishing problem of the microcoded images with different printing effects by using a preset reference characteristic database, thereby improving the reliability of microcoded image identification and expanding the coverage of the microcoded image counterfeit distinguishing industry.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a terminal according to a fourth embodiment of the present invention. Fig. 6 illustrates a block diagram of an exemplary terminal 612 suitable for use in implementing embodiments of the present invention. The terminal 612 shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiments of the present invention.
As shown in fig. 6, the terminal 612 is represented in the form of a general-purpose terminal. The components of terminal 612 may include, but are not limited to: one or more processors 616, a memory device 628, and a bus 618 that couples the various system components including the memory device 628 and the processors 616.
Bus 618 represents one or more of any of several types of bus structures, including a memory device bus or memory device controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Terminal 612 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by terminal 612 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 628 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 630 and/or cache Memory 632. Terminal 612 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 634 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard disk drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk such as a Compact disk Read-Only Memory (CD-ROM), Digital Video disk Read-Only Memory (DVD-ROM) or other optical media may be provided. In such cases, each drive may be connected to bus 618 by one or more data media interfaces. Storage device 628 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 640 having a set (at least one) of program modules 642 may be stored, for example, in storage 628, such program modules 642 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 642 generally perform the functions and/or methods of the described embodiments of the present invention.
The terminal 612 may also communicate with one or more external devices 614 (e.g., keyboard, pointing terminal, display 624, etc.), with one or more terminals that enable a user to interact with the terminal 612, and/or with any terminals (e.g., network card, modem, etc.) that enable the terminal 612 to communicate with one or more other computing terminals. Such communication may occur via input/output (I/O) interfaces 422. Also, the terminal 612 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public Network such as the internet) via the Network adapter 620. As shown in fig. 6, the network adapter 620 communicates with the other modules of the terminal 612 via the bus 618. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the terminal 612, including but not limited to: microcode, end drives, Redundant processors, external disk drive Arrays, RAID (Redundant Arrays of Independent Disks) systems, tape drives, and data backup storage systems, among others.
The processor 616 executes various functional applications and data processing by executing programs stored in the storage device 628, for example, implementing the authentication method provided by any embodiment of the present invention, which may include:
acquiring a microcoded image of the surface of a target printing stock;
identifying target features and target coding information of the microcosmic coded image;
identifying the type of a target microcosmic coded image according to the target coding information;
acquiring reference features from a preset reference feature database of a server according to the type of the target microcoded image;
and outputting a false distinguishing result according to the comparison result of the target characteristic and the reference characteristic.
EXAMPLE seven
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for authenticating a counterfeit according to any embodiment of the present invention, and the method may include:
acquiring a microcoded image of the surface of a target printing stock;
identifying target features and target coding information of the microcosmic coded image;
identifying the type of a target microcosmic coded image according to the target coding information;
acquiring reference features from a preset reference feature database of a server according to the type of the target microcoded image;
and outputting a false distinguishing result according to the comparison result of the target characteristic and the reference characteristic.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.