Embodiment
Below in conjunction with accompanying drawing the specific embodiment of the present invention is described.
In the embodiment of the invention, in plate-making is false proof during the generation of security pattern, at first according to the definite some discrete points in shading zone; Be reference point with each discrete point respectively then, be each discrete point generation curve in groups, thereby obtained a kind of security pattern of alternating expression.Can solve shading of the prior art and arrange regularly, the shortcoming that randomness is not strong can also solve because the shading that the repeated arrangement of element obtains is anti-and duplicate and the problem of anti-scan performance difference.
Specifically can implement in the following manner:
Fig. 1 as shown in the figure, can comprise the steps: for the generation method implementing procedure synoptic diagram of the false proof middle security pattern of plate-making
Step 101, determine some discrete points according to shading zone;
Step 102, be reference point with each discrete point respectively, for each discrete point generates a sets of curves, described curve group is identical by number, be made up of the curve of spacing between any two;
Step 103, will divide into groups according to the relation of curve and discrete point for the curve that each discrete point generates;
Step 104, the curve after the grouping is carried out boolean's union operation.
In the enforcement, the discrete point in the step 101 can be determined by random fashion; Perhaps determine by matrix form arrangement and/or parity rows staggered pattern.In the step 102 be that the curve that benchmark generates can be rule schema meta object and/or irregular component meta object with the discrete point.Graphics primitive object can be to select at random and/or set in advance.Because in implementing, the curve element of choosing and generate shading of discrete point is drawn materials without limits, and is extremely random with the design variations of this shading, thin or close; And the position of specific shading curve element and the direction of arrangement are random, and regularity also just reduces greatly; Owing to be cross-linked between the different shading curve elements, generate the connected region of arbitrary shape, therefore be difficult to analyze the method that shading generates, thereby increased the difficulty of duplicating and copying, improved security;
In the step 102, can also be reference point with each discrete point respectively, for each discrete point generates a sets of curves, described curve group curve identical by number, that spacing is equal be between any two formed.After having adopted accurate equal space line computing method formation curve group, the effect of line shading is relatively finer and smoother; The Boolean calculation operating speed ratio that carries out simultaneously between the graphics primitive object is very fast, and the efficiency ratio that shading generates is higher.
Obviously, also can undemanding equal space line in this step, carry out suitable distortion such as shape, as long as but the curve group that obtains can reach effect attractive in appearance according to figure.
In this step, the mode that also can adopt curve to mix (Curve Blending) here obtains the curve group, as two curve map meta objects of predefined, one of them curve map meta object is in the inside of another curve map meta object, be gradient to the collection of curves of another curve map meta object by what the curve hybrid mode obtained some from a curve map meta object, two curve map meta objects can be incomplete same, and middle curve map meta object can also be not quite similar.The curve mixing is meant and produces a series of figures that between two Drawing Objects with the progressive formation of reflection from a figure to another figure, the intermediate pattern object that is generated should have the shape facility of initial given Drawing Object simultaneously.
Generating the curve that spacing is equal between any two in this step is specifically as follows:
When being benchmark formation curve group with the discrete point, generating a curve map meta object earlier, is reference with this curve map meta object, inwardly or outwards generates the equal space line of one group of described curve map meta object;
Or, when calculating the equal space line of curve map meta object at each discrete point place, at first the virgin curve graphics primitive object is carried out polygon and approach, obtain polygonal equidistant parallel line, remove to approach the equal space line of base curves then with the polygon that obtains;
Or, for the rule schema meta object, be the center with the discrete point, the parameter of revising the rule schema meta object according to certain step-length obtains the curve group;
In the step 103, divide into groups, be specifically as follows according to the relation of curve and discrete point:
The nearest curve of curve middle distance discrete point that each discrete point is generated is one group respectively, inferior near be one group, grouping according to this.
In the step 104, the curve after the grouping is carried out the operation of boolean's union, is specifically as follows:
Utilize node and line segment relation that curve is constructed;
According to determining to concern between the curve from intersection point and intersection point each other between the curve;
Make curve closure after the grouping according to relation between determined curve.
Shading is complicated as much as possible in the plate-making design, lacks regularity, so just can farthest increase the difficulty that the fake producer duplicates.But false proof for the plate-making shading, attractive in appearance also is the key factor that needs consideration, and adopting the purpose of Boolean calculation in the step 104 is in order to form closing line, to do like this shape of the line of ascending a height that has formed mutual UNICOM, can reaching effect attractive in appearance; Simultaneously every level line is not quite similar, and it is that all or part of interconnecting by different graphic forms, and the position that figure occurs also is at random, thereby has also improved security by increasing the randomness that shading distributes.
The embodiment of the invention also provides a kind of generating apparatus of the false proof middle security pattern of making a plate, and describes below in conjunction with the embodiment of accompanying drawing to this device.
Fig. 2 as shown in the figure, comprises determination module, generation module for the generating apparatus structural representation of the false proof middle security pattern of plate-making in the security pattern generating apparatus, after determination module is determined some discrete points according to the shading zone; Generation module is a reference point with each discrete point respectively, is each discrete point generation curve in groups.
In generation module, can also comprise generation unit, grouped element, operating unit, wherein:
Generation unit, being used for is reference point with each discrete point respectively, for each discrete point generates a sets of curves, described curve group is identical by number, be made up of the curve of spacing between any two;
Grouped element, the curve that is used for generating for each discrete point divides into groups according to the relation of curve and discrete point;
Operating unit is used for the curve after the grouping is carried out the operation of boolean's union.
Can comprise in the generation unit that first generates subelement, second and generate subelement, the 3rd and generate subelement one of them or its combination, wherein:
First generates subelement, when being used for the discrete point being benchmark formation curve group, generates a curve map meta object earlier, is reference with this curve map meta object, inwardly or outwards generates the equal space line of one group of described curve map meta object;
Second generates subelement, when being used to calculate the equal space line of curve map meta object at each discrete point place, at first the virgin curve graphics primitive object being carried out polygon and approaches, and obtains polygonal equidistant parallel line, removes to approach the equal space line of base curves then with the polygon that obtains;
The 3rd generates subelement, be used for for the rule schema meta object, and be the center with the discrete point, the parameter of revising the rule schema meta object according to certain step-length obtains the curve group.
The nearest curve of curve middle distance discrete point that grouped element can also be further used for respectively each discrete point is generated is one group, inferior near be one group, and grouping according to this.
Operating unit can also comprise the constructor unit, determines subelement, closed subelement, wherein:
The constructor unit is used to utilize node and line segment relation that curve is constructed;
Determine subelement, be used for according to determining to concern between the curve from intersection point and intersection point each other between the curve;
Closed subelement is used for making curve closure after the grouping according to relation between determined curve.
Determination module can be further used for determining discrete point by random fashion; Or, determine discrete point by matrix form arrangement and/or parity rows staggered pattern.
The curve that device generates can be rule schema meta object and/or irregular component meta object.Graphics primitive object is for selecting at random and/or setting in advance.
With example the enforcement that the false proof middle security pattern of making a plate generates is described again below.
Fig. 3 as shown in the figure, can comprise the steps: for security pattern generates the implementing procedure synoptic diagram
Step 301, determine the size in shading zone, and generate the discrete isolated point set of density interphase at the regional level;
In this step, the area size that need to generate security pattern can determine in advance, and the zone that is paved into of shading is the rectangular area generally speaking, can certainly be arbitrary shape with the shading zone definitions as required.When if the shading zone is arbitrary shape, common way can be that design arbitrary shape profile is the shading laying work area, then calculate the boundary rectangle frame in shading zone, in the zone that rectangle frame surrounded, generate staggered shading then, use the profile that designs in advance as clip path at last, the shading data of dismissing the profile outside get final product, the transform mode of arbitrary shaped region is easy to know for a person skilled in the art, so is that the rectangular area describes with the shading zone only in following examples.
Generate the discrete isolated point set of density interphase in rectangle shading zone, its generation method can adopt at random or regularly arranged mode.
One, the method for random alignment can be implemented as follows:
1, the discrete point that generates some in the rectangular area is at random formed source S set A.Counting that Yi Zhi generates is many more, and the distance between the isolated point in the discrete point set that finally calculates is even relatively more, but the cost of arithmetic speed can be bigger.
2, determine goal set QA, from SA, select a point to join among the goal set QA earlier arbitrarily, correspondingly should from SA, delete by point.
3, all discrete points of residue are to the distance size of goal set QA among the set of computations SA, and the discrete point of chosen distance maximum, and this point joined QA correspondingly should be deleted from the SA set by point.Here a discrete point is defined as to the distance of gathering: the minimum value in this point and the set in the distance of all discrete points.
4, repeat the process in the 3rd step, until from the S set A of source, selecting equally distributed n point to form goal set QA.
Two, regularly arranged method can be implemented in the following manner:
Also have two kinds for regularly arranged method: matrix form is arranged and parity rows is staggered.Only introduce the matrix form method in the present embodiment, parity rows is staggered and can does simple change on its basis and can obtain.
When employing matrix form aligning method generated discrete point set, selecting the summit in the upper left corner of rectangular area was first O, and then along continuous straight runs generates first group of discrete point with fixing spacing, and it was added to a little concentrated; O is obtained second starting point of going along the identical spacing of vertical direction skew, generate second group of discrete point according to identical way; Repeat above step, evenly cover whole rectangular area until discrete point set.Attractive in appearance in the enforcement for the generation figure that makes shading, make the discrete point proper alignment, but can be at random in the selection of spacing, so the last discrete point that generates is a neat appearance, but the generation with regard to discrete point still is exactly at random, duplicates and remains impossible.
Fig. 4 is the discrete point set synoptic diagram that generates according to random fashion in the shading zone, and the discrete point set synoptic diagram of Fig. 5 for generating according to the matrix form mode in the shading zone, Fig. 6 are the discrete point set synoptic diagram that generates according to the parity rows staggered pattern in the shading zone.For convenience, represent with a circle behind each discrete point among the figure.As seen from the figure, the number of the discrete point in regional extent is many more, and relative distance between any two is more little, and density degree is big more; Otherwise relative distance between any two is big more, and density degree is more little.The definite visual needs attractive in appearance of discrete point are determined in concrete the enforcement.
Step 302, be that the center generates one group of curve that spacing is suitable, obtain a plurality of adjacent in twos curve groups with each discrete point;
In concrete the enforcement, can be with discrete point during as reference point, as center reference, and the curve of chartering also can be selected one group and implements, and just can obtain a plurality of adjacent in twos curve groups thus with it, and this can make shading attractive in appearance.
In this step, be that the curve that the center generates can be the graphics primitive object of rule with each discrete point, as circle, ellipse, just concavo-convex polygon, star, star polygon, rectangle or the like; Also can be the graphics primitive object of irregular any design.
During the formation curve group, can specify each discrete place to generate graphics primitive object type earlier, this moment is a kind of in create-rule or the irregular component meta object at random, and also hand-designed is good in advance; After generating single graphics primitive object, this object can also be done and rotate angle at random, breaking the regularity of whole shading object, thereby increase the difficulty of duplicating; Inwardly or outwards generate one group of equal space line with this object as benchmark then.
When calculating the equal space line of curve map meta object at each discrete point place, at first the virgin curve graphics primitive object is carried out polygon and approach, obtain polygonal equidistant parallel line, remove to approach the equal space line of base curves then with the polygon that obtains.Concrete can implement as follows:
1, the trimming algorithm of utilization broken line is given every broken line position that makes marks, and indicates the repellence of line segment;
2, get the effective line segment of article one (line segment does not promptly repel each other), if the broken line closure directly uses simple algorithm to do pair-wise offset, the corresponding point after record calculates;
Arbitrarily to the corresponding point assignment of first point, do not calculate (is again last point because the first section tie point with latter end of polygon section is at first) if 3 broken lines are closed at last again, this line segment is concentrated deletion from effective line segment;
4, if all effective line-segment sets are sky then turned to for the 7th step, if then do not turn to for the 5th step for sky;
5, take off an effective line segment utilization simple algorithm and obtain the corresponding point of end points separately, and calculate the corresponding point of tie point, this line segment is concentrated deletion from effective line segment;
6, turned to for the 4th step;
7, handle next discrete point.
Fig. 7 is the curve group synoptic diagram that contains a discrete point generation of 15 curve map meta objects, and wherein (a) regular curve graphics primitive object is circular, and (b) the regular curve graphics primitive object is a pentagon.Being the center with the discrete point to the rule schema meta object, can obtain equidistant curve group just revise its parameter according to certain step-length, such as for circle, just can obtain as the curve group shown among Fig. 8 (a) by revising radius of a circle.In like manner, use pentagon stone then can obtain figure shown in Fig. 7 (b).In order to guarantee the aesthetic property of shading, the relative distance between the curve map meta object of all curve group inside equates, but concrete distance values can be revised; The number of the curve map meta object in each curve group is identical simultaneously, unified fixed 15 describe for example in the figure shown in the embodiment, certainly in order to increase complexity, the number of different curve group inner curve graphics primitive objects certainly has certain difference, from attractive in appearance, do not differ one times and more than, in case occur serious unbalanced.
Step 303, all curves are divided into groups again according to its identical relative position in group separately, then all graphics primitive objects in each group are carried out boolean's union and operate.
As shown in Figure 7, two curve groups have been divided into 15 groups according to identical relative position in organizing separately.Outermost layer 701 and 701 ' in curve group (a) and the curve group is divided into first group, and the rest may be inferred, and other identical same position upper curve graphics primitive objects also will be divided into groups again, are divided into the 15th group up to 7015 and 7015 ' of innermost layer.Next all graphics primitive objects in each grouping are asked the logic union respectively.The operation of boolean's union can be implemented as follows:
1, architecture concern table.
The graphics primitive object of all participation Boolean calculations is converted into each different zone (REGION), and wherein each REGION is writing down all BEZIER curves; For each node distributes unique ID number, and be recorded among the public NODEARRAY; A structure line segment (SEGMENTPROPERTY) between per two nodes, simultaneously Tag ID number joins among the public SEGMENTARRAY then.Each node in the contingency table that builds like this may belong to a plurality of different REGION on a plurality of different BEZIER curves, but may connect different line segments simultaneously; Every line segment also may belong to different BEZIER curves, also may belong to different REGION naturally.So just with graphics primitive object conversion for can be fast and the contingency table of renewal.
2, calculate each graphics primitive object from intersection point and intersection point each other, upgrade contingency table.
If this intersection point does not exist as yet, increase by one at public NODEARRAY table; Because this intersection point may be on different BEZIER curves, it will become two sections to all related BEIZER curve segmentation, thereby two new line segments that generate are joined among the public SEGMENTARRAY, indicates the annexation between new node and the new line segment.If two the BEZIER curve has lap, the line segment that obtains is identical, with the line segment and the node merging of lap.
3, filter invalid line segment then after, connecting remaining effective line segment becomes the target area.
At first all line segments among the SEGMENTARRAY are done following pre-service, check whether each bar line segment is short line segment.If line segment is a short line segment, just it is deleted from SEGMENTARRAY, remove its relation in contingency table simultaneously, and from public NODEARRAY, remove interdependent node.
Also want a side of a line segment of right judgement to belong to the inside and outside of an original area simultaneously, and a bit whether at intra-zone.Here can arrange along the left side of direction of a curve in implementing is intra-zone, and then direction of a curve is a forward, otherwise is negative sense.Can judge the legitimacy of every line segment thus.
Filter the legitimacy that has guaranteed effective line segment by line segment, next will effective line segment be linked together, form new target area according to certain rule.
Just obtained final alternating expression shading through after the above step, the staggered shading synoptic diagram that Fig. 8 forms on the discrete point benchmark of Fig. 4 for curve map meta object shown in Figure 7, the staggered shading synoptic diagram that Fig. 9 forms on the discrete point benchmark of Fig. 5 for curve map meta object shown in Figure 7, the staggered shading synoptic diagram that Figure 10 forms on the discrete point benchmark of Fig. 6 for curve map meta object shown in Figure 7, as shown in the figure, the alternating expression shading shown in Figure 8 that can generate according to the discrete point of determining at random shown in Figure 4, the alternating expression shading shown in Figure 9 that the discrete point of determining according to matrix shown in Figure 5 can generate, the alternating expression shading shown in Figure 10 that the discrete point of determining according to alternate matrix shown in Figure 6 can generate.
Because above-mentioned enforcement as can be known, the embodiment of the invention belongs to the false proof generation technique of security pattern in the plate-making anti-counterfeiting printing technology field, can provide the alternating expression security pattern to reach false proof purpose.The curve map meta object element of shading is drawn materials without limits and definite mode of discrete point is various owing to generate, thereby the design variations of shading is extremely random, and is thin or close; The direction of specific shading positions of elements and arrangement is random, and regularity reduces greatly; Be cross-linked between the simultaneously different shading elements, generate the connected region of arbitrary shape, be difficult to analyze the method that shading generates, thereby increase the difficulty of duplicating and copying, improved security, simultaneously because curve map meta object element is drawn materials without limits and definite mode of discrete point is various, add as boolean and etc. means the curve map meta object can be handled arbitrarily, can generate shading attractive in appearance by the wish of design.
Further also because adopted accurate equal space line computing method, the effect of line shading is relatively finer and smoother; The Boolean calculation operating speed ratio that carries out simultaneously between the graphics primitive object is very fast, and the efficiency ratio that shading generates is higher.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.