CN113313783B - File anti-counterfeiting method and system based on color transition - Google Patents

File anti-counterfeiting method and system based on color transition Download PDF

Info

Publication number
CN113313783B
CN113313783B CN202110661274.5A CN202110661274A CN113313783B CN 113313783 B CN113313783 B CN 113313783B CN 202110661274 A CN202110661274 A CN 202110661274A CN 113313783 B CN113313783 B CN 113313783B
Authority
CN
China
Prior art keywords
lines
file
counterfeiting
picture
color
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.)
Active
Application number
CN202110661274.5A
Other languages
Chinese (zh)
Other versions
CN113313783A (en
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 CN202110661274.5A priority Critical patent/CN113313783B/en
Publication of CN113313783A publication Critical patent/CN113313783A/en
Application granted granted Critical
Publication of CN113313783B publication Critical patent/CN113313783B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Abstract

The invention discloses a file anti-counterfeiting method and a file anti-counterfeiting system based on color transition, wherein the method comprises the following steps: generating a plurality of lines, wherein the lines are arranged at a transverse interval and a longitudinal interval, and the transverse lines and the longitudinal lines are crossed to form three-dimensional lines; superposing different colors on lines of different areas of the three-dimensional lines; and superposing three-dimensional lines with different colors on the file picture and generating the anti-counterfeiting file picture. According to the scheme, the lines with different colors are overlapped on the anti-counterfeiting file, so that the graphic information or the text information on the file can be overlapped with the lines with different colors, the color or the line shape is damaged when the information on the anti-counterfeiting file is to be modified, and the authenticity of the information on the anti-counterfeiting file picture can be intuitively distinguished through naked eyes.

Description

File anti-counterfeiting method and system based on color transition
Technical Field
The invention relates to the technical field of file anti-counterfeiting, in particular to a file anti-counterfeiting method and system based on color transition.
Background
The electronic license data is generally used in a picture format when in application, but the license picture is easy to tamper, and the risk of fake exists. The low counterfeiting cost causes great limitation to data application in the field of evidence.
Currently, the anti-counterfeiting mode adopted by the license picture is still 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 a server (after code scanning, a query page provided by the server is opened to display detailed license information), and once the service of the server is abnormal, the license query page cannot be opened after code scanning, and anti-counterfeiting verification cannot be performed.
Disclosure of Invention
Therefore, it is necessary to provide a method and a system for anti-counterfeiting of a document based on color transition, which solve the problem that the existing license picture needs to be anti-counterfeiting through a server.
In order to achieve the above purpose, the invention provides a file anti-counterfeiting method based on color transition, which comprises the following steps:
generating a plurality of lines, wherein the lines are arranged at a transverse interval and a longitudinal interval, and the transverse lines and the longitudinal lines are crossed to form three-dimensional lines;
superposing different colors on lines of different areas of the three-dimensional lines;
and superposing three-dimensional lines with different colors on the file picture and generating the anti-counterfeiting file picture.
Further, the line includes a straight line or a curved line.
Further, the different regions include:
and dividing the file picture into a plurality of areas with equal sizes according to the size of the file picture.
Further, the different colors are generated by RBG three primary colors, and the colors of adjacent areas are different for only one primary color.
Further, the different colors of all the regions are cyclically varied between the different regions.
Further, the pitch of the lines is randomly selected within a preset pitch range.
Further, the method further comprises the steps of:
and continuously superposing the text information of the file content on the anti-counterfeiting file picture.
Further, the transversely arranged lines do not cross each other or the longitudinally arranged lines do not cross each other.
The invention provides a file anti-counterfeiting system based on color transition, which comprises a memory and a processor, wherein a computer program is stored in the memory, and the computer program realizes the steps of the method according to any one of the embodiments of the invention when being executed by the processor.
Compared with the prior art, the technical scheme is characterized in that the three-dimensional lines with different colors are generated in the areas, and the three-dimensional lines with different colors are superimposed on the anti-counterfeiting file, so that the graphic information or the text information on the file can be superimposed with the lines with different colors, the lines or the colors are damaged when the information on the anti-counterfeiting file is to be modified, and the authenticity of the information on the anti-counterfeiting file picture can be intuitively distinguished through naked eyes. And an anti-counterfeiting server for displaying the picture information of the anti-counterfeiting file is not needed.
Drawings
FIG. 1 is a flow chart of a method according to an embodiment;
FIG. 2 is a schematic diagram of different color generation according to an embodiment;
fig. 3 is an effect diagram of the anti-counterfeit document picture of the present invention.
Detailed Description
In order to describe the technical content, constructional features, achieved objects and effects of the technical solution in detail, the following description is made in connection with the specific embodiments in conjunction with the accompanying drawings.
Referring to fig. 1 to 3, the present embodiment provides a color transition-based document anti-counterfeiting method, and the document of the present invention may be a license picture or other pictures requiring anti-counterfeiting, and the key of the present invention is to superimpose lines of different colors on a certificate or other anti-counterfeiting pictures, so that modification of text or image information will affect the integrity of the lines and the colors on the lines, so that the document can be anti-counterfeiting by human eyes. The method specifically comprises the following steps: step S101, generating lines, wherein a plurality of the lines are arranged at a transverse interval and a longitudinal interval, and the transverse lines and the longitudinal lines are crossed to form three-dimensional lines; the length of the lines should be greater than or equal to the length of the picture file to be anti-counterfeit, so that the anti-counterfeit of the whole picture can be realized. The spacing arrangement is that the distance between the lines is smaller than or equal to the height of the text information on the anti-counterfeiting picture, and the text can pass through the space between the lines, so that anti-counterfeiting is realized. Of course, if the heights of the text information are different, the height of the smallest text information may be selected. Of course, the interval is not too small, otherwise, the normal display of the anti-counterfeiting picture can be affected due to the fact that the number of lines on the anti-counterfeiting picture is too large. The minimum spacing is not preferably less than one third of the height of the text message. Meanwhile, the line width of the line is not too wide, and the line width can be set to be a width between the maximum width and the minimum width of strokes of the text information. These values may be preset according to actual needs. And then, in step S102, different colors are superimposed on the lines in different areas of the three-dimensional texture, i.e. the colors of the lines in different areas are different. And step S103, superposing the three-dimensional lines with different colors on the file picture and generating the anti-counterfeiting file picture. Thus, the graphic information or the text information on the anti-counterfeiting file can be overlapped with lines with different colors (such as red on the left side and green on the right side), so that the information on the anti-counterfeiting file is damaged in a straight line when the information on the anti-counterfeiting file is to be modified, and the authenticity of the information on the anti-counterfeiting file picture can be intuitively distinguished through naked eyes. And an anti-counterfeiting server for displaying the picture information of the anti-counterfeiting file is not needed.
Further, the different regions include: the file picture is divided into a plurality of areas with the same size according to the size of the file picture, for example, 8 areas, four areas are arranged side by side in the upper half part, and four areas are arranged side by side in the lower half part. The color is partitioned neatly, 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 RBG three primary colors, and the colors of adjacent areas are different for only one primary color. Thus, smooth transition of colors can be realized without great difference. Preferably, the conversion value of the one primary color is smaller than a first preset value (e.g. 10, all varying in the range 0-254). Therefore, the color change can be reflected, large change can not be generated, and the overall visual effect is improved. In some embodiments, the change in different colors may take on a random value that is less than the first preset value, which may enable the colors of the different pictures to be different. 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 MD5 value after the file picture is superimposed with the file information (or an authentication icon may be superimposed on the file picture to generate the MD5 value, where the authentication icon is only used as the MD5 value for generating and is not used as the subsequent file superimposed with the stereoscopic line) 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 less than the first preset value), so that association with the file picture may be achieved and verification is facilitated. And each file picture is different in color as the information on the file is different, so that the anti-counterfeiting and encryption of different colors are realized. Preferably, the random value is a color value of the center of the corresponding region, and the color values of other parts of the region are the color values of the centers of two adjacent regions which linearly change along with the distance, and of course, the color values of the two adjacent regions should be different. If the color of the center of one area is R255G255B200 and the color value of the center of the other area is R255G255B100, the partial color between the two areas linearly changes from the center of one area to the center of the other area along with the distance, for example, the R255G255B150 is arranged at the position adjacent to the middle of the two areas, the R255G255B175 is arranged at the position adjacent to the center of the one area at 1/4 of the two intervals, the R255G255B125 is arranged at the position adjacent to the center of the other area at 1/4 of the two intervals, and so on. Of course, there may be multiple adjacent regions per region, and the color may be determined in the region with the nearest center among the adjacent regions.
In a preferred embodiment, the different colors of all regions are cyclically varying between the different regions. If there are four zones, then the cycle can be such that zone 1 is the first color, zone 2 is the second color, zone 3 is back to the first color, zone 4 is back to the second color. Thus, the color change is relatively regular, and the visual effect is better. In some embodiments, the cyclically varying values may be random values as in the above embodiments (MD 5 values).
In the above embodiment, the line includes a straight line or a curved line. In the present invention, the pitch of the lines may be fixed, or in some embodiments, the pitch of the lines may be randomly selected within a predetermined pitch range. The preset range is as mentioned in the above embodiment, and may be selected randomly between the height of the text message and one third of the height. In some embodiments, the random may be further controlled, a first random range with a larger pitch value and a second random range with a smaller pitch value may be determined, the value of the first random range is larger than the value in the second random range, and then the pitches of the lines are sequentially circulated in the first random range to select a plurality of first preset numbers and then select a plurality of second preset numbers in the second random range, so that as shown in fig. 3, a region with a denser pitch of the lines and another region with a thinner pitch of the lines may be formed, and the relatively neat arrangement does not occur, which is caused by random line pitches, so that the effect of random pitch is achieved, and a better visual effect is achieved. Meanwhile, in order to achieve a good visual effect, the transversely arranged lines are not crossed or the longitudinally arranged lines are not crossed, namely, the lines of the row arrangement (the length direction of the lines is longitudinal) are not crossed and the lines of the column arrangement (the length direction of the lines is transverse) are not crossed, preferably, the lines of the row arrangement can be parallel, and the lines of the column arrangement can be parallel. The random value here may also be a random value at the color, i.e. the random value is associated with a file picture.
When the above embodiments are overlapped, if the anti-counterfeiting picture has characters and information, the three-dimensional lines can be directly overlapped. In some embodiments, to avoid the influence on the text information on the anti-counterfeit document picture, the color stereoscopic lines may be superimposed first, and then the text may be superimposed. The invention further comprises the steps of: and continuously superposing the text information of the file content on the anti-counterfeiting file picture. When the anti-fake pictures are overlapped, the pixel points of the strokes of the text information directly cover the anti-fake pictures or the three-dimensional lines below, so that highlighting 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 text pen, thereby increasing the anti-counterfeiting performance.
The invention provides a file anti-counterfeiting system based on color transition, which comprises a memory and a processor, wherein a computer program is stored in the memory, and the computer program realizes the steps of the method according to any one of the embodiments of the invention when being executed by the processor. The anti-counterfeiting system can directly generate the anti-counterfeiting file with anti-counterfeiting lines, and can realize the anti-counterfeiting identification of naked eyes.
It should be noted that, although the foregoing embodiments have been described herein, the scope of the present invention is not limited thereby. Therefore, based on the innovative concepts of the present invention, alterations and modifications to the embodiments described herein, or equivalent structures or equivalent flow transformations made by the present description and drawings, apply the above technical solution, directly or indirectly, to other relevant technical fields, all of which are included in the scope of the invention.

