CN113313781A - File anti-counterfeiting method and system based on two-dimensional grains - Google Patents

File anti-counterfeiting method and system based on two-dimensional grains Download PDF

Info

Publication number
CN113313781A
CN113313781A CN202110660467.9A CN202110660467A CN113313781A CN 113313781 A CN113313781 A CN 113313781A CN 202110660467 A CN202110660467 A CN 202110660467A CN 113313781 A CN113313781 A CN 113313781A
Authority
CN
China
Prior art keywords
file
straight line
counterfeiting
long straight
dimensional
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110660467.9A
Other languages
Chinese (zh)
Inventor
倪时龙
江万鑫
黄岩
陈伟
纪小平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Zefu Software Co ltd
Original Assignee
Fujian Zefu Software Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Zefu Software Co ltd filed Critical Fujian Zefu Software Co ltd
Priority to CN202110660467.9A priority Critical patent/CN113313781A/en
Publication of CN113313781A publication Critical patent/CN113313781A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • G06Q30/0185Product, service or business identity fraud

Landscapes

  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The invention discloses a file anti-counterfeiting method and a file anti-counterfeiting system based on two-dimensional grains, wherein the method comprises the following steps: generating a long straight line; the long straight lines are arranged at transverse intervals and at longitudinal intervals, and the long straight lines at the transverse intervals and the longitudinal intervals are crossed to form three-dimensional grains; and superposing the three-dimensional lines on the file picture and generating the anti-counterfeiting file picture. According to the scheme, the straight line is superposed on the anti-counterfeiting file, so that the graphic information or the character information on the file can be superposed with the straight line, the information on the anti-counterfeiting file is modified to cause the damage of the straight line, and the authenticity of the information on the anti-counterfeiting file picture can be visually identified by naked eyes.

Description

