WO2017133154A1 - 防伪图像的生成方法及装置 - Google Patents
防伪图像的生成方法及装置 Download PDFInfo
- Publication number
- WO2017133154A1 WO2017133154A1 PCT/CN2016/085539 CN2016085539W WO2017133154A1 WO 2017133154 A1 WO2017133154 A1 WO 2017133154A1 CN 2016085539 W CN2016085539 W CN 2016085539W WO 2017133154 A1 WO2017133154 A1 WO 2017133154A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- bit
- value
- random variable
- image
- pseudo
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
- G06K19/06009—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
- G06K19/06046—Constructional details
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
- G06K19/06009—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
- G06K19/06046—Constructional details
- G06K19/06056—Constructional details the marking comprising a further embedded marking, e.g. a 1D bar code with the black bars containing a smaller sized coding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
- G06K19/06009—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
- G06K19/06037—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/0021—Image watermarking
- G06T1/0092—Payload characteristic determination in a watermarking scheme, e.g. number of bits to be embedded
Definitions
- Embodiments of the present invention relate to anti-counterfeiting technologies, for example, to a method and an apparatus for generating an anti-counterfeit image.
- the anti-counterfeiting identification code in the related art has the disadvantages of being simple, easy to steal and easy to copy, and the two-dimensional code is usually not encrypted in the process of encoding, and the information in the two-dimensional code can be easily obtained by anyone, and the confidentiality is relatively better. low.
- Embodiments of the present invention provide a method and an apparatus for generating an anti-counterfeit image, which are used to generate an anti-counterfeit image, and the image has the characteristics of high confidentiality.
- an embodiment of the present invention provides a method for generating an anti-counterfeit image, where the method includes:
- An image unit is drawn in the memory space according to a starting coordinate of the image unit in the to-be-generated anti-counterfeit image, and the completed image unit constitutes an anti-counterfeit image.
- an embodiment of the present invention further provides an apparatus for generating an anti-counterfeit image, the apparatus comprising:
- a setting module configured to determine, according to the set bit rule, the number of bits in the image unit of the anti-counterfeit image to be generated, the data point bits in the bit and the corresponding quantity, and the code point exists in the bit The number of data point bits, the code value bits included in the bit and the corresponding number, and the pseudo-random variable bits included in the bit and the corresponding number, wherein adjacent bits are closely arranged Together
- the combined quantity calculation module is configured to determine the combined quantity of the bits according to the number of data point bits in the bit element and the number of data point bits in the bit element in which the code point exists;
- a parameter obtaining module configured to obtain a width, a height, and an encoding value of the anti-counterfeit image to be generated, where the value range of the encoding value is a combination of the number of bits and the number of code value bits included in the bit Determining, and applying, according to the width and height of the anti-counterfeit image to be generated, a memory space for the anti-counterfeit image to be generated;
- a code point determining module configured to determine, according to the coded value, a combined number of the bits, a number of code value bits included in the bit, and a number of pseudo random variable bits included in the bit , Determining the location of the code point within the bit;
- a coordinate determining module configured to determine a starting coordinate of the image unit in the to-be-generated anti-counterfeiting image according to a set coordinate rule
- the image drawing module is configured to draw an image unit in the memory space according to a starting coordinate of the image unit in the to-be-generated anti-counterfeit image, and the completed image unit constitutes an anti-counterfeiting image.
- an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, the computer executable instructions being configured to perform the foregoing method.
- the disclosure provides a plurality of parameters for the anti-counterfeiting image generation, so that after generating a batch of anti-counterfeit images with the same parameters for the first user, one or more of the plurality of parameters may be changed to generate an anti-counterfeit image for the second user. Even if the first user knows the method of generating the security image, the setting parameter of the second user is not available, and the security image of the second user cannot be cracked, thereby improving the confidentiality of the security image.
- FIG. 1 is a flowchart of a method for generating an anti-counterfeit image according to Embodiment 1 of the present invention
- FIG. 2 is a flowchart of determining a position of a code point in a bit in a method for generating an anti-counterfeit image according to Embodiment 2 of the present invention
- FIG. 3 is a schematic diagram of a value model of a pseudo random variable according to Embodiment 2 of the present invention.
- FIG. 4 is a schematic structural diagram of an anti-counterfeiting image generating apparatus according to Embodiment 4 of the present invention.
- FIG. 5 is a schematic structural diagram of hardware of a device according to Embodiment 4 of the present invention.
- Embodiment 1 is a flowchart of a method for generating an anti-counterfeit image according to Embodiment 1 of the present invention.
- the method of the embodiment is applicable to the generation of an anti-counterfeit image, and the method may be performed by an anti-counterfeit image generating device, and the device may be implemented by software and / or hardware implementation, the method includes:
- S110 Determine, according to a set bit rule, a quantity of a bit element in an image unit to be generated of an anti-counterfeit image, a data point bit and a corresponding quantity in the bit element, and a data point position in which the code point exists in the bit element. a quantity, a code value bit and a corresponding quantity included in the bit, and a pseudo random variable bit included in the bit and a corresponding quantity, wherein adjacent bits are closely arranged together;
- the data point is a plurality of location areas in the bit, and the data point is also a basic unit constituting the bit;
- the bit includes one or more data points, the bit is a basic unit constituting the image unit;
- the image unit includes One or more bits, the image unit is the basic unit constituting the anti-counterfeit image, and the area of the image unit is fixed;
- the anti-counterfeit image is a digital anti-counterfeit image for the product, which is composed of one or more image units;
- the code value bit is represented by The bit value of the code value, the code value bit may have one or more;
- the pseudo random variable bit is a bit representing a pseudo random variable, and the pseudo random variable bit may also have one or more;
- the pseudo random variable is for anti-counterfeiting
- the image has a pseudo-random visual effect variable;
- the code value is an acquired code value, and each code value corresponds to a different security image.
- a code point may be set on the data point, and the code point may include a black code point or a gray code point of at least one gray value other than black, for example, may be a white code point or a gray value of 1- 254 gray code points of arbitrary gray values, so that the information capacity of the security image can be improved.
- the bit contains one or more data points, optionally 7 data points.
- the shape of the bit may be a square or a polygon, optionally a hexagon, to enhance the visual randomness of the security image.
- the accuracy of the bit can be very high, and the number of pixels per inch is 600, which makes the anti-counterfeit image not easy to copy, further improving the confidentiality of the anti-counterfeit image.
- the bit code may further include a positioning code point, and the number of the positioning code points is at least three, and may be distributed in different bit elements for positioning of the anti-counterfeit image.
- an image unit contains 7 hexagonal bits, and the bit includes 7 data points, wherein the first bit has 3 data points and the code points are used for positioning, and the remaining four There is one black code point and three white code points on the data point.
- the 7 data points in each of the other six bits contain 2 black code points and 5 white code points.
- the first bit and two of the other six bits are used as pseudo-sliders
- the machine variable bit is used to represent a pseudo-random variable, and the remaining four bits of the other six bits are used as code value bits to represent the code value.
- the setting bit rule is not fixed, and the manufacturer or the user may set the bit rule, and according to the different setting rule, the corresponding bit in the image unit of the anti-counterfeit image to be generated
- the number of elements, the number of data points in the bit and the corresponding number, the number of data point bits in which the code point exists, the code value bits included in the bit and the corresponding number, and The pseudo-random variable bits included in the bit and the corresponding number and other parameters are also different. A change in the parameter will change the combined number of bits, which in turn causes a change in the generated security image.
- the number of combinations of the bits is the number of possible values of each bit, including the combined number of code value bits and the combined number of pseudo random variable bits. For example, continue to take 7 hexagonal bits in an image unit.
- the first bit has 3 data points.
- the code points are used for positioning.
- the other four data points have a black bit. Code point three white code points, because the positioning code point is fixed, so the code point setting in the first bit can have 4 different combinations, that is, the first bit has 4 possible values, then
- the number of combinations of the first digit is 4.
- the 7 data points in each of the other six bits contain 2 black code points and 5 white code points.
- the mathematical combination formula is used to calculate the code points in each bit. For different combinations, the number of combinations of each of the other six bits is 21.
- the combined number of the current three pseudo-random variable bits is 4, 21, and 21, respectively.
- the combined number of the remaining four code value bits in the other six bits is 21, 21, 21, and 21, respectively.
- the calculation of the coded value may be a product of a combined number of each code value bit included in the image unit. For example, if there are four code value bits, the combined number of each code value bit is 21, the product of the combined number of each code value bit in the combined number of bits is 21*21*21*21, which is equal to 194481, and the coded value may be any one of 1-194481 or 0-194480. Value.
- the width, height, and encoding value of the anti-counterfeit image can be obtained by the client acquiring the setting parameters of the user.
- S140 Determine, according to the coded value, the combined number of the bits, the number of code value bits included in the bit, and the number of pseudorandom variable bits included in the bit, The location of the code point;
- the position of the code point in the bit is the specific data point where the code point is located.
- the location of the code point within the bit may be based on the coded value, the combined number of the bits, the number of code value bits included in the bit, and the pseudorandom variable bit included in the bit. The quantity is calculated and determined by the mapping relationship of the code points within the preset bit.
- the setting coordinate rule may define a specific coordinate setting rule, and according to the set coordinate rule, a starting coordinate of each image unit in the anti-counterfeiting image to be generated may be determined.
- the starting coordinate of the image unit is the coordinate of the vertex of the upper left corner of the image unit when the image unit is in the anti-counterfeit image.
- Determining the initial coordinates of the image unit in the anti-counterfeit image to be generated may be: taking the coordinates of the origin of the anti-counterfeit image to be generated as the starting coordinates of the first image unit; the image unit according to the surrounding known starting coordinates And calculating a starting coordinate of the image unit other than the first image unit in the anti-counterfeit image to be generated.
- the origin coordinate of the anti-counterfeit image is the coordinate of the top left vertex of the anti-counterfeit image.
- the starting coordinates of the image unit may be determined line by line, the coordinates of the origin of the anti-counterfeit image to be generated are taken as the starting coordinates of the first image unit of the first row; then the start of the second image unit in the first row is determined Coordinates, optionally, determining that the image unit other than the first image unit is larger than the image unit and the image unit of the surrounding known starting coordinates when the starting coordinates in the anti-counterfeit image are to be generated Small and shape, calculated.
- the origin coordinate of the anti-counterfeit image is the coordinate of the top left vertex of the anti-counterfeit image.
- the image units are distributed line by line in the anti-counterfeit image, and the lines here may be parallel to the width or height of the anti-counterfeit image, or may not be parallel to the width or height of the anti-counterfeit image, and may be non-parallel, so that the confidentiality is higher.
- the image unit may be drawn one by one, or all the image units in the anti-counterfeit image to be generated may be simultaneously drawn.
- the drawing image unit may start from the upper left corner of the security image and draw the image unit one by one in the obliquely upper right direction.
- various parameters are set for the anti-counterfeiting image generation according to the set bit rule, so that after generating a batch of anti-counterfeit images for the first user, the set bit rule can be changed. And changing the setting of one or more of the plurality of parameters to generate an anti-counterfeit image for the second user, so that even if the first user knows the method of generating the anti-counterfeit image, if there is no bit rule and setting parameter set by the second user The first user cannot crack the security image of the second user, thereby improving the confidentiality of the security image.
- step S140 includes:
- the combined number of the bits may include: a combined number of pseudo random variable bits and a combined number of code value bits.
- the process of calculating the value of the code value bit in the image unit may be: calculating the code in the image unit according to the coded value, the combined number of the bits, and the number of code value bits included in the bit An initial value of the value bit; an initial value of the code value bit is added using an encryption algorithm Density, the value of the code value bit is obtained.
- the process of calculating the initial value of the code value bit in the image unit may be: dividing the coded value by a product other than the first code value bit, and representing the combined quantity of the code value bit.
- the resulting quotient is taken as the initial value of the first code value bit; the remainder is divided by the product of the number of combinations of other code value bits other than the first and second code value bits, The resulting quotient is taken as the initial value of the second code value bit; and so on, the initial value of each code value bit in the current picture unit is calculated.
- the remainder b3 is taken as the initial value of the fourth code value bit.
- the value range of the pseudo-random variable is the value range of the pseudo-random variable in the current image unit, and the value range of the pseudo-random variable is calculated from the product of the combined quantity of the pseudo-random variable bits in the combined number of all the bits of the current image unit. get. For example, there are 3 pseudo-random variable bits in the current image unit, the combined number of each pseudo-random variable bit is 4, 5, and 6, and the calculated 4*5*6 result is 120, then the pseudo-random variable of the current image unit The value range is 0-119.
- S243 Determine, according to a value range of the pseudo random variable, a value template of a pseudo random variable of the image unit, such that a distance between two image units having a value of the same pseudo random variable is not less than a set number of image units. ;
- the set number of image units may be more than one, the purpose is to make the distance between the two image units having the same pseudo-random variable value far apart, thereby reducing the repeatability between the image units, and further improving The security of anti-counterfeit images.
- the pseudo-random variable has a value range of 0-26, and when the pseudo-random variable of the first image unit randomly generates a value of 0, the connection is performed.
- the pseudo random variable of the image unit at the upper right of the first image unit is 1, the value of the pseudo random variable connecting the image unit below the first image unit is 17, and so on, and the pseudo random variable of other image units in the security image is calculated.
- the pseudo random variable of the first image unit randomly generates a value of 19, and the value template of the pseudo random variable includes a plurality of 19, the diagonal upper right is started from the upper left of the value template of the pseudo random variable.
- the line scan is based on the first found 19, the pseudo random variable connecting the image unit at the upper right of the first image unit is 20, and the value of the pseudo random variable connecting the image unit below the first image unit is 25, thereby
- the pseudo-random variables of other image units in the anti-counterfeit image are calculated.
- the pseudo random variable of the first image unit randomly generates a value of 3
- the unconnected image unit of the upper right image unit of the pseudo random variable having the value of 3 is scanned on the value template, and then continues The value template is scanned line by line until a pixel unit with a pseudo random variable value of 3 is found, and the connected image unit is connected to the upper right side of the image unit. As shown in FIG.
- the pseudo random variable 15 of the image unit is connected to the first image unit.
- the process of calculating the value of the pseudo random variable bit in the image unit may be: using a verification algorithm generates a check value of the coded value; splicing the check value with a pseudo random variable represented by a pseudo random variable bit of the image unit to obtain a spliced value; according to the number of combinations of the bit The number of pseudo-random variable bits included in the bit element and the spliced value are calculated, and the value of the pseudo-random variable bit within the image unit is calculated. By adding a check value, the correctness of the decoding result can be ensured.
- the process of calculating the value of the pseudo random variable bit in the image unit may be: generating a check value of the coded value by using a check algorithm; and expressing the check value and the pseudo random variable bit of the image unit Pseudo-random variables are spliced to obtain the spliced value; the spliced value is divided by the product of the number of combinations of the pseudo-random variable bits other than the first pseudo-random variable bit, and the obtained quotient is taken as the first pseudo The initial value of the random variable bit; the remainder is divided by the product of the number of combinations of the other pseudo-random variable bits except the first and second pseudo-random variable bits, and the resulting quotient is taken as the second The initial value of the pseudo-random variable bit; and so on, the initial value of each pseudo-random variable bit in the image unit is calculated.
- the check value is set to 6 bits
- the pseudo random variable is shifted to the left by 6 bits and then the check value is spliced to the pseudo random variable.
- the splicing value is generated, and the splicing value /(21*4) is obtained as the initial value of the first pseudo random variable bit, the remainder is b4, and the quotient obtained by b4/4 is taken as the second pseudo random variable bit.
- the initial value of the element, the remainder b5 is taken as the initial value of the third pseudo-random variable bit.
- the value of the bit is a specific value
- the code point is set as the distribution of the code point in each data point in the bit
- the mapping relationship between the value of the bit and the code point is the value of the bit and The relationship of the code point is associated with the relationship.
- the mapping relationship between the value of the bit and the code point may be: when the value of the bit is 1, the distribution of the 7 code points in the corresponding bit may be: the data point of the black code point is located at the middle position. The remaining six white code points are set at six data points uniformly distributed around the center position.
- the application of the pseudo-random variable value template makes the pseudo-random variable determined by the pseudo-random variable value template low in repetition, so that the regularity of the generated anti-counterfeit image is not obvious. Thereby improving the confidentiality of the security image.
- the third embodiment of the present invention provides an anti-counterfeit image generating method.
- the embodiment is an alternative according to the foregoing implementation, and the method includes:
- the value template of the pseudo random variable of the image unit is determined such that the distance between the two image units having the same pseudo random variable value is not less than the set number of image units;
- the width and height are used to apply for a memory space for the anti-counterfeit image to be generated, and finally the coded value is calculated by a check algorithm to obtain a check value;
- the machine If the current image unit is the first image unit, within the range of values of the pseudo-random variable, The machine generates a value and uses the value as a pseudo-random variable represented by a pseudo-random variable bit in the first image unit; if the current image unit is not the first image, determining the current value according to the value template of the pseudo-random variable a pseudo-random variable represented by a pseudo-random variable bit of the image unit;
- the coordinates of the origin of the anti-counterfeit image to be generated are taken as the starting coordinates of the current image unit; if the current image unit is not the first image unit, according to the surrounding known starting coordinates An image unit that calculates a starting coordinate of the current image unit in the anti-counterfeit image to be generated;
- the technical solution of the embodiment further improves the confidentiality of the security image by verifying the coded value by using a check algorithm and encrypting the calculated initial value of the bit.
- FIG. 4 is a schematic structural diagram of an anti-counterfeit image generating apparatus according to Embodiment 4 of the present invention.
- This embodiment is an anti-counterfeiting image generating apparatus according to the foregoing embodiment, and the apparatus includes: a setting module 10, The combined quantity calculation module 20, the parameter acquisition module 30, the code point determination module 40, the coordinate determination module 50, and the image rendering module 60.
- the setting module 10 is configured to determine, according to the set bit rule, the number of bits in the image unit of the anti-counterfeit image to be generated, the data point in the bit and the corresponding quantity, and the presence in the bit The number of data point bits of the code point, the code value bit and the corresponding quantity included in the bit, and the pseudo random variable bit and the corresponding quantity included in the bit, wherein the adjacent bit Tightly arranged together;
- the combined quantity calculation module 20 is configured to determine the combined quantity of the bits according to the number of data point bits in the bit element and the number of data point bits in the bit element in which the code point exists;
- parameter acquisition The module 30 is configured to obtain a width, a high, and an encoded value of the anti-counterfeit image to be generated, wherein the value range of the encoded value is determined by a combined number of the bits and a number of code value bits included in the bit, And applying, according to the width and height of the anti-counterfeit image to be generated, a memory space for the
- one or more of the plurality of parameters may be changed.
- the two users generate the anti-counterfeit image, so that even if the first user knows the method of generating the anti-counterfeit image, without the setting parameter of the second user, the anti-counterfeit image of the second user cannot be cracked, thereby improving the confidentiality of the anti-counterfeit image.
- the code point location determining module 40 may include: a code value bit calculation unit, and a value domain.
- the code value bit calculation unit is configured to calculate a code value bit in the image unit according to the coded value, the combined number of the bit elements, and the number of code value bits included in the bit element.
- a value range calculating unit configured to calculate a value range of the pseudo random variable represented by the pseudo random variable bit according to the combined number of the bit elements and the number of pseudo random variable bits included in the bit element;
- a value template setting unit configured to determine a value template of the pseudo random variable of the image unit according to a value range of the pseudo random variable, such that a distance between two image units having a value of the same pseudo random variable is not less than a predetermined number of image units;
- a pseudo-random variable determining unit configured to randomly generate a value within a range of values of the pseudo-random variable, the value being a pseudo-random variable represented by a pseudo-random variable bit in the first image unit Determining a pseudo-random variable represented by a pseudo-random variable bit of the image unit other than the first image unit
- the value of the code point position determining unit is set to determine the value in the bit unit according to the value of the code value bit in the image unit, the value of the pseudo random variable bit element, and the mapping relationship between the value of the bit element and the code point. The location of the code point.
- the code value bit calculation unit may include: an initial value calculator and an encryptor.
- the initial value calculator is configured to calculate an initial value of the code value bit in the image unit according to the coded value, the combined number of the bits, and the number of code value bits included in the bit element;
- the encryptor is configured to encrypt the initial value of the code value bit by using an encryption algorithm to obtain a value of the code value bit.
- the pseudo random variable calculation unit may include: a checker, a splicer, and a pseudo random variable bit cell calculator.
- the checker is configured to generate a check value of the coded value by using a check algorithm; the splicer is configured to splicing the check value with a pseudo-random variable represented by a pseudo-random variable bit of the image unit to obtain a splicing a pseudo-random variable bit calculator is set to be based on the number of combinations of the bits, the bit The number of pseudo-random variable bits included in the element and the spliced value, and the value of the pseudo-random variable bit within the image unit is calculated.
- the coordinate determining module 50 may include: a starting coordinate determining unit and a starting coordinate calculating unit.
- the starting coordinate determining unit is configured to set the coordinates of the origin of the anti-counterfeit image to be the starting coordinates of the first image unit; and the starting coordinate calculating unit is configured to calculate the image unit according to the surrounding known starting coordinates. The starting coordinates of the image unit other than the first image unit in the security image to be generated.
- the shape of the bit may be a hexagon.
- the bit has an accuracy of 600 pixels per inch.
- the code point may include a black code point or a gray code point of at least one gray value other than black.
- the above products may perform the methods provided by any of the embodiments of the present disclosure.
- Embodiments of the present disclosure also provide a storage medium storing computer-executable instructions configured to perform any of the above-described methods of generating an anti-counterfeit image.
- the present disclosure can be implemented by software and necessary general hardware, and of course, can also be implemented by hardware.
- the technical solution of the embodiment of the present invention may be embodied in the form of a software product, which may be stored in a computer readable storage medium, such as a computer floppy disk or a read-only memory (Read-Only Memory, ROM). ), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the practice of the present invention The method described in the example.
- the included units and modules are only divided according to functional logic, but are not limited to the foregoing division, as long as the corresponding The functions may be used; in addition, the names of the functional units are only for convenience of distinction from each other, and do not limit the scope of protection of the present disclosure.
- the embodiment of the invention further provides a hardware structure diagram of a device for executing a method for generating an anti-counterfeit image.
- the device includes:
- One or more processors 70, one processor 70 is taken as an example in FIG. 5;
- the apparatus may also include an input device 72 and an output device 73.
- the processor 70, the memory 71, the input device 72, and the output device 73 in the device may be connected by a bus or other means, and the bus connection is taken as an example in FIG.
- the memory 71 is a computer readable storage medium and can be used to store a software program, a computer executable program, and a program instruction/module corresponding to the method for generating an anti-counterfeit image in the embodiment of the present invention.
- the processor 70 executes the function application and the data processing of the server by running the software program, the instruction and the module stored in the memory 71, that is, the method for generating the anti-counterfeit image in the above method embodiment.
- the memory 71 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the terminal device, and the like. Further, the memory 71 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other nonvolatile solid state storage device. In some examples, memory 71 can include memory remotely located relative to processor 70, which can be connected to the terminal device over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
- Input device 72 can be arranged to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the terminal.
- the output device 73 may include a display device such as a display screen.
- the one or more modules are stored in the memory 71 when the one or more When the processor 70 is executed, any of the above-described methods of generating an anti-counterfeit image can be executed.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Artificial Intelligence (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Life Sciences & Earth Sciences (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Editing Of Facsimile Originals (AREA)
- Credit Cards Or The Like (AREA)
- Image Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
Claims (11)
- 一种防伪图像生成方法,包括:按照设定位元规则,确定待生成防伪图像的图像单元中的位元的数量、所述位元中的数据点位及相应的数量、所述位元中存在码点的数据点位的数量、所述位元中包括的码值位元及相应的数量、以及所述位元中包括的伪随机变量位元及相应的数量,其中,相邻的位元紧密排列在一起;根据所述位元中的数据点位的数量、和所述位元中存在码点的数据点位的数量,确定位元的组合数量;获取待生成防伪图像的宽、高及编码数值,其中所述编码数值的取值范围由所述位元的组合数量和所述位元中包括的码值位元的数量确定,根据所述待生成防伪图像的宽和高为所述待生成防伪图像申请内存空间;根据所述编码数值、所述位元的组合数量、所述位元中包括的码值位元的数量、以及所述位元中包括的伪随机变量位元的数量,确定位元内的码点的位置;按照设定坐标规则,确定图像单元在所述待生成防伪图像中的起始坐标;根据图像单元在所述待生成防伪图像中的起始坐标,在所述内存空间中绘制图像单元,绘制完成的图像单元组成防伪图像。
- 根据权利要求1所述的方法,其中,所述根据所述编码数值、所述位元的组合数量、所述位元中包括的码值位元的数量、以及所述位元中包括的伪随机变量位元的数量,确定位元内的码点的位置,包括:根据所述编码数值、所述位元的组合数量、以及所述位元中包括的码值位元的数量,计算图像单元内的码值位元的值;根据所述位元的组合数量、及所述位元中包括的伪随机变量位元的数量,计算伪随机变量位元表示的伪随机变量的值域;根据所述伪随机变量的值域,确定图像单元的伪随机变量的取值模板,使得具有相同伪随机变量的值的两个图像单元之间的距离不小于设定个数的图像单元;在所述伪随机变量的值域内,随机产生数值,所述数值作为第一个图像单元中的伪随机变量位元表示的伪随机变量;根据伪随机变量的取值模板,确定所述第一个图像单元以外的图像单元的伪随机变量位元表示的伪随机变量;根据所述位元的组合数量、所述位元中包括的伪随机变量位元的数量和图像单元的伪随机变量位元表示的伪随机变量,计算图像单元内的伪随机变量位元的值;根据图像单元内的码值位元的值、伪随机变量位元的值、以及位元的值与码点的设定映射关系,确定位元内的码点的位置。
- 根据权利要求2所述的方法,其中,所述根据所述编码数值、所述位元的组合数量、以及所述位元中包括的码值位元的数量,计算图像单元内的码值位元的值,包括:根据所述编码数值、所述位元的组合数量、以及所述位元中包括的码值位元的数量,计算图像单元内的码值位元的初始值;对所述码值位元的初始值利用加密算法进行加密,得到所述码值位元的值。
- 根据权利要求2所述的方法,其中,所述根据所述位元的组合数量、所述位元中包括的伪随机变量位元的数量和图像单元的伪随机变量位元表示的伪 随机变量,计算图像单元内的伪随机变量位元的值,包括:利用校验算法生成所述编码数值的校验值;将所述校验值与图像单元的伪随机变量位元表示的伪随机变量进行拼接,得到拼接值;根据所述位元的组合数量、所述位元中包括的伪随机变量位元的数量和所述拼接值,计算图像单元内的伪随机变量位元的值。
- 根据权利要求1所述的方法,其中,所述按照设定坐标规则,确定图像单元在所述待生成防伪图像中的起始坐标包括:将待生成防伪图像的原点的坐标作为第一个图像单元的起始坐标;根据周围已知起始坐标的图像单元,计算所述第一个图像单元以外的图像单元在待生成防伪图像中的起始坐标。
- 一种防伪图像生成装置,包括:设定模块,设置为按照设定位元规则,确定待生成防伪图像的图像单元中的位元的数量、所述位元中的数据点位及相应的数量、所述位元中存在码点的数据点位的数量、所述位元中包括的码值位元及相应的数量、以及所述位元中包括的伪随机变量位元及相应的数量,其中,相邻的位元紧密排列在一起;组合数量计算模块,设置为根据所述位元中的数据点位的数量、和所述位元中存在码点的数据点位的数量,确定位元的组合数量;参数获取模块,设置为获取待生成防伪图像的宽、高及编码数值,其中所述编码数值的取值范围由所述位元的组合数量和所述位元中包括的码值位元的 数量确定,根据所述待生成防伪图像的宽和高为所述待生成防伪图像申请内存空间;码点确定模块,设置为根据所述编码数值、所述位元的组合数量、所述位元中包括的码值位元的数量、以及所述位元中包括的伪随机变量位元的数量,确定位元内的码点的位置;坐标确定模块,设置为按照设定坐标规则,确定图像单元在所述待生成防伪图像中的起始坐标;图像绘制模块,设置为根据图像单元在所述待生成防伪图像中的起始坐标,在所述内存空间中绘制图像单元,绘制完成的图像单元组成防伪图像。
- 根据权利要求6所述的装置,其中,所述码点位置确定模块,包括:码值位元计算单元,设置为根据所述编码数值、所述位元的组合数量、以及所述位元中包括的码值位元的数量,计算图像单元内的码值位元的值;值域计算单元,设置为根据所述位元的组合数量、及所述位元中包括的伪随机变量位元的数量,计算伪随机变量位元表示的伪随机变量的值域;取值模板设定单元,设置为根据所述伪随机变量的值域,确定图像单元的伪随机变量的取值模板,使得具有相同伪随机变量的值的两个图像单元之间的距离不小于设定个数的图像单元;伪随机变量确定单元,设置为在所述伪随机变量的值域内,随机产生数值,所述数值作为第一个图像单元中的伪随机变量位元表示的伪随机变量;根据伪随机变量的取值模板,确定所述第一个图像单元以外的图像单元的伪随机变量位元表示的伪随机变量;伪随机变量计算单元,设置为根据所述位元的组合数量、所述位元中包括的伪随机变量位元的数量和图像单元的伪随机变量位元表示的伪随机变量,计算图像单元内的伪随机变量位元的值;码点位置确定单元,设置为根据图像单元内的码值位元的值、伪随机变量位元的值、以及位元的值与码点的设定映射关系,确定位元内的码点的位置。
- 根据权利要求7所述的装置,其中,所述码值位元计算单元,包括:初始值计算器,设置为根据所述编码数值、所述位元的组合数量以及所述位元中包括的码值位元的数量,计算图像单元内的码值位元的初始值;加密器,设置为对所述码值位元的初始值利用加密算法进行加密,得到所述码值位元的值。
- 根据权利要求7所述的装置,其中,所述伪随机变量计算单元,包括:校验器,设置为利用校验算法生成所述编码数值的校验值;拼接器,设置为将所述校验值与图像单元的伪随机变量位元表示的伪随机变量进行拼接,得到拼接值;伪随机变量位元计算器,设置为根据所述位元的组合数量、所述位元中包括的伪随机变量位元的数量和所述拼接值,计算图像单元内的伪随机变量位元的值。
- 根据权利要求6所述的装置,其中,所述坐标确定模块包括:起始坐标确定单元,设置为将待生成防伪图像的原点的坐标作为第一个图像单元的起始坐标;起始坐标计算单元,设置为根据周围已知起始坐标的图像单元,计算所述第一个图像单元以外的图像单元在待生成防伪图像中的起始坐标。
- 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行权利要求1-5任一项的方法。
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016575646A JP6381686B2 (ja) | 2016-02-02 | 2016-06-13 | 偽造防止画像の生成方法及び装置 |
KR1020177000341A KR101901535B1 (ko) | 2016-02-02 | 2016-06-13 | 위조 방지 이미지의 생성 방법 및 장치 |
US15/426,469 US9972061B2 (en) | 2016-02-02 | 2017-02-07 | Method and apparatus for generating anti-forgery image |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610074759.3 | 2016-02-02 | ||
CN201610074759.3A CN105760915B (zh) | 2016-02-02 | 2016-02-02 | 一种防伪图像的生成方法及装置 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US15/426,469 Continuation US9972061B2 (en) | 2016-02-02 | 2017-02-07 | Method and apparatus for generating anti-forgery image |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017133154A1 true WO2017133154A1 (zh) | 2017-08-10 |
Family
ID=56329987
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/085539 WO2017133154A1 (zh) | 2016-02-02 | 2016-06-13 | 防伪图像的生成方法及装置 |
Country Status (4)
Country | Link |
---|---|
JP (1) | JP6381686B2 (zh) |
KR (1) | KR101901535B1 (zh) |
CN (1) | CN105760915B (zh) |
WO (1) | WO2017133154A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115860033A (zh) * | 2023-01-31 | 2023-03-28 | 北京微点科学技术有限公司 | 可分级鉴伪的彩色分区微点码标识的防伪方法和装置 |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110533017B (zh) * | 2019-09-04 | 2021-01-29 | 程烨 | 鉴伪方法、装置、终端及存储介质 |
CN110909843B (zh) * | 2019-11-21 | 2021-05-14 | 程烨 | 编码图像塑型的方法、装置、服务器和存储介质 |
CN111340166A (zh) * | 2020-03-18 | 2020-06-26 | 中科星图(深圳)数字技术产业研发中心有限公司 | 生成唯一识别图的方法 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1971591A (zh) * | 2005-11-24 | 2007-05-30 | 佳能株式会社 | 二维代码,以及用于检测二维代码的方法和设备 |
US20120024956A1 (en) * | 2010-04-23 | 2012-02-02 | Cheng Uei Precision Industry Co., Ltd | Qr code having hidden codes and methods of forming and identifying the hidden codes |
CN102622626A (zh) * | 2011-12-26 | 2012-08-01 | 华南理工大学 | 二维码以及该二维码的识别方法 |
CN103761798A (zh) * | 2014-01-07 | 2014-04-30 | 立德高科(北京)数码科技有限责任公司 | 多维防伪信息图码算法规则及防伪信息数据的识别方法 |
CN103824197A (zh) * | 2014-03-10 | 2014-05-28 | 上海理工大学 | 防伪码生成装置 |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001283167A (ja) * | 2000-04-03 | 2001-10-12 | Asahi Business Assist:Kk | 二次元コードによる個別識別方法、ハイブリット型個人認証システムおよびオフライン本人確認システム |
EP1907987A4 (en) * | 2005-07-25 | 2010-11-10 | Silverbrook Res Pty Ltd | PRODUCT ARTICLE HAVING A CODE IDENTIFICATION IMPLANTATION |
CN101295358A (zh) * | 2007-04-24 | 2008-10-29 | 北京中富利泰科技发展有限公司 | 一种用定位自纠错码埋藏计算机信息数据方法 |
CN101923632B (zh) * | 2010-06-01 | 2013-03-27 | 福建新大陆电脑股份有限公司 | Maxi Code条码解码芯片及其解码方法 |
CN104395912B (zh) * | 2012-07-19 | 2019-03-08 | 惠普印迪戈股份公司 | 安全特征 |
CN105279539A (zh) * | 2014-06-07 | 2016-01-27 | 王树敏 | 点阵式二维码编码与解码 |
-
2016
- 2016-02-02 CN CN201610074759.3A patent/CN105760915B/zh active Active
- 2016-06-13 WO PCT/CN2016/085539 patent/WO2017133154A1/zh active Application Filing
- 2016-06-13 KR KR1020177000341A patent/KR101901535B1/ko active IP Right Grant
- 2016-06-13 JP JP2016575646A patent/JP6381686B2/ja active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1971591A (zh) * | 2005-11-24 | 2007-05-30 | 佳能株式会社 | 二维代码,以及用于检测二维代码的方法和设备 |
US20120024956A1 (en) * | 2010-04-23 | 2012-02-02 | Cheng Uei Precision Industry Co., Ltd | Qr code having hidden codes and methods of forming and identifying the hidden codes |
CN102622626A (zh) * | 2011-12-26 | 2012-08-01 | 华南理工大学 | 二维码以及该二维码的识别方法 |
CN103761798A (zh) * | 2014-01-07 | 2014-04-30 | 立德高科(北京)数码科技有限责任公司 | 多维防伪信息图码算法规则及防伪信息数据的识别方法 |
CN103824197A (zh) * | 2014-03-10 | 2014-05-28 | 上海理工大学 | 防伪码生成装置 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115860033A (zh) * | 2023-01-31 | 2023-03-28 | 北京微点科学技术有限公司 | 可分级鉴伪的彩色分区微点码标识的防伪方法和装置 |
CN115860033B (zh) * | 2023-01-31 | 2023-05-16 | 北京微点科学技术有限公司 | 可分级鉴伪的彩色分区微点码标识的防伪方法和装置 |
Also Published As
Publication number | Publication date |
---|---|
KR20180101700A (ko) | 2018-09-13 |
CN105760915A (zh) | 2016-07-13 |
JP6381686B2 (ja) | 2018-08-29 |
KR101901535B1 (ko) | 2018-09-21 |
CN105760915B (zh) | 2018-08-24 |
JP2018508798A (ja) | 2018-03-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI718567B (zh) | 二維碼生成方法、資料處理方法、裝置、伺服器及計算機可讀儲存媒體 | |
Li et al. | Asymmetric multiple-image encryption based on the cascaded fractional Fourier transform | |
WO2017133154A1 (zh) | 防伪图像的生成方法及装置 | |
EP3035587B1 (en) | Hypersphere-based multivariable public key signature/verification system and method | |
CN105227317B (zh) | 一种支持认证器隐私的云数据完整性检测方法和系统 | |
Gao et al. | Chaotic image encryption algorithm based on zigzag transform with bidirectional crossover from random position | |
CN108833117B (zh) | 一种私钥存储和读取方法、装置及硬件设备 | |
US8817977B2 (en) | Method for generating a digital signature | |
CN109936456B (zh) | 基于私钥池的抗量子计算数字签名方法和系统 | |
US9613327B2 (en) | Adapting an incremental information object | |
Wang et al. | 2D barcodes for visual cryptography | |
US10817596B2 (en) | Image based authentication code method, server, and authentication code system | |
JP2006311477A (ja) | 同種写像ベースの署名の生成および検証のためのシステムおよび方法 | |
Mohan et al. | Secure visual cryptography scheme with meaningful shares | |
CN116541872B (zh) | 数据信息安全传输方法和系统 | |
JP2012123426A (ja) | 暗号化方法用の楕円曲線を求める方法 | |
CN109657487B (zh) | 图像处理方法、图像验证方法及其装置 | |
US9087252B2 (en) | Grayscale incremental information object | |
WO2020057389A1 (zh) | 一种签名验证方法、装置、电子设备及可读存储介质 | |
CN115603900A (zh) | 基于密码学承诺的公平竞标方法、装置及存储介质 | |
CN115511030A (zh) | 防伪验证方法、装置和电子设备 | |
WO2018233700A1 (zh) | 图像处理方法、终端及存储介质 | |
US20180012329A1 (en) | Image data encryption and rendering system | |
US9972061B2 (en) | Method and apparatus for generating anti-forgery image | |
Joshi | Session passwords using grids and colors for web applications and PDA |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
ENP | Entry into the national phase |
Ref document number: 2016575646 Country of ref document: JP Kind code of ref document: A |
|
ENP | Entry into the national phase |
Ref document number: 20177000341 Country of ref document: KR Kind code of ref document: A |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16888975 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 23/11/2018) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16888975 Country of ref document: EP Kind code of ref document: A1 |