Claims (7)

1. The file anti-counterfeiting method based on color transition is characterized by comprising the following steps of:
generating a plurality of lines, wherein the lines are arranged at a transverse interval and a longitudinal interval, the intervals of the lines are randomly selected within a preset interval range, and the transverse lines and the longitudinal lines are crossed to form three-dimensional lines;
superposing different colors on lines of different areas of the three-dimensional lines;
superposing three-dimensional lines with different colors on the file picture and generating an anti-counterfeiting file picture;
the different colors are generated through RBG three primary colors, and the colors of adjacent areas are different from one primary color;
the conversion value of the primary color is smaller than a first preset value, a random value smaller than the first preset value is adopted, the random value can be obtained according to the encrypted value of the file picture and the encrypted value, and the first few bits of the MD5 value after the file picture is overlapped with the file information are used as the color change value, so that the association with the file picture is realized.
2. The color transition-based document anti-counterfeiting method according to claim 1, wherein the line comprises a straight line or a curved line.
3. The color transition-based document anti-counterfeiting method according to claim 1, wherein the different areas comprise:
and dividing the file picture into a plurality of areas with equal sizes according to the size of the file picture.
4. The color transition-based document anti-counterfeiting method according to claim 1, wherein different colors of all the areas are cyclically changed among the different areas.
5. The color transition-based document anti-counterfeiting method according to claim 1, further comprising the step of:
and continuously superposing the text information of the file content on the anti-counterfeiting file picture.
6. A color transition-based document anti-counterfeiting method according to any one of claims 1 to 5, wherein the transversely arranged lines do not intersect or the longitudinally arranged lines do not intersect.
7. A file anti-counterfeiting system based on color transition is characterized in that: comprising a memory, a processor, said memory having stored thereon a computer program which, when executed by the processor, implements the steps of the method according to any of claims 1 to 6.
CN202110661274.5A 2021-06-15 2021-06-15 File anti-counterfeiting method and system based on color transition Active CN113313783B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110661274.5A CN113313783B (en) 2021-06-15 2021-06-15 File anti-counterfeiting method and system based on color transition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110661274.5A CN113313783B (en) 2021-06-15 2021-06-15 File anti-counterfeiting method and system based on color transition