File anti-counterfeiting method and system based on two-dimensional grains
Technical Field
The invention relates to the technical field of file anti-counterfeiting, in particular to a file anti-counterfeiting method and a file anti-counterfeiting system based on two-dimensional grains.
Background
The electronic license data is generally used in a picture format during application, but the license picture is easy to be tampered, so that the risk of counterfeiting exists. The data application in the authentication field is greatly limited due to low counterfeiting cost.
At present, the anti-counterfeiting mode adopted by the license picture still stays in a simple anti-counterfeiting two-dimensional code mode to achieve the anti-counterfeiting purpose. However, the anti-counterfeiting two-dimensional code mode is limited by the limitation of the server (after the code is scanned, the inquiry page provided by the server is opened to display detailed license information), and once the service of the server is abnormal, the license inquiry page cannot be opened after the code is scanned, and anti-counterfeiting verification cannot be performed.
Disclosure of Invention
Therefore, a file anti-counterfeiting method and a file anti-counterfeiting system based on two-dimensional grains are needed to be provided, and the problem that the existing certificate pictures need to be anti-counterfeit through a server side is solved.
In order to achieve the aim, the invention provides a file anti-counterfeiting method based on two-dimensional grains, which comprises the following steps:
generating a long straight line;
the long straight lines are arranged at transverse intervals and at longitudinal intervals, and the long straight lines at the transverse intervals and the longitudinal intervals are crossed to form three-dimensional grains;
and superposing the three-dimensional lines on the file picture and generating the anti-counterfeiting file picture.
Further, the generating of the long straight line comprises the steps of:
generating straight line segments, wherein the straight line segments are connected end to end along one direction to form a long straight line.
Further, the generating a straight line segment comprises the steps of:
a plurality of straight line segments of different lengths and line widths are randomly generated.
Further, the length and the line width of each straight line segment are randomly selected within a preset range.
Further, each of the long transverse lines and each of the long longitudinal lines are perpendicular to each other.
Further, the distance between the long straight lines is randomly selected within a preset distance range.
Further, the method also comprises the following steps:
and continuously overlapping the text information of the file content on the anti-counterfeiting file picture.
Further, the long straight lines in the transverse arrangement do not intersect with each other or the long straight lines in the longitudinal arrangement do not intersect with each other.
The invention provides a file anti-counterfeiting system based on two-dimensional grains, which comprises a memory and a processor, wherein a computer program is stored in the memory, and the computer program is executed by the processor to realize the steps of the method according to any one of the embodiments of the invention.
Different from the prior art, the technical scheme adds the straight line on the anti-counterfeiting file, so that the graphic information or the text information on the file can be superposed with the straight line, the straight line can be damaged when the information on the anti-counterfeiting file is modified, and the authenticity of the information on the anti-counterfeiting file picture can be visually identified by naked eyes. The anti-counterfeiting server for displaying the anti-counterfeiting file and the picture information is not required to be relied on.
Drawings
FIG. 1 is a flow diagram of a method according to an embodiment;
FIG. 2 is a schematic diagram illustrating the generation of a straight line according to an embodiment;
fig. 3 is an effect diagram of the anti-counterfeit document picture of the present invention.
Detailed Description
To explain technical contents, structural features, and objects and effects of the technical solutions in detail, the following detailed description is given with reference to the accompanying drawings in conjunction with the embodiments.
Referring to fig. 1 to 3, the present embodiment provides a document anti-counterfeiting method based on two-dimensional lines, where the document of the present invention may be a certificate picture or other anti-counterfeiting pictures, and the key point of the present invention is to superimpose a straight line on the certificate or other anti-counterfeiting pictures, so that the integrity of the straight line is influenced by modifying the text or image information, and thus the document anti-counterfeiting method can be achieved by human eyes. The method specifically comprises the following steps: step S101, generating a long straight line; the length of the long straight line is larger than or equal to the length of the picture file needing anti-counterfeiting, so that the anti-counterfeiting of the whole picture can be realized. Then, in step S102, a plurality of the long straight lines are arranged at intervals in the transverse direction and at intervals in the longitudinal direction, and the long straight lines in the transverse direction and the longitudinal direction are crossed to form a three-dimensional pattern. The distance arrangement is that the distance is formed between the long straight lines, preferably, the distance between the long straight lines is smaller than or equal to the height of the character information on the anti-counterfeiting picture, so that a character can pass through the character without a straight line, and the anti-counterfeiting effect is realized. Of course, if the heights of the text messages are different, the height of the smallest text message may be selected. Certainly, the distance is not too small, otherwise the normal display of the anti-counterfeiting picture is affected by too many long straight lines on the anti-counterfeiting picture. The minimum spacing should not be less than one third of the height of the text message. The line width of the straight line is not too wide at the same time, and the line width can be set to be one width between the maximum width and the minimum width of the strokes of the character information. The values can be preset according to actual needs. And S103, superposing the three-dimensional lines on the file picture to generate an anti-counterfeiting file picture. Therefore, the graphic information or the text information on the anti-counterfeiting file can be superposed with the straight line, so that the straight line can be damaged when the information on the anti-counterfeiting file is modified, and the authenticity of the information on the anti-counterfeiting file picture can be visually identified by naked eyes. The anti-counterfeiting server for displaying the anti-counterfeiting file and the picture information is not required to be relied on.
In the invention, the long straight line can be generated once, or can be formed by generating straight line segments for multiple times and then overlapping, and when the long straight line is formed by overlapping, the generation of the long straight line comprises the following steps: generating straight line segments, wherein the straight line segments are connected end to end along one direction to form a long straight line, and the straight long straight line is realized by connecting the straight line segments on the same straight line. In the invention, the number of the generated long straight lines is not limited, one long straight line can be generated, and only the long straight line is copied and arranged during arrangement, or a plurality of different long straight lines can be generated, and then the plurality of different long straight lines can be arranged to form the three-dimensional texture.
In order to further improve the modification difficulty, the invention regenerates the long straight line by generating the straight line segments with different lengths and line widths, so that each long straight line is different. Said generating a long straight line segment comprises the steps of: a plurality of different straight line segments are randomly generated. The number of the straight line segments can be preset, for example, a long straight line is divided into 3 to 5 straight line segment intervals, each interval can be equal in length or unequal in length, and then a plurality of line segments with corresponding number (3 to 5) are generated and combined to form the long straight line.
In some embodiments, different long straight lines are formed in order to achieve different straight line segments. Further, the length and the line width of each straight line segment are randomly selected within a preset range. The lengths are different, namely the straight line segment intervals are not equal, and can be random. Of course, the random should be within a set range, such as the length cannot be smaller than the first length value, cannot be larger than the second length value, and the like, such as the thickness cannot be smaller than the first thickness value, and cannot be larger than the second thickness value, so that the straight line segment looks relatively neat and has a good visual effect.
In the present invention, the distance between the long straight lines may be fixed, or in some embodiments, the distance between the long straight lines is randomly selected within a preset distance range. The predetermined range may be randomly selected between the height of the text message and one third of the height, as mentioned in the above embodiments. In some embodiments, the random process may be further controlled, a first random range with a larger distance value and a second random range with a smaller distance value may be determined, the value of the first random range is larger than the value of the second random range, and then the distance between the long straight lines is sequentially cycled to select a plurality of first preset numbers in the first random range and then select a plurality of second preset numbers in the second random range, so that as shown in fig. 3, one area of the distance between the long straight lines is dense, the other area is sparse, the long straight lines are relatively neatly arranged, a phenomenon that the distance between the long straight lines is very messy due to random process is not generated, a random distance function is achieved, and a better visual effect is achieved. Meanwhile, in order to achieve a better visual effect, the long straight lines arranged in the transverse direction do not intersect with each other or the long straight lines arranged in the longitudinal direction do not intersect with each other, that is, the long straight lines arranged in the row (the length direction of the long straight lines is longitudinal) do not intersect with each other and the long straight lines arranged in the column (the length direction of the long straight lines is transverse) do not intersect with each other.
When the embodiment is superposed, if the anti-counterfeiting picture has characters and information, the three-dimensional grains can be directly superposed. In some embodiments, to avoid the influence on the text information on the anti-counterfeiting file picture, the straight lines can be overlaid first, and then the text can be overlaid. The invention further comprises the steps of: and continuously overlapping the text information of the file content on the anti-counterfeiting file picture. When the characters are overlapped, the pixel points of the strokes of the character information directly cover the anti-counterfeiting picture or the three-dimensional texture below the anti-counterfeiting picture or the three-dimensional texture, so that the highlighted display is realized. And then the pixel points of the anti-counterfeiting straight line can pass through the blank places of the pixel points of the character strokes, so that the anti-counterfeiting property is improved.
The invention provides a file anti-counterfeiting system based on two-dimensional grains, which comprises a memory and a processor, wherein a computer program is stored in the memory, and the computer program is executed by the processor to realize the steps of the method according to any one of the embodiments of the invention. The anti-counterfeiting system can directly generate anti-counterfeiting files with anti-counterfeiting grains, and can realize the anti-counterfeiting identification by naked eyes.
In some embodiments, the method further includes performing further anti-counterfeiting on the three-dimensional texture through different colors of different regions, and superimposing different colors on lines of different regions of the three-dimensional texture, that is, the colors of the lines of different regions are different. And finally, superposing the three-dimensional grains with different colors on the file picture and generating the anti-counterfeiting file picture. Therefore, the graphic information or the text information on the anti-counterfeiting file can be superposed with lines of different colors (for example, the left side is red, and the right side is green), so that the information on the anti-counterfeiting file can be modified to cause the damage of a straight line, and the authenticity of the information on the anti-counterfeiting file picture can be visually identified by naked eyes. The anti-counterfeiting server for displaying the anti-counterfeiting file and the picture information is not required to be relied on.
Further, the different regions include: the file image is divided into a plurality of regions with equal size according to the size of the file image, for example, the file image is divided into 8 regions, the upper half is divided into four regions side by side, and the lower half is divided into four regions side by side. Therefore, the color partition is neat, and the user experience is good.
There are various methods for generating colors, and in the embodiment of the present invention, as shown in fig. 2, the different colors are generated by three primary colors of RBG, and the color of the adjacent area is different by only one primary color. This allows a smooth transition of the colors without major differences. Preferably, the transformed value of said one primary color is smaller than a first preset value (e.g. 10, with a total variation range of 0-254). Therefore, the color change can be reflected, the large change can not be generated, and the whole visual effect is improved. In some embodiments, the variation of different colors may take a random value smaller than the first preset value, so that different colors of different pictures can be realized. In some embodiments, the random value may be obtained according to the encrypted value of the file picture and according to the encrypted value, for example, the first bits of the MD5 value after the file picture is superimposed with the file information (or an MD5 value may be generated after a verification icon is further superimposed on the file picture, and the verification icon only functions as the MD5 value and is not used as a subsequent file and a stereoscopic texture are superimposed) may be used as the change value of the color (if the change value is greater than the first preset value, the multiple of the preset value may be subtracted until the change value is smaller than the first preset value), so that the association with the file picture may be implemented, and the verification is facilitated. And because the information on each file picture is different, the color is different, realize the anti-counterfeiting and encryption of different colors. Of course, the random values of the present invention can also be used on the above-mentioned spacings. Preferably, the random value is a color value of a center of the corresponding region, and the color values of other portions of the region are values of centers of two adjacent regions that vary linearly with distance, and of course, the color values of the two adjacent regions should be different. If the color of the center of one region is R255G255B200, and the color value of the center of the other region is R255G255B100, the color of the part between the two regions varies linearly with the distance from the center of one region to the center of the other region, if the border between the two regions is R255G255B150, the distance between 1/4 and R255G255B175 is two distances from the center of one region, the distance between 1/4 and R255G255B125 is two distances from the center of the other region, and so on. Of course, there may be multiple adjacent regions per region, and the color determination within a region may be determined with the nearest of the adjacent region centers.
In a preferred embodiment, the different colors of all the regions vary cyclically between the different regions. If there are four regions, the cycle may be 1 region of the first color, 2 regions of the second color, 3 regions back to the first color, and 4 regions back to the second color. Thus, the color change is relatively regular, and the visual effect is better. In some embodiments, the cyclically varying value may be a random value as in the above embodiments (MD5 values).
It should be noted that, although the above embodiments have been described herein, the invention is not limited thereto. Therefore, based on the innovative concepts of the present invention, the technical solutions of the present invention can be directly or indirectly applied to other related technical fields by making changes and modifications to the embodiments described herein, or by using equivalent structures or equivalent processes performed in the content of the present specification and the attached drawings, which are included in the scope of the present invention.