Publications (2)

Publication Number Publication Date
CN113313783A CN113313783A (en) 2021-08-27
CN113313783B true CN113313783B (en) 2024-03-22

Family

ID=77378941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110661274.5A Active CN113313783B (en) 2021-06-15 2021-06-15 File anti-counterfeiting method and system based on color transition

Country Status (1)

Country Link
CN (1) CN113313783B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104794627A (en) * 2015-05-04 2015-07-22 叶如意 Anti-counterfeiting and anti-midway-unpacking system
CN104915700A (en) * 2015-06-05 2015-09-16 巫应传 Crack-based anti-counterfeiting label system and method
CN108538187A (en) * 2018-04-16 2018-09-14 上海印钞有限公司 A kind of combination phosphor pattern and its application
CN110349490A (en) * 2019-07-12 2019-10-18 至远彩色印刷工业(惠州)有限公司 Packing material and its line color-changing anti-counterfeit texture printing method with antifalsification label

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2002345270B2 (en) * 2001-07-11 2007-11-29 Ecole Polytechnique Federale De Lausanne Images incorporating microstructures

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104794627A (en) * 2015-05-04 2015-07-22 叶如意 Anti-counterfeiting and anti-midway-unpacking system
CN104915700A (en) * 2015-06-05 2015-09-16 巫应传 Crack-based anti-counterfeiting label system and method
CN108538187A (en) * 2018-04-16 2018-09-14 上海印钞有限公司 A kind of combination phosphor pattern and its application
CN110349490A (en) * 2019-07-12 2019-10-18 至远彩色印刷工业(惠州)有限公司 Packing material and its line color-changing anti-counterfeit texture printing method with antifalsification label