Claims (9)

1. A file anti-counterfeiting method based on two-dimensional grains is characterized by comprising the following steps:
generating a long straight line;
the long straight lines are arranged at transverse intervals and at longitudinal intervals, and the long straight lines at the transverse intervals and the longitudinal intervals are crossed to form three-dimensional grains;
and superposing the three-dimensional lines on the file picture and generating the anti-counterfeiting file picture.
2. The document anti-counterfeiting method based on two-dimensional grains according to claim 1, wherein the generating of the long straight line comprises the following steps:
generating straight line segments, wherein the straight line segments are connected end to end along one direction to form a long straight line.
3. The two-dimensional texture-based file anti-counterfeiting method according to claim 2, wherein the generation of the straight line segment comprises the steps of:
a plurality of straight line segments of different lengths and line widths are randomly generated.
4. The two-dimensional texture-based file anti-counterfeiting method according to claim 3, wherein the length and the line width of each straight line segment are randomly selected within a preset range.
5. The document anti-counterfeiting method based on two-dimensional grains according to claim 1, wherein each transverse long straight line and each longitudinal long straight line are perpendicular to each other.
6. The two-dimensional texture-based file anti-counterfeiting method according to claim 1, wherein the distance between the long straight lines is randomly selected within a preset distance range.
7. The document anti-counterfeiting method based on two-dimensional grains according to claim 1, characterized by further comprising the steps of:
and continuously overlapping the text information of the file content on the anti-counterfeiting file picture.
8. The document anti-counterfeiting method based on two-dimensional grains according to any one of claims 1 to 7, wherein the long straight lines arranged transversely do not intersect with each other or the long straight lines arranged longitudinally do not intersect with each other.
9. The utility model provides a file anti-fake system based on two-dimensional line which characterized in that: comprising a memory, a processor, said memory having stored thereon a computer program which, when being executed by the processor, carries out the steps of the method according to any one of claims 1 to 8.
CN202110660467.9A 2021-06-15 2021-06-15 File anti-counterfeiting method and system based on two-dimensional grains Pending CN113313781A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110660467.9A CN113313781A (en) 2021-06-15 2021-06-15 File anti-counterfeiting method and system based on two-dimensional grains

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110660467.9A CN113313781A (en) 2021-06-15 2021-06-15 File anti-counterfeiting method and system based on two-dimensional grains

Publications (1)

Publication Number Publication Date
CN113313781A true CN113313781A (en) 2021-08-27

Family

ID=77378773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110660467.9A Pending CN113313781A (en) 2021-06-15 2021-06-15 File anti-counterfeiting method and system based on two-dimensional grains

Country Status (1)

Country Link
CN (1) CN113313781A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120087538A1 (en) * 2010-10-11 2012-04-12 Slobodan Cvetkovic Method for Constructing a Composite Image Incorporating a Hidden Authentication Image
CN104794627A (en) * 2015-05-04 2015-07-22 叶如意 Anti-counterfeiting and anti-midway-unpacking system
CN105122275A (en) * 2012-10-01 2015-12-02 株式会社Ip舍路信 Dot pattern, dot-pattern-forming medium, program for generating image data for dot pattern, dot pattern forming apparatus, optical device, optical device reader, information i/o device, dot pattern reader
CN108681765A (en) * 2018-02-15 2018-10-19 海南亚元防伪技术研究所(普通合伙) Transfinite narrow slit method for anti-counterfeit and product

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120087538A1 (en) * 2010-10-11 2012-04-12 Slobodan Cvetkovic Method for Constructing a Composite Image Incorporating a Hidden Authentication Image
CN105122275A (en) * 2012-10-01 2015-12-02 株式会社Ip舍路信 Dot pattern, dot-pattern-forming medium, program for generating image data for dot pattern, dot pattern forming apparatus, optical device, optical device reader, information i/o device, dot pattern reader
CN104794627A (en) * 2015-05-04 2015-07-22 叶如意 Anti-counterfeiting and anti-midway-unpacking system
CN108681765A (en) * 2018-02-15 2018-10-19 海南亚元防伪技术研究所(普通合伙) Transfinite narrow slit method for anti-counterfeit and product

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
夏自由等: "潜影防伪技术应用", 印刷杂志, pages 138 - 139 *