Also Published As

Publication number Publication date
CN113313783A (en) 2021-08-27

Similar Documents

Publication Publication Date Title
RU2621173C2 (en) Distribution, pixel arrangement and image formation relative to microlens matrix with round or square bases to achieve three-dimensionality and multi-directional movement in full
CN108229596B (en) Combined two-dimensional code, electronic certificate carrier, generating and reading device and method
US10235618B2 (en) Authentication feature in a barcode
CN101739720B (en) Method and device for generating three-dimensional dynamic verification code
Huang et al. Optical watermarking for printed document authentication
CN110796221A (en) Anti-counterfeit label generation method, anti-counterfeit label verification method and system and anti-counterfeit label
CN111190557A (en) Certificate printing method and system for configurable printing items
WO2014166837A1 (en) Generation and recognition of image information data that can be printed in a forgery-proof manner
Luboschik et al. A new weaving technique for handling overlapping regions
CN106372698A (en) Multidimensional anti-counterfeiting label and anti-counterfeiting verification method thereof
JP6381686B2 (en) Method and apparatus for generating anti-counterfeit image
CN113313783B (en) File anti-counterfeiting method and system based on color transition
JP2018192729A (en) Forgery preventive printed matter creation method, and program for creating forgery preventive printed matter
CN105701391A (en) Dynamic verification code picture generation method and apparatus
US20050206158A1 (en) Certificate issuing method and certificate verifying method
CN103093127A (en) Method and system of dynamic copyright protection based on sudoku and multiple digital watermarks
CN111131657B (en) Chaos medical image tamper-proof encryption method based on self-verification matrix
Yang et al. MTVSS:(M) isalignment (T) olerant (V) isual (S) ecret (S) haring on resolving alignment difficulty
EP3977335A1 (en) Augmented reality animation
CN113313781A (en) File anti-counterfeiting method and system based on two-dimensional grains
CN113313782A (en) File anti-counterfeiting method and system based on three-dimensional grains
CN104736347A (en) Device and method for producing security features and security feature
CN113408684A (en) File anti-counterfeiting method and system based on identification
US20150028579A1 (en) Method of unitary authentication of a hardware object comprising visual cryptography and material signature
WO2022245595A1 (en) Self-verifying hidden digital media within other digital media

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
GR01 Patent grant
GR01 Patent grant