Similar Documents

Publication Publication Date Title
US10235618B2 (en) Authentication feature in a barcode
CN101739720B (en) Method and device for generating three-dimensional dynamic verification code
JP4915883B2 (en) Printed matter for preventing forgery, method for producing the same, and recording medium storing software for producing halftone data
US20090060343A1 (en) Method for partially obscuring content of documents and images
JP2003530737A (en) Optical watermark
CN106372698A (en) Multidimensional anti-counterfeiting label and anti-counterfeiting verification method thereof
CN111190557A (en) Certificate printing method and system for configurable printing items
CN104376350A (en) Anti-fake device used on commodity
JP2018192729A (en) Forgery preventive printed matter creation method, and program for creating forgery preventive printed matter
KR101901535B1 (en) Method and device for generating anti-forgery image
CN105701391A (en) Dynamic verification code picture generation method and apparatus
CN103324894B (en) A kind of composite anti-fake document structure tree method and system
CN113313781A (en) File anti-counterfeiting method and system based on two-dimensional grains
CN113313783B (en) File anti-counterfeiting method and system based on color transition
JP2020089971A (en) Anti-counterfeit printed matter, method of manufacturing data for anti-counterfeit printed matter, and manufacturing system for anti-counterfeit printed matter
CN113313782A (en) File anti-counterfeiting method and system based on three-dimensional grains
CN110120006B (en) Amplified halftone hidden image based stereoscopic display and hiding method
JP4714043B2 (en) Change instruction drawing creation system and method, and program
CN107316072A (en) Dimension code anti-counterfeit method, anti-counterfeit authentication method and the false proof device of offline synchronization
CN115456124A (en) Method, system, equipment and storage medium for generating stacked three-dimensional code
CN104736347A (en) Device and method for producing security features and security feature
JP6909471B2 (en) Anti-counterfeit printed matter data creation method, anti-counterfeit printed matter data creation software and anti-counterfeit printed matter issuance system
CN107305696A (en) A kind of image generating method and device
CN113408684A (en) File anti-counterfeiting method and system based on identification
JP5572880B2 (en) Image file generation method for forgery / alteration verification and image file forgery / alteration verification method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination